test/functional/test_framework/key.py
def on_curve(self, p1):
        """Determine whether a Jacobian tuple p is on the curve (and not infinity)"""
        x1, y1, z1 = p1
        z2 = pow(z1, 2, self.p)
        z4 = pow(z2, 2, self.p)
        return z1 != 0 and (pow(x1, 3, self.p) + self.a * x1 *
                            z4 + self.b * z2 * z4 - pow(y1, 2, self.p)) % self.p == 0
Determine whether a Jacobian tuple p is on the curve (and not infinity)
Determine whether a Jacobian tuple p is on the curve (and not infinity)
Determine whether a Jacobian tuple p is on the curve ( and not infinity )
def on_curve(self, p1):
        x1, y1, z1 = p1
        z2 = pow(z1, 2, self.p)
        z4 = pow(z2, 2, self.p)
        return z1 != 0 and (pow(x1, 3, self.p) + self.a * x1 *
                            z4 + self.b * z2 * z4 - pow(y1, 2, self.p)) % self.p == 0
def on_curve ( self , p1 ) : x1 , y1 , z1 = p1 z2 = pow ( z1 , 2 , self . p ) z4 = pow ( z2 , 2 , self . p ) return z1 != 0 and ( pow ( x1 , 3 , self . p ) + self . a * x1 * z4 + self . b * z2 * z4 - pow ( y1 , 2 , self . p ) ) % self . p == 0
Determine whether a Jacobian tuple p is on the curve (and not infinity)
Determine whether a Jacobian tuple p is on the curve ( and not infinity )
"""Determine whether a Jacobian tuple p is on the curve (and not infinity)"""
self
p1