Skip to content

Commit

Permalink
Add expires example to proof.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Oct 14, 2024
1 parent 8cf331e commit 55e44cc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,27 @@ <h3>Proofs</h3>
representing time values to individuals.
</p>

<pre class="example nohighlight"
title="A proof attached to a data document that uses the 'expires' property">
{
"@context": [
{"myWebsite": "https://vocabulary.example/myWebsite"},
"https://w3id.org/security/data-integrity/v2"
],
"myWebsite": "https://hello.world.example/",
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "ecdsa-rdfc-2019",
"created": "2020-06-11T19:14:04Z",
<span class="comment">// the proof expires a month after it was issued</span>
<span class="highlight">expires": "2020-07-11T19:14:04Z"</span>,
"verificationMethod": "https://ldi.example/issuer#zDnaepBuvsQ8cpsWrVK<wbr>w8fbpGpvPeNSjVPTWoq6cRqaYzBKVP",
"proofPurpose": "assertionMethod",
"proofValue": "z98X7RLrkjnXEADJNUhiTEdwyE5GXX8cyJZRLQZ7vZyUXb23Zkdakf<wbr>RJ7adYY8hn35EetqBkNw813SGsJHWrcpo4"
}
}
</pre>

<p>
The Data Integrity specification supports the concept of multiple
proofs in a single document. There are two types of multi-proof
Expand Down

0 comments on commit 55e44cc

Please sign in to comment.