Documentation
¶
Overview ¶
Package keys provides keyring management for the Push Universal Validator.
Index ¶
- func CreateKeyring(homeDir string, reader io.Reader, backend config.KeyringBackend) (keyring.Keyring, error)
- func CreateNewKey(kr keyring.Keyring, name string, mnemonic string, passphrase string) (*keyring.Record, string, error)
- func NewInterfaceRegistryWithEVMSupport() codectypes.InterfaceRegistry
- type Keys
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 (*Keys) GetAddress ¶
func (k *Keys) GetAddress() (sdk.AccAddress, error)
GetAddress returns the address of the key.
func (*Keys) GetKeyName ¶
GetKeyName returns the name of the key in the keyring.
Click to show internal directories.
Click to hide internal directories.