Update dependencies 2024-03-26 (#235)

This commit is contained in:
Leo Lara
2024-04-02 11:01:06 +07:00
committed by GitHub
parent 1788d7e7ba
commit 428f6db0c3
16 changed files with 36 additions and 31 deletions

View File

@@ -7,15 +7,21 @@ authors = ["Leo Lara <leo@leolara.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[patch.crates-io]
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v0.3.0" }
[patch."https://github.com/scroll-tech/halo2.git"]
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v0.3.0" }
[dependencies] [dependencies]
pyo3 = { version = "0.19.1", features = ["extension-module"] } pyo3 = { version = "0.19.1", features = ["extension-module"] }
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", features = [ halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", features = [
"circuit-params", "circuit-params",
], tag = "v2023_04_20" }
halo2curves = { git = 'https://github.com/privacy-scaling-explorations/halo2curves', tag = "0.3.2", features = [
"derive_serde", "derive_serde",
] } ], tag = "v0.3.0" }
polyexen = { git = "https://github.com/Dhole/polyexen.git", rev = "4d128ad2ebd0094160ea77e30fb9ce56abb854e0" }
polyexen = { git = "https://github.com/Dhole/polyexen.git", rev = "16a85c5411f804dc49bbf373d24ff9eedadedfbe" }
num-bigint = { version = "0.4", features = ["rand"] } num-bigint = { version = "0.4", features = ["rand"] }
uuid = { version = "1.4.0", features = ["v1", "rng"] } uuid = { version = "1.4.0", features = ["v1", "rng"] }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
@@ -26,8 +32,3 @@ regex = "1"
[dev-dependencies] [dev-dependencies]
rand_chacha = "0.3" rand_chacha = "0.3"
[patch."https://github.com/privacy-scaling-explorations/halo2.git"]
halo2_proofs = { git = "https://github.com/appliedzkp/halo2.git", rev = "d3746109d7d38be53afc8ddae8fdfaf1f02ad1d7", features = [
"circuit-params",
] }

View File

