summaryrefslogtreecommitdiff
path: root/ed/4d6cac39c2af751b78b95acbaadca738e96a6b
blob: 5041fc0f2ca75482b1164ea725c1282b7db5b57a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Return-Path: <oleganza@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 4CB83901
	for <bitcoin-dev@lists.linuxfoundation.org>;
	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 <bitcoin-dev@lists.linuxfoundation.org>;
	Fri,  6 Nov 2015 09:32:05 +0000 (UTC)
Received: by wicfv8 with SMTP id fv8so25110830wic.0
	for <bitcoin-dev@lists.linuxfoundation.org>;
	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 <oleganza@gmail.com>
In-Reply-To: <CAE-z3OUQyW9Hss-jMDx_HjT9y55SctmUiXiGYhTZe6=2Mj2OaA@mail.gmail.com>
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>
	<CAE-z3OUQyW9Hss-jMDx_HjT9y55SctmUiXiGYhTZe6=2Mj2OaA@mail.gmail.com>
To: Tier Nolan <tier.nolan@gmail.com>
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 <bitcoin-dev@lists.linuxfoundation.org>
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 <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=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".