23 std::string_view word)
const {
38 return "word not found";
40 return "unknown DictionaryError error";
outcome::result< EntropyToken > findValue(std::string_view word) const
looks for word in dictionary
OUTCOME_CPP_DEFINE_CATEGORY(kagome::crypto::bip39, DictionaryError, error)
std::unordered_map< std::string_view, EntropyToken > entropy_map_
constexpr std::array< std::string_view, 2048 > dictionary
words are taken from https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md
void initialize()
initializes dictionary