-
Notifications
You must be signed in to change notification settings - Fork 11
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
Why does this test suite distinguish between credentials and presentations? #10
Comments
See the latest report, when verifying a presentation the proof is expected to be associated with Many implementations will handle validation for the input differently depending on if its a VC or a VP being requested, short list of potential issues:
typically you want to handle some of these issues before you even hit a cryptographic layer...
In the case of so for example, no need to attempt to verify a JSON object without a proof, or with a malformed one. The same is true of vanilla JOSE... if the header is malformed, you don't need to bother checking the signature... If the header uses the wrong |
To answer your main question though, this suit is for testing the VC Data Model proof formats that rely on JWS, which means allowing an implementation to show conformance for both VCs and VPS... Similar to how a JOSE implementation might allow you to show conformance too JWS and JWT. |
Hmm I think this contradicts a bit your testing philosophy which you've articulated a few times, i.e. that test suites should be focused on something very specific, and not cause additional headache for implementers. When I initially looked at this test suite, I expected that it simply tests the validity of the JsonWebSignature2020 on the JSON-LD document, not some extra VC/VP/DID specific things. Anyway, I have no problem with it now that I understand, thanks for explaining! |
For example, since there are apparently several things to consider, I have no idea why our implementation shows "pass" for Credentials, but "fail" for Presentations: https://identity.foundation/JWS-Test-Suite/#danubetech What exactly failed? |
"proofPurpose": "assertionMethod", This should be |
@peacekeeper sorta related to your question: w3c-ccg/did-method-key#39
... what if a did only supported 1 purpose? what if it supports multiple purposes for the same key? These are not relevant to this test suite, but producing a valid VP / VC is... and therefor we expect implementations to apply |
Put another way, should being able to add an assertionMethod key to a did document allow me to authenticate? |
Thanks I understand generally how proof purposes are supposed to be used, just didn't expect this to be part of this test suite. But now it makes sense! Looks like "challenge" is also required by this test suite in VPs. |
@peacekeeper yes, i think |
Okay thanks. I'm fine with closing this issue, unless you'd like to leave it open for others to see. |
Shouldn't the process of adding a JsonWebSignature2020 be the same for a credential or a presentation or any other JSON-LD document?
Or does this test suite really test two separate things, i.e. 1. adding a JsonWebSignature2020, and 2. something else that's specific to credentials/presentations?
The text was updated successfully, but these errors were encountered: