Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add discord identity and validation #198

Open
5-mark opened this issue Nov 3, 2022 · 2 comments
Open

Add discord identity and validation #198

5-mark opened this issue Nov 3, 2022 · 2 comments
Assignees
Labels

Comments

@5-mark
Copy link
Collaborator

5-mark commented Nov 3, 2022

User Story

As user I want to set my discord account as network identity and validate it so that everyone recognizes me as a legit user.

Acceptance Criteria

  1. setting discord ID as one of the identity fields is possible
    1.1 the new field must be available also after chain resets or starting a chain initially
  2. setting the discord ID should store the discordID raw onchain and triggers a discord bot sending a message to user
  3. the user answers with his wallet ID in discord
  4. the discord bot sends this message back to the chain and gets validated
    4.1 if the wallet ID doesnt match the bot responds with an error
    4.2 if the identity is valid the discord bot answers positive and closes the chat.
  5. new identity field is exposed in the graph
  6. user can see in polkadot.js the validation status which also is exposed to the graph.

Additional Information

sequence diagram draft:

How to test

  1. enter your discord ID into the new filed in polkadot.js app --> accounts --> set idenity
  2. submit
  3. wait for the discord bot to popup in your discord
  4. answer the bot with your wallet ID
  5. see that you got validated for discord in your polkadot.js ui
@5-mark 5-mark added the story label Nov 3, 2022
@5-mark 5-mark added this to the November Sprint 1 milestone Nov 3, 2022
@vayesy
Copy link
Member

vayesy commented Nov 8, 2022

After some investigation and testing, found out we already have bot logic to verify account.
This logic works but it should be triggered manually by sending message in discord.
Bot checks specified address, queries its identity from the chain and validates discord field in identity to match discord user id (numerical value). If those match, bot adds role to discord user, marking him as verified.
However no on-chain actions are performed (no registrar judgements given).

Image

@vovacha vovacha removed their assignment Nov 9, 2022
@2075
Copy link
Member

2075 commented Nov 27, 2022

yes, wasn't this known before? we had this mechanism in place for beta I

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants