mnemonic

package
v0.2.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidEntropySize = fmt.Errorf("entropy size must be 128 or 256")
)

Functions

func NewMnemonic

func NewMnemonic(args NewMnemonicArgs) ([]string, error)

NewMnemonic returns a new mnemonic as a list of words:

  • EntropySize: 256 -> 24-words mnemonic.
  • EntropySize: 128 -> 12-words mnemonic.

Types

type NewMnemonicArgs

type NewMnemonicArgs struct {
	EntropySize uint32
}

Jump to

Keyboard shortcuts

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