mnemonic

package
Version: v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DictSize = 1626

Variables

View Source
var (
	ChineseSimplified = NewDict(chineseSimplifiedTable, 1)
	Dutch             = NewDict(dutchTable, 4)
	English           = NewDict(englishTable, 3)
	Esperanto         = NewDict(esperantoTable, 4)
	Spanish           = NewDict(spanishTable, 4)
	French            = NewDict(frenchTable, 4)
	German            = NewDict(germanTable, 4)
	Italian           = NewDict(italianTable, 4)
	Japanese          = NewDict(japaneseTable, 3)
	Lojban            = NewDict(lojbanTable, 4)
	Portuguese        = NewDict(portugueseTable, 4)
	Russian           = NewDict(russianTable, 4)
)

Functions

This section is empty.

Types

type Dict

type Dict struct {
	UniquePrefixLength int
	Table              *[DictSize]string
	ReversedTable      map[string]int
}

Dict is a dictionary for mnemonic seed.

func NewDict

func NewDict(table *[DictSize]string, prefixLen int) *Dict

func (*Dict) Encode

func (d *Dict) Encode(key *[32]byte) *[25]string

Encode encodes a key to mnemonic seeds.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL