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)
Thu, Dec 19, 4:08 AM
Unknown Object (File)
Sun, Dec 8, 3:14 AM
Unknown Object (File)
Sat, Dec 7, 6:08 PM
Unknown Object (File)
Thu, Nov 28, 11:59 PM
Unknown Object (File)
Nov 8 2024, 8:28 PM
Unknown Object (File)
Nov 8 2024, 8:28 PM
Unknown Object (File)
Nov 8 2024, 8:28 PM
Unknown Object (File)
Nov 8 2024, 8:13 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