forked from microsoft/Nova
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor MSM instances in the IPA (microsoft#290)
* refactor: remove unneeded MSM from IPA - Added new trait usage and extended `AffineExt` with more bounds in `src/provider/traits.rs` to enable greater functionality. - new bounds on AffineExt are trivially satisfied and parrot existing ones, they are repeated to work around the lack of associated_type_bounds - Optimized vector processing in the `fold` method of `src/provider/pedersen.rs`. Element-wise vector addition replaced the previous multiscalar multiplication method. * chore: remove unneeded trait bounds * chore: some simplifications * refactor: Optimize commitment key handling and IPA - Transitioned variable ck and ck_c to mutable to facilitate in-place operations. - Optimized the `split_at` function in `Pedersen.rs` using the `split_off` method. - Reconfigured the `combine` function to clone and chain iterables for expedited vector creation. - Reassessed the `scale` function to in-place operations, eliminating the need for new struct instances. - Streamlined code in `scale` and `fold` functions by removing superfluous variable assignments. * refactor: test going back to MSM in fold
- Loading branch information
1 parent
b168f27
commit 6fde742
Showing
5 changed files
with
70 additions
and
90 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