Repository navigation
BIP143: specify which CHECKMULTISIG keys must be compressed - #2370
Open
jeanpablojp wants to merge 2 commits into
Open
jeanpablojp wants to merge 2 commits into
jeanpablojp wants to merge 2 commits into
Conversation
Version 1.0.0 is the move to Proposed in 0402dd2 and 1.0.1 is the move to Final in bitcoin#584.
In OP_CHECKMULTISIG, Bitcoin Core only checks the public keys the opcode reaches, and its script tests have vectors where an uncompressed key that is not reached passes with WITNESS_PUBKEYTYPE. Reviewers of bitcoin/bitcoin#33759 preferred changing the BIP to match, see also item 4 of bitcoin/bitcoin#33882.
Member
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.
BIP143 says each public key passed to a sigop in a v0 witness program must be compressed. In
OP_CHECKMULTISIG, Bitcoin Core only checks the keys the opcode reaches, andscript_tests.jsonasserts that an uncompressed key that is never reached passes withWITNESS_PUBKEYTYPE.bitcoin/bitcoin#33759 proposed checking every key instead. Reviewers preferred updating the BIP to match the implementation, and the author of that PR was fine with clarifying the BIP. Item 4 of bitcoin/bitcoin#33882 lists both options.
The second commit adds a paragraph describing the deployed behavior. The first adds a version header and changelog per BIP 3, with 1.0.0 as the move to Proposed in 0402dd2 and 1.0.1 as the move to Final in #584.