keys

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package keys provides keyring management for the Push Universal Validator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeyring

func CreateKeyring(homeDir string, reader io.Reader, backend config.KeyringBackend) (keyring.Keyring, error)

CreateKeyring creates an EVM-compatible keyring.

func CreateNewKey

func CreateNewKey(kr keyring.Keyring, name string, mnemonic string, passphrase string) (*keyring.Record, string, error)

CreateNewKey creates a new key in the keyring and returns the record and mnemonic. If mnemonic is provided, it imports the key; otherwise generates a new one.

func NewInterfaceRegistryWithEVMSupport added in v0.0.23

func NewInterfaceRegistryWithEVMSupport() codectypes.InterfaceRegistry

NewInterfaceRegistryWithEVMSupport creates an interface registry with EVM-compatible key types.

Types

type Keys

type Keys struct {
	// contains filtered or unexported fields
}

Keys wraps a Cosmos SDK keyring and a specific key name within it.

func NewKeys

func NewKeys(kr keyring.Keyring, keyName string) *Keys

NewKeys creates a new Keys instance.

func (*Keys) GetAddress

func (k *Keys) GetAddress() (sdk.AccAddress, error)

GetAddress returns the address of the key.

func (*Keys) GetKeyName

func (k *Keys) GetKeyName() string

GetKeyName returns the name of the key in the keyring.

func (*Keys) GetKeyring

func (k *Keys) GetKeyring() (keyring.Keyring, error)

GetKeyring validates the key exists and returns the underlying keyring for signing.

Jump to

Keyboard shortcuts

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