From 57346134a57c16559ce009464a96dfd37547a06c Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 26 Oct 2017 16:43:32 -0400 Subject: [PATCH] keys: transactions.go -> types.go --- keys/storage.go | 10 ---------- keys/{transactions.go => types.go} | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 keys/storage.go rename keys/{transactions.go => types.go} (91%) diff --git a/keys/storage.go b/keys/storage.go deleted file mode 100644 index 0aba4ebdb..000000000 --- a/keys/storage.go +++ /dev/null @@ -1,10 +0,0 @@ -package keys - -// Storage has many implementation, based on security and sharing requirements -// like disk-backed, mem-backed, vault, db, etc. -type Storage interface { - Put(name string, salt []byte, key []byte, info Info) error - Get(name string) (salt []byte, key []byte, info Info, err error) - List() (Infos, error) - Delete(name string) error -} diff --git a/keys/transactions.go b/keys/types.go similarity index 91% rename from keys/transactions.go rename to keys/types.go index 1834ada26..008a6f7ae 100644 --- a/keys/transactions.go +++ b/keys/types.go @@ -9,6 +9,15 @@ import ( data "github.com/tendermint/go-wire/data" ) +// Storage has many implementation, based on security and sharing requirements +// like disk-backed, mem-backed, vault, db, etc. +type Storage interface { + Put(name string, salt []byte, key []byte, info Info) error + Get(name string) (salt []byte, key []byte, info Info, err error) + List() (Infos, error) + Delete(name string) error +} + // Info is the public information about a key type Info struct { Name string `json:"name"`