From 7e34b61f370c15295819eaed07a228273bc60569 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 21 Sep 2023 14:12:32 +0200 Subject: [PATCH] Added link status check on identify --- RNS/Link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Link.py b/RNS/Link.py index c02335a..406110e 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -319,7 +319,7 @@ class Link: :param identity: An RNS.Identity instance to identify as. """ - if self.initiator: + if self.initiator and self.status == Link.ACTIVE: signed_data = self.link_id + identity.get_public_key() signature = identity.sign(signed_data) proof_data = identity.get_public_key() + signature