create-bitcoin-address-from-ecdsa-publickey example
Create a bitcoin address from your ecdsa public key
using the crypto/ecdsa
standard package.
Table of Contents,
GitHub Webpage
PREREQUISITES
go get -v -u github.com/btcsuite/btcutil/base58
go get -v -u golang.org/x/crypto/ripemd160
OVERVIEW
This code is broken up as follows,
- generateECDSAKeys()
- encodeKeys()
- decodeKeys()
- generateBitcoinAddress()
- hashPublicKey()
- checksumKeyHash()
- encodeKeyHash()
This illustration may help,
RUN
go run create-bitcoin-address-from-ecdsa-publickey.go
A website I used to test my code
here.