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
F3376450: D12089.diff
Wed, Nov 27, 12:03 AM
Unknown Object (File)
Sat, Nov 23, 11:06 AM
Unknown Object (File)
Sat, Nov 23, 10:28 AM
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
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