|
Electroneum
|
#include <wallet.h>


Public Member Functions | |
| WalletImpl (NetworkType nettype=MAINNET, uint64_t kdf_rounds=1) | |
| ~WalletImpl () | |
| bool | create (const std::string &path, const std::string &password, const std::string &language) |
| bool | createWatchOnly (const std::string &path, const std::string &password, const std::string &language) const override |
| createWatchOnly - Creates a watch only wallet More... | |
| bool | open (const std::string &path, const std::string &password) |
| bool | recover (const std::string &path, const std::string &password, const std::string &seed) |
| bool | recoverFromKeysWithPassword (const std::string &path, const std::string &password, const std::string &language, const std::string &address_string, const std::string &viewkey_string, const std::string &spendkey_string="") |
| bool | recover (const std::string &path, const std::string &seed) |
| bool | recoverFromKeys (const std::string &path, const std::string &language, const std::string &address_string, const std::string &viewkey_string, const std::string &spendkey_string="") |
| bool | recoverFromDevice (const std::string &path, const std::string &password, const std::string &device_name) |
| Device | getDeviceType () const override |
| Queries backing device for wallet keys. More... | |
| bool | close (bool store=true) |
| std::string | seed () const override |
| std::string | getSeedLanguage () const override |
| void | setSeedLanguage (const std::string &arg) override |
| int | status () const override |
| returns wallet status (Status_Ok | Status_Error) More... | |
| std::string | errorString () const override |
| in case error status, returns error string More... | |
| void | statusWithErrorString (int &status, std::string &errorString) const override |
| returns both error and error string atomically. suggested to use in instead of status() and errorString() More... | |
| bool | setPassword (const std::string &password) override |
| bool | setDevicePin (const std::string &password) override |
| bool | setDevicePassphrase (const std::string &password) override |
| std::string | address (uint32_t accountIndex=0, uint32_t addressIndex=0) const override |
| std::string | integratedAddress (const std::string &payment_id) const override |
| integratedAddress - returns integrated address for current wallet address and given payment_id. if passed "payment_id" param is an empty string or not-valid payment id string (16 characters hexadecimal string) - random payment_id will be generated More... | |
| std::string | secretViewKey () const override |
| secretViewKey - returns secret view key More... | |
| std::string | publicViewKey () const override |
| publicViewKey - returns public view key More... | |
| std::string | secretSpendKey () const override |
| secretSpendKey - returns secret spend key More... | |
| std::string | publicSpendKey () const override |
| publicSpendKey - returns public spend key More... | |
| std::string | publicMultisigSignerKey () const override |
| publicMultisigSignerKey - returns public signer key More... | |
| std::string | path () const override |
| bool | store (const std::string &path) override |
| store - stores wallet to file. More... | |
| std::string | filename () const override |
| filename - returns wallet filename More... | |
| std::string | keysFilename () const override |
| keysFilename - returns keys filename. usually this formed as "wallet_filename".keys More... | |
| bool | init (const std::string &daemon_address, uint64_t upper_transaction_size_limit=0, const std::string &daemon_username="", const std::string &daemon_password="", bool use_ssl=false, bool lightWallet=false) override |
| init - initializes wallet with daemon connection params. if daemon_address is local address, "trusted daemon" will be set to true forcibly startRefresh() should be called when wallet is initialized. More... | |
| bool | connectToDaemon () override |
| connectToDaemon - connects to the daemon. TODO: check if it can be removed More... | |
| ConnectionStatus | connected () const override |
| connected - checks if the wallet connected to the daemon More... | |
| void | setTrustedDaemon (bool arg) override |
| bool | trustedDaemon () const override |
| uint64_t | balance (uint32_t accountIndex=0, bool public_blockchain=false) const override |
| uint64_t | unlockedBalance (uint32_t accountIndex=0, bool public_blockchain=false) const override |
| uint64_t | blockChainHeight () const override |
| blockChainHeight - returns current blockchain height More... | |
| uint64_t | approximateBlockChainHeight () const override |
| approximateBlockChainHeight - returns approximate blockchain height calculated from date/time More... | |
| uint64_t | estimateBlockChainHeight () const override |
| estimateBlockChainHeight - returns estimate blockchain height. More accurate than approximateBlockChainHeight, uses daemon height and falls back to calculation from date/time More... | |
| uint64_t | daemonBlockChainHeight () const override |
| daemonBlockChainHeight - returns daemon blockchain height More... | |
| uint64_t | daemonBlockChainTargetHeight () const override |
| daemonBlockChainTargetHeight - returns daemon blockchain target height More... | |
| bool | synchronized () const override |
| synchronized - checks if wallet was ever synchronized More... | |
| bool | refresh () override |
| refresh - refreshes the wallet, updating transactions from daemon More... | |
| void | refreshAsync () override |
| refreshAsync - refreshes wallet asynchronously. More... | |
| bool | rescanBlockchain () override |
| rescanBlockchain - rescans the wallet, updating transactions from daemon More... | |
| void | rescanBlockchainAsync () override |
| rescanBlockchainAsync - rescans wallet asynchronously, starting from genesys More... | |
| void | setAutoRefreshInterval (int millis) override |
| setAutoRefreshInterval - setup interval for automatic refresh. More... | |
| int | autoRefreshInterval () const override |
| autoRefreshInterval - returns automatic refresh interval in millis More... | |
| void | setRefreshFromBlockHeight (uint64_t refresh_from_block_height) override |
| setRefreshFromBlockHeight - start refresh from block height on recover More... | |
| uint64_t | getRefreshFromBlockHeight () const override |
| getRestoreHeight - get wallet creation height More... | |
| void | setRecoveringFromSeed (bool recoveringFromSeed) override |
| setRecoveringFromSeed - set state recover form seed More... | |
| void | setRecoveringFromDevice (bool recoveringFromDevice) override |
| setRecoveringFromDevice - set state to recovering from device More... | |
| void | setSubaddressLookahead (uint32_t major, uint32_t minor) override |
| setSubaddressLookahead - set size of subaddress lookahead More... | |
| bool | watchOnly () const override |
| watchOnly - checks if wallet is watch only More... | |
| bool | rescanSpent () override |
| NetworkType | nettype () const override |
| void | hardForkInfo (uint8_t &version, uint64_t &earliest_height) const override |
| returns current hard fork info More... | |
| bool | useForkRules (uint8_t version, int64_t early_blocks) const override |
| check if hard fork rules should be used More... | |
| void | addSubaddressAccount (const std::string &label) override |
| addSubaddressAccount - appends a new subaddress account at the end of the last major index of existing subaddress accounts More... | |
| size_t | numSubaddressAccounts () const override |
| numSubaddressAccounts - returns the number of existing subaddress accounts More... | |
| size_t | numSubaddresses (uint32_t accountIndex) const override |
| numSubaddresses - returns the number of existing subaddresses associated with the specified subaddress account More... | |
| void | addSubaddress (uint32_t accountIndex, const std::string &label) override |
| addSubaddress - appends a new subaddress at the end of the last minor index of the specified subaddress account More... | |
| std::string | getSubaddressLabel (uint32_t accountIndex, uint32_t addressIndex) const override |
| getSubaddressLabel - gets the label of the specified subaddress More... | |
| void | setSubaddressLabel (uint32_t accountIndex, uint32_t addressIndex, const std::string &label) override |
| setSubaddressLabel - sets the label of the specified subaddress More... | |
| MultisigState | multisig () const override |
| multisig - returns current state of multisig wallet creation process More... | |
| std::string | getMultisigInfo () const override |
| getMultisigInfo More... | |
| std::string | makeMultisig (const std::vector< std::string > &info, uint32_t threshold) override |
| makeMultisig - switches wallet in multisig state. The one and only creation phase for N / N wallets More... | |
| std::string | exchangeMultisigKeys (const std::vector< std::string > &info) override |
| exchange_multisig_keys - provides additional key exchange round for arbitrary multisig schemes (like N-1/N, M/N) More... | |
| bool | finalizeMultisig (const std::vector< std::string > &extraMultisigInfo) override |
| finalizeMultisig - finalizes N - 1 / N multisig wallets creation More... | |
| bool | exportMultisigImages (std::string &images) override |
| exportMultisigImages - exports transfers' key images More... | |
| size_t | importMultisigImages (const std::vector< std::string > &images) override |
| importMultisigImages - imports other participants' multisig images More... | |
| bool | hasMultisigPartialKeyImages () const override |
| hasMultisigPartialKeyImages - checks if wallet needs to import multisig key images from other participants More... | |
| PendingTransaction * | restoreMultisigTransaction (const std::string &signData) override |
| restoreMultisigTransaction creates PendingTransaction from signData More... | |
| PendingTransaction * | createTransaction (const std::string &dst_addr, const std::string &payment_id, optional< uint64_t > amount, uint32_t mixin_count, PendingTransaction::Priority priority=PendingTransaction::Priority_Low, uint32_t subaddr_account=0, std::set< uint32_t > subaddr_indices={}) override |
| createTransaction creates transaction. if dst_addr is an integrated address, payment_id is ignored More... | |
| virtual PendingTransaction * | createSweepUnmixableTransaction () override |
| createSweepUnmixableTransaction creates transaction with unmixable outputs. More... | |
| bool | submitTransaction (const std::string &fileName) override |
| submitTransaction - submits transaction in signed tx file More... | |
| virtual UnsignedTransaction * | loadUnsignedTx (const std::string &unsigned_filename) override |
| loadUnsignedTx - creates transaction from unsigned tx file More... | |
| bool | exportKeyImages (const std::string &filename) override |
| exportKeyImages - exports key images to file More... | |
| bool | importKeyImages (const std::string &filename) override |
| importKeyImages - imports key images from file More... | |
| virtual void | disposeTransaction (PendingTransaction *t) override |
| disposeTransaction - destroys transaction object More... | |
| virtual TransactionHistory * | history () override |
| virtual AddressBook * | addressBook () override |
| virtual Subaddress * | subaddress () override |
| virtual SubaddressAccount * | subaddressAccount () override |
| virtual void | setListener (WalletListener *l) override |
| virtual uint32_t | defaultMixin () const override |
| defaultMixin - returns number of mixins used in transactions More... | |
| virtual void | setDefaultMixin (uint32_t arg) override |
| setDefaultMixin - setum number of mixins to be used for new transactions More... | |
| virtual bool | setUserNote (const std::string &txid, const std::string ¬e) override |
| setUserNote - attach an arbitrary string note to a txid More... | |
| virtual std::string | getUserNote (const std::string &txid) const override |
| getUserNote - return an arbitrary string note attached to a txid More... | |
| virtual std::string | getTxKey (const std::string &txid) const override |
| virtual bool | checkTxKey (const std::string &txid, std::string tx_key, const std::string &address, uint64_t &received, bool &in_pool, uint64_t &confirmations) override |
| virtual std::string | getTxProof (const std::string &txid, const std::string &address, const std::string &message) const override |
| virtual bool | checkTxProof (const std::string &txid, const std::string &address, const std::string &message, const std::string &signature, bool &good, uint64_t &received, bool &in_pool, uint64_t &confirmations) override |
| virtual std::string | getSpendProof (const std::string &txid, const std::string &message) const override |
| virtual bool | checkSpendProof (const std::string &txid, const std::string &message, const std::string &signature, bool &good) const override |
| virtual std::string | getReserveProof (bool all, uint32_t account_index, uint64_t amount, const std::string &message) const override |
getReserveProof - Generates a proof that proves the reserve of unspent funds Parameters account_index and amount are ignored when all is true More... | |
| virtual bool | checkReserveProof (const std::string &address, const std::string &message, const std::string &signature, bool &good, uint64_t &total, uint64_t &spent) const override |
| virtual std::string | signMessage (const std::string &message) override |
| virtual bool | verifySignedMessage (const std::string &message, const std::string &address, const std::string &signature) const override |
| verifySignedMessage - verify a signature matches a given message More... | |
| virtual std::string | signMultisigParticipant (const std::string &message) const override |
| signMultisigParticipant signs given message with the multisig public signer key More... | |
| virtual bool | verifyMessageWithPublicKey (const std::string &message, const std::string &publicKey, const std::string &signature) const override |
| verifyMessageWithPublicKey verifies that message was signed with the given public key More... | |
| virtual void | startRefresh () override |
| StartRefresh - Start/resume refresh thread (refresh every 10 seconds) More... | |
| virtual void | pauseRefresh () override |
| pauseRefresh - pause refresh thread More... | |
| virtual 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) override |
| virtual std::string | getDefaultDataDir () const override |
| virtual bool | lightWalletLogin (bool &isNewWallet) const override |
| Light wallet authenticate and login. More... | |
| virtual bool | lightWalletImportWalletRequest (std::string &payment_id, uint64_t &fee, bool &new_request, bool &request_fulfilled, std::string &payment_address, std::string &status) override |
| Initiates a light wallet import wallet request. More... | |
| virtual bool | blackballOutputs (const std::vector< std::string > &outputs, bool add) override |
| blackballs a set of outputs More... | |
| virtual bool | blackballOutput (const std::string &amount, const std::string &offset) override |
| blackballs an output More... | |
| virtual bool | unblackballOutput (const std::string &amount, const std::string &offset) override |
| unblackballs an output More... | |
| virtual bool | getRing (const std::string &key_image, std::vector< uint64_t > &ring) const override |
| gets the ring used for a key image, if any More... | |
| virtual bool | getRings (const std::string &txid, std::vector< std::pair< std::string, std::vector< uint64_t >>> &rings) const override |
| gets the rings used for a txid, if any More... | |
| virtual bool | setRing (const std::string &key_image, const std::vector< uint64_t > &ring, bool relative) override |
| sets the ring used for a key image More... | |
| virtual void | segregatePreForkOutputs (bool segregate) override |
| sets whether pre-fork outs are to be segregated More... | |
| virtual void | segregationHeight (uint64_t height) override |
| sets the height where segregation should occur More... | |
| virtual void | keyReuseMitigation2 (bool mitigation) override |
| secondary key reuse mitigation More... | |
| virtual bool | lockKeysFile () override |
| locks/unlocks the keys file; returns true on success More... | |
| virtual bool | unlockKeysFile () override |
| virtual bool | isKeysFileLocked () override |
| returns true if the keys file is locked More... | |
| virtual uint64_t | coldKeyImageSync (uint64_t &spent, uint64_t &unspent) override |
| cold-device protocol key image sync More... | |
Public Member Functions inherited from Electroneum::Wallet | |
| virtual | ~Wallet ()=0 |
| std::string | mainAddress () const |
| bool | mainnet () const |
| bool | testnet () const |
| bool | stagenet () const |
| uint64_t | balanceAll (bool public_blockchain) const |
| uint64_t | unlockedBalanceAll (bool public_blockchain) const |
Friends | |
| class | PendingTransactionImpl |
| class | UnsignedTransactionImpl |
| class | TransactionHistoryImpl |
| struct | Wallet2CallbackImpl |
| class | AddressBookImpl |
| class | SubaddressImpl |
| class | SubaddressAccountImpl |
Additional Inherited Members | |
Public Types inherited from Electroneum::Wallet | |
| enum | Device { Device_Software = 0, Device_Ledger = 1, Device_Trezor = 2 } |
| enum | Status { Status_Ok, Status_Error, Status_Critical } |
| enum | ConnectionStatus { ConnectionStatus_Disconnected, ConnectionStatus_Connected, ConnectionStatus_WrongVersion } |
Static Public Member Functions inherited from Electroneum::Wallet | |
| static std::string | displayAmount (uint64_t amount) |
| static uint64_t | amountFromString (const std::string &amount) |
| static uint64_t | amountFromDouble (double amount) |
| static std::string | genPaymentId () |
| static bool | paymentIdValid (const std::string &paiment_id) |
| static bool | addressValid (const std::string &str, NetworkType nettype) |
| static bool | addressValid (const std::string &str, bool testnet) |
| static bool | keyValid (const std::string &secret_key_string, const std::string &address_string, bool isViewKey, NetworkType nettype, std::string &error) |
| static bool | keyValid (const std::string &secret_key_string, const std::string &address_string, bool isViewKey, bool testnet, std::string &error) |
| static std::string | paymentIdFromAddress (const std::string &str, NetworkType nettype) |
| static std::string | paymentIdFromAddress (const std::string &str, bool testnet) |
| static uint64_t | maximumAllowedAmount () |
| static void | init (const char *argv0, const char *default_log_base_name) |
| static void | init (const char *argv0, const char *default_log_base_name, const std::string &log_path, bool console) |
| static void | debug (const std::string &category, const std::string &str) |
| static void | info (const std::string &category, const std::string &str) |
| static void | warning (const std::string &category, const std::string &str) |
| static void | error (const std::string &category, const std::string &str) |
| Electroneum::WalletImpl::WalletImpl | ( | NetworkType | nettype = MAINNET, |
| uint64_t | kdf_rounds = 1 |
||
| ) |
Definition at line 420 of file wallet.cpp.

