mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-09 09:13:09 +00:00
I made a couple related changes to `Interpreter`: - Only enforce the `JUMPDEST` rule if we're in kernel mode. - Convenience methods for dealing with the RLP and txn field segments of memory.
18 lines
334 B
Rust
18 lines
334 B
Rust
mod curve_ops;
|
|
mod ecrecover;
|
|
mod exp;
|
|
mod rlp;
|
|
mod type_0_txn;
|
|
|
|
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<_>, _>>()?)
|
|
}
|