Versions in this module Expand all Collapse all v1 v1.1.2 Sep 16, 2021 Changes in this version + 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 menomic") + var ErrLanguageTypeIncorrect = errors.New("Language Type Incorrect") + var ErrLanguageTypeUnsupported = errors.New("Language Type Unsupported") + var ErrValidatedSeedLengthMismatch = errors.New("Seed length does not match validated seed length") + func EntropyFromMnemonic(mnemonic string, language string) ([]byte, error) + func IsMnemonicValid(mnemonic string, language string) bool + func MnemonicToByteArray(mnemonic string, language string, raw ...bool) ([]byte, error) + func NewEntropy(bitSize int) ([]byte, error) + func NewMnemonic(entropy []byte, language string) (string, error) + func NewSeed(mnemonic string, password string) []byte + func NewSeedWithErrorChecking(mnemonic string, password string, language string) ([]byte, error) + func SetWordList(language string) ([]string, error) + func SetWordMap(language string) (map[string]int, error)