dash/src/wallet
MeshCollider 6099b4bf39 Merge #13756: wallet: "avoid_reuse" wallet flag for improved privacy
5ebc6b0eb267e0552c66fffc5e5afe7df8becf80 bitcoind: update -avoidpartialspends description to account for auto-enable for avoid_reuse wallets (Karl-Johan Alm)
ada258f8c8f92d44d893cf9f22d15acdeca40b1a doc: release notes for avoid_reuse (Karl-Johan Alm)
27669551da52099e4a6a401acd7aa32b32832423 wallet: enable avoid_partial_spends by default if avoid_reuse is set (Karl-Johan Alm)
8f2e208f7c0468f9ba92bc789a698281b1c81284 test: add test for avoidreuse feature (Karl-Johan Alm)
0bdfbd34cf4015de87741ff549db35e5064f4e16 wallet/rpc: add 'avoid_reuse' option to RPC commands (Karl-Johan Alm)
f904723e0d5883309cb0dd14b826bc45c5e776fb wallet/rpc: add setwalletflag RPC and MUTABLE_WALLET_FLAGS (Karl-Johan Alm)
8247a0da3a46d7c38943ee0304343ab7465305bd wallet: enable avoid_reuse feature (Karl-Johan Alm)
eec15662fad917b169f5e3b8baaf4301dcf00a7b wallet: avoid reuse flags (Karl-Johan Alm)
58928098c299efdc7c5ddf2dc20716ca5272f21b wallet: make IsWalletFlagSet() const (Karl-Johan Alm)
129a5bafd9a3efa2fa16d780885048a06566d262 wallet: rename g_known_wallet_flags constant to KNOWN_WALLET_FLAGS (Karl-Johan Alm)

Pull request description:

  Add a new wallet flag called `avoid_reuse` which, when enabled, will keep track of when a specific destination has been spent from, and will actively "blacklist" any new UTXOs which send to an already-spent-from destination.

  This improves privacy, as a payer could otherwise begin tracking a payee's wallet by regularly peppering a known UTXO with dust outputs, which would then be scooped up and used in payments by the payee, allowing the payer to map out (1) the inputs owned by the payee and (2) the destinations to which the payee is making payments.

  This replaces #10386 and together with the (now merged) #12257 it addresses #10065 in full. The concerns raised in https://github.com/bitcoin/bitcoin/pull/10386#issuecomment-302361381 are also addressed due to #12257.

  ~~Note: this builds on top of #15780.~~ (merged)

ACKs for commit 5ebc6b:
  jnewbery:
    ACK 5ebc6b0eb
  laanwj:
    Concept and code-review ACK 5ebc6b0eb267e0552c66fffc5e5afe7df8becf80
  meshcollider:
    Code review ACK 5ebc6b0eb2
  achow101:
    ACK 5ebc6b0eb267e0552c66fffc5e5afe7df8becf80 modulo above nits

Tree-SHA512: fdef45826af544cbbb45634ac367852cc467ec87081d86d08b53ca849e588617e9a0a255b7e7bb28692d15332de58d6c3d274ac003355220e4213d7d9070742e
2022-06-17 04:06:49 +07:00
..
test tests: basic functional tests for CoinJoin (#4730) 2022-06-10 23:05:48 -05:00
bdb.cpp merge bitcoin#19335: Cleanup and separate BerkeleyDatabase and BerkeleyBatch 2022-05-13 18:04:31 +05:30
bdb.h merge bitcoin#19335: Cleanup and separate BerkeleyDatabase and BerkeleyBatch 2022-05-13 18:04:31 +05:30
coincontrol.cpp Merge #13756: wallet: "avoid_reuse" wallet flag for improved privacy 2022-06-17 04:06:49 +07:00
coincontrol.h Merge #13756: wallet: "avoid_reuse" wallet flag for improved privacy 2022-06-17 04:06:49 +07:00
coinselection.cpp Merge bitcoin/bitcoin#23254: doc: Fix typo and grammar 2022-04-11 09:41:11 -07:00
coinselection.h
context.cpp merge bitcoin#19096: Remove g_rpc_chain global 2022-05-18 20:50:50 +05:30
context.h merge bitcoin#19096: Remove g_rpc_chain global 2022-05-18 20:50:50 +05:30
crypter.cpp Merge #15226: Allow creating blank (empty) wallets (alternative) 2021-12-17 21:11:10 +03:00
crypter.h Merge #16659: refactoring: Remove unused includes 2021-12-12 16:44:54 -05:00
db.cpp merge bitcoin#19290: Move BDB specific things into bdb.{cpp/h} 2022-03-06 12:30:58 +05:30
db.h merge bitcoin#18699: Avoid translating RPC errors 2022-04-07 10:13:16 +05:30
fees.cpp Merge #11882: Disable default fallbackfee on mainnet 2022-01-30 18:30:28 -05:00
fees.h
init.cpp Merge #13756: wallet: "avoid_reuse" wallet flag for improved privacy 2022-06-17 04:06:49 +07:00
ismine.cpp Merge #16226: Move ismine to the wallet module (#4640) 2022-04-03 17:26:52 -05:00
ismine.h Merge #13756: wallet: "avoid_reuse" wallet flag for improved privacy 2022-06-17 04:06:49 +07:00
load.cpp partial bitcoin#18923: Never schedule MaybeCompactWalletDB when -flushwallet is off 2022-05-13 18:04:31 +05:30
load.h Pass CConnman to function in place for global pointer access 2022-04-20 00:21:04 +05:30
psbtwallet.cpp
psbtwallet.h Merge #16659: refactoring: Remove unused includes 2021-12-12 16:44:54 -05:00
rpcdump.cpp Merge #17617: doc: unify unix epoch time descriptions 2022-06-08 12:35:11 +07:00
rpcwallet.cpp Merge #13756: wallet: "avoid_reuse" wallet flag for improved privacy 2022-06-17 04:06:49 +07:00
rpcwallet.h merge bitcoin#19096: Remove g_rpc_chain global 2022-05-18 20:50:50 +05:30
salvage.cpp Merge #19805: wallet: Avoid deserializing unused records when salvaging 2022-06-07 16:11:23 -05:00
salvage.h merge bitcoin#19457: Cleanup wallettool salvage and walletdb extraneous declarations 2022-05-13 18:04:32 +05:30
wallet.cpp Merge #13756: wallet: "avoid_reuse" wallet flag for improved privacy 2022-06-17 04:06:49 +07:00
wallet.h Merge #13756: wallet: "avoid_reuse" wallet flag for improved privacy 2022-06-17 04:06:49 +07:00
walletdb.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
walletdb.h Merge #19805: wallet: Avoid deserializing unused records when salvaging 2022-06-07 16:11:23 -05:00
wallettool.cpp Merge #19719: build: Add Werror=range-loop-analysis 2022-06-07 16:11:23 -05:00
wallettool.h Merge #16659: refactoring: Remove unused includes 2021-12-12 16:44:54 -05:00
walletutil.cpp
walletutil.h