refactor out binary

This commit is contained in:
Jae Kwon
2014-06-04 01:39:50 -07:00
parent 15f8441068
commit 1c4f5e2506
8 changed files with 68 additions and 38 deletions

View File

@ -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 {