aboutsummaryrefslogtreecommitdiff
path: root/src/wallet (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-06-26wallet: don't process miner tx if we're refreshing with no-coinbasemoneromooo-monero1-1/+3
2018-06-26replace std::list with std::vector on some hot pathsmoneromooo-monero2-15/+15
also use reserve where appropriate
2018-06-26rpc: add option to skip coinbase info in get_blocks.binmoneromooo-monero1-0/+1
2018-06-26wallet2: use std::move on containers where appropriatemoneromooo-monero1-4/+4
2018-06-20Merge pull request #3939luigi11111-0/+4
62c8c07 wallet: do not log by default if we're not asked to log to console (moneromooo-monero)
2018-06-20Merge pull request #3897luigi11111-1/+3
63d0ab0 mlog: --max-log-files to set the max number of rotated log files (stoffu)
2018-06-19Merge pull request #3878luigi11111-1/+1
5a412b7 disable file size sanity check when loading the wallet cache (moneromooo-monero)
2018-06-19Merge pull request #3829luigi11111-20/+34
4764929 use deterministic viewkey if not supplied (cryptochangements34)
2018-06-16Merge pull request #3804luigi11112-0/+9
89e51ec simple-wallet-cli: Add warnings about inaccurate balances to to watch-only wallet (jcktm)
2018-06-16Merge pull request #3780luigi11116-34/+491
9c2a7b4 wallet-rpc: watch-only and cold wallet features added (ph4r05)
2018-06-16Merge pull request #3762luigi11111-2/+3
eb9f3a3 check_spend_proof (itssteven)
2018-06-16Merge pull request #3735luigi11111-1/+1
4812c06 add .load() to make Boost 1.67 happy with its new is_integral check (Teutone)
2018-06-13mlog: --max-log-files to set the max number of rotated log filesstoffu1-1/+3
2018-06-08Merge pull request #3599luigi11113-0/+17
8787fd8 WalletApi: publicMultisigSignerKey method (naughtyfox)
2018-06-08Merge pull request #3598luigi11115-0/+113
b21bc00 Wallet: added methods to sign and verify arbitrary message with multisig public signer's key (libwallet & wallet api) (naughtyfox)
2018-06-07Merge pull request #3890luigi11111-1/+1
f80b157 wallet2: don't ask for pruned txes yet, we still parse the entire tx (moneromooo-monero)
2018-06-06wallet: do not log by default if we're not asked to log to consolemoneromooo-monero1-0/+4
This means monero-wallet-rpc still does, but the user level program does not.
2018-06-05use deterministic viewkey if not suppliedcryptochangements341-20/+34
2018-06-03wallet-rpc: watch-only and cold wallet features addedDusan Klinec6-34/+491
- unsigned_txset, signed_txset in transfer / submit_transfer / sign_transfer - export_outputs, import_outputs Squashed commits: [f4d9f3d4] wallet-rpc: do_not_relay removed from submit_transfer [5b16a86f] wallet-rpc: review-fix - method signature changes, renaming [b7fbb10a] wallet-rpc: naming fixes (unsigned vs signed), consts renamed [8c7d2727] wallet-rpc: sign_transfer added [481d024a] wallet2: sign_tx splitted to work with strings and structs, more granular [2a474db9] wallet-rpc: wallet2::load_unsigned_tx split to load from str, file [b1e3a018] wallet-rpc: review fix, load_tx_from_str variable rename [1f6373be] wallet-rpc: review fix: save_tx_to_{str,file} [2a08eafc] wallet-rpc: review comments fixes - redundant this removed from wallet2.cpp - load_tx_from_str, load_tx_from_file [43498052] wallet-rpc: submit_transfer added [9c45d1ad] wallet-rpc: watch_only check, return unsigned_txset [62831396] wallet2: added string variants to load_tx, save_tx - analogously to save_multisig_tx - required for monero-wallet-rpc to support watch-only wallet
2018-05-31Merge pull request #3640luigi11113-8/+23
f36132a wallet cli/rpc: terminate execution with code 0 when --help or --version is given (stoffu)
2018-05-31Merge pull request #3635luigi11113-0/+37
c1bda09 wallet_rpc_server: add a get_version RPC (moneromooo-monero)
2018-05-31Merge pull request #3592luigi11112-4/+15
90a16b1 crypto: fix initialization order issue with random mutex (moneromooo-monero) 6a61f52 unit_tests: add ringdb unit tests (moneromooo-monero)
2018-05-31Merge pull request #3489luigi11117-256/+482
47fdb74 WalletApi: getMultisigInfo entry for gui wallets... (naughtyfox) 47fdb74 Refactored: work with wallet api statuses to make setting and getting operations atomic along with error strings (naughtyfox)
2018-05-31wallet2: don't ask for pruned txes yet, we still parse the entire txmoneromooo-monero1-1/+1
2018-05-31wallet: fix shared ring db pathstoffu2-6/+12
2018-05-29Merge pull request #3405luigi11112-31/+41
80d2f80 wallet2: Update function parameter documentation (leonklingele)
2018-05-28disable file size sanity check when loading the wallet cachemoneromooo-monero1-1/+1
2018-05-21Merge pull request #3832Riccardo Spagni1-2/+2
cb9c7972 Fix output shuffling for multisig (stoffu)
2018-05-21Merge pull request #3745Riccardo Spagni2-3/+4
b13bddc3 Wallet API: allow log path to be non-default & console output to be configurable (stoffu)
2018-05-20Fix output shuffling for multisigstoffu1-2/+2
2018-05-15simple-wallet-cli: Add warnings about inaccurate balances to to watch-only ↵jcktm2-0/+9
wallet
2018-05-10wallet2: consider 6 outputs or less to be unmixable from v7moneromooo-monero1-2/+2
2018-05-06check_spend_proofitssteven1-2/+3
My intention is to mitigate #3761 by returning "bad signature", rather than throwing an error, as the error is triggered inappropriately in the case of checking a different txid than the one used to create the signature, which causes issues for monerophp: https://github.com/monero-integrations/monerophp/issues/72 & my temp fix: https://github.com/monero-integrations/monerophp/pull/74
2018-05-05add .load() to make Boost 1.67 happy with its new is_integral checkTeutone1-1/+1
2018-05-04Wallet API: allow log path to be non-default & console output to be configurablestoffu2-3/+4
2018-04-28Merge pull request #3685Riccardo Spagni1-0/+3
ffeeefde speedup get_output_histogram for all amounts when min_count > 0 (moneromooo-monero) 2dae0f20 wallet2: add missing parameters to get_output_histogram (moneromooo-monero)
2018-04-28Merge pull request #3650Riccardo Spagni1-1/+6
5bd7f760 import_multisig_info: fix sanity check crash in detach_blockchain (Mikhail Mitkevichl)
2018-04-25Wallet: added methods to sign and verify arbitrary message with multisig ↵naughtyfox5-0/+113
public signer's key (libwallet & wallet api)
2018-04-23wallet2: add missing parameters to get_output_histogrammoneromooo-monero1-0/+3
2018-04-22wallet cli/rpc: terminate execution with code 0 when --help or --version is ↵stoffu3-8/+23
given
2018-04-21import_multisig_info: fix sanity check crash in detach_blockchainMikhail Mitkevichl1-1/+6
2018-04-21Merge pull request #3576Riccardo Spagni3-39/+35
f82c10dc WalletManagerImpl: reuse existing connection to daemon instead of reconnectivng every time (stoffu)
2018-04-21Merge pull request #3672Riccardo Spagni1-1/+3
875c1cab wallet2: increase rpc timeout for get_output_distribution (moneromooo-monero) 70f23217 add top height to get_output_distribution, and cache it for rct (moneromooo-monero) 8c7363fb rpc: add missing perf timer for get_output_distribution (moneromooo-monero)
2018-04-19wallet2: increase rpc timeout for get_output_distributionmoneromooo-monero1-1/+1
2018-04-19add top height to get_output_distribution, and cache it for rctmoneromooo-monero1-0/+2
This should cache the vast majority of calls for long running wallets
2018-04-14wallet_rpc_server: add a get_version RPCmoneromooo-monero3-0/+37
2018-04-13WalletApi: publicMultisigSignerKey methodnaughtyfox3-0/+17
2018-04-12wallet2: store subaddress lookahead settingsstoffu1-0/+12
2018-04-12Use 'boost' mutex instead of 'std' mutexcslashm1-4/+4
2018-04-12Fix sub-address tx scan.cslashm1-3/+3
When additional keys was needed, the TX scan failed because the derivation data was always recomputed with the main tx_key and not the corresponding additional one. Moreover this patch avoid perf decreasing when not using HW device.
2018-04-12Merge pull request #3549Riccardo Spagni1-21/+44
73951cbd wallet2: request transactions in slices when scanning for known rings (moneromooo-monero) 25fe67e4 rpc: allow getting pruned blocks from gettransactions (moneromooo-monero)
2018-04-12Merge pull request #3615Riccardo Spagni1-9/+9
24acb66e wallet2: fix misc issues when the ringdb can't be initialized (moneromooo-monero)
2018-04-12Merge pull request #3555Riccardo Spagni1-1/+1
0b26c4d5 wallet2: move segregation height to v7 (moneromooo-monero)
2018-04-12Merge pull request #3534Riccardo Spagni2-0/+10
eecfb57d wallet: warn if not using the default ring size (moneromooo-monero)
2018-04-12Merge pull request #3516Riccardo Spagni1-1/+1
1e0958c0 wallet: fix default mixin (4 -> 6) (sneurlax)
2018-04-12wallet2: fix misc issues when the ringdb can't be initializedmoneromooo-monero1-9/+9
2018-04-12Merge pull request #3502Riccardo Spagni1-1/+1
11c933e1 fix lambda compile error on openbsd (moneromooo-monero)
2018-04-12Merge pull request #3536Riccardo Spagni1-11/+44
c77d2bfa Add the possibility to export private view key for fast scan. (cslashm) 100b7bc1 Change mutex lock model to avoid dead lock and ensure locks are always released. (cslashm) 641dfc99 Automatic height setup when creating/restoring hw device. (cslashm)
2018-04-12Merge pull request #3473Riccardo Spagni1-5/+6
eaa8bfe7 wallet2: set from_height of GET_OUTPUT_DISTRIBUTION correctly The previous expression (stoffu) 0a619f78 wallet2: enable the mitigation only after the fork height (stoffu)
2018-04-12Merge pull request #3468Riccardo Spagni1-0/+9
0098ed33 wallet2: fix for loading settings of key reuse mitigation (stoffu)
2018-04-11unit_tests: add ringdb unit testsmoneromooo-monero2-4/+15
2018-04-07wallet2: request transactions in slices when scanning for known ringsmoneromooo-monero1-22/+32
This avoid massive memory consumption for huge wallets
2018-04-07rpc: allow getting pruned blocks from gettransactionsmoneromooo-monero1-0/+13
and get them pruned in find_and_save_rings, since it does not need the pruned data in the first place. Also set decode_to_json to false where missing, we don't need this either.
2018-04-07WalletManagerImpl: reuse existing connection to daemon instead of ↵stoffu3-39/+35
reconnectivng every time
2018-04-05wallet2: move segregation height to v7moneromooo-monero1-1/+1
since people seem to really want to use things the wrong way.
2018-03-31Add the possibility to export private view key for fast scan.cslashm1-11/+44
On client startup the device asks for authorization to export the private view key. If user agree, the client hold the private view key allowing a fast blockchain scan. If the user does not agree, the blockchain scan is fully done via the device.
2018-03-31wallet: warn if not using the default ring sizemoneromooo-monero2-0/+10
2018-03-28wallet: fix default mixin (4 -> 6)sneurlax1-1/+1
2018-03-28WalletApi: getMultisigInfo entry for gui walletsnaughtyfox7-2/+308
WalletApi: makeMultisig call introduced WalletApi: finalizeMultisig call introduced WalletApi: new calls exportMultisigImages and importMultisigImages WalletApi: method to return multisig wallet creation state WalletApi: create multisig transaction, sign multisig transaction, commit transaction and get multisig data are added WalletApi: identation and style fixes
2018-03-28Refactored: work with wallet api statuses to make setting and getting ↵naughtyfox3-255/+175
operations atomic along with error strings WalletApi: added method statusWithErrorString to atomically retrieve error with error string
2018-03-27fix lambda compile error on openbsdmoneromooo-monero1-1/+1
2018-03-22wallet2: set from_height of GET_OUTPUT_DISTRIBUTION correctlystoffu1-1/+1
The previous expression req_t.from_height = X ? Y >= Z : 0; forces the parameter to take the value of either 0 or 1.
2018-03-22wallet2: enable the mitigation only after the fork heightstoffu1-4/+5
2018-03-22wallet2: fix for loading settings of key reuse mitigationstoffu1-0/+9
2018-03-21wallet: catch exceptions dealing with ringdb and warnmoneromooo-monero2-20/+45
2018-03-17wallet: make the segregation height settablemoneromooo-monero2-8/+63
via user setting first, then DNS TXT record, hardcoded fallback
2018-03-17Merge pull request #3421Riccardo Spagni1-0/+1
9732a37e wallet_rpc_server: add sweep_unmixable as alias for sweep_dust (moneromooo-monero)
2018-03-17wallet_rpc_server: add sweep_unmixable as alias for sweep_dustmoneromooo-monero1-0/+1
2018-03-16Add command line option allowing to restrict the default sub-address ↵stoffu1-0/+1
lookahead in order to avoid so looooong time of set-up when creating a HW based wallet.
2018-03-16Merge pull request #3336Riccardo Spagni3-6/+6
57c0b1ed Fix typos in various files (Dimitris Apostolou)
2018-03-16wallet: more user friendly print_ringmoneromooo-monero5-5/+78
It can now take a txid (to display rings for all its inputs), and will print rings in a format that set_ring understands
2018-03-16wallet2_api: add key reuse mitigations APImoneromooo-monero3-0/+27
2018-03-16wallet2_api: add ring apimoneromooo-monero3-0/+46
2018-03-16ringdb: factor ring addition codemoneromooo-monero1-22/+16
2018-03-16wallet2_api: add blackball apimoneromooo-monero4-0/+65
2018-03-16ringdb: use the genesis block as a db namemoneromooo-monero3-5/+7
This will avoid careless forkers polluting the shared database even if they make their own chain. They'll then automatically start using another subdb, and any key-reusing fork of those forks will reuse their subdbs.
2018-03-16wallet: add a set_ring commandmoneromooo-monero4-0/+43
This is so one can set rings for spent key images in case the attackers don't merge the ring matching patch set.
2018-03-16wallet: make ringdb an object with database statemoneromooo-monero4-164/+179
2018-03-16wallet: add an output blackball list to avoid using those in ringsmoneromooo-monero4-8/+153
2018-03-16wallet: key reuse mitigation optionsmoneromooo-monero2-15/+172
If a pre-fork output is spent on both Monero and attack chain, any post-fork output can be deduced to be a fake output, thereby decreasing the effective ring size. The segregate-per-fork-outputs option, on by default, allows selecting only pre-fork outputs in this case, so that the same ring can be used when spending it on the other side, which does not decrease the effective ring size. This is intended to be SET when intending to spend Monero on the attack fork, and to be UNSET if not intending to spend Monero on the attack fork (since it leaks the fact that the output being spent is pre-fork). If the user is not certain yet whether they will spend pre-fork outputs on a key reusing fork, the key-reuse-mitigation2 option should be SET instead. If you use this option and intend to spend Monero on both forks, then spend real Monero first.
2018-03-16wallet: add shared ring databasemoneromooo-monero6-7/+638
This maps key images to rings, so that different forks can reuse the rings by key image. This avoids revealing the real inputs like would happen if two forks spent the same outputs with different rings. This database is meant to be shared with all Monero forks which don't bother making a new chain, putting users' privacy at risk in the process. It is placed in a shared data directory by default ($HOME/.shared-ringdb on UNIX like systems). You may use --shared-ringdb-dir to override this location, and should then do so for all Monero forks for them to share the database.
2018-03-16add RPC to get a histogram of outputs of a given amountmoneromooo-monero3-0/+76
2018-03-15Fix typos in various filesDimitris Apostolou3-6/+6
2018-03-15wallet2+cli+rpc: eliminate redundant m_http_client from cli/rpc and delegate ↵stoffu3-6/+22
calls to wallet2
2018-03-14wallet2: Update function parameter documentationLeon Klingele2-31/+41
This completes and fixes various parameters docs
2018-03-14replace invoke_http_json("/json_rpc",...) with ↵stoffu2-146/+104
invoke_http_json_rpc("/json_rpc",methodname,...) to reduce boilerplate
2018-03-14Merge pull request #3398Riccardo Spagni1-1/+1
c577abab wallet: fix auto low priority so that it takes effect only when saved default is 0 (stoffu)
2018-03-14Merge pull request #3399Riccardo Spagni1-1/+1
1d39b265 wallet2: fix use_fork_rules() when querying version that is defined but not enabled yet (stoffu)
2018-03-14Merge pull request #3386Riccardo Spagni1-0/+5
9abeff59 wallet2: handle no blocks returned in refresh to mean no new blocks (moneromooo-monero)
2018-03-14Merge pull request #3385Riccardo Spagni1-1/+1
ec41006c node_rpc_proxy: fix target height caching (moneromooo-monero)
2018-03-14wallet2: check_tx_key() shouldn't require hardware encryptionstoffu1-2/+2
2018-03-14device: untangle cyclic depenencystoffu3-21/+20
When #3303 was merged, a cyclic dependency chain was generated: libdevice <- libcncrypto <- libringct <- libdevice This was because libdevice needs access to a set of basic crypto operations implemented in libringct such as scalarmultBase(), while libringct also needs access to abstracted crypto operations implemented in libdevice such as ecdhEncode(). To untangle this cyclic dependency chain, this patch splits libringct into libringct_basic and libringct, where the basic crypto ops previously in libringct are moved into libringct_basic. The cyclic dependency is now resolved thanks to this separation: libcncrypto <- libringct_basic <- libdevice <- libcryptonote_basic <- libringct This eliminates the need for crypto_device.cpp and rctOps_device.cpp. Also, many abstracted interfaces of hw::device such as encrypt_payment_id() and get_subaddress_secret_key() were previously implemented in libcryptonote_basic (cryptonote_format_utils.cpp) and were then called from hw::core::device_default, which is odd because libdevice is supposed to be independent of libcryptonote_basic. Therefore, those functions were moved to device_default.cpp.
2018-03-14device: made function prototypes consistent with pre-#3303 codebasestoffu1-6/+2
2018-03-14Merge pull request #3377Riccardo Spagni1-1/+1
aa8bef0c fix error message typo in wallet2.cpp (cryptochangements34)
2018-03-14Merge pull request #3369Riccardo Spagni2-7/+7
1979d53d wallet: fixes and tweaks to the save_watch_only command (moneromooo-monero)
2018-03-14Merge pull request #3360Riccardo Spagni1-3/+3
1ff35fda Wallet API: make nettype non-defaulted to disambiguate from deprecated versions (and make libwallet_api_tests compilable) (stoffu)
2018-03-14Merge pull request #3355Riccardo Spagni1-0/+1
0bbd521f libwallet_merged: added missing libdevice (stoffu)
2018-03-14Merge pull request #3354Riccardo Spagni1-4/+4
ffe70b8f Make mixin optional with default for rpc transfer (cryptochangements34)
2018-03-14Merge pull request #3353Riccardo Spagni1-43/+59
73dd883d Ledger HW Bug fixes (Cédric)
2018-03-14Merge pull request #3345Riccardo Spagni2-3/+18
e0cda74a wallet2_api: add info/error/warning entry points (moneromooo-monero)
2018-03-14Merge pull request #3337Riccardo Spagni1-3/+14
91d97dd4 fuzz_tests: set small subaddress lookahead for speed (moneromooo-monero) 5f85cc7e wallet2: guard against overflowing of subaddress indices (moneromooo-monero)
2018-03-14Merge pull request #3315Riccardo Spagni2-44/+72
649a1b7a wallet2 / simplewallet: Must opt-in to create '.address.txt' files for new wallets (Leon Klingele)
2018-03-14wallet2: guard against overflowing of subaddress indicesmoneromooo-monero1-3/+14
2018-03-14wallet2: fix use_fork_rules() when querying version that is defined but not ↵stoffu1-1/+1
enabled yet
2018-03-14wallet: fix auto low priority so that it takes effect only when saved ↵stoffu1-1/+1
default is 0
2018-03-12Ledger HW Bug fixesCédric1-43/+59
Fix the way the REAL mode is handle: Let create_transactions_2 and create_transactions_from construct the vector of transactions. Then iterate on it and resign. We just need to add 'outs' list in the TX struct for that. Fix default secret keys value when DEBUG_HWDEVICE mode is off The magic value (00...00 for view key and FF..FF for spend key) was not correctly set when DEBUG_HWDEVICE was off. Both was set to 00...00. Add sub-address info in ABP map in order to correctly display destination sub-address on device Fix DEBUG_HWDEVICE mode: - Fix compilation errors. - Fix control device init in ledger device. - Add more log. Fix sub addr control Fix debug Info
2018-03-11wallet2: handle no blocks returned in refresh to mean no new blocksmoneromooo-monero1-0/+5
This is not a possible return from the daemon, but I want this in now so all wallets handle this when the daemon starts doing so.
2018-03-11node_rpc_proxy: fix target height cachingmoneromooo-monero1-1/+1
2018-03-10wallet2 / simplewallet: Must opt-in to create '.address.txt' files for new ↵Leon Klingele2-44/+72
wallets Previously, a file containing the unencrypted Monero address was created by default in the wallet's directory. This file might pose as a privacy risk. The creation of this file is now opt-in and can be enabled by providing --create-address-file
2018-03-09fix error message typo in wallet2.cppcryptochangements341-1/+1
2018-03-08Merge pull request #3368Riccardo Spagni1-1/+5
38657fd0 Bump min ring size from 5 to 7 from v7 (moneromooo-monero)
2018-03-08Merge pull request #3365Riccardo Spagni1-1/+1
55a65f32 Wallet API: corrected testnet/mainnet ordering (stoffu)
2018-03-08Merge pull request #3347Riccardo Spagni1-1/+1
9a6be3da wallet_manager: fixed typo deviuce/device.hpp (stoffu)
2018-03-07wallet: fixes and tweaks to the save_watch_only commandmoneromooo-monero2-7/+7
- save the new keys file as FOO-watchonly.keys, not FOO.keys-watchonly - catch any exception (eg, I/O errors) and error out - print the new keys filename in simplewallet
2018-03-07Bump min ring size from 5 to 7 from v7moneromooo-monero1-1/+5
2018-03-07Wallet API: corrected testnet/mainnet orderingstoffu1-1/+1
2018-03-06Wallet API: make nettype non-defaulted to disambiguate from deprecated ↵stoffu1-3/+3
versions (and make libwallet_api_tests compilable)
2018-03-06libwallet_merged: added missing libdevicestoffu1-0/+1
2018-03-05Make mixin optional with default for rpc transfercryptochangements341-4/+4
2018-03-05Merge pull request #3313Riccardo Spagni2-0/+22
43026822 Wallet2 + CLI wallet: UTF-8 support for filenames and paths under Windows (rbrunner7)
2018-03-05Merge pull request #3343Riccardo Spagni2-4/+44
3d452367 allow using ring size instead of mixin for rpc transfer (cryptochangements34)
2018-03-05Merge pull request #3314Riccardo Spagni1-0/+4
71bff546 wallet api: when restoring from EnglishOld, set language to English (stoffu)
2018-03-05Merge pull request #3277Riccardo Spagni12-136/+221
0e7ad2e2 Wallet API: generalize 'bool testnet' to 'NetworkType nettype' (stoffu) af773211 Stagenet (stoffu) cc9a0bee command_line: allow args to depend on more than one args (stoffu) 55f8d917 command_line::get_arg: remove 'required' for dependent args as they're always optional (stoffu) 450306a0 command line: allow has_arg to handle arg_descriptor<bool,false,true> #3318 (stoffu) 9f9e095a Use `genesis_tx` parameter in `generate_genesis_block`. #3261 (Jean Pierre Dudey)
2018-03-05Merge pull request #3273Riccardo Spagni1-13/+16
f3b74e75 Fix refresh height estimation (Howard Chu)
2018-03-05Correct spelling mistakes.Edward Betts3-10/+10
2018-03-05allow using ring size instead of mixin for rpc transfercryptochangements342-4/+44
2018-03-05Wallet API: generalize 'bool testnet' to 'NetworkType nettype'stoffu5-42/+103
2018-03-05wallet_manager: fixed typo deviuce/device.hppstoffu1-1/+1
2018-03-05Stagenetstoffu9-99/+123
2018-03-04wallet2_api: add info/error/warning entry pointsmoneromooo-monero2-3/+18
2018-03-04Code modifications to integrate Ledger HW device into monero-wallet-cli.cslashm3-92/+182
The basic approach it to delegate all sensitive data (master key, secret ephemeral key, key derivation, ....) and related operations to the device. As device has low memory, it does not keep itself the values (except for view/spend keys) but once computed there are encrypted (with AES are equivalent) and return back to monero-wallet-cli. When they need to be manipulated by the device, they are decrypted on receive. Moreover, using the client for storing the value in encrypted form limits the modification in the client code. Those values are transfered from one C-structure to another one as previously. The code modification has been done with the wishes to be open to any other hardware wallet. To achieve that a C++ class hw::Device has been introduced. Two initial implementations are provided: the "default", which remaps all calls to initial Monero code, and the "Ledger", which delegates all calls to Ledger device.
2018-02-25wallet api: when restoring from EnglishOld, set language to Englishstoffu1-0/+4
2018-02-25Wallet2 + CLI wallet: UTF-8 support for filenames and paths under Windowsrbrunner72-0/+22
2018-02-20Merge pull request #3256Riccardo Spagni1-2/+2
df5273de wallet2: fix auto_low_priority field name typo on load (moneromooo-monero)
2018-02-20Merge pull request #3247Riccardo Spagni2-19/+15
89ad162a wallet2: remove unused m_subaddresses_inv (moneromooo-monero) f2c4c399 wallet2: speed up subaddress generation (by about a third) (moneromooo-monero)
2018-02-20Merge pull request #3246Riccardo Spagni1-5/+15
3c33e131 wallet2: don't store invalid key image when watch-only (stoffu) 0133b348 wallet2: don't throw when spent amount is inconsistent (stoffu)
2018-02-20Merge pull request #3235Riccardo Spagni2-3/+5
6866ed46 Add default value to max_height, otherwise it's 0 (Michał Sałaban)
2018-02-16wallet2: remove unused m_subaddresses_invmoneromooo-monero2-6/+2
2018-02-16wallet2: speed up subaddress generation (by about a third)moneromooo-monero2-16/+16
2018-02-16Fix refresh height estimationHoward Chu1-13/+16
Since commit b0426d4c refresh height for a newly created wallet connected to a sync'd daemon was off by a month. Now we only use the 1 month safety margin if we're unable to talk to a daemon.
2018-02-16Merge pull request #3214Riccardo Spagni2-1/+2
214d251c wallet: suggest the use of sweep_unmixable when not_enough_outs_to_mix is thrown (stoffu)
2018-02-16Merge pull request #3207Riccardo Spagni3-8/+17
a99ef176 wallet-rpc: take subaddress account as arg for get_transfer_by_txid (stoffu) 77125096 wallet-rpc: rename *_INDEX_OUTOFBOUND into *_INDEX_OUT_OF_BOUNDS (stoffu)
2018-02-16Merge pull request #3197Riccardo Spagni2-0/+12
f90c76be Return appropriate error code when there's no connection to daemon (Michał Sałaban) 3cb65b3f Return appropriate error code when not enough money for tx (Michał Sałaban)
2018-02-16Merge pull request #3175Riccardo Spagni2-0/+8
3be98036 wallet-cli: Do not ask for scan_from_height if it explicitly is set to zero. (Maximilian Lupke)
2018-02-16Merge pull request #3094Riccardo Spagni4-13/+13
a85dbb3f Fixed typos and wording tweaks (Maxithi)
2018-02-13wallet2: fix auto_low_priority field name typo on loadmoneromooo-monero1-2/+2
2018-02-12wallet2: don't store invalid key image when watch-onlystoffu1-1/+1
2018-02-10wallet2: don't throw when spent amount is inconsistentstoffu1-4/+14
2018-02-08wallet: suggest the use of sweep_unmixable when not_enough_outs_to_mix is thrownstoffu2-1/+2
2018-02-05Add default value to max_height, otherwise it's 0Michał Sałaban2-3/+5
2018-01-31wallets: reorg 61 more days on testnetmoneromooo-monero1-2/+3
2018-01-31blockchain: move bulletproofs to v8moneromooo-monero1-7/+4
and set v7 height to 1057027 on testnet (one block earlier) This is to easily dump current nodes since we're going to change the v7 rules with this.
2018-01-31wallet-rpc: take subaddress account as arg for get_transfer_by_txidstoffu2-4/+13
2018-01-31wallet-rpc: rename *_INDEX_OUTOFBOUND into *_INDEX_OUT_OF_BOUNDSstoffu2-4/+4
2018-01-29Fixed typos and wording tweaksMaxithi4-13/+13
2018-01-29Return appropriate error code when there's no connection to daemonMichał Sałaban2-0/+6
2018-01-28Return appropriate error code when not enough money for txMichał Sałaban2-0/+6
2018-01-28wallet: automatically use low priority if safe (no backlog & recent blocks ↵stoffu5-6/+108
not full)
2018-01-28wallet2: split estimate_backlog to allow for raw fee levelsmoneromooo-monero2-9/+27
2018-01-27Merge pull request #3116Riccardo Spagni1-1/+1
269ba252 wallet2::import_blockchain fix import loop (Jaquee)
2018-01-27Merge pull request #3142Riccardo Spagni1-7/+0
a9cae0ab Wallet API: remove unused enum Priority from UnsignedTransaction (stoffu)
2018-01-27Merge pull request #3141Riccardo Spagni2-53/+41
3160a930 wallet2: remove {set|get}_default_decimal_point and use the same funcs under cryptonote:: instead (stoffu) 7d1088d3 wallet2: make scan_output const and omit keys arg (stoffu) bc1ee2c2 wallet2: make member functions const when possible (stoffu)
2018-01-27Merge pull request #3121Riccardo Spagni1-1/+1
6fbb0b06 cmake: set API header install path to what Qt wallet expects (redfish)
2018-01-27Merge pull request #3118Riccardo Spagni2-0/+10
ca336c62 simplewallet: check file overwrite when exporting stuff (stoffu)
2018-01-27Merge pull request #3114Riccardo Spagni1-0/+4
fb5c971c Allow retrieving spend key via RPC (Michał Sałaban)
2018-01-27Merge pull request #3113Riccardo Spagni3-4/+15
ffc2e570 wallet rpc: show fees when querying incoming transfers (stoffu)
2018-01-27Merge pull request #3104Riccardo Spagni5-12/+110
939629e8 Wallet API: all recover options with password (m2049r)
2018-01-26Readd copyright starting datexmr-eric6-6/+6
2018-01-26Update 2018 copyrightxmr-eric33-33/+33
2018-01-26Wallet API: remove unused enum Priority from UnsignedTransactionstoffu1-7/+0
2018-01-26wallet2: remove {set|get}_default_decimal_point and use the same funcs under ↵stoffu2-12/+0
cryptonote:: instead
2018-01-26wallet2: make scan_output const and omit keys argstoffu2-6/+6
2018-01-26wallet2: make member functions const when possiblestoffu2-35/+35
2018-01-26wallet rpc: show fees when querying incoming transfersstoffu3-4/+15
2018-01-26simplewallet: check file overwrite when exporting stuffstoffu2-0/+10
2018-01-25Merge pull request #3130Riccardo Spagni1-2/+2
5ae617d5 simplewallet: single out 0 amount destinations as dummy ones (moneromooo-monero) c1d19f3c wallet2: fix sweep_all sending an atomic unit (moneromooo-monero)
2018-01-25Merge pull request #3093Riccardo Spagni1-1/+1
d188840c Improved terminology from create to generate (Maxithi)
2018-01-25Merge pull request #3065Riccardo Spagni1-14/+7
3e635a3c wallet2: allow failing parse_tx_extra (moneromooo-monero)
2018-01-25Merge pull request #3047Riccardo Spagni1-0/+3
fa5c0bab Implement #3045, fixing RPC snakecases (Nick Johnson)
2018-01-25Merge pull request #3038Riccardo Spagni2-2/+4
eb39a3d7 wallet_api: make this optional but not built by default (moneromooo-monero)
2018-01-25Merge pull request #3028Riccardo Spagni1-0/+1
a4b006f9 wallet2 bugfix: initialize subaddress table when generating from keys (stoffu)
2018-01-25Merge pull request #3027Riccardo Spagni8-0/+464
6d40a920 Reserve proof (stoffu)
2018-01-25Merge pull request #3010Riccardo Spagni2-0/+6
07da9c80 Resolve addresses in get_transfers (Michał Sałaban)
2018-01-24wallet-cli: Do not ask for scan_from_height if it explicitly is set to zero.Maximilian Lupke2-0/+8
Fixes #3080
2018-01-17Wallet API: all recover options with passwordm2049r5-12/+110
also renamed memo => mnemonic in api method parms
2018-01-15wallet2: fix sweep_all sending an atomic unitmoneromooo-monero1-2/+2
2018-01-14cmake: set API header install path to what Qt wallet expectsredfish1-1/+1
2018-01-14wallet2::import_blockchain fix import loopJaquee1-1/+1
2018-01-14Allow retrieving spend key via RPCMichał Sałaban1-0/+4
2018-01-10Reserve proofstoffu8-0/+464