-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
754 lines (696 loc) · 27.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSON Web Signatures for Data Integrity Proofs</title>
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove"></script>
<script class='remove'>
// See https://github.com/w3c/respec/wiki/ for how to configure ReSpec
var respecConfig = {
group: "vc",
// specification status (e.g., WD, NOTE, etc.). If in doubt use ED.
specStatus: "ED",
// the specification's short name, as in http://www.w3.org/TR/short-name/
shortName: "vc-jws-2020",
// if you wish the publication date to be other than today, set this
publishDate: "2023-05-05",
// implementationReportURI: "https://w3c.github.io/vc-test-suite/implementations/",
// errata: "https://w3c.github.io/vc-data-model/errata.html",
// previousMaturity: "REC",
// previousPublishDate: "2019-11-19",
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
// and its maturity status
// previousPublishDate: "1977-03-15",
// previousMaturity: "WD",
// extend the bibliography entries
// localBiblio: vcwg.localBiblio,
doJsonLd: true,
// Uncomment these to use the respec extension that generates a list of
// normative statements:
// preProcess: [],
// postProcess: [],
github: "https://github.com/w3c/vc-jws-2020/",
includePermalinks: false,
// if there a publicly available Editor's Draft, this is the link
edDraftURI: "https://w3c.github.io/vc-jws-2020/",
// https://github.com/w3c/vc-jws-2020/pull/26#issuecomment-1297348484
// latestVersion: "https://www.w3.org/community/reports/credentials/CG-FINAL-lds-jws2020-20220721/",
// editors, add as many as you like
// only "name" is required
editors: [
{
name: "Orie Steele",
company: "Transmute",
companyURL: "https://transmute.industries/",
w3cid: 109171
},
{
name: "Michael Jones",
company: "Microsoft Corporation",
companyURL: "https://www.microsoft.com",
w3cid: 38745
},
],
// authors, add as many as you like.
// This is optional, uncomment if you have authors as well as editors.
// only "name" is required. Same format as editors.
authors:
[],
maxTocLevel: 2,
inlineCSS: true,
license: "w3c-software-doc",
localBiblio: {
ISO_8601: {
title: "ISO_8601",
href: "https://en.wikipedia.org/wiki/ISO_8601",
},
IANA_JOSE: {
title: "JOSE",
href: "https://www.iana.org/assignments/jose/jose.xhtml",
}
},
};
</script>
</head>
<body>
<section id="abstract">
<p>
This specification describes a JSON Web Signature Suite created in 2020
for the Verifiable Credentials Data Integrity Proof specification. The Signature Suite utilizes
Detached JWS signatures to provide support for a subset of the digital
signature algorithms registered with IANA.
</p>
</section>
<section id="sotd">
<p class="advisement">
This work item has been
<a href="https://www.w3.org/2021/Process-20211102/#discontinuedREC">discontinued</a>.
The working group recommends using <a href="https://www.w3.org/TR/vc-jwt">vc-jwt</a>
for securing verifiable credentials using JSON Web Signatures.
</p>
<p>
This document has been withdrawn due to resolutions from the working group, which can be reviewed here:
<a href="https://www.w3.org/2017/vc/WG/Meetings/Minutes/2022-09-15-vcwg#resolution1">
Abandon JWS2020 in favor of pointing to VC-JWT using the JWS 2020 Readme and text in VC-JWT.
</a>
</p>
</section>
<section>
<h2>Introduction</h2>
<p>
This specification defines a cryptographic suite for the purpose of
creating, verifying proofs for JSON Web Signatures in conformance with
the Data Integrity Proofs specification.
</p>
<p>
In general the suites uses the RDF Dataset Normalization Algorithm
to transform an input document into its canonical form.
The canonical representation is then hashed and signed
with a detached signature algorithm.
</p>
</section>
<section id="terminology">
<h2>Terminology</h2>
<p>
The following terms are used to describe concepts involved in the
generation and verification of the Linked Data Proof
<a>signature suite</a>.
</p>
<dl>
<dt><dfn>signature suite</dfn></dt>
<dd>
A specified set of cryptographic primitives typically consisting of a
canonicalization algorithm, a message digest algorithm, and a
signature algorithm that are bundled together by cryptographers for
developers for the purposes of safety and convenience.
</dd>
<dt><dfn>canonicalization algorithm</dfn></dt>
<dd>
An algorithm that takes an input document that has more than one
possible representation and always transforms it into a
<a>canonical form</a>. This process is sometimes also called
normalization.
</dd>
<dt>
<dfn data-lt="message digest algorithm | message digest algorithms"
>message digest algorithm</dfn
>
</dt>
<dd>
An algorithm that takes a message, preferably in some
<a>canonical form</a> and produces a cryptographic output called a
digest that is often many orders of magnitude smaller than the input
message. These algorithms are often 1) very fast, 2) non-reversible,
3) cause the output to change significantly when even one bit of the
input message changes, and 4) make it infeasible to find two different
inputs for the same output.
</dd>
<dt><dfn>canonical form</dfn></dt>
<dd>
The output of applying a <a>canonicalization algorithm</a> to an input
document.
</dd>
<dt><dfn>signature algorithm</dfn></dt>
<dd>
An algorithm that takes an input message and produces an output value
where the receiver of the message can mathematically verify that the
message has not been modified in transit and came from someone
possessing a particular secret.
</dd>
<dt>
<dfn data-lt="linked data document|linked data documents"
>linked data document</dfn
>
</dt>
<dd>A document comprised of linked data.</dd>
<dt>
<dfn data-lt="linked data proof|linked data proofs"
>linked data proof</dfn
>
</dt>
<dd>
A
<a
href="https://www.w3.org/TR/vc-data-integrity/#proofs"
class="externalDFN"
>proof</a
>
which is a set of attributes that represent a linked data digital
proof and the parameters required to verify it as defined by
RDF-N-Quads.
</dd>
<dt>linked data proof document</dt>
<dd>
A <a>linked data document</a> featuring one or more
<a>linked data proofs</a>.
</dd>
<dt><dfn>JsonWebKey2020</dfn></dt>
<dd>
The <code>type</code> of the verification method for the signature
suite <a>JsonWebSignature2020</a>.
</dd>
<dt><dfn>JsonWebSignature2020</dfn></dt>
<dd>
The <code>type</code> of the linked data proof for the signature suite
<a>JsonWebSignature2020</a>.
</dd>
</dl>
</section>
<section id="suite-definition">
<h2>Suite Definition</h2>
<p>
The JSON Web Signature <a>signature suite</a> 2020 MUST be used in
conjunction with the signing and verification algorithms in the Data
Integrity Proofs specification. The suite consists of the
following algorithms:
</p>
<table class="simple">
<thead>
<th>Parameter</th>
<th>Value</th>
<th>Specification</th>
</thead>
<tbody>
<tr>
<td><a>canonicalization algorithm</a></td>
<td>https://w3id.org/security#URDNA2015</td>
<td>TBD</td>
</tr>
<tr>
<td><a>message digest algorithm</a></td>
<td>SHA-256</td>
<td>[[RFC4634]]</td>
</tr>
<tr>
<td><a>signature algorithm</a></td>
<td>JSON Web Signature (JWS) Unencoded Payload Option</td>
<td>[[RFC7797]]</td>
</tr>
</tbody>
</table>
<section>
<h3>JOSE Conformance</h3>
<p>
This suite support cryptographic agility, see [[RFC7696]].
This table maps a key type to a subset of [[IANA_JOSE]] supported
signing and encryption algorithms.
</p>
<table class="simple">
<thead>
<th>kty</th>
<th>crvOrSize</th>
<th>signature</th>
<th>keyAgreement</th>
<th>encryption</th>
</thead>
<tbody>
<tr>
<td>OKP</td>
<td>Ed25519</td>
<td>EdDSA</td>
<td></td>
<td>ECDH-ES+A256KW</td>
</tr>
<tr>
<td>OKP</td>
<td>X25519</td>
<td></td>
<td>ECDH</td>
<td>ECDH-ES+A256KW</td>
</tr>
<tr>
<td>EC</td>
<td>secp256k1</td>
<td>ES256K</td>
<td>ECDH</td>
<td>ECDH-ES+A256KW</td>
</tr>
<tr>
<td>EC</td>
<td>P-256</td>
<td>ES256</td>
<td>ECDH</td>
<td>ECDH-ES+A256KW</td>
</tr>
<tr>
<td>EC</td>
<td>P-384</td>
<td>ES384</td>
<td>ECDH</td>
<td>ECDH-ES+A256KW</td>
</tr>
<tr>
<td>RSA</td>
<td>2048+</td>
<td>PS256</td>
<td></td>
<td>RSA-OAEP</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2>Verification Method</h2>
<p>
The cryptographic material used to verify a linked data proof is
called the verification method.
</p>
<p>
This suite relies on public key material represented using
[[RFC7517]].
</p>
<p>
This suite supports public key use for both digital signature
verification, according to [[RFC7515]], and key agreement according to
[[RFC8037]].
</p>
<p>
This suite MAY be used to verify linked data proofs produced by key
material in any representation that can be converted to JWK, however
it is RECOMMENDED that this suite be used with verification method's
of type <a>JsonWebKey2020</a>.
</p>
<section>
<h3>JSON Web Key 2020</h3>
<p>
The <code>id</code> of the verification method SHOULD be the JWK
thumbprint calculated from the <code>publicKeyJwk</code> property
value according to [[RFC7638]].
</p>
<p>
The <code>type</code> of the verification method SHOULD be
<a>JsonWebKey2020</a>.
</p>
<p>
The <code>controller</code> of the verification method SHOULD be a
URI.
</p>
<p>
The <code>publicKeyJwk</code> property of the verification method
SHOULD be a JWK formatted according to [[RFC7517]].
</p>
<p class="advisement">
Be careful not to accidentally publish the JWK representation of a
private key. See
<a href="https://tools.ietf.org/html/rfc7517#appendix-A.2"
>rfc7517#appendix-A.2</a
>
for examples of private key representations. The property
<code>publicKeyJwk</code> MUST never contain <code>"d"</code>.
</p>
<pre class="example">
{
"id": "https://example.com/issuer/123#ovsDKYBjFemIy8DVhc-w2LSi8CvXMw2AYDzHj04yxkc",
"type": "JsonWebKey2020",
"controller": "https://example.com/issuer/123",
"publicKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "CV-aGlld3nVdgnhoZK0D36Wk-9aIMlZjZOK2XhPMnkQ"
}
}
</pre>
<pre class="example" title="Example in DID Document.">
{
"@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/jws-2020/v1"],
"id": "did:example:123",
"verificationMethod": [
{
"id": "did:example:123#_Qq0UL2Fq651Q0Fjd6TvnYE-faHiOpRlPVQcY_-tA4A",
"type": "JsonWebKey2020",
"controller": "did:example:123",
"publicKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "VCpo2LMLhn6iWku8MKvSLg2ZAoC-nlOyPVQaO3FxVeQ"
}
},
{
"id": "did:example:123#4SZ-StXrp5Yd4_4rxHVTCYTHyt4zyPfN1fIuYsm6k3A",
"type": "JsonWebKey2020",
"controller": "did:example:123",
"publicKeyJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "Z4Y3NNOxv0J6tCgqOBFnHnaZhJF6LdulT7z8A-2D5_8",
"y": "i5a2NtJoUKXkLm6q8nOEu9WOkso1Ag6FTUT6k_LMnGk"
}
},
{
"id": "did:example:123#n4cQ-I_WkHMcwXBJa7IHkYu8CMfdNcZKnKsOrnHLpFs",
"type": "JsonWebKey2020",
"controller": "did:example:123",
"publicKeyJwk": {
"kty": "RSA",
"e": "AQAB",
"n": "omwsC1AqEk6whvxyOltCFWheSQvv1MExu5RLCMT4jVk9khJKv8JeMXWe3bWHatjPskdf2dlaGkW5QjtOnUKL742mvr4tCldKS3ULIaT1hJInMHHxj2gcubO6eEegACQ4QSu9LO0H-LM_L3DsRABB7Qja8HecpyuspW1Tu_DbqxcSnwendamwL52V17eKhlO4uXwv2HFlxufFHM0KmCJujIKyAxjD_m3q__IiHUVHD1tDIEvLPhG9Azsn3j95d-saIgZzPLhQFiKluGvsjrSkYU5pXVWIsV-B2jtLeeLC14XcYxWDUJ0qVopxkBvdlERcNtgF4dvW4X00EHj4vCljFw"
}
},
{
"id": "did:example:123#_TKzHv2jFIyvdTGF1Dsgwngfdg3SH6TpDv0Ta1aOEkw",
"type": "JsonWebKey2020",
"controller": "did:example:123",
"publicKeyJwk": {
"kty": "EC",
"crv": "P-256",
"x": "38M1FDts7Oea7urmseiugGW7tWc3mLpJh6rKe7xINZ8",
"y": "nDQW6XZ7b_u2Sy9slofYLlG03sOEoug3I0aAPQ0exs4"
}
},
{
"id": "did:example:123#8wgRfY3sWmzoeAL-78-oALNvNj67ZlQxd1ss_NX1hZY",
"type": "JsonWebKey2020",
"controller": "did:example:123",
"publicKeyJwk": {
"kty": "EC",
"crv": "P-384",
"x": "GnLl6mDti7a2VUIZP5w6pcRX8q5nvEIgB3Q_5RI2p9F_QVsaAlDN7IG68Jn0dS_F",
"y": "jq4QoAHKiIzezDp88s_cxSPXtuXYFliuCGndgU4Qp8l91xzD1spCmFIzQgVjqvcP"
}
},
{
"id": "did:example:123#NjQ6Y_ZMj6IUK_XkgCDwtKHlNTUTVjEYOWZtxhp1n-E",
"type": "JsonWebKey2020",
"controller": "did:example:123",
"publicKeyJwk": {
"kty": "EC",
"crv": "P-521",
"x": "AVlZG23LyXYwlbjbGPMxZbHmJpDSu-IvpuKigEN2pzgWtSo--Rwd-n78nrWnZzeDc187Ln3qHlw5LRGrX4qgLQ-y",
"y": "ANIbFeRdPHf1WYMCUjcPz-ZhecZFybOqLIJjVOlLETH7uPlyG0gEoMWnIZXhQVypPy_HtUiUzdnSEPAylYhHBTX2"
}
}
],
"authentication": [
"did:example:123#_Qq0UL2Fq651Q0Fjd6TvnYE-faHiOpRlPVQcY_-tA4A",
"did:example:123#4SZ-StXrp5Yd4_4rxHVTCYTHyt4zyPfN1fIuYsm6k3A",
"did:example:123#n4cQ-I_WkHMcwXBJa7IHkYu8CMfdNcZKnKsOrnHLpFs",
"did:example:123#_TKzHv2jFIyvdTGF1Dsgwngfdg3SH6TpDv0Ta1aOEkw",
"did:example:123#8wgRfY3sWmzoeAL-78-oALNvNj67ZlQxd1ss_NX1hZY",
"did:example:123#NjQ6Y_ZMj6IUK_XkgCDwtKHlNTUTVjEYOWZtxhp1n-E"
],
"assertionMethod": [
"did:example:123#_Qq0UL2Fq651Q0Fjd6TvnYE-faHiOpRlPVQcY_-tA4A",
"did:example:123#4SZ-StXrp5Yd4_4rxHVTCYTHyt4zyPfN1fIuYsm6k3A",
"did:example:123#n4cQ-I_WkHMcwXBJa7IHkYu8CMfdNcZKnKsOrnHLpFs",
"did:example:123#_TKzHv2jFIyvdTGF1Dsgwngfdg3SH6TpDv0Ta1aOEkw",
"did:example:123#8wgRfY3sWmzoeAL-78-oALNvNj67ZlQxd1ss_NX1hZY",
"did:example:123#NjQ6Y_ZMj6IUK_XkgCDwtKHlNTUTVjEYOWZtxhp1n-E"
],
"capabilityDelegation": [
"did:example:123#_Qq0UL2Fq651Q0Fjd6TvnYE-faHiOpRlPVQcY_-tA4A",
"did:example:123#4SZ-StXrp5Yd4_4rxHVTCYTHyt4zyPfN1fIuYsm6k3A",
"did:example:123#n4cQ-I_WkHMcwXBJa7IHkYu8CMfdNcZKnKsOrnHLpFs",
"did:example:123#_TKzHv2jFIyvdTGF1Dsgwngfdg3SH6TpDv0Ta1aOEkw",
"did:example:123#8wgRfY3sWmzoeAL-78-oALNvNj67ZlQxd1ss_NX1hZY",
"did:example:123#NjQ6Y_ZMj6IUK_XkgCDwtKHlNTUTVjEYOWZtxhp1n-E"
],
"capabilityInvocation": [
"did:example:123#_Qq0UL2Fq651Q0Fjd6TvnYE-faHiOpRlPVQcY_-tA4A",
"did:example:123#4SZ-StXrp5Yd4_4rxHVTCYTHyt4zyPfN1fIuYsm6k3A",
"did:example:123#n4cQ-I_WkHMcwXBJa7IHkYu8CMfdNcZKnKsOrnHLpFs",
"did:example:123#_TKzHv2jFIyvdTGF1Dsgwngfdg3SH6TpDv0Ta1aOEkw",
"did:example:123#8wgRfY3sWmzoeAL-78-oALNvNj67ZlQxd1ss_NX1hZY",
"did:example:123#NjQ6Y_ZMj6IUK_XkgCDwtKHlNTUTVjEYOWZtxhp1n-E"
]
}
</pre>
</section>
</section>
<section>
<h2>Proof Representation</h2>
<p>
The cryptographic material used to represent a linked data proof is
called the proof type.
</p>
<p>
This suite relies on detached digital signatures represented using
[[RFC7797]].
</p>
<section>
<h3>JSON Web Signature 2020</h3>
<p>
The <code>verificationMethod</code> property of the proof SHOULD be
a URI. Dereferencing the <code>verificationMethod</code> SHOULD
result in an object of <code>type</code> <a>JsonWebKey2020</a>.
</p>
<p>
The <code>type</code> property of the proof MUST be
<a>JsonWebSignature2020</a>.
</p>
<p>
The <code>created</code> property of the proof MUST be an
[[ISO_8601]] formatted date string.
</p>
<p>
The <code>proofPurpose</code> property of the proof MUST be a
string, and SHOULD match the verification relationship expressed by
the verification method <code>controller</code>.
</p>
<p>
The <code>jws</code> property of the proof MUST be a detached JWS
produced according to [[RFC7797]].
<p class="advisement">
The header of the detached JWS MUST look like this:
<code>{"b64":false,"crit":["b64"],"alg":"PS256"}</code>
where <code>alg</code> is a value registered in [[IANA_JOSE]]
AND is present in the supported algorithms table of this suite.
</p>
</p>
</section>
</section>
</section>
<section>
<h2>Test Vectors</h2>
<p>The following test vectors are provided to assist with implementers.</p>
<pre class="example">
{
"seed_0": "9b937b81322d816cfab9d5a3baacc9b2a5febe4b149f126b3630f93a29527017"
}
</pre>
<pre class="example">
{
"keypair_0": {
"id": "#ovsDKYBjFemIy8DVhc-w2LSi8CvXMw2AYDzHj04yxkc",
"type": "JsonWebKey2020",
"controller": "did:key:z6Mkf5rGMoatrSj1f4CyvuHBeXJELe9RPdzo2PKGNCKVtZxP",
"publicKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "CV-aGlld3nVdgnhoZK0D36Wk-9aIMlZjZOK2XhPMnkQ"
},
"privateKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "CV-aGlld3nVdgnhoZK0D36Wk-9aIMlZjZOK2XhPMnkQ",
"d": "m5N7gTItgWz6udWjuqzJsqX-vksUnxJrNjD5OilScBc"
}
},
"keypair_1": {
"id": "#zaS0k3zk2KpT4NqqpdUA1YD0JVTOtQf3pNoKDI-wes0",
"type": "JsonWebKey2020",
"controller": "did:key:zQ3shP2mWsZYWgvgM11nenXRTx9L1yiJKmkf9dfX7NaMKb1pX",
"publicKeyJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "GBMxavme-AfIVDKqI6WBJ4V5wZItsxJ9muhxPByllHQ",
"y": "SChlfVBhTXG_sRGc9ZdFeCYzI3Kbph3ivE12OFVk4jo"
},
"privateKeyJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "GBMxavme-AfIVDKqI6WBJ4V5wZItsxJ9muhxPByllHQ",
"y": "SChlfVBhTXG_sRGc9ZdFeCYzI3Kbph3ivE12OFVk4jo",
"d": "m5N7gTItgWz6udWjuqzJsqX-vksUnxJrNjD5OilScBc"
}
},
"keypair_2": {
"id": "#zwlFQYyCqQXZ3nzpxkxJFxlpGU2l8LZQ9gxIxDdEhuY",
"type": "JsonWebKey2020",
"controller": "did:key:zUewtYk1yGS3SWp7kxrFK3DZRHMFbGEnrgFrqsi6hG8Z7EpRzbMP7d5y49HhrUv4tgV4DHCSoQUtF1NRNe43bymdi7K91PkwEGJRR4jv4Vb2mu2ZcBJXbw3d35JfqsVeLcwXFUi",
"publicKeyJwk": {
"kty": "EC",
"crv": "P-384",
"x": "eQbMauiHc9HuiqXT894gW5XTCrOpeY8cjLXAckfRtdVBLzVHKaiXAAxBFeVrSB75",
"y": "YOjxhMkdH9QnNmGCGuGXJrjAtk8CQ1kTmEEi9cg2R9ge-zh8SFT1Xu6awoUjK5Bv"
},
"privateKeyJwk": {
"kty": "EC",
"crv": "P-384",
"x": "eQbMauiHc9HuiqXT894gW5XTCrOpeY8cjLXAckfRtdVBLzVHKaiXAAxBFeVrSB75",
"y": "YOjxhMkdH9QnNmGCGuGXJrjAtk8CQ1kTmEEi9cg2R9ge-zh8SFT1Xu6awoUjK5Bv",
"d": "dXghMAzYZmv46SNRuxmfDIuAlv7XIhvlkPzW3vXsopB1ihWp47tx0hqjZmYO6fJa"
}
}
}
</pre>
<pre class="example">
{
"message_0": "hello world"
}
</pre>
<pre class="example">
{
"signature_0": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..v_Tni1_9lPQsS52GOnCMTFp7vDRjZIcj3pmuY1mF9W7nMAH94DpGecNwdFsXrz09n9bDTd8gJFqXWZeWIGvUAA",
"signature_1": "eyJhbGciOiJFUzI1NksiLCJiNjQiOmZhbHNlLCJjcml0IjpbImI2NCJdfQ..dsgrLHXb5-VsUKVop4JJyO9dkFvJKRVNeOcEDD9nBAl3MqzJrJYfEfL8wArG-9ZjL12UD8btrJljZ7_C8p51mA"
}
</pre>
<pre class="example">
{
"issuer_0": {
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/jws-2020/v1",
{
"@base": "https://example.com/issuer/123"
}
],
"id": "https://example.com/issuer/123",
"verificationMethod": [
{
"id": "#ovsDKYBjFemIy8DVhc-w2LSi8CvXMw2AYDzHj04yxkc",
"type": "JsonWebKey2020",
"controller": "https://example.com/issuer/123",
"publicKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "CV-aGlld3nVdgnhoZK0D36Wk-9aIMlZjZOK2XhPMnkQ"
}
}
],
"assertionMethod": ["#ovsDKYBjFemIy8DVhc-w2LSi8CvXMw2AYDzHj04yxkc"]
}
}
</pre>
<pre class="example">
{
"vc_template_0": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1",
"https://w3id.org/security/suites/jws-2020/v1"
],
"id": "http://example.gov/credentials/3732",
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"issuer": { "id": "did:example:123" },
"issuanceDate": "2020-03-10T04:24:12.164Z",
"credentialSubject": {
"id": "did:example:456",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
}
},
"vc_0": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1",
"https://w3id.org/security/suites/jws-2020/v1"
],
"id": "http://example.gov/credentials/3732",
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"issuer": {
"id": "https://example.com/issuer/123"
},
"issuanceDate": "2020-03-10T04:24:12.164Z",
"credentialSubject": {
"id": "did:example:456",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
},
"proof": {
"type": "JsonWebSignature2020",
"created": "2019-12-11T03:50:55Z",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MJ5GwWRMsadCyLNXU_flgJtsS32584MydBxBuygps_cM0sbU3abTEOMyUvmLNcKOwOBE1MfDoB1_YY425W3sAg",
"proofPurpose": "assertionMethod",
"verificationMethod": "https://example.com/issuer/123#ovsDKYBjFemIy8DVhc-w2LSi8CvXMw2AYDzHj04yxkc"
}
}
}
</pre>
</section>
<section id="conformance">
<p>
A <dfn>conforming document</dfn> is any concrete expression of the data model
that complies with the normative statements in this specification.
Specifically, all relevant normative statements in Sections
<a href="#terminology"></a> and <a href="#suite-definition"></a>
of this document MUST be enforced.
</p>
<p>
A <code>conforming processor</code> is any algorithm realized as software and/or
hardware that generates or consumes a <a>conforming document</a>. Conforming
processors MUST produce errors when non-conforming documents are consumed.
</p>
<p>
This document also contains examples that contain JSON and JSON-LD content.
Some of these examples contain characters that are invalid JSON, such as
inline comments (<code>//</code>) and the use of ellipsis (<code>...</code>)
to denote information that adds little value to the example. Implementers are
cautioned to remove this content if they desire to use the information as
valid JSON or JSON-LD.
</p>
</section>
<section>
<h2>Privacy Considerations</h2>
<div class="issue">
TODO: We need to add a complete list of privacy considerations.
</div>
</section>
<section>
<h2>Security Considerations</h2>
<p>
The following section describes security considerations that developers
implementing this specification should be aware of in order to create
secure software.
</p>
<p class="note">This specification relies on URDNA2015.</p>
<p class="note">This specification relies on [[IANA_JOSE]], please review [[RFC8725]].</p>
<div class="issue">
TODO: We need to add a complete list of security considerations.
</div>
</section>
</body>
</html>