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

Extra validation for w3c credentials and presentations #325

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

andrewwhitehead
Copy link
Member

Related to #322

@@ -370,6 +370,24 @@ fn check_request_data(
)?;
}

for (cred, proof) in presentation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these checks also be made when calling credential_process?

Otherwise looks good to me, thanks for picking this up

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there might be additional verification required for w3c credentials, I was only looking at presentations.

@swcurran
Copy link
Member

Questions for @TimoGlastra and @andrewwhitehead:

  • Do we merge this now or wait until the credential side is added?
  • Do we declare 0.2.0:
    • complete now?
    • after this is merged?
    • after the credential side is added and we merge this and that?
    • after the merge AND after we do another dev release?

Lots of options -- what do you think is best?

@TimoGlastra
Copy link
Member

Do we merge this now or wait until the credential side is added?

I think we can merge it as is and make improvements. The additions to the credential part do not impact security, but rather allow the holder to already catch an invalid credential.

Do we declare 0.2.0:
I think with this PR merged is perfect!

@TimoGlastra TimoGlastra merged commit bae5868 into hyperledger:main Feb 12, 2024
26 checks passed
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.

4 participants