Electroneum
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cryptonote::account_base Class Reference

#include <account.h>

Collaboration diagram for cryptonote::account_base:
Collaboration graph
[legend]

Public Member Functions

 account_base ()
 
crypto::secret_key generate (const crypto::secret_key &recovery_key=crypto::secret_key(), bool recover=false, bool two_random=false)
 
void create_from_device (const std::string &device_name)
 
void create_from_device (hw::device &hwdev)
 
void create_from_keys (const cryptonote::account_public_address &address, const crypto::secret_key &spendkey, const crypto::secret_key &viewkey)
 
void create_from_viewkey (const cryptonote::account_public_address &address, const crypto::secret_key &viewkey)
 
bool make_multisig (const crypto::secret_key &view_secret_key, const crypto::secret_key &spend_secret_key, const crypto::public_key &spend_public_key, const std::vector< crypto::secret_key > &multisig_keys)
 
void finalize_multisig (const crypto::public_key &spend_public_key)
 
const account_keysget_keys () const
 
std::string get_public_address_str (network_type nettype) const
 
std::string get_public_integrated_address_str (const crypto::hash8 &payment_id, network_type nettype) const
 
hw::deviceget_device () const
 
void set_device (hw::device &hwdev)
 
void deinit ()
 
uint64_t get_createtime () const
 
void set_createtime (uint64_t val)
 
bool load (const std::string &file_path)
 
bool store (const std::string &file_path)
 
void forget_spend_key ()
 
const std::vector< crypto::secret_key > & get_multisig_keys () const
 
void encrypt_keys (const crypto::chacha_key &key)
 
void decrypt_keys (const crypto::chacha_key &key)
 
void encrypt_viewkey (const crypto::chacha_key &key)
 
void decrypt_viewkey (const crypto::chacha_key &key)
 
template<class t_archive >
void serialize (t_archive &a, const unsigned int)
 

Private Member Functions

void set_null ()
 

Private Attributes

account_keys m_keys
 
uint64_t m_creation_timestamp
 

Constructor & Destructor Documentation

◆ account_base()

cryptonote::account_base::account_base ( )

Member Function Documentation

◆ create_from_device() [1/2]

void cryptonote::account_base::create_from_device ( const std::string &  device_name)

◆ create_from_device() [2/2]

void cryptonote::account_base::create_from_device ( hw::device hwdev)

◆ create_from_keys()

void cryptonote::account_base::create_from_keys ( const cryptonote::account_public_address address,
const crypto::secret_key spendkey,
const crypto::secret_key viewkey 
)

◆ create_from_viewkey()

void cryptonote::account_base::create_from_viewkey ( const cryptonote::account_public_address address,
const crypto::secret_key viewkey 
)

◆ decrypt_keys()

void cryptonote::account_base::decrypt_keys ( const crypto::chacha_key &  key)
inline

◆ decrypt_viewkey()

void cryptonote::account_base::decrypt_viewkey ( const crypto::chacha_key &  key)
inline

◆ deinit()

void cryptonote::account_base::deinit ( )

◆ encrypt_keys()

void cryptonote::account_base::encrypt_keys ( const crypto::chacha_key &  key)
inline

◆ encrypt_viewkey()

void cryptonote::account_base::encrypt_viewkey ( const crypto::chacha_key &  key)
inline

◆ finalize_multisig()

void cryptonote::account_base::finalize_multisig ( const crypto::public_key spend_public_key)

◆ forget_spend_key()

void cryptonote::account_base::forget_spend_key ( )

◆ generate()

crypto::secret_key cryptonote::account_base::generate ( const crypto::secret_key recovery_key = crypto::secret_key(),
bool  recover = false,
bool  two_random = false 
)

◆ get_createtime()

uint64_t cryptonote::account_base::get_createtime ( ) const
inline

◆ get_device()

hw::device& cryptonote::account_base::get_device ( ) const
inline

◆ get_keys()

const account_keys & cryptonote::account_base::get_keys ( ) const

◆ get_multisig_keys()

const std::vector<crypto::secret_key>& cryptonote::account_base::get_multisig_keys ( ) const
inline

◆ get_public_address_str()

std::string cryptonote::account_base::get_public_address_str ( network_type  nettype) const

◆ get_public_integrated_address_str()

std::string cryptonote::account_base::get_public_integrated_address_str ( const crypto::hash8 payment_id,
network_type  nettype 
) const

◆ load()

bool cryptonote::account_base::load ( const std::string &  file_path)

◆ make_multisig()

bool cryptonote::account_base::make_multisig ( const crypto::secret_key view_secret_key,
const crypto::secret_key spend_secret_key,
const crypto::public_key spend_public_key,
const std::vector< crypto::secret_key > &  multisig_keys 
)

◆ serialize()

template<class t_archive >
void cryptonote::account_base::serialize ( t_archive &  a,
const unsigned int   
)
inline

◆ set_createtime()

void cryptonote::account_base::set_createtime ( uint64_t  val)
inline

◆ set_device()

void cryptonote::account_base::set_device ( hw::device hwdev)
inline

◆ set_null()

void cryptonote::account_base::set_null ( )
private

◆ store()

bool cryptonote::account_base::store ( const std::string &  file_path)

Member Data Documentation

◆ m_creation_timestamp

uint64_t cryptonote::account_base::m_creation_timestamp
private

◆ m_keys

account_keys cryptonote::account_base::m_keys
private

The documentation for this class was generated from the following files: