Merge pull request #20 from cheetahdotcat/main

fixed reader.py missing byteorder
This commit is contained in:
fdlamotte 2025-08-19 12:40:19 +02:00 committed by GitHub
commit e92eb273d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,8 +51,8 @@ class MessageReader:
c["public_key"] = data[1:33].hex()
c["type"] = data[33]
c["flags"] = data[34]
c["out_path_len"] = int.from_bytes(data[35:36], signed=True)
plen = int.from_bytes(data[35:36], signed=True)
c["out_path_len"] = int.from_bytes(data[35:36], signed=True, byteorder="little")
plen = int.from_bytes(data[35:36], signed=True, byteorder="little")
if plen == -1:
plen = 0
c["out_path"] = data[36 : 36 + plen].hex()