From 1a4b08ab72690caedae8b5398dde0fedd0a48856 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Sat, 6 Jul 2019 14:11:52 +0000 Subject: [PATCH] Fix point_from_bytes in bip-schnorr reference implementation --- bip-schnorr/reference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-schnorr/reference.py b/bip-schnorr/reference.py index 48a36a63..d3efb528 100644 --- a/bip-schnorr/reference.py +++ b/bip-schnorr/reference.py @@ -34,7 +34,7 @@ def bytes_from_point(P): return (b'\x03' if P[1] & 1 else b'\x02') + bytes_from_int(P[0]) def point_from_bytes(b): - if b[0] in [b'\x02', b'\x03']: + if b[0:1] in [b'\x02', b'\x03']: odd = b[0] - 0x02 else: return None