From 197a2b270fd94ee03824b158e738fce62862d0b8 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Thu, 27 Apr 2017 20:59:48 +0200 Subject: [PATCH] Consolidate keys.Manager interface --- keys/transactions.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/keys/transactions.go b/keys/transactions.go index aafb77873..13d37feb5 100644 --- a/keys/transactions.go +++ b/keys/transactions.go @@ -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)