#include <sr25519_provider.hpp>
|
virtual | ~Sr25519Provider ()=default |
|
virtual Sr25519KeypairAndSeed | generateKeypair () const =0 |
|
virtual Sr25519Keypair | generateKeypair (const Sr25519Seed &seed) const =0 |
|
virtual outcome::result< Sr25519Signature > | sign (const Sr25519Keypair &keypair, gsl::span< const uint8_t > message) const =0 |
|
virtual outcome::result< bool > | verify (const Sr25519Signature &signature, gsl::span< const uint8_t > message, const Sr25519PublicKey &public_key) const =0 |
|
virtual outcome::result< bool > | verify_deprecated (const Sr25519Signature &signature, gsl::span< const uint8_t > message, const Sr25519PublicKey &public_key) const =0 |
|
Definition at line 25 of file sr25519_provider.hpp.
virtual kagome::crypto::Sr25519Provider::~Sr25519Provider |
( |
| ) |
|
|
virtualdefault |
virtual Sr25519Keypair kagome::crypto::Sr25519Provider::generateKeypair |
( |
const Sr25519Seed & |
seed | ) |
const |
|
pure virtual |
virtual outcome::result<Sr25519Signature> kagome::crypto::Sr25519Provider::sign |
( |
const Sr25519Keypair & |
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 secret sr25519 keys |
message | bytes to be signed |
- Returns
- signed message
Implemented in kagome::crypto::Sr25519ProviderImpl.
virtual outcome::result<bool> kagome::crypto::Sr25519Provider::verify |
( |
const Sr25519Signature & |
signature, |
|
|
gsl::span< const uint8_t > |
message, |
|
|
const Sr25519PublicKey & |
public_key |
|
) |
| const |
|
pure virtual |
virtual outcome::result<bool> kagome::crypto::Sr25519Provider::verify_deprecated |
( |
const Sr25519Signature & |
signature, |
|
|
gsl::span< const uint8_t > |
message, |
|
|
const Sr25519PublicKey & |
public_key |
|
) |
| const |
|
pure virtual |
The documentation for this class was generated from the following file: