key

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 9 Imported by: 0

README

zarb key

zarb key is a simple command-line tool to work with zarb key files.

Usage

Generate new key

Generate new key file. This key file is encrypted with the password you provide while creating a new account.

Example:

zarb key generate
Recovering a key

You can recover a key if you have the seed phrase and passphrase.

Example:

zarb key recover
Inspect KeyFile

Print various information about the given key file. Private key information can be printed using the -e flag. Make sure you use this feature with great caution.

Example:

zarb key inspect <PATH_TO_KEYFILE>
zarb key inspect -e <PATH_TO_KEYFILE>
Signing a message

Signs the message with the private key. User can directly specify the private key to sign the message or specify the a key file and password to decrypt the private key and sign the message.

Example:

zarb key sign -m hello -k <PATH_TO_KEYFILE>
Verifying signature

Verify the signature of a message.

Example:

zarb key verify -m hello <PUBLIC_KEY> <SIGNATURE>
Change KeyFile password

Change the password of the key file which is used for encryption and decryption.

Example:

zarb key change-auth <PATH_TO_KEYFILE>

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeAuth

func ChangeAuth() func(c *cli.Cmd)

ChangeAuth changes the passphrase of the key file

func Generate

func Generate() func(c *cli.Cmd)

Generate creates a new keyfile and stores the keyfile in the disk

func Inspect

func Inspect() func(c *cli.Cmd)

Inspect displays various information of the keyfile

func Recover

func Recover() func(c *cli.Cmd)

Recover tries to recover a key from the seed

func Sign

func Sign() func(c *cli.Cmd)

Sign the message with the private key and returns the signature

func Verify

func Verify() func(c *cli.Cmd)

Verify the signature of the signed message

Types

This section is empty.

Jump to

Keyboard shortcuts

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