Bitcoin Forum
November 19, 2018, 02:48:42 PM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to know if btc address is compressed or uncompressed ?  (Read 440 times)
btctousd81
Sr. Member
****
Offline Offline

Activity: 392
Merit: 252


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

1542638922
Hero Member
*
Offline Offline

Posts: 1542638922

View Profile Personal Message (Offline)

Ignore
1542638922
Reply with quote  #2

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

Activity: 784
Merit: 952

<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

btctousd81
Sr. Member
****
Offline Offline

Activity: 392
Merit: 252


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: 2198
Merit: 1385



View Profile
October 13, 2017, 12:30:25 PM
 #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:  

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!