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

Restructure spec to describe basic concepts and verification #65

Merged
merged 11 commits into from
Aug 3, 2017
Prev Previous commit
Next Next commit
Add section on expiration. Related to #59 and #9.
  • Loading branch information
msporny committed Jul 27, 2017
commit 5df9ecd1827987543946a6edbe4cdb689556e7f6
31 changes: 30 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ <h2>Issuer</h2>
</dd>
<dt><var>issued</var></dt>
<dd>
The value of this property MUST be a string value of an [ISO8601] combined
The value of this property MUST be a string value of an [[!ISO8601]] combined
date and time string and represents the date and time the <a>credential</a>
was issued. Note that this date represents the earliest date when the
information associated with the <var>claim</var> property became valid.
Expand Down Expand Up @@ -558,6 +558,35 @@ <h2>Signature</h2>

<section>
<h2>Expiration</h2>
<p>
Expiration information for the <a>credential</a> MAY be provided by adding
the following <a>property</a>:
</p>

<dl>
<dt><var>expires</var></dt>
<dd>
The value of this property MUST be a string value of an [[!ISO8601]] combined
date and time string and represents the date and time the <a>credential</a>
will cease to be valid.
</dd>
</dl>

<pre class="example nohighlight" title="Usage of revocation property">
{
"@context": "https://w3id.org/security/v1",
"id": "http://dmv.example.gov/credentials/3732",
"type": ["Credential", "ProofOfAgeCredential"],
"issuer": "https://dmv.example.gov/issuers/14",
"issued": "2010-01-01T19:73:24Z",
<span class="highlight">"expires": "2020-01-01T19:73:24Z"</span>,
"claim": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"ageOver": 21
},
"signature": { ... }
}
</pre>
</section>

<section>
Expand Down