wallet: wipe seed from memory where appropriate

This commit is contained in:
moneromooo-monero
2018-07-07 00:03:15 +01:00
parent b780cf4db1
commit ea37614efe
19 changed files with 653 additions and 144 deletions

View File

@@ -733,10 +733,10 @@ bool WalletImpl::close(bool store)
std::string WalletImpl::seed() const
{
std::string seed;
epee::wipeable_string seed;
if (m_wallet)
m_wallet->get_seed(seed);
return seed;
return std::string(seed.data(), seed.size()); // TODO
}
std::string WalletImpl::getSeedLanguage() const