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

Fix example 24 with enveloped credential #219

Closed
wants to merge 6 commits into from
Closed

Conversation

decentralgabe
Copy link
Collaborator

@decentralgabe decentralgabe commented Jan 16, 2024

Fix #217


Preview | Diff

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.

Unfortunately, Github does not let me to comment directly on lines that were not edited. I believe the example should be:

{ 
  "@context": ["https://www.w3.org/ns/credentials/v2"], 
  "type": ["VerifiablePresentation"], 
  "holder": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI", 
  "verifiableCredential": [{ 
    "@context": ["https://www.w3.org/ns/credentials/v2"], 
    "type": ["EnvelopedVerifiableCredential"], 
    "id": "data:application/vcld+json+sd-jwt;eyJhbGciOiJFUzM4NCIsImtpZCI6IlNJM1JITm91aDhvODFOT09OUFFVQUw3RWdaLWtJNl94ajlvUkV2WDF4T3ciLCJ0eXAiOiJ2YytsZCtqc29uK3NkLWp3dCIsImN0eSI6InZjK2xkK2pzb24ifQ.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaXNzdWVyIjoiaHR0cHM6Ly91bml2ZXJzaXR5LmV4YW1wbGUvaXNzdWVycy81NjUwNDkiLCJ2YWxpZEZyb20iOiIyMDEwLTAxLTAxVDE5OjIzOjI0WiIsImNyZWRlbnRpYWxTY2hlbWEiOnsiX3NkIjpbIkU3dU1sSWFyS29iYXJTdEZGRjctZm5qaV9sQVdnM3BGMkV5dVc4dWFYakUiLCJYelRaSVgyNGdDSWxSQVFHclFoNU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dS1fd1dRIiwgInR5cGUiLCBbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwgIkV4YW1wbGVBbHVtbmlDcmVkZW50aWFsIl1d~WyJUQVdrakpCaVpxdC1rVU54X1EweUJBIiwgImlkIiwgImh0dHBzOi8vZXhhbXBsZS5vcmcvZXhhbXBsZXMvZGVncmVlLmpzb24iXQ~WyJTd2xuZFpPZzZEZ1ZERFp5X0RvYVFBIiwgInR5cGUiLCAiSnNvblNjaGVtYSJd~WyJuSnJlU3E1Nzg3RGZMSDJCbU03cXFRIiwgImlkIiwgImRpZDpleGFtcGxlOjEyMyJd~WyIxMjNNd3hNcHRiek02YUk2aW03ME1RIiwgInR5cGUiLCAiQmFjaGVsb3JEZWdyZWUiXQ" 
  }] 
}

All the other properties are defined on a Verifiable Credential only, and not on an Enveloped one. (I cannot check whether the value of the Data URI is correct, I let this to you...)

cc: @msporny

index.html Outdated Show resolved Hide resolved
@decentralgabe
Copy link
Collaborator Author

@iherman should be good now!

@decentralgabe decentralgabe linked an issue Jan 22, 2024 that may be closed by this pull request
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.

You forgot to remove the issuer property...

I approve, provided that change is accepted.

index.html Outdated Show resolved Hide resolved
@Sakurann
Copy link
Contributor

I think it would be a good idea to fix not just the example, but enhance the description/requirements too. because the text leading to the examples was not clear either.

Co-authored-by: Ivan Herman <[email protected]>
@decentralgabe
Copy link
Collaborator Author

decentralgabe commented Jan 24, 2024

Going to change two things:

  1. Add an example of a secure enveloped credential presentation
  2. Add text / descriptions
  3. Make sure there are examples of SD JWTs with disclosures in the presentation

@iherman
Copy link
Member

iherman commented Jan 24, 2024

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

  • no resolutions were taken
View the transcript

1.1. Fix example 24 with enveloped credential (pr vc-jose-cose#219)

See github pull request vc-jose-cose#219.

Brent Zundel: Ivan has suggested changes on this one that I believe have been addressed. There's a suggestion from Kristina about enhancing the description. It looks like a straightforward editorial change.

Gabe Cohen: I do agree with Kristina's comments that we need an additional example that shows a secured envelope's presentation and it's lacking some text. I will do that in this issue and I'll note that I'll add this information.

Brent Zundel: Anything else on 219?

@decentralgabe
Copy link
Collaborator Author

Updated as described. The first example will render using Orie's plugin and the second is the original example that will render as-is.

Separately I have opened this issue related to #214 which will fix how these examples get rendered. Should be good to merge on approval.

@brentzundel
Copy link
Member

@iherman can you re-review?

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.

I do not understand. While, from my point of view, example 24 looks o.k., I do not see any difference between examples 24 and 25, except that one is coloured and the other is not. What am I missing?
Screenshot 2024-02-08 at 17 15 03

@decentralgabe
Copy link
Collaborator Author

decentralgabe commented Feb 12, 2024

@iherman this has to do with the rendering issue that we are working to fix. the first will be rendered with multiple tabs showing issued/signed/revealed/etc the second will appear as is. I'd prefer to merge this as the rendering fix is a parallel effort.

#214

@iherman
Copy link
Member

iherman commented Feb 12, 2024

@iherman this has to do with the rendering issue that we are working to fix. the first will be rendered with multiple tabs showing issued/signed/revealed/etc the second will appear as is. I'd prefer to merge this as the rendering fix is a parallel effort.

Ok. But then we should probably wait with the merge of this PR to get #214 settled, so that we would get a full picture.

@decentralgabe
Copy link
Collaborator Author

this will be rebased and merged after #241 which is blocked by #239

@decentralgabe
Copy link
Collaborator Author

this has been fixed by #241

@decentralgabe decentralgabe deleted the issue-217 branch February 26, 2024 18:10
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.

Example 24 is invalid
7 participants