Skip to content

Commit 2743534

Browse files
andresuribe87decentralgabeTallTed
authored
Added related resource text and example (#177)
* Added related resource text and example * Update index.html Co-authored-by: Gabe <[email protected]> * Update index.html Co-authored-by: Ted Thibodeau Jr <[email protected]> * Update index.html Co-authored-by: Ted Thibodeau Jr <[email protected]> --------- Co-authored-by: Gabe <[email protected]> Co-authored-by: Ted Thibodeau Jr <[email protected]>
1 parent 5baa14a commit 2743534

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

index.html

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ <h3>JsonSchema2023</h3>
182182
<td>The <code>type</code> property MUST be JsonSchema2023.</td>
183183
</tr>
184184
</tbody>
185-
</table>
185+
</table>
186186
</p>
187+
<p>
187188
An example of utilizing the VC Data Model's <code>credentialSchema</code>
188189
is provided below:
189190
<pre class="example" title="Example JsonSchema2023">
@@ -455,6 +456,38 @@ <h3>Integrity Validation</h3>
455456
<p class="issue" data-number="143">
456457
Provide examples for Data Integrity and VC-JWT Credential Schemas
457458
</p>
459+
<p>
460+
Credential Schemas of type <a href="#jsonschema2023">JsonSchema2023</a> MAY
461+
be annotated with integrity information by adding the `digestSRI` property to the `credentialSchema` value
462+
in the Verifiable Credential which contains the schema, as described in
463+
<a data-cite="vc-data-model/#integrity-of-related-resources">Integrity of Related Resources</a>.
464+
Validation of the integrity of the schema MUST be done before evaluation.
465+
</p>
466+
<p>
467+
An example of such usage is provided below:
468+
</p>
469+
<pre class="example nohighlight" title="Example Verifiable Credential JsonSchema2023 with Integrity Information">
470+
{
471+
"@context": [
472+
"https://www.w3.org/ns/credentials/v2",
473+
"https://www.w3.org/ns/credentials/examples/v2"
474+
],
475+
"id": "https://example.com/credentials/3733",
476+
"type": ["VerifiableCredential", "EmailCredential"],
477+
"issuer": "https://example.com/issuers/14",
478+
"issuanceDate": "2010-01-01T19:23:24Z",
479+
"credentialSubject": {
480+
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
481+
"emailAddress": "[email protected]"
482+
},
483+
<span class="highlight"> "credentialSchema": {
484+
"id": "https://example.com/schemas/email.json",
485+
"type": "JsonSchema2023",
486+
"digestSRI": "sha384-dNwyy/Zs/YjPor8aoOgnaCqb+PH24QcNFxbxM1XoBOxdbgnpQcVaGYH8QunXww2U",
487+
}</span>
488+
}
489+
</pre>
490+
458491
</section>
459492
<section>
460493
<h3>Evaluation</h3>

0 commit comments

Comments
 (0)