Versions in this module Expand all Collapse all v1 v1.0.1 Jun 17, 2022 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") + func NewSeed() ([]byte, error) + 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