Making CHECKMULTISIG with 17~20 keys standard. Trying to redo #11545 after #13194 is merged
Standard template for CHECKMULTISIG with 17~20 keys #13348
pull jl2012 wants to merge 2 commits into bitcoin:master from jl2012:20multisig changing 2 files +62 −12-
jl2012 commented at 4:49 PM on May 30, 2018: contributor
-
sipa commented at 4:54 PM on May 30, 2018: member
I think this should be conditional on the environment (and only enabled inside SegWit scripts).
-
fivepiece commented at 5:02 PM on May 30, 2018: contributor
Out of interest, does the soft fork nature (or rather, change of policy only) of it means that
{17,18,19} checkmultisig(verify)will still count as 20 sigops (MAX_PUBKEYS_PER_MULTISIG) ? As in here : https://github.com/bitcoin/bitcoin/blob/fd96d54f39cf4f66890e0bb40812d47e69728cec/src/script/script.cpp#L161-L167 -
jl2012 commented at 5:35 PM on May 30, 2018: contributor
oh.....actually, arbitrary scripts are already standard in witness v0....so this is only for wallet?
-
Standard template for CHECKMULTISIG with 17~20 keys 34d51f844b
-
Test: Standard template for CHECKMULTISIG with 17~20 keys 159e5aac91
- jl2012 force-pushed on May 31, 2018
-
instagibbs commented at 9:45 PM on June 4, 2018: member
Yes they're already standard. The only thing preventing their use was wallet code.
-
in src/script/standard.cpp:60 in 34d51f844b outdated
56 | @@ -57,10 +57,18 @@ static bool MatchPayToPubkeyHash(const CScript& script, valtype& pubkeyhash) 57 | return false; 58 | } 59 | 60 | -/** Test for "small positive integer" script opcodes - OP_1 through OP_16. */ 61 | -static constexpr bool IsSmallInteger(opcodetype opcode) 62 | +/** Test for "small positive integer" script opcodes - OP_1 through OP_16, or a single byte push for 17 to 20. */
instagibbs commented at 9:49 PM on June 4, 2018:The old definition is used elsewhere still. Perhaps rename the function(or make a new one) to "IsCheckMultisigInteger" or something more direct?
instagibbs commented at 7:13 PM on June 5, 2018:I meant the term "small integer" i.e. "encode small integer" etc
jl2012 commented at 7:10 PM on June 5, 2018: contributor@fivepiece, no, this has nothing to do with sigop counting. They are still counted as 20
DrahtBot closed this on Jul 29, 2018DrahtBot commented at 3:16 PM on July 29, 2018: member<!--5d09a71f8925f3f132321140b44b946d-->The last travis run for this pull request was 59 days ago and is thus outdated. To trigger a fresh travis build, this pull request should be closed and re-opened.
DrahtBot reopened this on Jul 29, 2018jl2012 closed this on Jul 30, 2018DrahtBot locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 09:15 UTC
More mirrored repositories can be found on mirror.b10c.me