ccaa6dd816
Sync to tip Co-authored-by: Brannon King <countprimes@gmail.com>
12 lines
216 B
Go
12 lines
216 B
Go
package merkletrie
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// Repo defines APIs for MerkleTrie to access persistence layer.
|
|
type Repo interface {
|
|
Get(key []byte) ([]byte, io.Closer, error)
|
|
Set(key, value []byte) error
|
|
Close() error
|
|
}
|