From 81df3ef66ed8ae57a89cf6d8110416f5d04994db Mon Sep 17 00:00:00 2001 From: Manu Sporny Date: Fri, 28 Jul 2023 16:49:04 -0400 Subject: [PATCH] Update security vocab hash statements as requested by @iherman. --- index.html | 67 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 86ce6b35..649175bd 100644 --- a/index.html +++ b/index.html @@ -1528,56 +1528,75 @@

Contexts and Vocabularies

-Implementations that perform RDF vocabulary processing MUST 1) be implemented -such that the vocabulary URLs used in the JSON-LD contexts listed above -resolve to the files listed below, and 2) match the listed cryptographic -hashes (if specified). The vocabulary content at the URLs listed below is -normative. +The security vocabulary terms that the JSON-LD contexts listed above resolve +to are in the https://w3id.org/security# +namespace. That is, all security terms in this vocabulary are of the form +`https://w3id.org/security#TERM`, where `TERM` is the name of a term. +

+ +

+Implementations that perform RDF processing MUST treat the following +JSON-LD vocabulary URL as already resolved, where the resolved document matches +the corresponding hash values below. +

+ +

+When dereferencing the +https://w3id.org/security# URL, +the data returned depends on HTTP content negotiation. These are as follows:

- - + + + + + + + +
URL and Media TypeContentMedia TypeDescription and Cryptographic Hashes
-https://w3id.org/security#
-text/html +application/ld+json
-https://w3c.github.io/vc-data-integrity/vocab/security/vocabulary.html +The vocabulary in JSON-LD format [[?JSON-LD]].

+ +sha256: LEaoTyf796eTaSlYWjfPe3Yb+poCW9TjWYTbFDmC0tc=

+ +sha3-512: f4DhJ3xhT8nT+GZ8UUZi4QC+HT//wXE2fRTgUP4UNwe4kvel2PFfd6jcofHBm9BjwEiGzVFGv4K+fFTKXRD2NA==
-https://w3id.org/security#
-application/ld+json +text/turtle +
+The vocabulary in Turtle format [[?TURTLE]].

+sha256: McnhLyt7+/A/0iLb3CUXD0itNw+7bwwjtzOww/zwoyI=

+sha3-512: jZtZsqgPPPo+jphAcN8/St4VdRLLAmN3nEQhzs0twEMTmCY45euQ01Z4Zo7VlJMYNTf0KC6BMpogpSTAi/1J7Q== +
+
+text/html + +The vocabulary in HTML+RDFa Format [[?HTML-RDFA]].

+sha256: eUHP1xiSC157iTPDydZmxg/hvmX3g/nnCn+FO25d4dc=

+sha3-512: z53j8ryjVeX16Z/dby//ujhw37degwi09+LAZCTUB8WJZjjzW1AydhdEWmgHM0P5KUcPMmSe7edMlGr7G9rmcA==
-https://w3c.github.io/vc-data-integrity/vocab/security/vocabulary.jsonld

-sha256: snzV1JA8H7YB4AAQIH6qLzv48ZOhJ3oCl/ewvf0EBMg=

-sha3-512: 7QUmDvF24f0/J0I7ZYpZrtlGIHcsjGXGfjBseg5e3jxDZlTqd4P7tklHdKn3fwmT -yKO1kwi0jv9/DLNjWbMrHA==
-

-The URLs listed above that start with -`https://w3c.github.io/vc-data-integrity/vocab/security/` are expected to change -to `https://www.w3.org/ns/security/` or an equally normative and archived -location under W3C control. -

-

It is possible to confirm the digests listed above by running the following command from a modern Unix command interface line: -`curl -s <DOCUMENT_URL> | openssl dgst -<DIGEST_ALGORITHM> -binary | openssl base64 -nopad -a`. +`curl -sL -H "Accept: <MEDIA_TYPE>" <DOCUMENT_URL> | openssl dgst -<DIGEST_ALGORITHM> -binary | openssl base64 -nopad -a`.