RLP
RLP, or Recursive Length Prefix encoding, is a simple serialisation method used to encode arbitrarily nested arrays of binary data. It is designed for compact representation and efficient decoding, and it is a core encoding scheme in Ethereum for encoding various protocol data structures such as transactions, blocks, receipts, and state data. RLP is characterized by its use of prefixes to indicate the length of encoded items, enabling straightforward parsing and streaming.
The encoding rules distinguish between strings (raw byte sequences) and lists (arrays of encoded items). For
Examples help illustrate: encoding the string "cat" (three bytes) yields 0x83 63 61 74; encoding the list