Skip to main content

Crate eth_valkyoth_codec

Crate eth_valkyoth_codec 

Source
Expand description

Bounded decoding policy for untrusted Ethereum wire inputs.

Structs§

DecodeAccumulator
Stateful budget accounting for one decoder invocation.
DecodeLimits
Resource limits required by every untrusted decoder.

Enums§

DecodeError
Shared decode failure categories.
DecodeErrorCategory
Stable high-level decode error categories.
ResourceError
Stable resource budget categories.

Functions§

checked_len_add
Adds two decoded lengths and rejects integer overflow.
checked_range_end
Computes the end offset for a decoded range and rejects overflow.
require_exact_consumption
Ensures a decoder consumed the whole input.
require_range_in_bounds
Ensures a decoded range is inside an input buffer and returns its end.