36 #include "serialization/keyvalue_serialization.h"
50 BEGIN_KV_SERIALIZE_MAP()
57 END_KV_SERIALIZE_MAP()
81 void create_from_device(
const std::string &device_name);
88 std::string get_public_address_str(
network_type nettype)
const;
98 bool load(
const std::string& file_path);
99 bool store(
const std::string& file_path);
101 void forget_spend_key();
102 const std::vector<crypto::secret_key> &
get_multisig_keys()
const {
return m_keys.m_multisig_keys; }
104 void encrypt_keys(
const crypto::chacha_key &key) { m_keys.encrypt(key); }
105 void decrypt_keys(
const crypto::chacha_key &key) { m_keys.decrypt(key); }
109 template <
class t_archive>
113 a & m_creation_timestamp;
116 BEGIN_KV_SERIALIZE_MAP()
118 KV_SERIALIZE(m_creation_timestamp)
119 END_KV_SERIALIZE_MAP()
124 uint64_t m_creation_timestamp;
hw::device & get_device() const
Definition: account.h:91
uint64_t get_createtime() const
Definition: account.h:95
void encrypt_viewkey(const crypto::chacha_key &key)
Definition: account.h:106
void serialize(t_archive &a, const unsigned int)
Definition: account.h:110
void decrypt_viewkey(const crypto::chacha_key &key)
Definition: account.h:107
void set_device(hw::device &hwdev)
Definition: account.h:92
bool store(const std::string &file_path)
void encrypt_keys(const crypto::chacha_key &key)
Definition: account.h:104
void decrypt_keys(const crypto::chacha_key &key)
Definition: account.h:105
void set_createtime(uint64_t val)
Definition: account.h:96
bool load(const std::string &file_path)
const std::vector< crypto::secret_key > & get_multisig_keys() const
Definition: account.h:102
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:58
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
Definition: crypto.h:82
POD_CLASS hash8
Definition: hash.h:53
POD_CLASS public_key
Definition: crypto.h:76
Holds cryptonote related classes and helpers.
Definition: db_bdb.cpp:226
network_type
Definition: cryptonote_config.h:243
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:45
hw::device & get_device() const
Definition: account.cpp:59
crypto::secret_key m_spend_secret_key
Definition: account.h:44
crypto::chacha_iv m_encryption_iv
Definition: account.h:48
std::vector< crypto::secret_key > m_multisig_keys
Definition: account.h:46
hw::device * m_device
Definition: account.h:47
account_public_address m_account_address
Definition: account.h:43
void encrypt_viewkey(const crypto::chacha_key &key)
Definition: account.cpp:117
void xor_with_key_stream(const crypto::chacha_key &key)
Definition: account.cpp:90
const crypto::chacha_iv default_iv
Definition: account.h:55
void set_device(hw::device &hwdev)
Definition: account.cpp:63
void decrypt_viewkey(const crypto::chacha_key &key)
Definition: account.cpp:127
void decrypt(const crypto::chacha_key &key)
Definition: account.cpp:112
void encrypt(const crypto::chacha_key &key)
Definition: account.cpp:106
Definition: cryptonote_basic.h:453