forked from argumentcomputer/arecibo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Refactors CPU MSM operations using halo2curves library
- Expanded the `msm` module within the `provider/util` directory and introduced a new function, `cpu_best_msm`. - Changed the curves library dependency in `bn256_grumpkin.rs` from `pasta_curves` to `halo2curves`, - Removed the `msm.rs` file along with two associated functions `cpu_msm_serial` and `cpu_best_msm` used for non-GPU accelerated operations, and all related tests. - Reorganized the import of `CurveAffine, CurveExt` from the `halo2curves` library in `provider/mod.rs`. Fixes argumentcomputer#193
- Loading branch information
1 parent
d8008c3
commit 547539c
Showing
4 changed files
with
13 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
/// Utilities for provider module | ||
pub(in crate::provider) mod fb_msm; | ||
pub(in crate::provider) mod msm; | ||
pub mod msm { | ||
use halo2curves::msm::best_multiexp; | ||
use halo2curves::CurveAffine; | ||
|
||
// this argument swap is useful until Rust gets named arguments | ||
// and saves significant complexity in macro code | ||
pub fn cpu_best_msm<C: CurveAffine>(bases: &[C], scalars: &[C::Scalar]) -> C::Curve { | ||
best_multiexp(scalars, bases) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.