aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.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/wallet/wallet2.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/wallet/wallet2.h')
-rw-r--r--src/wallet/wallet2.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index 4a07de8d1..cae21463e 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -146,6 +146,15 @@ namespace tools
const crypto::secret_key& recovery_param = crypto::secret_key(), bool recover = false,
bool two_random = false);
/*!
+ * \brief Creates a watch only wallet from a public address and a view secret key.
+ * \param wallet_ Name of wallet file
+ * \param password Password of wallet file
+ * \param viewkey view secret key
+ */
+ void generate(const std::string& wallet, const std::string& password,
+ const cryptonote::account_public_address &account_public_address,
+ const crypto::secret_key& viewkey = crypto::secret_key());
+ /*!
* \brief Rewrites to the wallet file for wallet upgrade (doesn't generate key, assumes it's already there)
* \param wallet_name Name of wallet file (should exist)
* \param password Password for wallet file