Skip to content

Commit

Permalink
fix(prover): fix setup_metadata_to_setup_data_key (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy authored Sep 13, 2024
1 parent 32889be commit 4ae5a93
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions prover/crates/bin/prover_fri/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,19 @@ pub fn verify_proof(
pub fn setup_metadata_to_setup_data_key(
setup_metadata: &CircuitIdRoundTuple,
) -> ProverServiceDataKey {
ProverServiceDataKey {
circuit_id: setup_metadata.circuit_id,
round: setup_metadata.aggregation_round.into(),
let round = setup_metadata.aggregation_round.into();
match round {
AggregationRound::NodeAggregation => {
// For node aggregation only one key exist for all circuit types
ProverServiceDataKey {
circuit_id: ZkSyncRecursionLayerStorageType::NodeLayerCircuit as u8,
round,
}
}
_ => ProverServiceDataKey {
circuit_id: setup_metadata.circuit_id,
round,
},
}
}

Expand Down

0 comments on commit 4ae5a93

Please sign in to comment.