We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
from_bytes_xonly
1 parent 3bcc648 commit c49b9e8Copy full SHA for c49b9e8
python/secp256k1proto/bip340.py
@@ -56,7 +56,7 @@ def schnorr_verify(
56
if len(sig) != 64:
57
raise ValueError("The signature must be a 64-byte array.")
58
try:
59
- P = GE.from_bytes_xonly(pubkey)
+ P = GE.lift_x(int_from_bytes(pubkey))
60
except ValueError:
61
return False
62
r = int_from_bytes(sig[0:32])
0 commit comments