summaryrefslogtreecommitdiff
path: root/8f/f734d738eaee733c24e2df32666e5e5e8f6197
blob: 3a3da85fd23ec53bf7cee88a1b9b62a3bf9d1bbf (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192]
	helo=mx.sourceforge.net)
	by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <zgenjix@yahoo.com>) id 1SvWZl-0005s3-Bv
	for bitcoin-development@lists.sourceforge.net;
	Sun, 29 Jul 2012 16:42:41 +0000
X-ACL-Warn: 
Received: from nm28-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.188])
	by sog-mx-2.v43.ch3.sourceforge.com with smtp (Exim 4.76)
	id 1SvWZk-0003V4-An for bitcoin-development@lists.sourceforge.net;
	Sun, 29 Jul 2012 16:42:41 +0000
Received: from [98.138.90.52] by nm28.bullet.mail.ne1.yahoo.com with NNFMP;
	29 Jul 2012 16:42:34 -0000
Received: from [98.138.89.193] by tm5.bullet.mail.ne1.yahoo.com with NNFMP;
	29 Jul 2012 16:42:34 -0000
Received: from [127.0.0.1] by omp1051.mail.ne1.yahoo.com with NNFMP;
	29 Jul 2012 16:42:34 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 696939.41345.bm@omp1051.mail.ne1.yahoo.com
Received: (qmail 65457 invoked by uid 60001); 29 Jul 2012 16:42:34 -0000
X-YMail-OSG: 2eDw6f8VM1nAVcilH3642vOMpzgi_wbNJQBDr_shcFBddc7
	usHFvHJvezisDf_9ZXUboDfAJmdwmNZb1lFKEUvVNjI0WKzYkuOjHul3r5ZB
	UTmWa9ZvxD5KTV189dxHFe9wFZ_RuEAzDcQ.LkZzDnArMFcN9x1tUwwz_8nm
	R3xWAMfYw1istHUPgzQe99s27z10uPqKoMGAAGGMGV0qDpCr3qXkFjeqHC2p
	Ti29Nhzl8WVUxrIMRv6Fu8nalU5CR3c23EkvVurOJM_THDySZ0rCFEPzwJML
	KvPNdB_kpjDg0vg59t.EtweRbXRGNHgVvTuczMcWf5xu7jGRc_a965koadPi
	6baZyRHMnl1XaX7cMw6tGmlOV8lb.YWMZ9e3FDdukR7cfhlVPz34lGzkANY7
	NjmDUI2aLzXm8aLaZgVYpXUT5eGuEUfK63ccNMM_CPJbcUoLdg5vgCQ.pBGu
	gUNwOlAtyWPEuh9J_KwFXD.SoXB.j1kolz1ZNBuGkaobfaroXQ76tWi6DKsK
	YbCcK8.tPt6e6LMxFZPqmsaTQmOMD1sq7IHPOdTzEWirYnivydUsRAspVqNg
	Uke_pJZJsmiEPDDweJwTNNsSdU3SOK.jfXPfDZMOW9SYlC5RnEKbKeImwBKU
	uAHcxedw-
Received: from [187.54.148.204] by web121004.mail.ne1.yahoo.com via HTTP;
	Sun, 29 Jul 2012 09:42:34 PDT
X-Mailer: YahooMailWebService/0.8.120.356233
References: <1343579466.30862.YahooMailNeo@web121004.mail.ne1.yahoo.com>
	<501565D5.4060608@justmoon.de>
Message-ID: <1343580154.34128.YahooMailNeo@web121004.mail.ne1.yahoo.com>
Date: Sun, 29 Jul 2012 09:42:34 -0700 (PDT)
From: Amir Taaki <zgenjix@yahoo.com>
To: "bitcoin-development@lists.sourceforge.net"
	<bitcoin-development@lists.sourceforge.net>
In-Reply-To: <501565D5.4060608@justmoon.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -0.1 (/)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,
	no trust [98.138.91.188 listed in list.dnswl.org]
	0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
	(zgenjix[at]yahoo.com)
	-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
	domain
	-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	author's domain
	0.1 DKIM_SIGNED            Message has a DKIM or DK signature,
	not necessarily valid
	-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
	0.0 FSL_FREEMAIL_2         FSL_FREEMAIL_2
	0.0 FSL_FREEMAIL_1         FSL_FREEMAIL_1
X-Headers-End: 1SvWZk-0003V4-An
Subject: Re: [Bitcoin-development] script tests - invalid script in
	script_valid.json?
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Amir Taaki <zgenjix@yahoo.com>
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Sun, 29 Jul 2012 16:42:41 -0000

oh, bitcoin...

Thanks justmoon :D



----- Original Message -----
From: Stefan Thomas <moon@justmoon.de>
To: bitcoin-development@lists.sourceforge.net
Cc: 
Sent: Sunday, July 29, 2012 1:33 PM
Subject: Re: [Bitcoin-development] script tests - invalid script in script_valid.json?

OP_WITHIN is lower-bound-inclusive, but upper bound exclusive, so 1 0 1 WITHIN is false.


bool fValue = (bn2 <= bn1 && bn1 < bn3);

https://github.com/bitcoin/bitcoin/blob/master/src/script.cpp#L854

On 7/29/2012 6:31 PM, Amir Taaki wrote:
> Hi!
>
> Is this a valid script?
>
> ["1 0 1", "WITHIN NOT"]
>
> The first value (1) is tested to make sure it is between the lower (0) and upper (1) value. This evaluates to true, placing on the stack a single byte of [01]. NOT then inverses this to a 0 byte false value of [].
>
> What am I missing here?
>
> Thanks
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bitcoin-development mailing list
Bitcoin-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-development