keys/hd/address.go
func BTCAddrFromPubKeyBytes(pubKeyBytes []byte) string {
	versionPrefix := btcPrefixPubKeyHash // TODO Make const or configurable
	h160 := CalcHash160(pubKeyBytes)
	h160 = append([]byte{versionPrefix}, h160...)
	checksum := CalcHash256(h160)
	b := append(h160, checksum[:4]...)
	return base58.Encode(b)
}
func BTCAddrFromPubKeyBytes(pubKeyBytes []byte) string {
	versionPrefix := btcPrefixPubKeyHash // TODO Make const or configurable
	h160 := CalcHash160(pubKeyBytes)
	h160 = append([]byte{versionPrefix}, h160...)
	checksum := CalcHash256(h160)
	b := append(h160, checksum[:4]...)
	return base58.Encode(b)
}
func BTCAddrFromPubKeyBytes ( pubKeyBytes [ ] byte ) string { versionPrefix := btcPrefixPubKeyHash // TODO Make const or configurable h160 := CalcHash160 ( pubKeyBytes ) h160 = append ( [ ] byte { versionPrefix } , h160 ... ) checksum := CalcHash256 ( h160 ) b := append ( h160 , checksum [ : 4 ] ... ) return base58 . Encode ( b ) }
// BTCAddrFromPubKeyBytes returns a B58 encoded Bitcoin mainnet address.
BTCAddrFromPubKeyBytes returns a B58 encoded Bitcoin mainnet address .