Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 233f2ca

Browse files
authoredMar 3, 2025··
Merge pull request #270 from oauth-wg/267-cddl-for-cbor
Add cddl for statuslist cbor encoding
2 parents fdd5380 + e479eeb commit 233f2ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎draft-ietf-oauth-status-list.md

+11
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,16 @@ This section defines the data structure for a CBOR-encoded Status List:
358358
* `lst`: REQUIRED. Byte string (Major Type 2) that contains the Status List as specified in [](#status-list).
359359
* `aggregation_uri`: OPTIONAL. Text string (Major Type 3) that contains a URI to retrieve the Status List Aggregation for this type of Referenced Token. See section [](#aggregation) for further detail.
360360

361+
The following is the CDDL definition of the StatusList structure:
362+
363+
~~~ cddl
364+
StatusList = {
365+
bits: 1 / 2 / 4 / 8, ; The number of bits used per Referenced Token
366+
lst: bstr, ; Byte string that contains the Status List
367+
? aggregation_uri: tstr, ; link to the Status List Aggregation
368+
}
369+
~~~
370+
361371
The following example illustrates the CBOR representation of the Status List in Hex:
362372

363373
~~~~~~~~~~
@@ -1820,6 +1830,7 @@ CBOR encoding:
18201830

18211831
-09
18221832

1833+
* Add CDDL for CBOR StatusList encoding
18231834
* add diagram for Status List Aggregation for further explanation
18241835
* rename "chunking" of Status List Tokens (for scalability reasons) into "divide .. up"
18251836

0 commit comments

Comments
 (0)
Please sign in to comment.