Expand description
Bounded decoding policy for untrusted Ethereum wire inputs.
Structs§
- Decode
Accumulator - Stateful budget accounting for one decoder invocation.
- Decode
Limits - Resource limits required by every untrusted decoder.
- RlpScalar
- Borrowed RLP scalar byte string.
Enums§
- Decode
Error - Shared decode failure categories.
- Decode
Error Category - Stable high-level decode error categories.
- Resource
Error - Stable resource budget categories.
- RlpScalar
Form - 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.