Skip to content

dv-net/go-bip39

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-bip39

A golang implementation of the BIP0039 spec for mnemonic seeds

Example

package main

import (
  "github.com/dv-net/go-bip39"
  "fmt"
)

func main(){
  entropy, err := bip39.NewEntropy(256) //nolint:mnd
  if err != nil {
    return nil, fmt.Errorf("generate entropy: %w", err)
  }

  mnemonic, err := bip39.NewMnemonic(entropy)
  if err != nil {
    return nil, fmt.Errorf("generate mnemonic: %w", err)
  }

  // Display mnemonic and keys
  fmt.Println("Mnemonic: ", mnemonic)
}

About

This is an exact copy of tyler-smith's go-bip39 deleted repository.

Resources

Stars

Watchers

Forks

Packages

No packages published