OptionallockOptionalinputOptionaloutputStatic OptionalbyteThe bytes length of the entity, if it is fixed, otherwise undefined
StaticencodeEncode the entity into bytes
StaticdecodeDecode the entity from bytes
The bytes to decode
Optional_config: { isExtraFieldIgnored?: boolean }The configuration for decoding, including whether to ignore extra fields
The decoded entity
StaticfromCreate an entity from bytes
Optional_config: { isExtraFieldIgnored?: boolean }The configuration for decoding, including whether to ignore extra fields
The created entity
StaticfromCreate an entity from a serializable object
The created entity
StaticBaseGenerate a base class of CCC to create a serializable instance. This should be used with the codec decorator.
Calculate the hash of the entity
The hash of the entity
Convert the entity to a full-byte untrimmed Hex representation
The entity full-byte untrimmed hexadecimal representation
StaticBaseGenerate a base class of CCC to create a serializable Union instance. This should be used with the codec decorator.
Creates an instance of WitnessArgs.