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.
RlpScalar
Borrowed RLP scalar byte string.

Enums§

DecodeError
Shared decode failure categories.
DecodeErrorCategory
Stable high-level decode error categories.
ResourceError
Stable resource budget categories.
RlpScalarForm
Canonical RLP scalar form used by the decoder.

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.
decode_rlp_scalar
Decodes exactly one canonical RLP scalar byte string.
decode_rlp_scalar_partial
Decodes one canonical RLP scalar byte string from the start of input.
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.