Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check SR from batch proofs matches the SR from the DS #14

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

ToniRamirezM
Copy link
Contributor

Description

Every time the aggregator gets a new batch proof from the prover, it checks that the resulting SR is the expected one, retrieved from the data stream. If the check fails, it fatals.

Until now, it was only checked for final proofs, it makes more sense to check at batch level, as some final proof would not be generated in case a SR mismatches.

Copy link

sonarcloud bot commented Jul 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@ToniRamirezM ToniRamirezM requested a review from a team July 3, 2024 09:32
@ToniRamirezM ToniRamirezM self-assigned this Jul 3, 2024

var v [8]uint64
var j = 0
for i := 19; i < 19+8; i++ {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract 19 to some constant (probably also 8).

Comment on lines +355 to +356
if err != nil {
log.Fatal(err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick

Suggested change
if err != nil {
log.Fatal(err)
var (
v [8]uint64
j = 0
)

Copy link

sonarcloud bot commented Aug 8, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@ToniRamirezM ToniRamirezM merged commit 624ecc3 into develop Aug 8, 2024
3 of 4 checks passed
@ToniRamirezM ToniRamirezM deleted the feature/CheckSRFromBatchProof branch August 8, 2024 15:51
Stefan-Ethernal pushed a commit that referenced this pull request Sep 17, 2024
* feat: check SR from batch proofs matches the SR from the DS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants