elements/src/wallet/test
merge-script f9032a4abb
Merge bitcoin/bitcoin#31242: wallet, desc spkm: Return SigningProvider only if we have the privkey
f6a6d91205 test: add check for getting SigningProvider for a CPubKey (Sebastian Falbesoner)
62a95f5af9 test: refactor: move `CreateDescriptor` helper to wallet test util module (Sebastian Falbesoner)
493656763f desc spkm: Return SigningProvider only if we have the privkey (Ava Chow)

Pull request description:

  If we know about a pubkey that's in our descriptor, but we don't have the private key, don't return a SigningProvider for that pubkey.

  This is specifically an issue for Taproot outputs that use the H point as the resulting PSBTs may end up containing irrelevant information because the H point was detected as a pubkey each unrelated descriptor knew about.

  Split from #29675

ACKs for top commit:
  fjahr:
    ACK f6a6d91205
  theStack:
    re-ACK f6a6d91205
  furszy:
    utACK f6a6d91205. Only reviewed the actual change in detail, not the test commit.

Tree-SHA512: 30a196e611a0c5d9ebe5baf6d896caaa6af66f1615463dbb0c31e52604d53cf342922bb9967b3c697b47083d76b0485c77a5f545bd6381247c8bc44321c70f97
2025-01-16 17:30:36 +00:00
..
fuzz fuzz: Add SetMockTime() to necessary targets 2025-01-06 15:43:04 +00:00
CMakeLists.txt build, test: Build db_tests.cpp regardless of USE_BDB 2025-01-07 15:50:39 +00:00
coinselector_tests.cpp [refactor]: update coin selection algorithms input parameter max_weight name 2024-06-27 12:37:33 +01:00
db_tests.cpp build, test: Build db_tests.cpp regardless of USE_BDB 2025-01-07 15:50:39 +00:00
feebumper_tests.cpp Use Txid in COutpoint 2023-11-21 13:15:44 +00:00
group_outputs_tests.cpp refactor: Add LIFETIMEBOUND to all (w)txid getters 2023-10-27 13:01:42 +02:00
init_test_fixture.cpp refactor: Replace string chain name constants with ChainTypes 2023-05-09 15:49:14 +02:00
init_test_fixture.h refactor: Replace string chain name constants with ChainTypes 2023-05-09 15:49:14 +02:00
init_tests.cpp move-only: Extract common/args and common/config.cpp from util/system 2023-04-19 10:48:30 +02:00
ismine_tests.cpp test: refactor: move CreateDescriptor helper to wallet test util module 2025-01-03 13:12:27 -05:00
psbt_wallet_tests.cpp refactor: Hand-replace some ParseHex -> ""_hex 2024-08-28 19:11:59 +02:00
scriptpubkeyman_tests.cpp test: add check for getting SigningProvider for a CPubKey 2025-01-03 13:12:32 -05:00
spend_tests.cpp refactor: Drop util::Result operator= 2024-04-25 16:08:24 -04:00
util.cpp test: refactor: move CreateDescriptor helper to wallet test util module 2025-01-03 13:12:27 -05:00
util.h test: refactor: move CreateDescriptor helper to wallet test util module 2025-01-03 13:12:27 -05:00
wallet_crypto_tests.cpp scripted-diff: Replace ParseHex[<std::byte>]("str") -> "str"_hex[_u8] 2024-08-28 19:11:59 +02:00
wallet_test_fixture.cpp Merge bitcoin/bitcoin#26715: Introduce MockableDatabase for wallet unit tests 2023-05-15 11:39:43 +01:00
wallet_test_fixture.h refactor: Replace string chain name constants with ChainTypes 2023-05-09 15:49:14 +02:00
wallet_tests.cpp test: remove wallet context from write_wallet_settings_concurrently 2024-09-05 20:32:20 +01:00
wallet_transaction_tests.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
walletdb_tests.cpp Remove unused CDataStream 2023-11-30 11:27:54 +01:00
walletload_tests.cpp descriptor: Be able to get the pubkeys involved in a descriptor 2024-02-20 11:20:58 -05:00