Consolidate keys.Manager interface
This commit is contained in:
parent
9b95da8fa4
commit
197a2b270f
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
// Info is the public information about a key
|
// Info is the public information about a key
|
||||||
type Info struct {
|
type Info struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Address data.Bytes `json:"address"`
|
Address data.Bytes `json:"address"`
|
||||||
PubKey crypto.PubKey `json:"pubkey"`
|
PubKey crypto.PubKey `json:"pubkey"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,6 +62,7 @@ type Signer interface {
|
||||||
|
|
||||||
// Manager allows simple CRUD on a keystore, as an aid to signing
|
// Manager allows simple CRUD on a keystore, as an aid to signing
|
||||||
type Manager interface {
|
type Manager interface {
|
||||||
|
Signer
|
||||||
Create(name, passphrase, algo string) (Info, error)
|
Create(name, passphrase, algo string) (Info, error)
|
||||||
List() (Infos, error)
|
List() (Infos, error)
|
||||||
Get(name string) (Info, error)
|
Get(name string) (Info, error)
|
||||||
|
|
Loading…
Reference in New Issue