From ca55c1fd7a911a8fbb2edf9cebfee6fd4cbe0d34 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 17 May 2021 00:07:28 +0200 Subject: [PATCH] Updated method names --- LXMF/LXMF.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LXMF/LXMF.py b/LXMF/LXMF.py index f4f91c8..8d3491f 100644 --- a/LXMF/LXMF.py +++ b/LXMF/LXMF.py @@ -203,7 +203,7 @@ class LXMessage: hashed_part += self.__destination.hash hashed_part += self.__source.hash 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 signed_part = b"" @@ -377,7 +377,7 @@ class LXMessage: 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:] 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 unpacked_payload = msgpack.unpackb(packed_payload) timestamp = unpacked_payload[0]