keys

package
v8.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DIDCmd

func DIDCmd() *cobra.Command

func Enhance

func Enhance(cmd *cobra.Command) *cobra.Command

Enhance augment the given command which is assumed to be the root command of the 'list' command. It will: - add the 'did' command. - replace the original 'list' command implementation with our own 'list' command which will list all did:key. - replace the original 'show' command implementation with our own 'show' command which will show the did:key of the key.

func EnhanceListCmd

func EnhanceListCmd(cmd *cobra.Command)

EnhanceListCmd replaces the original 'list' command implementation with our own 'list' command which will allow us to list did:key of the keys as well as the original keys.

func EnhanceShowCmd

func EnhanceShowCmd(cmd *cobra.Command)

EnhanceShowCmd replaces the original 'show' command implementation with our own 'show' command which will allow us to display the did:key of the key as well as the original key.

Types

type KeyOutput

type KeyOutput struct {
	keys.KeyOutput
	DID string `json:"did,omitempty" yaml:"did"`
}

KeyOutput is the output format for keys when listing them. It is an improved copy of the KeyOutput from the keys module (github.com/cosmos/cosmos-sdk/client/keys/types.go).

Jump to

Keyboard shortcuts

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