Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeByteArrayAsRlp ¶
func GenerateStructLen ¶
Types ¶
type RlpEncodedBytes ¶
type RlpEncodedBytes []byte
func (RlpEncodedBytes) DoubleRLPLen ¶
func (b RlpEncodedBytes) DoubleRLPLen() int
func (RlpEncodedBytes) RawBytes ¶
func (b RlpEncodedBytes) RawBytes() []byte
func (RlpEncodedBytes) ToDoubleRLP ¶
func (b RlpEncodedBytes) ToDoubleRLP(w io.Writer, prefixBuf []byte) error
type RlpSerializable ¶
type RlpSerializable interface { ToDoubleRLP(io.Writer, []byte) error DoubleRLPLen() int RawBytes() []byte }
RlpSerializable is a value that can be double-RLP coded.
type RlpSerializableBytes ¶
type RlpSerializableBytes []byte
func (RlpSerializableBytes) DoubleRLPLen ¶
func (b RlpSerializableBytes) DoubleRLPLen() int
func (RlpSerializableBytes) RawBytes ¶
func (b RlpSerializableBytes) RawBytes() []byte
func (RlpSerializableBytes) ToDoubleRLP ¶
func (b RlpSerializableBytes) ToDoubleRLP(w io.Writer, prefixBuf []byte) error
type RlpSerializableTape ¶
type RlpSerializableTape interface {
Next() (RlpSerializable, error)
}
RlpSerializableTape is an abstraction for a tape that allows reading a sequence of RlpSerializable values.
Click to show internal directories.
Click to hide internal directories.