diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-06-11 10:26:58 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-06-11 10:27:00 +0200 |
commit | 5bee2d2edfee201668269cd03381ad416ce95d75 (patch) | |
tree | e27d2b3f60ebe0c59feb677e70db99719dcee25d /src/cryptonote_core/account.cpp | |
parent | Merge pull request #306 (diff) | |
parent | wallet: add watch only wallet support (diff) | |
download | monero-5bee2d2edfee201668269cd03381ad416ce95d75.tar.xz |
Merge pull request #303
c882af6 wallet: add watch only wallet support (moneromooo-monero)
f7767c6 account: add a forget_spend_key method (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/account.cpp')
-rw-r--r-- | src/cryptonote_core/account.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/account.cpp b/src/cryptonote_core/account.cpp index a4de8fb25..55e368836 100644 --- a/src/cryptonote_core/account.cpp +++ b/src/cryptonote_core/account.cpp @@ -59,6 +59,11 @@ DISABLE_VS_WARNINGS(4244 4345) m_keys = account_keys(); } //----------------------------------------------------------------- + void account_base::forget_spend_key() + { + m_keys.m_spend_secret_key = crypto::secret_key(); + } + //----------------------------------------------------------------- crypto::secret_key account_base::generate(const crypto::secret_key& recovery_key, bool recover, bool two_random) { crypto::secret_key first = generate_keys(m_keys.m_account_address.m_spend_public_key, m_keys.m_spend_secret_key, recovery_key, recover); |