mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 03:51:20 +00:00
19 lines
386 B
Go
19 lines
386 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) error
|
|
DoubleRLPLen() int
|
|
RawBytes() []byte
|
|
}
|