class
OperationalCertificateIssueCounterA 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
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. |