Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
containers
crypto
bip39
impl
wordlist
bip39_provider.hpp
bip39_types.hpp
dictionary.cpp
dictionary.hpp
entropy_accumulator.cpp
entropy_accumulator.hpp
mnemonic.cpp
mnemonic.hpp
blake2
crypto_store
ecdsa
ed25519
hasher
keccak
pbkdf2
random_generator
secp256k1
sha
sr25519
twox
vrf
crypto_store.hpp
ecdsa_provider.hpp
ecdsa_types.cpp
ecdsa_types.hpp
ed25519_provider.hpp
ed25519_types.cpp
ed25519_types.hpp
hasher.hpp
random_generator.hpp
secp256k1_provider.hpp
secp256k1_types.hpp
sr25519_provider.hpp
sr25519_types.cpp
sr25519_types.hpp
vrf_provider.hpp
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
dictionary.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CRYPTO_BIP39_DICTIONARIES_HPP
7
#define KAGOME_CRYPTO_BIP39_DICTIONARIES_HPP
8
9
#include "
crypto/bip39/entropy_accumulator.hpp
"
10
#include "
outcome/outcome.hpp
"
11
12
#include <unordered_map>
13
14
namespace
kagome::crypto::bip39
{
15
16
enum class
DictionaryError
{
17
ENTRY_NOT_FOUND
= 1,
18
};
19
24
class
Dictionary
{
25
public
:
29
void
initialize();
30
36
outcome::result<EntropyToken> findValue(std::string_view word)
const
;
37
38
private
:
39
std::unordered_map<std::string_view, EntropyToken>
entropy_map_
;
40
};
41
}
// namespace kagome::crypto::bip39
42
43
OUTCOME_HPP_DECLARE_ERROR
(
kagome::crypto::bip39
,
DictionaryError
);
44
45
#endif // KAGOME_CRYPTO_BIP39_DICTIONARIES_HPP
OUTCOME_HPP_DECLARE_ERROR
OUTCOME_HPP_DECLARE_ERROR(kagome::crypto::bip39, DictionaryError)
kagome::crypto::bip39::Dictionary::entropy_map_
std::unordered_map< std::string_view, EntropyToken > entropy_map_
Definition:
dictionary.hpp:39
kagome::crypto::bip39::Dictionary
Definition:
dictionary.hpp:24
outcome.hpp
kagome::crypto::bip39::DictionaryError
DictionaryError
Definition:
dictionary.hpp:16
kagome::crypto::bip39
Definition:
bip39_types.hpp:11
kagome::crypto::bip39::DictionaryError::ENTRY_NOT_FOUND
entropy_accumulator.hpp
core
crypto
bip39
dictionary.hpp
Generated by
1.8.11