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

Prevent hypothetical overflow #2192

Merged
merged 3 commits into from
Jan 20, 2024
Merged

Conversation

vicsn
Copy link
Contributor

@vicsn vicsn commented Nov 23, 2023

Motivation

Closes https://github.com/AleoHQ/snarkVM/issues/2166

Note that with our current stack we would have never hit these cases. But they could be a hypothetical concern when we support delegated proving and someone wants to DoS the party willing to do the proving.

@vicsn vicsn requested a review from ljedrz November 23, 2023 15:34
Copy link
Collaborator

@ljedrz ljedrz left a comment

Choose a reason for hiding this comment

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

LGTM, though I'd make the error messages a bit more informative; since these are not panics, we may be missing some useful debugging context if this ever happens IRL

@howardwu
Copy link
Member

Moving back to draft, as CI is failing

@howardwu howardwu marked this pull request as draft November 25, 2023 23:51
@vicsn vicsn force-pushed the prevent_addition_overflow_srs branch from dd94cf4 to aedbb05 Compare November 27, 2023 11:02
@vicsn vicsn force-pushed the prevent_addition_overflow_srs branch from aedbb05 to 07b7f08 Compare November 27, 2023 11:03
@vicsn
Copy link
Contributor Author

vicsn commented Nov 27, 2023

Fixed the broken test. The two CI tests which are still failing are unrelated to this PR and succeed locally. Perhaps because reduce_pk_size_3 (which this merges into) requires resampling

@vicsn vicsn marked this pull request as ready for review November 27, 2023 18:28
@howardwu howardwu merged commit 09142d9 into reduce_pk_size_3 Jan 20, 2024
75 of 77 checks passed
@howardwu howardwu deleted the prevent_addition_overflow_srs branch January 20, 2024 22:44
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.

3 participants