Electroneum
Classes | Functions
anonymous_namespace{wallet2.cpp} Namespace Reference

Classes

struct  options
 

Functions

std::string get_default_ringdb_path ()
 
std::string pack_multisignature_keys (const std::string &prefix, const std::vector< crypto::public_key > &keys, const crypto::secret_key &signer_secret_key)
 
std::vector< crypto::public_keysecret_keys_to_public_keys (const std::vector< crypto::secret_key > &keys)
 
bool keys_intersect (const std::unordered_set< crypto::public_key > &s1, const std::unordered_set< crypto::public_key > &s2)
 
void add_reason (std::string &reasons, const char *reason)
 
std::string get_text_reason (const cryptonote::COMMAND_RPC_SEND_RAW_TX::response &res)
 
void do_prepare_file_names (const std::string &file_path, std::string &keys_file, std::string &wallet_file, std::string &mms_file)
 
uint64_t calculate_fee (uint64_t fee_per_kb, size_t bytes, uint64_t fee_multiplier)
 
uint64_t calculate_fee_from_weight (uint64_t base_fee, uint64_t weight, uint64_t fee_multiplier, uint64_t fee_quantization_mask)
 
std::string get_weight_string (size_t weight)
 
std::string get_weight_string (const cryptonote::transaction &tx, size_t blob_size)
 
std::unique_ptr< tools::wallet2make_basic (const boost::program_options::variables_map &vm, bool unattended, const options &opts, const std::function< boost::optional< tools::password_container >(const char *, bool)> &password_prompter)
 
boost::optional< tools::password_containerget_password (const boost::program_options::variables_map &vm, const options &opts, const std::function< boost::optional< tools::password_container >(const char *, bool)> &password_prompter, const bool verify)
 
std::pair< std::unique_ptr< tools::wallet2 >, tools::password_containergenerate_from_json (const std::string &json_file, const boost::program_options::variables_map &vm, bool unattended, const options &opts, const std::function< boost::optional< tools::password_container >(const char *, bool)> &password_prompter)
 
std::string strjoin (const std::vector< size_t > &V, const char *sep)
 
static bool emplace_or_replace (std::unordered_multimap< crypto::hash, tools::wallet2::pool_payment_details > &container, const crypto::hash &key, const tools::wallet2::pool_payment_details &pd)
 
void drop_from_short_history (std::list< crypto::hash > &short_chain_history, size_t N)
 
size_t estimate_rct_tx_size (int n_inputs, int mixin, int n_outputs, size_t extra_size, bool bulletproof)
 
size_t estimate_tx_size (bool use_rct, int n_inputs, int mixin, int n_outputs, size_t extra_size, bool bulletproof)
 
uint64_t estimate_tx_weight (bool use_rct, int n_inputs, int mixin, int n_outputs, size_t extra_size, bool bulletproof)
 
uint8_t get_bulletproof_fork ()
 
uint64_t estimate_fee (bool use_per_byte_fee, bool use_rct, int n_inputs, int mixin, int n_outputs, size_t extra_size, bool bulletproof, uint64_t base_fee, uint64_t fee_multiplier, uint64_t fee_quantization_mask)
 
uint64_t calculate_fee (bool use_per_byte_fee, const cryptonote::transaction &tx, size_t blob_size, uint64_t base_fee, uint64_t fee_multiplier, uint64_t fee_quantization_mask)
 
bool get_short_payment_id (crypto::hash8 &payment_id8, const tools::wallet2::pending_tx &ptx, hw::device &hwdev)
 
tools::wallet2::tx_construction_data get_construction_data_with_decrypted_short_payment_id (const tools::wallet2::pending_tx &ptx, hw::device &hwdev)
 
uint32_t get_subaddress_clamped_sum (uint32_t idx, uint32_t extra)
 
static void setup_shim (hw::wallet_shim *shim, tools::wallet2 *wallet)
 
bool get_pruned_tx (const cryptonote::COMMAND_RPC_GET_TRANSACTIONS::entry &entry, cryptonote::transaction &tx, crypto::hash &tx_hash)
 

Function Documentation

◆ add_reason()

void anonymous_namespace{wallet2.cpp}::add_reason ( std::string &  reasons,
const char *  reason 
)

◆ calculate_fee() [1/2]

uint64_t anonymous_namespace{wallet2.cpp}::calculate_fee ( bool  use_per_byte_fee,
const cryptonote::transaction tx,
size_t  blob_size,
uint64_t  base_fee,
uint64_t  fee_multiplier,
uint64_t  fee_quantization_mask 
)

◆ calculate_fee() [2/2]

uint64_t anonymous_namespace{wallet2.cpp}::calculate_fee ( uint64_t  fee_per_kb,
size_t  bytes,
uint64_t  fee_multiplier 
)

◆ calculate_fee_from_weight()

uint64_t anonymous_namespace{wallet2.cpp}::calculate_fee_from_weight ( uint64_t  base_fee,
uint64_t  weight,
uint64_t  fee_multiplier,
uint64_t  fee_quantization_mask 
)

◆ do_prepare_file_names()

void anonymous_namespace{wallet2.cpp}::do_prepare_file_names ( const std::string &  file_path,
std::string &  keys_file,
std::string &  wallet_file,
std::string &  mms_file 
)

◆ drop_from_short_history()

