mirror of
https://github.com/bitcoin/bips.git
synced 2025-09-22 13:51:38 +00:00
fix: correct variable assignment in bytes_to_point function
This commit is contained in:
parent
86b29c5d81
commit
9d3ca7f31f
@ -83,8 +83,8 @@ def deserialize_point(b: bytes) -> Point:
|
|||||||
def bytes_to_point(point_bytes: bytes) -> Point:
|
def bytes_to_point(point_bytes: bytes) -> Point:
|
||||||
header = point_bytes[0]
|
header = point_bytes[0]
|
||||||
if header == 4:
|
if header == 4:
|
||||||
x = point_bytes = point_bytes[1:33]
|
x = point_bytes[1:33]
|
||||||
y = point_bytes = point_bytes[33:65]
|
y = point_bytes[33:65]
|
||||||
return (int(binascii.hexlify(x), 16), int(binascii.hexlify(y), 16))
|
return (int(binascii.hexlify(x), 16), int(binascii.hexlify(y), 16))
|
||||||
return deserialize_point(point_bytes)
|
return deserialize_point(point_bytes)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user