cardano::KesPublicKey class

KES public key, which is represented as an array of bytes.

Derived classes

class KesVerificationKey
A KES verification key used by stake pools to verify block signatures.

Constructors, destructors, conversion operators

KesPublicKey(std::span<const uint8_t, size> pub) explicit
Construct a public key object from a span of key bytes.

Public functions

auto asEd25519() const →  ed25519::PublicKey
Convert to an Ed25519 public key.
auto bytes() const →  const std::array< uint8_t, size > & -> auto constexpr
Return a constant reference to the public key bytes.
auto hash_pair(const KesPublicKey& other) const →  KesPublicKey
Hash two public keys using Blake2b.

Function documentation

cardano::KesPublicKey::KesPublicKey(std::span<const uint8_t, size> pub) explicit

Construct a public key object from a span of key bytes.

Parameters
pub A span of 32 bytes that will be copied into the object.