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

Added related resource text and example #177

Merged
merged 4 commits into from
Jul 25, 2023
Merged
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
35 changes: 34 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ <h3>JsonSchema2023</h3>
<td>The <code>type</code> property MUST be JsonSchema2023.</td>
</tr>
</tbody>
</table>
</table>
</p>
<p>
An example of utilizing the VC Data Model's <code>credentialSchema</code>
is provided below:
<pre class="example" title="Example JsonSchema2023">
Expand Down Expand Up @@ -441,6 +442,38 @@ <h3>Integrity Validation</h3>
<p class="issue" data-number="143">
Provide examples for Data Integrity and VC-JWT Credential Schemas
</p>
<p>
Credential Schemas of type <a href="#jsonschema2023">JsonSchema2023</a> MAY
be annotated with integrity information by adding the `digestSRI` property to the `credentialSchema` value
in the Verifiable Credential which contains the schema, as described in
<a data-cite="vc-data-model/#integrity-of-related-resources">Integrity of Related Resources</a>.
Validation of the integrity of the schema MUST be done before evaluation.
</p>
<p>
An example of such usage is provided below:
</p>
<pre class="example nohighlight" title="Example Verifiable Credential JsonSchema2023 with Integrity Information">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "https://example.com/credentials/3733",
"type": ["VerifiableCredential", "EmailCredential"],
"issuer": "https://example.com/issuers/14",
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"emailAddress": "[email protected]"
},
<span class="highlight"> "credentialSchema": {
"id": "https://example.com/schemas/email.json",
"type": "JsonSchema2023",
"digestSRI": "sha384-dNwyy/Zs/YjPor8aoOgnaCqb+PH24QcNFxbxM1XoBOxdbgnpQcVaGYH8QunXww2U",
}</span>
}
</pre>

</section>
<section>
<h3>Evaluation</h3>
Expand Down