mnemonicode

package
v10.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const WordListVersion = "0.7"

WordListVersion is the version of compiled in word list.

Variables

View Source
var WordList = []string{}/* 1633 elements not displayed */

Functions

func EncodeWordList

func EncodeWordList(dst []string, src []byte) (result []string)

EncodeWordList encodes src into mnemomic words which are appended to dst. The final wordlist is returned. There will be WordsRequired(len(src)) words appeneded.

func WordsRequired

func WordsRequired(length int) int

WordsRequired returns the number of words required to encode input data of length bytes using mnomonic encoding.

Every four bytes of input is encoded into three words. If there is an extra one or two bytes they get an extra one or two words respectively. If there is an extra three bytes, they will be encoded into three words with the last word being one of a small set of very short words (only needed to encode the last 3 bits).

Types

This section is empty.

Jump to

Keyboard shortcuts

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