-
Notifications
You must be signed in to change notification settings - Fork 23
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
Validation of the VP failed when it was generated through IATP. #303
Comments
There are 2 issues in this scenario: 1. In MIW application When we create VP as JWT using the i.e: The did document in my local:
In the above did document there is 2 verification methods for Ed25519 : did:web:3bdf-203-129-213-107.ngrok-free.app:BPNL000000000000#b879cfac-7e51-45c1-97fa-3db84db10e44 ES256k: did:web:3bdf-203-129-213-107.ngrok-free.app:BPNL000000000000#1b4c2d5b-479b-4a19-834a-fecd42c3d60b The signed VP using
The header of JWT:
Here Here it should be 2. In SSI-lib: In SSI lib, multiple verification methods are not supported. Ref: |
Good catch, Ronak. I'm aware we have some drift between the ssi-lib and the miw. We'll have to address those this week. |
Current Behavior
Getting the signature failed while validating VP
{ "valid": false, "validateJWTExpiryDate": true, "validateAudience": true, "vp": "eyJraWQiO.." }
below error showing in the console
Error is Ed25519Verifier requires alg=EdDSA in JWSHeader.
Expected Behavior
It should work and give a valid VP
Steps To Reproduce
Generate VP through iatp endpoint
/api/presentations/iatp?asJwt=true
then validate that VP via presentations validation endpoint
/api/presentations/validation?asJwt=true
The text was updated successfully, but these errors were encountered: