Author

Topic: Bitcoin scripting puzzle from the MIT Expo (Read 1205 times)

legendary
Activity: 1302
Merit: 1008
Core dev leaves me neg feedback #abuse #political
July 18, 2015, 05:07:40 PM
#6
you have to be a real expert in Bitcoin to even understand this.  non Bitcoin nerds need not apply.
newbie
Activity: 20
Merit: 1

I don't think you can spend the second output of the transaction. The script is:

OP_HASH256 OP_HASH256 0 ffffffffffffffffffffffffffffffffffffffffffff OP_WITHIN

It seems the sender wanted a problem similar to mining: find a string with a low hash and get the reward.

But OP_WITHIN and all the arithmetic operators only work for inputs of up to 4 bytes. Quoting from
https://en.bitcoin.it/wiki/Script#Arithmetic
"If any input value for any of these commands is longer than 4 bytes, the script must abort and fail."

ffffffffffffffffffffffffffffffffffffffffffff has 22 bytes. OP_WITHIN will cause the script to fail, no matter what inputs you choose. These bitcoins are irredeemable.
legendary
Activity: 2114
Merit: 1040
A Great Time to Start Something!
Where do you start?
Can someone give a clue what kind of puzzle this is?
Scripting.....what?
Jump to: