Skip to content

sxwebdev/go-bip39

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-bip39

A golang implementation of the BIP0039 spec for mnemonic seeds

Example

package main

import (
  "github.com/sxwebdev/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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published