|
Kagome
Polkadot Runtime Engine in C++17
|
#include <crypto_suites.hpp>
Public Member Functions | |
| Ed25519Suite (std::shared_ptr< Ed25519Provider > ed_provider) | |
| ~Ed25519Suite () override=default | |
| outcome::result< Ed25519KeypairAndSeed > | generateRandomKeypair () const noexceptoverride |
| outcome::result< Ed25519Keypair > | generateKeypair (const Ed25519Seed &seed) const noexceptoverride |
| Ed25519Keypair | composeKeypair (PublicKey pub, PrivateKey priv) const noexceptoverride |
| std::pair< PublicKey, PrivateKey > | decomposeKeypair (const Ed25519Keypair &kp) const noexceptoverride |
| outcome::result< PublicKey > | toPublicKey (gsl::span< const uint8_t > bytes) const noexceptoverride |
| outcome::result< Seed > | toSeed (gsl::span< const uint8_t > bytes) const noexceptoverride |
Public Member Functions inherited from kagome::crypto::CryptoSuite< Ed25519PublicKey, Ed25519PrivateKey, Ed25519Keypair, Ed25519KeypairAndSeed, Ed25519Seed > | |
| virtual | ~CryptoSuite ()=default |
Private Attributes | |
| std::shared_ptr< Ed25519Provider > | ed_provider_ |
Additional Inherited Members | |
Public Types inherited from kagome::crypto::CryptoSuite< Ed25519PublicKey, Ed25519PrivateKey, Ed25519Keypair, Ed25519KeypairAndSeed, Ed25519Seed > | |
| using | PublicKey = Ed25519PublicKey |
| using | PrivateKey = Ed25519PrivateKey |
| using | Keypair = Ed25519Keypair |
| using | KeypairAndSeed = Ed25519KeypairAndSeed |
| using | Seed = Ed25519Seed |
Definition at line 125 of file crypto_suites.hpp.
|
inlineexplicit |
Definition at line 131 of file crypto_suites.hpp.
|
overridedefault |
|
inlineoverridevirtualnoexcept |
Create a keypair from a public key and a private key
Definition at line 148 of file crypto_suites.hpp.
|
inlineoverridevirtualnoexcept |
Extrace the private key and the public key from a keypair
Definition at line 154 of file crypto_suites.hpp.
|
inlineoverridevirtualnoexcept |
Genereate a keypair from
| seed | (mind that in some algorithms a seed is a private key) |
Definition at line 143 of file crypto_suites.hpp.
|
inlineoverridevirtualnoexcept |
Generate a random keypair (randomness source is determined by an underlying crypto provider)
Definition at line 138 of file crypto_suites.hpp.
|
inlineoverridevirtualnoexcept |
Create a public key from its bytes
Definition at line 159 of file crypto_suites.hpp.
|
inlineoverridevirtualnoexcept |
Create a seed from its bytes
Definition at line 165 of file crypto_suites.hpp.
|
private |
Definition at line 171 of file crypto_suites.hpp.