Kagome
Polkadot Runtime Engine in C++17
|
#include <dictionary.hpp>
Public Member Functions | |
void | initialize () |
initializes dictionary More... | |
outcome::result< EntropyToken > | findValue (std::string_view word) const |
looks for word in dictionary More... | |
Private Attributes | |
std::unordered_map< std::string_view, EntropyToken > | entropy_map_ |
provides correspondence between mnemonic words and entropy value. Only english dictionary is supported for now
Definition at line 24 of file dictionary.hpp.
outcome::result< EntropyToken > kagome::crypto::bip39::Dictionary::findValue | ( | std::string_view | word | ) | const |
looks for word in dictionary
word | word to look for |
Definition at line 22 of file dictionary.cpp.
void kagome::crypto::bip39::Dictionary::initialize | ( | ) |
initializes dictionary
Definition at line 14 of file dictionary.cpp.
|
private |
Definition at line 39 of file dictionary.hpp.