Versions in this module Expand all Collapse all v1 v1.0.1 Feb 26, 2021 v1.0.0 Feb 26, 2021 Changes in this version + const FirstHardenedChild + const PublicKeyCompressedLength + var BitcoinBase58Encoding = basen.NewEncoding("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz") + var ErrHardnedChildPublicKey = errors.New("can't create hardened child for public key") + var ErrInvalidChecksum = errors.New("checksum doesn't match") + var ErrInvalidPrivateKey = errors.New("invalid private key") + var ErrInvalidPublicKey = errors.New("invalid public key") + var ErrSerializedKeyWrongSize = errors.New("serialized keys should by exactly 82 bytes") + var PrivateWalletVersion = hex.DecodeString("0488ADE4") + var PublicWalletVersion = hex.DecodeString("0488B21E") + type Key struct + ChainCode []byte + ChildNumber []byte + Depth byte + FingerPrint []byte + IsPrivate bool + Key []byte + Version []byte + func B58Deserialize(data string) (*Key, error) + func Deserialize(data []byte) (*Key, error) + func NewMasterKey(seed []byte) (*Key, error) + func (key *Key) B58Serialize() string + func (key *Key) NewChildKey(childIdx uint32) (*Key, error) + func (key *Key) PublicKey() *Key + func (key *Key) Serialize() ([]byte, error) + func (key *Key) String() string