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: include hash and key in verify URL of link resolver service #155

Closed

Conversation

ldhyen99
Copy link
Contributor

@ldhyen99 ldhyen99 commented Nov 5, 2024

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR aims to update the verify URL to include the hash and key returned from the storage service, allowing us to verify its integrity using the included hash and key.

Related Tickets & Documents

https://github.com/gs-gs/fa-ag-trace/issues/694
https://github.com/gs-gs/fa-ag-trace/issues/695

Mobile & Desktop Screenshots/Recordings

  • Using the encrypted endpoint (v1/credentials):

Issue DPP:

image

Copy the verify URL link:

image

Go to the verify page:

image
  • Using the unencrypted endpoint (/v1/documents):

Issue DPP:

image

Copy the verify URL link:

image

Go to the verify page:

image

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

Copy link

github-actions bot commented Nov 5, 2024

Code Coverage Report

Lines Statements Branches Functions
Coverage: 81%
80.17% (2783/3471) 66.21% (533/805) 74.03% (308/416)
Title Lines Statements Branches Functions
All packages Coverage: 81%
80.17% (2783/3471) 66.21% (533/805) 74.03% (308/416)
Components Coverage: 85%
84.85% (510/601) 73.75% (118/160) 77.04% (94/122)
Mock app Coverage: 71%
71.65% (369/515) 53.23% (74/139) 68.14% (77/113)
Services Coverage: 79%
77.01% (925/1201) 60.17% (210/349) 74.41% (96/129)
UNTP test suite Coverage: 57%
57.34% (992/1730) 80.86% (131/162) 71.92% (41/57)
VC test suite Coverage: 7%
7.4% (12/162) 7.4% (2/27)

@ashleythedeveloper
Copy link
Collaborator

@ldhyen99, can I please confirm that you've tested this implementation by using one of the process services in the reference implementation? I.e. Issued a DPP using processDPP >Store the credential in the storage service > Register credential with IDR > Verify the resulting link has the hash

@huynguyen-hl huynguyen-hl changed the title feat: include hash in verify URL of link resolver service feat: include hash and key in verify URL of link resolver service Nov 6, 2024
@ldhyen99
Copy link
Contributor Author

ldhyen99 commented Nov 11, 2024

@ldhyen99, can I please confirm that you've tested this implementation by using one of the process services in the reference implementation? I.e. Issued a DPP using processDPP >Store the credential in the storage service > Register credential with IDR > Verify the resulting link has the hash

Hi @ashleythedeveloper, I'll close this PR because it will duplicate Huy's PR (add an encrypted endpoint in the storage service). After discussing, we should handle the hash and key in the storage service instead of the link resolver service. The hash also includes without key when we call constructVerifyURL in here

@ldhyen99 ldhyen99 closed this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants