HomePhabricator
Diffusion Comm ad4b46f367ab

[web] Introduce `cryptoStore` to replace `primaryIdentityPublicKey` in Redux

Tags
None
Referenced Files
F399546: aa8eb7.png
Feb 24 2023, 2:39 PM
File Not Attached
F399545: 6a6db5.png
Feb 24 2023, 2:39 PM
File Not Attached
F399544: 4ed18d.png
Feb 24 2023, 2:39 PM
File Not Attached
F399543: 6f4367.png
Feb 24 2023, 2:39 PM
File Not Attached
Subscribers
None

Description

[web] Introduce cryptoStore to replace primaryIdentityPublicKey in Redux

Summary:
Migrate from having primaryIdentityPublicKey in Redux to having the more flexible cryptoStore which will have both our primary identity keys AND notification identity keys.

Only the primaryIdentityPublicKey is being passed to the keyserver in the login/siwe_auth/register requests... so no behavior should change and this is effectively a "noop."


Depends on D6876

Test Plan:
Migration succeeded:

6f4367.png (2×3 px, 692 KB)

4ed18d.png (2×3 px, 596 KB)

6a6db5.png (2×3 px, 505 KB)

primaryIdentityPublicKey is set correctly in the database:

aa8eb7.png (232×3 px, 90 KB)

Reviewers: ashoat, tomek, marcin

Reviewed By: ashoat

Subscribers: kamil

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

Details