Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 2.02 KB

File metadata and controls

62 lines (45 loc) · 2.02 KB

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.