aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-11-21wallet: use incoming blocks to keep track of payments toomoneromooo-monero1-0/+19
2015-11-15wallet: track outgoing payments and add a show_transfers commandmoneromooo-monero1-8/+36
It's a user friendly display of incoming and outgoing transfers, listed by height, within an optional height range.
2015-10-30simplewallet: add a set default-mixin commandmoneromooo-monero1-0/+5
The default default mixin is 4. It can now be changed per wallet.
2015-10-30wallet2: fix CLANG compile errormoneromooo-monero1-1/+1
2015-10-27Fix a possibly-unused warning, and rationalize typesmoneromooo-monero1-5/+5
2015-10-25Fix leak on real output when using a very recent outputmoneromooo-monero1-1/+1
The wallet and the daemon applied different height considerations when selecting outputs to use. This can leak information on which input in a ring signature is the real one. Found and originally fixed by smooth on Aeon.
2015-10-14wallet2: really include non canonical outputs in dust sweepmoneromooo-monero1-1/+1
2015-10-11from hard fork 2, all outputs must be decomposedmoneromooo-monero1-15/+19
The wallet decomposes fully as of now too.
2015-08-24wallet: only return tx keys via RPC if requestedmoneromooo-monero1-3/+8
To get the tx keys returned via RPC, set the "get_tx_key" or "get_tx_keys" request field to true (defaults to false).
2015-08-24Merge pull request #381Riccardo Spagni1-2/+64
f197599 wallet: encrypt the cache file (moneromooo-monero) 98c76a3 chacha8: add a key generation variant that take a pointer and size (moneromooo-monero)
2015-08-22wallet: encrypt the cache filemoneromooo-monero1-2/+64
It contains private data, such as a record of transactions. The key is derived from the view and spend secret keys. The encryption currently is one shot, so may require a lot of memory for large wallet caches.
2015-08-19make tx keys available to the usermoneromooo-monero1-5/+21
They are also stored in the cache file, to be retrieved using a new get_tx_key command.
2015-08-11wallet: new rescan_spent command to update outputs' spent statusmoneromooo-monero1-0/+41
This obsoletes the need for a lengthy blockchain rescan when a transaction doesn't end up in the chain after being accepted by the daemon, or any other reason why the wallet's idea of spent and unspent outputs gets out of sync from the blockchain's.
2015-08-09encrypted payment ids are now 64 bit, instead of 256 bitmoneromooo-monero1-7/+42
Pros: - smaller on the blockchain - shorter integrated addresses Cons: - less sparseness - less ability to embed actual information The boolean argument to encrypt payment ids is now gone from the RPC calls, since the decision is made based on the length of the payment id passed.
2015-08-09Encrypted payment IDsmoneromooo-monero1-2/+20
A payment ID may be encrypted using the tx secret key and the receiver's public view key. The receiver can decrypt it with the tx public key and the receiver's secret view key. Using integrated addresses now cause the payment IDs to be encrypted. Payment IDs used manually are not encrypted by default, but can be encrypted using the new 'encrypt_payment_id' field in the transfer and transfer_split RPC calls. It is not possible to use an encrypted payment ID by specifying a manual simplewallet transfer/transfer_new command, though this is just a limitation due to input parsing.
2015-08-04wallet: set watch-only flag to false when creating a new walletmoneromooo-monero1-0/+1
2015-07-22wallet: new transaction construction algorithmmoneromooo-monero1-2/+407
It should avoid a lot of the issues sending more than half the wallet's contents due to change. Actual output selection is still random. Changing this would improve the matching of transaction amounts to output sizes, but may have non obvious effects on blockchain analysis. Mapped to the new transfer_new command in simplewallet, and transfer uses the existing algorithm. To use in RPC, add "new_algorithm: true" in the transfer_split JSON command. It is not used in the transfer command.
2015-07-18wallet: add boolean to always confirm transactions with the usermoneromooo-monero1-0/+5
This can be useful if you want to be given a veto over the tx fee, or if you want to see what a tx fee would be without actually sending.
2015-06-20Merge pull request #324Riccardo Spagni1-2/+36
dc4dbc1 simplewallet: allow creating a wallet from a public address and view secret key (moneromooo-monero) 6a0f61d account: allow creating an account from a public address and view secret key (moneromooo-monero) e05a58a wallet2: fix write_watch_only_wallet comment description (moneromooo-monero) 4bf6f0d simplewallet: forbid seed commands for watch only wallets (moneromooo-monero)
2015-06-20simplewallet: allow creating a wallet from a public address and view secret keymoneromooo-monero1-0/+34
The needed information is supplied via a triple: --generate-from-view-key address:viewkey:filename
2015-06-20wallet2: fix write_watch_only_wallet comment descriptionmoneromooo-monero1-2/+2
2015-06-17wallet2: use the same exponential splitting for normal txesmoneromooo-monero1-2/+4
2015-06-17wallet2: try to split dust sweep txs exponentiallymoneromooo-monero1-2/+3
This ensures even massive wallets full of dust can sweep.
2015-05-31wallet: add watch only wallet supportmoneromooo-monero1-5/+39
The new save_watch_only saves a copy of the keys file without the spend key. It can then be given away to be used as a normal keys file, but with no spend ability.
2015-05-30wallet: add a sweep_dust commandmoneromooo-monero1-0/+211
Sends all the dust to your own wallet. May fail (if the fee required is more than the dust total). May end up paying most of the dust in fees. Unlocked dust total is now also displayed in "balance".
2015-05-27wallet: add consts where appropriatemoneromooo-monero1-9/+9
because const is always appropriate
2015-05-19Allow name@domain.tld for OpenAlias lookupswarptangent1-1/+2
Based on tewinget's update. Make OpenAlias address format independent of existing DNS functions. Add tests. Test: make debug-test cd build/debug/tests/unit_tests # test that regular DNS functions work, including IPv4 lookups. # also test function that converts OpenAlias address format make && ./unit_tests --gtest_filter=DNSResolver* # test that OpenAlias addresses like donate@getmonero.org work from # wallet tools make && ./unit_tests --gtest_filter=AddressFromURL.Success
2015-01-11Allow get_bulk_payments to return all payments regardless of payment IDmoneromooo-monero1-12/+24
by giving an empty list of payment IDs.
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-12-13Merge pull request #203Riccardo Spagni1-0/+5
583cf0a Document existing function (warptangent) 95eb944 Repeat prompt for wallet path if invalid (warptangent)
2014-12-13Merge pull request #202Riccardo Spagni1-2/+0
d7aafd5 wallet2::rewrite update to not require bin file (warptangent)
2014-12-13Merge pull request #201Riccardo Spagni1-7/+9
9b7e0a0 wallet2::load correctly initialize m_blockchain for wallet loaded without bin file (warptangent)
2014-12-11Repeat prompt for wallet path if invalidwarptangent1-0/+5
simplewallet run without a wallet path argument should prompt again if an invalid path was entered. Validity here currently means the string isn't empty.
2014-12-10wallet2::rewrite update to not require bin filewarptangent1-2/+0
Allow pre-JSON wallet format to load without depending on existing bin file. Don't write bin file while inside keys rewrite, so bin file write behavior here matches that of regular wallet load.
2014-12-10wallet2::load correctly initialize m_blockchain for wallet loaded without ↵warptangent1-7/+9
bin file Fix for simplewallet loading a wallet with a keys file but no bin file. - this situation previously required a user to restart simplewallet before it would refresh its blockchain from the server.
2014-12-08Add wallet2::verify_password methodwarptangent1-0/+48
Allows wallet password to be verified without changing wallet state.
2014-12-06wallet JSON update for non-deterministic wallet datawarptangent1-4/+10
wallet2::store_keys() and wallet2::load_keys() should only use the JSON attribute "seed_language" when applicable. That is only for deterministic wallets. - store_keys() don't add JSON attribute "seed_language" if seed_language is empty - load_keys() don't call set_seed_language if JSON attribute "seed_language" not present
2014-12-06Extract check for deterministic keys to wallet2::is_deterministic()warptangent1-6/+16
It's cleaner for wallet2.cpp and it also allows deterministic check by simplewallet.cpp.
2014-12-01prompt for seed language and error handlingwarptangent1-0/+13
- "seed" simplewallet command was only displaying seed if wallet was newly generated
2014-12-01Merge pull request #1Riccardo Spagni1-5/+84
f1eaf88 Prints seed after wallet upgrade. Removed iostream include. (Oran Juice) 70971be Doxygen comments (Oran Juice) 031ca23 Rewrites to old wallet file correctly (Oran Juice) 1f833dc Doxygen comments in (Oran Juice) 0bd88ff Writes seed language while generating wallet. Wallet open fix. (Oran Juice) 09a659e Stores seed language in wallet file. added rapidjson. Yet to test backward compatibility (Oran Juice)
2014-11-09Remove DEFAULT_FEE, add temporary acceptance of too-small per-kb fee >= 0.1, ↵iamsmooth1-2/+2
denominations based on DEFAULT_DUST_THRESHOLD, document fee arg to create_transactions as unused, se DEFAULT_DUST_THRESHOLD for wallet dust collection instead of calcualted tx fee
2014-11-06per kb fees not passing correct fee to transfer()Thomas Winget1-2/+1
2014-11-06Should now properly do per-kb feeThomas Winget1-1/+2
I'm an idiot.
2014-11-06per kb feesThomas Winget1-1/+16
2014-10-19Prints seed after wallet upgrade. Removed iostream include.Oran Juice1-2/+0
2014-10-19Doxygen commentsOran Juice1-14/+19
2014-10-19Rewrites to old wallet file correctlyOran Juice1-1/+13
2014-10-18Doxygen comments inOran Juice1-3/+24
2014-10-18Writes seed language while generating wallet. Wallet open fix.Oran Juice1-4/+9
2014-10-18Stores seed language in wallet file. added rapidjson. Yet to test backward ↵Oran Juice1-1/+39
compatibility
2014-10-05fixed conflict in CMakeListsRiccardo Spagni1-2/+9
2014-10-02Restructured language sources to be singletonsOran Juice1-1/+8
2014-09-30updated DNSResolver/things that use it for DNSSECThomas Winget1-4/+9
Note: DNSResolver does not yet *use* DNSSEC, but rather this commit is preparation for including DNSSEC validation. The function in src/wallet/wallet2.cpp that uses DNSResolver still needs its parameters updated accordingly.
2014-09-28Merge with origin/masterOran Juice1-0/+63
2014-09-23change to allow (at least a bit) for multiple TXT recordsThomas Winget1-6/+15
2014-09-23Monero addres from DNS TXT record implemented, tests passThomas Winget1-0/+54
Still need to deal with DNSSEC and optional fields in the TXT record.
2014-09-23Moved mnemonics code to src/mnemonicsOran Juice1-1/+1
2014-09-15Separate testnet address prefixZachary Michaels1-2/+2
2014-09-15Pass tx and nonce to genesis block constructorZachary Michaels1-4/+8
2014-09-15Separate rpc port for testnetZachary Michaels1-1/+5
2014-09-15Reorganize testnet constantsZachary Michaels1-1/+1
2014-09-15Add testnet flagZachary Michaels1-7/+30
Source: cryptonotefoundation
2014-09-13Change wallet to not try to extract tx public key when tx has no outputs ↵iamsmooth1-45/+49
(fixes 202612 tx format messages and is otherwise correct)
2014-08-03refactoring. get seed code in wallet2Jakob Lind1-0/+18
2014-08-01#36 make it compile and work properlyJakob Lind1-4/+2
2014-08-01#36 simplewallet refresh include optional height paramJakob Lind1-9/+7
height param is used optionally in refresh command TODO: This should also be the default behaviour when generating a new wallet.
2014-07-23License updated to BSD 3-clausefluffypony1-4/+29
2014-07-22Add get_bulk_payments rpc callZachary Michaels1-3/+6
2014-06-30wallet RPC converted to use new transaction semanticsThomas Winget1-4/+152
wallet RPC now uses wallet2::create_transactions and wallet2::commit_tx instead of wallet2::transfer. This made it possible to add the RPC call /transfer_split, which will split transactions automatically if they are too large. The old call to /transfer will return an error stating to use /transfer_split if multiple transactions are needed to fulfill the request.
2014-06-30final changes to get transaction splitting building. needs testing.Thomas Winget1-3/+30
2014-06-30Added comments to wallet functionsThomas Winget1-0/+7
2014-06-30Revert "Do not fall over when refreshing balance fails"Thomas Winget1-2/+1
2014-06-29Do not fall over when refreshing balance failsMatthew Little1-1/+2
2014-06-12allow two-random-numbers wallet generation (but not as default)Thomas Winget1-2/+2
2014-06-12builds, but doesn't link. other than that, electrum-style recovery ↵Thomas Winget1-2/+3
implemented (but not tested\!)
2014-06-12most functions prototyped/modified for wallet recoveryThomas Winget1-2/+4
2014-06-02Added 'payment_id' optional argument to 'transfer' wallet RPC methodNeozaru1-0/+14
2014-05-250.8.8updatemydesktop1-2/+2
2014-05-03initial [broken] updatemydesktop1-27/+92
2014-04-30Reverting wallet2.cpp to proper bugfixmonero-project1-5/+0
2014-04-30further fixes for mac osxmydesktop1-0/+11
2014-04-30Warn user on attempting to remove build directory for make cleanmydesktop1-1/+1
2014-04-30return for unhandleable tx_extramonero-project1-0/+4
2014-04-30Temporarily disable error relating to mangled tx_extra fieldsmonero-project1-1/+4
2014-04-18checkpoints removedthankful_for_today1-1/+1
2014-04-07Improvements in JSON RPCAntonio Juarez1-27/+27
2014-04-02json rpc for wallet and bugfixAntonio Juarez1-150/+153
2014-03-20some fixesAntonio Juarez1-53/+60
2014-03-03moved all stuff to githubAntonio Juarez1-0/+595