-
Notifications
You must be signed in to change notification settings - Fork 116
Add respec-vc proof/JWT rendering to many other examples. #835
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
Conversation
e121946
to
9d434d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good at a quick skim.
But I noticed that the paragraph describing Figure 5 and Figure 6 has a few colored-and-outlined words which are near illegible, which problem I thought we resolved months ago with substantial rewrite of this paragraph including splitting it into two... And that makes me very concerned that there may be related and/or other issues that may need re-resolution.
Whilst the JWT example is no doubt correct, it would be more helpful to readers if the additional tab could be (or another one added) which shows the transformation of the credential into the JWT payload (prior to signing and base64 encoding) as in example 28. The reason being is that the transformation is the part that is specified in the VC specification, whilst the signing and base64 encoding are already standardised in referenced RFCs and we do not modify these specs. |
I've raised an issue to track this since it has more to do with respec-vc: #836 Let's take the discussion around JWT enhancements to the current examples there. |
9d434d4
to
7790d6c
Compare
1d68b8b
to
90d16e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a spec perspective, everything looks good to me. There's some things I'd like to better understand about the implementation to help maintain it and improve a bit more is all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is just to make your life bit more difficult :-)
See, e.g., example. The "subject" of the example is the credentialSubject
property, duly highlighted in the example. However, if I look at the signed example, that highlight disappears, and the reader is lost as to exactly what happened: one expects to see the top part of the example to be exactly the same, including the highlight. Would it be possible to make it so?
Yes, one could apply a custom diff'ing algorithm to the pre-signed and signed output and then apply some sort of patching algorithm to match the highlights between the unsigned and signed output up. Another option would be to just pluck the |
I told you my goal is to make your life more difficult :-) |
The issue I referenced above was #777, which was addressed by PRs #785 and #786, but those no longer appear to have been merged? Unless maybe this PR is against the wrong base? |
Hrm, this PR is in the main history: a0f4863 but this one is not: e0ec8de @TallTed can you please open an issue to track this, we have to make sure we figure out what's going on here. Losing commits like this is a big deal/problem. The Editors are going to have to do some |
I'm merging this PR into PR #834 (give that there are no objections, I need to clean up the JWT encoding, and because that other PR isn't going to be merged until all of this is correct). This is an administrative move to merge two PRs into one before we send out the 14 day merge announcement to the CCG. |
This PR builds on PR #834 by just applying respec-vc to all other examples that it can be applied to at this time.
Preview | Diff