mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-10 17:53:06 +00:00
19 lines
489 B
Rust
19 lines
489 B
Rust
use ethereum_types::U256;
|
|
|
|
pub(crate) fn all_rlp_prover_inputs_reversed(signed_txns: &[Vec<u8>]) -> Vec<U256> {
|
|
let mut inputs = all_rlp_prover_inputs(signed_txns);
|
|
inputs.reverse();
|
|
inputs
|
|
}
|
|
|
|
fn all_rlp_prover_inputs(signed_txns: &[Vec<u8>]) -> Vec<U256> {
|
|
let mut prover_inputs = vec![];
|
|
for txn in signed_txns {
|
|
prover_inputs.push(txn.len().into());
|
|
for &byte in txn {
|
|
prover_inputs.push(byte.into());
|
|
}
|
|
}
|
|
prover_inputs
|
|
}
|