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

Facing issue during verifying BBS Verifiable Presentation #306

Open
projjal-gop opened this issue Aug 29, 2023 · 0 comments
Open

Facing issue during verifying BBS Verifiable Presentation #306

projjal-gop opened this issue Aug 29, 2023 · 0 comments

Comments

@projjal-gop
Copy link

This is the code to verify the VP using derived proof.
const verification = await vcjs.verifyVerifiablePresentation({ presentation: verifiablePresentation, challenge: 'nonce-123', domain: 'example.com', suite: [new BbsBlsSignature2020(), new BbsBlsSignatureProof2020()], documentLoader });

I have written custom documentLoader to fetch context document as well as resolve did:key:z5t using bls keypair.
But at the time of verification I am getting error
"TypeError: The \"url\" parameter must be a string.\n at JsonLdDocumentLoader.documentLoader

I understand that the verification library is trying to call documentLoader using object which is not string.
Is there something I need to correct in the code or is it something from library end ?

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

No branches or pull requests

1 participant