diff --git a/src/pasta/curves.rs b/src/pasta/curves.rs index 72eaa05b..9a2b9db1 100644 --- a/src/pasta/curves.rs +++ b/src/pasta/curves.rs @@ -95,6 +95,11 @@ macro_rules! new_curve_impl { $name::curve_constant_b() } + fn new_jacobian(x: Self::Base, y: Self::Base, z: Self::Base) -> CtOption { + let p = $name { x, y, z }; + CtOption::new(p, p.is_on_curve()) + } + fn jacobian_coordinates(&self) -> ($base, $base, $base) { (self.x, self.y, self.z) } @@ -148,11 +153,6 @@ macro_rules! new_curve_impl { *q = $name_affine::conditional_select(&q, &$name_affine::identity(), skip); } } - - fn new_jacobian(x: Self::Base, y: Self::Base, z: Self::Base) -> CtOption { - let p = $name { x, y, z }; - CtOption::new(p, p.is_on_curve()) - } } impl<'a> From<&'a $name_affine> for $name {