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
I am testing your library. I based myself on your sample but signature validation failed for me.
I created a repo to test the readme sample: https://github.com/beejones/jsonld-signature-test
The id in the publicKey is used as a remote document and this download fails. Is this by design?
This is the exception I get.
Signature verification error: VerificationError: Verification error(s).
at Object.verify (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/jsonld-signatures.js:49:22)
at UserContext. (/home/codespace/workspace/poc/jsonld-signature-test/tests/sign.spec.ts:104:24) {
errors: [
JsonLdError [jsonld.LoadDocumentError]: Could not retrieve a JSON-LD document from the URL.
at Function.jsonld.get (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld/lib/jsonld.js:880:11)
at Function.jsonld.expand (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld/lib/jsonld.js:317:23)
at Function.jsonld.frame (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld/lib/jsonld.js:471:20)
at RsaSignature2018.getVerificationMethod (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/suites/LinkedDataSignature.js:252:34)
at RsaSignature2018.getVerificationMethod (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/suites/JwsLinkedDataSignature.js:164:32)
at RsaSignature2018.verifyProof (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/suites/LinkedDataSignature.js:154:34)
at async Promise.all (index 0)
at _verify (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/ProofSet.js:325:11)
at ProofSet.verify (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/ProofSet.js:253:23)
at Object.verify (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/jsonld-signatures.js:38:18) {
details: [Object]
}
]
}
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I am testing your library. I based myself on your sample but signature validation failed for me.
I created a repo to test the readme sample: https://github.com/beejones/jsonld-signature-test
The id in the publicKey is used as a remote document and this download fails. Is this by design?
This is the exception I get.
Signature verification error: VerificationError: Verification error(s).
at Object.verify (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/jsonld-signatures.js:49:22)
at UserContext. (/home/codespace/workspace/poc/jsonld-signature-test/tests/sign.spec.ts:104:24) {
errors: [
JsonLdError [jsonld.LoadDocumentError]: Could not retrieve a JSON-LD document from the URL.
at Function.jsonld.get (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld/lib/jsonld.js:880:11)
at Function.jsonld.expand (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld/lib/jsonld.js:317:23)
at Function.jsonld.frame (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld/lib/jsonld.js:471:20)
at RsaSignature2018.getVerificationMethod (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/suites/LinkedDataSignature.js:252:34)
at RsaSignature2018.getVerificationMethod (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/suites/JwsLinkedDataSignature.js:164:32)
at RsaSignature2018.verifyProof (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/suites/LinkedDataSignature.js:154:34)
at async Promise.all (index 0)
at _verify (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/ProofSet.js:325:11)
at ProofSet.verify (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/ProofSet.js:253:23)
at Object.verify (/home/codespace/workspace/poc/jsonld-signature-test/node_modules/jsonld-signatures/lib/jsonld-signatures.js:38:18) {
details: [Object]
}
]
}
Thanks
The text was updated successfully, but these errors were encountered: