rlphacks

package
v0.0.0-...-92d349b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeByteArrayAsRlp

func EncodeByteArrayAsRlp(raw []byte, w io.Writer, prefixBuf []byte) (int, error)

func GenerateStructLen

func GenerateStructLen(buffer []byte, l int) int

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL