Page MenuHomePhabricator

[identity] Add function to verify initial device list
ClosedPublic

Authored by bartek on May 17 2024, 12:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 12:51 AM
Unknown Object (File)
Sun, Oct 27, 1:37 PM
Unknown Object (File)
Sun, Oct 13, 3:57 PM
Unknown Object (File)
Sat, Oct 12, 10:45 AM
Unknown Object (File)
Sat, Oct 12, 3:05 AM
Unknown Object (File)
Sun, Oct 6, 9:00 PM
Unknown Object (File)
Oct 2 2024, 5:11 PM
Unknown Object (File)
Sep 21 2024, 5:25 PM
Subscribers

Details

Summary

Added a function that verifies initial device list:

  • Verifies that the payload has only curPrimarySignature and the signature is valid
  • Verifies that the device list contains only one device and it is the primary device ID
  • It does not verify the timestamp - this is done automatically by transaction code used for storing device lists in DDB

Depends on D12067

Test Plan

Tested later in the stack when used

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.May 17 2024, 1:51 AM

What do you think about making errors more detailed?

This revision is now accepted and ready to land.May 17 2024, 3:48 AM