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

Update JCS to fix proof configuration. #43

Merged
merged 3 commits into from
May 18, 2023
Merged

Conversation

Wind4Greg
Copy link
Contributor

@Wind4Greg Wind4Greg commented Apr 26, 2023

This PR fixes the issues raised in #41. In particular:

  • Don't need to add document @context into proofConfig for canonicalization.
  • Use the JCS canonicalization scheme and not RDF canonicalization.
  • Fix name "jcs-eddsa-2022".

Preview | Diff

index.html Outdated Show resolved Hide resolved
Sounds good.

Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
index.html Outdated Show resolved Hide resolved
@iherman
Copy link
Member

iherman commented Apr 27, 2023

(Admin: @Wind4Greg, @msporny @dmitrizagidulin : these proposed changes do not seem to raise IPR concerns, ie, I could clear the PR issues raised by the automatic control. Please confirm before I do that.)

@w3cbot
Copy link

w3cbot commented Apr 28, 2023

iherman marked as non substantive for IPR from ash-nazg.

Copy link
Member

@iherman iherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For readability's sake I would prefer to spell out the equivalents of 3.1.3 and 3.1.5 instead of essentially defining jcs-eddsa-2022 as a series of diffs. Actually, one may go one step further, and factor out the sections that are common to both, and then specify the transformation and the proof configuration sections explicitly for eddsa-2022 and jcs-eddsa-2022, respectively.

But these are editorial choices, and may reflect personal taste. Ie, I will not lie down the road on this.

@Wind4Greg
Copy link
Contributor Author

I'm in agreement with @iherman but was following the style of what was previously in the document. @msporny what do you prefer? I can make the changes. Cheers Greg

</p>

<p style="padding-left: 2em;">
<strong>4)</strong> If <var>options</var>.<var>type</var> is not set to
`DataIntegrityProof` and <var>proofConfig</var>.<var>cryptosuite</var> is not
set to `json-eddsa-2020`, an `INVALID_PROOF_CONFIGURATION` error MUST be raised.
set to `jcs-eddsa-2022`, an `INVALID_PROOF_CONFIGURATION` error MUST be raised.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I support this.

Copy link
Member

@TallTed TallTed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's OK as is, but I would also prefer that each of these step-by-step sections are complete, as suggested above by @iherman. Priority of Constituencies, and all that.

@msporny
Copy link
Member

msporny commented May 18, 2023

@iherman and @TallTed -- I've raised #46 to track your (valid) concerns. I'm tracking it in an issue because putting the right solution in place is going to take time. It will require writing a re-spec extension that can take a base algorithm and parameterize it. The end goal will be that one doesn't have to jump back and forth between vc-data-integrity and vc-di-eddsa, or within sections in vc-di-eddsa. We do want to also be clear with implementers that the text is almost exactly the same between two sub-algorithms, except for a single value or two. /cc @Wind4Greg

In any case, tracking in issue 46 so we can merge this into the spec.

@msporny
Copy link
Member

msporny commented May 18, 2023

Normative, multiple reviews, changes requested and made, no objections, merging.

@msporny msporny merged commit 8031fd9 into w3c:main May 18, 2023
@Wind4Greg Wind4Greg deleted the jcs-update branch August 18, 2023 22:36
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

Successfully merging this pull request may close these issues.

8 participants