HomePhabricator
Diffusion Comm 34d9d1efac30

[identity] Add device list timestamp verification

Description

[identity] Add device list timestamp verification

Summary:

  • Updated transact_update_devicelist to accept input timestamp, instead of always generating new. It's still optional for Identity-managed device list updates
  • Added timestamp verification criteria according to the whitepaper

Test Plan:

  • Manually called the UpdateDeviceListRPC with valid / invalid timestamps
  • Updated integration test (previously failing due to dummy timestamp)
  • Added unit tests

Reviewers: varun

Reviewed By: varun

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on Apr 18 2024, 5:19 AM
Reviewer
varun
Differential Revision
D11685: [identity] Add device list timestamp verification
Parents
rCOMMb6c3358bdf37: [web] Replace `threadHasPermission` with `useThreadHasPermission` in…
Branches
Unknown
Tags
Unknown