Versions in this module Expand all Collapse all v0 v0.1.0 Apr 22, 2020 Changes in this version + const EntropyBits128 + const EntropyBits160 + const EntropyBits192 + const EntropyBits224 + const EntropyBits256 + const WordsNum12 + const WordsNum15 + const WordsNum18 + const WordsNum21 + const WordsNum24 + var ErrBinaryString = errors.New("The specified binary string is not valid") + var ErrChecksum = errors.New("The checksum of the mnemonic is not valid") + var ErrEntropyBitLen = errors.New("The specified bit length is not valid for entropy generation") + var ErrInvalidWord = errors.New("The mnemonic contains an invalid word") + var ErrWordsNum = errors.New("The specified words number is not valid for mnemonic generation") + func GenerateEntropy(bitLen int) ([]byte, error) + type Mnemonic struct + Words string + func MnemonicFromEntropy(entropy []byte) (*Mnemonic, error) + func MnemonicFromString(mnemonic string) *Mnemonic + func MnemonicFromWordsNum(wordsNum int) (*Mnemonic, error) + func (mnemonic *Mnemonic) GenerateSeed(passphrase string) ([]byte, error) + func (mnemonic *Mnemonic) IsValid() bool + func (mnemonic *Mnemonic) ToEntropy() ([]byte, error) + func (mnemonic *Mnemonic) Validate() error