From f89a0a33744dc08ad5962b06381a66ef445fb07b Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Sat, 12 Sep 2020 22:39:44 +0100 Subject: [PATCH] updates --- komrade/backend/operators.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/komrade/backend/operators.py b/komrade/backend/operators.py index ced42dd..8fdfa02 100644 --- a/komrade/backend/operators.py +++ b/komrade/backend/operators.py @@ -47,9 +47,9 @@ class Operator(Keymaker): if isBase64(pubkey): pubkey = b64decode(pubkey) # print(pubkey,keychain,'??',name) if keychain.get('pubkey'): - kcpubk=keychain.get('pubkey') - kcpubk = b64decode(kcpubk) if isBase64(kcpubk) else kcpubk - assert kcpubk == pubkey + kcpubk=keychain.get('pubkey').data + # kcpubk = b64decode(kcpubk) if isBase64(kcpubk) else kcpubk + # assert kcpubk == pubkey else: keychain['pubkey']=KomradeAsymmetricPublicKey(pubkey)