mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
adf52465e3
Useful for minimizing merge conflicts when rebasing new geth
19 lines
394 B
Go
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
|
|
}
|