Kagome
Polkadot Runtime Engine in C++17
kagome::crypto::DevMnemonicPhrase Class Reference

#include <dev_mnemonic_phrase.hpp>

Collaboration diagram for kagome::crypto::DevMnemonicPhrase:

Public Member Functions

template<typename Seed >
std::optional< Seed > find (std::string_view mnemonic_phrase) const
 

Static Public Member Functions

static const DevMnemonicPhraseget ()
 

Public Attributes

const std::string alice
 
const std::string bob
 
const std::string charlie
 
const std::string dave
 
const std::string eve
 
const std::string ferdie
 

Private Member Functions

 DevMnemonicPhrase ()
 
std::string precompute (std::string_view junctions, std::string_view ed25519_seed, std::string_view sr25519_seed)
 

Private Attributes

std::map< std::string, std::pair< Ed25519Seed, Sr25519Seed >, std::less<> > precomputed
 

Static Private Attributes

static constexpr std::string_view kWords
 

Detailed Description

Definition at line 16 of file dev_mnemonic_phrase.hpp.

Constructor & Destructor Documentation

kagome::crypto::DevMnemonicPhrase::DevMnemonicPhrase ( )
inlineprivate

Definition at line 25 of file dev_mnemonic_phrase.hpp.

Member Function Documentation

template<typename Seed >
std::optional<Seed> kagome::crypto::DevMnemonicPhrase::find ( std::string_view  mnemonic_phrase) const
inline

Definition at line 72 of file dev_mnemonic_phrase.hpp.

static const DevMnemonicPhrase& kagome::crypto::DevMnemonicPhrase::get ( )
inlinestatic

Definition at line 66 of file dev_mnemonic_phrase.hpp.

std::string kagome::crypto::DevMnemonicPhrase::precompute ( std::string_view  junctions,
std::string_view  ed25519_seed,
std::string_view  sr25519_seed 
)
inlineprivate

Definition at line 53 of file dev_mnemonic_phrase.hpp.

Member Data Documentation

const std::string kagome::crypto::DevMnemonicPhrase::alice

Definition at line 89 of file dev_mnemonic_phrase.hpp.

const std::string kagome::crypto::DevMnemonicPhrase::bob

Definition at line 90 of file dev_mnemonic_phrase.hpp.

const std::string kagome::crypto::DevMnemonicPhrase::charlie

Definition at line 91 of file dev_mnemonic_phrase.hpp.

const std::string kagome::crypto::DevMnemonicPhrase::dave

Definition at line 92 of file dev_mnemonic_phrase.hpp.

const std::string kagome::crypto::DevMnemonicPhrase::eve

Definition at line 93 of file dev_mnemonic_phrase.hpp.

const std::string kagome::crypto::DevMnemonicPhrase::ferdie

Definition at line 94 of file dev_mnemonic_phrase.hpp.

constexpr std::string_view kagome::crypto::DevMnemonicPhrase::kWords
staticprivate
Initial value:
=
"bottom drive obey lake curtain smoke basket hold race lonely fit walk"

Definition at line 17 of file dev_mnemonic_phrase.hpp.

std::map<std::string, std::pair<Ed25519Seed, Sr25519Seed>, std::less<> > kagome::crypto::DevMnemonicPhrase::precomputed
private

Definition at line 22 of file dev_mnemonic_phrase.hpp.


The documentation for this class was generated from the following file: