|
@ -75,7 +75,7 @@ where |
|
|
.double()
|
|
|
.double()
|
|
|
.into_affine();
|
|
|
.into_affine();
|
|
|
// Panic if the result is zero.
|
|
|
// Panic if the result is zero.
|
|
|
assert!(!result.is_identity());
|
|
|
|
|
|
|
|
|
assert!(!result.is_zero());
|
|
|
Ok(Self::new(F::constant(result.x), F::constant(result.y)))
|
|
|
Ok(Self::new(F::constant(result.x), F::constant(result.y)))
|
|
|
} else {
|
|
|
} else {
|
|
|
let (x1, y1) = (&self.x, &self.y);
|
|
|
let (x1, y1) = (&self.x, &self.y);
|
|
|