Skip to content

Commit

Permalink
fix: remove curve_constant_a
Browse files Browse the repository at this point in the history
  • Loading branch information
einar-taiko committed Aug 30, 2023
1 parent 93ef06b commit 8ab6cc8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
File renamed without changes.
5 changes: 0 additions & 5 deletions src/derive/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,10 +746,6 @@ macro_rules! new_curve_impl {
let zz1 = p.zz;
let zzz1 = p.zzz;

// curve constants
const A: $base = $name_jac_ext::curve_constant_a();
debug_assert_eq!(A, $base::zero());

// intermediates
let u = y1.double();
let v = u.square();
Expand All @@ -759,7 +755,6 @@ macro_rules! new_curve_impl {

// For the curves we use, the curve constant `a` is always zero,
// so we can leave out the last term.
// was: let m = x1_sqr.double()+x1_sqr + A*zz1.square();
let m = x1_sqr.double()+x1_sqr;

// p+p
Expand Down

0 comments on commit 8ab6cc8

Please sign in to comment.