| Electroneum::WalletImpl::~WalletImpl | ( | ) |
Definition at line 450 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 860 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1679 of file wallet.cpp.

|
overridevirtual |
addSubaddress - appends a new subaddress at the end of the last minor index of the specified subaddress account
| accountIndex | - the major index specifying the subaddress account |
| label | - the label for the new subaddress |
Implements Electroneum::Wallet.
Definition at line 1218 of file wallet.cpp.
|
overridevirtual |
addSubaddressAccount - appends a new subaddress account at the end of the last major index of existing subaddress accounts
| label | - the label for the new account (which is the as the label of the primary address (accountIndex,0)) |
Implements Electroneum::Wallet.
Definition at line 1206 of file wallet.cpp.
|
overridevirtual |
approximateBlockChainHeight - returns approximate blockchain height calculated from date/time
Implements Electroneum::Wallet.
Definition at line 1013 of file wallet.cpp.
|
overridevirtual |
autoRefreshInterval - returns automatic refresh interval in millis
Implements Electroneum::Wallet.
Definition at line 1118 of file wallet.cpp.
|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 996 of file wallet.cpp.
|
overridevirtual |
blackballs an output
Implements Electroneum::Wallet.
Definition at line 2298 of file wallet.cpp.

|
overridevirtual |
blackballs a set of outputs
Implements Electroneum::Wallet.
Definition at line 2260 of file wallet.cpp.
|
overridevirtual |
blockChainHeight - returns current blockchain height
Implements Electroneum::Wallet.
Definition at line 1006 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1923 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1883 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1758 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1834 of file wallet.cpp.

