func Write(s Store, key, value []byte, bucket Bucket) error {
	return s.WriteBatch([]Entry{{Bucket: bucket, Key: key, Value: value}})
}
Write is a convenience method to perform a single entry write.
package storage
const (
	TransactionBucket Bucket = 1
)
var allBuckets = []Bucket{
	TransactionBucket,
}
var bucketKeys = map[Bucket][]byte{}
func init() {
	for _, bucket := range allBuckets {
		bucketKeys[bucket] = []byte{byte(bucket)}
	}
}
type Bucket byte
type Entry struct {
	Bucket Bucket
	Key    []byte
	Value  []byte
}
func (e *Entry) BucketKey() []byte {
	return bucketKeys[e.Bucket]
}
type Store interface {
	WriteBatch(batch []Entry) error
	ReadBatch(batch []*Entry) error
	Close() error
}