Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Last11BitsMask = big.NewInt(2047) RightShift11BitsDivider = big.NewInt(2048) BigOne = big.NewInt(1) BigTwo = big.NewInt(2) )
View Source
var EnglishWordList = strings.Split(strings.TrimSpace(englishWordList), "\n")
Language-specific wordlists
View Source
var WordList = EnglishWordList
The wordlist to use
Functions ¶
func NewEntropy ¶
NewEntropy will create random entropy bytes so long as the requested size bitSize is an appropriate size.
func NewMnemonic ¶
NewMnemonic will return a string consisting of the mnemonic words for the given entropy. If the provide entropy is invalid, an error will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.