Definition at line 762 of file wallet.cpp.


|
overridevirtual |
cold-device protocol key image sync
Implements Electroneum::Wallet.
Definition at line 2428 of file wallet.cpp.
|
overridevirtual |
connected - checks if the wallet connected to the daemon
Implements Electroneum::Wallet.
Definition at line 2021 of file wallet.cpp.
|
overridevirtual |
connectToDaemon - connects to the daemon. TODO: check if it can be removed
Implements Electroneum::Wallet.
Definition at line 2009 of file wallet.cpp.
| bool Electroneum::WalletImpl::create | ( | const std::string & | path, |
| const std::string & | password, | ||
| const std::string & | language | ||
| ) |
Definition at line 469 of file wallet.cpp.


|
overridevirtual |
createSweepUnmixableTransaction creates transaction with unmixable outputs.
Implements Electroneum::Wallet.
Definition at line 1587 of file wallet.cpp.

|
overridevirtual |
createTransaction creates transaction. if dst_addr is an integrated address, payment_id is ignored
| dst_addr | destination address as string |
| payment_id | optional payment_id, can be empty string |
| amount | amount |
| mixin_count | mixin count. if 0 passed, wallet will use default value |
| subaddr_account | subaddress account from which the input funds are taken |
| subaddr_indices | set of subaddress indices to use for transfer or sweeping. if set empty, all are chosen when sweeping, and one or more are automatically chosen when transferring. after execution, returns the set of actually used indices |
| priority |
Implements Electroneum::Wallet.
Definition at line 1412 of file wallet.cpp.

