|
Electroneum
|
#include <wallet2.h>
Classes | |
| struct | address_book_row |
| struct | address_tx |
| struct | cache_file_data |
| struct | confirmed_transfer_details |
| struct | is_out_data |
| struct | keys_file_data |
| struct | multisig_info |
| struct | multisig_sig |
| struct | multisig_tx_set |
| struct | parsed_block |
| struct | payment_details |
| struct | pending_tx |
| struct | pool_payment_details |
| struct | reserve_proof_entry |
| struct | signed_tx_set |
| struct | transfer_details |
| struct | tx_cache_data |
| struct | tx_construction_data |
| struct | tx_scan_info_t |
| struct | unconfirmed_transfer_details |
| struct | unsigned_tx_set |
Public Types | |
| enum | RefreshType { RefreshFull, RefreshOptimizeCoinbase, RefreshNoCoinbase, RefreshDefault = RefreshOptimizeCoinbase } |
| enum | AskPasswordType { AskPasswordNever = 0, AskPasswordOnAction = 1, AskPasswordToDecrypt = 2 } |
| enum | BackgroundMiningSetupType { BackgroundMiningMaybe = 0, BackgroundMiningYes = 1, BackgroundMiningNo = 2 } |
| typedef std::vector< transfer_details > | transfer_container |
| typedef std::unordered_multimap< crypto::hash, payment_details > | payment_container |
| typedef std::tuple< uint64_t, crypto::public_key, rct::key > | get_outs_entry |
Public Member Functions | |
| wallet2 (cryptonote::network_type nettype=cryptonote::MAINNET, uint64_t kdf_rounds=1, bool unattended=false) | |
| ~wallet2 () | |
| void | generate (const std::string &wallet_, const epee::wipeable_string &password, const epee::wipeable_string &multisig_data, bool create_address_file=false) |
| Generates a wallet or restores one. More... | |
| crypto::secret_key | generate (const std::string &wallet, const epee::wipeable_string &password, const crypto::secret_key &recovery_param=crypto::secret_key(), bool recover=false, bool two_random=false, bool create_address_file=false) |
| Generates a wallet or restores one. More... | |
| void | generate (const std::string &wallet, const epee::wipeable_string &password, const cryptonote::account_public_address &account_public_address, const crypto::secret_key &spendkey, const crypto::secret_key &viewkey, bool create_address_file=false) |
| Creates a wallet from a public address and a spend/view secret key pair. More... | |
| void | generate (const std::string &wallet, const epee::wipeable_string &password, const cryptonote::account_public_address &account_public_address, const crypto::secret_key &viewkey=crypto::secret_key(), bool create_address_file=false) |
| Creates a watch only wallet from a public address and a view secret key. More... | |
| void | restore (const std::string &wallet_, const epee::wipeable_string &password, const std::string &device_name, bool create_address_file=false) |
| Restore a wallet hold by an HW. More... | |
| std::string | make_multisig (const epee::wipeable_string &password, const std::vector< std::string > &info, uint32_t threshold) |
| Creates a multisig wallet. More... | |
| std::string | make_multisig (const epee::wipeable_string &password, const std::vector< crypto::secret_key > &view_keys, const std::vector< crypto::public_key > &spend_keys, uint32_t threshold) |
| Creates a multisig wallet. More... | |
| std::string | exchange_multisig_keys (const epee::wipeable_string &password, const std::vector< std::string > &info) |
| std::string | exchange_multisig_keys (const epee::wipeable_string &password, std::unordered_set< crypto::public_key > pkeys, std::vector< crypto::public_key > signers) |
| Any but first round of keys exchange. More... | |
| bool | finalize_multisig (const epee::wipeable_string &password, const std::vector< std::string > &info) |
| Finalizes creation of a multisig wallet. More... | |
| bool | finalize_multisig (const epee::wipeable_string &password, const std::unordered_set< crypto::public_key > &pkeys, std::vector< crypto::public_key > signers) |
| Finalizes creation of a multisig wallet. More... | |
| std::string | get_multisig_info () const |
| cryptonote::blobdata | export_multisig () |
| size_t | import_multisig (std::vector< cryptonote::blobdata > info) |
| void | rewrite (const std::string &wallet_name, const epee::wipeable_string &password) |
| Rewrites to the wallet file for wallet upgrade (doesn't generate key, assumes it's already there) More... | |
| void | write_watch_only_wallet (const std::string &wallet_name, const epee::wipeable_string &password, std::string &new_keys_filename) |
| Writes to a file named based on the normal wallet (doesn't generate key, assumes it's already there) More... | |
| void | load (const std::string &wallet, const epee::wipeable_string &password) |
| void | store () |
| void | store_to (const std::string &path, const epee::wipeable_string &password) |
| store_to Stores wallet to another file(s), deleting old ones More... | |
| std::string | path () const |
| bool | verify_password (const epee::wipeable_string &password) |
| verifies given password is correct for default wallet keys file More... | |
| cryptonote::account_base & | get_account () |
| const cryptonote::account_base & | get_account () const |
| void | encrypt_keys (const crypto::chacha_key &key) |
| void | encrypt_keys (const epee::wipeable_string &password) |
| void | decrypt_keys (const crypto::chacha_key &key) |
| void | decrypt_keys (const epee::wipeable_string &password) |
| void | set_refresh_from_block_height (uint64_t height) |
| uint64_t | get_refresh_from_block_height () const |
| void | explicit_refresh_from_block_height (bool expl) |
| bool | explicit_refresh_from_block_height () const |
| bool | deinit () |
| bool | init (std::string daemon_address="http://localhost:8080", boost::optional< epee::net_utils::http::login > daemon_login=boost::none, boost::asio::ip::tcp::endpoint proxy={}, uint64_t upper_transaction_weight_limit=0, bool trusted_daemon=true, epee::net_utils::ssl_options_t ssl_options=epee::net_utils::ssl_support_t::e_ssl_support_autodetect, std::string blockchain_db_path="") |
| bool | set_daemon (std::string daemon_address="http://localhost:8080", boost::optional< epee::net_utils::http::login > daemon_login=boost::none, bool trusted_daemon=true, epee::net_utils::ssl_options_t ssl_options=epee::net_utils::ssl_support_t::e_ssl_support_autodetect) |
| void | stop () |
| i_wallet2_callback * | callback () const |
| void | callback (i_wallet2_callback *callback) |
| bool | is_trusted_daemon () const |
| void | set_trusted_daemon (bool trusted) |
| bool | is_deterministic () const |
| Checks if deterministic wallet. More... | |
| bool | get_seed (epee::wipeable_string &electrum_words, const epee::wipeable_string &passphrase=epee::wipeable_string()) const |
| bool | light_wallet () const |
| Checks if light wallet. A light wallet sends view key to a server where the blockchain is scanned. More... | |
| void | set_light_wallet (bool light_wallet) |
| uint64_t | get_light_wallet_scanned_block_height () const |
| uint64_t | get_light_wallet_blockchain_height () const |
| const std::string & | get_seed_language () const |
| Gets the seed language. More... | |
| void | set_seed_language (const std::string &language) |
| Sets the seed language. More... | |
| cryptonote::account_public_address | get_subaddress (const cryptonote::subaddress_index &index) const |
| cryptonote::account_public_address | get_address () const |
| boost::optional< cryptonote::subaddress_index > | get_subaddress_index (const cryptonote::account_public_address &address) const |
| crypto::public_key | get_subaddress_spend_public_key (const cryptonote::subaddress_index &index) const |
| std::vector< crypto::public_key > | get_subaddress_spend_public_keys (uint32_t account, uint32_t begin, uint32_t end) const |
| std::string | get_subaddress_as_str (const cryptonote::subaddress_index &index) const |
| std::string | get_address_as_str () const |
| std::string | get_integrated_address_as_str (const crypto::hash8 &payment_id) const |
| void | add_subaddress_account (const std::string &label, const bool update_account_tags=true) |
| size_t | get_num_subaddress_accounts () const |
| size_t | get_num_subaddresses (uint32_t index_major) const |
| void | add_subaddress (uint32_t index_major, const std::string &label) |
| void | expand_subaddresses (const cryptonote::subaddress_index &index, const bool udpate_account_tags=true) |
| std::string | get_subaddress_label (const cryptonote::subaddress_index &index) const |
| void | set_subaddress_label (const cryptonote::subaddress_index &index, const std::string &label) |
| void | set_subaddress_lookahead (size_t major, size_t minor) |
| std::pair< size_t, size_t > | get_subaddress_lookahead () const |
| void | account_major_offset (uint32_t offset) |
| uint32_t | account_major_offset () const |
| bool | is_deprecated () const |
| Tells if the wallet file is deprecated. More... | |
| void | refresh (bool trusted_daemon) |
| void | refresh (bool trusted_daemon, uint64_t start_height, uint64_t &blocks_fetched) |
| void | refresh (bool trusted_daemon, uint64_t start_height, uint64_t &blocks_fetched, bool &received_etn, bool check_pool=true) |
| bool | refresh (bool trusted_daemon, uint64_t &blocks_fetched, bool &received_etn, bool &ok) |
| void | set_refresh_type (RefreshType refresh_type) |
| RefreshType | get_refresh_type () const |
| cryptonote::network_type | nettype () const |
| bool | watch_only () const |
| bool | multisig (bool *ready=NULL, uint32_t *threshold=NULL, uint32_t *total=NULL) const |
| bool | has_multisig_partial_key_images () const |
| bool | has_unknown_key_images () const |
| bool | get_multisig_seed (epee::wipeable_string &seed, const epee::wipeable_string &passphrase=std::string(), bool raw=true) const |
| bool | key_on_device () const |
| hw::device::device_type | get_device_type () const |
| bool | reconnect_device () |
| uint64_t | balance (uint32_t subaddr_index_major, bool public_blockchain) const |
| uint64_t | unlocked_balance (uint32_t subaddr_index_major, bool public_blockchain, uint64_t *blocks_to_unlock=NULL) const |
| std::map< uint32_t, uint64_t > | balance_per_subaddress (uint32_t subaddr_index_major, bool public_blockchain=false) const |
| std::map< uint32_t, std::pair< uint64_t, uint64_t > > | unlocked_balance_per_subaddress (uint32_t subaddr_index_major, bool public_blockchain=false) const |
| uint64_t | balance_all (bool public_blockchain) const |
| uint64_t | unlocked_balance_all (bool public_blockchain, uint64_t *blocks_to_unlock=NULL) const |
| template<typename T > | |
| void | transfer_selected (const std::vector< cryptonote::tx_destination_entry > &dsts, const std::vector< size_t > &selected_transfers, size_t fake_outputs_count, std::vector< std::vector< tools::wallet2::get_outs_entry >> &outs, uint64_t unlock_time, uint64_t fee, const std::vector< uint8_t > &extra, T destination_split_strategy, const tx_dust_policy &dust_policy, cryptonote::transaction &tx, pending_tx &ptx) |
| void | commit_tx (pending_tx &ptx_vector) |
| void | commit_tx (std::vector< pending_tx > &ptx_vector) |
| bool | save_tx (const std::vector< pending_tx > &ptx_vector, const std::string &filename) const |
| std::string | dump_tx_to_str (const std::vector< pending_tx > &ptx_vector) const |
| std::string | save_multisig_tx (multisig_tx_set txs) |
| bool | save_multisig_tx (const multisig_tx_set &txs, const std::string &filename) |
| std::string | save_multisig_tx (const std::vector< pending_tx > &ptx_vector) |
| bool | save_multisig_tx (const std::vector< pending_tx > &ptx_vector, const std::string &filename) |
| multisig_tx_set | make_multisig_tx_set (const std::vector< pending_tx > &ptx_vector) const |
| bool | sign_tx (const std::string &unsigned_filename, const std::string &signed_filename, std::vector< wallet2::pending_tx > &ptx, std::function< bool(const unsigned_tx_set &)> accept_func=NULL, bool export_raw=false) |
| bool | sign_tx (unsigned_tx_set &exported_txs, const std::string &signed_filename, std::vector< wallet2::pending_tx > &ptx, bool export_raw=false) |
| bool | sign_tx (unsigned_tx_set &exported_txs, std::vector< wallet2::pending_tx > &ptx, signed_tx_set &signed_txs) |
| std::string | sign_tx_dump_to_str (unsigned_tx_set &exported_txs, std::vector< wallet2::pending_tx > &ptx, signed_tx_set &signed_txes) |
| bool | load_unsigned_tx (const std::string &unsigned_filename, unsigned_tx_set &exported_txs) const |
| bool | parse_unsigned_tx_from_str (const std::string &unsigned_tx_st, unsigned_tx_set &exported_txs) const |
| bool | load_tx (const std::string &signed_filename, std::vector< tools::wallet2::pending_tx > &ptx, std::function< bool(const signed_tx_set &)> accept_func=NULL) |
| bool | parse_tx_from_str (const std::string &signed_tx_st, std::vector< tools::wallet2::pending_tx > &ptx, std::function< bool(const signed_tx_set &)> accept_func) |
| std::vector< wallet2::pending_tx > | create_transactions_2 (std::vector< cryptonote::tx_destination_entry > dsts, const size_t fake_outs_count, const uint64_t unlock_time, uint32_t priority, const std::vector< uint8_t > &extra, uint32_t subaddr_account, std::set< uint32_t > subaddr_indices) |
| std::vector< wallet2::pending_tx > | create_transactions_all (uint64_t below, const cryptonote::account_public_address &address, bool is_subaddress, const size_t outputs, const size_t fake_outs_count, const uint64_t unlock_time, uint32_t priority, const std::vector< uint8_t > &extra, uint32_t subaddr_account, std::set< uint32_t > subaddr_indices, const bool migrate=false) |
| std::vector< wallet2::pending_tx > | create_transactions_single (const crypto::key_image &ki, const cryptonote::account_public_address &address, bool is_subaddress, const size_t outputs, const size_t fake_outs_count, const uint64_t unlock_time, uint32_t priority, const std::vector< uint8_t > &extra) |
| std::vector< wallet2::pending_tx > | create_transactions_from (const cryptonote::account_public_address &address, bool is_subaddress, const size_t outputs, std::vector< size_t > unused_transfers_indices, std::vector< size_t > unused_dust_indices, const size_t fake_outs_count, const uint64_t unlock_time, uint32_t priority, const std::vector< uint8_t > &extra, const uint8_t tx_version) |
| bool | sanity_check (const std::vector< wallet2::pending_tx > &ptx_vector, std::vector< cryptonote::tx_destination_entry > dsts) const |
| void | cold_tx_aux_import (const std::vector< pending_tx > &ptx, const std::vector< std::string > &tx_device_aux) |
| void | cold_sign_tx (const std::vector< pending_tx > &ptx_vector, signed_tx_set &exported_txs, std::vector< cryptonote::address_parse_info > &dsts_info, std::vector< std::string > &tx_device_aux) |
| uint64_t | cold_key_image_sync (uint64_t &spent, uint64_t &unspent) |
| bool | parse_multisig_tx_from_str (std::string multisig_tx_st, multisig_tx_set &exported_txs) const |
| bool | load_multisig_tx (cryptonote::blobdata blob, multisig_tx_set &exported_txs, std::function< bool(const multisig_tx_set &)> accept_func=NULL) |
| bool | load_multisig_tx_from_file (const std::string &filename, multisig_tx_set &exported_txs, std::function< bool(const multisig_tx_set &)> accept_func=NULL) |
| bool | sign_multisig_tx_from_file (const std::string &filename, std::vector< crypto::hash > &txids, std::function< bool(const multisig_tx_set &)> accept_func) |
| bool | sign_multisig_tx (multisig_tx_set &exported_txs, std::vector< crypto::hash > &txids) |
| bool | sign_multisig_tx_to_file (multisig_tx_set &exported_txs, const std::string &filename, std::vector< crypto::hash > &txids) |
| std::vector< pending_tx > | create_unmixable_sweep_transactions () |
| void | discard_unmixable_outputs () |
| bool | check_connection (uint32_t *version=NULL, bool *ssl=NULL, uint32_t timeout=200000) |
| void | get_transfers (wallet2::transfer_container &incoming_transfers) const |
| void | get_payments (const crypto::hash &payment_id, std::list< wallet2::payment_details > &payments, uint64_t min_height=0, const boost::optional< uint32_t > &subaddr_account=boost::none, const std::set< uint32_t > &subaddr_indices={}) const |
| void | get_payments (std::list< std::pair< crypto::hash, wallet2::payment_details >> &payments, uint64_t min_height, uint64_t max_height=(uint64_t) -1, const boost::optional< uint32_t > &subaddr_account=boost::none, const std::set< uint32_t > &subaddr_indices={}) const |
| void | get_payments_out (std::list< std::pair< crypto::hash, wallet2::confirmed_transfer_details >> &confirmed_payments, uint64_t min_height, uint64_t max_height=(uint64_t) -1, const boost::optional< uint32_t > &subaddr_account=boost::none, const std::set< uint32_t > &subaddr_indices={}) const |
| void | get_payments_out_migration (std::list< std::pair< crypto::hash, wallet2::confirmed_transfer_details >> &confirmed_payments, uint64_t min_height, uint64_t max_height=(uint64_t) -1, const boost::optional< uint32_t > &subaddr_account=boost::none, const std::set< uint32_t > &subaddr_indices={}) const |
| void | get_payments_out_sc_migration (std::list< std::pair< crypto::hash, wallet2::confirmed_transfer_details >> &confirmed_payments, uint64_t min_height, uint64_t max_height=(uint64_t) -1, const boost::optional< uint32_t > &subaddr_account=boost::none, const std::set< uint32_t > &subaddr_indices={}) const |
| void | get_unconfirmed_payments_out (std::list< std::pair< crypto::hash, wallet2::unconfirmed_transfer_details >> &unconfirmed_payments, const boost::optional< uint32_t > &subaddr_account=boost::none, const std::set< uint32_t > &subaddr_indices={}) const |
| void | get_unconfirmed_payments (std::list< std::pair< crypto::hash, wallet2::pool_payment_details >> &unconfirmed_payments, const boost::optional< uint32_t > &subaddr_account=boost::none, const std::set< uint32_t > &subaddr_indices={}) const |
| uint64_t | get_blockchain_current_height () const |
| bool | synced_to_v10 () const |
| bool | public_transactions_required () const |
| void | rescan_spent () |
| void | rescan_blockchain (bool hard, bool refresh=true, bool keep_key_images=false) |
| bool | is_transfer_unlocked (const transfer_details &td) const |
| bool | is_transfer_unlocked (uint64_t unlock_time, uint64_t block_height) const |
| uint64_t | get_last_block_reward () const |
| uint64_t | get_device_last_key_image_sync () const |
| template<class t_archive > | |
| void | serialize (t_archive &a, const unsigned int ver) |
| bool | always_confirm_transfers () const |
| void | always_confirm_transfers (bool always) |
| bool | print_ring_members () const |
| void | print_ring_members (bool value) |
| bool | store_tx_info () const |
| void | store_tx_info (bool store) |
| uint32_t | default_mixin () const |
| void | default_mixin (uint32_t m) |
| uint32_t | get_default_priority () const |
| void | set_default_priority (uint32_t p) |
| bool | auto_refresh () const |
| void | auto_refresh (bool r) |
| bool | confirm_missing_payment_id () const |
| void | confirm_missing_payment_id (bool always) |
| AskPasswordType | ask_password () const |
| void | ask_password (AskPasswordType ask) |
| void | set_min_output_count (uint32_t count) |
| uint32_t | get_min_output_count () const |
| void | set_min_output_value (uint64_t value) |
| uint64_t | get_min_output_value () const |
| void | merge_destinations (bool merge) |
| bool | merge_destinations () const |
| bool | confirm_backlog () const |
| void | confirm_backlog (bool always) |
| void | set_confirm_backlog_threshold (uint32_t threshold) |
| uint32_t | get_confirm_backlog_threshold () const |
| bool | confirm_export_overwrite () const |
| void | confirm_export_overwrite (bool always) |
| bool | auto_low_priority () const |
| void | auto_low_priority (bool value) |
| bool | segregate_pre_fork_outputs () const |
| void | segregate_pre_fork_outputs (bool value) |
| bool | key_reuse_mitigation2 () const |
| void | key_reuse_mitigation2 (bool value) |
| uint64_t | segregation_height () const |
| void | segregation_height (uint64_t height) |
| bool | ignore_fractional_outputs () const |
| void | ignore_fractional_outputs (bool value) |
| bool | confirm_non_default_ring_size () const |
| void | confirm_non_default_ring_size (bool always) |
| bool | track_uses () const |
| void | track_uses (bool value) |
| BackgroundMiningSetupType | setup_background_mining () const |
| void | setup_background_mining (BackgroundMiningSetupType value) |
| const std::string & | device_name () const |
| void | device_name (const std::string &device_name) |
| const std::string & | device_derivation_path () const |
| void | device_derivation_path (const std::string &device_derivation_path) |
| bool | get_tx_key_cached (const crypto::hash &txid, crypto::secret_key &tx_key, std::vector< crypto::secret_key > &additional_tx_keys) const |
| void | set_tx_key (const crypto::hash &txid, const crypto::secret_key &tx_key, const std::vector< crypto::secret_key > &additional_tx_keys) |
| bool | get_tx_key (const crypto::hash &txid, crypto::secret_key &tx_key, std::vector< crypto::secret_key > &additional_tx_keys) |
| void | check_tx_key (const crypto::hash &txid, const crypto::secret_key &tx_key, const std::vector< crypto::secret_key > &additional_tx_keys, const cryptonote::account_public_address &address, uint64_t &received, bool &in_pool, uint64_t &confirmations) |
| void | check_tx_key_helper (const crypto::hash &txid, const crypto::key_derivation &derivation, const std::vector< crypto::key_derivation > &additional_derivations, const cryptonote::account_public_address &address, uint64_t &received, bool &in_pool, uint64_t &confirmations) |
| void | check_tx_key_helper (const cryptonote::transaction &tx, const crypto::key_derivation &derivation, const std::vector< crypto::key_derivation > &additional_derivations, const cryptonote::account_public_address &address, uint64_t &received) const |
| std::string | get_tx_proof (const crypto::hash &txid, const cryptonote::account_public_address &address, bool is_subaddress, const std::string &message) |
| std::string | get_tx_proof (const cryptonote::transaction &tx, const crypto::secret_key &tx_key, const std::vector< crypto::secret_key > &additional_tx_keys, const cryptonote::account_public_address &address, bool is_subaddress, const std::string &message) const |
| bool | check_tx_proof (const crypto::hash &txid, const cryptonote::account_public_address &address, bool is_subaddress, const std::string &message, const std::string &sig_str, uint64_t &received, bool &in_pool, uint64_t &confirmations) |
| bool | check_tx_proof (const cryptonote::transaction &tx, const cryptonote::account_public_address &address, bool is_subaddress, const std::string &message, const std::string &sig_str, uint64_t &received) const |
| std::string | get_spend_proof (const crypto::hash &txid, const std::string &message) |
| bool | check_spend_proof (const crypto::hash &txid, const std::string &message, const std::string &sig_str) |
| std::string | get_reserve_proof (const boost::optional< std::pair< uint32_t, uint64_t >> &account_minreserve, const std::string &message) |
| Generates a proof that proves the reserve of unspent funds. More... | |
| bool | check_reserve_proof (const cryptonote::account_public_address &address, const std::string &message, const std::string &sig_str, uint64_t &total, uint64_t &spent) |
| Verifies a proof of reserve. More... | |
| std::vector< address_book_row > | get_address_book () const |
| GUI Address book get/store. More... | |
| bool | add_address_book_row (const cryptonote::account_public_address &address, const crypto::hash &payment_id, const std::string &description, bool is_subaddress) |
| bool | delete_address_book_row (std::size_t row_id) |
| uint64_t | get_num_rct_outputs () |
| size_t | get_num_transfer_details () const |
| const transfer_details & | get_transfer_details (size_t idx) const |
| void | get_hard_fork_info (uint8_t version, uint64_t &earliest_height) const |
| bool | use_fork_rules (uint8_t version, int64_t early_blocks=0) const |
| int | get_fee_algorithm () const |
| std::string | get_wallet_file () const |
| std::string | get_keys_file () const |
| std::string | get_daemon_address () const |
| const boost::optional< epee::net_utils::http::login > & | get_daemon_login () const |
| uint64_t | get_daemon_blockchain_height (std::string &err) const |
| uint64_t | get_daemon_blockchain_target_height (std::string &err) |
| uint64_t | get_approximate_blockchain_height () const |
| Calculates the approximate blockchain height from current date/time. More... | |
| uint64_t | estimate_blockchain_height () |
| std::vector< size_t > | select_available_outputs_from_histogram (uint64_t count, bool atleast, bool unlocked, bool allow_rct) |
| std::vector< size_t > | select_available_outputs (const std::function< bool(const transfer_details &td)> &f) const |
| std::vector< size_t > | select_available_unmixable_outputs () |
| std::vector< size_t > | select_available_mixable_outputs () |
| size_t | pop_best_value_from (const transfer_container &transfers, std::vector< size_t > &unused_dust_indices, const std::vector< size_t > &selected_transfers, bool smallest=false) const |
| size_t | pop_best_value (std::vector< size_t > &unused_dust_indices, const std::vector< size_t > &selected_transfers, bool smallest=false) const |
| void | set_tx_note (const crypto::hash &txid, const std::string ¬e) |
| std::string | get_tx_note (const crypto::hash &txid) const |
| void | set_tx_device_aux (const crypto::hash &txid, const std::string &aux) |
| std::string | get_tx_device_aux (const crypto::hash &txid) const |
| void | set_description (const std::string &description) |
| std::string | get_description () const |
| const std::pair< std::map< std::string, std::string >, std::vector< std::string > > & | get_account_tags () |
| Get the list of registered account tags. More... | |
| void | set_account_tag (const std::set< uint32_t > &account_indices, const std::string &tag) |
| Set a tag to the given accounts. More... | |
| void | set_account_tag_description (const std::string &tag, const std::string &description) |
| Set the label of the given tag. More... | |
| std::string | sign (const std::string &data) const |
| bool | verify (const std::string &data, const cryptonote::account_public_address &address, const std::string &signature) const |
| std::string | sign_multisig_participant (const std::string &data) const |
| sign_multisig_participant signs given message with the multisig public signer key More... | |
| bool | verify_with_public_key (const std::string &data, const crypto::public_key &public_key, const std::string &signature) const |
| verify_with_public_key verifies message was signed with given public key More... | |
| std::pair< size_t, std::vector< tools::wallet2::transfer_details > > | export_outputs (bool all=false) const |
| std::string | export_outputs_to_str (bool all=false) const |
| size_t | import_outputs (const std::pair< size_t, std::vector< tools::wallet2::transfer_details >> &outputs) |
| size_t | import_outputs_from_str (const std::string &outputs_st) |
| payment_container | export_payments () const |
| void | import_payments (const payment_container &payments) |
| void | import_payments_out (const std::list< std::pair< crypto::hash, wallet2::confirmed_transfer_details >> &confirmed_payments) |
| std::tuple< size_t, crypto::hash, std::vector< crypto::hash > > | export_blockchain () const |
| void | import_blockchain (const std::tuple< size_t, crypto::hash, std::vector< crypto::hash >> &bc) |
| bool | export_key_images (const std::string &filename) const |
| std::pair< size_t, std::vector< std::pair< crypto::key_image, crypto::signature > > > | export_key_images (bool all=false) const |
| uint64_t | import_key_images (const std::vector< std::pair< crypto::key_image, crypto::signature >> &signed_key_images, size_t offset, uint64_t &spent, uint64_t &unspent, bool check_spent=true) |
| uint64_t | import_key_images (const std::string &filename, uint64_t &spent, uint64_t &unspent) |
| bool | import_key_images (std::vector< crypto::key_image > key_images, size_t offset=0, boost::optional< std::unordered_set< size_t >> selected_transfers=boost::none) |
| bool | import_key_images (signed_tx_set &signed_tx, size_t offset=0, bool only_selected_transfers=false) |
| crypto::public_key | get_tx_pub_key_from_received_outs (const tools::wallet2::transfer_details &td) const |
| void | update_pool_state (bool refreshed=false) |
| void | remove_obsolete_pool_txs (const std::vector< crypto::hash > &tx_hashes) |
| std::string | encrypt (const char *plaintext, size_t len, const crypto::secret_key &skey, bool authenticated=true) const |
| std::string | encrypt (const epee::span< char > &span, const crypto::secret_key &skey, bool authenticated=true) const |
| std::string | encrypt (const std::string &plaintext, const crypto::secret_key &skey, bool authenticated=true) const |
| std::string | encrypt (const epee::wipeable_string &plaintext, const crypto::secret_key &skey, bool authenticated=true) const |
| std::string | encrypt_with_view_secret_key (const std::string &plaintext, bool authenticated=true) const |
| template<typename T = std::string> | |
| T | decrypt (const std::string &ciphertext, const crypto::secret_key &skey, bool authenticated=true) const |
| std::string | decrypt_with_view_secret_key (const std::string &ciphertext, bool authenticated=true) const |
| std::string | make_uri (const std::string &address, const std::string &payment_id, uint64_t amount, const std::string &tx_description, const std::string &recipient_name, std::string &error) const |
| bool | parse_uri (const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector< std::string > &unknown_parameters, std::string &error) |
| uint64_t | get_blockchain_height_by_date (uint16_t year, uint8_t month, uint8_t day) |
| bool | is_synced () const |
| std::vector< std::pair< uint64_t, uint64_t > > | estimate_backlog (const std::vector< std::pair< double, double >> &fee_levels) |
| std::vector< std::pair< uint64_t, uint64_t > > | estimate_backlog (uint64_t min_tx_weight, uint64_t max_tx_weight, const std::vector< uint64_t > &fees) |
| uint64_t | get_fee_multiplier (uint32_t priority, int fee_algorithm=-1) const |
| uint64_t | get_base_fee () const |
| uint64_t | get_fee_quantization_mask () const |
| uint64_t | get_min_ring_size () const |
| uint64_t | get_max_ring_size () const |
| uint64_t | adjust_mixin (uint64_t mixin) const |
| uint32_t | adjust_priority (uint32_t priority) |
| bool | is_unattended () const |
| void | light_wallet_get_unspent_outs () |
| void | light_wallet_get_address_txs () |
| bool | light_wallet_get_address_info (tools::COMMAND_RPC_GET_ADDRESS_INFO::response &response) |
| bool | light_wallet_login (bool &new_address) |
| bool | light_wallet_import_wallet_request (tools::COMMAND_RPC_IMPORT_WALLET_REQUEST::response &response) |
| void | light_wallet_get_outs (std::vector< std::vector< get_outs_entry >> &outs, const std::vector< size_t > &selected_transfers, size_t fake_outputs_count) |
| bool | light_wallet_parse_rct_str (const std::string &rct_string, const crypto::public_key &tx_pub_key, uint64_t internal_output_index, rct::key &decrypted_mask, rct::key &rct_commit, bool decrypt) const |
| bool | light_wallet_key_image_is_ours (const crypto::key_image &key_image, const crypto::public_key &tx_public_key, uint64_t out_index) |
| void | set_attribute (const std::string &key, const std::string &value) |
| std::string | get_attribute (const std::string &key) const |
| crypto::public_key | get_multisig_signer_public_key (const crypto::secret_key &spend_skey) const |
| crypto::public_key | get_multisig_signer_public_key () const |
| crypto::public_key | get_multisig_signing_public_key (size_t idx) const |
| crypto::public_key | get_multisig_signing_public_key (const crypto::secret_key &skey) const |
| template<class t_request , class t_response > | |
| bool | invoke_http_json (const boost::string_ref uri, const t_request &req, t_response &res, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref http_method="GET") |
| template<class t_request , class t_response > | |
| bool | invoke_http_bin (const boost::string_ref uri, const t_request &req, t_response &res, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref http_method="GET") |
| template<class t_request , class t_response > | |
| bool | invoke_http_json_rpc (const boost::string_ref uri, const std::string &method_name, const t_request &req, t_response &res, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref http_method="GET", const std::string &req_id="0") |
| bool | set_ring_database (const std::string &filename) |
| const std::string | get_ring_database () const |
| bool | get_ring (const crypto::key_image &key_image, std::vector< uint64_t > &outs) |
| bool | get_rings (const crypto::hash &txid, std::vector< std::pair< crypto::key_image, std::vector< uint64_t >>> &outs) |
| bool | set_ring (const crypto::key_image &key_image, const std::vector< uint64_t > &outs, bool relative) |
| bool | unset_ring (const std::vector< crypto::key_image > &key_images) |
| bool | unset_ring (const crypto::hash &txid) |
| bool | find_and_save_rings (bool force=true) |
| bool | blackball_output (const std::pair< uint64_t, uint64_t > &output) |
| bool | set_blackballed_outputs (const std::vector< std::pair< uint64_t, uint64_t >> &outputs, bool add=false) |
| bool | unblackball_output (const std::pair< uint64_t, uint64_t > &output) |
| bool | is_output_blackballed (const std::pair< uint64_t, uint64_t > &output) const |
| void | freeze (size_t idx) |
| void | thaw (size_t idx) |
| bool | frozen (size_t idx) const |
| void | freeze (const crypto::key_image &ki) |
| void | thaw (const crypto::key_image &ki) |
| bool | frozen (const crypto::key_image &ki) const |
| bool | frozen (const transfer_details &td) const |
| uint64_t | get_bytes_sent () const |
| uint64_t | get_bytes_received () const |
| void | add_checkpoint (uint64_t height, std::string hash) |
| mms::message_store & | get_message_store () |
| const mms::message_store & | get_message_store () const |
| mms::multisig_wallet_state | get_multisig_wallet_state () const |
| bool | lock_keys_file () |
| bool | unlock_keys_file () |
| bool | is_keys_file_locked () const |
| void | change_password (const std::string &filename, const epee::wipeable_string &original_password, const epee::wipeable_string &new_password) |
| void | set_tx_notify (const std::shared_ptr< tools::Notify > ¬ify) |
| bool | is_tx_spendtime_unlocked (uint64_t unlock_time, uint64_t block_height) const |
| void | hash_m_transfer (const transfer_details &transfer, crypto::hash &hash) const |
| uint64_t | hash_m_transfers (int64_t transfer_height, crypto::hash &hash) const |
| void | finish_rescan_bc_keep_key_images (uint64_t transfer_height, const crypto::hash &hash) |
| void | enable_dns (bool enable) |
| void | set_offline (bool offline=true) |
Static Public Member Functions | |
| static const char * | tr (const char *str) |
| static bool | has_testnet_option (const boost::program_options::variables_map &vm) |
| static bool | has_stagenet_option (const boost::program_options::variables_map &vm) |
| static std::string | device_name_option (const boost::program_options::variables_map &vm) |
| static std::string | device_derivation_path_option (const boost::program_options::variables_map &vm) |
| static void | init_options (boost::program_options::options_description &desc_params) |
| static std::pair< std::unique_ptr< wallet2 >, password_container > | make_from_json (const boost::program_options::variables_map &vm, bool unattended, const std::string &json_file, const std::function< boost::optional< password_container >(const char *, bool)> &password_prompter) |
| Uses stdin and stdout. Returns a wallet2 if no errors. More... | |
| static std::pair< std::unique_ptr< wallet2 >, password_container > | make_from_file (const boost::program_options::variables_map &vm, bool unattended, const std::string &wallet_file, const std::function< boost::optional< password_container >(const char *, bool)> &password_prompter) |
Uses stdin and stdout. Returns a wallet2 and password for wallet_file if no errors. More... | |
| static std::pair< std::unique_ptr< wallet2 >, password_container > | make_new (const boost::program_options::variables_map &vm, bool unattended, const std::function< boost::optional< password_container >(const char *, bool)> &password_prompter) |
| Uses stdin and stdout. Returns a wallet2 and password for wallet with no file if no errors. More... | |
| static std::unique_ptr< wallet2 > | make_dummy (const boost::program_options::variables_map &vm, bool unattended, const std::function< boost::optional< password_container >(const char *, bool)> &password_prompter) |
| Just parses variables. More... | |
| static bool | verify_password (const std::string &keys_file_name, const epee::wipeable_string &password, bool no_spend_key, hw::device &hwdev, uint64_t kdf_rounds) |
| verify password for specified wallet keys file. More... | |
| static bool | query_device (hw::device::device_type &device_type, const std::string &keys_file_name, const epee::wipeable_string &password, uint64_t kdf_rounds=1) |
| determine the key storage for the specified wallet file More... | |
| static bool | verify_multisig_info (const std::string &data, crypto::secret_key &skey, crypto::public_key &pkey) |
| static bool | verify_extra_multisig_info (const std::string &data, std::unordered_set< crypto::public_key > &pkeys, crypto::public_key &signer) |
| static void | wallet_exists (const std::string &file_path, bool &keys_file_exists, bool &wallet_file_exists) |
| Check if wallet keys and bin files exist. More... | |
| static std::string | get_human_readable_timestamp (uint64_t ts) |
| Check if wallet file path is valid format. More... | |
| static bool | wallet_valid_path_format (const std::string &file_path) |
| static bool | parse_long_payment_id (const std::string &payment_id_str, crypto::hash &payment_id) |
| static bool | parse_short_payment_id (const std::string &payment_id_str, crypto::hash8 &payment_id) |
| static bool | parse_payment_id (const std::string &payment_id_str, crypto::hash &payment_id) |
Public Attributes | |
| const char *const | ATTRIBUTE_DESCRIPTION = "wallet2.description" |
Static Public Attributes | |
| static constexpr const std::chrono::seconds | rpc_timeout = std::chrono::minutes(3) + std::chrono::seconds(30) |
Friends | |
| class | ::Serialization_portability_wallet_Test |
| class | ::wallet_accessor_test |
| class | wallet_keys_unlocker |
| class | wallet_device_callback |
| typedef std::tuple<uint64_t, crypto::public_key, rct::key> tools::wallet2::get_outs_entry |
| typedef std::unordered_multimap<crypto::hash, payment_details> tools::wallet2::payment_container |
| typedef std::vector<transfer_details> tools::wallet2::transfer_container |
| Enumerator | |
|---|---|
| AskPasswordNever | |
| AskPasswordOnAction | |
| AskPasswordToDecrypt | |
Definition at line 225 of file wallet2.h.
| Enumerator | |
|---|---|
| BackgroundMiningMaybe | |
| BackgroundMiningYes | |
| BackgroundMiningNo | |
Definition at line 231 of file wallet2.h.
| Enumerator | |
|---|---|
| RefreshFull | |
| RefreshOptimizeCoinbase | |
| RefreshNoCoinbase | |
| RefreshDefault | |
| tools::wallet2::wallet2 | ( | cryptonote::network_type | nettype = cryptonote::MAINNET, |
| uint64_t | kdf_rounds = 1, |
||
| bool | unattended = false |
||
| ) |
Definition at line 1102 of file wallet2.cpp.
| tools::wallet2::~wallet2 | ( | ) |
Definition at line 1169 of file wallet2.cpp.
|
inline |
|
inline |
| bool tools::wallet2::add_address_book_row | ( | const cryptonote::account_public_address & | address, |
| const crypto::hash & | payment_id, | ||
| const std::string & | description, | ||
| bool | is_subaddress | ||
| ) |
Definition at line 3451 of file wallet2.cpp.
| void tools::wallet2::add_checkpoint | ( | uint64_t | height, |
| std::string | hash | ||
| ) |
Definition at line 13766 of file wallet2.cpp.
| void tools::wallet2::add_subaddress | ( | uint32_t | index_major, |
| const std::string & | label | ||
| ) |
Definition at line 1470 of file wallet2.cpp.

| void tools::wallet2::add_subaddress_account | ( | const std::string & | label, |
| const bool | update_account_tags = true |
||
| ) |
Definition at line 1463 of file wallet2.cpp.


Definition at line 7860 of file wallet2.cpp.
Definition at line 7877 of file wallet2.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 6162 of file wallet2.cpp.

Definition at line 6292 of file wallet2.cpp.
| std::map< uint32_t, uint64_t > tools::wallet2::balance_per_subaddress | ( | uint32_t | subaddr_index_major, |
| bool | public_blockchain = false |
||
| ) | const |
Definition at line 6188 of file wallet2.cpp.
Definition at line 8175 of file wallet2.cpp.
|
inline |
|
inline |
| void tools::wallet2::change_password | ( | const std::string & | filename, |
| const epee::wipeable_string & | original_password, | ||
| const epee::wipeable_string & | new_password | ||
| ) |
Definition at line 4320 of file wallet2.cpp.
| bool tools::wallet2::check_connection | ( | uint32_t * | version = NULL, |
| bool * | ssl = NULL, |
||
| uint32_t | timeout = 200000 |
||
| ) |
Definition at line 5758 of file wallet2.cpp.

| bool tools::wallet2::check_reserve_proof | ( | const cryptonote::account_public_address & | address, |
| const std::string & | message, | ||
| const std::string & | sig_str, | ||
| uint64_t & | total, | ||
| uint64_t & | spent | ||
| ) |
Verifies a proof of reserve.
| address | The signer's address |
| message | Challenge message used for signing |
| sig_str | Signature string |
| total | [OUT] the sum of funds included in the signature |
| spent | [OUT] the sum of spent funds included in the signature |
Definition at line 11790 of file wallet2.cpp.

