aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/ellipticcurve/point.py
blob: b960a3a61ca9af37dacc780f05533b73e9f1bb1e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Point:

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

    def __str__(self):
        return "({x}, {y}, {z})".format(x=self.x, y=self.y, z=self.z)

    def isAtInfinity(self):
        return self.y == 0