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.

@murchandamus murchandamus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Concept ACK. @achow101?

@murchandamus murchandamus added Proposed BIP modification PR by non-owner to update BIP content Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified labels Sep 9, 2026
Comment thread bip-0174.mediawiki Outdated
Comment thread bip-0174.mediawiki Outdated
Add a vector where only one of the two PSBTs has the
PSBT_IN_SIGHASH_TYPE field.

See bitcoin/bitcoin#36076
@Sjors
Sjors force-pushed the 2026/09/psbt-sighash branch from 1399ae4 to 0bae693 Compare September 10, 2026 06:43
@Sjors

Sjors commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Trimmed the text and just copy-pasted both PSBTs, instead of trying to point to them (the vectors are not numbered or named).

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

Labels

Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified Proposed BIP modification PR by non-owner to update BIP content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants