Documentation ¶
Overview ¶
Package mnemonic provides functions to generate mnemonic phrases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWordsNumberInvalid is returned when trying to generate mnemonic with invalid words number. ErrWordsNumberInvalid = errors.New("mnemonic words number must be [12, 24] and a multiple of 3") ErrInvalidMnemonic = errors.New("invalid mnemonic") )
Functions ¶
func FromEntropy ¶
FromEntropy will return a mnemonic string for the given hex-encoded entropy.
func Generate ¶
Generate will return a mnemonic string constains [wordsNum] words using random entropy.
func GetBip32ExtendedKey ¶
GetBip32ExtendedKey derives bip32.Key with specify mnemonic and path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.