Skip to content

Commit

Permalink
Add example of expanded issuer property. Related to issue #709.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Aug 18, 2019
1 parent 15f708d commit dafadea
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,35 @@ <h3>Issuer</h3>
}
</pre>

<p>
It is also possible to express additional information about the issuer by
associating an object with the issuer property:
</p>

<pre class="example nohighlight" title="Usage of issuer expanded property">
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "http://example.edu/credentials/3732",
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
<span class="highlight">"issuer": {
"id": "did:example:76e12ec712ebc6f1c221ebfeb1f",
"name": "Example University"
}</span>,
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
},
"proof": { <span class="comment">...</span> }
}
</pre>

<p class="note">
The value of the <code>issuer</code> <a>property</a> can also be a JWK (for
example, <code>"https://example.com/keys/foo.jwk"</code>) or a <a>DID</a> (for
Expand Down

0 comments on commit dafadea

Please sign in to comment.