aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/electrum-words.h
diff options
context:
space:
mode:
authorOran Juice <oranjuices@hotmail.com>2014-10-08 00:44:26 +0530
committerOran Juice <oranjuices@hotmail.com>2014-10-08 00:44:26 +0530
commitb94b8cd7981fb2278aee1990eb8f13be4705fe52 (patch)
tree95f5b143d64ad4cc7d8070e931f955aadee6608b /src/mnemonics/electrum-words.h
parentRemove iostream header put in during testing (diff)
downloadmonero-b94b8cd7981fb2278aee1990eb8f13be4705fe52.tar.xz
Added unit test. Fails for Japanese for some reason.
Diffstat (limited to '')
-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);
/*!