HomePhabricator
Diffusion Comm 382293dcee61

Implement method to deserialize olm account from a file

Description

Implement method to deserialize olm account from a file

Summary: This differential implements a method in NotificationsCryptoModule that can deserialize flat file containing JSON-fied pickled olm account into in-memory CryptoModule onject that is capable to perform end2end encrypted messaging sessions.

Test Plan:
Temporarily make this method public. Partially modify this method so that it does not read from a file but takes JSONI-ified pickled olm account directly and use it to create CryptoModule instance in CommCoreModule where we read pickled public olm account from the database. Use XCode debugger or logging to examine object
content. JSON-ified pickled olm account can be created in CommCoreModule.

Reviewers: tomek, bartek, kamil

Reviewed By: bartek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D6775

Details

Provenance
marcinAuthored on Feb 20 2023, 4:13 AM
Reviewer
bartek
Differential Revision
D6775: Implement method to deserialize olm account from a file
Parents
rCOMMbc8301ae6a64: Start NotificationsCryptoModule API definition and implementation
Branches
Unknown
Tags
Unknown