-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add flexibility for dory verifier folding (#69)
# Rationale for this change We need to add the Dynamic Dory commitment scheme. In order to make the existing methods work with the dynamic dory commitment scheme, the method that folds the s tensors within the verify methods needs to be modified. In particular, it needs to have access to all the folding factors at a time in order to fold properly. # What changes are included in this PR? The folding of the s tensor is now done once within the `fold_scalars_0_verify` rather than accumulating within each round. There are 2 main changes to accomplish this: * During each round/call of `extended_dory_reduce_verify`, instead of mutating the s tensors, the `alpha` folding factors are added to the `state`. * `fold_s_tensors_verify` is added as a parameter to `extended_dory_inner_product_verify` and `fold_scalars_0_verify` # Are these changes tested? Existing tests pass.
- Loading branch information
Showing
8 changed files
with
66 additions
and
32 deletions.
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
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
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