Golang restore ecdsa key-pair from private key hex and generate bitcoin address
You can get test private key from here:
- http://gobittest.appspot.com/Address for uncompressed address
- https://bitcore.io/playground/#/address for compressed address
Learn more about compressed and uncompressed address:
- https://bitcoin.stackexchange.com/questions/69315/how-are-compressed-pubkeys-generated
- https://bitcointalk.org/index.php?topic=2185929.msg21939806#msg21939806
- https://bitcoin.stackexchange.com/questions/3059/what-is-a-compressed-bitcoin-key