Versions in this module Expand all Collapse all v0 v0.1.0 Jul 23, 2020 Changes in this version + var ErrClosed = errors.New("spendbook: DB is closed") + func Add(kp *keypool.KeyPool, db interface{}) error + type KeyDB struct + DB *sql.DB + func New(db interface{}) (*KeyDB, error) + func NewFromDB(db *sql.DB) (*KeyDB, error) + func NewFromURL(dburl string) (*KeyDB, error) + func (kd *KeyDB) Add(kp *keypool.KeyPool) error + func (kd *KeyDB) Close() + func (kd *KeyDB) Fetch(keyid []byte) (marshalledKey []byte, err error)