Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

[POC] User to public keys mapping union - cosmos SDK #3

Open
Max-Levitskiy opened this issue Nov 1, 2021 · 0 comments
Open

[POC] User to public keys mapping union - cosmos SDK #3

Max-Levitskiy opened this issue Nov 1, 2021 · 0 comments

Comments

@Max-Levitskiy
Copy link
Member

We need to solve a problem where our user authorizes from different devices with different keys and we work with him as with the same user.
Cosmos SDK has key-value storage, which we can use to store this information in a decentralized way.
We want to have a couple of methods:

  • register(publicKey) UUID - add the public key as a new user, generates uuid and return it.
  • resolveByUuid(userUUID) UserInfo {[]publicKeys....}
  • resolveByPublicKey(key) UserInfo .....
  • addNewKey(newKey) - add a key to user
  • getMyInfo() UserInfo
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant