mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-31 19:08:54 -04:00
Updated method names
This commit is contained in:
parent
b991a53a31
commit
ca55c1fd7a
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ class LXMessage:
|
||||||
hashed_part += self.__destination.hash
|
hashed_part += self.__destination.hash
|
||||||
hashed_part += self.__source.hash
|
hashed_part += self.__source.hash
|
||||||
hashed_part += msgpack.packb(self.payload)
|
hashed_part += msgpack.packb(self.payload)
|
||||||
self.hash = RNS.Identity.fullHash(hashed_part)
|
self.hash = RNS.Identity.full_hash(hashed_part)
|
||||||
self.message_id = self.hash
|
self.message_id = self.hash
|
||||||
|
|
||||||
signed_part = b""
|
signed_part = b""
|
||||||
|
@ -377,7 +377,7 @@ class LXMessage:
|
||||||
signature = lxmf_bytes[2*LXMessage.DESTINATION_LENGTH:2*LXMessage.DESTINATION_LENGTH+LXMessage.SIGNATURE_LENGTH]
|
signature = lxmf_bytes[2*LXMessage.DESTINATION_LENGTH:2*LXMessage.DESTINATION_LENGTH+LXMessage.SIGNATURE_LENGTH]
|
||||||
packed_payload = lxmf_bytes[2*LXMessage.DESTINATION_LENGTH+LXMessage.SIGNATURE_LENGTH:]
|
packed_payload = lxmf_bytes[2*LXMessage.DESTINATION_LENGTH+LXMessage.SIGNATURE_LENGTH:]
|
||||||
hashed_part = b"" + destination_hash + source_hash + packed_payload
|
hashed_part = b"" + destination_hash + source_hash + packed_payload
|
||||||
message_hash = RNS.Identity.fullHash(hashed_part)
|
message_hash = RNS.Identity.full_hash(hashed_part)
|
||||||
signed_part = b"" + hashed_part + message_hash
|
signed_part = b"" + hashed_part + message_hash
|
||||||
unpacked_payload = msgpack.unpackb(packed_payload)
|
unpacked_payload = msgpack.unpackb(packed_payload)
|
||||||
timestamp = unpacked_payload[0]
|
timestamp = unpacked_payload[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue