Skip to content

Commit a8eedd9

Browse files
authored
Fix #234 (Improve Example) (#235)
Improved examples
1 parent baa2810 commit a8eedd9

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

draft-ietf-oauth-sd-jwt-vc.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,8 @@ Applications using Type Metadata defined in this specification are called "Consu
500500

501501
All examples in this section are non-normative.
502502

503-
Type Metadata about the value of a `vct` claim value can be retrieved as described in (#retrieving-type-metadata).
503+
The following is an example of an SD-JWT VC payload, containing a `vct` claim
504+
with the value `https://betelgeuse.example.com/education_credential`:
504505

505506
```json
506507
{
@@ -510,11 +511,12 @@ Type Metadata about the value of a `vct` claim value can be retrieved as describ
510511
}
511512
```
512513

513-
Here, the type is `https://betelgeuse.example.com/education_credential`. The
514-
Type Metadata is retrieved from the URL
515-
`https://betelgeuse.example.com/.well-known/vct/education_credential`.
516-
517-
The following is an example for a Type Metadata document:
514+
Type Metadata for the type `https://betelgeuse.example.com/education_credential`
515+
can be retrieved using various mechanisms as described in
516+
(#retrieving-type-metadata). For this example, the well-known URL as defined in
517+
(#retrieval-from-vct-claim) is used and the following Type Metadata Document is
518+
retrieved from the URL
519+
`https://betelgeuse.example.com/.well-known/vct/education_credential`:
518520

519521
```json
520522
{
@@ -526,6 +528,10 @@ The following is an example for a Type Metadata document:
526528
}
527529
```
528530

531+
Note: The hash of the Type Metadata document shown in the second example must be equal
532+
to the one in the `vct#integrity` claim in the SD-JWT VC payload,
533+
`WRL5ca_xGgX3c1VLmXfh-9cLlJNXN-TsMk-PmKjZ5t0`.
534+
529535
## Type Metadata Format {#type-metadata-format}
530536

531537
The Type Metadata document MUST be a JSON object. The following properties are

0 commit comments

Comments
 (0)