| 
    Kagome
    
   Polkadot Runtime Engine in C++17 
   | 
 
#include <crypto_suites.hpp>
Public Member Functions | |
| Sr25519Suite (std::shared_ptr< Sr25519Provider > sr_provider) | |
| ~Sr25519Suite () override=default | |
| outcome::result< Sr25519KeypairAndSeed > | generateRandomKeypair () const noexceptoverride | 
| outcome::result< Sr25519Keypair > | generateKeypair (const Sr25519Seed &seed) const noexceptoverride | 
| Sr25519Keypair | composeKeypair (PublicKey pub, PrivateKey priv) const noexceptoverride | 
| std::pair< PublicKey, PrivateKey > | decomposeKeypair (const Sr25519Keypair &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< Sr25519PublicKey, Sr25519SecretKey, Sr25519Keypair, Sr25519KeypairAndSeed, Sr25519Seed > | |
| virtual | ~CryptoSuite ()=default | 
Private Attributes | |
| std::shared_ptr< Sr25519Provider > | sr_provider_ | 
Additional Inherited Members | |
  Public Types inherited from kagome::crypto::CryptoSuite< Sr25519PublicKey, Sr25519SecretKey, Sr25519Keypair, Sr25519KeypairAndSeed, Sr25519Seed > | |
| using | PublicKey = Sr25519PublicKey | 
| using | PrivateKey = Sr25519SecretKey | 
| using | Keypair = Sr25519Keypair | 
| using | KeypairAndSeed = Sr25519KeypairAndSeed | 
| using | Seed = Sr25519Seed | 
Definition at line 174 of file crypto_suites.hpp.
      
  | 
  inlineexplicit | 
Definition at line 180 of file crypto_suites.hpp.
      
  | 
  overridedefault | 
      
  | 
  inlineoverridevirtualnoexcept | 
Create a keypair from a public key and a private key
Definition at line 197 of file crypto_suites.hpp.
      
  | 
  inlineoverridevirtualnoexcept | 
Extrace the private key and the public key from a keypair
Definition at line 203 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 192 of file crypto_suites.hpp.
      
  | 
  inlineoverridevirtualnoexcept | 
Generate a random keypair (randomness source is determined by an underlying crypto provider)
Definition at line 187 of file crypto_suites.hpp.
      
  | 
  inlineoverridevirtualnoexcept | 
Create a public key from its bytes
Definition at line 208 of file crypto_suites.hpp.
      
  | 
  inlineoverridevirtualnoexcept | 
Create a seed from its bytes
Definition at line 214 of file crypto_suites.hpp.
      
  | 
  private | 
Definition at line 220 of file crypto_suites.hpp.