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
F2834949: D4613.diff
Sat, Sep 28, 12:21 PM
Unknown Object (File)
Sun, Sep 8, 11:34 AM
Unknown Object (File)
Sun, Sep 8, 11:34 AM
Unknown Object (File)
Sun, Sep 8, 11:34 AM
Unknown Object (File)
Sun, Sep 8, 11:33 AM
Unknown Object (File)
Sun, Sep 8, 11:30 AM
Unknown Object (File)
Sat, Aug 31, 8:42 AM
Unknown Object (File)
Fri, Aug 30, 10:37 AM

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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat added inline comments.
native/cpp/CommonCpp/grpc/protos/identity.proto
66

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