Documentation
¶
Index ¶
Constants ¶
View Source
const English = 0
View Source
const Mnemonic = 39
View Source
const Xprv = 32
Variables ¶
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 NewBip85FromMnemonic ¶
NewBip85FromMnemonic creates a new Bip85 instance from a BIP39 mnemonic. This implementation only supports the English wordlist.
func NewBip85FromXPRV ¶
NewBip85FromXPRV allows direct import of an existing BIP-32 root key.
func (*Bip85) DeriveToMnemonic ¶
type DerivationType ¶
type DerivationType uint
type MnemonicLanguage ¶
type MnemonicLanguage uint
Click to show internal directories.
Click to hide internal directories.