|
overridevirtual |
createWatchOnly - Creates a watch only wallet
| path | - where to store the wallet |
| password | |
| language |
Implements Electroneum::Wallet.
Definition at line 506 of file wallet.cpp.

|
overridevirtual |
daemonBlockChainHeight - returns daemon blockchain height
Implements Electroneum::Wallet.
Definition at line 1023 of file wallet.cpp.

|
overridevirtual |
daemonBlockChainTargetHeight - returns daemon blockchain target height
Implements Electroneum::Wallet.
Definition at line 1042 of file wallet.cpp.

|
overridevirtual |
defaultMixin - returns number of mixins used in transactions
Implements Electroneum::Wallet.
Definition at line 1700 of file wallet.cpp.
|
overridevirtual |
disposeTransaction - destroys transaction object
| t | - pointer to the "PendingTransaction" object. Pointer is not valid after function returned; |
Implements Electroneum::Wallet.
Definition at line 1669 of file wallet.cpp.
|
overridevirtual |
in case error status, returns error string
Implements Electroneum::Wallet.
Definition at line 814 of file wallet.cpp.

|
overridevirtual |
estimateBlockChainHeight - returns estimate blockchain height. More accurate than approximateBlockChainHeight, uses daemon height and falls back to calculation from date/time
Implements Electroneum::Wallet.
Definition at line 1018 of file wallet.cpp.

