2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-03 23:15:33 +00:00

komrade update!

This commit is contained in:
quadrismegistus 2020-09-17 18:20:50 +01:00
parent ea43423d79
commit 0b29d08893

View File

@ -544,16 +544,21 @@ class KomradeX(Caller):
prefix='/post/'
)
self.log('found encrypted post store:',post_encr)
# first from op to me?
msg_from_op_b_encr = post_encr
msg_from_op_b = SMessage(
self.privkey.data,
self.op.pubkey.data
).unwrap(post_encr)
self.log('decrypted??',msg_from_op_b)
try:
msg_from_op_b_encr = post_encr
msg_from_op_b = SMessage(
self.privkey.data,
self.op.pubkey.data
).unwrap(post_encr)
self.log('decrypted??',msg_from_op_b)
except ThemisError as e:
self.log(f'!!!!! {e} !!!!!')
return {
'success':False,
'status':'Could not decrypt from operator.'
}
# decoded?
msg_from_op = pickle.loads(msg_from_op_b)