Skip to content

bip174: add combiner test vector for PSBT_IN_SIGHASH_TYPE - #2275

Open
Sjors wants to merge 2 commits into
bitcoin:masterfrom
Sjors:2026/09/psbt-sighash
Open

bip174: add combiner test vector for PSBT_IN_SIGHASH_TYPE#2275
Sjors wants to merge 2 commits into
bitcoin:masterfrom
Sjors:2026/09/psbt-sighash

Conversation

@Sjors

@Sjors Sjors commented Sep 4, 2026

Copy link
Copy Markdown
Member

Add a vector that would have caught bitcoin/bitcoin#36076.

Additionally, #2075 clarified that Combine is not commutative, however the actual test vectors are. The first commit clarifies that the existing test vectors should be run in both orders, while leaving room for exceptions if we ever need to standardize conflict resolution.

The Combiner section is updated to say combining is commutative unless
the PSBTs have conflicting fields. None of the current combiner test
vectors contain such fields.
Add a vector where only one of the two PSBTs has the
PSBT_IN_SIGHASH_TYPE field.

See bitcoin/bitcoin#36076
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.

1 participant