Documentation ¶
Overview ¶
CS = ENT / 32 MS = (ENT + CS) / 11 the initial entropy length (ENT) mnemonic sentence (MS) checksum bits length (CS) | ENT | CS | ENT+CS | MS | +-------+----+--------+------+ | 128 | 4 | 132 | 12 | | 160 | 5 | 165 | 15 | | 192 | 6 | 198 | 18 | | 224 | 7 | 231 | 21 | | 256 | 8 | 264 | 24 |
Index ¶
- func NewSeed(mnecmonic, passphrase string) []byte
- type DictLang
- type Mnemonic
- func (m *Mnemonic) CreateRandom(wordLen int, passpharse string) (*Mnemonic, error)
- func (m *Mnemonic) FromEntropy(ent []byte, passpharse string) (*Mnemonic, error)
- func (m *Mnemonic) FromMnemonic(mnemonic string, passpharse string) (*Mnemonic, error)
- func (m *Mnemonic) IsValid(mnemonic string) bool
- func (m *Mnemonic) Mnemonic() string
- func (m *Mnemonic) Passpharse() string
- func (m *Mnemonic) Seed() []byte
- type WordListInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mnemonic ¶
type Mnemonic struct { Language DictLang WordList WordListInterface // contains filtered or unexported fields }
func NewMnemonic ¶
func (*Mnemonic) CreateRandom ¶
func (*Mnemonic) FromEntropy ¶
func (*Mnemonic) FromMnemonic ¶
func (*Mnemonic) Passpharse ¶
Click to show internal directories.
Click to hide internal directories.