Skip to content

Commit 0082b41

Browse files
committed
fix: system proving id of zisk
1 parent 477b244 commit 0082b41

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

aggregation_mode/proof_aggregator/aggregation_programs/zisk/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
33
use sha2::Digest;
44
use sha3::Keccak256;
55

6-
const ZISK_PROVING_SYSTEM_ID: u16 = 1;
6+
const ZISK_PROVING_SYSTEM_ID: u16 = 3;
77

88
#[derive(Serialize, Deserialize)]
99
pub struct ChunkAggregatorInput {

aggregation_mode/proof_aggregator/src/aggregators/zisk_aggregator.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ pub(crate) fn run_chunk_aggregator(
196196
)));
197197
}
198198

199+
// Files needed to generate snark proof
200+
let recursivef_path = format!("{ZISK_PROGRAMS_DIR}/recursivef.json");
201+
std::fs::File::create(&recursivef_path)?;
202+
let snark_output_dir = format!("{ZISK_PROGRAMS_DIR}/{SNARK_OUTPUT_PATH}");
203+
std::fs::create_dir_all(&snark_output_dir)?;
204+
let snark_output_proofs_dir = format!("{snark_output_dir}/proofs");
205+
std::fs::create_dir_all(&snark_output_proofs_dir)?;
206+
199207
// wrap it to snark
200208
let stark_proof_path = format!("{OUTPUT_PATH}/vadcop_final_proof.bin");
201209
let home_dir = std::env::var("HOME").expect("HOME environment variable not set");

0 commit comments

Comments
 (0)