mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-27 03:31:42 +00:00
refactor out binary
This commit is contained in:
@ -1,23 +1,17 @@
|
||||
package merkle
|
||||
|
||||
import (
|
||||
"io"
|
||||
. "github.com/tendermint/tendermint/binary"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Binary interface {
|
||||
ByteSize() int
|
||||
WriteTo(io.Writer) (int64, error)
|
||||
Equals(Binary) bool
|
||||
}
|
||||
|
||||
type Value interface {
|
||||
Binary
|
||||
}
|
||||
|
||||
type Key interface {
|
||||
Binary
|
||||
Less(b Key) bool
|
||||
Less(b Binary) bool
|
||||
}
|
||||
|
||||
type Db interface {
|
||||
|
Reference in New Issue
Block a user