Skip to content

Commit

Permalink
fmt must use tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin-Ray committed Oct 22, 2024
1 parent 5698da1 commit 05b0719
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions crates/proof-of-sql/src/proof_primitive/dory/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ use super::{G1Affine, G2Affine, PublicParameters, GT};
use crate::base::impl_serde_for_ark_serde_unchecked;
use alloc::vec::Vec;
use ark_ec::pairing::{Pairing, PairingOutput};
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
use ark_serialize::{Compress, Validate};
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize, Compress, Validate};
use itertools::MultiUnzip;
use num_traits::One;
#[cfg(feature = "std")]
Expand Down Expand Up @@ -255,7 +254,6 @@ impl VerifierSetup {
}
}

#[must_use]
#[cfg(feature = "std")]
/// Function to save `VerifierSetup` to a file in binary form
pub fn save_to_file(&self, path: &Path) -> std::io::Result<()> {
Expand All @@ -275,7 +273,6 @@ impl VerifierSetup {
Ok(())
}

#[must_use]
#[cfg(feature = "std")]
/// Function to load `VerifierSetup` from a file in binary form
pub fn load_from_file(path: &Path) -> std::io::Result<Self> {
Expand Down
8 changes: 2 additions & 6 deletions crates/proof-of-sql/src/proof_primitive/dory/setup_test.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::{fs, path::Path, time::Instant};

use super::{test_rng, ProverSetup, PublicParameters, VerifierSetup};
use ark_ec::pairing::Pairing;
use std::{fs, path::Path, time::Instant};

#[test]
fn we_can_create_and_manually_check_a_small_prover_setup() {
Expand Down Expand Up @@ -166,10 +165,7 @@ fn we_can_measure_size_of_various_verifier_setups() {
let v_setup = VerifierSetup::from(&pp);
let setup_elapsed = Instant::elapsed(&setup_start);

println!(
"Created verifier setup with size {:?} in {:?}",
i, setup_elapsed
);
println!("Created verifier setup with size {i:?} in {setup_elapsed:?}");

v_setup.save_to_file(Path::new("setup.bin")).unwrap();
let setup = VerifierSetup::load_from_file(Path::new("setup.bin"));
Expand Down

0 comments on commit 05b0719

Please sign in to comment.