Skip to content

RLP

This module implements the RLP encoding scheme for the Ethereum protocol.

encode

encode(obj)

Parameters:

  • obj – the object to encode

Return the RLP representation of obj. Only lists, tuples, strings, bytes/bytearrays and integers are allowed as types for obj.