Skip to content

release/3.x: reject missing taproot witness utxo before signing - #651

Merged
noahjoeris merged 2 commits into
bitcoindevkit:release/3.xfrom
noahjoeris:fix/taproot-acp-missing-witness-utxo
Nov 19, 2026
Merged

noahjoeris merged 2 commits into
bitcoindevkit:release/3.xfrom
noahjoeris:fix/taproot-acp-missing-witness-utxo

Conversation

@noahjoeris

@noahjoeris noahjoeris commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

A missing witness_utxo on a later Taproot ANYONECANPAY input could leave earlier inputs signed before returning an error.

Reject missing witness_utxo during input amount validation, before signing. Add a regression test checking that no signatures remain.

Addresses notmandatory’s review comment. Targets release/3.x.

Changelog notice

Fixed

  • Reject missing Taproot witness UTXOs before signing ANYONECANPAY inputs.

Before submitting

@noahjoeris
noahjoeris requested a review from a team as a code owner November 17, 2026 11:53
@github-project-automation github-project-automation Bot moved this to Triage in BDK Wallet Nov 17, 2026
@noahjoeris noahjoeris self-assigned this Nov 17, 2026
@noahjoeris noahjoeris added this to the Wallet 3.2.1 milestone Nov 17, 2026
@noahjoeris noahjoeris moved this from Triage to Needs Review in BDK Wallet Nov 17, 2026
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.97%. Comparing base (3fd8ee2) to head (5ed098b).

Additional details and impacted files
@@             Coverage Diff              @@
##           release/3.x     #651   +/-   ##
============================================
  Coverage        81.97%   81.97%           
============================================
  Files               25       25           
  Lines             6384     6385    +1     
  Branches           311      311           
============================================
+ Hits              5233     5234    +1     
  Misses            1045     1045           
  Partials           106      106           
Flag Coverage Δ
rust 81.97% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@noahjoeris

Copy link
Copy Markdown
Contributor Author

I didnt open this fix against master because of #647 and instead target release/3.x directly.

@reez reez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f5dd429

Nice!

@reez

reez commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

I didnt open this fix against master because of #647 and instead target release/3.x directly.

Yeah targeting release/3.x makes sense. Should we add this missing witness_utxo check to the existing signing example in #647 though?

@noahjoeris

Copy link
Copy Markdown
Contributor Author

Yes thanks for spotting. I added it to the #647 example

@notmandatory notmandatory left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f5dd429

@notmandatory

notmandatory commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This only needs a rebase on release/3.x to pickup #653 and fix the CI error.

@noahjoeris
noahjoeris force-pushed the fix/taproot-acp-missing-witness-utxo branch from f5dd429 to 5ed098b Compare November 18, 2026 08:26
@noahjoeris

Copy link
Copy Markdown
Contributor Author

Rebased

@noahjoeris
noahjoeris merged commit f37872d into bitcoindevkit:release/3.x Nov 19, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in BDK Wallet Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants