Implemented identity queries and indication for unknown message originators

This commit is contained in:
Mark Qvist 2021-05-14 22:12:42 +02:00
parent 9a0c4ea6a8
commit 420cfcbbe3
3 changed files with 73 additions and 12 deletions

View file

@ -82,6 +82,18 @@ class Directory:
else:
return None
def is_known(self, source_hash):
try:
self.source_identity = RNS.Identity.recall(source_hash)
if self.source_identity:
return True
else:
return False
except Exception as e:
return False
class DirectoryEntry:
WARNING = 0x00