Skip to content

Commit

Permalink
Comment out debug assertion in aggregate_snarks
Browse files Browse the repository at this point in the history
  • Loading branch information
nyunyunyunyu committed Dec 4, 2024
1 parent f847c01 commit 39094a3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions snark-verifier-sdk/src/halo2/aggregation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use halo2_base::{
use itertools::Itertools;
use rand::{rngs::StdRng, SeedableRng};
use serde::{Deserialize, Serialize};
#[cfg(debug_assertions)]
use snark_verifier::util::arithmetic::fe_to_limbs;
// #[cfg(debug_assertions)]
// use snark_verifier::util::arithmetic::fe_to_limbs;
use snark_verifier::{
loader::{
self,
Expand Down Expand Up @@ -461,15 +461,15 @@ where
})
.collect();

#[cfg(debug_assertions)]
{
let KzgAccumulator { lhs, rhs } = _accumulator;
let instances =
[lhs.x, lhs.y, rhs.x, rhs.y].map(fe_to_limbs::<_, Fr, LIMBS, BITS>).concat();
for (lhs, rhs) in instances.iter().zip(accumulator.iter()) {
assert_eq!(lhs, rhs.value());
}
}
// #[cfg(debug_assertions)]
// {
// let KzgAccumulator { lhs, rhs } = _accumulator;
// let instances =
// [lhs.x, lhs.y, rhs.x, rhs.y].map(fe_to_limbs::<_, Fr, LIMBS, BITS>).concat();
// for (lhs, rhs) in instances.iter().zip(accumulator.iter()) {
// assert_eq!(lhs, rhs.value());
// }
// }
// put back `pool` into `builder`
*pool = loader.take_ctx();
SnarkAggregationOutput { previous_instances, accumulator, preprocessed, proof_transcripts }
Expand Down

0 comments on commit 39094a3

Please sign in to comment.