Skip to content

vedhavyas/go-mnemonic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Reference implementation of BIP-39, a mnemonic code or mnemonic sentence for the generation of deterministic wallets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages