Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement BIP 118 validation (SIGHASH_ANYPREVOUT) #34

Merged
merged 8 commits into from
Sep 1, 2023

Conversation

ajtowns
Copy link

@ajtowns ajtowns commented Aug 31, 2023

Forward ported from #18

@ajtowns ajtowns marked this pull request as draft August 31, 2023 06:20
@ajtowns ajtowns added this to the 25.x milestone Aug 31, 2023
ajtowns and others added 8 commits September 1, 2023 17:49
Introduce `KeyVersion` in preparation for defining new behaviours via
BIP 342's "unknown public key type" upgrade mechanism.
… was conserved

This fuzz targets copied the SignatureHashSchnorr function for Bitcoin
Core 23.0 and checks the output of the APO-ready SignatureHashSchnorr
from this branch against it.

This is to make sure the behaviour of the function was not changed for
non ANYPREVOUT keys, which would make some previously valid signatures
invalid and, even worse, some previously invalid signatures valid.
@ajtowns ajtowns marked this pull request as ready for review September 1, 2023 07:53
@ajtowns ajtowns merged commit cb48315 into bitcoin-inquisition:25.x Sep 1, 2023
1 check passed
@ajtowns ajtowns added the bip118 label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants