Skip to content

Commit

Permalink
add light-test feature to decider_eth_circuit to use it in solidity-v…
Browse files Browse the repository at this point in the history
…erifier tests without the big circuit
  • Loading branch information
arnaucube committed Apr 11, 2024
1 parent e1728c2 commit 68edf1d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions folding-schemes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ tracing-subscriber = { version = "0.2" }

[features]
default = ["parallel"]
light-test = []

parallel = [
"ark-std/parallel",
Expand Down
7 changes: 3 additions & 4 deletions folding-schemes/src/folding/nova/decider_eth_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ where

// The following two checks (and their respective allocations) are disabled for normal
// tests since they take several millions of constraints and would take several minutes
// (and RAM) to run the test.
/* // TODO TMP, next code block is commented to avoid executing it in the solidity-verifiers test temporarily
#[cfg(not(test))]
// (and RAM) to run the test. It is active by default, and not active only when
// 'light-test' feature is used.
#[cfg(not(feature = "light-test"))]
{
// imports here instead of at the top of the file, so we avoid having multiple
// `#[cfg(not(test))]`
Expand Down Expand Up @@ -486,7 +486,6 @@ where
NonNativeFieldVar<C2::ScalarField, CF1<C1>>,
>::check(cf_r1cs, cf_W_i.E, cf_U_i.u.clone(), cf_z_U)?;
}
*/

// 6. check KZG challenges
let (incircuit_c_W, incircuit_c_E) = KZGChallengesGadget::<C1>::get_challenges_gadget(
Expand Down
2 changes: 1 addition & 1 deletion folding-schemes/src/utils/espresso/sum_check/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl<C: CurveGroup> SumCheckVerifier<C> for IOPVerifierState<C> {
.clone()
.into_iter()
.zip(self.challenges.clone().into_iter())
.map(|(evaluations, challenge)| {
.map(|(coeffs, challenge)| {
// Removed check on number of evaluations here since verifier receives polynomial in coeffs form
let prover_poly = DensePolynomial::from_coefficients_slice(&coeffs);
Ok(prover_poly.evaluate(&challenge))
Expand Down
2 changes: 1 addition & 1 deletion solidity-verifiers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ark-groth16 = "0.4"
askama = { version = "0.12.0", features = ["config"], default-features = false }
ark-bn254 = "0.4.0"
ark-poly-commit = "0.4.0"
folding-schemes = { path = "../folding-schemes/" }
itertools = "0.12.1"
ark-serialize = "0.4.1"
revm = "3.5.0"
Expand All @@ -28,6 +27,7 @@ tracing = { version = "0.1", default-features = false, features = [ "attributes"
tracing-subscriber = { version = "0.2" }
ark-grumpkin = {version="0.4.0", features=["r1cs"]}
rand = "0.8.5"
folding-schemes = { path = "../folding-schemes/", features=["light-test"]}

[features]
default = ["parallel"]
Expand Down

0 comments on commit 68edf1d

Please sign in to comment.