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§
- Build
L2Block Args - DigL2
Block - Full L2 block containing a header and a body.
Enums§
- Block
Error - Errors that can be returned by
DigL2Blockconstruction/validation.