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)
Mon, Dec 23, 2:10 PM
Unknown Object (File)
Mon, Dec 23, 2:10 PM
Unknown Object (File)
Mon, Dec 23, 2:10 PM
Unknown Object (File)
Mon, Dec 23, 2:09 PM
Unknown Object (File)
Mon, Dec 23, 2:09 PM
Unknown Object (File)
Fri, Dec 6, 6:57 PM
Unknown Object (File)
Nov 27 2024, 12:03 AM
Unknown Object (File)
Nov 23 2024, 11:06 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
Lint Not Applicable
Unit
Tests Not Applicable

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