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

Feature: vc-jwt context #54

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.vscode
12 changes: 12 additions & 0 deletions examples/vc-2.0/vc-jwt.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
{
"@vocab": "https://www.w3.org/ns/credentials/v2#claim-",
"vc": "https://www.w3.org/ns/credentials/v2#",
"iss": {"@id": "https://www.w3.org/ns/credentials/v2#issuer"},
"sub": {"@id": "https://www.w3.org/ns/credentials/v2#credentialSubject"},
"nbf": {"@id": "https://www.w3.org/ns/credentials/v2#issuanceDate"}
}
]
}
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,18 @@ <h2>Version 2</h2>
<section>
<h2>Credential Metadata</h2>
<p><a data-cite="rfc7519#section-5.1">typ</a> MUST use the content type <code>verifiable-credential+jwt</code>.</p>
<p>
The content type <code>vc+jwt</code> implies the use of an `@context` that defines the registered claims present
in a JWT that provides semantic interoperability and deterministic conversion to RDF via the [[vc-data-model]] and its base context.
This provides the ability to always transform or interpert a `vc-jwt` as a conforming verifiable credential
according to the [[vc-data-model]].
</p>
<aside
class="example"
title="JSON-LD context for vc-jwt"
>
<pre data-include="./examples/vc-2.0/vc-jwt.jsonld" data-include-format="json"></pre>
</aside>
<p class="issue" data-number="45"></p>
<p>If present, <a data-cite="rfc7519#section-5.2">cty</a> SHOULD use the content type <code>credential-claims-set+json</code>.</p>
<aside
Expand Down