Page MenuHomePhabricator

[identity] Add device list timestamp verification
ClosedPublic

Authored by bartek on Apr 18 2024, 6:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 5:47 AM
Unknown Object (File)
Oct 12 2024, 4:16 PM
Unknown Object (File)
Oct 12 2024, 4:16 PM
Unknown Object (File)
Oct 12 2024, 4:16 PM
Unknown Object (File)
Oct 12 2024, 4:16 PM
Unknown Object (File)
Oct 12 2024, 4:15 PM
Unknown Object (File)
Sep 16 2024, 12:01 PM
Unknown Object (File)
Sep 14 2024, 9:13 PM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek edited the test plan for this revision. (Show Details)
bartek published this revision for review.Apr 19 2024, 3:30 AM
bartek added inline comments.
services/identity/src/constants.rs
168 ↗(On Diff #39268)

Value from whitepaper section 6.2.3

This revision is now accepted and ready to land.Apr 22 2024, 2:35 PM