Skip to content

Add missing SIGHASH flag to BIP 143 Example#1545

Closed
davidgumberg wants to merge 1 commit intobitcoin:masterfrom
davidgumberg:sighash
Closed

Add missing SIGHASH flag to BIP 143 Example#1545
davidgumberg wants to merge 1 commit intobitcoin:masterfrom
davidgumberg:sighash

Conversation

@davidgumberg
Copy link
Copy Markdown

@davidgumberg davidgumberg commented Jan 29, 2024

The first example (Native P2WPKH) signature in BIP 143 was missing a SIGHASH flag. The signature scheme requires a DER encoded signature with a one-byte SIGHASH/'hash type' flag appended. (Excepting schnorr signatures which can omit a flag to implicitly signal SIGHASH_DEFAULT)

This pull request corrects the example to include the 0x01 / SIGHASH_ALL flag.

The first example ('Native P2WPKH') signature in BIP 143 was missing
a SIGHASH flag. The signature scheme requires a DER encoded signature
with a one-byte SIGHASH/'hash type' flag appended. (Excepting schnorr
signatures which can omit a flag to implicitly signal SIGHASH_DEFAULT)
@lorenzolfm
Copy link
Copy Markdown

ACK, since all other examples have the sighash flag appended in the signature. Either this or include a new field "sighash flag" and exclude the sighash flag from all other signature examples

0xGRAV3R

This comment was marked as spam.

@murchandamus
Copy link
Copy Markdown
Member

Duplicate of #748

@murchandamus murchandamus marked this as a duplicate of #748 Apr 23, 2024
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.

5 participants