예제 #1
0
 def test_public_point(self):
     base_key = BaseKey(WALLET_FORMAT_MAIN)
     assert base_key.public_point == Point(PUBLIC_KEY_X, PUBLIC_KEY_Y)
     assert base_key.public_point == Point(PUBLIC_KEY_X, PUBLIC_KEY_Y)
예제 #2
0
def test_point():
    x, y = 5, 10
    point = Point(x, y)
    assert (x, y) == point
    assert repr(point) == "Point(x=5, y=10)"
예제 #3
0
 def public_point(self):
     """The public point (x, y)."""
     if self._public_point is None:
         self._public_point = Point(*public_key_to_coords(self._public_key))
     return self._public_point