Versions in this module Expand all Collapse all v1 v1.0.3 Oct 15, 2021 Changes in this version type ExtendedKey + func (k *ExtendedKey) CloneWithVersion(version []byte) (*ExtendedKey, error) + func (k *ExtendedKey) Derive(i uint32) (*ExtendedKey, error) + func (k *ExtendedKey) DeriveNonStandard(i uint32) (*ExtendedKey, error) + func (k *ExtendedKey) IsAffectedByIssue172() bool v1.0.0 Oct 14, 2021 Changes in this version + const HardenedKeyStart + const MaxSeedBytes + const MinSeedBytes + const RecommendedSeedLen + var ErrBadChecksum = errors.New("bad extended key checksum") + var ErrDeriveBeyondMaxDepth = errors.New(...) + var ErrDeriveHardFromPublic = errors.New(...) + var ErrInvalidChild = errors.New("the extended key at this index is invalid") + var ErrInvalidKeyLen = errors.New(...) + var ErrInvalidSeedLen = fmt.Errorf(..., MinSeedBytes * 8, MaxSeedBytes * 8) + var ErrNotPrivExtKey = errors.New(...) + var ErrUnusableSeed = errors.New("unusable seed") + func GenerateSeed(length uint8) ([]byte, error) + type ExtendedKey struct + func NewExtendedKey(version, key, chainCode, parentFP []byte, depth uint8, childNum uint32, ...) *ExtendedKey + func NewKeyFromString(key string) (*ExtendedKey, error) + func NewMaster(seed []byte, net *chaincfg.Params) (*ExtendedKey, error) + func (k *ExtendedKey) Address(net *chaincfg.Params) (*whvdutil.AddressPubKeyHash, error) + func (k *ExtendedKey) ChainCode() []byte + func (k *ExtendedKey) Child(i uint32) (*ExtendedKey, error) + func (k *ExtendedKey) ChildIndex() uint32 + func (k *ExtendedKey) Depth() uint8 + func (k *ExtendedKey) ECPrivKey() (*btcec.PrivateKey, error) + func (k *ExtendedKey) ECPubKey() (*btcec.PublicKey, error) + func (k *ExtendedKey) IsForNet(net *chaincfg.Params) bool + func (k *ExtendedKey) IsPrivate() bool + func (k *ExtendedKey) Neuter() (*ExtendedKey, error) + func (k *ExtendedKey) ParentFingerprint() uint32 + func (k *ExtendedKey) SetNet(net *chaincfg.Params) + func (k *ExtendedKey) String() string + func (k *ExtendedKey) Version() []byte + func (k *ExtendedKey) Zero()