Page MenuHomePhabricator

[services] add public key and username fields to .proto file
ClosedPublic

Authored by varun on Jul 22 2022, 12:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 8:28 PM
Unknown Object (File)
Fri, Nov 8, 8:28 PM
Unknown Object (File)
Fri, Nov 8, 8:28 PM
Unknown Object (File)
Fri, Nov 8, 8:13 AM
Unknown Object (File)
Tue, Nov 5, 2:05 AM
Unknown Object (File)
Oct 5 2024, 6:38 PM
Unknown Object (File)
Sep 28 2024, 2:31 PM
Unknown Object (File)
Sep 28 2024, 12:21 PM

Details

Summary

The identity service maintains a mapping from userID → [user_info, public_key], and also user_info → userID. user_info is a username for password auth and a wallet address for wallet auth. The public_key is used to log users into keyservers. Users should send the public_key as part of PAKE registration or Wallet login.

Note: We already get the wallet address in the siweMessage as part of the WalletLoginRequest

Test Plan

Checked syntax with linter, identity service build succeeded

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat added inline comments.
native/cpp/CommonCpp/grpc/protos/identity.proto
66 ↗(On Diff #14824)

ENS names are the equivalent of a username in the wallet case, but it makes sense that we're not returning an ENS name here... we should have individual clients query this info from Alchemy.

At some point it might be worth considering a better UX for when a wallet without an ENS name logs in, but out of scope for now

This revision is now accepted and ready to land.Jul 25 2022, 8:35 AM