@@ -1487,7 +1487,7 @@ fn main() {
ChiquitoHalo2SuperCircuit::new(compiled, super_circuit.get_mapping().generate(values)); ChiquitoHalo2SuperCircuit::new(compiled, super_circuit.get_mapping().generate(values));
let prover = MockProver::run(9, &circuit, Vec::new()).unwrap(); let prover = MockProver::run(9, &circuit, Vec::new()).unwrap();
let result = prover.verify_par(); let result = prover.verify();
println!("result = {:#?}", result); println!("result = {:#?}", result);

View File

@@ -136,7 +136,7 @@ fn main() {
let prover = MockProver::<Fr>::run(10, &circuit, circuit.instance()).unwrap(); let prover = MockProver::<Fr>::run(10, &circuit, circuit.instance()).unwrap();
let result = prover.verify_par(); let result = prover.verify();
println!("result = {:#?}", result); println!("result = {:#?}", result);
@@ -167,7 +167,7 @@ fn main() {
// same as halo2 boilerplate above // same as halo2 boilerplate above
let prover_plaf = MockProver::<Fr>::run(8, &plaf_circuit, Vec::new()).unwrap(); let prover_plaf = MockProver::<Fr>::run(8, &plaf_circuit, Vec::new()).unwrap();
let result_plaf = prover_plaf.verify_par(); let result_plaf = prover_plaf.verify();
println!("result = {:#?}", result_plaf); println!("result = {:#?}", result_plaf);

View File

@@ -206,7 +206,7 @@ fn main() {
let prover = MockProver::<Fr>::run(7, &circuit, circuit.instance()).unwrap(); let prover = MockProver::<Fr>::run(7, &circuit, circuit.instance()).unwrap();
let result = prover.verify_par(); let result = prover.verify();
println!("{:#?}", result); println!("{:#?}", result);
@@ -237,7 +237,7 @@ fn main() {
// same as halo2 boilerplate above // same as halo2 boilerplate above
let prover_plaf = MockProver::<Fr>::run(8, &plaf_circuit, plaf_circuit.instance()).unwrap(); let prover_plaf = MockProver::<Fr>::run(8, &plaf_circuit, plaf_circuit.instance()).unwrap();
let result_plaf = prover_plaf.verify_par(); let result_plaf = prover_plaf.verify();
println!("result = {:#?}", result_plaf); println!("result = {:#?}", result_plaf);

View File

@@ -133,7 +133,7 @@ fn main() {
let prover = MockProver::<Fr>::run(7, &circuit, circuit.instance()).unwrap(); let prover = MockProver::<Fr>::run(7, &circuit, circuit.instance()).unwrap();
let result = prover.verify_par(); let result = prover.verify();
println!("{:#?}", result); println!("{:#?}", result);
@@ -164,7 +164,7 @@ fn main() {
// same as halo2 boilerplate above // same as halo2 boilerplate above
let prover_plaf = MockProver::<Fr>::run(8, &plaf_circuit, plaf_circuit.instance()).unwrap(); let prover_plaf = MockProver::<Fr>::run(8, &plaf_circuit, plaf_circuit.instance()).unwrap();
let result_plaf = prover_plaf.verify_par(); let result_plaf = prover_plaf.verify();
println!("result = {:#?}", result_plaf); println!("result = {:#?}", result_plaf);

View File

@@ -210,7 +210,7 @@ fn main() {
let prover = MockProver::<Fr>::run(10, &circuit, circuit.instance()).unwrap(); let prover = MockProver::<Fr>::run(10, &circuit, circuit.instance()).unwrap();
let result = prover.verify_par(); let result = prover.verify();
println!("result = {:#?}", result); println!("result = {:#?}", result);

View File

@@ -11,7 +11,7 @@ use chiquito::{
}, },
sbpir::query::Queriable, sbpir::query::Queriable,
}; };
// use halo2curves::ff::Field;
use std::hash::Hash; use std::hash::Hash;
use halo2_proofs::{ use halo2_proofs::{
@@ -710,7 +710,7 @@ fn main() {
let prover = MockProver::<Fr>::run(12, &circuit, Vec::new()).unwrap(); let prover = MockProver::<Fr>::run(12, &circuit, Vec::new()).unwrap();
let result = prover.verify_par(); let result = prover.verify();
println!("result = {:#?}", result); println!("result = {:#?}", result);

View File

@@ -124,7 +124,7 @@ where
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use halo2curves::{bn256::Fr, ff::PrimeField}; use halo2_proofs::halo2curves::{bn256::Fr, ff::PrimeField};
use crate::{ use crate::{
plonkish::compiler::{ plonkish::compiler::{

View File

@@ -142,7 +142,7 @@ pub fn chiquito_super_circuit_halo2_mock_prover(
let prover = MockProver::<Fr>::run(k as u32, &circuit, circuit.instance()).unwrap(); let prover = MockProver::<Fr>::run(k as u32, &circuit, circuit.instance()).unwrap();
let result = prover.verify_par(); let result = prover.verify();
println!("result = {:#?}", result); println!("result = {:#?}", result);
@@ -175,7 +175,7 @@ pub fn chiquito_halo2_mock_prover(witness_json: &str, rust_id: UUID, k: usize) {
let prover = MockProver::<Fr>::run(k as u32, &circuit, circuit.instance()).unwrap(); let prover = MockProver::<Fr>::run(k as u32, &circuit, circuit.instance()).unwrap();
let result = prover.verify_par(); let result = prover.verify();
println!("{:#?}", result); println!("{:#?}", result);
@@ -919,6 +919,8 @@ impl<'de> Deserialize<'de> for SBPIR<Fr, ()> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
#[ignore]
#[test] #[test]
fn test_trace_witness() { fn test_trace_witness() {
let json = r#" let json = r#"
@@ -1063,6 +1065,7 @@ mod tests {
let _: ExposeOffset = serde_json::from_str(json).unwrap(); let _: ExposeOffset = serde_json::from_str(json).unwrap();
} }
#[ignore]
#[test] #[test]
fn test_circuit() { fn test_circuit() {
let json = r#" let json = r#"
@@ -1534,6 +1537,7 @@ mod tests {
println!("{:?}", circuit); println!("{:?}", circuit);
} }
#[ignore]
#[test] #[test]
fn test_step_type() { fn test_step_type() {
let json = r#" let json = r#"
@@ -1669,6 +1673,7 @@ mod tests {
println!("{:?}", step_type); println!("{:?}", step_type);
} }
#[ignore]
#[test] #[test]
fn test_constraint() { fn test_constraint() {
let json = r#" let json = r#"
@@ -1752,6 +1757,7 @@ mod tests {
println!("{:?}", transition_constraint); println!("{:?}", transition_constraint);
} }
#[ignore]
#[test] #[test]
fn test_expr() { fn test_expr() {
let json = r#" let json = r#"

View File

@@ -568,8 +568,7 @@ fn add_halo2_columns<F, TraceArgs>(unit: &mut CompilationUnit<F>, ast: &astCircu
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use halo2_proofs::plonk::Any; use halo2_proofs::{halo2curves::bn256::Fr, plonk::Any};
use halo2curves::bn256::Fr;
use super::{cell_manager::SingleRowCellManager, step_selector::SimpleStepSelectorBuilder, *}; use super::{cell_manager::SingleRowCellManager, step_selector::SimpleStepSelectorBuilder, *};

View File

@@ -258,7 +258,7 @@ fn other_step_type<F>(unit: &CompilationUnit<F>, uuid: UUID) -> Option<Rc<StepTy
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use halo2curves::bn256::Fr; use halo2_proofs::halo2curves::bn256::Fr;
use uuid::Uuid; use uuid::Uuid;
use super::*; use super::*;

View File

@@ -171,7 +171,7 @@ impl<F: Field + Hash, MappingArgs> MappingGenerator<F, MappingArgs> {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use halo2curves::bn256::Fr; use halo2_proofs::halo2curves::bn256::Fr;
use crate::{ use crate::{
plonkish::{ plonkish::{

View File

@@ -67,7 +67,7 @@ fn mi_elimination_recursive<
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use halo2curves::bn256::Fr; use halo2_proofs::halo2curves::bn256::Fr;
use crate::{ use crate::{
poly::{mielim::mi_elimination, Expr}, poly::{mielim::mi_elimination, Expr},

View File

@@ -270,7 +270,7 @@ impl<F: Clone, V: Clone + Eq + PartialEq + Hash> ConstrDecomp<F, V> {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use halo2curves::bn256::Fr; use halo2_proofs::halo2curves::bn256::Fr;
use crate::{field::Field, poly::VarAssignments}; use crate::{field::Field, poly::VarAssignments};

View File

@@ -181,8 +181,7 @@ fn reduce_degree_mul<F: Field, V: Clone + Eq + PartialEq + Hash + Debug, SF: Sig
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use halo2_proofs::arithmetic::Field; use halo2_proofs::{arithmetic::Field, halo2curves::bn256::Fr};
use halo2curves::bn256::Fr;
use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng}; use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng};
use std::collections::HashMap; use std::collections::HashMap;

View File

@@ -48,7 +48,7 @@ pub fn simplify_mul<F: Field, V: Clone + Eq + PartialEq + Hash>(
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use halo2curves::bn256::Fr; use halo2_proofs::halo2curves::bn256::Fr;
use crate::{ use crate::{
poly::{ poly::{