18 lines
343 B
Rust
Raw Normal View History

2022-07-13 18:48:25 +02:00
mod curve_ops;
2022-07-14 13:16:25 +02:00
mod ecrecover;
2022-07-13 18:48:25 +02:00
mod exp;
2022-07-29 13:50:16 -07:00
mod rlp;
2022-08-01 11:20:56 -07:00
mod transaction_parsing;
2022-07-13 18:48:25 +02:00
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<_>, _>>()?)
}