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 9, 4:40 PM
Unknown Object (File)
Sat, Nov 9, 2:34 PM
Unknown Object (File)
Sat, Nov 9, 12:21 PM
Unknown Object (File)
Sat, Nov 9, 8:48 AM
Unknown Object (File)
Sat, Nov 2, 12:51 AM
Unknown Object (File)
Sun, Oct 27, 1:37 PM
Unknown Object (File)
Oct 13 2024, 3:57 PM
Unknown Object (File)
Oct 12 2024, 10:45 AM
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