PoolRegistrationCert
- class cometa.certificates.pool_registration_cert.PoolRegistrationCert(ptr)[source]
Bases:
objectRepresents a pool registration certificate.
This certificate is used to register a new stake pool on the Cardano blockchain.
- classmethod new(params)[source]
Creates a new pool registration certificate.
- Parameters:
params (PoolParams) – The pool parameters for the new pool.
- Returns:
A new PoolRegistrationCert instance.
- Raises:
CardanoError – If creation fails.
- Return type:
- classmethod from_cbor(reader)[source]
Deserializes a PoolRegistrationCert from CBOR data.
- Parameters:
reader (CborReader) – A CborReader positioned at the certificate data.
- Returns:
A new PoolRegistrationCert 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
- property params: PoolParams
The pool parameters.
- Returns:
The PoolParams for this registration.
- 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