Bitcoin Forum
December 06, 2016, 08:29:57 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] possible hack, in the scripting. drops the public key hash.  (Read 799 times)
kokjo
Legendary
*
Offline Offline

Activity: 1050

You are WRONG!


View Profile
July 10, 2011, 03:14:56 PM
 #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
1481012997
Hero Member
*
Offline Offline

Posts: 1481012997

View Profile Personal Message (Offline)

Ignore
1481012997
Reply with quote  #2

1481012997
Report to moderator
1481012997
Hero Member
*
Offline Offline

Posts: 1481012997

View Profile Personal Message (Offline)

Ignore
1481012997
Reply with quote  #2

1481012997
Report to moderator
1481012997
Hero Member
*
Offline Offline

Posts: 1481012997

View Profile Personal Message (Offline)

Ignore
1481012997
Reply with quote  #2

1481012997
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481012997
Hero Member
*
Offline Offline

Posts: 1481012997

View Profile Personal Message (Offline)

Ignore
1481012997
Reply with quote  #2

1481012997
Report to moderator
1481012997
Hero Member
*
Offline Offline

Posts: 1481012997

View Profile Personal Message (Offline)

Ignore
1481012997
Reply with quote  #2

1481012997
Report to moderator
1481012997
Hero Member
*
Offline Offline

Posts: 1481012997

View Profile Personal Message (Offline)

Ignore
1481012997
Reply with quote  #2

1481012997
Report to moderator
kokjo
Legendary
*
Offline Offline

Activity: 1050

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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!