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;
97 bool load(
const std::string& file_path);
98 bool store(
const std::string& file_path);
100 void forget_spend_key();
101 const std::vector<crypto::secret_key> &
get_multisig_keys()
const {
return m_keys.m_multisig_keys; }
103 void encrypt_keys(
const crypto::chacha_key &key) { m_keys.encrypt(key); }
104 void decrypt_keys(
const crypto::chacha_key &key) { m_keys.decrypt(key); }
108 template <
class t_archive>
112 a & m_creation_timestamp;
115 BEGIN_KV_SERIALIZE_MAP()
117 KV_SERIALIZE(m_creation_timestamp)
118 END_KV_SERIALIZE_MAP()
123 uint64_t m_creation_timestamp;
hw::device & get_device() const
Definition: account.h:90
uint64_t get_createtime() const
Definition: account.h:94
void encrypt_viewkey(const crypto::chacha_key &key)
Definition: account.h:105
void serialize(t_archive &a, const unsigned int)
Definition: account.h:109
void decrypt_viewkey(const crypto::chacha_key &key)
Definition: account.h:106
void set_device(hw::device &hwdev)
Definition: account.h:91
bool store(const std::string &file_path)
void encrypt_keys(const crypto::chacha_key &key)
Definition: account.h:103
void decrypt_keys(const crypto::chacha_key &key)
Definition: account.h:104
void set_createtime(uint64_t val)
Definition: account.h:95
bool load(const std::string &file_path)
const std::vector< crypto::secret_key > & get_multisig_keys() const
Definition: account.h:101
Definition: device.hpp:87
string a
Definition: MakeCryptoOps.py:15
const
Definition: build_protob.py:9
default
Definition: build_protob.py:9
crypto namespace.
Definition: crypto.cpp:60
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
Definition: crypto.h:67
POD_CLASS hash8
Definition: hash.h:51
POD_CLASS public_key
Definition: crypto.h:61
Holds cryptonote related classes and helpers.
Definition: blockchain_db.cpp:45
network_type
Definition: cryptonote_config.h:273
Definition: device.cpp:38
device & get_device(const std::string &device_descriptor)
Definition: device.cpp:95
crypto::secret_key m_view_secret_key
Definition: account.h:44
hw::device & get_device() const
Definition: account.cpp:56
crypto::secret_key m_spend_secret_key
Definition: account.h:43
crypto::chacha_iv m_encryption_iv
Definition: account.h:47
std::vector< crypto::secret_key > m_multisig_keys
Definition: account.h:45
hw::device * m_device
Definition: account.h:46
account_public_address m_account_address
Definition: account.h:42
void encrypt_viewkey(const crypto::chacha_key &key)
Definition: account.cpp:114
void xor_with_key_stream(const crypto::chacha_key &key)
Definition: account.cpp:87
const crypto::chacha_iv default_iv
Definition: account.h:54
void set_device(hw::device &hwdev)
Definition: account.cpp:60
void decrypt_viewkey(const crypto::chacha_key &key)
Definition: account.cpp:124
void decrypt(const crypto::chacha_key &key)
Definition: account.cpp:109
void encrypt(const crypto::chacha_key &key)
Definition: account.cpp:103
Definition: cryptonote_basic.h:501