-
Notifications
You must be signed in to change notification settings - Fork 117
Specify the draft Verifiable Credentials v2.0 context. #905
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4d5f49b
Specify the Verifiable Credentials v2.0 context.
msporny bfce275
Ensure `id` and `type` aliases are declared in scoped contexts.
msporny 0a785c3
Drop @container to separate line in ...vc/v2 context.
msporny 99403c4
Temporarily remove validFrom/validUntil from v2 context.
msporny 3331d31
Drop @container to next line in v2 context.
msporny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"@context": { | ||
"@protected": true, | ||
|
||
"id": "@id", | ||
"type": "@type", | ||
|
||
"VerifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential", | ||
"@context": { | ||
"@protected": true, | ||
|
||
"id": "@id", | ||
"type": "@type", | ||
|
||
"credentialSchema": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialSchema", | ||
"@type": "@id" | ||
}, | ||
"credentialStatus": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialStatus", | ||
"@type": "@id" | ||
}, | ||
"credentialSubject": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialSubject", | ||
"@type": "@id" | ||
}, | ||
"description": { | ||
"@id": "https://schema.org/description", | ||
"@type": "http://www.w3.org/2001/XMLSchema#string" | ||
}, | ||
"evidence": { | ||
"@id": "https://www.w3.org/2018/credentials#evidence", | ||
"@type": "@id" | ||
}, | ||
"holder": { | ||
"@id": "https://www.w3.org/2018/credentials#holder", | ||
"@type": "@id" | ||
}, | ||
"issued": { | ||
"@id": "https://www.w3.org/2018/credentials#issued", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"issuer": { | ||
"@id": "https://www.w3.org/2018/credentials#issuer", | ||
"@type": "@id" | ||
}, | ||
"name": { | ||
"@id": "https://schema.org/description", | ||
"@type": "http://www.w3.org/2001/XMLSchema#string" | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"refreshService": { | ||
"@id": "https://www.w3.org/2018/credentials#refreshService", | ||
"@type": "@id" | ||
}, | ||
"termsOfUse": { | ||
"@id": "https://www.w3.org/2018/credentials#termsOfUse", | ||
"@type": "@id" | ||
} | ||
} | ||
}, | ||
|
||
"VerifiablePresentation": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiablePresentation", | ||
"@context": { | ||
"@protected": true, | ||
|
||
msporny marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"id": "@id", | ||
"type": "@type", | ||
"holder": { | ||
"@id": "https://www.w3.org/2018/credentials#holder", | ||
"@type": "@id" | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"verifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#verifiableCredential", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
} | ||
} | ||
} | ||
} | ||
} |
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.
Uh oh!
There was an error while loading. Please reload this page.