eth-valkyoth-codec 0.6.0

Bounded no_std Ethereum wire codec policy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![no_std]
#![forbid(unsafe_code)]
//! Bounded decoding policy for untrusted Ethereum wire inputs.

#[cfg(feature = "std")]
extern crate std;

mod budget;
mod error;
mod exact;
mod rlp;

pub use budget::{DecodeAccumulator, DecodeLimits};
pub use error::{DecodeError, DecodeErrorCategory, ResourceError};
pub use exact::{
    checked_len_add, checked_range_end, require_exact_consumption, require_range_in_bounds,
};
pub use rlp::{RlpScalar, RlpScalarForm, decode_rlp_scalar, decode_rlp_scalar_partial};