public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Amir Taaki <zgenjix@yahoo.com>
To: "bitcoin-development@lists.sourceforge.net"
	<bitcoin-development@lists.sourceforge.net>
Subject: [Bitcoin-development] script tests - invalid script in script_valid.json?
Date: Sun, 29 Jul 2012 09:31:06 -0700 (PDT)	[thread overview]
Message-ID: <1343579466.30862.YahooMailNeo@web121004.mail.ne1.yahoo.com> (raw)

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



             reply	other threads:[~2012-07-29 16:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-29 16:31 Amir Taaki [this message]
2012-07-29 16:33 ` [Bitcoin-development] script tests - invalid script in script_valid.json? Stefan Thomas
2012-07-29 16:42   ` Amir Taaki
2012-07-29 17:35     ` Stefan Thomas
2012-07-29 18:48       ` Jeff Garzik
2012-07-30  0:52       ` Gavin Andresen
2012-07-30 14:41         ` Amir Taaki
2012-07-31 14:26         ` Pieter Wuille
2012-07-31 14:39         ` Matt Corallo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343579466.30862.YahooMailNeo@web121004.mail.ne1.yahoo.com \
    --to=zgenjix@yahoo.com \
    --cc=bitcoin-development@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox