Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/ellipticcurve/point.py: 89%

7 statements  

« prev     ^ index     » next       coverage.py v6.4.4, created at 2023-07-17 14:22 -0600

1 

2 

3class Point: 

4 

5 def __init__(self, x=0, y=0, z=0): 

6 self.x = x 

7 self.y = y 

8 self.z = z 

9 

10 def __str__(self): 

11 return "({x}, {y}, {z})".format(x=self.x, y=self.y, z=self.z) 

12 

13 def isAtInfinity(self): 

14 return self.y == 0