mnemonic

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 11 Imported by: 0

README

Pack mnemonic

Use:

go get "github.com/evgeny-klyopov/go-pack-mnemonic"

Example run

go run examples/pack.go 

Result

Pack:
Error: <nil>
Phrase: able 1644 awful      crisp collect claim educate can ball toy wealth spell window young reveal zone review kit decorate delay defy air pear brave
Lang: English
MnemonicOriginal: [able 1644 awful crisp collect claim educate can ball toy wealth spell window young reveal zone review kit decorate delay defy air pear brave]
Base10: 216440133041303640333056402630143184319851673201120421475204614760983045604630461004312960218
Base36: 39fm2qxfr0t4w4mb3ao815pjlpw79kajluui4f5c578ebyhmkmplvyfmz6ca
Base62: 8nHryQVSeJ9lVIHMh0gdPl5ILtIaEzpJamQ8E6bPE3a290bcN3TA
Mnemonic: [able snow awful crisp collect claim educate can ball toy wealth spell window young reveal zone review kit decorate delay defy air pear brave]
MnemonicShort (max 4 letters): [able snow awfu cris coll clai educ can ball toy weal spel wind youn reve zone revi kit deco dela defy air pear brav]
NumberMnemonic: [0002 1644 0133 0413 0364 0333 0564 0263 0143 1843 1985 1673 2011 2042 1475 2046 1476 0983 0456 0463 0461 0043 1296 0218]

UnPack:
Error: <nil>
Phrase: 216440133041303640333056402630143184319851673201120421475204614760983045604630461004312960218
Lang: English
MnemonicOriginal: []
Base10: 216440133041303640333056402630143184319851673201120421475204614760983045604630461004312960218
Base36: 39fm2qxfr0t4w4mb3ao815pjlpw79kajluui4f5c578ebyhmkmplvyfmz6ca
Base62: 8nHryQVSeJ9lVIHMh0gdPl5ILtIaEzpJamQ8E6bPE3a290bcN3TA
Mnemonic: [able snow awful crisp collect claim educate can ball toy wealth spell window young reveal zone review kit decorate delay defy air pear brave]
MnemonicShort (max 4 letters): [able snow awfu cris coll clai educ can ball toy weal spel wind youn reve zone revi kit deco dela defy air pear brav]
NumberMnemonic: [0002 1644 0133 0413 0364 0333 0564 0263 0143 1843 1985 1673 2011 2042 1475 2046 1476 0983 0456 0463 0461 0043 1296 0218]

Error: <nil>
Phrase: 39fm2qxfr0t4w4mb3ao815pjlpw79kajluui4f5c578ebyhmkmplvyfmz6ca
Lang: English
MnemonicOriginal: []
Base10: 216440133041303640333056402630143184319851673201120421475204614760983045604630461004312960218
Base36: 39fm2qxfr0t4w4mb3ao815pjlpw79kajluui4f5c578ebyhmkmplvyfmz6ca
Base62: 8nHryQVSeJ9lVIHMh0gdPl5ILtIaEzpJamQ8E6bPE3a290bcN3TA
Mnemonic: [able snow awful crisp collect claim educate can ball toy wealth spell window young reveal zone review kit decorate delay defy air pear brave]
MnemonicShort (max 4 letters): [able snow awfu cris coll clai educ can ball toy weal spel wind youn reve zone revi kit deco dela defy air pear brav]
NumberMnemonic: [0002 1644 0133 0413 0364 0333 0564 0263 0143 1843 1985 1673 2011 2042 1475 2046 1476 0983 0456 0463 0461 0043 1296 0218]

Error: <nil>
Phrase: 8nHryQVSeJ9lVIHMh0gdPl5ILtIaEzpJamQ8E6bPE3a290bcN3TA
Lang: English
MnemonicOriginal: []
Base10: 216440133041303640333056402630143184319851673201120421475204614760983045604630461004312960218
Base36: 39fm2qxfr0t4w4mb3ao815pjlpw79kajluui4f5c578ebyhmkmplvyfmz6ca
Base62: 8nHryQVSeJ9lVIHMh0gdPl5ILtIaEzpJamQ8E6bPE3a290bcN3TA
Mnemonic: [able snow awful crisp collect claim educate can ball toy wealth spell window young reveal zone review kit decorate delay defy air pear brave]
MnemonicShort (max 4 letters): [able snow awfu cris coll clai educ can ball toy weal spel wind youn reve zone revi kit deco dela defy air pear brav]
NumberMnemonic: [0002 1644 0133 0413 0364 0333 0564 0263 0143 1843 1985 1673 2011 2042 1475 2046 1476 0983 0456 0463 0461 0043 1296 0218]

Documentation

Index

Constants

View Source
const Base10 = 10
View Source
const Base36 = 36
View Source
const Base62 = 62
View Source
const ChineseSimplified = "ChineseSimplified"
View Source
const ChineseTraditional = "ChineseTraditional"
View Source
const Czech = "Czech"
View Source
const English = "English"
View Source
const French = "French"
View Source
const Italian = "Italian"
View Source
const Japanese = "Japanese"
View Source
const Korean = "Korean"
View Source
const Spanish = "Spanish"

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter interface {
	GetMnemonic() []string
	GetMnemonicShort() []string
	GetNumberMnemonic() []string
	Get(base int) string
	// contains filtered or unexported methods
}

type Packer

type Packer interface {
	Pack() (Converter, error)
	GetPhrase() string
	GetMnemonicOriginal() []string
	GetLang() string
	UnPack(base int) (Converter, error)
	// contains filtered or unexported methods
}

func New

func New(phrase string, lang string) Packer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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