Skip to content

Commit cd60128

Browse files
committed
Add respec-vc proof/JWT rendering to many other examples.
1 parent 7790d6c commit cd60128

File tree

1 file changed

+62
-56
lines changed

1 file changed

+62
-56
lines changed

index.html

Lines changed: 62 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ <h3>Concrete Lifecycle Example</h3>
933933
<span class='comment'>// purpose of this proof</span>
934934
"proofPurpose": "assertionMethod",
935935
<span class='comment'>// the identifier of the public key that can verify the signature</span>
936-
"verificationMethod": "https://example.edu/issuers/565049/keys/1",
936+
"verificationMethod": "https://example.edu/issuers/565049#key-1",
937937
<span class='comment'>// the digital signature value</span>
938938
"jws": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5X
939939
sITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUc
@@ -989,7 +989,7 @@ <h3>Concrete Lifecycle Example</h3>
989989
"type": "RsaSignature2018",
990990
"created": "2017-06-18T21:19:10Z",
991991
"proofPurpose": "assertionMethod",
992-
"verificationMethod": "https://example.edu/issuers/565049/keys/1",
992+
"verificationMethod": "https://example.edu/issuers/565049#key-1",
993993
"jws": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5X
994994
sITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUc
995995
X16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtj
@@ -1199,7 +1199,7 @@ <h3>Identifiers</h3>
11991199
</dl>
12001200

12011201
<pre class="example nohighlight vc" title="Usage of the id property"
1202-
data-vc-verification-method="https://example.edu/issuers/565049/keys/1">
1202+
data-vc-verification-method="https://example.edu/issuers/565049#key-1">
12031203
{
12041204
"@context": [
12051205
"https://www.w3.org/2018/credentials/v1",
@@ -1274,7 +1274,8 @@ <h3>Types</h3>
12741274
</dd>
12751275
</dl>
12761276

1277-
<pre class="example nohighlight" title="Usage of the type property">
1277+
<pre class="example nohighlight vc" title="Usage of the type property"
1278+
data-vc-verification-method="https://example.edu/issuers/565049#key-1">
12781279
{
12791280
"@context": [
12801281
"https://www.w3.org/2018/credentials/v1",
@@ -1290,8 +1291,7 @@ <h3>Types</h3>
12901291
"type": "BachelorDegree",
12911292
"name": "Bachelor of Science and Arts"
12921293
}
1293-
},
1294-
"proof": { <span class="comment">...</span> }
1294+
}
12951295
}
12961296
</pre>
12971297

@@ -1490,7 +1490,9 @@ <h3>Credential Subject</h3>
14901490
</dd>
14911491
</dl>
14921492

1493-
<pre class="example nohighlight" title="Usage of the credentialSubject property">
1493+
<pre class="example nohighlight vc"
1494+
title="Usage of the credentialSubject property"
1495+
data-vc-verification-method="https://example.edu/issuers/565049#key-1">
14941496
{
14951497
"@context": [
14961498
"https://www.w3.org/2018/credentials/v1",
@@ -1506,8 +1508,7 @@ <h3>Credential Subject</h3>
15061508
"type": "BachelorDegree",
15071509
"name": "Bachelor of Science and Arts"
15081510
}
1509-
},
1510-
"proof": { <span class="comment">...</span> }
1511+
}
15111512
}
15121513
</pre>
15131514

@@ -1518,7 +1519,8 @@ <h3>Credential Subject</h3>
15181519
<a>subjects</a> with the <code>credentialSubject</code> property.
15191520
</p>
15201521

1521-
<pre class="example nohighlight" title="Specifying multiple subjects in a verifiable credential">
1522+
<pre class="example nohighlight"
1523+
title="Specifying multiple subjects in a verifiable credential">
15221524
{
15231525
"@context": [
15241526
"https://www.w3.org/2018/credentials/v1",
@@ -1536,8 +1538,7 @@ <h3>Credential Subject</h3>
15361538
"id": "did:example:c276e12ec21ebfeb1f712ebc6f1",
15371539
"name": "Morgan Doe",
15381540
"spouse": "did:example:ebfeb1f712ebc6f1c276e12ec21"
1539-
}]</span>,
1540-
"proof": { <span class="comment">...</span> }
1541+
}]</span>
15411542
}
15421543
</pre>
15431544

@@ -1567,7 +1568,8 @@ <h3>Issuer</h3>
15671568
</dd>
15681569
</dl>
15691570

1570-
<pre class="example nohighlight" title="Usage of issuer property">
1571+
<pre class="example nohighlight vc" title="Usage of issuer property"
1572+
data-vc-verification-method="https://example.edu/issuers/14#key-1">
15711573
{
15721574
"@context": [
15731575
"https://www.w3.org/2018/credentials/v1",
@@ -1583,8 +1585,7 @@ <h3>Issuer</h3>
15831585
"type": "BachelorDegree",
15841586
"name": "Bachelor of Science and Arts"
15851587
}
1586-
},
1587-
"proof": { <span class="comment">...</span> }
1588+
}
15881589
}
15891590
</pre>
15901591

@@ -1593,7 +1594,9 @@ <h3>Issuer</h3>
15931594
associating an object with the issuer property:
15941595
</p>
15951596

1596-
<pre class="example nohighlight" title="Usage of issuer expanded property">
1597+
<pre class="example nohighlight vc"
1598+
title="Usage of issuer expanded property"
1599+
data-vc-verification-method="did:example:76e12ec712ebc6f1c221ebfeb1f#key-1">
15971600
{
15981601
"@context": [
15991602
"https://www.w3.org/2018/credentials/v1",
@@ -1612,8 +1615,7 @@ <h3>Issuer</h3>
16121615
"type": "BachelorDegree",
16131616
"name": "Bachelor of Science and Arts"
16141617
}
1615-
},
1616-
"proof": { <span class="comment">...</span> }
1618+
}
16171619
}
16181620
</pre>
16191621

@@ -1647,7 +1649,9 @@ <h3>Issuance Date</h3>
16471649
</dd>
16481650
</dl>
16491651

1650-
<pre class="example nohighlight" title="Usage of issuanceDate property">
1652+
<pre class="example nohighlight vc"
1653+
title="Usage of issuanceDate property"
1654+
data-vc-verification-method="https://example.edu/issuers/14#key-1">
16511655
{
16521656
"@context": [
16531657
"https://www.w3.org/2018/credentials/v1",
@@ -1663,8 +1667,7 @@ <h3>Issuance Date</h3>
16631667
"type": "BachelorDegree",
16641668
"name": "Bachelor of Science and Arts"
16651669
}
1666-
},
1667-
"proof": { <span class="comment">...</span> }
1670+
}
16681671
}
16691672
</pre>
16701673

@@ -1743,17 +1746,12 @@ <h3>Proofs (Signatures)</h3>
17431746
}
17441747
},
17451748
<span class="highlight">"proof": {
1746-
"type": "RsaSignature2018",
1747-
"created": "2018-06-18T21:19:10Z",
1749+
"type": "Ed25519Signature2020",
1750+
"created": "2021-11-13T18:19:39Z",
1751+
"verificationMethod": "https://example.edu/issuers/14#key-1",
17481752
"proofPurpose": "assertionMethod",
1749-
"verificationMethod": "https://example.com/jdoe/keys/1",
1750-
"jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19
1751-
..DJBMvvFAIC00nSGB6Tn0XKbbF9XrsaJZREWvR2aONYTQQxnyXirtXnlewJMB
1752-
Bn2h9hfcGZrvnC1b6PgWmukzFJ1IiH1dWgnDIS81BH-IxXnPkbuYDeySorc4
1753-
QU9MJxdVkY5EL4HYbcIfwKj6X4LBQ2_ZHZIu1jdqLcRZqHcsDF5KKylKc1TH
1754-
n5VRWy5WhYg_gBnyWny8E6Qkrze53MR7OuAmmNJ1m1nN8SxDrG6a08L78J0-
1755-
Fbas5OjAQz3c17GY8mVuDPOBIOVjMEghBlgl3nOi1ysxbRGhHLEK4s0KKbeR
1756-
ogZdgt1DkQxDFxxn41QWDw_mmMCjs9qxg0zcZzqEJw"
1753+
"proofValue": "z58DAdFfa9SkqZMVPxAQpic7ndSayn1PzZs6ZjWp1CktyGesjuTSwRdo
1754+
WhAfGFCF5bppETSTojQCrfFPP2oumHKtz"
17571755
}</span>
17581756
}
17591757
</pre>
@@ -1789,7 +1787,9 @@ <h3>Expiration</h3>
17891787
</dd>
17901788
</dl>
17911789

1792-
<pre class="example nohighlight" title="Usage of the expirationDate property">
1790+
<pre class="example nohighlight vc"
1791+
title="Usage of the expirationDate property"
1792+
data-vc-verification-method="https://example.edu/issuers/14#key-1">
17931793
{
17941794
"@context": [
17951795
"https://www.w3.org/2018/credentials/v1",
@@ -1806,8 +1806,7 @@ <h3>Expiration</h3>
18061806
"type": "BachelorDegree",
18071807
"name": "Bachelor of Science and Arts"
18081808
}
1809-
},
1810-
"proof": { <span class="comment">...</span> }
1809+
}
18111810
}
18121811
</pre>
18131812

@@ -1859,7 +1858,9 @@ <h3>Status</h3>
18591858
privacy-enhancing.
18601859
</p>
18611860

1862-
<pre class="example nohighlight" title="Usage of the status property">
1861+
<pre class="example nohighlight vc"
1862+
title="Usage of the status property"
1863+
data-vc-verification-method="https://example.edu/issuers/14#key-1">
18631864
{
18641865
"@context": [
18651866
"https://www.w3.org/2018/credentials/v1",
@@ -1879,8 +1880,7 @@ <h3>Status</h3>
18791880
<span class="highlight">"credentialStatus": {
18801881
"id": "https://example.edu/status/24",
18811882
"type": "CredentialStatusList2017"
1882-
}</span>,
1883-
"proof": { <span class="comment">...</span> }
1883+
}</span>
18841884
}
18851885
</pre>
18861886

@@ -2281,7 +2281,9 @@ <h3>Extensibility</h3>
22812281
Let us assume we start with the <a>verifiable credential</a> shown below.
22822282
</p>
22832283

2284-
<pre class="example nohighlight" title="A simple credential">
2284+
<pre class="example nohighlight vc"
2285+
title="A simple credential"
2286+
data-vc-verification-method="https://example.edu/issuers/14#keys-1">
22852287
{
22862288
"@context": [
22872289
"https://www.w3.org/2018/credentials/v1",
@@ -2294,8 +2296,7 @@ <h3>Extensibility</h3>
22942296
"credentialSubject": {
22952297
"id": "did:example:abcdef1234567",
22962298
"name": "Jane Doe"
2297-
},
2298-
"proof": { <span class="comment">...</span> }
2299+
}
22992300
}
23002301
</pre>
23012302

@@ -2350,8 +2351,7 @@ <h3>Extensibility</h3>
23502351
"id": "did:example:abcdef1234567",
23512352
"name": "Jane Doe",
23522353
<span class="highlight">"favoriteFood": "Papaya"</span>
2353-
},
2354-
"proof": { <span class="comment">...</span> }
2354+
}
23552355
}
23562356
</pre>
23572357

@@ -2501,7 +2501,9 @@ <h3>Data Schemas</h3>
25012501
[[JSON-SCHEMA-2018]] validation.
25022502
</p>
25032503

