#include <ed25519_provider_impl.hpp>
Definition at line 16 of file ed25519_provider_impl.hpp.
kagome::crypto::Ed25519ProviderImpl::Ed25519ProviderImpl |
( |
std::shared_ptr< CSPRNG > |
generator | ) |
|
|
explicit |
Ed25519Keypair kagome::crypto::Ed25519ProviderImpl::generateKeypair |
( |
const Ed25519Seed & |
seed | ) |
const |
|
overridevirtual |
outcome::result< Ed25519Signature > kagome::crypto::Ed25519ProviderImpl::sign |
( |
const Ed25519Keypair & |
keypair, |
|
|
gsl::span< const uint8_t > |
message |
|
) |
| const |
|
overridevirtual |
Sign message
- Parameters
-
msg | using |
keypair. | If computed value is less than |
threshold | then return optional containing this value and proof. Otherwise none returned |
keypair | pair of public and private ed25519 keys |
message | bytes to be signed |
- Returns
- signed message
Implements kagome::crypto::Ed25519Provider.
Definition at line 52 of file ed25519_provider_impl.cpp.
outcome::result< bool > kagome::crypto::Ed25519ProviderImpl::verify |
( |
const Ed25519Signature & |
signature, |
|
|
gsl::span< const uint8_t > |
message, |
|
|
const Ed25519PublicKey & |
public_key |
|
) |
| const |
|
overridevirtual |
std::shared_ptr<CSPRNG> kagome::crypto::Ed25519ProviderImpl::generator_ |
|
private |
log::Logger kagome::crypto::Ed25519ProviderImpl::logger_ |
|
private |
The documentation for this class was generated from the following files: