package
1.3.9
Repository: https://github.com/ndau/ndaumath.git
Documentation: pkg.go.dev

# Functions

FromOldSerialization attempts to produce an ExtendedKey from the old (pre-october-2018) format.
FromSignatureKey attempts to construct an ExtendedKey from a signature.Key instance.
GenerateSeed returns a cryptographically secure random seed that can be used as the input for the NewMaster function to generate a new master node.
NewExtendedKey returns a new instance of an extended key with the given fields.
NewMaster creates a new master node for use in creating a hierarchical deterministic key chain.

# Constants

bip32 constants are described in bip32 documentation.
bip32 constants are described in bip32 documentation.
bip32 constants are described in bip32 documentation.
bip32 constants are described in bip32 documentation.

# Variables

ErrBadChecksum describes an error in which the checksum encoded with a serialized extended key does not match the calculated value.
ErrDeriveBeyondMaxDepth describes an error in which the caller has attempted to derive more than 255 keys from a root key.
ErrDeriveHardFromPublic describes an error in which the caller attempted to derive a hardened extended key from a public key.
ErrInvalidChild describes an error in which the child at a specific index is invalid due to the derived key falling outside of the valid range for secp256k1 private keys.
ErrInvalidKeyEncoding describes an error where the provided key is not properly formatted in base32 encoding.
ErrInvalidKeyLen describes an error in which the provided serialized key is not the expected length.
ErrInvalidSeedLen describes an error in which the provided seed or seed length is not in the allowed range.
ErrNotPrivExtKey describes an error in which the caller attempted to extract a private key from a public extended key.
ErrUnknownHDKeyID describes an error where the provided id which is intended to identify the network for a hierarchical deterministic private extended key is not registered.
ErrUnusableSeed describes an error in which the provided seed is not usable due to the derived key falling outside of the valid range for secp256k1 private keys.
npvt.
npub.
tpvt.
tpub.

# Structs

ExtendedKey houses all the information needed to support a hierarchical deterministic extended key.