Skip to content

Commit d588494

Browse files
authored
Merge pull request #1947 from aso20455/master
BIP328: fix assignment in bytes_to_point function
2 parents 260da85 + 9d3ca7f commit d588494

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)