Skip to content

Commit

Permalink
Merge pull request #190 from abitmore/patch-5
Browse files Browse the repository at this point in the history
Update ecdsa.py
  • Loading branch information
xeroc committed Jul 14, 2024
2 parents 418ed36 + 6449f49 commit 87fec67
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 87fec67

Please sign in to comment.