Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions barretenberg/cpp/src/barretenberg/chonk/chonk_batch_verifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,14 @@ bool ChonkBatchVerifier::batch_check(const std::vector<ReduceResult>& results, c
transcripts.push_back(std::make_shared<NativeTranscript>(results[idx].ipa_proof));
}

auto ipa_vk = VerifierCommitmentKey<curve::Grumpkin>{ ECCVMFlavor::ECCVM_FIXED_SIZE };
return IPA<curve::Grumpkin>::batch_reduce_verify(ipa_vk, claims, transcripts);
try {
auto ipa_vk = VerifierCommitmentKey<curve::Grumpkin>{ ECCVMFlavor::ECCVM_FIXED_SIZE };
return IPA<curve::Grumpkin>::batch_reduce_verify(ipa_vk, claims, transcripts);
} catch (...) {
// Corrupted proofs can cause deserialization errors (e.g. "point not on curve").
// Treat any exception as a batch failure so bisection can isolate the bad proof(s).
return false;
}
}

void ChonkBatchVerifier::bisect(std::vector<ReduceResult>& results,
Expand Down
Loading