w3c / vc-jose-cose

Verifiable Credentials Working Group — VC JSON Web Tokens specification
https://w3c.github.io/vc-jose-cose/
Other
30 stars 9 forks source link

Algorithms are poorly defined / unimplementable #206

Closed msporny closed 4 months ago

msporny commented 7 months ago

The algorithms in Section 11 and Section 12 are poorly defined, do not provide the interface specified in the VCDM, and are generally unimplementable as written.

The following problems exist in Section 11:

The following problems exist in Section 12:

selfissued commented 7 months ago

From my point of view, neither of these sections is intended to define formal algorithms, with inputs and outputs. Rather, they are a set of steps for implementers to follow when sanity-checking instances of data structures defined by this specification.

If you want to suggest adding steps that you believe are missing, have at it.

I'll fix the broken SD-JWT reference. Thanks for pointing it out.

msporny commented 7 months ago

From my point of view, neither of these sections is intended to define formal algorithms, with inputs and outputs.

Based on the input from Google, the VCDM now has clear requirements for all securing specifications:

https://w3c.github.io/vc-data-model/#securing-mechanism-specifications

This includes the definition of algorithms w/ inputs/outputs.

If you want to suggest adding steps that you believe are missing, have at it.

That is primarily the responsibility of the Editors of the specification. I don't expect the specification will be able to transition to Candidate Recommendation when it fails to meet the requirements established by the WG and highlighted as a potential to cause a Formal Objection by a W3C Member.

iherman commented 7 months ago

The issue was discussed in a meeting on 2024-01-09

View the transcript #### 1.4. Algorithms are poorly defined / unimplementable (issue vc-jose-cose#206) _See github issue [vc-jose-cose#206](https://github.com/w3c/vc-jose-cose/issues/206)._ **Michael Jones:** this tracks the ask for more actionable description of verification and validation. … I have assigned this to myself.
selfissued commented 5 months ago

The new VCDM text pertinent to this is at https://w3c.github.io/vc-data-model/#securing-mechanism-specifications. @brentzundel , can you please either tell us that you think this is done or create another PR? Thanks.

iherman commented 5 months ago

The issue was discussed in a meeting on 2024-03-06

View the transcript #### 1.1. Algorithms are poorly defined / unimplementable (issue vc-jose-cose#206) _See github issue [vc-jose-cose#206](https://github.com/w3c/vc-jose-cose/issues/206)._ **Michael Jones:** 206 is about the verification algorithm. … but manu's already mentioned that all the specs are doing the right thing in terms of algorithm. **Manu Sporny:** I wasn't referring to JOSE/COSE, just the Data Integrity specs. … I think the editors of JOSE/COSE should figure out if the new interfaces apply for create and verify. … I'm checking to see what Jeffrey wrote about this earlier. > *Manu Sporny:* [https://w3c.github.io/vc-data-model/#securing-mechanism-specifications](https://w3c.github.io/vc-data-model/#securing-mechanism-specifications). **Manu Sporny:** section 5.13 securing mechanism specifications. … I don't know if the VC JOSE/COSE spec does the things that section requires. … it must provide a verification method that only contains the data in the document. … there are a bunch of other requirements for embedded proofs. … but no real requirements for enveloping proofs. … it's up to the editors to decide if they've hit that bar. … and the group to agree or not. **Michael Jones:** brent, this is assigned to you, do you want to keep it. **Brent Zundel:** yes. I'll keep it. **Gabe Cohen:** we have a section on this, but the rendering is broken. **Brent Zundel:** I'll look at that as well. **Manu Sporny:** there's a bulleted list in the issue I made. I've not seen responses. … I'll not block this going into CR, but without these changes it's likely to get formally rejected. … so, going through the list and explaining how they're addressed should help avoid the formal objection and close that issue. **Michael Jones:** you mean the one from December? **Manu Sporny:** yes. **Brent Zundel:** I'll tackle this. … anything else about JOSE/COSE? **Michael Jones:** decentralgabe has the other issues. **Gabe Cohen:** I plan to do both this week. > *Michael Jones:* The three vc-jose-cose before-CR issues are [https://github.com/w3c/vc-jose-cose/issues?q=is%3Aissue+is%3Aopen+label%3Abefore-CR](https://github.com/w3c/vc-jose-cose/issues?q=is%3Aissue+is%3Aopen+label%3Abefore-CR). **Brent Zundel:** if all three of these are addressed with PRs, it's theoretically possible we could vote next week...but that seems really tight. **Michael Jones:** no opinion on timing, ivan's the expert.
brentzundel commented 4 months ago

PR is here #261

selfissued commented 4 months ago

Addressed by https://github.com/w3c/vc-jose-cose/pull/261