diff options
author | Jonas Nick <jonasd.nick@gmail.com> | 2019-07-06 14:11:52 +0000 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-19 14:47:33 -0800 |
commit | 1a4b08ab72690caedae8b5398dde0fedd0a48856 (patch) | |
tree | db7e87e436d6039b50ce180d77362ffc0d159070 /bip-schnorr | |
parent | b2e6d11a6e1bbae2bccd17bd6abd0564d19ae549 (diff) |
Fix point_from_bytes in bip-schnorr reference implementation
Diffstat (limited to 'bip-schnorr')
-rw-r--r-- | bip-schnorr/reference.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-schnorr/reference.py b/bip-schnorr/reference.py index 48a36a6..d3efb52 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 |