Skip to content

Commit

Permalink
chore: code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoliani committed Feb 12, 2024
1 parent ad1b938 commit 4dfd7eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/snarkjs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 4dfd7eb

Please sign in to comment.