| bool tools::wallet2::check_spend_proof | ( | const crypto::hash & | txid, |
| const std::string & | message, | ||
| const std::string & | sig_str | ||
| ) |
Definition at line 11163 of file wallet2.cpp.

| void tools::wallet2::check_tx_key | ( | const crypto::hash & | txid, |
| const crypto::secret_key & | tx_key, | ||
| const std::vector< crypto::secret_key > & | additional_tx_keys, | ||
| const cryptonote::account_public_address & | address, | ||
| uint64_t & | received, | ||
| bool & | in_pool, | ||
| uint64_t & | confirmations | ||
| ) |
Definition at line 11276 of file wallet2.cpp.

| void tools::wallet2::check_tx_key_helper | ( | const crypto::hash & | txid, |
| const crypto::key_derivation & | derivation, | ||
| const std::vector< crypto::key_derivation > & | additional_derivations, | ||
| const cryptonote::account_public_address & | address, | ||
| uint64_t & | received, | ||
| bool & | in_pool, | ||
| uint64_t & | confirmations | ||
| ) |
Definition at line 11323 of file wallet2.cpp.

| void tools::wallet2::check_tx_key_helper | ( | const cryptonote::transaction & | tx, |
| const crypto::key_derivation & | derivation, | ||
| const std::vector< crypto::key_derivation > & | additional_derivations, | ||
| const cryptonote::account_public_address & | address, | ||
| uint64_t & | received | ||
| ) | const |
Definition at line 11291 of file wallet2.cpp.

