Versions in this module Expand all Collapse all v0 v0.0.1 Apr 7, 2020 v0.0.0 Apr 5, 2020 Changes in this version + const CHARSET + const Radix + var BitsPerDigit = math.Log2(float64(Radix)) + func AddressFromPublicKey(pubKey *btcec.PublicKey, mainnet bool) string + func AddressFromPublicKeyHash(pubKeyHash []byte, mainnet bool) string + func AddressToPubKeyHash(address string) (publicKeyHash string, err error) + func Base58Encode(input []byte) string + func DecodeString(s string) ([]byte, error) + func EncodeToString(src []byte) string + func MaxEncodedLen(b []byte) int + func PublicKeyHashFromPublicKey(pubKey *btcec.PublicKey) string + func PublicKeyHashFromPublicKeyStr(pubKeyStr string) (string, error) + func PublicKeyToP2PKHScript(pubkey []byte) []byte + func ValidateWalletAddress(coin string, address string) (bool, error) + type Address struct + AddressString string + PublicKeyHash string + func NewAddressFromPublicKey(pubKey string, mainnet bool) (*Address, error) + func NewAddressFromPublicKeyHash(hash []byte, mainnet bool) (*Address, error) + func NewAddressFromString(addr string) (*Address, error)