From 4dfd7eb018ef5912d230a999cfd939a21b64a8f1 Mon Sep 17 00:00:00 2001 From: ppoliani Date: Mon, 12 Feb 2024 13:53:02 +0200 Subject: [PATCH] chore: code formatting --- src/snarkjs.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/snarkjs.rs b/src/snarkjs.rs index fae28ae..44ed751 100644 --- a/src/snarkjs.rs +++ b/src/snarkjs.rs @@ -244,8 +244,8 @@ pub fn verify_proof( #[cfg(test)] mod tests { - use crate::zkbitcoin_folder; use super::*; + use crate::zkbitcoin_folder; fn full_path_from(path: &Path) -> PathBuf { PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()).join(path) @@ -265,7 +265,9 @@ mod tests { .to_string(), ], ); - let (proof, full_inputs, vk) = prove(&circom_circuit_path, &srs_path, &proof_inputs).await.unwrap(); + let (proof, full_inputs, vk) = prove(&circom_circuit_path, &srs_path, &proof_inputs) + .await + .unwrap(); // verify verify_proof(&vk, &full_inputs.0, &proof).unwrap(); @@ -294,7 +296,9 @@ mod tests { // prove let public_inputs = HashMap::new(); - let (proof, full_inputs, vk) = prove(&circom_circuit_path, &srs_path, &public_inputs).await.unwrap(); + let (proof, full_inputs, vk) = prove(&circom_circuit_path, &srs_path, &public_inputs) + .await + .unwrap(); // verify verify_proof(&vk, &full_inputs.0, &proof).unwrap();