Skip to content

Commit

Permalink
Rename to DID Extensions and migrate common.js into index.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Aug 30, 2024
1 parent 83cddcb commit 69d14c2
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 59 deletions.
40 changes: 0 additions & 40 deletions common.js

This file was deleted.

77 changes: 58 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>
DID Specification Registries
Decentralized Identifier Extensions
</title>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'><!--
=== NOTA BENE ===
Expand All @@ -12,8 +12,47 @@

<script class='remove'
src='https://www.w3.org/Tools/respec/respec-w3c'></script>
<script class='remove'
src='https://w3c.github.io/did-spec-registries/common.js'></script>
<script class='remove'>
/* Build DID Method table using JSON data */
async function buildDidMethodTables(config) {
const {document} = window;
const response = await fetch('methods/index.json');
if(response.status !== 200) {
throw new Error('Failed retrieve DID Method index.json file.');
}
const allMethods = await response.json();

// set up the API summary table headers
const table = document.getElementById('did-method-table');
const tableHeader = document.createElement('thead');
tableHeader.innerHTML = '<th>DID&nbsp;Method</th><th>Registry</th>' +
'<th>Contact</th>';
table.appendChild(tableHeader);

// summarize each API endpoint
const tableBody = document.createElement('tbody');
for(const method of allMethods) {
const tableRow = document.createElement('tr');
const {name, verifiableDataRegistry, contactEmail, contactName,
contactWebsite, specification} = method;
let contactInfo = contactName;
if(contactEmail) {
contactInfo += ` (<a href="mailto:${contactEmail}">email</a>)`;
}
if(contactWebsite) {
contactInfo += ` (<a href="${contactWebsite}">website</a>)`;
}
tableRow.innerHTML =
`<td><a href="${specification}">${name}</a></td>` +
`<td>${verifiableDataRegistry}</td>` +
`<td>${contactInfo}</td>`;
tableBody.appendChild(tableRow);
}
table.appendChild(tableBody);

}
window.buildDidMethodTables = buildDidMethodTables;
</script>
<script class="remove" type="text/javascript">
var respecConfig = {
wgPublicList: "public-did-wg",
Expand All @@ -23,12 +62,12 @@
specStatus: "NOTE",

// the specification's short name, as in http://www.w3.org/TR/short-name/
shortName: "did-spec-registries",
shortName: "did-extensions",

edDraftURI: "https://w3c.github.io/did-spec-registries/",
edDraftURI: "https://w3c.github.io/did-extensions/",

// subtitle
subtitle: "The interoperability registry for Decentralized Identifiers",
subtitle: "Known Extensions for the Decentralized Identifier Ecosystem",

// if you wish the publication date to be other than today, set this
//publishDate: "2019-11-07",
Expand All @@ -40,8 +79,8 @@

// extend the bibliography entries
github: {
repoURL: "https://github.com/w3c/did-spec-registries/",
branch: "master"
repoURL: "https://github.com/w3c/did-extensions/",
branch: "main"
},
includePermalinks: false,

Expand Down Expand Up @@ -148,7 +187,7 @@
<p>
Comments regarding this document are welcome. Please file issues
directly on
<a href="https://github.com/w3c/did-spec-registries/issues/">GitHub</a>,
<a href="https://github.com/w3c/did-extensions/issues/">GitHub</a>,
or send them
to <a href="mailto:public-did-wg@w3.org">public-did-wg@w3.org</a> (
<a href="mailto:public-did-wg-request@w3.org?subject=subscribe">subscribe</a>,
Expand Down Expand Up @@ -586,9 +625,9 @@ <h4>linkedResource</h4>
</tr>
</tbody>
</table>

<pre class="example" title="Example of linked resource properties">
{
{
...
"linkedResource" : [{
"id": "did:cosmos:1:impacthub:nft:abc123#resourceHashgraph",
Expand All @@ -598,7 +637,7 @@ <h4>linkedResource</h4>
"endpoint" : "did:cosmos:1:impacthub:nft:abc123?service=mediator"
}]
}</pre>

</section>

<section>
Expand All @@ -623,14 +662,14 @@ <h4>dnsValidationDomain</h4>
</tr>
</tbody>
</table>

<pre class="example" title="Example of dnsValidationDomain property">
{
{
"dnsValidationDomain": "mydomain.example"
...
}</pre>
</section>

</section>
<section>
<h3>Verification relationships</h3>
Expand Down Expand Up @@ -1379,7 +1418,7 @@ <h4>PgpVerificationKey2021</h4>
<section>
<h4>RsaVerificationKey2018</h4>
<p class="issue">
<a href="https://github.com/w3c/did-spec-registries/issues/370">DID
<a href="https://github.com/w3c/did-extensions/issues/370">DID
Specification Registries Issue 370</a> This property should be moved into a
separate suite and linked to here rather than relying on the Verifiable
Credentials vocabulary. There are known issues with the first version of the
Expand Down Expand Up @@ -1744,7 +1783,7 @@ <h4>Web of Things (WoT) Discovery</h4>
<p>The <code>WotThing</code> and <code>WotDirectory</code> endpoints allow publication of service endpoints in a DID document
that can be used to fetch Web of Things (WoT) Thing Descriptions (TDs).
The <code>WotThing</code> endpoint is a REST service that returns a TD
when the <code>GET</code> method is used.
when the <code>GET</code> method is used.
This can be used for self-describing devices or services, or be a service
separate from the actual device or service described by the TD.
The <code>WotDirectory</code> is also a REST service that returns a TD, but this service is always
Expand Down Expand Up @@ -1812,7 +1851,7 @@ <h4>Web of Things (WoT) Discovery</h4>
...
}
</pre>

</section>

<section>
Expand Down Expand Up @@ -3088,7 +3127,7 @@ <h3 id="resource">resource</h3>
<h1>DID Methods</h1>

<p>
This table summarizes the DID method specifications currently in development.
This table summarizes the DID method specifications currently in development.
The links will be updated as subsequent Implementer’s Drafts are produced.
This registry does not act as an endorsement of any particular DID method or its
underlying technologies by the W3C, the W3C Decentralized Identifier Working Group,
Expand Down

0 comments on commit 69d14c2

Please sign in to comment.