AuthCommitteeHotCert

class cometa.certificates.auth_committee_hot_cert.AuthCommitteeHotCert(ptr)[source]

Bases: object

Represents a committee hot key authorization certificate.

This certificate is used to authorize a hot key for a constitutional committee member. The hot key is used for voting, while the cold key remains secure offline.

__init__(ptr)[source]
Return type:

None

__enter__()[source]
Return type:

AuthCommitteeHotCert

__exit__(exc_type, exc_val, exc_tb)[source]
Return type:

None

__repr__()[source]

Return repr(self).

Return type:

str

classmethod new(committee_cold_cred, committee_hot_cred)[source]

Creates a new committee hot key authorization certificate.

Parameters:
  • committee_cold_cred (Credential) – The committee cold credential.

  • committee_hot_cred (Credential) – The committee hot credential to authorize.

Returns:

A new AuthCommitteeHotCert instance.

Raises:

CardanoError – If creation fails.

Return type:

AuthCommitteeHotCert

classmethod from_cbor(reader)[source]

Deserializes an AuthCommitteeHotCert from CBOR data.

Parameters:

reader (CborReader) – A CborReader positioned at the certificate data.

Returns:

A new AuthCommitteeHotCert deserialized from the CBOR data.

Raises:

CardanoError – If deserialization fails.

Return type:

AuthCommitteeHotCert

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 committee_cold_credential: Credential

The committee cold credential.

Returns:

The Credential for the committee cold key.

property committee_hot_credential: Credential

The committee hot credential.

Returns:

The Credential for the committee hot key.

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