generate

package
v0.0.0-...-944f14e Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_MNEMONIC_LENGTH uint = 24
View Source
var PadCmd = &cli.Command{
	Name:  "pad",
	Usage: "Generate a one-time-pad encoded key",
	Flags: []cli.Flag{
		&cli.UintFlag{
			Name:  "words",
			Value: DEFAULT_MNEMONIC_LENGTH,
			Usage: "Number of words in the mnemonic phrase to encrypt",
			Action: func(ctx *cli.Context, v uint) error {
				if v > math.MaxUint16 {
					return fmt.Errorf("Flag words value %v out of range[0-%d]", v, math.MaxUint16)
				}
				return nil
			},
		},
	},
	Action: handleGenerateCommand,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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