|
Electroneum
|
Mnemonic seed generation and wallet restoration from them. More...
#include <string>#include <cassert>#include <map>#include <cstdint>#include <vector>#include <unordered_map>#include <boost/algorithm/string.hpp>#include "crypto/crypto.h"#include <fstream>#include "mnemonics/electrum-words.h"#include <stdexcept>#include <boost/filesystem.hpp>#include <boost/crc.hpp>#include <boost/algorithm/string/join.hpp>#include "chinese_simplified.h"#include "english.h"#include "dutch.h"#include "french.h"#include "italian.h"#include "german.h"#include "spanish.h"#include "portuguese.h"#include "japanese.h"#include "russian.h"#include "esperanto.h"#include "english_old.h"#include "language_base.h"#include "singleton.h"
Namespaces | |
| anonymous_namespace{electrum-words.cpp} | |
| crypto | |
| crypto namespace. | |
| crypto::ElectrumWords | |
| Mnemonic seed word generation and wallet restoration helper functions. | |
Functions | |
| uint32_t | anonymous_namespace{electrum-words.cpp}::create_checksum_index (const std::vector< std::string > &word_list, uint32_t unique_prefix_length) |
| Creates a checksum index in the word list array on the list of words. More... | |
| bool | anonymous_namespace{electrum-words.cpp}::checksum_test (std::vector< std::string > seed, uint32_t unique_prefix_length) |
| Does the checksum test on the seed passed. More... | |
| bool | anonymous_namespace{electrum-words.cpp}::find_seed_language (const std::vector< std::string > &seed, bool has_checksum, std::vector< uint32_t > &matched_indices, Language::Base **language) |
| Finds the word list that contains the seed words and puts the indices where matches occured in matched_indices. More... | |
| bool | crypto::ElectrumWords::words_to_bytes (std::string words, crypto::secret_key &dst, std::string &language_name) |
| Converts seed words to bytes (secret key). More... | |
| bool | crypto::ElectrumWords::bytes_to_words (const crypto::secret_key &src, std::string &words, const std::string &language_name) |
| Converts bytes (secret key) to seed words. More... | |
| void | crypto::ElectrumWords::get_language_list (std::vector< std::string > &languages) |
| Gets a list of seed languages that are supported. More... | |
| bool | crypto::ElectrumWords::get_is_old_style_seed (std::string seed) |
| Tells if the seed passed is an old style seed or not. More... | |
Mnemonic seed generation and wallet restoration from them.
This file and its header file are for translating Electrum-style word lists into their equivalent byte representations for cross-compatibility with that method of "backing up" one's wallet keys.
1.8.14