Versions in this module Expand all Collapse all v1 v1.0.1 Feb 26, 2021 v1.0.0 Feb 26, 2021 Changes in this version + var English = strings.Split(strings.TrimSpace(english), "\n") + var ErrChecksumIncorrect = errors.New("checksum incorrect") + var ErrEntropyLengthInvalid = errors.New("entropy length must be [128, 256] and a multiple of 32") + var ErrInvalidMnemonic = errors.New("invalid mnemonic") + var ErrValidatedSeedLengthMismatch = errors.New("seed length does not match validated seed length") + func EntropyFromMnemonic(mnemonic string) ([]byte, error) + func GetWordIndex(word string) (int, bool) + func GetWordList() []string + func IsMnemonicValid(mnemonic string) bool + func MnemonicToByteArray(mnemonic string, raw ...bool) ([]byte, error) + func NewEntropy(bitSize int) ([]byte, error) + func NewMnemonic(entropy []byte) (string, error) + func NewSeed(mnemonic string, password string) []byte + func NewSeedWithErrorChecking(mnemonic string, password string) ([]byte, error) + func SetWordList(list []string)