How to uncompress a compressed private key?

4

1

So I have a compressed private key. Is it possible to get the uncompressed version of it? If yes, how? Examples in Javascript would be much appreciated.

vinhboy

Posted 2013-11-25T01:53:22.027

Reputation: 161

Answers

2

Ok I answered my own question. From: https://github.com/pointbiz/bitaddress.org/blob/master/src/bitcoinjs-lib.eckey.js#L186-L222

bytes = Bitcoin.Base58.decode(compressed_or_uncompressed_private_key);

After some processing, this bytes-array can then be re-encoded into a compressed or uncompressed private key.

vinhboy

Posted 2013-11-25T01:53:22.027

Reputation: 161