func NewMapDB() kvstore.KVStore {
	return &mapDB{
		m: &syncedKVMap{m: make(map[string][]byte)},
	}
}
NewMapDB creates a kvstore.KVStore implementation purely based on a go map.
package mapdb
import (
	"sync"
	"github.com/iotaledger/hive.go/byteutils"
	"github.com/iotaledger/hive.go/kvstore"
	"github.com/iotaledger/hive.go/types"
)
type mapDB struct {
	sync.RWMutex
	m     *syncedKVMap
	realm []byte
}