|
Electroneum
|
Mnemonic seed word generation and wallet restoration helper functions. More...
Functions | |
| std::vector< const Language::Base * > | get_language_list () |
| bool | words_to_bytes (const epee::wipeable_string &words, epee::wipeable_string &dst, size_t len, bool duplicate, std::string &language_name) |
| Converts seed words to bytes (secret key). More... | |
| bool | words_to_bytes (const epee::wipeable_string &words, crypto::secret_key &dst, std::string &language_name) |
| Converts seed words to bytes (secret key). More... | |
| bool | bytes_to_words (const char *src, size_t len, epee::wipeable_string &words, const std::string &language_name) |
| Converts bytes (secret key) to seed words. More... | |
| bool | bytes_to_words (const crypto::secret_key &src, epee::wipeable_string &words, const std::string &language_name) |
| Converts bytes (secret key) to seed words. More... | |
| void | get_language_list (std::vector< std::string > &languages, bool english) |
| Gets a list of seed languages that are supported. More... | |
| bool | get_is_old_style_seed (const epee::wipeable_string &seed) |
| Tells if the seed passed is an old style seed or not. More... | |
| std::string | get_english_name_for (const std::string &name) |
| Returns the name of a language in English. 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 char * | src, |
| size_t | len, | ||
| epee::wipeable_string & | words, | ||
| const std::string & | language_name | ||
| ) |
Converts bytes (secret key) to seed words.
Converts bytes to seed words.
| src | Secret key |
| words | Space delimited concatenated words get written here. |
| language_name | Seed language name |
| src | Secret data |
| len | Secret data length in bytes (positive multiples of 4 only) |
| words | Space delimited concatenated words get written here. |
| language_name | Seed language name |
Definition at line 383 of file electrum-words.cpp.


| bool crypto::ElectrumWords::bytes_to_words | ( | const crypto::secret_key & | src, |
| epee::wipeable_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 |
Definition at line 433 of file electrum-words.cpp.

| std::string crypto::ElectrumWords::get_english_name_for | ( | const std::string & | name | ) |
Returns the name of a language in English.
| name | the name of the language in its own language |
Definition at line 484 of file electrum-words.cpp.

| bool crypto::ElectrumWords::get_is_old_style_seed | ( | const epee::wipeable_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) |
Definition at line 477 of file electrum-words.cpp.

| std::vector< const Language::Base * > crypto::ElectrumWords::get_language_list | ( | ) |
Definition at line 439 of file electrum-words.cpp.


| void crypto::ElectrumWords::get_language_list | ( | std::vector< std::string > & | languages, |
| bool | english | ||
| ) |
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. |
| english | whether to get the names in English or the language language |
Definition at line 462 of file electrum-words.cpp.

| bool crypto::ElectrumWords::words_to_bytes | ( | const epee::wipeable_string & | words, |
| epee::wipeable_string & | dst, | ||
| size_t | len, | ||
| bool | duplicate, | ||
| std::string & | language_name | ||
| ) |
Converts seed words to bytes (secret key).
| words | String containing the words separated by spaces. |
| dst | To put the secret data restored from the words. |
| len | The number of bytes to expect, 0 if unknown |
| duplicate | If true and len is not zero, we accept half the data, and duplicate it |
| language_name | Language of the seed as found gets written here. |
Definition at line 266 of file electrum-words.cpp.


| bool crypto::ElectrumWords::words_to_bytes | ( | const epee::wipeable_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. |
Definition at line 358 of file electrum-words.cpp.

| const std::string crypto::ElectrumWords::old_language_name = "EnglishOld" |
Definition at line 65 of file electrum-words.h.
| const int crypto::ElectrumWords::seed_length = 24 |
Definition at line 64 of file electrum-words.h.