]> Untitled Git - bdk/commit
fix(bdk): Check if we're using the correct...
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Wed, 8 Nov 2023 17:16:21 +0000 (18:16 +0100)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Fri, 10 Nov 2023 17:25:46 +0000 (18:25 +0100)
commite553231eae45dc6d263a1fce2a3a9c46f6af2510
treeffe57facc51fa4c9f0d4bfd8dac0d44b8b8623c6
parent2f2f138595108f916f3d13bdac246fb164af87c6
fix(bdk): Check if we're using the correct...
...internal key before signing

Fixes #1142

We would previously sign with whatever x_only_pubkey we had in hand,
without first checking if it was the right key or not. This effectively
meant that adding multiple taproot PrivateKey signers would produce
unbroadcastable transactions.
crates/bdk/src/wallet/signer.rs
crates/bdk/tests/psbt.rs