Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBip32IsNil = errors.New("bip32 key is nil")
)
View Source
var (
PrivateWalletVersion, _ = hex.DecodeString("0488ADE4")
)
Functions ¶
func CountWords ¶
CountWords counts the number of words in a mnemonic phrase, handling leading/trailing whitespace and multiple spaces between words. This implementation is optimized to avoid memory allocations.
Types ¶
type Bip85 ¶
type Bip85 struct {
// contains filtered or unexported fields
}
Bip85 wraps a BIP32 master key for BIP85 derivations.
func NewBip85FromBip32Key ¶ added in v0.1.1
NewBip85FromBip32Key allows direct import of an existing BIP-32 key
func NewBip85FromMnemonic ¶
NewBip85FromMnemonic creates a new Bip85 instance from a BIP39 mnemonic. This implementation only supports the English wordlist.
func NewBip85FromXPRVString ¶ added in v0.1.1
NewBip85FromXPRVString allows direct import of an existing BIP-32 xpriv string.
func (*Bip85) DeriveToMnemonic ¶
func (*Bip85) GetMasterKey ¶ added in v0.1.2
type DerivationType ¶
type DerivationType uint
const Mnemonic DerivationType = 39
const Xprv DerivationType = 32
Click to show internal directories.
Click to hide internal directories.