mnemonicode

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 appended.

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