mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-09 01:03:08 +00:00
25 lines
418 B
Rust
25 lines
418 B
Rust
mod account_code;
|
|
mod balance;
|
|
mod bignum;
|
|
mod bn254;
|
|
mod core;
|
|
mod ecc;
|
|
mod exp;
|
|
mod hash;
|
|
mod mpt;
|
|
mod packing;
|
|
mod rlp;
|
|
mod transaction_parsing;
|
|
|
|
use std::str::FromStr;
|
|
|
|
use anyhow::Result;
|
|
use ethereum_types::U256;
|
|
|
|
pub(crate) fn u256ify<'a>(hexes: impl IntoIterator<Item = &'a str>) -> Result<Vec<U256>> {
|
|
Ok(hexes
|
|
.into_iter()
|
|
.map(U256::from_str)
|
|
.collect::<Result<Vec<_>, _>>()?)
|
|
}
|