aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/electrum-words.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-10-15 12:14:44 +0200
committerRiccardo Spagni <ric@spagni.net>2014-10-15 12:14:49 +0200
commitdb5ca73fdde97ed680ef538034fb5210b45a43d4 (patch)
tree4b6d29ec984b3d7a2b06e5264249b065e71f01d8 /src/mnemonics/electrum-words.h
parentMerge pull request #174 (diff)
parentAdded unit test. Fails for Japanese for some reason. (diff)
downloadmonero-db5ca73fdde97ed680ef538034fb5210b45a43d4.tar.xz
Merge pull request #176
b94b8cd Added unit test. Fails for Japanese for some reason. (Oran Juice) 4c8a628 Remove iostream header put in during testing (Oran Juice) 9875f5b Variable unique prefix lengths for seed (Oran Juice)
Diffstat (limited to 'src/mnemonics/electrum-words.h')
-rw-r--r--src/mnemonics/electrum-words.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mnemonics/electrum-words.h b/src/mnemonics/electrum-words.h
index b822e7740..b75de30e9 100644
--- a/src/mnemonics/electrum-words.h
+++ b/src/mnemonics/electrum-words.h
@@ -59,6 +59,7 @@ namespace crypto
namespace ElectrumWords
{
+ const int seed_length = 24;
const std::string old_language_name = "OldEnglish";
/*!
* \brief Converts seed words to bytes (secret key).
@@ -67,7 +68,7 @@ namespace crypto
* \param language_name Language of the seed as found gets written here.
* \return false if not a multiple of 3 words, or if word is not in the words list
*/
- bool words_to_bytes(const std::string& words, crypto::secret_key& dst,
+ bool words_to_bytes(std::string words, crypto::secret_key& dst,
std::string &language_name);
/*!