Skip to content

Commit

Permalink
Merge branch 'v1.1' into sync-halo2-lib-0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kunxian-xia committed Jan 12, 2024
2 parents b837de6 + 84003a2 commit 109522e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion halo2_gadgets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ halo2curves = { version = "0.1.0" }
proptest = { version = "1.0.0", optional = true }
rand = "0.8"
subtle = "2.3"
uint = "0.9.2"
uint = "0.9.2"

# Developer tooling dependencies
plotters = { version = "0.3.0", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/src/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,13 @@ where
q
}

/// This utility function will parallelize an operation that is to be
pub fn par_invert<F: Field>(values: &mut [F]) {
parallelize(values, |values, _start| {
values.batch_invert();
});
}

/// This utility function will parallelize an operation that is to be
/// performed over a mutable slice.
pub(crate) fn parallelize_internal<T: Send, F: Fn(&mut [T], usize) + Send + Sync + Clone>(
v: &mut [T],
Expand Down
1 change: 0 additions & 1 deletion halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use ff::Field;
use sealed::SealedPhase;
use std::collections::BTreeMap;
use std::fmt::Debug;
//use std::fmt::Debug;
use std::iter::{Product, Sum};
use std::ops::Range;
use std::{
Expand Down
6 changes: 3 additions & 3 deletions halo2_proofs/src/plonk/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ where
// Sample theta challenge for keeping lookup columns linearly independent
let theta: ChallengeTheta<_> = transcript.squeeze_challenge_scalar();

let lookups_permuted = (0..num_proofs)
let lookups_prepared = (0..num_proofs)
.map(|_| -> Result<Vec<_>, _> {
// Hash each lookup permuted commitment
// Hash each lookup prepared commitment
vk.cs
.lookups
.iter()
Expand All @@ -146,7 +146,7 @@ where
})
.collect::<Result<Vec<_>, _>>()?;

let lookups_committed = lookups_permuted
let lookups_committed = lookups_prepared
.into_iter()
.map(|lookups| {
// Hash each lookup sum commitment
Expand Down

0 comments on commit 109522e

Please sign in to comment.