From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 4CB83901 for ; Fri, 6 Nov 2015 09:32:06 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 16B1A129 for ; Fri, 6 Nov 2015 09:32:05 +0000 (UTC) Received: by wicfv8 with SMTP id fv8so25110830wic.0 for ; Fri, 06 Nov 2015 01:32:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vsG9MDLt9WuAFY89QE8YAeC8+M86taK99WFpq6FhDaA=; b=OJGYU8uB+6iQHSEaiJk9q/moz+gxbHmualWTI42VDUxb0gbnPQ7KtZZVsPqHuPDmeF p7rPiPRFqRtgv8//mtNOSftKeOWHkc7/POwlaOE/VgtrF1Q7eaEar5EstkNGEhkhgFxS 6gPnUwMCUf/nyfWhdA11Tblowd6UScgPB4TIXFC1IoHNy6XZGfpY4til65zqjZzHOEeW d5vZb9DyRnkX2wiWq/jVXFGK/n7eOFU7OFZWCxFNPTdYS+xf6XAPe+jzDz7yTB5k6dfm Ce0QGf6i18wqUIlylKxH4zif94jdg5uUAQx2mGCCt5pC2gEYFBJrL/CNukYCCBnHklJA FDGg== X-Received: by 10.194.48.113 with SMTP id k17mr13365901wjn.62.1446802323567; Fri, 06 Nov 2015 01:32:03 -0800 (PST) Received: from [10.0.1.5] (AStLambert-651-1-208-62.w92-151.abo.wanadoo.fr. [92.151.64.62]) by smtp.gmail.com with ESMTPSA id r65sm2052355wmb.20.2015.11.06.01.32.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Nov 2015 01:32:02 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) From: Oleg Andreev In-Reply-To: Date: Fri, 6 Nov 2015 10:32:02 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <8D9D1049-E502-4A37-ACE4-5A2B1369A90A@gmail.com> References: <0e72b173ea8e8aaf6b1b678182fa1ea7@xbt.hk> To: Tier Nolan X-Mailer: Apple Mail (2.3096.5) X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org X-Mailman-Approved-At: Fri, 06 Nov 2015 11:11:58 +0000 Cc: Bitcoin Dev Subject: Re: [bitcoin-dev] Dealing with OP_IF and OP_NOTIF malleability X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2015 09:32:06 -0000 > One and zero should be defined as arrays of length one. Otherwise, it = is still possible to mutate the transaction by changing the length of = the array.=20 >=20 > They should also be minimally encoded but that is covered by previous = rules. These two lines contradict each other. Minimally-encoded "zero" is an = array of length zero, not one. I'd suggest defining this explicitly here = as "IF/NOTIF argument must be either zero-length array or a single byte = 0x01".