Bitcoin Forum
November 17, 2024, 03:14:29 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: compressed ad uncompressed adresses  (Read 86 times)
Alicatraz (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 10


View Profile
January 09, 2022, 01:08:11 AM
 #1

Here is a dumb question :
when I look up my public address on Ian Colemans key compression site , the resulting addresses ( compressed and uncompressed ) yield different balances ,
where the uncompressed address has funds , and the compressed shows 0 balance
is this normal ?
nc50lc
Legendary
*
Offline Offline

Activity: 2604
Merit: 6416


Self-proclaimed Genius


View Profile
January 09, 2022, 03:10:52 AM
Merited by NeuroticFish (2), pooya87 (2)
 #2

That's certainly normal (since it's IanColeman's compression tool, it must be P2PKH).
Although both correspond to the same Private Key, Bitcoins aren't stored using the private key but through a "locking script" which is represented to you by an address.
So simply by knowing that the compressed and uncompressed addresses are different than each other explains why each has different balances because the bitcoins are locked using different scripts.

The HASH160 which is part of the locking script is derived from the public key.
Compressed and uncompressed public keys are different from each other (as you can seed in the tool) so both wont produce the same HASH160 result,
thus, different locking scripts for the compressed and uncompressed.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
odolvlobo
Legendary
*
Offline Offline

Activity: 4508
Merit: 3417



View Profile
January 09, 2022, 08:33:03 AM
Merited by NeuroticFish (1)
 #3

In simplest terms, a public key can have two forms: compressed and uncompressed. An address is a hash of a public key, so you can have two different addresses from the same private key, one is a hash of the compressed public key and the other is a hash of the uncompressed private key. They are distinct addresses and are not interchangeable.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
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!