Module execution_types

Source
Expand description

Execution layer specific types for era1 files

Contains implementations for compressed execution layer data structures:

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
BlockTuple
A block tuple in an Era1 file, containing all components for a single block
CompressedBody
Compressed block body using snappyFramed(rlp(body))
CompressedHeader
Compressed block header using snappyFramed(rlp(header))
CompressedReceipts
Compressed receipts using snappyFramed(rlp(receipts))
SnappyRlpCodec
Generic codec for Snappy-compressed RLP data
TotalDifficulty
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§

DecodeCompressed
Extension trait for generic decoding from compressed data