HomePhabricator
Diffusion Comm 4556c2b3eb18

[identity] Add function to verify initial device list

Description

[identity] Add function to verify initial device list

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

Reviewers: kamil, will, varun

Reviewed By: kamil, varun

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D12089

Details

Provenance
bartekAuthored on May 16 2024, 3:08 AM
Reviewer
kamil
Differential Revision
D12089: [identity] Add function to verify initial device list
Parents
rCOMM5ef4977af924: [lib] implement Outbound P2P Messages API in `SQLiteAPI`
Branches
Unknown
Tags
Unknown