Skip to content

test: Cover all opt-in hash types in the ECDSA sighash roundtrip - #1

Closed
oj43bc wants to merge 144 commits into
privkeyio:hf-sighash-opt-infrom
oj43bc:review/g3-hashtype-coverage
Closed

test: Cover all opt-in hash types in the ECDSA sighash roundtrip#1
oj43bc wants to merge 144 commits into
privkeyio:hf-sighash-opt-infrom
oj43bc:review/g3-hashtype-coverage

Conversation

@oj43bc

@oj43bc oj43bc commented Aug 18, 2026

Copy link
Copy Markdown

unified_sighash_sign_and_verify_roundtrip signed SIGHASH_ALL only, so the other five hash types the opt-in bit defines were never produced or verified through an ECDSA spend. unified_sighash_taproot_keypath_roundtrip covers all six, but it is schnorr.

Loops the existing signing block over ALL, NONE and SINGLE, each with and without ANYONECANPAY.

No behaviour change. sighash_tests passes.

luke-jr and others added 30 commits August 5, 2025 03:31
Co-authored-by: Kurtis Stirling <knotkurtis@gmail.com>
Co-authored-by: Luke Dashjr <luke-jr+git@utopios.org>
8-bit icon is required to make builds deterministic

(CMake rewrite of ea29400, except image tools are required)
This has been the case in Bitcoin Core since 0.15
@kwsantiago
kwsantiago force-pushed the hf-sighash-opt-in branch 28 times, most recently from 1e5aea6 to 4de04c9 Compare August 27, 2026 02:34
@kwsantiago

Copy link
Copy Markdown
Collaborator

Landed on hf-sighash-opt-in, folded into the commit that owns the test. The loop now covers all six opt-in hash types, and a broken SIGHASH_SINGLE commitment fails it. Closing.

@kwsantiago kwsantiago closed this Aug 27, 2026
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.

6 participants