Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type property #410

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1288,11 +1288,42 @@ <h2>DID Subject</h2>
However, the fully resolved <a>DID document</a> always contains a valid
<code><a>id</a></code> property. The value of <code><a>id</a></code> in the
resolved <a>DID document</a> MUST match the <a>DID</a> that was
resolved, or be populated with the equivalent canonical <a>DID</a>
specified by the <a>DID method</a>, which SHOULD be used by the resolving
resolved, or be populated with the equivalent canonical <a>DID</a>
specified by the <a>DID method</a>, which SHOULD be used by the resolving
party going forward.
</p>

<p>
For certain use cases it might be useful to explicitly state the nature of the
<a>DID subject</a> (e.g., person, organization, book, web page, data
structure, abstract concept, etc.). For this, the <code><a>type</a></code>
property is used.
</p>

<p>
<a>DID documents</a> MAY include the <code><a>type</a></code> property.
</p>

<dl>
<dt><dfn>type</dfn></dt>
<dd>
Where present, the value of <code>type</code> MUST be a
<a data-cite="INFRA#lists">list</a> where each item in the list is either a
<a>URI</a> conforming to [[RFC3986]] <em>or</em> a <a
data-cite="INFRA#string">string</a> which is registered in the
[[DID-SPEC-REGISTRIES]].
</dd>
</dl>

<pre class="example nohighlight" title="Example of type property">
{
"@context": "https://www.w3.org/ns/did/v1",
"id": "did:example:21tDAKCERh95uGgKbJNHYp",
"type": ["https://schema.org/Organization"],
<span class="comment">...</span>
}
</pre>

<p>
A <a>DID subject</a> can have multiple identifiers for different purposes, or
at different times. The assertion that two or more <a>DIDs</a> (or other types
Expand Down