mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-10 01:33:07 +00:00
14 lines
350 B
Rust
14 lines
350 B
Rust
use std::env;
|
|
use std::fs;
|
|
|
|
use hex::encode;
|
|
use plonky2_evm::cpu::kernel::assemble_to_bytes;
|
|
|
|
fn main() {
|
|
let mut args = env::args();
|
|
args.next();
|
|
let file_contents: Vec<_> = args.map(|path| fs::read_to_string(path).unwrap()).collect();
|
|
let assembled = assemble_to_bytes(&file_contents[..]);
|
|
println!("{}", encode(assembled));
|
|
}
|