key

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(privKeyFile string, count int) ([]crypto.PrivKey, error)

Add generates "count" new 256-bit Ed25519 key pairs and saves the private keys to the given file ( base64 encoded).

func Load

func Load(privKeyFile string) ([]crypto.PrivKey, error)

Load attempts to load private key information from the given private key file.

func LoadApiKey added in v0.6.0

func LoadApiKey(c *cli.Context) (string, error)

func SaveApiKey added in v0.8.0

func SaveApiKey(newApiKey string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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