|
overridevirtual |
exchange_multisig_keys - provides additional key exchange round for arbitrary multisig schemes (like N-1/N, M/N)
| info | - base58 encoded key derivations returned by makeMultisig or exchangeMultisigKeys function call |
Implements Electroneum::Wallet.
Definition at line 1284 of file wallet.cpp.

|
overridevirtual |
exportKeyImages - exports key images to file
| filename |
Implements Electroneum::Wallet.
Definition at line 1158 of file wallet.cpp.

|
overridevirtual |
exportMultisigImages - exports transfers' key images
| images | - output paramter for hex encoded array of images |
Implements Electroneum::Wallet.
Definition at line 1316 of file wallet.cpp.

|
overridevirtual |
filename - returns wallet filename
Implements Electroneum::Wallet.
Definition at line 927 of file wallet.cpp.

|
overridevirtual |
finalizeMultisig - finalizes N - 1 / N multisig wallets creation
| extraMultisigInfo | - wallet participants' extra multisig info obtained with makeMultisig call |
Implements Electroneum::Wallet.
Definition at line 1298 of file wallet.cpp.
|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 2227 of file wallet.cpp.

|
overridevirtual |
Queries backing device for wallet keys.
Implements Electroneum::Wallet.
Definition at line 694 of file wallet.cpp.
|
overridevirtual |
getMultisigInfo
Implements Electroneum::Wallet.
Definition at line 1255 of file wallet.cpp.
|
inlineoverridevirtual |
getRestoreHeight - get wallet creation height
Implements Electroneum::Wallet.
|
overridevirtual |
getReserveProof - Generates a proof that proves the reserve of unspent funds Parameters account_index and amount are ignored when all is true
Implements Electroneum::Wallet.
Definition at line 1905 of file wallet.cpp.

