keys

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: LGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFormatText = "text"
	OutputFormatJSON = "json"
)

available output formats.

Variables

This section is empty.

Functions

func AddKeyCommand

func AddKeyCommand() *cobra.Command

AddKeyCommand defines a keys command to add a generated or recovered private key to keybase.

func Commands

func Commands(defaultNodeHome string) *cobra.Command

Commands registers a sub-tree of commands to interact with local private key storage.

func NewLegacyKeyBaseFromDir

func NewLegacyKeyBaseFromDir(rootDir string, opts ...cryptokeyring.KeybaseOption) (cryptokeyring.LegacyKeybase, error)

NewLegacyKeyBaseFromDir initializes a legacy keybase at the rootDir directory. Keybase options can be applied when generating this new Keybase.

func RunAddCmd

func RunAddCmd(ctx client.Context, cmd *cobra.Command, args []string, inBuf *bufio.Reader) error

input

  • bip39 mnemonic
  • bip39 passphrase
  • bip44 path
  • local encryption password

output

  • armor encrypted private key (saved to file)

Types

This section is empty.

Jump to

Keyboard shortcuts

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