Module block

Module block 

Source
Expand description

L2 block: header and body, with delegated root calculation.

L2Block::calculate_root() defers to header.calculate_root() and body.calculate_root() and then composes them via COMPUTE_BLOCK_ROOT.

Construction via new enforces invariants between header and body (counts and body_root) and can surface HeaderError/BodyError via transparent composition.

Structs§

BuildL2BlockArgs
DigL2Block
Full L2 block containing a header and a body.

Enums§

BlockError
Errors that can be returned by DigL2Block construction/validation.