public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [Bitcoin-development] script tests - invalid script in script_valid.json?
@ 2012-07-29 16:31 Amir Taaki
  2012-07-29 16:33 ` Stefan Thomas
  0 siblings, 1 reply; 9+ messages in thread
From: Amir Taaki @ 2012-07-29 16:31 UTC (permalink / raw)
  To: bitcoin-development

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-07-31 14:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-29 16:31 [Bitcoin-development] script tests - invalid script in script_valid.json? Amir Taaki
2012-07-29 16:33 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox