Witness
Transaction witness.
- class pycardano.witness.VerificationKeyWitness(vkey: 'Union[VerificationKey, ExtendedVerificationKey]', signature: 'bytes')
Bases:
ArrayCBORSerializable
- vkey: Union[VerificationKey, ExtendedVerificationKey]
- signature: bytes
- classmethod from_primitive(values: Union[list, tuple]) VerificationKeyWitness
Restore a primitive value to its original class type.
- Parameters:
cls (ArrayBase) – The original class type.
values (List[Primitive]) – A list whose elements are CBOR primitives.
- Returns:
Restored object.
- Return type:
ArrayBase
- Raises:
DeserializeException – When the object could not be restored from primitives.
- class pycardano.witness.TransactionWitnessSet(vkey_witnesses: 'Optional[List[VerificationKeyWitness]]' = None, native_scripts: 'Optional[List[NativeScript]]' = None, bootstrap_witness: 'Optional[List[Any]]' = None, plutus_v1_script: 'Optional[List[PlutusV1Script]]' = None, plutus_data: 'Optional[List[Any]]' = None, redeemer: 'Optional[Redeemers]' = None, plutus_v2_script: 'Optional[List[PlutusV2Script]]' = None, plutus_v3_script: 'Optional[List[PlutusV3Script]]' = None)
Bases:
MapCBORSerializable
- vkey_witnesses: Optional[List[VerificationKeyWitness]] = None
- native_scripts: Optional[List[NativeScript]] = None
- bootstrap_witness: Optional[List[Any]] = None
- plutus_v1_script: Optional[List[PlutusV1Script]] = None
- plutus_data: Optional[List[Any]] = None
- redeemer: Optional[Union[List[Redeemer], RedeemerMap]] = None
- plutus_v2_script: Optional[List[PlutusV2Script]] = None
- plutus_v3_script: Optional[List[PlutusV3Script]] = None
- classmethod from_primitive(values: Union[dict, list, tuple]) TransactionWitnessSet | None
Restore a primitive value to its original class type.
- Parameters:
cls (MapBase) – The original class type.
values (
Primitive
) – A CBOR primitive.
- Returns:
Restored object.
- Return type:
MapBase
- Raises:
pycardano.exception.DeserializeException – When the object could not be restored from primitives.