35 #include "serialization/keyvalue_serialization.h" 49 BEGIN_KV_SERIALIZE_MAP()
56 END_KV_SERIALIZE_MAP()
80 void create_from_device(
const std::string &device_name);
87 std::string get_public_address_str(
network_type nettype)
const;
96 bool load(
const std::string& file_path);
97 bool store(
const std::string& file_path);
99 void forget_spend_key();
100 const std::vector<crypto::secret_key> &
get_multisig_keys()
const {
return m_keys.m_multisig_keys; }
102 void encrypt_keys(
const crypto::chacha_key &key) { m_keys.encrypt(key); }
103 void decrypt_keys(
const crypto::chacha_key &key) { m_keys.decrypt(key); }
107 template <
class t_archive>
111 a & m_creation_timestamp;
114 BEGIN_KV_SERIALIZE_MAP()
116 KV_SERIALIZE(m_creation_timestamp)
117 END_KV_SERIALIZE_MAP()
122 uint64_t m_creation_timestamp;
void encrypt_viewkey(const crypto::chacha_key &key)
Definition: account.cpp:116
void decrypt_viewkey(const crypto::chacha_key &key)
Definition: account.cpp:126
crypto namespace.
Definition: crypto.cpp:59
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
Definition: crypto.h:69
const crypto::chacha_iv default_iv
Definition: account.h:54
void encrypt_keys(const crypto::chacha_key &key)
Definition: account.h:102
Holds cryptonote related classes and helpers.
Definition: db_bdb.cpp:224
crypto::chacha_iv m_encryption_iv
Definition: account.h:47
void decrypt_keys(const crypto::chacha_key &key)
Definition: account.h:103
hw::device & get_device() const
Definition: account.h:90
device & get_device(const std::string &device_descriptor)
Definition: device.cpp:82
void serialize(t_archive &a, const unsigned int)
Definition: account.h:108
void load(Archive &a, std::unordered_map< h_key, hval > &x, const boost::serialization::version_type ver)
Definition: unordered_containers_boost_serialization.h:54
Definition: device.cpp:38
Definition: device.hpp:82
hw::device * m_device
Definition: account.h:46
void set_createtime(uint64_t val)
Definition: account.h:94
void encrypt(const crypto::chacha_key &key)
Definition: account.cpp:105
POD_CLASS public_key
Definition: crypto.h:63
void set_device(hw::device &hwdev)
Definition: account.h:91
crypto::secret_key m_view_secret_key
Definition: account.h:44
account_public_address m_account_address
Definition: account.h:42
network_type
Definition: cryptonote_config.h:204
Definition: cryptonote_basic.h:400
POD_CLASS hash8
Definition: hash.h:52
void xor_with_key_stream(const crypto::chacha_key &key)
Definition: account.cpp:89
crypto::secret_key m_spend_secret_key
Definition: account.h:43
string a
Definition: MakeCryptoOps.py:15
void set_device(hw::device &hwdev)
Definition: account.cpp:62
std::vector< crypto::secret_key > m_multisig_keys
Definition: account.h:45
void decrypt(const crypto::chacha_key &key)
Definition: account.cpp:111
uint64_t get_createtime() const
Definition: account.h:93
const std::vector< crypto::secret_key > & get_multisig_keys() const
Definition: account.h:100
hw::device & get_device() const
Definition: account.cpp:58
void encrypt_viewkey(const crypto::chacha_key &key)
Definition: account.h:104
void decrypt_viewkey(const crypto::chacha_key &key)
Definition: account.h:105