mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-03 23:15:33 +00:00
komrade update!
This commit is contained in:
parent
ea43423d79
commit
0b29d08893
@ -545,15 +545,20 @@ class KomradeX(Caller):
|
||||
)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user