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
}
Click to show internal directories.
Click to hide internal directories.