#include <sr25519_provider_impl.hpp>
|
| using | CSPRNG = libp2p::crypto::random::CSPRNG |
| |
Definition at line 18 of file sr25519_provider_impl.hpp.
| kagome::crypto::Sr25519ProviderImpl::Sr25519ProviderImpl |
( |
std::shared_ptr< CSPRNG > |
generator | ) |
|
|
explicit |
| kagome::crypto::Sr25519ProviderImpl::~Sr25519ProviderImpl |
( |
| ) |
|
|
overridedefault |
| Sr25519Keypair kagome::crypto::Sr25519ProviderImpl::generateKeypair |
( |
const Sr25519Seed & |
seed | ) |
const |
|
overridevirtual |
| outcome::result< Sr25519Signature > kagome::crypto::Sr25519ProviderImpl::sign |
( |
const Sr25519Keypair & |
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 secret sr25519 keys |
| message | bytes to be signed |
- Returns
- signed message
Implements kagome::crypto::Sr25519Provider.
Definition at line 39 of file sr25519_provider_impl.cpp.
| outcome::result< bool > kagome::crypto::Sr25519ProviderImpl::verify |
( |
const Sr25519Signature & |
signature, |
|
|
gsl::span< const uint8_t > |
message, |
|
|
const Sr25519PublicKey & |
public_key |
|
) |
| const |
|
overridevirtual |
| outcome::result< bool > kagome::crypto::Sr25519ProviderImpl::verify_deprecated |
( |
const Sr25519Signature & |
signature, |
|
|
gsl::span< const uint8_t > |
message, |
|
|
const Sr25519PublicKey & |
public_key |
|
) |
| const |
|
overridevirtual |
| std::shared_ptr<CSPRNG> kagome::crypto::Sr25519ProviderImpl::generator_ |
|
private |
The documentation for this class was generated from the following files: