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_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)
 
const account_keysget_keys () const
 
std::string get_public_address_str (bool testnet) const
 
std::string get_public_integrated_address_str (const crypto::hash8 &payment_id, bool testnet) const
 
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 ()
 
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_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 
)

◆ 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_keys()

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

◆ get_public_address_str()

std::string cryptonote::account_base::get_public_address_str ( bool  testnet) const

◆ get_public_integrated_address_str()

std::string cryptonote::account_base::get_public_integrated_address_str ( const crypto::hash8 payment_id,
bool  testnet 
) const

◆ load()

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

◆ 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_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: