Versions in this module Expand all Collapse all v0 v0.0.1 Jun 17, 2021 Changes in this version + var ErrKeyExists = fmt.Errorf("key by that name already exists, refusing to overwrite") + var ErrNoSuchKey = fmt.Errorf("no key by the given name was found") + type FSKeystore struct + func NewFSKeystore(dir string) (*FSKeystore, error) + func (ks *FSKeystore) Delete(name string) error + func (ks *FSKeystore) Get(name string) (ci.PrivKey, error) + func (ks *FSKeystore) Has(name string) (bool, error) + func (ks *FSKeystore) List() ([]string, error) + func (ks *FSKeystore) Put(name string, k ci.PrivKey) error + type Keystore interface + Delete func(string) error + Get func(string) (ci.PrivKey, error) + Has func(string) (bool, error) + List func() ([]string, error) + Put func(string, ci.PrivKey) error + type MemKeystore struct + func NewMemKeystore() *MemKeystore + func (mk *MemKeystore) Delete(name string) error + func (mk *MemKeystore) Get(name string) (ci.PrivKey, error) + func (mk *MemKeystore) Has(name string) (bool, error) + func (mk *MemKeystore) List() ([]string, error) + func (mk *MemKeystore) Put(name string, k ci.PrivKey) error