2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-05 21:20:51 +00:00
This commit is contained in:
quadrismegistus 2020-09-13 21:12:13 +01:00
parent 44fec4bf8b
commit c82ae0d058

View File

@ -255,7 +255,8 @@ class Keymaker(Logger):
def find_pubkey(self,name=None):
if not name: name=self.name
if 'pubkey' in self._keychain and self._keychain['pubkey']:
return self._keychain['pubkey']
pk=self._keychain['pubkey']
return KomradeAsymmetricPublicKey(b64dec(pk)) if type(pk)==bytes else pk
res = self.crypt_keys.get(name, prefix='/pubkey/')
res = self.load_qr(self.name)
if not res: return