Bitcoin Forum
May 07, 2024, 12:17:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to know if btc address is compressed or uncompressed ?  (Read 636 times)
btctousd81 (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 270


View Profile WWW
October 13, 2017, 04:36:55 AM
 #1

lets say i have these addresses

1Az2dypSbg7oNv37mqao1T8vYJgQG1p7Be
1Esg276vGGT6LGxY7dEHvYLsp2efw6DgdX
1CS5EVQztBXuoiq9xgD3CkANngFePeWNnN


how can i check which one is compresed and which are uncompressed ?

thanks

1715041052
Hero Member
*
Offline Offline

Posts: 1715041052

View Profile Personal Message (Offline)

Ignore
1715041052
Reply with quote  #2

1715041052
Report to moderator
1715041052
Hero Member
*
Offline Offline

Posts: 1715041052

View Profile Personal Message (Offline)

Ignore
1715041052
Reply with quote  #2

1715041052
Report to moderator
1715041052
Hero Member
*
Offline Offline

Posts: 1715041052

View Profile Personal Message (Offline)

Ignore
1715041052
Reply with quote  #2

1715041052
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715041052
Hero Member
*
Offline Offline

Posts: 1715041052

View Profile Personal Message (Offline)

Ignore
1715041052
Reply with quote  #2

1715041052
Report to moderator
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
October 13, 2017, 04:54:56 AM
 #2

As far as I know, you can't start from the Address and work out if it is compressed/uncompressed. The address is the result of a one way hash, so you can't tell if it was created from a compressed or uncompressed public key.

You'd need to start with the private key and go from there... Have a play with https://www.bitaddress.org/ Generate a new private key and then put it into the "Wallet Details" tab... you'll see every private key generates a compressed and an uncompressed address.


You might be able to tell by looking at previous transactions involving those addresses on the blockchain and inspecting the input sizes... ~148 bytes = compressed... ~180 bytes = uncompressed

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
btctousd81 (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 270


View Profile WWW
October 13, 2017, 05:20:08 AM
 #3

As far as I know, you can't start from the Address and work out if it is compressed/uncompressed. The address is the result of a one way hash, so you can't tell if it was created from a compressed or uncompressed public key.

You'd need to start with the private key and go from there... Have a play with https://www.bitaddress.org/ Generate a new private key and then put it into the "Wallet Details" tab... you'll see every private key generates a compressed and an uncompressed address.


You might be able to tell by looking at previous transactions involving those addresses on the blockchain and inspecting the input sizes... ~148 bytes = compressed... ~180 bytes = uncompressed

okie., thats one way to do it.,

so practically its a dead end. thanks for your input.


DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4623



View Profile
October 13, 2017, 12:30:25 PM
Merited by ABCbits (1)
 #4

You'd need to start with the private key and go from there...

You don't need the private key to determine if the address is compressed or not.  You only need the public key.  Hash both the compressed and uncompressed versions of the public key (it is easy to convert between them) and see which one matches.

You might be able to tell by looking at previous transactions involving those addresses on the blockchain and inspecting the input sizes... ~148 bytes = compressed... ~180 bytes = uncompressed

That method would work, however, the input scripts contain the public key. As long as bitcoins that had previously been received with that address have been spent, you could just look at the public key and see if it is compressed or not.
Mrhowie
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 14, 2017, 04:57:10 AM
 #5

As far as I know, you can't start from the Address and work out if it is compressed/uncompressed. The address is the result of a one way hash, so you can't tell if it was created from a compressed or uncompressed public key.

You'd need to start with the private key and go from there... Have a play with https://www.bitaddress.org/ Generate a new private key and then put it into the "Wallet Details" tab... you'll see every private key generates a compressed and an uncompressed address.


You might be able to tell by looking at previous transactions involving those addresses on the blockchain and inspecting the input sizes... ~148 bytes = compressed... ~180 bytes = uncompressed

Thank you for the help Cheesy
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!