bip39

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

BIP 39: Mnemonic Code for Generating Deterministic Keys

Specification

This BIP describes the implementation of a mnemonic code or mnemonic sentence -- a group of easy to remember words -- for the generation of deterministic wallets.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var English = NewWordList(
	strings.Split(
		strings.TrimSpace(english),
		"\n",
	),
)

Functions

This section is empty.

Types

type Entropy

type Entropy []byte

func NewEntropy

func NewEntropy(ent int) (Entropy, error)

func (Entropy) Valid

func (e Entropy) Valid() error

type Mnemonic

type Mnemonic []string

type Seed

type Seed []byte

func NewSeed

func NewSeed(mnemonic Mnemonic, password string) Seed

type WordList

type WordList struct {
	// contains filtered or unexported fields
}

func NewWordList

func NewWordList(list []string) WordList

func (WordList) Get

func (l WordList) Get(w string) (int, bool)

func (WordList) List

func (l WordList) List() []string

func (WordList) NewMnemonic

func (l WordList) NewMnemonic(ent Entropy) (Mnemonic, error)

Jump to

Keyboard shortcuts

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