Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpierre committed Nov 28, 2023
1 parent 35e6b1d commit d9c9211
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/sum_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,10 @@ where
)?;
}


IOPVerifierStateGeneric::check_and_generate_subclaim(&verifier_state, &claimed_sum)
}

fn extract_sum(proof: &Self::SumCheckProof) -> C::ScalarField {

proof.proofs[0].evaluations[0] + proof.proofs[0].evaluations[1]
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/transcript/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ pub trait Transcript<C: CurveGroup> {
/// get_challenge_nbits returns a field element of size nbits
fn get_challenge_nbits(&mut self, nbits: usize) -> Vec<bool>;
fn get_challenges(&mut self, n: usize) -> Vec<C::ScalarField>;
}
}
6 changes: 4 additions & 2 deletions src/utils/espresso/sum_check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

//! This module implements the sum check protocol.
use crate::{utils::virtual_polynomial::{VPAuxInfo, VirtualPolynomial}, transcript::Transcript};
use crate::{
transcript::Transcript,
utils::virtual_polynomial::{VPAuxInfo, VirtualPolynomial},
};
use ark_ec::CurveGroup;
use ark_ff::PrimeField;
use ark_poly::DenseMultilinearExtension;
Expand Down Expand Up @@ -91,7 +94,6 @@ pub trait SumCheckGeneric<C: CurveGroup> {
) -> Result<Self::SumCheckSubClaim, PolyIOPErrors>;
}


/// Trait for sum check protocol prover side APIs.
pub trait SumCheckProver<F: PrimeField>
where
Expand Down

0 comments on commit d9c9211

Please sign in to comment.