Repository navigation
bip174: add combiner test vector for PSBT_IN_SIGHASH_TYPE - #2275
Merged
Merged
Conversation
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.
This was referenced Sep 4, 2026
achow101
reviewed
Sep 9, 2026
achow101
reviewed
Sep 9, 2026
Add a vector where only one of the two PSBTs has the PSBT_IN_SIGHASH_TYPE field. See bitcoin/bitcoin#36076
Sjors
force-pushed
the
2026/09/psbt-sighash
branch
from
September 10, 2026 06:43
1399ae4 to
0bae693
Compare
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). |
This comment has been minimized.
This comment has been minimized.
Member
There was a problem hiding this comment.
LGTM, and seems to address all of @achow101’s feedback. Could you please add a Changelog entry that mentions the new test vectors, and bump the PATCH version in Changelog and Version header?
While you do that, could you kindly also add mention of the Commutativity clarification we merged? I overlooked the missing Changelog there. (Otherwise, I can do it later myself.)
Member
Author
Added a commit (bumping to 1.4.3).
Done (bumping to 1.4.4) |
achow101
reviewed
Sep 23, 2026
sedited
pushed a commit
to bitcoin/bitcoin
that referenced
this pull request
Oct 5, 2026
Test both input orders per bitcoin/bips#2275.
sedited
added a commit
to bitcoin/bitcoin
that referenced
this pull request
Oct 5, 2026
6fa2f39 test: add BIP174 invalid value size vector (Sjors Provoost) 029bc15 test: add BIP174 sighash combiner vector (Sjors Provoost) Pull request description: Add the two new test vectors from: - bitcoin/bips#2275 - bitcoin/bips#1971 bitcoin/bips#2275 additionally requires _existing_ `Combine` vectors to run in both orders, so we do that here too. ACKs for top commit: brunoerg: reACK 6fa2f39 aaron-leeb: reACK [6fa2f39](6fa2f39) sedited: ACK 6fa2f39 Tree-SHA512: 5a07026cadbe0551728ac30e9b20212f94e322a2ab31a31a84c86320fc95d2ada82a12e7c2a50c7cd7c12ad202036fdc45b6ad4fc820a8d6f2cd71c87476a6f5
Kino1994
pushed a commit
to Kino1994/bitcoin-full-history
that referenced
this pull request
Oct 12, 2026
Test both input orders per bitcoin/bips#2275.
Kino1994
pushed a commit
to Kino1994/bitcoin-full-history
that referenced
this pull request
Oct 12, 2026
6fa2f3974cbb69fb2086a8f89d300deec4486662 test: add BIP174 invalid value size vector (Sjors Provoost) 029bc15f2cb575ad4e19d99338cd133a4140e66f test: add BIP174 sighash combiner vector (Sjors Provoost) Pull request description: Add the two new test vectors from: - bitcoin/bips#2275 - bitcoin/bips#1971 bitcoin/bips#2275 additionally requires _existing_ `Combine` vectors to run in both orders, so we do that here too. ACKs for top commit: brunoerg: reACK 6fa2f3974cbb69fb2086a8f89d300deec4486662 aaron-leeb: reACK [6fa2f39](bitcoin/bitcoin@6fa2f39) sedited: ACK 6fa2f3974cbb69fb2086a8f89d300deec4486662 Tree-SHA512: 5a07026cadbe0551728ac30e9b20212f94e322a2ab31a31a84c86320fc95d2ada82a12e7c2a50c7cd7c12ad202036fdc45b6ad4fc820a8d6f2cd71c87476a6f5
ajtowns
pushed a commit
to ajtowns/bitcoin
that referenced
this pull request
Oct 23, 2026
Test both input orders per bitcoin/bips#2275.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a vector that would have caught bitcoin/bitcoin#36076.
Additionally, #2075 clarified that
Combineis 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.