go-mnemonic: cryptographic entropy mnemonics
Go implementation of the mnemonic seeds as defined in bip39.
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)
}
See COPYING file for licensing details.
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
This source code is part of IPFN – interplanetary functions project.