| bool tools::wallet2::check_tx_proof | ( | const crypto::hash & | txid, |
| const cryptonote::account_public_address & | address, | ||
| bool | is_subaddress, | ||
| const std::string & | message, | ||
| const std::string & | sig_str, | ||
| uint64_t & | received, | ||
| bool & | in_pool, | ||
| uint64_t & | confirmations | ||
| ) |
Definition at line 11527 of file wallet2.cpp.

| bool tools::wallet2::check_tx_proof | ( | const cryptonote::transaction & | tx, |
| const cryptonote::account_public_address & | address, | ||
| bool | is_subaddress, | ||
| const std::string & | message, | ||
| const std::string & | sig_str, | ||
| uint64_t & | received | ||
| ) | const |
Definition at line 11576 of file wallet2.cpp.

Definition at line 10694 of file wallet2.cpp.

| void tools::wallet2::cold_sign_tx | ( | const std::vector< pending_tx > & | ptx_vector, |
| signed_tx_set & | exported_txs, | ||
| std::vector< cryptonote::address_parse_info > & | dsts_info, | ||
| std::vector< std::string > & | tx_device_aux | ||
| ) |
Definition at line 10665 of file wallet2.cpp.

| void tools::wallet2::cold_tx_aux_import | ( | const std::vector< pending_tx > & | ptx, |
| const std::vector< std::string > & | tx_device_aux | ||
| ) |
Definition at line 10655 of file wallet2.cpp.

| void tools::wallet2::commit_tx | ( | pending_tx & | ptx_vector | ) |
Definition at line 6887 of file wallet2.cpp.


| void tools::wallet2::commit_tx | ( | std::vector< pending_tx > & | ptx_vector | ) |
Definition at line 6967 of file wallet2.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| std::vector< wallet2::pending_tx > tools::wallet2::create_transactions_2 | ( | std::vector< cryptonote::tx_destination_entry > | dsts, |
| const size_t | fake_outs_count, | ||
| const uint64_t | unlock_time, | ||
| uint32_t | priority, | ||
| const std::vector< uint8_t > & | extra, | ||
| uint32_t | subaddr_account, | ||
| std::set< uint32_t > | subaddr_indices | ||
| ) |
Definition at line 9725 of file wallet2.cpp.


| std::vector< wallet2::pending_tx > tools::wallet2::create_transactions_all | ( | uint64_t | below, |
| const cryptonote::account_public_address & | address, | ||
| bool | is_subaddress, | ||
| const size_t | outputs, | ||
| const size_t | fake_outs_count, | ||
| const uint64_t | unlock_time, | ||
| uint32_t | priority, | ||
| const std::vector< uint8_t > & | extra, | ||
| uint32_t | subaddr_account, | ||
| std::set< uint32_t > | subaddr_indices, | ||
| const bool | migrate = false |
||
| ) |
Definition at line 10359 of file wallet2.cpp.

| std::vector< wallet2::pending_tx > tools::wallet2::create_transactions_from | ( | const cryptonote::account_public_address & | address, |
| bool | is_subaddress, | ||
| const size_t | outputs, | ||
| std::vector< size_t > | unused_transfers_indices, | ||
| std::vector< size_t > | unused_dust_indices, | ||
| const size_t | fake_outs_count, | ||
| const uint64_t | unlock_time, | ||
| uint32_t | priority, | ||
| const std::vector< uint8_t > & | extra, | ||
| const uint8_t | tx_version | ||
| ) |
Definition at line 10439 of file wallet2.cpp.

| std::vector< wallet2::pending_tx > tools::wallet2::create_transactions_single | ( | const crypto::key_image & | ki, |
| const cryptonote::account_public_address & | address, | ||
| bool | is_subaddress, | ||
| const size_t | outputs, | ||
| const size_t | fake_outs_count, | ||
| const uint64_t | unlock_time, | ||
| uint32_t | priority, | ||
| const std::vector< uint8_t > & | extra | ||
| ) |
Definition at line 10416 of file wallet2.cpp.

| std::vector< wallet2::pending_tx > tools::wallet2::create_unmixable_sweep_transactions | ( | ) |
Definition at line 10870 of file wallet2.cpp.
| template epee::wipeable_string tools::wallet2::decrypt | ( | const std::string & | ciphertext, |
| const crypto::secret_key & | skey, | ||
| bool | authenticated = true |
||
| ) | const |
Definition at line 13223 of file wallet2.cpp.
| void tools::wallet2::decrypt_keys | ( | const crypto::chacha_key & | key | ) |
Definition at line 4752 of file wallet2.cpp.

| void tools::wallet2::decrypt_keys | ( | const epee::wipeable_string & | password | ) |
Definition at line 4765 of file wallet2.cpp.
| std::string tools::wallet2::decrypt_with_view_secret_key | ( | const std::string & | ciphertext, |
| bool | authenticated = true |
||
| ) | const |
Definition at line 13250 of file wallet2.cpp.

|
inline |
|
inline |
| bool tools::wallet2::deinit | ( | ) |
Definition at line 4031 of file wallet2.cpp.
| bool tools::wallet2::delete_address_book_row | ( | std::size_t | row_id | ) |
Definition at line 3466 of file wallet2.cpp.
|
inline |
|
inline |
Definition at line 1112 of file wallet2.h.


