Skip to content

Commit

Permalink
Use vc-hash to generate relatedResource examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Oct 19, 2024
1 parent 7407363 commit 04576fa
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3228,26 +3228,34 @@ <h2>Integrity of Related Resources</h2>
</p>

<pre class="example nohighlight"
title="Use of the relatedResource and digestSRI properties">
title="Use of the digestSRI property (base64-encoded SHA2-384)">
"relatedResource": [{
"id": "https://www.w3.org/ns/credentials/v2",
"digestSRI":
"sha384-lHKDHh0msc6pRx8PhDOMkNtSI8bOfsp4giNbUrw71nXXLf13nTqNJoRp3Nx+ArVK"
"<span class='vc-hash'
data-hash-url='https://www.w3.org/ns/credentials/v2'
data-hash-format='sri sha2-384'></span>"
},{
"id": "https://www.w3.org/ns/credentials/examples/v2",
"digestSRI":
"sha384-zNNbQTWCSUSi0bbz7dbua+RcENv7C6FvlmYJ1Y+I727HsPOHdzwELMYO9Mz68M26"
"<span class='vc-hash'
data-hash-url='https://www.w3.org/ns/credentials/examples/v2'
data-hash-format='sri sha2-384'></span>"
}]
</pre>

<pre class="example nohighlight"
title="Use of the relatedResource and digestMultibase properties">
title="Use of the digestMultibase property (base64-url-nopad-encoded SHA2-256)">
"relatedResource": [{
"id": "https://www.w3.org/ns/credentials/v2",
"digestMultibase": "uEres1usWcWCmW7uolIW2uA0CjQ8iRV14eGaZStJL73Vz"
"digestMultibase": "<span class='vc-hash'
data-hash-url='https://www.w3.org/ns/credentials/v2'
data-hash-format='multihash sha2-256'></span>"
},{
"id": "https://www.w3.org/ns/credentials/examples/v2",
"digestMultibase": "uElc5P7xp1u-5ubXcnLa5iAsJRDYKv-Lq9FnJ5YzyJ518"
"digestMultibase": "<span class='vc-hash'
data-hash-url='https://www.w3.org/ns/credentials/examples/v2'
data-hash-format='multihash sha2-256'></span>"
}]
</pre>

Expand Down

0 comments on commit 04576fa

Please sign in to comment.