mnemonic

package module
v0.0.0-...-69cbf72 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: Unlicense Imports: 13 Imported by: 0

README

go-mnemonic

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

BIP Paper

See https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki for full specification

Usage

import "github.com/vedhavyas/go-mnemonic"
func GenerateEntropy
func GenerateEntropy(strength int) ([]byte, error)

GenerateEntropy returns entropy with strength, given strength taken from pre-defined list

func ToMnemonic
func ToMnemonic(entropy []byte, wordListPath string) (words []string, err error)

ToMnemonic returns mnemonic words from entropy. If wordListPath is empty, default list specified in bip-39 is used

func ToSeed
func ToSeed(words []string, password string) string

ToSeed returns the seed from the given mnemonic words and password

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateEntropy

func GenerateEntropy(strength int) ([]byte, error)

GenerateEntropy returns entropy with strength, given strength taken from pre-defined list

func ToMnemonic

func ToMnemonic(entropy []byte, wordListPath string) (words []string, err error)

ToMnemonic returns mnemonic words from entropy If wordListPath is empty, default list specified in bip-39 is used

func ToSeed

func ToSeed(words []string, password string) string

ToSeed returns the seed from the given mnemonic words and password

Types

This section is empty.

Jump to

Keyboard shortcuts

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