Expose address in keyinfo, add get command

This commit is contained in:
Ethan Frey
2017-02-28 20:07:44 +01:00
parent d5931c9ee3
commit c59e2d7d13
11 changed files with 89 additions and 17 deletions

View File

@ -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},
}
}