tuweni / org.apache.tuweni.rlp

Package org.apache.tuweni.rlp

Recursive Length Prefix (RLP) encoding and decoding.

An implementation of the Ethereum Recursive Length Prefix (RLP) algorithm, as described at https://github.com/ethereum/wiki/wiki/RLP.

These classes are included in the complete Tuweni distribution, or separately when using the gradle dependency org.apache.tuweni:tuweni-rlp (tuweni-rlp.jar).

Types

RLP

class RLP

Recursive Length Prefix (RLP) encoding and decoding.

RLPReader

interface RLPReader

A reader for consuming values from an RLP encoded source.

RLPWriter

interface RLPWriter

A writer for encoding values to RLP.

Exceptions

EndOfRLPException

open class EndOfRLPException : RLPException

Indicates the end of the RLP source has been reached unexpectedly.

InvalidRLPEncodingException

open class InvalidRLPEncodingException : RLPException

Indicates that invalid RLP encoding was encountered.

InvalidRLPTypeException

open class InvalidRLPTypeException : RLPException

Indicates that an unexpected type was encountered when decoding RLP.

RLPException

open class RLPException : RuntimeException

Base type for all RLP encoding and decoding exceptions.