Skip to content

Commit

Permalink
Update ecdsa.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore authored Mar 23, 2024
1 parent 418ed36 commit 6449f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphenebase/ecdsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6449f49

Please sign in to comment.