eth_valkyoth_codec/lib.rs
1#![no_std]
2#![forbid(unsafe_code)]
3//! Bounded decoding policy for untrusted Ethereum wire inputs.
4
5#[cfg(feature = "std")]
6extern crate std;
7
8mod budget;
9mod error;
10mod exact;
11
12pub use budget::{DecodeAccumulator, DecodeLimits};
13pub use error::{DecodeError, DecodeErrorCategory, ResourceError};
14pub use exact::{
15 checked_len_add, checked_range_end, require_exact_consumption, require_range_in_bounds,
16};