Author

Topic: [SOLVED] possible hack, in the scripting. drops the public key hash. (Read 958 times)

legendary
Activity: 1050
Merit: 1000
You are WRONG!
legendary
Activity: 1050
Merit: 1000
You are WRONG!
example:
sigscript: OP_1 OP_1 OP_PUSHDATA1 21
explanation:
OP_1 OP_1: to fool OP_EQUALVERIFY
OP_PUSHDATA1 21: the next 21 bytes of data is to be pushed, its all the "OP_DUP OP_HASH160 xxxxxxxx..."

scriptpubkey: OP_DUP OP_HASH160 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx75 OP_EQUALVERIFY OP_CHECKSIG
explanation:
0x75 is 117 in decimal, and also the OP_DROP opcode.
so when this both is put togther:

OP_1 OP_1 OP_PUSHDATA1 21 OP_DUP OP_HASH160 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx75 OP_EQUALVERIFY OP_CHECKSIG

OP_1 OP_1 <21 bytes of data> OP_DROP OP_EQUALVERIFY OP_CHECKSIG

then the public key is indifferent. and you could put a bogus in instead.

will this work?

im worried.
Jump to: