Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: warut on October 22, 2013, 08:40:06 PM



Title: compressed/uncompressed public key addresses
Post by: warut on October 22, 2013, 08:40:06 PM
How can I tell if an address is created with a compressed or uncompressed public key?
Of course, if I know its private key, I can distinguish with the prefix (K/L or 5).


Title: Re: compressed/uncompressed public key addresses
Post by: dserrano5 on October 22, 2013, 08:58:59 PM
How can I tell if an address is created with a compressed or uncompressed public key?
Of course, if I know its private key, I can distinguish with the prefix (K/L or 5).

You can't tell the pubkey knowing only the address, so AFAIK you can't figure this out.


Title: Re: compressed/uncompressed public key addresses
Post by: DannyHamilton on October 22, 2013, 10:50:46 PM
How can I tell if an address is created with a compressed or uncompressed public key?
Of course, if I know its private key, I can distinguish with the prefix (K/L or 5).

For what purpose would you want to know?


Title: Re: compressed/uncompressed public key addresses
Post by: warut on October 23, 2013, 12:45:29 AM
How can I tell if an address is created with a compressed or uncompressed public key?
Of course, if I know its private key, I can distinguish with the prefix (K/L or 5).

You can't tell the pubkey knowing only the address, so AFAIK you can't figure this out.

Thanks, dserrano5. That's what I've expected.


Title: Re: compressed/uncompressed public key addresses
Post by: warut on October 23, 2013, 12:56:50 AM
How can I tell if an address is created with a compressed or uncompressed public key?
Of course, if I know its private key, I can distinguish with the prefix (K/L or 5).

For what purpose would you want to know?

I have both types of addresses in my wallet, but I now prefer to use the compressed ones because of the free faucets.


Title: Re: compressed/uncompressed public key addresses
Post by: dserrano5 on October 23, 2013, 06:26:22 AM
I have both types of addresses in my wallet, but I now prefer to use the compressed ones because of the free faucets.

You should always be using new addresses anyway, and recent software doesn't create uncompressed keys anymore so don't worry about this. The fact that some uncompressed keys lie in your wallet isn't any problem at all. The "problem" (increased blockchain usage) happens only when spending from those keys, but you won't do that again as long as you receive payments on new, compressed ones.


Title: Re: compressed/uncompressed public key addresses
Post by: warut on October 23, 2013, 07:06:43 AM
OK, thanks again, dserrano5.


Title: Re: compressed/uncompressed public key addresses
Post by: Dabs on October 23, 2013, 07:24:36 AM
You can tell by analyzing the public key in the block chain after it has spent something. Compressed keys are shorter. Uncompressed keys are longer. Block Explorer might show the public key I think.


Title: Re: compressed/uncompressed public key addresses
Post by: warut on October 23, 2013, 08:19:57 AM
You can tell by analyzing the public key in the block chain after it has spent something. Compressed keys are shorter. Uncompressed keys are longer. Block Explorer might show the public key I think.

Yea, I realized that too after posting the question.


Title: Re: compressed/uncompressed public key addresses
Post by: jackjack on October 23, 2013, 10:21:32 AM
Dump your wallet contents, the public keys are inside it


Title: Re: compressed/uncompressed public key addresses
Post by: Dabs on October 24, 2013, 01:07:39 AM
I think one concern is, you can't tell if you don't own it and it has not yet spent. Since the public key will not be in the blockchain. You can only tell, if it has spent any amount.