Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add support for Enveloped Verifiable Credentials (2nd attempt) #1379
Add support for Enveloped Verifiable Credentials (2nd attempt) #1379
Changes from 3 commits
2783fd5
179b88b
5cbb196
c4d5554
01262ae
3884d4e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is it really necessary to include a
@context
at this point? The only reason to have it is to use theid
andtype
aliases, but that would be inherited from the contexts above, wouldn't it?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.
Yes, it's necessary, because (in the v2 context) we clear all context values inside the Verifiable Credential Graph. We have to do this in order to ensure that VCDM v1.1 VCs can be put inside VCDMV v2.0 VPs. If we don't do that, JSON-LD protected mode kicks in and alerts us that we're re-defining some terms (which is the correct behaviour).
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.
Ah. Right, my bad.
(For other reviewers, in case they do not follow: there is a
"@context": null
statement within the definition of theVerifiablePresentation.verifiableCredential
property in the V2@context
file. The reason is what @msporny describes above.)Let me picky, though. The text says:
However, §4.2 only says:
Technically, i.e., in the vocabulary, an
EnvelopedVerifiableCredential
is not aVerifiableCredential
(they are different classes), meaning that the statement in §4.2 does not apply, i.e., it is not said that a@context
file must be present. You can either change the text in §4.2, or add a statement in the new section whereby a@context
property MUST be added.Also, continuing to be picky, and looking at §5.12, the text says:
(Emphasis is mine.) I believe it should say something like
(Or something for that effect.)
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.
Yes, I believe your statements above are correct, I'll make those modifications in the next iteration of this PR.
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.
I don't think the second context is required here... if the v2 context defines things correctly.
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.
@OR13,
As explained in the comments above, the second context is indeed necessary as the context is intentionally cleared to support other contexts (such as 1.1). So a context declaration is required.
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.
@OR13
We can put it another way: if the second context is not used, then the right terms for that object must be
@type
and@id
instead oftype
andid
, respectively (this is how the current, v2 version of@context
works, and I do not see any way to avoid that.)It is indeed unfortunate that the usage of those aliases force us to use the second context here. But that is water under the bridge, we decided not to use the original,
@
-prefixed values.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.
@iherman, I applied your requests in 2ffb884.
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.
Are there 2 here intentionally?
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.
@OR13, this is a respec trick.
So the short answer to your question is: yes.
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 is interesting... I think with some discussion this could be acceptable.