Skip to content

Commit

Permalink
fix: remove existing path
Browse files Browse the repository at this point in the history
  • Loading branch information
eigmax committed Mar 30, 2024
1 parent e402156 commit 6ebc9a2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions zkvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fn generate_verifier<F: FieldElement, W: std::io::Write>(
// TODO: don't write it to disk, we should discuss with powdr-labs to provide a function for
//pipeline to return the vk directly.
let mut tf = tempfile::tempfile().unwrap();
pipeline = pipeline.with_backend(BackendType::EStark);
pipeline.export_verification_key(&mut tf).unwrap();
let mut setup: StarkSetup<MerkleTreeGL> = serde_json::from_reader(tf).unwrap();

Expand Down Expand Up @@ -233,9 +234,12 @@ pub fn zkvm_evm_prove_only(
)
.unwrap();

let verifer_file = Path::new(output_path).join(format!("{}_chunk_{}.circom", task, i));
let f = fs::File::open(verifer_file)?;
log::debug!("Running circom verifier generation...");
let verifier_file = Path::new(output_path).join(format!("{}_chunk_{}.circom", task, i));
log::debug!(
"Running circom verifier generation to {:?}...",
verifier_file
);
let f = fs::File::create_new(verifier_file)?;
generate_verifier(pipeline, f).unwrap();

let duration = start.elapsed();
Expand Down

0 comments on commit 6ebc9a2

Please sign in to comment.