|
overridevirtual |
gets the ring used for a key image, if any
Implements Electroneum::Wallet.
Definition at line 2342 of file wallet.cpp.

|
overridevirtual |
gets the rings used for a txid, if any
Implements Electroneum::Wallet.
Definition at line 2359 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 798 of file wallet.cpp.
|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1863 of file wallet.cpp.

|
overridevirtual |
getSubaddressLabel - gets the label of the specified subaddress
| accountIndex | - the major index specifying the subaddress account |
| addressIndex | - the minor index specifying the subaddress |
Implements Electroneum::Wallet.
Definition at line 1222 of file wallet.cpp.
|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1731 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1806 of file wallet.cpp.

|
overridevirtual |
getUserNote - return an arbitrary string note attached to a txid
| txid | - the transaction id to attach the note to |
Implements Electroneum::Wallet.
Definition at line 1721 of file wallet.cpp.

|
overridevirtual |
returns current hard fork info
Implements Electroneum::Wallet.
Definition at line 2250 of file wallet.cpp.
|
overridevirtual |
hasMultisigPartialKeyImages - checks if wallet needs to import multisig key images from other participants
Implements Electroneum::Wallet.
Definition at line 1360 of file wallet.cpp.
|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1674 of file wallet.cpp.
|
overridevirtual |
importKeyImages - imports key images from file
| filename |
Implements Electroneum::Wallet.
Definition at line 1183 of file wallet.cpp.

|
overridevirtual |
importMultisigImages - imports other participants' multisig images
| images | - array of hex encoded arrays of images obtained with exportMultisigImages |
Implements Electroneum::Wallet.
Definition at line 1332 of file wallet.cpp.

|
overridevirtual |
init - initializes wallet with daemon connection params. if daemon_address is local address, "trusted daemon" will be set to true forcibly startRefresh() should be called when wallet is initialized.
| daemon_address | - daemon address in "hostname:port" format |
| upper_transaction_size_limit | |
| daemon_username | |
| daemon_password | |
| lightWallet | - start wallet in light mode, connect to a openmonero compatible server. |
Implements Electroneum::Wallet.
Definition at line 937 of file wallet.cpp.
|
overridevirtual |
integratedAddress - returns integrated address for current wallet address and given payment_id. if passed "payment_id" param is an empty string or not-valid payment id string (16 characters hexadecimal string) - random payment_id will be generated
| payment_id | - 16 characters hexadecimal string or empty string if new random payment id needs to be generated |
Implements Electroneum::Wallet.
Definition at line 865 of file wallet.cpp.

|
overridevirtual |
returns true if the keys file is locked
Implements Electroneum::Wallet.
Definition at line 2423 of file wallet.cpp.
|
overridevirtual |
secondary key reuse mitigation
Implements Electroneum::Wallet.
Definition at line 2408 of file wallet.cpp.
|
overridevirtual |
keysFilename - returns keys filename. usually this formed as "wallet_filename".keys
Implements Electroneum::Wallet.
Definition at line 932 of file wallet.cpp.
|
overridevirtual |
Initiates a light wallet import wallet request.
Implements Electroneum::Wallet.
Definition at line 951 of file wallet.cpp.

Light wallet authenticate and login.
Implements Electroneum::Wallet.
Definition at line 946 of file wallet.cpp.
|
overridevirtual |
loadUnsignedTx - creates transaction from unsigned tx file
Implements Electroneum::Wallet.
Definition at line 1123 of file wallet.cpp.
|
overridevirtual |
locks/unlocks the keys file; returns true on success
Implements Electroneum::Wallet.
Definition at line 2413 of file wallet.cpp.
|
overridevirtual |
makeMultisig - switches wallet in multisig state. The one and only creation phase for N / N wallets
| info | - vector of multisig infos from other participants obtained with getMulitisInfo call |
| threshold | - number of required signers to make valid transaction. Must be equal to number of participants (N) or N - 1 |
Implements Electroneum::Wallet.
Definition at line 1267 of file wallet.cpp.

