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