Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Nov 20, 2024
1 parent b49288d commit 032d82a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ceno_zkvm/src/scheme/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ impl TowerProver {
virtual_polys.add_mle_list(vec![&eq, &q1, &q2], *alpha_denominator);
}
}
tracing::debug!("generated tower proof at round {}/{}", round, max_round_index);
tracing::debug!("generated tower proof at round {round}/{max_round_index}");

let wrap_batch_span = entered_span!("wrap_batch");
// NOTE: at the time of adding this span, visualizing it with the flamegraph layer
Expand Down
8 changes: 4 additions & 4 deletions ceno_zkvm/src/scheme/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ZKVMVerifier<E, PCS>
transcript: Transcript<E>,
does_halt: bool,
) -> Result<bool, ZKVMError> {
// require ecall/halt proof to exist, depending whether we expect a halt.
// require ecall/halt proof to exist, depending on whether we expect a halt.
let num_instances = vm_proof
.opcode_proofs
.get(&HaltInstruction::<E>::name())
.map(|(_, p)| p.num_instances)
.unwrap_or(0);
.unwrap_or_default();
if num_instances != (does_halt as usize) {
return Err(ZKVMError::VerifyError(format!(
"ecall/halt num_instances={}, expected={}",
Expand Down Expand Up @@ -117,12 +117,12 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ZKVMVerifier<E, PCS>
}
}

for (name, (_, proof)) in vm_proof.opcode_proofs.iter() {
for (name, (_, proof)) in &vm_proof.opcode_proofs {
tracing::debug!("read {}'s commit", name);
PCS::write_commitment(&proof.wits_commit, &mut transcript)
.map_err(ZKVMError::PCSError)?;
}
for (name, (_, proof)) in vm_proof.table_proofs.iter() {
for (name, (_, proof)) in &vm_proof.table_proofs {
tracing::debug!("read {}'s commit", name);
PCS::write_commitment(&proof.wits_commit, &mut transcript)
.map_err(ZKVMError::PCSError)?;
Expand Down

0 comments on commit 032d82a

Please sign in to comment.