78 void create_from_device(
const std::string &device_name);
84 std::string get_public_address_str(
network_type nettype)
const;
94 bool load(
const std::string& file_path);
95 bool store(
const std::string& file_path);
97 void forget_spend_key();
98 const std::vector<crypto::secret_key> &
get_multisig_keys()
const {
return m_keys.m_multisig_keys; }
105 template <
class t_archive>
109 a & m_creation_timestamp;
120 uint64_t m_creation_timestamp;
uint64_t get_createtime() const
Definition: account.h:91
void encrypt_viewkey(const crypto::chacha_key &key)
Definition: account.h:102
void serialize(t_archive &a, const unsigned int)
Definition: account.h:106
void decrypt_viewkey(const crypto::chacha_key &key)
Definition: account.h:103
void set_device(hw::device &hwdev)
Definition: account.h:88
bool store(const std::string &file_path)
void encrypt_keys(const crypto::chacha_key &key)
Definition: account.h:100
void decrypt_keys(const crypto::chacha_key &key)
Definition: account.h:101
void set_createtime(uint64_t val)
Definition: account.h:92
const std::vector< crypto::secret_key > & get_multisig_keys() const
Definition: account.h:98
bool load(const std::string &file_path)
hw::device & get_device() const
Definition: account.h:87
Definition: device.hpp:87
crypto::secret_key spendkey
Definition: cold-outputs.cpp:44
const char * key
Definition: hmac_keccak.cpp:40
#define const
Definition: ipfrdr.c:80
#define KV_SERIALIZE(varialble)
Definition: keyvalue_serialization.h:118
#define KV_SERIALIZE_VAL_POD_AS_BLOB_FORCE(varialble)
Definition: keyvalue_serialization.h:121
#define KV_SERIALIZE_VAL_POD_AS_BLOB_OPT(varialble, def)
Definition: keyvalue_serialization.h:120
#define KV_SERIALIZE_CONTAINER_POD_AS_BLOB(varialble)
Definition: keyvalue_serialization.h:122
#define END_KV_SERIALIZE_MAP()
Definition: keyvalue_serialization.h:116
#define BEGIN_KV_SERIALIZE_MAP()
Definition: keyvalue_serialization.h:43
uint32_t address
Definition: getifaddr.c:269
crypto namespace.
Definition: crypto.cpp:60
POD_CLASS hash8
Definition: hash.h:51
POD_CLASS public_key
Definition: crypto.h:64
Holds cryptonote related classes and helpers.
Definition: blockchain_db.cpp:45
network_type
Definition: cryptonote_config.h:289
Definition: device.cpp:38
device & get_device(const std::string &device_descriptor)
Definition: device.cpp:95
void generate(randomx::Program &p, uint32_t nonce)
Definition: perf-simulation.cpp:62
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124
unsigned __int64 uint64_t
Definition: stdint.h:136
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:512
Definition: minissdpd.c:75