Whether the point p1 has an even Y coordinate when expressed in affine coordinates.
(self, p1)
| 80 | return ((inv_2 * x1) % self.p, (inv_3 * y1) % self.p, 1) |
| 81 | |
| 82 | def has_even_y(self, p1): |
| 83 | """Whether the point p1 has an even Y coordinate when expressed in affine coordinates.""" |
| 84 | return not (p1[2] == 0 or self.affine(p1)[1] & 1) |
| 85 | |
| 86 | def negate(self, p1): |
| 87 | """Negate a Jacobian point tuple p1.""" |
no test coverage detected