ethkey

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChangePassword = cobra.Command{
	Use:   "ethkey-changepassword",
	Short: "Change the password of a keyfile",
	Long:  "Change the password of a keyfile. use the --newpasswordfile to point to the new password file.",
	Run:   changePassword,
}

ChangePassword is the cobra.Command specifically for changing the password for a keyfile.

View Source
var Generate = cobra.Command{
	Use:   "ethkey-generate",
	Short: "Generate a new keyfile",
	Long:  "Generate a new keyfile with an ethereum address and private key",
	Run:   generate,
}

Generate is the cobra.Command specifically for generating an ethereum key and address.

View Source
var Inspect = cobra.Command{
	Use:   "ethkey-inspect",
	Short: "Print various information about the keyfile",
	Long:  "Print various information about the keyfile. Private key information can be printed by using the --private flag; make sure to use this feature with great caution!",
	Run:   inspect,
}

Inspect is the cobra.Command specifically decrypting the keyfile address, public and private keys.

Functions

func GenerateKeyFile added in v0.0.8

func GenerateKeyFile(generateRandomPass bool, logger *logrus.Entry) ([]byte, *keystore.Key, string, error)

func GenerateRandomString added in v0.0.8

func GenerateRandomString(s int) (string, error)

GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.

func ReadInput added in v0.0.8

func ReadInput(message string) (string, error)

func ReadYesOrNoAnswer added in v0.0.8

func ReadYesOrNoAnswer(message string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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