diff --git a/graphenebase/ecdsa.py b/graphenebase/ecdsa.py index 5461500..876cf62 100644 --- a/graphenebase/ecdsa.py +++ b/graphenebase/ecdsa.py @@ -105,7 +105,7 @@ def recover_public_key(digest, signature, i, message=None): message = bytes(message, "utf-8") # pragma: no cover sigder = encode_dss_signature(r, s) public_key = ec.EllipticCurvePublicNumbers( - Q._Point__x, Q._Point__y, ec.SECP256K1() + Q.x(), Q.y(), ec.SECP256K1() ).public_key(default_backend()) public_key.verify(sigder, message, ec.ECDSA(hashes.SHA256())) return public_key