Open Sshovon opened 5 months ago
I have to look into it more, but I'm not 100% weeks already support Json-LD verification in OID4VP. If you verify the credential using the w3c module separately, does it verify correctly?
I haven't explicitly verified the presentation using the W3C module, but after accepting the presentation on the holder's end, it is sent to the W3C module on the verifier's end.
During the verification process in w3cCredentialService.verifyPresentation the condition typeof options.presentation === 'string'
evaluates to true and Consequently, the presentation is passed to w3cJwtCredentialService.verifyPresentation where the W3cJwtVerifiablePresentation.fromSerializedJwt(options.presentation)
throws the error during creating jwt instance.
In Jwt.fromSerializedJwt() the condition gets true !Jwt.format.test(serializedJwt
which throws the error on the verifier end.
I guess I also need to find if the holder is somehow parsing wrong data when sending the presentation.
I am trying to issue and verify a ldp credential using oid4vc module. The issuance part works and the holder is able to receive and store the credential. But during verification it fails to verify the presentation on the verifier end. Json-ld credential issuance and verification works perfectly which is quite similar format as ldp.
On the verifier end I get following error:
On the holder end I get following error:
When I accept the ldp credential offer on the holder end I get the following information from holder debugger which represents the credential I have received.
And I am using the following presentation definition for creating the presentation requests
I have tried different approaches to make this work but couldn't be able to do so. Please let me know if I am making any mistakes during the whole process or any possible solution for this situation.