mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 14:53:08 +00:00
21 lines
375 B
Rust
21 lines
375 B
Rust
mod core;
|
|
mod curve_ops;
|
|
mod ecrecover;
|
|
mod exp;
|
|
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<_>, _>>()?)
|
|
}
|