|
static |
Definition at line 1188 of file wallet2.cpp.

|
inline |
|
inline |
|
static |
Definition at line 1183 of file wallet2.cpp.

| void tools::wallet2::discard_unmixable_outputs | ( | ) |
Definition at line 10901 of file wallet2.cpp.
| std::string tools::wallet2::dump_tx_to_str | ( | const std::vector< pending_tx > & | ptx_vector | ) | const |
Definition at line 6984 of file wallet2.cpp.
|
inline |
| std::string tools::wallet2::encrypt | ( | const char * | plaintext, |
| size_t | len, | ||
| const crypto::secret_key & | skey, | ||
| bool | authenticated = true |
||
| ) | const |
Definition at line 13181 of file wallet2.cpp.

| std::string tools::wallet2::encrypt | ( | const epee::span< char > & | span, |
| const crypto::secret_key & | skey, | ||
| bool | authenticated = true |
||
| ) | const |
Definition at line 13202 of file wallet2.cpp.
| std::string tools::wallet2::encrypt | ( | const std::string & | plaintext, |
| const crypto::secret_key & | skey, | ||
| bool | authenticated = true |
||
| ) | const |
Definition at line 13207 of file wallet2.cpp.
| std::string tools::wallet2::encrypt | ( | const epee::wipeable_string & | plaintext, |
| const crypto::secret_key & | skey, | ||
| bool | authenticated = true |
||
| ) | const |
Definition at line 13212 of file wallet2.cpp.
| void tools::wallet2::encrypt_keys | ( | const crypto::chacha_key & | key | ) |
Definition at line 4746 of file wallet2.cpp.

| void tools::wallet2::encrypt_keys | ( | const epee::wipeable_string & | password | ) |
Definition at line 4758 of file wallet2.cpp.
| std::string tools::wallet2::encrypt_with_view_secret_key | ( | const std::string & | plaintext, |
| bool | authenticated = true |
||
| ) | const |
Definition at line 13217 of file wallet2.cpp.
| std::vector< std::pair< uint64_t, uint64_t > > tools::wallet2::estimate_backlog | ( | const std::vector< std::pair< double, double >> & | fee_levels | ) |
Definition at line 13489 of file wallet2.cpp.

| std::vector< std::pair< uint64_t, uint64_t > > tools::wallet2::estimate_backlog | ( | uint64_t | min_tx_weight, |
| uint64_t | max_tx_weight, | ||
| const std::vector< uint64_t > & | fees | ||
| ) |
Definition at line 13543 of file wallet2.cpp.
| uint64_t tools::wallet2::estimate_blockchain_height | ( | ) |
Definition at line 4990 of file wallet2.cpp.
| std::string tools::wallet2::exchange_multisig_keys | ( | const epee::wipeable_string & | password, |
| const std::vector< std::string > & | info | ||
| ) |
Definition at line 5280 of file wallet2.cpp.
| std::string tools::wallet2::exchange_multisig_keys | ( | const epee::wipeable_string & | password, |
| std::unordered_set< crypto::public_key > | pkeys, | ||
| std::vector< crypto::public_key > | signers | ||
| ) |
Any but first round of keys exchange.
Definition at line 5301 of file wallet2.cpp.
| void tools::wallet2::expand_subaddresses | ( | const cryptonote::subaddress_index & | index, |
| const bool | udpate_account_tags = true |
||
| ) |
Definition at line 1478 of file wallet2.cpp.


|
inline |
|
inline |
| std::tuple< size_t, crypto::hash, std::vector< crypto::hash > > tools::wallet2::export_blockchain | ( | ) | const |
Definition at line 12691 of file wallet2.cpp.
| bool tools::wallet2::export_key_images | ( | const std::string & | filename | ) | const |
Definition at line 12191 of file wallet2.cpp.

| std::pair< size_t, std::vector< std::pair< crypto::key_image, crypto::signature > > > tools::wallet2::export_key_images | ( | bool | all = false | ) | const |
Definition at line 12221 of file wallet2.cpp.

| cryptonote::blobdata tools::wallet2::export_multisig | ( | ) |
Export multisig info This will generate and remember new k values
Definition at line 12994 of file wallet2.cpp.

| std::pair< size_t, std::vector< tools::wallet2::transfer_details > > tools::wallet2::export_outputs | ( | bool | all = false | ) | const |
Definition at line 12723 of file wallet2.cpp.
Definition at line 12744 of file wallet2.cpp.
| wallet2::payment_container tools::wallet2::export_payments | ( | ) | const |
Definition at line 12665 of file wallet2.cpp.
| bool tools::wallet2::finalize_multisig | ( | const epee::wipeable_string & | password, |
| const std::vector< std::string > & | info | ||
| ) |
Finalizes creation of a multisig wallet.
Definition at line 5516 of file wallet2.cpp.
| bool tools::wallet2::finalize_multisig | ( | const epee::wipeable_string & | password, |
| const std::unordered_set< crypto::public_key > & | pkeys, | ||
| std::vector< crypto::public_key > | signers | ||
| ) |
Finalizes creation of a multisig wallet.
Definition at line 5476 of file wallet2.cpp.
Definition at line 8109 of file wallet2.cpp.

| void tools::wallet2::finish_rescan_bc_keep_key_images | ( | uint64_t | transfer_height, |
| const crypto::hash & | hash | ||
| ) |
Definition at line 13734 of file wallet2.cpp.
| void tools::wallet2::freeze | ( | size_t | idx | ) |
Definition at line 1584 of file wallet2.cpp.

| void tools::wallet2::freeze | ( | const crypto::key_image & | ki | ) |
Definition at line 1605 of file wallet2.cpp.

| bool tools::wallet2::frozen | ( | size_t | idx | ) | const |
Definition at line 1598 of file wallet2.cpp.

| bool tools::wallet2::frozen | ( | const crypto::key_image & | ki | ) | const |
Definition at line 1615 of file wallet2.cpp.

| bool tools::wallet2::frozen | ( | const transfer_details & | td | ) | const |
Definition at line 1631 of file wallet2.cpp.
| void tools::wallet2::generate | ( | const std::string & | wallet_, |
| const epee::wipeable_string & | password, | ||
| const epee::wipeable_string & | multisig_data, | ||
| bool | create_address_file = false |
||
| ) |
Generates a wallet or restores one.
| wallet_ | Name of wallet file |
| password | Password of wallet file |
| multisig_data | The multisig restore info and keys |
| create_address_file | Whether to create an address file |
Definition at line 4869 of file wallet2.cpp.


| crypto::secret_key tools::wallet2::generate | ( | const std::string & | wallet_, |
| const epee::wipeable_string & | password, | ||
| const crypto::secret_key & | recovery_param = crypto::secret_key(), |
||
| bool | recover = false, |
||
| bool | two_random = false, |
||
| bool | create_address_file = false |
||
| ) |
Generates a wallet or restores one.
| wallet_ | Name of wallet file |
| password | Password of wallet file |
| recovery_param | If it is a restore, the recovery key |
| recover | Whether it is a restore |
| two_random | Whether it is a non-deterministic wallet |
| create_address_file | Whether to create an address file |
Definition at line 4957 of file wallet2.cpp.
| void tools::wallet2::generate | ( | const std::string & | wallet_, |
| const epee::wipeable_string & | password, | ||
| const cryptonote::account_public_address & | account_public_address, | ||
| const crypto::secret_key & | spendkey, | ||
| const crypto::secret_key & | viewkey, | ||
| bool | create_address_file = false |
||
| ) |
Creates a wallet from a public address and a spend/view secret key pair.
| wallet_ | Name of wallet file |
| password | Password of wallet file |
| account_public_address | The account's public address |
| spendkey | spend secret key |
| viewkey | view secret key |
| create_address_file | Whether to create an address file |
Definition at line 5077 of file wallet2.cpp.
| void tools::wallet2::generate | ( | const std::string & | wallet_, |
| const epee::wipeable_string & | password, | ||
| const cryptonote::account_public_address & | account_public_address, | ||
| const crypto::secret_key & | viewkey = crypto::secret_key(), |
||
| bool | create_address_file = false |
||
| ) |
Creates a watch only wallet from a public address and a view secret key.
| wallet_ | Name of wallet file |
| password | Password of wallet file |
| account_public_address | The account's public address |
| viewkey | view secret key |
| create_address_file | Whether to create an address file |
Definition at line 5040 of file wallet2.cpp.
|
inline |
|
inline |
| const std::pair< std::map< std::string, std::string >, std::vector< std::string > > & tools::wallet2::get_account_tags | ( | ) |
Get the list of registered account tags.
Definition at line 12036 of file wallet2.cpp.

|
inline |
Definition at line 793 of file wallet2.h.


|
inline |
Definition at line 798 of file wallet2.h.

|
inline |
| uint64_t tools::wallet2::get_approximate_blockchain_height | ( | ) | const |
Calculates the approximate blockchain height from current date/time.
Definition at line 11965 of file wallet2.cpp.
| std::string tools::wallet2::get_attribute | ( | const std::string & | key | ) | const |
Definition at line 12018 of file wallet2.cpp.
| uint64_t tools::wallet2::get_base_fee | ( | ) | const |
Definition at line 7785 of file wallet2.cpp.
|
inline |
| uint64_t tools::wallet2::get_blockchain_height_by_date | ( | uint16_t | year, |
| uint8_t | month, | ||
| uint8_t | day | ||
| ) |
Definition at line 13393 of file wallet2.cpp.

| uint64_t tools::wallet2::get_bytes_received | ( | ) | const |
Definition at line 13761 of file wallet2.cpp.
| uint64_t tools::wallet2::get_bytes_sent | ( | ) | const |
Definition at line 13756 of file wallet2.cpp.
|
inline |
| std::string tools::wallet2::get_daemon_address | ( | ) | const |
| uint64_t tools::wallet2::get_daemon_blockchain_height | ( | std::string & | err | ) | const |
Definition at line 11931 of file wallet2.cpp.
| uint64_t tools::wallet2::get_daemon_blockchain_target_height | ( | std::string & | err | ) |
Definition at line 11949 of file wallet2.cpp.
|
inline |
|
inline |
| std::string tools::wallet2::get_description | ( | ) | const |
Definition at line 12031 of file wallet2.cpp.
|
inline |
|
inline |
| int tools::wallet2::get_fee_algorithm | ( | ) | const |
Definition at line 7824 of file wallet2.cpp.
Definition at line 7732 of file wallet2.cpp.

| uint64_t tools::wallet2::get_fee_quantization_mask | ( | ) | const |
Definition at line 7807 of file wallet2.cpp.
Definition at line 10714 of file wallet2.cpp.
|
inlinestatic |
| std::string tools::wallet2::get_integrated_address_as_str | ( | const crypto::hash8 & | payment_id | ) | const |
Definition at line 1458 of file wallet2.cpp.

| std::string tools::wallet2::get_keys_file | ( | ) | const |
Definition at line 11921 of file wallet2.cpp.
|
inline |
|
inline |
|
inline |
| uint64_t tools::wallet2::get_max_ring_size | ( | ) | const |
Definition at line 7851 of file wallet2.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
| uint64_t tools::wallet2::get_min_ring_size | ( | ) | const |
Definition at line 7836 of file wallet2.cpp.
| std::string tools::wallet2::get_multisig_info | ( | ) | const |
Get a packaged multisig information string
Definition at line 5529 of file wallet2.cpp.

| bool tools::wallet2::get_multisig_seed | ( | epee::wipeable_string & | seed, |
| const epee::wipeable_string & | passphrase = std::string(), |
||
| bool | raw = true |
||
| ) | const |
Definition at line 1327 of file wallet2.cpp.

| crypto::public_key tools::wallet2::get_multisig_signer_public_key | ( | const crypto::secret_key & | spend_skey | ) | const |
Definition at line 12891 of file wallet2.cpp.

| crypto::public_key tools::wallet2::get_multisig_signer_public_key | ( | ) | const |
Definition at line 12898 of file wallet2.cpp.

