diff options
author | Thomas Winget <tewinget@gmail.com> | 2014-06-04 18:59:47 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2014-06-12 19:05:51 -0400 |
commit | 4f382b383005d09f6056371d0fecdc8b6ce37a08 (patch) | |
tree | af6a07f7b59bb432891ec0bf47772e3517a17c1d /src/simplewallet/simplewallet.h | |
parent | added vim swap files to .gitignore (diff) | |
download | monero-4f382b383005d09f6056371d0fecdc8b6ce37a08.tar.xz |
most functions prototyped/modified for wallet recovery
Diffstat (limited to 'src/simplewallet/simplewallet.h')
-rw-r--r-- | src/simplewallet/simplewallet.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h index 3dcaaeaa0..d1f9fe98b 100644 --- a/src/simplewallet/simplewallet.h +++ b/src/simplewallet/simplewallet.h @@ -13,6 +13,7 @@ #include "wallet/wallet2.h" #include "console_handler.h" #include "password_container.h" +#include "crypto/crypto.h" // for definition of crypto::secret_key namespace cryptonote @@ -39,7 +40,9 @@ namespace cryptonote bool run_console_handler(); - bool new_wallet(const std::string &wallet_file, const std::string& password); + bool parse_electrum(); + + bool new_wallet(const std::string &wallet_file, const std::string& password, const crypto::secret_key& recovery_key = crypto::secret_key(), bool recover = false); bool open_wallet(const std::string &wallet_file, const std::string& password); bool close_wallet(); @@ -125,6 +128,11 @@ namespace cryptonote std::string m_generate_new; std::string m_import_path; + std::string m_electrum_seed; // electrum-style seed parameter + + crypto::secret_key m_recovery_key; // recovery key (used as random for wallet gen) + bool m_recover; // recover flag + std::string m_daemon_address; std::string m_daemon_host; int m_daemon_port; |