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
txtype
Commonly used constants for transaction types.

Macros§

generate_tests
Generates tests for given type based on passed parameters.
impl_compact_for_wrapped_bytes
Implements the Compact trait for wrappers over fixed size byte array types.
validate_bitflag_backwards_compattest-utils
Macro to ensure that derived Compact types can be extended with new fields while maintaining backwards compatibility.

Traits§

Compact
Trait that implements the Compact codec.

Type Aliases§

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

Attribute Macros§

add_arbitrary_tests
Generates tests for given type.

Derive Macros§

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