mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-29 20:51:45 +00:00
Expose address in keyinfo, add get command
This commit is contained in:
@ -40,8 +40,10 @@ func (es encryptedStorage) Delete(name string) error {
|
||||
|
||||
// info hardcodes the encoding of keys
|
||||
func info(name string, key crypto.PrivKey) keys.Info {
|
||||
pub := key.PubKey()
|
||||
return keys.Info{
|
||||
Name: name,
|
||||
PubKey: crypto.PubKeyS{key.PubKey()},
|
||||
Name: name,
|
||||
Address: pub.Address(),
|
||||
PubKey: crypto.PubKeyS{pub},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user