Merge pull request #303

c882af6 wallet: add watch only wallet support (moneromooo-monero)
f7767c6 account: add a forget_spend_key method (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2015-06-11 10:26:58 +02:00
commit 5bee2d2edf
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
6 changed files with 91 additions and 7 deletions

View file

@ -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);

View file

@ -67,6 +67,8 @@ namespace cryptonote
bool load(const std::string& file_path);
bool store(const std::string& file_path);
void forget_spend_key();
template <class t_archive>
inline void serialize(t_archive &a, const unsigned int /*ver*/)
{