HomePhabricator
Diffusion Comm 6fbcb6ddc7d6

[web] "Unpickle" primary OLM account to sign keys and get…

Tags
None
Referenced Files
F400017: 12c603.png
Feb 24 2023, 2:39 PM
File Not Attached
F400019: a59c78.png
Feb 24 2023, 2:39 PM
File Not Attached
Subscribers
None

Description

[web] "Unpickle" primary OLM account to sign keys and get SignedIdentityKeysBlob

Summary:
We unpickle the primary OLM account in order to sign a "concatenation" of the primary and notification keys.

We then bundle up the payload and signature into SignedIdentityKeysBlob which is what will get included in the login request to the keyserver.


Depends on D6883

Test Plan:
Logged identity_keys() of "unpickled" account and it matched the keys from the instantiation of the primary account:

a59c78.png (1×2 px, 650 KB)

signedIdentityKeysBlob is created as expected:

12c603.png (1×2 px, 595 KB)

Reviewers: ashoat, tomek, marcin

Reviewed By: ashoat

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

Details