You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
JWT and JSON-LD credentials modules are both able to verify the W3C VC data model when verifying a credential or presentation.
This functionality is not fully implemented in the credentials-eip712 module.
Describe the solution you'd like
VC format should be validated by default when verifying
The text was updated successfully, but these errors were encountered:
If I'm understanding this issue correctly, it sounds like the data model is validated for both JWT and JSON-LD credentials/presentations already and we want to implement the same functionality for eip712 credentials. In looking at the repo, I was able to find the following modules which I think are the 3 relevant ones:
My assumption is that I should be able to look at 2 & 3 as examples of how to implement the validation of the data model for 1. Does this seem like an accurate assumption? Can anyone point to where exactly the validation takes place in the modules that already have this functionality?
@phoniks so the "credential-w3c" package actually handles all credential types and then sends the credential to the appropriate plugin for verification. You can see this in credential-w3c/src/action-handler.ts verifyCredential. Using the credential-ld package as a comparison would be a good idea, though.
However, to really understand how the verification works, you'll have to see that the credential-ld package actually uses another package to verify credentials, specifically @digitalcredentials/vc (you can see this in credential-ld/src/ld-credential-module.ts line 175).
Is your feature request related to a problem? Please describe.
JWT and JSON-LD credentials modules are both able to verify the W3C VC data model when verifying a credential or presentation.
This functionality is not fully implemented in the credentials-eip712 module.
Describe the solution you'd like
VC format should be validated by default when verifying
The text was updated successfully, but these errors were encountered: