Skip to content

Commit

Permalink
Move "created" and "updated" from Core Properties to DID document met…
Browse files Browse the repository at this point in the history
…adata.

Addresses w3c#203 and w3c#174.
  • Loading branch information
peacekeeper committed Jul 30, 2020
1 parent 2956430 commit bb2189d
Showing 1 changed file with 29 additions and 55 deletions.
84 changes: 29 additions & 55 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2257,59 +2257,6 @@ <h2>Service Endpoints</h2>
</p>
</section>

<section class="normative">
<h2>Created</h2>

<p>
A <a>DID document</a> SHOULD include a <code>created</code> property.
</p>

<dl>
<dt>created</dt>
<dd>
If a <a>DID document</a> includes a <code>created</code> property, the value of
the property MUST be a valid XML datetime value, as defined in section 3.3.7 of
<a href="https://www.w3.org/TR/xmlschema11-2/">W3C XML Schema Definition
Language (XSD) 1.1 Part 2: Datatypes</a> [[XMLSCHEMA11-2]]. This datetime value
MUST be normalized to UTC 00:00, as indicated by the trailing "Z".
</dd>
</dl>

<pre class="example nohighlight">
{
"created": "2002-10-10T17:00:00Z"
}
</pre>
</section>

<section>
<h2>Updated</h2>

<p>
Standard metadata for identifier records includes a timestamp of the most recent
change.
</p>

<p>
A <a>DID document</a> SHOULD include an <code>updated</code> property.
</p>

<dl>
<dt>updated</dt>
<dd>
If a <a>DID document</a> includes an <code>updated</code> property, the value of
the property MUST follow the same formatting rules as the <code>created</code>
property, as outlined in Section <a href="#created"></a>.
</dd>
</dl>

<pre class="example nohighlight">
{
"updated": "2016-10-17T02:41:00Z"
}
</pre>
</section>

</section>

<section class="normative">
Expand Down Expand Up @@ -3436,6 +3383,33 @@ <h3>
This specification defines the following common properties.
</p>

<dl>
<dt>
created
</dt>
<dd>
DID document metadata SHOULD include a <code>created</code> property
to indicate the timestamp of the <a href="#create">Create operation</a>.
This property MAY not be supported by a given <a>DID method</a>.
The value of
the property MUST be a valid XML datetime value, as defined in section 3.3.7 of
<a href="https://www.w3.org/TR/xmlschema11-2/">W3C XML Schema Definition
Language (XSD) 1.1 Part 2: Datatypes</a> [[XMLSCHEMA11-2]]. This datetime value
MUST be normalized to UTC 00:00, as indicated by the trailing "Z".
</dd>
<dt>
updated
</dt>
<dd>
DID document metadata SHOULD include an <code>updated</code> property
to indicate the timestamp of the last <a href="#update">Update operation</a>.
This property MAY not be supported by a given <a>DID method</a>.
The value of
the property MUST follow the same formatting rules as the <code>created</code>
property.
</dd>
</dl>

</section>

</section>
Expand Down Expand Up @@ -3704,8 +3678,8 @@ <h2>
</ul>

<p>
Non-repudiation is further supported if timestamps are included (see Sections
<a href="#created"></a> and <a href="#updated"></a>) and the target <a>DLT</a>
Non-repudiation is further supported if timestamps are included (see Section
<a href="#did-document-metadata-properties"></a>) and the target <a>DLT</a>
system supports timestamps.
</p>
</section>
Expand Down

0 comments on commit bb2189d

Please sign in to comment.