erigon-pulse/turbo/rlphacks/serializable.go
Igor Mandrigin adf52465e3
move ./trie to ./turbo/trie (#1114)
Useful for minimizing merge conflicts when rebasing new geth
2020-09-14 11:33:39 +01:00

19 lines
394 B
Go

package rlphacks
import (
"io"
)
// RlpSerializableTape is an abstraction for a tape that allows reading a sequence of
// RlpSerializable values.
type RlpSerializableTape interface {
Next() (RlpSerializable, error)
}
// RlpSerializable is a value that can be double-RLP coded.
type RlpSerializable interface {
ToDoubleRLP(io.Writer, []byte) error
DoubleRLPLen() int
RawBytes() []byte
}