|
Electroneum
|
Mnemonic seed word generation and wallet restoration helper functions. More...
Functions | |
| bool | words_to_bytes (std::string words, crypto::secret_key &dst, std::string &language_name) |
| Converts seed words to bytes (secret key). More... | |
| bool | 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 | get_language_list (std::vector< std::string > &languages) |
| Gets a list of seed languages that are supported. More... | |
| bool | get_is_old_style_seed (std::string seed) |
| Tells if the seed passed is an old style seed or not. More... | |
Variables | |
| const int | seed_length = 24 |
| const std::string | old_language_name = "EnglishOld" |
Mnemonic seed word generation and wallet restoration helper functions.
| 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.
| src | Secret key |
| words | Space delimited concatenated words get written here. |
| language_name | Seed language name |
| bool crypto::ElectrumWords::get_is_old_style_seed | ( | std::string | seed | ) |
Tells if the seed passed is an old style seed or not.
| seed | The seed to check (a space delimited concatenated word list) |
| void crypto::ElectrumWords::get_language_list | ( | std::vector< std::string > & | languages | ) |
Gets a list of seed languages that are supported.
| languages | The vector is set to the list of languages. |
| languages | A vector is set to the list of languages. |
| bool crypto::ElectrumWords::words_to_bytes | ( | std::string | words, |
| crypto::secret_key & | dst, | ||
| std::string & | language_name | ||
| ) |
Converts seed words to bytes (secret key).
| words | String containing the words separated by spaces. |
| dst | To put the secret key restored from the words. |
| language_name | Language of the seed as found gets written here. |
| const std::string crypto::ElectrumWords::old_language_name = "EnglishOld" |
| const int crypto::ElectrumWords::seed_length = 24 |
1.8.14