2504-
<pre class="example nohighlight" title="Usage of the credentialSchema property to perform JSON schema validation">
2504+
<pre class="example nohighlight vc"
2505+
title="Usage of the credentialSchema property to perform JSON schema validation"
2506+
data-vc-verification-method="https://example.edu/issuers/14#keys-1">
25052507
{
25062508
"@context": [
25072509
"https://www.w3.org/2018/credentials/v1",
@@ -2521,8 +2523,7 @@ <h3>Data Schemas</h3>
25212523
<span class="highlight">"credentialSchema": {
25222524
"id": "https://example.org/examples/degree.json",
25232525
"type": "JsonSchemaValidator2018"
2524-
}</span>,
2525-
"proof": { <span class="comment">...</span> }
2526+
}</span>
25262527
}
25272528
</pre>
25282529

@@ -2631,7 +2632,8 @@ <h3>Refreshing</h3>
26312632
</dd>
26322633
</dl>
26332634

2634-
<pre class="example nohighlight" title="Usage of the refreshService property by an issuer">
2635+
<pre class="example nohighlight"
2636+
title="Usage of the refreshService property by an issuer">
26352637
{
26362638
"@context": [
26372639
"https://www.w3.org/2018/credentials/v1",
@@ -2651,8 +2653,7 @@ <h3>Refreshing</h3>
26512653
<span class="highlight">"refreshService": {
26522654
"id": "https://example.edu/refresh/3732"
26532655
"type": "ManualRefreshService2018",
2654-
}</span>,
2655-
"proof": { <span class="comment">...</span> }
2656+
}</span>
26562657
}
26572658
</pre>
26582659

@@ -2710,7 +2711,9 @@ <h3>Terms of Use</h3>
27102711
</dd>
27112712
</dl>
27122713

2713-
<pre class="example nohighlight" title="Usage of the termsOfUse property by an issuer">
2714+
<pre class="example nohighlight vc"
2715+
title="Usage of the termsOfUse property by an issuer"
2716+
data-vc-verification-method="https://example.edu/issuers/14#keys-1">
27142717
{
27152718
"@context": [
27162719
"https://www.w3.org/2018/credentials/v1",
@@ -2737,8 +2740,8 @@ <h3>Terms of Use</h3>
27372740
"target": "http://example.edu/credentials/3732",
27382741
"action": ["Archival"]
27392742
}]
2740-
}</span>,
2741-
"proof": { <span class="comment">...</span> }
2743+
}]
2744+
</span>
27422745
}
27432746
</pre>
27442747

@@ -2880,7 +2883,8 @@ <h3>Evidence</h3>
28802883
Verifiable Credentials Implementation Guidelines [[VC-IMP-GUIDE]] document.
28812884
</p>
28822885

2883-
<pre class="example nohighlight" title="Usage of the evidence property">
2886+
<pre class="example nohighlight"
2887+
title="Usage of the evidence property">
28842888
{
28852889
"@context": [
28862890
"https://www.w3.org/2018/credentials/v1",
@@ -4213,7 +4217,9 @@ <h3>Bearer Credentials</h3>
42134217
<a>verifiable credential</a> is a <a>bearer credential</a>:
42144218
</p>
42154219

4216-
<pre class="example nohighlight" title="Usage of issuer properties">
4220+
<pre class="example nohighlight vc"
4221+
title="Usage of issuer properties"
4222+
data-vc-verification-method="https://example.edu/issuers/14#keys-1">
42174223
{
42184224
"@context": [
42194225
"https://www.w3.org/2018/credentials/v1",
@@ -4229,8 +4235,7 @@ <h3>Bearer Credentials</h3>
42294235
"type": "BachelorDegree",
42304236
"name": "Bachelor of Science and Arts"
42314237
}
4232-
},
4233-
"proof": { <span class="comment">...</span> }
4238+
}
42344239
}
42354240
</pre>
42364241

@@ -4670,7 +4675,8 @@ <h3>Content Integrity Protection</h3>
46704675
probably should be:
46714676
</p>
46724677

4673-
<pre class="example nohighlight" title="Non-content-integrity protected links">
4678+
<pre class="example nohighlight"
4679+
title="Non-content-integrity protected links">
46744680
{
46754681
"@context": [
46764682
<span class="highlight">"https://www.w3.org/2018/credentials/v1"</span>,

0 commit comments

Comments
 (0)