HomePhabricator
Diffusion Comm 16e3eb00236b

[services][identity] db client method to get user public key

Description

[services][identity] db client method to get user public key

Summary:
first we use the user ID to get the associated item from the users table in DDB. then we try to find the device ID in the item's devices map, and if successful, return the device's user public key.

Depends on D5568

Test Plan: tested in the next diff when the getUserPublicKey RPC is callable

Reviewers: tomek, bartek, jon

Reviewed By: tomek

Subscribers: ashoat, atul, abosh

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

Details

Provenance
varunAuthored on Nov 8 2022, 2:43 PM
Reviewer
tomek
Differential Revision
D5569: [services][identity] db client method to get user public key
Parents
rCOMMa393d0a8b6fb: [services][identity] helper function to get item from users table
Branches
Unknown
Tags
Unknown