Open awemany opened 7 years ago
Works on python2:
bitcoin.ecdsa_verify_addr("a", "HAxTs/0PxPTCUVs7i0vWkaNtVAngQgHfJygNu9tfPna1Z5piImtwpr1XfTu7znc0g2m8uTDHcLu0JJFrwq5OqLM=", "1R7xTYaXV4pwsjnd8wjnx4LPoS2JAbQFm") returns False
bitcoin.ecdsa_verify_addr("a", "HAxTs/0PxPTCUVs7i0vWkaNtVAngQgHfJygNu9tfPna1Z5piImtwpr1XfTu7znc0g2m8uTDHcLu0JJFrwq5OqLM=", "1R7xTYaXV4pwsjnd8wjnx4LPoS2JAbQFm")
False
But on python3, I get:
TypeError: ord() expected string of length 1, but int found
You can fix it by yourself like this:
.../lib/python3.7/site-packages/bitcoin/main.py:435
435 return ord(data[0])
change to:
435 if type(data[0]) is int: 436 return data[0] 437 else: 438 return ord(data[0])
Works on python2:
bitcoin.ecdsa_verify_addr("a", "HAxTs/0PxPTCUVs7i0vWkaNtVAngQgHfJygNu9tfPna1Z5piImtwpr1XfTu7znc0g2m8uTDHcLu0JJFrwq5OqLM=", "1R7xTYaXV4pwsjnd8wjnx4LPoS2JAbQFm")
returnsFalse
But on python3, I get:
TypeError: ord() expected string of length 1, but int found