Crate reth_codecs

Source
Expand description

Compact codec.

Warning: The Compact encoding format and its implementations are designed for storing and retrieving data internally. They are not hardened to safely read potentially malicious data.

§Feature Flags

  • alloy: Compact implementation for various alloy types.

Modules§

  • alloytest-utils
    Implements Compact for alloy types.
  • test_utilstest-utils
    Test utilities for Compact derive macro
  • Commonly used constants for transaction types.

Macros§

Traits§

  • Trait that implements the Compact codec.

Type Aliases§

  • To be used with Option<CompactPlaceholder> to place or replace one bit on the bitflag struct.

Attribute Macros§

Derive Macros§

  • Derives the Compact trait for custom structs, optimizing serialization with a possible bitflag struct.
  • Adds zstd compression to derived Compact.