StakeDeregistrationCert
- class cometa.certificates.stake_deregistration_cert.StakeDeregistrationCert(ptr)[source]
Bases:
objectRepresents a stake deregistration certificate.
This certificate is used to deregister a staking key from the Cardano blockchain, releasing the stake key deposit back to the owner.
- classmethod new(credential)[source]
Creates a new stake deregistration certificate.
- Parameters:
credential (Credential) – The staking credential to deregister.
- Returns:
A new StakeDeregistrationCert instance.
- Raises:
CardanoError – If creation fails.
- Return type:
- classmethod from_cbor(reader)[source]
Deserializes a StakeDeregistrationCert from CBOR data.
- Parameters:
reader (CborReader) – A CborReader positioned at the certificate data.
- Returns:
A new StakeDeregistrationCert deserialized from the CBOR data.
- Raises:
CardanoError – If deserialization fails.
- Return type:
- to_cbor(writer)[source]
Serializes the certificate to CBOR format.
- Parameters:
writer (CborWriter) – A CborWriter to write the serialized data to.
- Raises:
CardanoError – If serialization fails.
- Return type:
None
- to_cip116_json(writer)[source]
Serializes this certificate to CIP-116 compliant JSON.
- Parameters:
writer (JsonWriter) – The JsonWriter to write the JSON to.
- Raises:
CardanoError – If serialization fails.
- Return type:
None
- property credential: Credential
The staking credential being deregistered.
- Returns:
The Credential associated with this deregistration.