Expand description
Execution layer specific types for era1 files
Contains implementations for compressed execution layer data structures:
CompressedHeader
- Block headerCompressedBody
- Block bodyCompressedReceipts
- 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/era1.md
Structs§
- Accumulator
- Accumulator is computed by constructing an SSZ list of header-records
and calculating the
hash_tree_root
- Block
Tuple - A block tuple in an Era1 file, containing all components for a single block
- Compressed
Body - Compressed block body using
snappyFramed(rlp(body))
- Compressed
Header - Compressed block header using
snappyFramed(rlp(header))
- Compressed
Receipts - Compressed receipts using snappyFramed(rlp(receipts))
- Snappy
RlpCodec - Generic codec for Snappy-compressed RLP data
- Total
Difficulty - Total difficulty for a block
Constants§
- ACCUMULATOR
Accumulator
record type- COMPRESSED_
BODY CompressedBody
record type- COMPRESSED_
HEADER CompressedHeader
record type- COMPRESSED_
RECEIPTS CompressedReceipts
record type- MAX_
BLOCKS_ PER_ ERA1 - Maximum number of blocks in an Era1 file, limited by accumulator size
- TOTAL_
DIFFICULTY TotalDifficulty
record type
Traits§
- Decode
Compressed - Extension trait for generic decoding from compressed data