|
overridevirtual |
multisig - returns current state of multisig wallet creation process
Implements Electroneum::Wallet.
Definition at line 1248 of file wallet.cpp.

|
inlineoverridevirtual |
Implements Electroneum::Wallet.
Definition at line 132 of file wallet.h.

|
overridevirtual |
numSubaddressAccounts - returns the number of existing subaddress accounts
Implements Electroneum::Wallet.
Definition at line 1210 of file wallet.cpp.
|
overridevirtual |
numSubaddresses - returns the number of existing subaddresses associated with the specified subaddress account
| accountIndex | - the major index specifying the subaddress account |
Implements Electroneum::Wallet.
Definition at line 1214 of file wallet.cpp.
| bool Electroneum::WalletImpl::open | ( | const std::string & | path, |
| const std::string & | password | ||
| ) |
Definition at line 699 of file wallet.cpp.


|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 2222 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 904 of file wallet.cpp.

|
overridevirtual |
pauseRefresh - pause refresh thread
Implements Electroneum::Wallet.
Definition at line 2161 of file wallet.cpp.

|
overridevirtual |
publicMultisigSignerKey - returns public signer key
Implements Electroneum::Wallet.
Definition at line 894 of file wallet.cpp.

|
overridevirtual |
publicSpendKey - returns public spend key
Implements Electroneum::Wallet.
Definition at line 889 of file wallet.cpp.

|
overridevirtual |
publicViewKey - returns public view key
Implements Electroneum::Wallet.
Definition at line 879 of file wallet.cpp.

| bool Electroneum::WalletImpl::recover | ( | const std::string & | path, |
| const std::string & | password, | ||
| const std::string & | seed | ||
| ) |
Definition at line 730 of file wallet.cpp.


| bool Electroneum::WalletImpl::recover | ( | const std::string & | path, |
| const std::string & | seed | ||
| ) |
Definition at line 725 of file wallet.cpp.

| bool Electroneum::WalletImpl::recoverFromDevice | ( | const std::string & | path, |
| const std::string & | password, | ||
| const std::string & | device_name | ||
| ) |
Definition at line 677 of file wallet.cpp.


| bool Electroneum::WalletImpl::recoverFromKeys | ( | const std::string & | path, |
| const std::string & | language, | ||
| const std::string & | address_string, | ||
| const std::string & | viewkey_string, | ||
| const std::string & | spendkey_string = "" |
||
| ) |
Definition at line 572 of file wallet.cpp.

| bool Electroneum::WalletImpl::recoverFromKeysWithPassword | ( | const std::string & | path, |
| const std::string & | password, | ||
| const std::string & | language, | ||
| const std::string & | address_string, | ||
| const std::string & | viewkey_string, | ||
| const std::string & | spendkey_string = "" |
||
| ) |
Definition at line 581 of file wallet.cpp.


|
overridevirtual |
refresh - refreshes the wallet, updating transactions from daemon
Implements Electroneum::Wallet.
Definition at line 1077 of file wallet.cpp.

|
overridevirtual |
refreshAsync - refreshes wallet asynchronously.
Implements Electroneum::Wallet.
Definition at line 1086 of file wallet.cpp.

|
overridevirtual |
rescanBlockchain - rescans the wallet, updating transactions from daemon
Implements Electroneum::Wallet.
Definition at line 1093 of file wallet.cpp.

|
overridevirtual |
rescanBlockchainAsync - rescans wallet asynchronously, starting from genesys
Implements Electroneum::Wallet.
Definition at line 1101 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 2232 of file wallet.cpp.

|
overridevirtual |
restoreMultisigTransaction creates PendingTransaction from signData
| signData | encrypted unsigned transaction. Obtained with PendingTransaction::multisigSignData |
Implements Electroneum::Wallet.
Definition at line 1374 of file wallet.cpp.

|
overridevirtual |
secretSpendKey - returns secret spend key
Implements Electroneum::Wallet.
Definition at line 884 of file wallet.cpp.

|
overridevirtual |
secretViewKey - returns secret view key
Implements Electroneum::Wallet.
Definition at line 874 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 790 of file wallet.cpp.

|
overridevirtual |
sets whether pre-fork outs are to be segregated
Implements Electroneum::Wallet.
Definition at line 2398 of file wallet.cpp.
|
overridevirtual |
sets the height where segregation should occur
Implements Electroneum::Wallet.
Definition at line 2403 of file wallet.cpp.
|
overridevirtual |
setAutoRefreshInterval - setup interval for automatic refresh.
| seconds | - interval in millis. if zero or less than zero - automatic refresh disabled; |
Implements Electroneum::Wallet.
Definition at line 1107 of file wallet.cpp.
|
overridevirtual |
setDefaultMixin - setum number of mixins to be used for new transactions
| arg |
Implements Electroneum::Wallet.
Definition at line 1705 of file wallet.cpp.
|
overridevirtual |
Reimplemented from Electroneum::Wallet.
Definition at line 849 of file wallet.cpp.

