Browse Source

Consolidate keys.Manager interface

pull/1782/head
Ethan Frey 7 years ago
parent
commit
197a2b270f
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      keys/transactions.go

+ 3
- 2
keys/transactions.go View File

@ -9,8 +9,8 @@ import (
// Info is the public information about a key
type Info struct {
Name string `json:"name"`
Address data.Bytes `json:"address"`
Name string `json:"name"`
Address data.Bytes `json:"address"`
PubKey crypto.PubKey `json:"pubkey"`
}
@ -62,6 +62,7 @@ type Signer interface {
// Manager allows simple CRUD on a keystore, as an aid to signing
type Manager interface {
Signer
Create(name, passphrase, algo string) (Info, error)
List() (Infos, error)
Get(name string) (Info, error)


Loading…
Cancel
Save