go-mnemonic

module
v0.0.0-...-be1e348 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: MIT

README

go-mnemonic: cryptographic entropy mnemonics

IPFN project IPFN Documentation See COPYING.txt GoDoc Travis CI Coverage Status

Go implementation of the mnemonic seeds as defined in bip39.

Usage

package main

import (
  "fmt"

  "github.com/ipfn/go-mnemonic/mnemonic"
)

func main(){
  entropy, _ := mnemonic.NewEntropy(256)
  mnemonic, _ := mnemonic.New(entropy)

  fmt.Printf("Entropy: %x\n", entropy)
  fmt.Printf("Mnemonic: %s\n", mnemonic)
}

License

See COPYING file for licensing details.

Credits

Source code was forked from tyler-smith/go-bip39.

Wordlists are from the bip39.

Test vectors are from the standard Python BIP0039 implementation from the Trezor team: https://github.com/trezor/python-mnemonic

Project

This source code is part of IPFN – interplanetary functions project.

Directories

Path Synopsis
Package mnemonic is the Golang implementation of the BIP39 spec.
Package mnemonic is the Golang implementation of the BIP39 spec.

Jump to

Keyboard shortcuts

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