lbcd/claimtrie/merkletrie/repo.go

14 lines
235 B
Go
Raw Normal View History

package merkletrie
import (
"io"
)
// Repo defines APIs for PersistentTrie to access persistence layer.
type Repo interface {
Get(key []byte) ([]byte, io.Closer, error)
Set(key, value []byte) error
Close() error
Flush() error
}