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 ) 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 To: "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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2012 16:42:41 -0000 oh, bitcoin... Thanks justmoon :D ----- Original Message ----- From: Stefan Thomas 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