reth_era/common/decode.rs
1//! Compressed data decoding utilities.
2
3use crate::e2s::error::E2sError;
4use alloy_rlp::Decodable;
5
6/// Extension trait for generic decoding from compressed data
7pub trait DecodeCompressedRlp {
8 /// Decompress and decode the data into the given type
9 fn decode<T: Decodable>(&self) -> Result<T, E2sError>;
10}