aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-06-20 12:31:53 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-06-20 17:33:14 +0100
commitdc4dbc1cebc51e2567572c33571f943c0e30cc38 (patch)
treea3662b1314aed172190deb070dc3578080d5568f /src/simplewallet/simplewallet.h
parentaccount: allow creating an account from a public address and view secret key (diff)
downloadmonero-dc4dbc1cebc51e2567572c33571f943c0e30cc38.tar.xz
simplewallet: allow creating a wallet from a public address and view secret key
The needed information is supplied via a triple: --generate-from-view-key address:viewkey:filename
Diffstat (limited to 'src/simplewallet/simplewallet.h')
-rw-r--r--src/simplewallet/simplewallet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h
index bc100f507..2b8ca0ed2 100644
--- a/src/simplewallet/simplewallet.h
+++ b/src/simplewallet/simplewallet.h
@@ -76,6 +76,8 @@ namespace cryptonote
bool new_wallet(const std::string &wallet_file, const std::string& password, const crypto::secret_key& recovery_key,
bool recover, bool two_random, bool testnet, const std::string &old_language);
+ bool new_wallet(const std::string &wallet_file, const std::string& password, const cryptonote::account_public_address& address,
+ const crypto::secret_key& viewkey, bool testnet);
bool open_wallet(const std::string &wallet_file, const std::string& password, bool testnet);
bool close_wallet();
@@ -194,6 +196,7 @@ namespace cryptonote
private:
std::string m_wallet_file;
std::string m_generate_new;
+ std::string m_generate_from_view_key;
std::string m_import_path;
std::string m_electrum_seed; // electrum-style seed parameter