Bitcoin Forum
May 24, 2024, 04:24:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Address & key-pair overlaps  (Read 508 times)
Automatic (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 105


View Profile
February 21, 2014, 05:51:05 PM
 #1

Address is 160 bits, public key is 256 bits (Compressed public keys are 33 bytes[...]. The older uncompressed keys are 65 bytes (Source)), correct? This means there's obvious duplication.

Now, question is:-
If someone receives money on address A, then uses keypair B to spend the money on address A, then receives some more money to address A, can keypair C (Assuming RIPEMD-160 of the public key hashed to the same thing) then spend the money on address A, even though keypair B has already been 'registered' in the blockchain? Is there any validation? Or, is it simply "looks good, let's go"?

Obviously, this isn't a threat as the chances are insanely low, but, just wondering.

Please ask for a signed message from my on-site Bitcoin address (Check my profile) before doing any offsite trades with me.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3402
Merit: 4656



View Profile
February 21, 2014, 08:24:10 PM
 #2

Address is 160 bits, public key is 256 bits (Compressed public keys are 33 bytes[...]. The older uncompressed keys are 65 bytes (Source)), correct? This means there's obvious duplication.

Now, question is:-
If someone receives money on address A, then uses keypair B to spend the money on address A, then receives some more money to address A, can keypair C (Assuming RIPEMD-160 of the public key hashed to the same thing) then spend the money on address A

Yes.

, even though keypair B has already been 'registered' in the blockchain? Is there any validation?

Only that the public key hashes appropriately and that the signature matches the public key supplied.

Or, is it simply "looks good, let's go"?

Exactly.
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!