Skip to content

Commit b24a862

Browse files
committed
Update security vocab hash statements as requested by @iherman.
1 parent a9bdac0 commit b24a862

File tree

1 file changed

+43
-24
lines changed

1 file changed

+43
-24
lines changed

index.html

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,56 +1522,75 @@ <h2>Contexts and Vocabularies</h2>
15221522
</table>
15231523

15241524
<p>
1525-
Implementations that perform RDF vocabulary processing MUST 1) be implemented
1526-
such that the vocabulary URLs used in the JSON-LD contexts listed above
1527-
resolve to the files listed below, and 2) match the listed cryptographic
1528-
hashes (if specified). The vocabulary content at the URLs listed below is
1529-
normative.
1525+
The security vocabulary terms that the JSON-LD contexts listed above resolve
1526+
to are in the <a href="https://w3id.org/security">https://w3id.org/security#</a>
1527+
namespace. That is, all security terms in this vocabulary are of the form
1528+
`https://w3id.org/security#TERM`, where `TERM` is the name of a term.
1529+
</p>
1530+
1531+
<p>
1532+
Implementations that perform RDF processing MUST treat the following
1533+
JSON-LD vocabulary URL as already resolved, where the resolved document matches
1534+
the corresponding hash values below.
1535+
</p>
1536+
1537+
<p>
1538+
When dereferencing the
1539+
<a href="https://w3id.org/security">https://w3id.org/security#</a> URL,
1540+
the data returned depends on HTTP content negotiation. These are as follows:
15301541
</p>
15311542

15321543
<table class="simple">
15331544
<thead>
15341545
<tr>
1535-
<th>URL and Media Type</th>
1536-
<th>Content</th>
1546+
<th>Media Type</th>
1547+
<th>Description and Cryptographic Hashes</th>
15371548
</tr>
15381549
</thead>
15391550
<tbody>
15401551
<tr>
15411552
<td>
1542-
https://w3id.org/security#<br>
1543-
text/html
1553+
application/ld+json
15441554
</td>
15451555
<td>
1546-
https://w3c.github.io/vc-data-integrity/vocab/security/vocabulary.html
1556+
The vocabulary in JSON-LD format [[?JSON-LD]].<br><br>
1557+
1558+
sha256: LEaoTyf796eTaSlYWjfPe3Yb+poCW9TjWYTbFDmC0tc=<br><br>
1559+
1560+
sha3-512: f4DhJ3xhT8nT+GZ8UUZi4QC+HT//wXE2fRTgUP4UNw<wbr>e4kvel2PFfd6jcofHBm9BjwEiGzVFGv4K+fFTKXRD2NA==
15471561
</td>
15481562
</tr>
15491563
<tr>
15501564
<td>
1551-
https://w3id.org/security#<br>
1552-
application/ld+json
1565+
text/turtle
1566+
</td>
1567+
<td>
1568+
The vocabulary in Turtle format [[?TURTLE]].<br><br>
1569+
sha256: McnhLyt7+/A/0iLb3CUXD0itNw+7bwwjtzOww/zwoyI=<br><br>
1570+
sha3-512: jZtZsqgPPPo+jphAcN8/St4VdRLLAmN3nEQhzs0twE<wbr>MTmCY45euQ01Z4Zo7VlJMYNTf0KC6BMpogpSTAi/1J7Q==
1571+
</td>
1572+
<td>
1573+
</td>
1574+
</tr>
1575+
<tr>
1576+
<td>
1577+
text/html
1578+
</td>
1579+
<td>
1580+
The vocabulary in HTML+RDFa Format [[?HTML-RDFA]].<br><br>
1581+
sha256: eUHP1xiSC157iTPDydZmxg/hvmX3g/nnCn+FO25d4dc=<br><br>
1582+
sha3-512: z53j8ryjVeX16Z/dby//ujhw37degwi09+LAZCTUB8<wbr>WJZjjzW1AydhdEWmgHM0P5KUcPMmSe7edMlGr7G9rmcA==
15531583
</td>
15541584
<td>
1555-
https://w3c.github.io/vc-data-integrity/vocab/security/vocabulary.jsonld<br><br>
1556-
sha256: snzV1JA8H7YB4AAQIH6qLzv48ZOhJ3oCl/ewvf0EBMg=<br><br>
1557-
sha3-512: 7QUmDvF24f0/J0I7ZYpZrtlGIHcsjGXGfjBseg5e3j<wbr>xDZlTqd4P7tklHdKn3fwmT
1558-
yKO1kwi0jv9/DLNjWbMrHA==
15591585
</td>
15601586
</tr>
15611587
</tbody>
15621588
</table>
15631589

1564-
<p class="issue" title="w3c.github.io links expected to change">
1565-
The URLs listed above that start with
1566-
`https://w3c.github.io/vc-data-integrity/vocab/security/` are expected to change
1567-
to `https://www.w3.org/ns/security/` or an equally normative and archived
1568-
location under W3C control.
1569-
</p>
1570-
15711590
<p>
15721591
It is possible to confirm the digests listed above by running the following
15731592
command from a modern Unix command interface line:
1574-
`curl -s &lt;DOCUMENT_URL> | openssl dgst -&ltDIGEST_ALGORITHM> -binary | openssl base64 -nopad -a`.
1593+
`curl -sL -H "Accept: &lt;MEDIA_TYPE>" &lt;DOCUMENT_URL> | openssl dgst -&ltDIGEST_ALGORITHM> -binary | openssl base64 -nopad -a`.
15751594
</p>
15761595

15771596
<p>

0 commit comments

Comments
 (0)