keys

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 14 Imported by: 0

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