Bitcoin Forum
May 08, 2024, 10:09:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] possible hack, in the scripting. drops the public key hash.  (Read 958 times)
kokjo (OP)
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
July 10, 2011, 03:14:56 PM
Last edit: July 10, 2011, 03:38:52 PM by kokjo
 #1

example:
sigscript: <sig> <pub> 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:

<sig> <pub> OP_1 OP_1 OP_PUSHDATA1 21 OP_DUP OP_HASH160 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx75 OP_EQUALVERIFY OP_CHECKSIG

<sig> <pub> 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.

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
1715206164
Hero Member
*
Offline Offline

Posts: 1715206164

View Profile Personal Message (Offline)

Ignore
1715206164
Reply with quote  #2

1715206164
Report to moderator
"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715206164
Hero Member
*
Offline Offline

Posts: 1715206164

View Profile Personal Message (Offline)

Ignore
1715206164
Reply with quote  #2

1715206164
Report to moderator
kokjo (OP)
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
July 10, 2011, 03:40:52 PM
 #2

FALSE ALARM.
https://github.com/bitcoin/bitcoin/blob/master/src/script.cpp#L1152

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!