Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 0A961DD2 for ; Fri, 1 Jun 2018 18:46:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sender-of-o51.zoho.com (sender-of-o51.zoho.com [135.84.80.216]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 7B037A3 for ; Fri, 1 Jun 2018 18:46:05 +0000 (UTC) Received: from [10.8.0.110] (n218103136198.netvigator.com [218.103.136.198]) by mx.zohomail.com with SMTPS id 1527878761088585.972099790015; Fri, 1 Jun 2018 11:46:01 -0700 (PDT) From: Johnson Lau Message-Id: <2E010067-EACD-4453-8D9D-B9CD5C238C98@xbt.hk> Content-Type: multipart/alternative; boundary="Apple-Mail=_823911B0-80AE-42F1-AA86-275875D83C8A" Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Date: Sat, 2 Jun 2018 02:45:57 +0800 In-Reply-To: To: Russell O'Connor References: <9CCCE945-9432-41B9-8559-AFE7CF233603@xbt.hk> X-Mailer: Apple Mail (2.3445.5.20) X-ZohoMailClient: External X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,UC_GIBBERISH_OBFU autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: bitcoin-dev Subject: Re: [bitcoin-dev] SIGHASH2 for version 1 witness programme X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2018 18:46:06 -0000 --Apple-Mail=_823911B0-80AE-42F1-AA86-275875D83C8A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 2 Jun 2018, at 2:15 AM, Russell O'Connor = wrote: >=20 >=20 > I prefer a different opcode for CHECKSIGFROMSTACK because I dislike = opcodes that pop a non-static number of elements off the stack. Popping = a dynamic number of stack elements makes it more difficult to validate = that a Script pubkey doesn't allow any funny business. Agreed. This is one of the reasons I think we should remove = CHECKMULTISIG in the new script system= --Apple-Mail=_823911B0-80AE-42F1-AA86-275875D83C8A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On 2 Jun 2018, at 2:15 AM, Russell O'Connor <roconnor@blockstream.io> wrote:


I prefer a different = opcode for CHECKSIGFROMSTACK because I dislike opcodes that pop a = non-static number of elements off the stack.  Popping a dynamic = number of stack elements makes it more difficult to validate that a = Script pubkey doesn't allow any funny = business.


Agreed. = This is one of the reasons I think we should remove CHECKMULTISIG in the = new script system
= --Apple-Mail=_823911B0-80AE-42F1-AA86-275875D83C8A--