From 78db04a1a81048968db15c3aacf35c91d3a7299b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 29 Jun 2021 01:44:02 +0200 Subject: [PATCH] Add my_fingerprint method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 927dcc5..6d33e3c 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -255,6 +255,10 @@ class XEP_0384(BasePlugin): def my_device_id(self) -> int: return self._device_id + def my_fingerprint(self) -> str: + bundle = self._omemo.public_bundle.serialize(self.omemo_backend) + return fp_from_ik(bundle['ik']) + def _set_node_config( self, node: str,