diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-08-24 19:20:33 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-08-24 19:20:36 +0200 |
commit | c24a7e8fc0ff92c8ddab8907f574ea0fe3048c3f (patch) | |
tree | da4922f74780b9a04dd51ae16418c5c9f1bf161a /src/wallet/wallet2.h | |
parent | Merge pull request #380 (diff) | |
parent | wallet: encrypt the cache file (diff) | |
download | monero-c24a7e8fc0ff92c8ddab8907f574ea0fe3048c3f.tar.xz |
Merge pull request #381
f197599 wallet: encrypt the cache file (moneromooo-monero)
98c76a3 chacha8: add a key generation variant that take a pointer and size (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index abda1c54a..b04a920ce 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -134,6 +134,17 @@ namespace tools END_SERIALIZE() }; + struct cache_file_data + { + crypto::chacha8_iv iv; + std::string cache_data; + + BEGIN_SERIALIZE_OBJECT() + FIELD(iv) + FIELD(cache_data) + END_SERIALIZE() + }; + /*! * \brief Generates a wallet or restores one. * \param wallet_ Name of wallet file @@ -313,6 +324,7 @@ namespace tools void add_unconfirmed_tx(const cryptonote::transaction& tx, uint64_t change_amount); void generate_genesis(cryptonote::block& b); void check_genesis(const crypto::hash& genesis_hash) const; //throws + bool generate_chacha8_key_from_secret_keys(crypto::chacha8_key &key) const; cryptonote::account_base m_account; std::string m_daemon_address; |