-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Reallocate commitment key to avoid pippenger error (#11249)
Fixes recent bug introduced by the SmallSubgroupIPA work which added an edge case where we always commit to polynomials of some fixed degree (of 259 or whatever). Pippenger was set up to work for circuit_size amount of points, which could be lower than the SmallSubgroupIPA poly sizes, so it led to buffer overflows. Fixes it by reallocating commitment key if necessary in SmallSubgroupIPA prover. Also adds an assert to commit() to check for any potential overflows.
- Loading branch information
1 parent
66f2014
commit 8fc2011
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters