mwords

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Count = 2048

Variables

This section is empty.

Functions

func EntropyFromMnemonic

func EntropyFromMnemonic(ms MnemonicSentence) ([]byte, error)

func EntropyFromString

func EntropyFromString(sentence string) ([]byte, error)

func IsValidWord

func IsValidWord(word string) bool

func RandomWords

func RandomWords(n uint) []string

Types

type MnemonicSentence

type MnemonicSentence []string

func EntropyToMnemonic

func EntropyToMnemonic(entropy []byte) (MnemonicSentence, error)

func MnemonicFromString

func MnemonicFromString(sentence string) (MnemonicSentence, error)

func (MnemonicSentence) IsValid

func (ms MnemonicSentence) IsValid() bool

func (MnemonicSentence) String

func (ms MnemonicSentence) String() string

Jump to

Keyboard shortcuts

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