Versions in this module Expand all Collapse all v0 v0.2.0 Mar 23, 2023 v0.1.0 Jul 20, 2022 Changes in this version + func FromTmPubKey(Algo string, pubKey tmcrypto.PubKey) commoncryptotypes.PubKey + func NewBaseClient(cfg sdktypes.ClientConfig, encodingConfig sdktypes.EncodingConfig, ...) sdktypes.BaseClient + func NewGRPCClient(url string, options ...grpc.DialOption) types.GRPCClient + func NewLocker(size int) *locker + func NewRPCClient(cfg sdktypes.ClientConfig, cdc *commoncodec.LegacyAmino, ...) sdk.TmClient + type AccountQuery struct + Km sdk.KeyManager + func (a AccountQuery) QueryAccount(address string) (sdk.BaseAccount, sdk.Error) + func (a AccountQuery) QueryAddress(name, password string) (sdk.AccAddress, sdk.Error) + func (a AccountQuery) QueryAndRefreshAccount(address string) (sdk.BaseAccount, sdk.Error) + type Client interface + Add func(name, password string) (address string, mnemonic string, err types.Error) + Delete func(name, password string) types.Error + Export func(name, password string) (privKeyArmor string, err types.Error) + Import func(name, password, privKeyArmor string) (address string, err types.Error) + Recover func(name, password, mnemonic string) (address string, err types.Error) + RecoverWithHDPath func(name, password, mnemonic, hdPath string) (address string, err types.Error) + Show func(name, password string) (string, types.Error) + func NewKeysClient(cfg types.ClientConfig, keyManager types.KeyManager) Client + type KeyManager struct + Algo string + KeyDAO store.KeyDAO + func (k KeyManager) Add(name, password string) (string, string, types.Error) + func (k KeyManager) Delete(name, password string) error + func (k KeyManager) Export(name, password string) (armor string, err error) + func (k KeyManager) Find(name, password string) (tmcrypto.PubKey, types.AccAddress, error) + func (k KeyManager) Import(name, password, armor string) (string, error) + func (k KeyManager) Insert(name, password string) (string, string, error) + func (k KeyManager) Recover(name, password, mnemonic, hdPath string) (string, error) + func (k KeyManager) Sign(name, password string, data []byte) ([]byte, tmcrypto.PubKey, error)