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: memberI think this should be conditional on the environment (and only enabled inside SegWit scripts).
-
fivepiece commented at 5:02 pm on May 30, 2018: contributorOut 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: contributoroh…..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: memberYes 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” etcjl2012 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 20DrahtBot closed this on Jul 29, 2018
DrahtBot commented at 3:16 pm on July 29, 2018: memberDrahtBot reopened this on Jul 29, 2018
jl2012 closed this on Jul 30, 2018
DrahtBot locked this on Sep 8, 2021
github-metadata-mirror
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: 2024-12-19 06:12 UTC
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: 2024-12-19 06:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me