Page MenuHomePhabricator

[identity] Move X3DH RPCs to auth proto
ClosedPublic

Authored by bartek on Nov 23 2023, 1:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 9:07 PM
Unknown Object (File)
Fri, Jun 21, 10:12 AM
Unknown Object (File)
Wed, Jun 19, 1:25 AM
Unknown Object (File)
Mon, May 27, 10:46 PM
Unknown Object (File)
May 26 2024, 10:38 AM
Unknown Object (File)
May 23 2024, 4:55 AM
Unknown Object (File)
May 5 2024, 5:07 AM
Unknown Object (File)
May 5 2024, 5:07 AM
Subscribers

Details

Summary

Copied the GetOutboundKeysForUser and GetInboundKeysForUser RPCs from the client proto to the auth proto.
Kept references to the original request and response messages because they're incompatible with existing ones in the auth proto.

This one is going to be further refactored as a part of ENG-5659.
Currently, left client side unchanged until that task is done.

Depends on D9931

Test Plan

Copy-paste so ensured Identity is building. The RPC and clients will be tested when refactored to use user ID instead of username/wallet address.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.

Move the inbound keys RPC too

bartek retitled this revision from [identity] Move GetOutboundKeysForUser to auth proto to [identity] Move X3DH RPCs to auth proto.Nov 27 2023, 12:10 AM
bartek edited the summary of this revision. (Show Details)
bartek published this revision for review.Nov 27 2023, 12:15 AM
bartek added inline comments.
services/identity/src/grpc_services/authenticated.rs
21 ↗(On Diff #33628)

I had to do that because despite types being identical, they're in different modules (crate::client_service::client_proto vs crate::grpc_services::authenticated::client) so rust treats them as different types and our custom trait impls couldn't work.
Also, I think they were compiled twice because of this.

I'll create a Linear task for cleaning up module structure in Identity (e.g. client_service.rs is overgrown)

This revision is now accepted and ready to land.Nov 29 2023, 6:13 AM
This revision was automatically updated to reflect the committed changes.