Versions in this module Expand all Collapse all v1 v1.0.0 Jul 13, 2026 Changes in this version + const APISchemaVersion + const HardenedOffset + var ErrHardenedPublic = errors.New("extended public keys can derive only non-hardened children") + var ErrInvalidExtended = errors.New("invalid extended key") + var ErrInvalidKey = errors.New("invalid BIP32 key material") + var ErrInvalidMnemonic = errors.New("invalid BIP39 English mnemonic") + var ErrInvalidSeed = errors.New("seed must be between 16 and 64 bytes") + func SerializeExtendedKey(parsed ParsedExtendedKey, private bool, formatName string) (string, error) + type AccountPrivateKey struct + Chain string + Curve string + ExtendedPrivateKey *string + Format *string + Path string + PrivateKeyHex string + PublicKeyHex string + SchemaVersion int + func DeriveAccountPrivateKey(source Source, options Options) (AccountPrivateKey, error) + type AccountPublicKey struct + Chain string + Curve string + ExtendedPublicKey string + Format string + Path string + PublicKeyHex string + SchemaVersion int + func DeriveAccountPublicKey(source Source, options Options) (AccountPublicKey, error) + type Chain struct + CoinType uint32 + Curve string + DefaultFormat string + DefaultScriptType string + HRP string + ID string + Name string + P2PKH []byte + P2SH []byte + Symbol string + func SupportedChains() []Chain + type DerivedAddress struct + Account uint32 + Address string + Chain string + Change uint32 + Curve string + Index uint32 + Path string + PublicKeyHex string + SchemaVersion int + ScriptType string + func DeriveAddress(source Source, options Options) (DerivedAddress, error) + func DeriveAddressFromExtendedPublicKey(value, chainID string, change, index uint32, script string) (DerivedAddress, error) + func DeriveAddresses(source Source, options Options, start, count uint32) ([]DerivedAddress, error) + type Format struct + Name string + PrivateVersion uint32 + PublicVersion uint32 + Purpose uint32 + ScriptType string + type NodeResult struct + ChainCodeHex string + ChildNumber uint32 + Curve string + Depth byte + Path string + PublicKeyHex string + SchemaVersion int + func DeriveNode(source Source, curve, path string) (NodeResult, error) + type Options struct + Account uint32 + Chain string + Change uint32 + Format string + Index uint32 + Path string + ScriptType string + type ParsedExtendedKey struct + ChainCodeHex string + ChildNumber uint32 + Depth byte + Format string + IsPrivate bool + ParentFingerprintHex string + PublicKeyHex string + Value string + VersionHex string + func ParseExtendedKey(value string) (ParsedExtendedKey, error) + type Source struct + Mnemonic string + Passphrase string + Seed []byte + func MnemonicSource(words, passphrase string) Source + func SeedSource(seed []byte) Source