Documentation
¶
Index ¶
- Variables
- func GetGranteeKeyName(signerName string) string
- func GetKeyringKeybase(cfg config.Config, hotkeyPassword string) (ckeys.Keyring, string, error)
- func SetupConfigForTest()
- type Keys
- func (k *Keys) GetAddress() (sdk.AccAddress, error)
- func (k *Keys) GetHotkeyPassword() string
- func (k *Keys) GetKeybase() ckeys.Keyring
- func (k *Keys) GetOperatorAddress() sdk.AccAddress
- func (k *Keys) GetPrivateKey(password string) (cryptotypes.PrivKey, error)
- func (k *Keys) GetPubKeySet(password string) (pellcrypto.PubKeySet, error)
- func (k *Keys) GetSignerInfo() *ckeys.Record
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBech32ifyPubKey is an error when Bech32ifyPubKey fails ErrBech32ifyPubKey = errors.New("Bech32ifyPubKey fail in main") // ErrNewPubKey is an error when NewPubKey fails ErrNewPubKey = errors.New("NewPubKey error from string") )
Functions ¶
func GetGranteeKeyName ¶
func GetKeyringKeybase ¶
GetKeyringKeybase return keyring and key info
func SetupConfigForTest ¶
func SetupConfigForTest()
Types ¶
type Keys ¶
type Keys struct {
OperatorAddress sdk.AccAddress
// contains filtered or unexported fields
}
Keys manages all the keys used by pell client
func NewKeysWithKeybase ¶
func NewKeysWithKeybase(kb ckeys.Keyring, granterAddress sdk.AccAddress, granteeName string, hotkeyPassword string) *Keys
NewKeysWithKeybase create a new instance of Keys
func (*Keys) GetAddress ¶
func (k *Keys) GetAddress() (sdk.AccAddress, error)
func (*Keys) GetHotkeyPassword ¶
GetHotkeyPassword returns the password to be used returns empty if no password is needed
func (*Keys) GetOperatorAddress ¶
func (k *Keys) GetOperatorAddress() sdk.AccAddress
func (*Keys) GetPrivateKey ¶
func (k *Keys) GetPrivateKey(password string) (cryptotypes.PrivKey, error)
GetPrivateKey return the private key
func (*Keys) GetPubKeySet ¶
func (k *Keys) GetPubKeySet(password string) (pellcrypto.PubKeySet, error)
func (*Keys) GetSignerInfo ¶
GetSignerInfo return signer info
Click to show internal directories.
Click to hide internal directories.