2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-19 15:25:34 +00:00
This commit is contained in:
quadrismegistus 2020-09-12 22:18:33 +01:00
parent a20bb787f9
commit 16c5bc565b

View File

@ -44,7 +44,7 @@ class Operator(Keymaker):
assert type(pubkey)==bytes
if isBase64(pubkey): pubkey = b64decode(pubkey)
if keychain.get('pubkey'):
assert keychain.get('pubkey').data == pubkey
assert keychain.get('pubkey') == pubkey
else:
keychain['pubkey']=KomradeAsymmetricPublicKey(pubkey)