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

Commit 4733ae7

Browse files
authored
switch to branch v0.13, and fix chunk prove test (#343)
* fix v0.13 * fix
1 parent 69f764b commit 4733ae7

File tree

3 files changed

+97
-70
lines changed

3 files changed

+97
-70
lines changed

Cargo.lock

Lines changed: 88 additions & 67 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
@@ -27,7 +27,7 @@ serde_json = "1.0"
2727
tokio = { version = "1.32", features = ["full"] }
2828

2929
halo2_proofs = { git = "https://github.com/scroll-tech/halo2.git", branch = "v1.1" }
30-
prover = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "develop", default-features = false, features = ["parallel_syn", "scroll"] }
30+
prover = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "v0.13", default-features = false, features = ["parallel_syn", "scroll"] }
3131
integration = { path = "integration" }
3232

3333
[patch.crates-io]

integration/src/prove.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,23 @@ pub fn prove_and_verify_chunk(
2929
let mut prover = ChunkProver::from_params_and_assets(params_map, assets_path);
3030
log::info!("Constructed chunk prover");
3131

32+
let chunk_identifier =
33+
chunk_identifier.map_or_else(|| chunk.identifier(), |name| name.to_string());
34+
3235
let now = Instant::now();
3336
let chunk_proof = prover
34-
.gen_chunk_proof(chunk, chunk_identifier, None, Some(output_dir))
37+
.gen_chunk_proof(chunk, Some(&chunk_identifier), None, Some(output_dir))
3538
.expect("cannot generate chunk snark");
3639
log::info!(
3740
"finish generating chunk snark, elapsed: {:?}",
3841
now.elapsed()
3942
);
4043

4144
// output_dir is used to load chunk vk
42-
env::set_var("CHUNK_VK_FILENAME", "vk_chunk_0.vkey");
45+
env::set_var(
46+
"CHUNK_VK_FILENAME",
47+
&format!("vk_chunk_{chunk_identifier}.vkey"),
48+
);
4349
let verifier = new_chunk_verifier(params_map, output_dir);
4450
assert!(verifier.verify_snark(chunk_proof.to_snark()));
4551
log::info!("Verified chunk proof");

0 commit comments

Comments
 (0)