| crypto::public_key tools::wallet2::get_multisig_signing_public_key | ( | size_t | idx | ) | const |
Definition at line 12914 of file wallet2.cpp.
| crypto::public_key tools::wallet2::get_multisig_signing_public_key | ( | const crypto::secret_key & | skey | ) | const |
Definition at line 12906 of file wallet2.cpp.

| mms::multisig_wallet_state tools::wallet2::get_multisig_wallet_state | ( | ) | const |
Definition at line 13615 of file wallet2.cpp.
| uint64_t tools::wallet2::get_num_rct_outputs | ( | ) |
Definition at line 10831 of file wallet2.cpp.

|
inline |
|
inline |
|
inline |
| void tools::wallet2::get_payments | ( | const crypto::hash & | payment_id, |
| std::list< wallet2::payment_details > & | payments, | ||
| uint64_t | min_height = 0, |
||
| const boost::optional< uint32_t > & | subaddr_account = boost::none, |
||
| const std::set< uint32_t > & | subaddr_indices = {} |
||
| ) | const |
Definition at line 6320 of file wallet2.cpp.
| void tools::wallet2::get_payments | ( | std::list< std::pair< crypto::hash, wallet2::payment_details >> & | payments, |
| uint64_t | min_height, | ||
| uint64_t | max_height = (uint64_t)-1, |
||
| const boost::optional< uint32_t > & | subaddr_account = boost::none, |
||
| const std::set< uint32_t > & | subaddr_indices = {} |
||
| ) | const |
Definition at line 6333 of file wallet2.cpp.
| void tools::wallet2::get_payments_out | ( | std::list< std::pair< crypto::hash, wallet2::confirmed_transfer_details >> & | confirmed_payments, |
| uint64_t | min_height, | ||
| uint64_t | max_height = (uint64_t)-1, |
||
| const boost::optional< uint32_t > & | subaddr_account = boost::none, |
||
| const std::set< uint32_t > & | subaddr_indices = {} |
||
| ) | const |
Definition at line 6346 of file wallet2.cpp.
| void tools::wallet2::get_payments_out_migration | ( | std::list< std::pair< crypto::hash, wallet2::confirmed_transfer_details >> & | confirmed_payments, |
| uint64_t | min_height, | ||
| uint64_t | max_height = (uint64_t)-1, |
||
| const boost::optional< uint32_t > & | subaddr_account = boost::none, |
||
| const std::set< uint32_t > & | subaddr_indices = {} |
||
| ) | const |
Definition at line 6363 of file wallet2.cpp.
| void tools::wallet2::get_payments_out_sc_migration | ( | std::list< std::pair< crypto::hash, wallet2::confirmed_transfer_details >> & | confirmed_payments, |
| uint64_t | min_height, | ||
| uint64_t | max_height = (uint64_t)-1, |
||
| const boost::optional< uint32_t > & | subaddr_account = boost::none, |
||
| const std::set< uint32_t > & | subaddr_indices = {} |
||
| ) | const |
Definition at line 6380 of file wallet2.cpp.
|
inline |
|
inline |
| std::string tools::wallet2::get_reserve_proof | ( | const boost::optional< std::pair< uint32_t, uint64_t >> & | account_minreserve, |
| const std::string & | message | ||
| ) |
Generates a proof that proves the reserve of unspent funds.
| account_minreserve | When specified, collect outputs only belonging to the given account and prove the smallest reserve above the given amount When unspecified, proves for all unspent outputs across all accounts |
| message | Arbitrary challenge message to be signed together |
Definition at line 11669 of file wallet2.cpp.

| bool tools::wallet2::get_ring | ( | const crypto::key_image & | key_image, |
| std::vector< uint64_t > & | outs | ||
| ) |
Definition at line 8057 of file wallet2.cpp.
|
inline |
| bool tools::wallet2::get_rings | ( | const crypto::hash & | txid, |
| std::vector< std::pair< crypto::key_image, std::vector< uint64_t >>> & | outs | ||
| ) |
Definition at line 8034 of file wallet2.cpp.

| bool tools::wallet2::get_seed | ( | epee::wipeable_string & | electrum_words, |
| const epee::wipeable_string & | passphrase = epee::wipeable_string() |
||
| ) | const |
Definition at line 1301 of file wallet2.cpp.

| const std::string & tools::wallet2::get_seed_language | ( | ) | const |
Gets the seed language.
Definition at line 1417 of file wallet2.cpp.
| std::string tools::wallet2::get_spend_proof | ( | const crypto::hash & | txid, |
| const std::string & | message | ||
| ) |
Definition at line 11047 of file wallet2.cpp.

| cryptonote::account_public_address tools::wallet2::get_subaddress | ( | const cryptonote::subaddress_index & | index | ) | const |
Definition at line 1430 of file wallet2.cpp.


| std::string tools::wallet2::get_subaddress_as_str | ( | const cryptonote::subaddress_index & | index | ) | const |
Definition at line 1452 of file wallet2.cpp.


| boost::optional< cryptonote::subaddress_index > tools::wallet2::get_subaddress_index | ( | const cryptonote::account_public_address & | address | ) | const |
Definition at line 1437 of file wallet2.cpp.
| std::string tools::wallet2::get_subaddress_label | ( | const cryptonote::subaddress_index & | index | ) | const |
Definition at line 1518 of file wallet2.cpp.
|
inline |
| crypto::public_key tools::wallet2::get_subaddress_spend_public_key | ( | const cryptonote::subaddress_index & | index | ) | const |
Definition at line 1445 of file wallet2.cpp.

| std::vector<crypto::public_key> tools::wallet2::get_subaddress_spend_public_keys | ( | uint32_t | account, |
| uint32_t | begin, | ||
| uint32_t | end | ||
| ) | const |
| const wallet2::transfer_details & tools::wallet2::get_transfer_details | ( | size_t | idx | ) | const |
Definition at line 10852 of file wallet2.cpp.

| void tools::wallet2::get_transfers | ( | wallet2::transfer_container & | incoming_transfers | ) | const |
| std::string tools::wallet2::get_tx_device_aux | ( | const crypto::hash & | txid | ) | const |
Definition at line 12005 of file wallet2.cpp.
| bool tools::wallet2::get_tx_key | ( | const crypto::hash & | txid, |
| crypto::secret_key & | tx_key, | ||
| std::vector< crypto::secret_key > & | additional_tx_keys | ||
| ) |
Definition at line 10924 of file wallet2.cpp.

| bool tools::wallet2::get_tx_key_cached | ( | const crypto::hash & | txid, |
| crypto::secret_key & | tx_key, | ||
| std::vector< crypto::secret_key > & | additional_tx_keys | ||
| ) | const |
Definition at line 10911 of file wallet2.cpp.
| std::string tools::wallet2::get_tx_note | ( | const crypto::hash & | txid | ) | const |
Definition at line 11992 of file wallet2.cpp.
| std::string tools::wallet2::get_tx_proof | ( | const crypto::hash & | txid, |
| const cryptonote::account_public_address & | address, | ||
| bool | is_subaddress, | ||
| const std::string & | message | ||
| ) |
Definition at line 11371 of file wallet2.cpp.

| std::string tools::wallet2::get_tx_proof | ( | const cryptonote::transaction & | tx, |
| const crypto::secret_key & | tx_key, | ||
| const std::vector< crypto::secret_key > & | additional_tx_keys, | ||
| const cryptonote::account_public_address & | address, | ||
| bool | is_subaddress, | ||
| const std::string & | message | ||
| ) | const |
Definition at line 11417 of file wallet2.cpp.

| crypto::public_key tools::wallet2::get_tx_pub_key_from_received_outs | ( | const tools::wallet2::transfer_details & | td | ) | const |
Definition at line 12143 of file wallet2.cpp.
| void tools::wallet2::get_unconfirmed_payments | ( | std::list< std::pair< crypto::hash, wallet2::pool_payment_details >> & | unconfirmed_payments, |
| const boost::optional< uint32_t > & | subaddr_account = boost::none, |
||
| const std::set< uint32_t > & | subaddr_indices = {} |
||
| ) | const |
Definition at line 6408 of file wallet2.cpp.
| void tools::wallet2::get_unconfirmed_payments_out | ( | std::list< std::pair< crypto::hash, wallet2::unconfirmed_transfer_details >> & | unconfirmed_payments, |
| const boost::optional< uint32_t > & | subaddr_account = boost::none, |
||
| const std::set< uint32_t > & | subaddr_indices = {} |
||
| ) | const |
Definition at line 6396 of file wallet2.cpp.
| std::string tools::wallet2::get_wallet_file | ( | ) | const |
Definition at line 11916 of file wallet2.cpp.
| bool tools::wallet2::has_multisig_partial_key_images | ( | ) | const |
Definition at line 5647 of file wallet2.cpp.
|
static |
Definition at line 1178 of file wallet2.cpp.


|
static |
Definition at line 1173 of file wallet2.cpp.


| bool tools::wallet2::has_unknown_key_images | ( | ) | const |
Definition at line 5657 of file wallet2.cpp.
| void tools::wallet2::hash_m_transfer | ( | const transfer_details & | transfer, |
| crypto::hash & | hash | ||
| ) | const |
Definition at line 13699 of file wallet2.cpp.

| uint64_t tools::wallet2::hash_m_transfers | ( | int64_t | transfer_height, |
| crypto::hash & | hash | ||
| ) | const |
Definition at line 13710 of file wallet2.cpp.

|
inline |
|
inline |
| void tools::wallet2::import_blockchain | ( | const std::tuple< size_t, crypto::hash, std::vector< crypto::hash >> & | bc | ) |
Definition at line 12703 of file wallet2.cpp.

| uint64_t tools::wallet2::import_key_images | ( | const std::vector< std::pair< crypto::key_image, crypto::signature >> & | signed_key_images, |
| size_t | offset, | ||
| uint64_t & | spent, | ||
| uint64_t & | unspent, | ||
| bool | check_spent = true |
||
| ) |
Definition at line 12333 of file wallet2.cpp.


| uint64_t tools::wallet2::import_key_images | ( | const std::string & | filename, |
| uint64_t & | spent, | ||
| uint64_t & | unspent | ||
| ) |
Definition at line 12278 of file wallet2.cpp.

| bool tools::wallet2::import_key_images | ( | std::vector< crypto::key_image > | key_images, |
| size_t | offset = 0, |
||
| boost::optional< std::unordered_set< size_t >> | selected_transfers = boost::none |
||
| ) |
| bool tools::wallet2::import_key_images | ( | signed_tx_set & | signed_tx, |
| size_t | offset = 0, |
||
| bool | only_selected_transfers = false |
||
| ) |
Definition at line 12650 of file wallet2.cpp.
| size_t tools::wallet2::import_multisig | ( | std::vector< cryptonote::blobdata > | info | ) |
Import a set of multisig info from multisig partners
Definition at line 13067 of file wallet2.cpp.

| size_t tools::wallet2::import_outputs | ( | const std::pair< size_t, std::vector< tools::wallet2::transfer_details >> & | outputs | ) |
Definition at line 12763 of file wallet2.cpp.


| size_t tools::wallet2::import_outputs_from_str | ( | const std::string & | outputs_st | ) |
Definition at line 12828 of file wallet2.cpp.
| void tools::wallet2::import_payments | ( | const payment_container & | payments | ) |
| void tools::wallet2::import_payments_out | ( | const std::list< std::pair< crypto::hash, wallet2::confirmed_transfer_details >> & | confirmed_payments | ) |
| bool tools::wallet2::init | ( | std::string | daemon_address = "http://localhost:8080", |
| boost::optional< epee::net_utils::http::login > | daemon_login = boost::none, |
||
| boost::asio::ip::tcp::endpoint | proxy = {}, |
||
| uint64_t | upper_transaction_weight_limit = 0, |
||
| bool | trusted_daemon = true, |
||
| epee::net_utils::ssl_options_t | ssl_options = epee::net_utils::ssl_support_t::e_ssl_support_autodetect, |
||
| std::string | blockchain_db_path = "" |
||
| ) |
Definition at line 1282 of file wallet2.cpp.


|
static |
Definition at line 1193 of file wallet2.cpp.


