Skip to content

Commit 9d3ca7f

Browse files
authored
fix: correct variable assignment in bytes_to_point function
1 parent 86b29c5 commit 9d3ca7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0328/_xpub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def deserialize_point(b: bytes) -> Point:
8383
def bytes_to_point(point_bytes: bytes) -> Point:
8484
header = point_bytes[0]
8585
if header == 4:
86-
x = point_bytes = point_bytes[1:33]
87-
y = point_bytes = point_bytes[33:65]
86+
x = point_bytes[1:33]
87+
y = point_bytes[33:65]
8888
return (int(binascii.hexlify(x), 16), int(binascii.hexlify(y), 16))
8989
return deserialize_point(point_bytes)
9090

0 commit comments

Comments
 (0)