-
Notifications
You must be signed in to change notification settings - Fork 39
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
vc-test-suite #95
Comments
I don't understand this test " verifiable credential ... To encode a verifiable credential as a JWT, specific properties introduced by thisspecification MUST be either ...3) contained in the JWS signature part... If only the proof attribute is used, the alg header MUST be set to none." Why MUST the alg header be set to "none" does not make sense |
This refers to the IANA registered JWT claim names. These are the only ones for which encode/decode transformational rules are defined in the VC data model. |
This is because a VC could be signed by a JSON-LD signature, or a JWS or both. The proof attribute is used for the former and is omitted for JWS. In the case being referred to, there is a JSON-LD proof with no choice of algorithm, and no JWS, but a JWT is still being created. So the alg header is set to none. |
@David-Chadwick Why do the claim names have to be registered as it's not at all clear in the test that this only applies to the claims that are transformed. It's not also clear from the specification either that this is the case |
And what is the JWS Signature Value set to ? |
One of the JWT tests says "alg MUST be used for RSA and ECDSA-based digital signatures" the specification says it must be set, so test case should be just test for a registered alg value under all cases. |
As this issue relates to the test suite, it would be best to raise this issue there. https://github.com/w3c/vc-test-suite |
In 20 Aug 2019 call: RESOLVED: The WG believes that issue w3c/vc-data-model#713 is a question related to the test suite and the issue belongs in that repository and this will be deferred until another group picks up the specification and associated test suites. |
@burnburn This has to deal with implementing the specification and testing the specification, thus I believe it belongs here |
@nadalin - You have suggested that a change should be made to a test case, not to the specification. Thus, your issue belongs on the test suite, where that test case is found, not on the specification. |
@burnburn Someone with admin can transfer this issue over so as not to loose the thread |
Attempting to use GitHub's new transfer feature . . . |
@mirceanis or @awoie - do you have any comments on this? |
Trying to figure out the test-suite and be able to run this on my implementation, I see the follow statement
"1) encoded as standard JOSE header parameters, 2) encoded as registered JWT claim names, or ..."
I have no idea what "registered" means and where would one register and why I have to register my JWT claims?
The text was updated successfully, but these errors were encountered: