Module body

Module body 

Source
Expand description

L2 block body: application data and standardized emissions.

The body owns calculation of its BODY_ROOT by composing the two subroots:

  • DATA_ROOT: Merkle root of per-byte data item hashes.
  • EMISSIONS_ROOT: Merkle root of per-emission hashes.

Both collections are sorted by their hash for determinism (sorting is done on a local copy so calculate_* methods do not mutate the body).

Structs§

L2BlockBody
Body of an L2 block: application data bytes and reward emissions.

Enums§

BodyError
Errors that can be returned by body-level operations.