template <size_t Depth>
SumKesSignature class
KES Signature.
Template parameters | |
---|---|
Depth | The depth of the KES key used to create the signature. |
Public static variables
Constructors, destructors, conversion operators
-
SumKesSignature(std::
span<const uint8_t> bytes) explicit - Create a signature object from a span of bytes.
Public functions
- auto bytes() const → const std::array< uint8_t, SumKesSignature< Depth >::size > & -> auto constexpr
- Return a constant reference to the signature bytes.
-
auto verify(uint32_t period,
const KesPublicKey& pk,
std::
span<const uint8_t> msg) const → bool - Verify the KES signature.
-
auto verify(uint32_t period,
const KesPublicKey& pk,
std::
string_view msg) const → bool - Verify the KES signature.
Function documentation
template <size_t Depth>
cardano::SumKesSignature::SumKesSignature(std:: span<const uint8_t> bytes) explicit
Create a signature object from a span of bytes.
Parameters | |
---|---|
bytes | The signature byte string. |
template <size_t Depth>
bool cardano::SumKesSignature::verify(uint32_t period,
const KesPublicKey& pk,
std:: string_view msg) const
Verify the KES signature.
Parameters | |
---|---|
period | The KES period of the signature. |
pk | The KES public key. |
msg | The message used to create the signature (string). |