Merge pull request #1947 from aso20455/master

BIP328: fix assignment in bytes_to_point function
This commit is contained in:
Jon Atack authored and GitHub committed 2025-09-02 16:57:25 -07:00
commit d588494bec
1 file changed
+2 -2
+2 -2
View File
@@ -83,8 +83,8 @@ def deserialize_point(b: bytes) -> Point:
def bytes_to_point(point_bytes: bytes) -> Point:
header = point_bytes[0]
if header == 4:
x = point_bytes = point_bytes[1:33]
y = point_bytes = point_bytes[33:65]
x = point_bytes[1:33]
y = point_bytes[33:65]
return (int(binascii.hexlify(x), 16), int(binascii.hexlify(y), 16))
return deserialize_point(point_bytes)