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

Feat: Add unmasked phone_number to decoded certificate #2

Open
bharatkashyap opened this issue Aug 13, 2021 · 2 comments
Open

Feat: Add unmasked phone_number to decoded certificate #2

bharatkashyap opened this issue Aug 13, 2021 · 2 comments
Labels
good first issue Good for newcomers

Comments

@bharatkashyap
Copy link
Contributor

Adding decentralized ID to Digital Saathi certificate

  • The goal is for verifiers/third parties to be able to obtain the phone number from the certificate upon decoding

Implementation

  • We will need to add additional middleware to the current /certificate handler
  • From the tracking key, we need to make a graphQL API call to the database and obtain the unmasked phone number on the server through the HASURA_ADMIN_SECRET
  • We need to add the obtained phone_number to the /certificate request
  • The phone_number will be added to the verifiable credential being generated here
@Abhay-86
Copy link

@bharatkashyap hello bhaiya i have added middleware fuction in certificate.js which i think is working fine but could you please guide me to find that weather i would find the tracking id?

@bharatkashyap
Copy link
Contributor Author

Hey @Abhay-86! We need to make an API call to the Hasura GraphQL endpoint with a query to read the mobile number associated with the tracking key.

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

No branches or pull requests

2 participants