Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit 90eebff

Browse files
authored
upgrade halo2 ecosystem dependencies (#1749)
### Description - halo2 (v2023_04_20 -> v0.3.0) - halo2wrong (v2023_04_20 -> v2024_01_31) - snark-verifier (v2023_04_20 -> v2024_01_31) - remove halo2curves patching and fetch from `crate-io`, which got latest release `0.6.0` ### Issue Link #1691 ### Type of change - [x] New feature (non-breaking change which adds functionality)
1 parent fc4964c commit 90eebff

File tree

31 files changed

+134
-148
lines changed

31 files changed

+134
-148
lines changed

Cargo.lock

Lines changed: 38 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ members = [
1616
]
1717

1818
[patch.crates-io]
19-
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_04_20" }
19+
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v0.3.0" }
2020

2121
# Definition of benchmarks profile to use.
2222
[profile.bench]

bus-mapping/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mock = { path = "../mock", optional = true }
1212

1313
ethers-core = "=2.0.10"
1414
ethers-providers = "=2.0.10"
15-
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_04_20" }
15+
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v0.3.0" }
1616
itertools = "0.10"
1717
lazy_static = "1.4"
1818
log = "0.4.14"
@@ -21,7 +21,7 @@ serde_json = "1.0.66"
2121
strum = "0.24"
2222
strum_macros = "0.24"
2323
revm-precompile = { version = "=2.2.0", default-features = false, optional = true }
24-
24+
2525
[dev-dependencies]
2626
hex = "0.4.3"
2727
pretty_assertions = "1.0.0"

circuit-benchmarks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_04_20" }
10+
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v0.3.0" }
1111
ark-std = { version = "0.3", features = ["print-trace"] }
1212
zkevm-circuits = { path = "../zkevm-circuits", features = ["test-circuits"] }
1313
bus-mapping = { path = "../bus-mapping", features = ["test"] }

eth-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ethers-core = "=2.0.10"
1010
ethers-signers = "=2.0.10"
1111
hex = "0.4"
1212
lazy_static = "1.4"
13-
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_04_20" }
13+
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v0.3.0" }
1414
regex = "1.5.4"
1515
serde = {version = "1.0.130", features = ["derive"] }
1616
serde_json = "1.0.66"

gadgets/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["The appliedzkp team"]
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_04_20" }
9+
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v0.3.0" }
1010
sha3 = "0.7.2"
1111
eth-types = { path = "../eth-types" }
1212
digest = "0.7.6"

gadgets/src/batched_is_zero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ mod test {
242242
};
243243
let k = 4;
244244
let prover = MockProver::<Fr>::run(k, &circuit, vec![]).unwrap();
245-
prover.assert_satisfied_par()
245+
prover.assert_satisfied()
246246
}
247247

248248
#[test]

gadgets/src/is_zero.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ mod test {
171171
_marker: PhantomData,
172172
};
173173
let prover = MockProver::<Fp>::run(k, &circuit, vec![]).unwrap();
174-
prover.assert_satisfied_par()
174+
prover.assert_satisfied()
175175
}};
176176
}
177177

@@ -188,7 +188,7 @@ mod test {
188188
_marker: PhantomData,
189189
};
190190
let prover = MockProver::<Fp>::run(k, &circuit, vec![]).unwrap();
191-
assert!(prover.verify_par().is_err());
191+
assert!(prover.verify().is_err());
192192
}};
193193
}
194194

gadgets/src/mul_add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ mod test {
401401
_marker: PhantomData,
402402
};
403403
let prover = MockProver::<Fp>::run(k, &circuit, vec![]).unwrap();
404-
prover.assert_satisfied_par()
404+
prover.assert_satisfied()
405405
}};
406406
}
407407

integration-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ url = "2.2.2"
1919
pretty_assertions = "1.0.0"
2020
log = "0.4.14"
2121
env_logger = "0.9"
22-
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_04_20" }
22+
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v0.3.0" }
2323
rand_chacha = "0.3"
2424
paste = "1.0"
2525
rand_xorshift = "0.3.0"

0 commit comments

Comments
 (0)