aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/electrum-words.cpp
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-06-04 18:59:47 -0400
committerThomas Winget <tewinget@gmail.com>2014-06-12 19:05:51 -0400
commit4f382b383005d09f6056371d0fecdc8b6ce37a08 (patch)
treeaf6a07f7b59bb432891ec0bf47772e3517a17c1d /src/crypto/electrum-words.cpp
parentadded vim swap files to .gitignore (diff)
downloadmonero-4f382b383005d09f6056371d0fecdc8b6ce37a08.tar.xz
most functions prototyped/modified for wallet recovery
Diffstat (limited to '')
-rw-r--r--src/crypto/electrum-words.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/crypto/electrum-words.cpp b/src/crypto/electrum-words.cpp
new file mode 100644
index 000000000..cb01c9203
--- /dev/null
+++ b/src/crypto/electrum-words.cpp
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+
+#include <string>
+#include <map>
+#include "crypto/crypto.h" // for declaration of crypto::secret_key
+
+#include "crypto/electrum-words.h"
+
+namespace crypto
+{
+ namespace ElectrumWords
+ {
+
+ bool words_to_bytes(const std::string& words, crypto::secret_key& dst)
+ {
+ return false;
+ }
+ bool bytes_to_words(const crypto::secret_key& src, std::string& words)
+ {
+ return false;
+ }
+
+ } // namespace ElectrumWords
+
+} // namespace crypto