Skip to content

Commit

Permalink
Fix prover for KZG commitment.
Browse files Browse the repository at this point in the history
  • Loading branch information
martun committed Sep 19, 2024
1 parent 498376a commit 1ba5e10
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ namespace nil {
if (!_skip_commitment_scheme_eval_proofs) {
_proof.eval_proof.eval_proof = _commitment_scheme.proof_eval(transcript);
} else {
// This is required for aggregated prover. If we do not run the LPC proof right now,
// we still need to push the merkle tree roots into the transcript.
_commitment_scheme.eval_polys_and_add_roots_to_transcipt(transcript);
if constexpr (nil::crypto3::zk::is_lpc<commitment_scheme_type>) {
// This is required for aggregated prover. If we do not run the LPC proof right now,
// we still need to push the merkle tree roots into the transcript.
_commitment_scheme.eval_polys_and_add_roots_to_transcipt(transcript);
}
}

return _proof;
Expand Down

0 comments on commit 1ba5e10

Please sign in to comment.