Skip to content

Commit 1093f5e

Browse files
lispcsilathdiir
andauthored
Release v0.6.x (#792)
* fix: replace branch with tag for `halo2-lib`, `snark-verifier` and `mpt-circuit` (#779) * Replace branch with tag for `halo2-lib`, `snark-verifier` and `mpt-circuit`. * Update `snark-verifier` to `v0.1.1`. * tag snark verifier * tag mpt circuit * fix false alarm panic inside aggregator * fix false alarm panic inside aggregator --------- Co-authored-by: Steven <[email protected]>
1 parent 0a2a602 commit 1093f5e

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aggregator/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ serde_json = "1.0"
2121
rand = "0.8"
2222

2323
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_02_02" }
24-
snark-verifier = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop" }
25-
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop", default-features=false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
24+
snark-verifier = { git = "https://github.com/scroll-tech/snark-verifier", tag = "v0.1.2" }
25+
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", tag = "v0.1.2", default-features=false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
2626

2727

2828
[features]

aggregator/src/util.rs

+13-12
Original file line numberDiff line numberDiff line change
@@ -157,24 +157,25 @@ pub(crate) fn assert_conditional_equal<F: Field>(
157157

158158
#[inline]
159159
// assert a \in (b1, b2, b3)
160+
// TODO: return Error::Synthesis?
160161
pub(crate) fn assert_exist<F: Field>(
161162
a: &AssignedCell<F, F>,
162163
b1: &AssignedCell<F, F>,
163164
b2: &AssignedCell<F, F>,
164165
b3: &AssignedCell<F, F>,
165166
) {
166-
let mut t1 = F::default();
167-
let mut t2 = F::default();
168-
let mut t3 = F::default();
169-
let mut t4 = F::default();
170-
a.value().map(|f| t1 = *f);
171-
b1.value().map(|f| t2 = *f);
172-
b2.value().map(|f| t3 = *f);
173-
b3.value().map(|f| t4 = *f);
174-
assert!(
175-
t1 == t2 || t1 == t3 || t1 == t4,
176-
"t1: {t1:?}\nt2: {t2:?}\nt3: {t3:?}\nt4: {t4:?}\n",
177-
)
167+
let _ = a
168+
.value()
169+
.zip(b1.value())
170+
.zip(b2.value())
171+
.zip(b3.value())
172+
.error_if_known_and(|(((&a, &b1), &b2), &b3)| {
173+
assert!(
174+
a == b1 || a == b2 || a == b3,
175+
"a: {a:?}\nb1: {b1:?}\nb2: {b2:?}\nb3: {b3:?}\n",
176+
);
177+
!(a == b1 || a == b2 || a == b3)
178+
});
178179
}
179180

180181
#[inline]

zkevm-circuits/Cargo.toml

+5-6
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,19 @@ serde = { version = "1.0", features = ["derive"] }
3333
serde_json = "1.0.78"
3434

3535
hash-circuit = { package = "poseidon-circuit", git = "https://github.com/scroll-tech/poseidon-circuit.git", branch = "scroll-dev-0723"}
36-
#mpt-circuits = { package = "halo2-mpt-circuits", path = "../../mpt-circuit" }
3736
misc-precompiled-circuit = { package = "rmd160-circuits", git = "https://github.com/scroll-tech/misc-precompiled-circuit.git", branch = "integration" }
3837

39-
halo2-base = { git = "https://github.com/scroll-tech/halo2-lib", branch = "develop", default-features=false, features=["halo2-pse","display"] }
40-
halo2-ecc = { git = "https://github.com/scroll-tech/halo2-lib", branch = "develop", default-features=false, features=["halo2-pse","display"] }
38+
halo2-base = { git = "https://github.com/scroll-tech/halo2-lib", tag = "v0.1.0", default-features=false, features=["halo2-pse","display"] }
39+
halo2-ecc = { git = "https://github.com/scroll-tech/halo2-lib", tag = "v0.1.0", default-features=false, features=["halo2-pse","display"] }
4140

4241
maingate = { git = "https://github.com/privacy-scaling-explorations/halo2wrong", tag = "v2023_02_02" }
4342

4443
libsecp256k1 = "0.7"
4544
num-bigint = { version = "0.4" }
4645
subtle = "2.4"
4746
rand_chacha = "0.3"
48-
snark-verifier = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop" }
49-
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop", default-features=false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
47+
snark-verifier = { git = "https://github.com/scroll-tech/snark-verifier", tag = "v0.1.2" }
48+
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", tag = "v0.1.2", default-features=false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
5049
hex = "0.4.3"
5150
rayon = "1.5"
5251
once_cell = "1.17.0"
@@ -85,4 +84,4 @@ onephase = [] # debug only
8584
zktrie = []
8685
poseidon-codehash = []
8786

88-
debug-annotations = []
87+
debug-annotations = []

zktrie/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
88

99
[dependencies]
1010
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_02_02" }
11-
mpt-circuits = { package = "halo2-mpt-circuits", git = "https://github.com/scroll-tech/mpt-circuit.git", branch = "v0.5" }
11+
mpt-circuits = { package = "halo2-mpt-circuits", git = "https://github.com/scroll-tech/mpt-circuit.git", tag = "v0.5.1" }
1212
zktrie = { git = "https://github.com/scroll-tech/zktrie.git", branch = "v0.6" }
1313
hash-circuit = { package = "poseidon-circuit", git = "https://github.com/scroll-tech/poseidon-circuit.git", branch = "scroll-dev-0723"}
1414
bus-mapping = { path = "../bus-mapping" }

0 commit comments

Comments
 (0)