|
inline |
Definition at line 1326 of file wallet2.h.

|
inline |
Definition at line 1319 of file wallet2.h.

|
inline |
Definition at line 1333 of file wallet2.h.

| bool tools::wallet2::is_deprecated | ( | ) | const |
Tells if the wallet file is deprecated.
Definition at line 1546 of file wallet2.cpp.
| bool tools::wallet2::is_deterministic | ( | ) | const |
Checks if deterministic wallet.
Definition at line 1293 of file wallet2.cpp.


| bool tools::wallet2::is_keys_file_locked | ( | ) | const |
Definition at line 8236 of file wallet2.cpp.
Definition at line 8206 of file wallet2.cpp.
| bool tools::wallet2::is_synced | ( | ) | const |
Definition at line 13480 of file wallet2.cpp.
| bool tools::wallet2::is_transfer_unlocked | ( | const transfer_details & | td | ) | const |
Definition at line 6565 of file wallet2.cpp.
Definition at line 6570 of file wallet2.cpp.
|
inline |
Definition at line 6584 of file wallet2.cpp.
|
inline |
|
inline |
Definition at line 830 of file wallet2.h.

|
inline |
|
inline |
|
inline |
| bool tools::wallet2::light_wallet_get_address_info | ( | tools::COMMAND_RPC_GET_ADDRESS_INFO::response & | response | ) |
Definition at line 9438 of file wallet2.cpp.

| void tools::wallet2::light_wallet_get_address_txs | ( | ) |
Definition at line 9454 of file wallet2.cpp.

| void tools::wallet2::light_wallet_get_outs | ( | std::vector< std::vector< get_outs_entry >> & | outs, |
| const std::vector< size_t > & | selected_transfers, | ||
| size_t | fake_outputs_count | ||
| ) |
Definition at line 8268 of file wallet2.cpp.

| void tools::wallet2::light_wallet_get_unspent_outs | ( | ) |
Definition at line 9284 of file wallet2.cpp.

| bool tools::wallet2::light_wallet_import_wallet_request | ( | tools::COMMAND_RPC_IMPORT_WALLET_REQUEST::response & | response | ) |
Definition at line 9269 of file wallet2.cpp.

| bool tools::wallet2::light_wallet_key_image_is_ours | ( | const crypto::key_image & | key_image, |
| const crypto::public_key & | tx_public_key, | ||
| uint64_t | out_index | ||
| ) |
Definition at line 9667 of file wallet2.cpp.

Definition at line 9240 of file wallet2.cpp.

| bool tools::wallet2::light_wallet_parse_rct_str | ( | const std::string & | rct_string, |
| const crypto::public_key & | tx_pub_key, | ||
| uint64_t | internal_output_index, | ||
| rct::key & | decrypted_mask, | ||
| rct::key & | rct_commit, | ||
| bool | decrypt | ||
| ) | const |
Definition at line 9642 of file wallet2.cpp.

| void tools::wallet2::load | ( | const std::string & | wallet, |
| const epee::wipeable_string & | password | ||
| ) |
Definition at line 5833 of file wallet2.cpp.


| bool tools::wallet2::load_multisig_tx | ( | cryptonote::blobdata | blob, |
| multisig_tx_set & | exported_txs, | ||
| std::function< bool(const multisig_tx_set &)> | accept_func = NULL |
||
| ) |
Definition at line 7549 of file wallet2.cpp.

| bool tools::wallet2::load_multisig_tx_from_file | ( | const std::string & | filename, |
| multisig_tx_set & | exported_txs, | ||
| std::function< bool(const multisig_tx_set &)> | accept_func = NULL |
||
| ) |
Definition at line 7583 of file wallet2.cpp.

| bool tools::wallet2::load_tx | ( | const std::string & | signed_filename, |
| std::vector< tools::wallet2::pending_tx > & | ptx, | ||
| std::function< bool(const signed_tx_set &)> | accept_func = NULL |
||
| ) |
Definition at line 7321 of file wallet2.cpp.

| bool tools::wallet2::load_unsigned_tx | ( | const std::string & | unsigned_filename, |
| unsigned_tx_set & | exported_txs | ||
| ) | const |
Definition at line 7014 of file wallet2.cpp.

| bool tools::wallet2::lock_keys_file | ( | ) |
Definition at line 8214 of file wallet2.cpp.
|
static |
Just parses variables.
Definition at line 1261 of file wallet2.cpp.
|
static |
Uses stdin and stdout. Returns a wallet2 and password for wallet_file if no errors.
Definition at line 1233 of file wallet2.cpp.


|
static |
Uses stdin and stdout. Returns a wallet2 if no errors.
Definition at line 1227 of file wallet2.cpp.

| std::string tools::wallet2::make_multisig | ( | const epee::wipeable_string & | password, |
| const std::vector< std::string > & | info, | ||
| uint32_t | threshold | ||
| ) |
Creates a multisig wallet.
Definition at line 5466 of file wallet2.cpp.
| std::string tools::wallet2::make_multisig | ( | const epee::wipeable_string & | password, |
| const std::vector< crypto::secret_key > & | view_keys, | ||
| const std::vector< crypto::public_key > & | spend_keys, | ||
| uint32_t | threshold | ||
| ) |
Creates a multisig wallet.
Definition at line 5145 of file wallet2.cpp.

| wallet2::multisig_tx_set tools::wallet2::make_multisig_tx_set | ( | const std::vector< pending_tx > & | ptx_vector | ) | const |
Definition at line 7477 of file wallet2.cpp.
|
static |
Uses stdin and stdout. Returns a wallet2 and password for wallet with no file if no errors.
Definition at line 1250 of file wallet2.cpp.

| std::string tools::wallet2::make_uri | ( | const std::string & | address, |
| const std::string & | payment_id, | ||
| uint64_t | amount, | ||
| const std::string & | tx_description, | ||
| const std::string & | recipient_name, | ||
| std::string & | error | ||
| ) | const |
Definition at line 13255 of file wallet2.cpp.

|
inline |
|
inline |
| bool tools::wallet2::multisig | ( | bool * | ready = NULL, |
| uint32_t * | threshold = NULL, |
||
| uint32_t * | total = NULL |
||
| ) | const |
Definition at line 5634 of file wallet2.cpp.


|
inline |
|
static |
Definition at line 5712 of file wallet2.cpp.


| bool tools::wallet2::parse_multisig_tx_from_str | ( | std::string | multisig_tx_st, |
| multisig_tx_set & | exported_txs | ||
| ) | const |
Definition at line 7505 of file wallet2.cpp.
|
static |
Definition at line 5738 of file wallet2.cpp.

|
static |
Definition at line 5725 of file wallet2.cpp.


| bool tools::wallet2::parse_tx_from_str | ( | const std::string & | signed_tx_st, |
| std::vector< tools::wallet2::pending_tx > & | ptx, | ||
| std::function< bool(const signed_tx_set &)> | accept_func | ||
| ) |
Definition at line 7342 of file wallet2.cpp.

| bool tools::wallet2::parse_unsigned_tx_from_str | ( | const std::string & | unsigned_tx_st, |
| unsigned_tx_set & | exported_txs | ||
| ) | const |
Definition at line 7033 of file wallet2.cpp.
| bool tools::wallet2::parse_uri | ( | const std::string & | uri, |
| std::string & | address, | ||
| std::string & | payment_id, | ||
| uint64_t & | amount, | ||
| std::string & | tx_description, | ||
| std::string & | recipient_name, | ||
| std::vector< std::string > & | unknown_parameters, | ||
| std::string & | error | ||
| ) |
Definition at line 13309 of file wallet2.cpp.

| std::string tools::wallet2::path | ( | ) | const |
Definition at line 6027 of file wallet2.cpp.
| size_t tools::wallet2::pop_best_value | ( | std::vector< size_t > & | unused_dust_indices, |
| const std::vector< size_t > & | selected_transfers, | ||
| bool | smallest = false |
||
| ) | const |
Definition at line 6740 of file wallet2.cpp.
| size_t tools::wallet2::pop_best_value_from | ( | const transfer_container & | transfers, |
| std::vector< size_t > & | unused_dust_indices, | ||
| const std::vector< size_t > & | selected_transfers, | ||
| bool | smallest = false |
||
| ) | const |
Definition at line 6691 of file wallet2.cpp.

|
inline |
|
inline |
|
inline |
Definition at line 900 of file wallet2.h.

|
static |
determine the key storage for the specified wallet file
| device_type | (OUT) wallet backend as enumerated in hw::device::device_type |
| keys_file_name | Keys file to verify password for |
| password | Password to verify |
for verification only - determines key storage hardware
Definition at line 4807 of file wallet2.cpp.


| bool tools::wallet2::reconnect_device | ( | ) |
Definition at line 1390 of file wallet2.cpp.

| void tools::wallet2::refresh | ( | bool | trusted_daemon | ) |
| void tools::wallet2::refresh | ( | bool | trusted_daemon, |
| uint64_t | start_height, | ||
| uint64_t & | blocks_fetched | ||
| ) |
Definition at line 3066 of file wallet2.cpp.
| void tools::wallet2::refresh | ( | bool | trusted_daemon, |
| uint64_t | start_height, | ||
| uint64_t & | blocks_fetched, | ||
| bool & | received_etn, | ||
| bool | check_pool = true |
||
| ) |
Definition at line 3493 of file wallet2.cpp.
| bool tools::wallet2::refresh | ( | bool | trusted_daemon, |
| uint64_t & | blocks_fetched, | ||
| bool & | received_etn, | ||
| bool & | ok | ||
| ) |
Definition at line 3851 of file wallet2.cpp.
| void tools::wallet2::remove_obsolete_pool_txs | ( | const std::vector< crypto::hash > & | tx_hashes | ) |
Definition at line 3136 of file wallet2.cpp.
| void tools::wallet2::rescan_blockchain | ( | bool | hard, |
| bool | refresh = true, |
||
| bool | keep_key_images = false |
||
| ) |
Definition at line 6540 of file wallet2.cpp.
| void tools::wallet2::rescan_spent | ( | ) |
Definition at line 6417 of file wallet2.cpp.

| void tools::wallet2::restore | ( | const std::string & | wallet_, |
| const epee::wipeable_string & | password, | ||
| const std::string & | device_name, | ||
| bool | create_address_file = false |
||
| ) |
Restore a wallet hold by an HW.
Creates a wallet from a device.
| wallet_ | Name of wallet file |
| password | Password of wallet file |
| device_name | name of HW to use |
| create_address_file | Whether to create an address file |
| wallet_ | Name of wallet file |
| password | Password of wallet file |
| device_name | device string address |
Definition at line 5110 of file wallet2.cpp.

| void tools::wallet2::rewrite | ( | const std::string & | wallet_name, |
| const epee::wipeable_string & | password | ||
| ) |
Rewrites to the wallet file for wallet upgrade (doesn't generate key, assumes it's already there)
| wallet_name | Name of wallet file (should exist) |
| password | Password for wallet file |
Definition at line 5670 of file wallet2.cpp.
| bool tools::wallet2::sanity_check | ( | const std::vector< wallet2::pending_tx > & | ptx_vector, |
| std::vector< cryptonote::tx_destination_entry > | dsts | ||
| ) | const |
Definition at line 10280 of file wallet2.cpp.

| std::string tools::wallet2::save_multisig_tx | ( | multisig_tx_set | txs | ) |
Definition at line 7431 of file wallet2.cpp.

| bool tools::wallet2::save_multisig_tx | ( | const multisig_tx_set & | txs, |
| const std::string & | filename | ||
| ) |
Definition at line 7469 of file wallet2.cpp.

| std::string tools::wallet2::save_multisig_tx | ( | const std::vector< pending_tx > & | ptx_vector | ) |
Definition at line 7492 of file wallet2.cpp.
| bool tools::wallet2::save_multisig_tx | ( | const std::vector< pending_tx > & | ptx_vector, |
| const std::string & | filename | ||
| ) |
Definition at line 7497 of file wallet2.cpp.

| bool tools::wallet2::save_tx | ( | const std::vector< pending_tx > & | ptx_vector, |
| const std::string & | filename | ||
| ) | const |
Definition at line 6975 of file wallet2.cpp.

