Skip to content

BIP376: keep PSBT_IN_WITNESS_UTXO after finalization - #2276

Open
bitsagarob wants to merge 1 commit into
bitcoin:masterfrom
bitsagarob:patch-1
Open

BIP376: keep PSBT_IN_WITNESS_UTXO after finalization#2276
bitsagarob wants to merge 1 commit into
bitcoin:masterfrom
bitsagarob:patch-1

Conversation

@bitsagarob

Copy link
Copy Markdown

BIP 174 says the Input Finalizer keeps the UTXO so the Transaction Extractor can verify the final transaction, and its finalized example PSBT does keep it. This BIP's Finalizer section requires removing PSBT_IN_WITNESS_UTXO. None of the finalizers I checked do that: Core's FinalizePSBT, Sparrow's clearNonFinalFields, rust-psbt's Input::finalize and rust-miniscript all keep it. Removing it also breaks partially finalized PSBTs: BIP 341 sighashes commit to every spent output, so once one input is finalized this way no remaining taproot input can be signed (Core's PrecomputePSBTData fails without all UTXOs).

@nymius nymius 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 c8cbc98

Thanks for reviewing! You're right, this is an error, the extractor should be able to verify the network serialized transaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants