The optional lock field of the witness.
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_context: any
Optional context passed to the codec
The decoded entity
StaticfromCreate an entity from bytes
Optional_context: any
Optional context passed to the codec
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.