|
| atomizer_client (const cbdc::config::options &opts, const std::shared_ptr< logging::log > &logger, const std::string &wallet_file, const std::string &client_file) |
| Constructor.
|
|
| ~atomizer_client () override |
|
| atomizer_client ()=delete |
|
| atomizer_client (const atomizer_client &)=delete |
|
auto | operator= (const atomizer_client &) -> atomizer_client &=delete |
|
| atomizer_client (atomizer_client &&)=delete |
|
auto | operator= (atomizer_client &&) -> atomizer_client &=delete |
|
auto | sync () -> bool override |
| Update the client with the latest state from the watchtower.
|
|
| client (cbdc::config::options opts, std::shared_ptr< logging::log > logger, std::string wallet_file, std::string client_file) |
| Constructor.
|
|
virtual | ~client ()=default |
|
| client (const client &)=delete |
|
auto | operator= (const client &) -> client &=delete |
|
| client (client &&)=delete |
|
auto | operator= (client &&) -> client &=delete |
|
auto | init () -> bool |
| Initializes the client.
|
|
auto | mint (size_t n_outputs, uint32_t output_val) -> transaction::full_tx |
| Creates the specified number spendable outputs each with the specified value.
|
|
auto | send (uint32_t value, const pubkey_t &payee) -> std::pair< std::optional< transaction::full_tx >, std::optional< cbdc::sentinel::execute_response > > |
| Send a specified amount from this client's wallet to a target address.
|
|
auto | fan (uint32_t count, uint32_t value, const pubkey_t &payee) -> std::pair< std::optional< transaction::full_tx >, std::optional< cbdc::sentinel::execute_response > > |
| Send a specified number of fixed-value outputs from this client's wallet to a target address.
|
|
void | import_send_input (const transaction::input &in) |
| Imports transaction data from a sender.
|
|
auto | new_address () -> pubkey_t |
| Generates a new wallet address that other clients can use to send money to this client using send.
|
|
auto | balance () -> uint64_t |
| Returns the balance in this client's wallet.
|
|
auto | utxo_count () -> size_t |
| Returns the number of UTXOs in this client's wallet.
|
|
auto | pending_tx_count () -> size_t |
| Returns the number of unconfirmed transactions.
|
|
auto | pending_input_count () -> size_t |
| Returns the number of pending received inputs.
|
|
auto | confirm_transaction (const hash_t &tx_id) -> bool |
| Confirms the transaction with the given ID.
|
|
auto | create_transaction (uint32_t value, const pubkey_t &payee) -> std::optional< transaction::full_tx > |
| Create a new transaction.
|
|
auto | send_transaction (const transaction::full_tx &tx) -> std::optional< cbdc::sentinel::execute_response > |
| Send the given transaction to the sentinel.
|
|
auto | abandon_transaction (const hash_t &tx_id) -> bool |
| Abandons a transaction currently awaiting confirmation.
|
|
auto | check_pending (const transaction::input &inp) -> bool |
| Checks the client's pending transaction set for the specified transaction.
|
|
void | sign_transaction (transaction::full_tx &tx) |
| Signs the given transaction for as far as client's wallet contains the transaction's keys.
|
|
Client for interacting with the atomizer architecture.
Definition at line 14 of file atomizer_client.hpp.