|
overridevirtual |
Reimplemented from Electroneum::Wallet.
Definition at line 838 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1694 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 826 of file wallet.cpp.

|
overridevirtual |
setRecoveringFromDevice - set state to recovering from device
| recoveringFromDevice | - true/false |
Implements Electroneum::Wallet.
Definition at line 986 of file wallet.cpp.
|
overridevirtual |
setRecoveringFromSeed - set state recover form seed
| recoveringFromSeed | - true/false |
Implements Electroneum::Wallet.
Definition at line 981 of file wallet.cpp.
|
overridevirtual |
setRefreshFromBlockHeight - start refresh from block height on recover
| refresh_from_block_height | - blockchain start height |
Implements Electroneum::Wallet.
Definition at line 976 of file wallet.cpp.

|
overridevirtual |
sets the ring used for a key image
Implements Electroneum::Wallet.
Definition at line 2381 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 803 of file wallet.cpp.

|
overridevirtual |
setSubaddressLabel - sets the label of the specified subaddress
| accountIndex | - the major index specifying the subaddress account |
| addressIndex | - the minor index specifying the subaddress |
| label | - the new label for the specified subaddress |
Implements Electroneum::Wallet.
Definition at line 1235 of file wallet.cpp.
|
overridevirtual |
setSubaddressLookahead - set size of subaddress lookahead
| major | - size fot the major index |
| minor | - size fot the minor index |
Implements Electroneum::Wallet.
Definition at line 991 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 2033 of file wallet.cpp.
|
overridevirtual |
setUserNote - attach an arbitrary string note to a txid
| txid | - the transaction id to attach the note to |
| note | - the note |
Implements Electroneum::Wallet.
Definition at line 1710 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1950 of file wallet.cpp.

|
overridevirtual |
signMultisigParticipant signs given message with the multisig public signer key
| message | message to sign |
Implements Electroneum::Wallet.
Definition at line 1965 of file wallet.cpp.

|
overridevirtual |
StartRefresh - Start/resume refresh thread (refresh every 10 seconds)
Implements Electroneum::Wallet.
Definition at line 2140 of file wallet.cpp.

|
overridevirtual |
returns wallet status (Status_Ok | Status_Error)
Implements Electroneum::Wallet.
Definition at line 808 of file wallet.cpp.

|
overridevirtual |
returns both error and error string atomically. suggested to use in instead of status() and errorString()
Implements Electroneum::Wallet.
Definition at line 820 of file wallet.cpp.


|
overridevirtual |
store - stores wallet to file.
| path | - main filename to store wallet to. additionally stores address file and keys file. to store to the same file - just pass empty string; |
Implements Electroneum::Wallet.
Definition at line 909 of file wallet.cpp.


|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1684 of file wallet.cpp.
|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1689 of file wallet.cpp.
|
overridevirtual |
submitTransaction - submits transaction in signed tx file
Implements Electroneum::Wallet.
Definition at line 1140 of file wallet.cpp.
|
overridevirtual |
synchronized - checks if wallet was ever synchronized
Implements Electroneum::Wallet.
Definition at line 1072 of file wallet.cpp.
|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 2038 of file wallet.cpp.

|
overridevirtual |
unblackballs an output
Implements Electroneum::Wallet.
Definition at line 2320 of file wallet.cpp.

|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 1001 of file wallet.cpp.
|
overridevirtual |
Implements Electroneum::Wallet.
Definition at line 2418 of file wallet.cpp.
|
overridevirtual |
check if hard fork rules should be used
Implements Electroneum::Wallet.
Definition at line 2255 of file wallet.cpp.
|
overridevirtual |
verifyMessageWithPublicKey verifies that message was signed with the given public key
| message | message |
| publicKey | hex encoded public key |
| signature | signature of the message |
Implements Electroneum::Wallet.
Definition at line 1986 of file wallet.cpp.

|
overridevirtual |
verifySignedMessage - verify a signature matches a given message
| message | - the message (arbitrary byte data) |
| address | - the address the signature claims to be made with |
| signature | - the signature |
Implements Electroneum::Wallet.
Definition at line 1955 of file wallet.cpp.

|
overridevirtual |
watchOnly - checks if wallet is watch only
Implements Electroneum::Wallet.
Definition at line 2043 of file wallet.cpp.

|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |