Documentation ¶
Overview ¶
Package bip39 implements the non-generation portions of BIP-39 "Mnemonic code for generating deterministic keys".
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAmbiguous = fmt.Errorf("bip39: ambiguous mnemonic word")
ErrAmbiguous is the error returned when a mnemonic word is ambiguous.
Functions ¶
func ExpandWord ¶
ExpandWord expands a potentially abreviated mnemonic word to the full word.
func GetEntropyBits ¶
GetEntropyBits returns the amount of entropy in a given number of words, in bits.
func MnemonicToSeed ¶
MnemonicToSeed converts from a mnemonic to a seed. Note that the mnemonic should be validated and fixed-up with ValidateAndExpandMnemonic prior to being converted to a seed.
func ValidateAndExpandMnemonic ¶
ValidateAndExpandMnemonic expands abbreviated 4-character prefixes to their full words, validates the mnemonic for correctness, and returns the full mnemonic suitable for seed derivation.
Types ¶
This section is empty.