Skip to content

Commit

Permalink
prove
Browse files Browse the repository at this point in the history
  • Loading branch information
S1nus committed Dec 15, 2024
1 parent de22d42 commit e22ec70
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion script/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,16 @@ async fn main() {
stdin.write(&nmt_multiproofs);
stdin.write(&eds_row_roots[first_row_index as usize..(last_row_index + 1) as usize].to_vec());

let (output, report) = client.execute(BLEVM_ELF, stdin).run().unwrap();
// Serialize stdin to file for debugging
let stdin_bytes = bincode::serialize(&stdin).expect("Failed to serialize stdin");
fs::write("stdin.bin", stdin_bytes).expect("Failed to write stdin to file");

//let (output, report) = client.execute(BLEVM_ELF, stdin).run().unwrap();

let (pk, vk) = client.setup(&BLEVM_ELF);

let proof = client.prove(&pk, stdin).core().run().unwrap();

let proof_bytes = bincode::serialize(&proof).expect("Failed to serialize proof");
fs::write("proof.bin", proof_bytes).expect("Failed to write proof to file");
}
Binary file added script/stdin.bin
Binary file not shown.

0 comments on commit e22ec70

Please sign in to comment.