Certificate
- class pycardano.certificate.StakeCredential(credential: 'Union[VerificationKeyHash, ScriptHash]')
Bases:
ArrayCBORSerializable
- credential: Union[VerificationKeyHash, ScriptHash]
- classmethod from_primitive(values: Union[list, tuple]) StakeCredential
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.certificate.StakeRegistration(stake_credential: 'StakeCredential')
Bases:
ArrayCBORSerializable
- stake_credential: StakeCredential
- classmethod from_primitive(values: Union[list, tuple]) StakeRegistration
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.certificate.StakeDeregistration(stake_credential: 'StakeCredential')
Bases:
ArrayCBORSerializable
- stake_credential: StakeCredential
- classmethod from_primitive(values: Union[list, tuple]) StakeDeregistration
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.certificate.StakeDelegation(stake_credential: 'StakeCredential', pool_keyhash: 'PoolKeyHash')
Bases:
ArrayCBORSerializable
- stake_credential: StakeCredential
- pool_keyhash: PoolKeyHash
- classmethod from_primitive(values: Union[list, tuple]) StakeDelegation
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.certificate.PoolRegistration(pool_params: 'PoolParams')
Bases:
ArrayCBORSerializable
- pool_params: PoolParams
- to_primitive()
Convert the instance and its elements to CBOR primitives recursively.
- Returns:
A CBOR primitive.
- Return type:
Primitive
- Raises:
SerializeException – When the object or its elements could not be converted to CBOR primitive types.
- classmethod from_primitive(values: Union[list, tuple]) PoolRegistration
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.certificate.PoolRetirement(pool_keyhash: 'PoolKeyHash', epoch: 'int')
Bases:
ArrayCBORSerializable
- pool_keyhash: PoolKeyHash
- epoch: int
- classmethod from_primitive(values: Union[list, tuple]) PoolRetirement
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.