HomePhabricator
Diffusion Comm b06e8dc510fd

[identity] Refactor device list types

Description

[identity] Refactor device list types

Summary:
Did some refactoring to make it clear what some structs are designed to be. Previous structure was designed to have Identity sign device lists as well, but we finally opted out of it (only primary device signs them).

Short summary:

  • UpdateDeviceListRequest is a request coming from primary device calling update RPCs
  • SignedDeviceList is a JSON payload, Whitepaper 6.2.3
  • RawDeviceList is a helper struct for inner stringified JSON (see whitepaper)
  • DeviceListUpdate is actual payload containing device list data to be processed in DDB transaction (some more details in the next diff)

Depends on D11897

Test Plan: Unit and integration tests. Device list logic works as before.

Reviewers: kamil, will

Reviewed By: kamil

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on May 6 2024, 12:22 AM
Reviewer
kamil
Differential Revision
D11898: [identity] Refactor device list types
Parents
rCOMMbe3eeae898a4: [identity] Add device list signatures to DDB
Branches
Unknown
Tags
Unknown