#include <ed25519_provider.hpp>
Definition at line 15 of file ed25519_provider.hpp.
virtual kagome::crypto::Ed25519Provider::~Ed25519Provider |
( |
| ) |
|
|
virtualdefault |
virtual Ed25519Keypair kagome::crypto::Ed25519Provider::generateKeypair |
( |
const Ed25519Seed & |
seed | ) |
const |
|
pure virtual |
virtual outcome::result<Ed25519Signature> kagome::crypto::Ed25519Provider::sign |
( |
const Ed25519Keypair & |
keypair, |
|
|
gsl::span< const uint8_t > |
message |
|
) |
| const |
|
pure virtual |
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
Implemented in kagome::crypto::Ed25519ProviderImpl.
virtual outcome::result<bool> kagome::crypto::Ed25519Provider::verify |
( |
const Ed25519Signature & |
signature, |
|
|
gsl::span< const uint8_t > |
message, |
|
|
const Ed25519PublicKey & |
public_key |
|
) |
| const |
|
pure virtual |
The documentation for this class was generated from the following file: