Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit 8300bf7

Browse files
committed
update halo2-lib branch & ecc_circuit::decompose_ec_mul_op
1 parent cb98f49 commit 8300bf7

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ halo2_proofs = { git = "https://github.com/scroll-tech/halo2.git", branch = "v1.
3737
halo2curves = { version = "0.1.0", features = [ "derive_serde" ] }
3838
poseidon-base = { package = "poseidon-base", git = "https://github.com/scroll-tech/poseidon-circuit.git", branch = "main" }
3939
hash-circuit = { package = "poseidon-circuit", git = "https://github.com/scroll-tech/poseidon-circuit.git", branch = "main" }
40-
halo2-base = { git = "https://github.com/scroll-tech/halo2-lib", branch = "ecc_double_p256", default-features=false, features=["halo2-pse","display"] }
41-
halo2-ecc = { git = "https://github.com/scroll-tech/halo2-lib", branch = "ecc_double_p256", default-features=false, features=["halo2-pse","display"] }
40+
halo2-base = { git = "https://github.com/scroll-tech/halo2-lib", branch = "develop", default-features=false, features=["halo2-pse","display"] }
41+
halo2-ecc = { git = "https://github.com/scroll-tech/halo2-lib", branch = "develop", default-features=false, features=["halo2-pse","display"] }
4242
hex = "0.4"
4343
itertools = "0.11"
4444
libsecp256k1 = "0.7"
@@ -57,8 +57,8 @@ serde = {version = "1.0", features = ["derive"] }
5757
serde_json = "1.0"
5858
serde_stacker = "0.1"
5959
sha3 = "0.10"
60-
snark-verifier = { git = "https://github.com/scroll-tech/snark-verifier", branch = "check_p256_branch" }
61-
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", branch = "check_p256_branch", default-features = false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
60+
snark-verifier = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop" }
61+
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop", default-features = false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
6262
strum = "0.25"
6363
strum_macros = "0.25"
6464
subtle = "2.4"

zkevm-circuits/src/ecc_circuit.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,9 @@ impl<F: Field, const XI_0: i64> EccCircuit<F, XI_0> {
608608
_fp12_chip: &Fp12Chip<F, FpConfig<F, Fq>, Fq12, XI_0>,
609609
powers_of_256: &[QuantumCell<F>],
610610
op: &EcMulOp,
611-
) -> EcMulDecomposed<F> {
611+
) -> EcMulDecomposed<F>
612+
// where C: CurveAffine<Base = Fq>,
613+
{
612614
log::trace!("[ECC] ==> EcMul Assignment START:");
613615
log_context_cursor!(ctx);
614616

@@ -650,7 +652,7 @@ impl<F: Field, const XI_0: i64> EccCircuit<F, XI_0> {
650652
log::trace!("[ECC] EcMul Inputs Assigned:");
651653
log_context_cursor!(ctx);
652654

653-
let point_r_got = ecc_chip.scalar_mult(
655+
let point_r_got = ecc_chip.scalar_mult::<G1Affine>(
654656
ctx,
655657
&point_p,
656658
&scalar_s.scalar.limbs().to_vec(),

0 commit comments

Comments
 (0)