cardano::stake_pool::OperationalCertificateIssueCounter class

A node operational certificate issue counter.

Public functions

auto count() const -> size_t
Accessor for the counter.
auto decrement() -> size_t
Decrement the counter.
auto increment() -> size_t
Increment the counter.
void saveToFile(std::string_view fpath, const ColdVerificationKey& vkey) const
Export the counter to a file in the text envelope format.
auto serialize(const ColdVerificationKey& vkey) const -> std::vector<uint8_t>
Serialize the counter to CBOR with the pool vkey.
auto setCount(size_t count) -> size_t
Set the counter.

Function documentation

size_t cardano::stake_pool::OperationalCertificateIssueCounter::count() const

Accessor for the counter.

Returns The current counter value.

size_t cardano::stake_pool::OperationalCertificateIssueCounter::decrement()

Decrement the counter.

Returns The count post operation.

size_t cardano::stake_pool::OperationalCertificateIssueCounter::increment()

Increment the counter.

Returns The count post operation.

void cardano::stake_pool::OperationalCertificateIssueCounter::saveToFile(std::string_view fpath, const ColdVerificationKey& vkey) const

Export the counter to a file in the text envelope format.

Parameters
fpath Path to the file to be (over)written.
vkey Stake pool verification key.

std::vector<uint8_t> cardano::stake_pool::OperationalCertificateIssueCounter::serialize(const ColdVerificationKey& vkey) const

Serialize the counter to CBOR with the pool vkey.

Parameters
vkey Stake pool verification key.
Returns The CBOR byte string as a byte vector.

size_t cardano::stake_pool::OperationalCertificateIssueCounter::setCount(size_t count)

Set the counter.

Returns The count post operation.