keyring

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptySigningKeyName represents an error which indicates that the
	// provided signing key name is empty or unspecified.
	ErrEmptySigningKeyName = errors.Register(codespace, 1, "empty signing key name")

	// ErrNoSuchSigningKey represents an error signifying that the requested
	// signing key does not exist or could not be located.
	ErrNoSuchSigningKey = errors.Register(codespace, 2, "signing key does not exist")

	// ErrSigningKeyAddr is raised when there's a failure in retrieving the
	// associated address for the provided signing key.
	ErrSigningKeyAddr = errors.Register(codespace, 3, "failed to get address for signing key")
)

Functions

func KeyNameToAddr

func KeyNameToAddr(
	keyName string,
	keyring cosmoskeyring.Keyring,
) (cosmostypes.AccAddress, error)

KeyNameToAddr attempts to retrieve the key with the given name from the given keyring and compute its address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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