void anonymous_namespace{wallet2.cpp}::drop_from_short_history ( std::list< crypto::hash > &  short_chain_history,
size_t  N 
)

◆ emplace_or_replace()

static bool anonymous_namespace{wallet2.cpp}::emplace_or_replace ( std::unordered_multimap< crypto::hash, tools::wallet2::pool_payment_details > &  container,
const crypto::hash key,
const tools::wallet2::pool_payment_details pd 
)
static

◆ estimate_fee()

uint64_t anonymous_namespace{wallet2.cpp}::estimate_fee ( bool  use_per_byte_fee,
bool  use_rct,
int  n_inputs,
int  mixin,
int  n_outputs,
size_t  extra_size,
bool  bulletproof,
uint64_t  base_fee,
uint64_t  fee_multiplier,
uint64_t  fee_quantization_mask 
)

◆ estimate_rct_tx_size()

size_t anonymous_namespace{wallet2.cpp}::estimate_rct_tx_size ( int  n_inputs,
int  mixin,
int  n_outputs,
size_t  extra_size,
bool  bulletproof 
)

◆ estimate_tx_size()

size_t anonymous_namespace{wallet2.cpp}::estimate_tx_size ( bool  use_rct,
int  n_inputs,
int  mixin,
int  n_outputs,
size_t  extra_size,
bool  bulletproof 
)

◆ estimate_tx_weight()

uint64_t anonymous_namespace{wallet2.cpp}::estimate_tx_weight ( bool  use_rct,
int  n_inputs,
int  mixin,
int  n_outputs,
size_t  extra_size,
bool  bulletproof 
)

◆ generate_from_json()

std::pair<std::unique_ptr<tools::wallet2>, tools::password_container> anonymous_namespace{wallet2.cpp}::generate_from_json ( const std::string &  json_file,
const boost::program_options::variables_map &  vm,
bool  unattended,
const options opts,
const std::function< boost::optional< tools::password_container >(const char *, bool)> &  password_prompter 
)

◆ get_bulletproof_fork()

uint8_t anonymous_namespace{wallet2.cpp}::get_bulletproof_fork ( )

◆ get_construction_data_with_decrypted_short_payment_id()

tools::wallet2::tx_construction_data anonymous_namespace{wallet2.cpp}::get_construction_data_with_decrypted_short_payment_id ( const tools::wallet2::pending_tx ptx,
hw::device hwdev 
)

◆ get_default_ringdb_path()

std::string anonymous_namespace{wallet2.cpp}::get_default_ringdb_path ( )

◆ get_password()

boost::optional<tools::password_container> anonymous_namespace{wallet2.cpp}::get_password ( const boost::program_options::variables_map &  vm,
const options opts,
const std::function< boost::optional< tools::password_container >(const char *, bool)> &  password_prompter,
const bool  verify 
)

◆ get_pruned_tx()

bool anonymous_namespace{wallet2.cpp}::get_pruned_tx ( const cryptonote::COMMAND_RPC_GET_TRANSACTIONS::entry entry,
cryptonote::transaction tx,
crypto::hash tx_hash 
)

◆ get_short_payment_id()

bool anonymous_namespace{wallet2.cpp}::get_short_payment_id ( crypto::hash8 payment_id8,
const tools::wallet2::pending_tx ptx,
hw::device hwdev 
)

◆ get_subaddress_clamped_sum()

uint32_t anonymous_namespace{wallet2.cpp}::get_subaddress_clamped_sum ( uint32_t  idx,
uint32_t  extra 
)

◆ get_text_reason()

std::string anonymous_namespace{wallet2.cpp}::get_text_reason ( const cryptonote::COMMAND_RPC_SEND_RAW_TX::response res)

◆ get_weight_string() [1/2]

std::string anonymous_namespace{wallet2.cpp}::get_weight_string ( const cryptonote::transaction tx,
size_t  blob_size 
)

◆ get_weight_string() [2/2]

std::string anonymous_namespace{wallet2.cpp}::get_weight_string ( size_t  weight)

◆ keys_intersect()

bool anonymous_namespace{wallet2.cpp}::keys_intersect ( const std::unordered_set< crypto::public_key > &  s1,
const std::unordered_set< crypto::public_key > &  s2 
)

◆ make_basic()

std::unique_ptr<tools::wallet2> anonymous_namespace{wallet2.cpp}::make_basic ( const boost::program_options::variables_map &  vm,
bool  unattended,
const options opts,
const std::function< boost::optional< tools::password_container >(const char *, bool)> &  password_prompter 
)

◆ pack_multisignature_keys()

std::string anonymous_namespace{wallet2.cpp}::pack_multisignature_keys ( const std::string &  prefix,
const std::vector< crypto::public_key > &  keys,
const crypto::secret_key signer_secret_key 
)

◆ secret_keys_to_public_keys()

std::vector<crypto::public_key> anonymous_namespace{wallet2.cpp}::secret_keys_to_public_keys ( const std::vector< crypto::secret_key > &  keys)

◆ setup_shim()

static void anonymous_namespace{wallet2.cpp}::setup_shim ( hw::wallet_shim shim,
tools::wallet2 wallet 
)
static

◆ strjoin()

std::string anonymous_namespace{wallet2.cpp}::strjoin ( const std::vector< size_t > &  V,
const char *  sep 
)