Author

Topic: Nested P2SH (Read 1693 times)

sr. member
Activity: 384
Merit: 258
February 19, 2015, 12:44:29 PM
#5
It looks like it. IMHO, it's not smart because the miner can trivially rewrite the tx and steal the coins.
Yep. That's the problem of script puzzles without signatures.
I think it's just someone having some fun with bitcoin scripts or may be it was a game... I don't know.
Anyway, thanks for your answer.
sr. member
Activity: 467
Merit: 267
February 19, 2015, 09:57:31 AM
#4
It looks like it. IMHO, it's not smart because the miner can trivially rewrite the tx and steal the coins.
sr. member
Activity: 384
Merit: 258
February 19, 2015, 08:49:17 AM
#3
The script debugger only shows you the inner script evaluation.
It's weird because usually the script debugger shows the complete evaluation (e.g. the P2PKH output of the same transaction).
Anyway. Do you think that my understanding of the script is correct (i.e. we have a puzzle nested inside a P2SH) ?
sr. member
Activity: 467
Merit: 267
February 19, 2015, 08:29:05 AM
#2
The script debugger only shows you the inner script evaluation.
sr. member
Activity: 384
Merit: 258
February 18, 2015, 05:41:24 PM
#1
I've just found a strange script in the first input of this transaction. It looks like a PS2H inside a P2SH :

scriptPubKey = OP_HASH160 f2941f... OP_EQUAL
scriptSig = OP_PUSHDATA1 98 4c96225... 17 a914ced... 
  with a914ced... = OP_HASH160 14 cede0e... OP_EQUAL

My understanding is that :
- first, we check that hash160(a914ced...) = f2941f...
- then, we check that hash160(4c96225...) = cede0e... (the redeem script acts like a puzzle)

But the script debugger seems to have a very different interpretation which I don't understand. Do I miss something ?
Jump to: