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;
11mod rlp;
12
13pub use budget::{DecodeAccumulator, DecodeLimits};
14pub use error::{DecodeError, DecodeErrorCategory, ResourceError};
15pub use exact::{
16 checked_len_add, checked_range_end, require_exact_consumption, require_range_in_bounds,
17};
18pub use rlp::{RlpScalar, RlpScalarForm, decode_rlp_scalar, decode_rlp_scalar_partial};