Skip to content

Commit c49b9e8

Browse files
Revert "secp256k1proto: deserialize x-only-pk with from_bytes_xonly (schnorr_verify)"
1 parent 3bcc648 commit c49b9e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/secp256k1proto/bip340.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def schnorr_verify(
5656
if len(sig) != 64:
5757
raise ValueError("The signature must be a 64-byte array.")
5858
try:
59-
P = GE.from_bytes_xonly(pubkey)
59+
P = GE.lift_x(int_from_bytes(pubkey))
6060
except ValueError:
6161
return False
6262
r = int_from_bytes(sig[0:32])

0 commit comments

Comments
 (0)