Skip to content

Commit

Permalink
swap incorrectly placed comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
  • Loading branch information
jsign committed Mar 17, 2024
1 parent 2bbf244 commit 55015f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/msm/pippenger.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ const Element = banderwagon.Element;
const ElementNormalized = banderwagon.ElementMSM;
const Fr = banderwagon.Fr;

// This is an implementation of "Notes on MSMs with Precomputation" by Gottfried Herold.
// This implementation is based on:
// Faster Montgomery multiplication andMulti-Scalar-Multiplication for SNARKs
// https://tches.iacr.org/index.php/TCHES/article/view/10972/10279
// plus some extra tricks from Ignacio Hagopian.

const optimals: [3]struct { length: u64, value: u4 } = .{
.{ .length = 10, .value = 4 },
Expand Down
5 changes: 1 addition & 4 deletions src/msm/precomp.zig
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ pub fn HybridPrecompMSM(
};
}

// This implementation is based on:
// Faster Montgomery multiplication andMulti-Scalar-Multiplication for SNARKs
// https://tches.iacr.org/index.php/TCHES/article/view/10972/10279
// plus some extra tricks from Ignacio Hagopian.
// This is an implementation of "Notes on MSMs with Precomputation" by Gottfried Herold.
pub fn PrecompMSM(
comptime _t: comptime_int,
comptime _b: comptime_int,
Expand Down

0 comments on commit 55015f6

Please sign in to comment.