|
inline |
|
inline |
|
inline |
|
inline |
| std::vector< size_t > tools::wallet2::select_available_mixable_outputs | ( | ) |
Definition at line 10864 of file wallet2.cpp.
| std::vector< size_t > tools::wallet2::select_available_outputs | ( | const std::function< bool(const transfer_details &td)> & | f | ) | const |
Definition at line 10755 of file wallet2.cpp.
| std::vector< size_t > tools::wallet2::select_available_outputs_from_histogram | ( | uint64_t | count, |
| bool | atleast, | ||
| bool | unlocked, | ||
| bool | allow_rct | ||
| ) |
Definition at line 10792 of file wallet2.cpp.

| std::vector< size_t > tools::wallet2::select_available_unmixable_outputs | ( | ) |
Definition at line 10858 of file wallet2.cpp.
|
inline |
Definition at line 910 of file wallet2.h.
| void tools::wallet2::set_account_tag | ( | const std::set< uint32_t > & | account_indices, |
| const std::string & | tag | ||
| ) |
Set a tag to the given accounts.
| account_indices | Indices of accounts. |
| tag | Tag's name. If empty, the accounts become untagged. |
Definition at line 12056 of file wallet2.cpp.
| void tools::wallet2::set_account_tag_description | ( | const std::string & | tag, |
| const std::string & | description | ||
| ) |
Set the label of the given tag.
| tag | Tag's name (which must be non-empty). |
| description | Tag's description. |
Definition at line 12069 of file wallet2.cpp.
| void tools::wallet2::set_attribute | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
Definition at line 12013 of file wallet2.cpp.
| bool tools::wallet2::set_blackballed_outputs | ( | const std::vector< std::pair< uint64_t, uint64_t >> & | outputs, |
| bool | add = false |
||
| ) |
Definition at line 8183 of file wallet2.cpp.
|
inline |
| bool tools::wallet2::set_daemon | ( | std::string | daemon_address = "http://localhost:8080", |
| boost::optional< epee::net_utils::http::login > | daemon_login = boost::none, |
||
| bool | trusted_daemon = true, |
||
| epee::net_utils::ssl_options_t | ssl_options = epee::net_utils::ssl_support_t::e_ssl_support_autodetect |
||
| ) |
Definition at line 1268 of file wallet2.cpp.


|
inline |
| void tools::wallet2::set_description | ( | const std::string & | description | ) |
Definition at line 12026 of file wallet2.cpp.
|
inline |
Definition at line 778 of file wallet2.h.

|
inline |
|
inline |
Definition at line 5810 of file wallet2.cpp.
|
inline |
|
inline |
| bool tools::wallet2::set_ring | ( | const crypto::key_image & | key_image, |
| const std::vector< uint64_t > & | outs, | ||
| bool | relative | ||
| ) |
Definition at line 8063 of file wallet2.cpp.
| bool tools::wallet2::set_ring_database | ( | const std::string & | filename | ) |
Definition at line 7956 of file wallet2.cpp.

| void tools::wallet2::set_seed_language | ( | const std::string & | language | ) |
Sets the seed language.
| language | Seed language to set to |
Definition at line 1425 of file wallet2.cpp.

| void tools::wallet2::set_subaddress_label | ( | const cryptonote::subaddress_index & | index, |
| const std::string & | label | ||
| ) |
Definition at line 1528 of file wallet2.cpp.

| void tools::wallet2::set_subaddress_lookahead | ( | size_t | major, |
| size_t | minor | ||
| ) |
Definition at line 1535 of file wallet2.cpp.

|
inline |
| void tools::wallet2::set_tx_device_aux | ( | const crypto::hash & | txid, |
| const std::string & | aux | ||
| ) |
Definition at line 12000 of file wallet2.cpp.
| void tools::wallet2::set_tx_key | ( | const crypto::hash & | txid, |
| const crypto::secret_key & | tx_key, | ||
| const std::vector< crypto::secret_key > & | additional_tx_keys | ||
| ) |
Definition at line 11000 of file wallet2.cpp.

| void tools::wallet2::set_tx_note | ( | const crypto::hash & | txid, |
| const std::string & | note | ||
| ) |
Definition at line 11987 of file wallet2.cpp.
|
inline |
|
inline |
|
inline |
| std::string tools::wallet2::sign | ( | const std::string & | data | ) | const |
Definition at line 12076 of file wallet2.cpp.

| std::string tools::wallet2::sign_multisig_participant | ( | const std::string & | data | ) | const |
sign_multisig_participant signs given message with the multisig public signer key
| data | message to sign |
| if | wallet is not multisig |
Definition at line 12109 of file wallet2.cpp.

| bool tools::wallet2::sign_multisig_tx | ( | multisig_tx_set & | exported_txs, |
| std::vector< crypto::hash > & | txids | ||
| ) |
Definition at line 7607 of file wallet2.cpp.

| bool tools::wallet2::sign_multisig_tx_from_file | ( | const std::string & | filename, |
| std::vector< crypto::hash > & | txids, | ||
| std::function< bool(const multisig_tx_set &)> | accept_func | ||
| ) |
Definition at line 7718 of file wallet2.cpp.
| bool tools::wallet2::sign_multisig_tx_to_file | ( | multisig_tx_set & | exported_txs, |
| const std::string & | filename, | ||
| std::vector< crypto::hash > & | txids | ||
| ) |
Definition at line 7710 of file wallet2.cpp.
| bool tools::wallet2::sign_tx | ( | const std::string & | unsigned_filename, |
| const std::string & | signed_filename, | ||
| std::vector< wallet2::pending_tx > & | ptx, | ||
| std::function< bool(const unsigned_tx_set &)> | accept_func = NULL, |
||
| bool | export_raw = false |
||
| ) |
Definition at line 7102 of file wallet2.cpp.

| bool tools::wallet2::sign_tx | ( | unsigned_tx_set & | exported_txs, |
| const std::string & | signed_filename, | ||
| std::vector< wallet2::pending_tx > & | ptx, | ||
| bool | export_raw = false |
||
| ) |
Definition at line 7262 of file wallet2.cpp.

| bool tools::wallet2::sign_tx | ( | unsigned_tx_set & | exported_txs, |
| std::vector< wallet2::pending_tx > & | ptx, | ||
| signed_tx_set & | signed_txs | ||
| ) |
Definition at line 7116 of file wallet2.cpp.

| std::string tools::wallet2::sign_tx_dump_to_str | ( | unsigned_tx_set & | exported_txs, |
| std::vector< wallet2::pending_tx > & | ptx, | ||
| signed_tx_set & | signed_txes | ||
| ) |
Definition at line 7295 of file wallet2.cpp.
|
inline |
| void tools::wallet2::store | ( | ) |
Definition at line 6032 of file wallet2.cpp.

| void tools::wallet2::store_to | ( | const std::string & | path, |
| const epee::wipeable_string & | password | ||
| ) |
store_to Stores wallet to another file(s), deleting old ones
| path | Path to the wallet file (keys and address filenames will be generated based on this filename) |
| password | Password to protect new wallet (TODO: probably better save the password in the wallet object?) |
Definition at line 6038 of file wallet2.cpp.

|
inline |
|
inline |
|
inline |
Definition at line 899 of file wallet2.h.

| void tools::wallet2::thaw | ( | size_t | idx | ) |
Definition at line 1591 of file wallet2.cpp.

| void tools::wallet2::thaw | ( | const crypto::key_image & | ki | ) |
Definition at line 1610 of file wallet2.cpp.

|
static |
Definition at line 994 of file wallet2.cpp.

|
inline |
| void tools::wallet2::transfer_selected | ( | const std::vector< cryptonote::tx_destination_entry > & | dsts, |
| const std::vector< size_t > & | selected_transfers, | ||
| size_t | fake_outputs_count, | ||
| std::vector< std::vector< tools::wallet2::get_outs_entry >> & | outs, | ||
| uint64_t | unlock_time, | ||
| uint64_t | fee, | ||
| const std::vector< uint8_t > & | extra, | ||
| T | destination_split_strategy, | ||
| const tx_dust_policy & | dust_policy, | ||
| cryptonote::transaction & | tx, | ||
| pending_tx & | ptx | ||
| ) |
Definition at line 8952 of file wallet2.cpp.

Definition at line 8198 of file wallet2.cpp.
| bool tools::wallet2::unlock_keys_file | ( | ) |
Definition at line 8225 of file wallet2.cpp.
| uint64_t tools::wallet2::unlocked_balance | ( | uint32_t | subaddr_index_major, |
| bool | public_blockchain, | ||
| uint64_t * | blocks_to_unlock = NULL |
||
| ) | const |
Definition at line 6172 of file wallet2.cpp.

| uint64_t tools::wallet2::unlocked_balance_all | ( | bool | public_blockchain, |
| uint64_t * | blocks_to_unlock = NULL |
||
| ) | const |
Definition at line 6300 of file wallet2.cpp.
| std::map< uint32_t, std::pair< uint64_t, uint64_t > > tools::wallet2::unlocked_balance_per_subaddress | ( | uint32_t | subaddr_index_major, |
| bool | public_blockchain = false |
||
| ) | const |
Definition at line 6249 of file wallet2.cpp.
| bool tools::wallet2::unset_ring | ( | const std::vector< crypto::key_image > & | key_images | ) |
Definition at line 8072 of file wallet2.cpp.
| bool tools::wallet2::unset_ring | ( | const crypto::hash & | txid | ) |
Definition at line 8081 of file wallet2.cpp.

Definition at line 3164 of file wallet2.cpp.

Definition at line 10720 of file wallet2.cpp.
| bool tools::wallet2::verify | ( | const std::string & | data, |
| const cryptonote::account_public_address & | address, | ||
| const std::string & | signature | ||
| ) | const |
Definition at line 12086 of file wallet2.cpp.


|
static |
Verifies and extracts keys from a packaged multisig information string
Definition at line 5586 of file wallet2.cpp.
|
static |
Verifies and extracts keys from a packaged multisig information string
Definition at line 5548 of file wallet2.cpp.

|
static |
verify password for specified wallet keys file.
| keys_file_name | Keys file to verify password for |
| password | Password to verify |
| no_spend_key | If set = only verify view keys, otherwise also spend keys |
| hwdev | The hardware device to use |
for verification only should not mutate state, unlike load_keys() can be used prior to rewriting wallet keys file, to ensure user has entered the correct password
Definition at line 4699 of file wallet2.cpp.


| bool tools::wallet2::verify_password | ( | const epee::wipeable_string & | password | ) |
verifies given password is correct for default wallet keys file
verify password for default wallet keys file.
| password | Password to verify |
for verification only should not mutate state, unlike load_keys() can be used prior to rewriting wallet keys file, to ensure user has entered the correct password
Definition at line 4677 of file wallet2.cpp.
| bool tools::wallet2::verify_with_public_key | ( | const std::string & | data, |
| const crypto::public_key & | public_key, | ||
| const std::string & | signature | ||
| ) | const |
verify_with_public_key verifies message was signed with given public key
| data | message |
| public_key | public key to check signature |
| signature | signature of the message |
Definition at line 12121 of file wallet2.cpp.
|
static |
Check if wallet keys and bin files exist.
| file_path | Wallet file path |
| keys_file_exists | Whether keys file exists |
| wallet_file_exists | Whether bin file exists |
Definition at line 5697 of file wallet2.cpp.

|
static |
Definition at line 5707 of file wallet2.cpp.
|
inline |
| void tools::wallet2::write_watch_only_wallet | ( | const std::string & | wallet_name, |
| const epee::wipeable_string & | password, | ||
| std::string & | new_keys_filename | ||
| ) |
Writes to a file named based on the normal wallet (doesn't generate key, assumes it's already there)
| wallet_name | Base name of wallet file |
| password | Password for wallet file |
| new_keys_filename | [OUT] Name of new keys file |
Definition at line 5686 of file wallet2.cpp.
|
friend |
|
friend |
|
friend |
|
friend |
| const char* const tools::wallet2::ATTRIBUTE_DESCRIPTION = "wallet2.description" |
|
static |