Skip to content

BIP143: specify which CHECKMULTISIG keys must be compressed - #2370

Open
jeanpablojp wants to merge 2 commits into
bitcoin:masterfrom
jeanpablojp:bip143-multisig-pubkeys
Open

jeanpablojp wants to merge 2 commits into
bitcoin:masterfrom
jeanpablojp:bip143-multisig-pubkeys

Conversation

@jeanpablojp

Copy link
Copy Markdown
Contributor

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, and script_tests.json asserts that an uncompressed key that is never reached passes with WITNESS_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.

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.
@jonatack jonatack added Proposed BIP modification PR by non-owner to update BIP content Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified labels Nov 30, 2026
@jonatack

Copy link
Copy Markdown
Member

cc BIP authors @sipa @jl2012 for feedback or sign-off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified Proposed BIP modification PR by non-owner to update BIP content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants