Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratyush committed Dec 29, 2020
1 parent abbfd91 commit 656bc6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ec/src/msm/variable_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ impl VariableBaseMSM {
}
});

// We could first normalize `buckets` and then use mixed-addition
// here, but that's slower for the kinds of groups we care about
// (Short Weierstrass curves and Twisted Edwards curves).
let mut running_sum = G::Projective::zero();
buckets.into_iter().rev().for_each(|b| {
running_sum += &b;
Expand Down

0 comments on commit 656bc6b

Please sign in to comment.