VoteDelegationCert
- class cometa.certificates.vote_delegation_cert.VoteDelegationCert(ptr)[source]
Bases:
objectRepresents a vote delegation certificate.
This certificate is used when an individual wants to delegate their voting rights to a DRep (Delegated Representative).
- classmethod new(credential, drep)[source]
Creates a new vote delegation certificate.
- Parameters:
credential (Credential) – The stake credential delegating voting power.
drep (DRep) – The DRep to delegate voting power to.
- Returns:
A new VoteDelegationCert instance.
- Raises:
CardanoError – If creation fails.
- Return type:
- classmethod from_cbor(reader)[source]
Deserializes a VoteDelegationCert from CBOR data.
- Parameters:
reader (CborReader) – A CborReader positioned at the certificate data.
- Returns:
A new VoteDelegationCert 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 stake credential delegating voting power.
- Returns:
The Credential associated with this delegation.