zk_evm 0.153.12

ZKsync out-of-circuit EraEVM implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

mod keccak256;
// mod sha256;
mod ecadd;
mod ecmul;
mod ecpairing;
mod ecrecover;
mod modexp;

fn pretty_print_memory_dump(content: &Vec<[u8; 32]>, range: std::ops::Range<u32>) {
    println!("Memory dump:");
    println!("-----------------------------------------");
    for (cont, index) in content.into_iter().zip(range.into_iter()) {
        println!("{:04x}: 0x{}", index, hex::encode(cont));
    }
    println!("-----------------------------------------");
}