Module clarity::rlp

source ·

Enums§

  • Intermediate representation for RLP serialization and deserialization

Functions§

  • Safely downcasts a Uint256 to system integer size, note that on systems with 32 bit integer size this may return invalid for some otherwise valid RLP, but only in the case that the system doesn’t have enough memory to decode the value anyways. I guess swap might allow this error case to actually be encountered
  • Takes RLP token structs and packs the values into a single rlp encoded byte array
  • Unpacks RLP encoded bytes into a series of arrays https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/ From there further decoding can occur