Expand description
Execution layer specific types for .ere files
Contains implementations for compressed execution layer data structures:
CompressedHeader- Block headerCompressedBody- Block bodyCompressedSlimReceipts- Block receiptsTotalDifficulty- Block total difficulty
These types use Snappy compression to match the specification.
See also https://github.com/eth-clients/e2store-format-specs/blob/main/formats/ere.md
Structs§
- Accumulator
- Accumulator is computed by constructing an SSZ list of header-records
and calculating the
hash_tree_root - Block
Tuple - A single block’s components in an
EREfile. - Compressed
Body - Compressed block body using
snappyFramed(rlp(body)) - Compressed
Header - Compressed block header using
snappyFramed(rlp(header)) - Compressed
Slim Receipts - Compressed slim receipts using
snappyFramed(rlp(...)). - Header
Record - The minimal per-block commitment used to build the accumulator.
- Proof
- A proof entry attesting to block validity against a trusted consensus layer header.
- Slim
Receipt - A slim execution receipt as stored in an
EREfile. - Total
Difficulty - Total difficulty for a block
Enums§
- Proof
Type - Proof type discriminant used inside the Proof entry’s RLP envelope.
Constants§
- ACCUMULATOR
Accumulatorrecord type- COMPRESSED_
BODY CompressedBodyrecord type- COMPRESSED_
HEADER CompressedHeaderrecord type- COMPRESSED_
SLIM_ RECEIPTS CompressedSlimReceiptsrecord type (0x0a00) Slim receipts exclude bloom filters to optimize storage.- MAX_
BLOCKS_ PER_ ERE - Maximum number of blocks in an
EREfile, limited by accumulator size. - PROOF
Proofrecord type (0x0b00) Format:snappyFramed(rlp([proof-type, ssz(proof-object)]))- TOTAL_
DIFFICULTY TotalDifficultyrecord type