Skip to content

Commit

Permalink
MSM optimisations: CycloneMSM (privacy-scaling-explorations#130)
Browse files Browse the repository at this point in the history
* impl msm with batch addition

* bring back multiexp serial

* parallelize coeffs to repr

Co-authored-by: Han <[email protected]>

* parallelize bases to affine

Co-authored-by: Han <[email protected]>

* add missing dependency

* bring back old implementation

postfix new one as `_independent_points`

---------

Co-authored-by: Han <[email protected]>
  • Loading branch information
2 people authored and jonathanpwang committed Apr 24, 2024
1 parent 76eb62d commit b97cc60
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 154 deletions.
2 changes: 1 addition & 1 deletion src/ed25519/fq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption};
#[cfg(feature = "derive_serde")]
use serde::{Deserialize, Serialize};

use crate::arithmetic::{adc, mac, macx, sbb};
use crate::arithmetic::{adc, bigint_geq, mac, macx, sbb};

/// This represents an element of $\mathbb{F}_q$ where
///
Expand Down
2 changes: 1 addition & 1 deletion src/ed25519/fr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption};
#[cfg(feature = "derive_serde")]
use serde::{Deserialize, Serialize};

use crate::arithmetic::{adc, mac, macx, sbb};
use crate::arithmetic::{adc, bigint_geq, mac, macx, sbb};

/// This represents an element of $\mathbb{F}_q$ where
///
Expand Down
Loading

0 comments on commit b97cc60

Please sign in to comment.