Trait Decodable7594

Source
pub trait Decodable7594: Sized {
    // Required method
    fn decode_7594(buf: &mut &[u8]) -> Result<Self>;
}
Expand description

A helper trait for decoding EIP-7594 sidecars.

Required Methods§

Source

fn decode_7594(buf: &mut &[u8]) -> Result<Self>

Decode the sidecar according to EIP-7594 rules. First a 1-byte wrapper version (if any), then the body of the sidecar.

EIP-7594 inner encodings are unspecified, and produce an opaque bytestring.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§