Documentation ¶
Overview ¶
Package bip39 A golang implementation of the BIP0039 spec for mnemonic seeds
Index ¶
- Variables
- func IsMnemonicValid(mnemonic string) bool
- func MnemonicToByteArray(mnemonic string) ([]byte, error)
- func NewEntropy(bitSize int) ([]byte, error)
- func NewMnemonic(entropy []byte, lang int32) (string, error)
- func NewSeed(mnemonic string, password string) []byte
- func NewSeedWithErrorChecking(mnemonic string, password string) ([]byte, error)
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) )
Some bitwise operands for working with big.Ints
View Source
var ChineseWordList = strings.Split(chineseWordList, "\n")
ChineseWordList 中文单词列表
View Source
var EnglishWordList = strings.Split(englishWordList, "\n")
EnglishWordList 英文单词列表
Functions ¶
func MnemonicToByteArray ¶
MnemonicToByteArray 转换
func NewMnemonic ¶
NewMnemonic lang=0 english word lang=1 chinese word
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.