From d6e95b1c72aafd20ebbc8d3eab165ca2332dc2bf Mon Sep 17 00:00:00 2001 From: mattstam Date: Tue, 13 Feb 2024 15:42:43 -0800 Subject: [PATCH] verifier path --- plonky2x/core/src/backend/function/mod.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plonky2x/core/src/backend/function/mod.rs b/plonky2x/core/src/backend/function/mod.rs index ecc726ab..f46c8d5a 100644 --- a/plonky2x/core/src/backend/function/mod.rs +++ b/plonky2x/core/src/backend/function/mod.rs @@ -320,16 +320,16 @@ impl Plonky2xFunction for C { if !args.wrapper_path.is_empty() { // Construct the command to execute the wrapper_circuit - let child_process = std::process::Command::new(&args.wrapper_path) - .arg("-prove") - .arg("-data") - .arg(path::Path::new(&args.wrapper_path)) - .arg("-circuit") - .arg(circuit_path) - .stdout(std::process::Stdio::inherit()) - .stderr(std::process::Stdio::inherit()) - .spawn() - .expect("Failed to start gnark wrapper process"); + let child_process = + std::process::Command::new(path::Path::new(&args.wrapper_path).join("verifier")) + .arg("-prove") + .arg("-data") + .arg(path::Path::new(&args.wrapper_path)) + .stdout(std::process::Stdio::inherit()) + .stderr(std::process::Stdio::inherit()) + .stdin(std::process::Stdio::piped()) + .spawn() + .expect("Failed to start gnark wrapper process"); // Wait for the wrapper_circuit process to complete let output = child_process