Skip to content

Commit

Permalink
Rename statusSize and statusReference properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Jan 2, 2024
1 parent d3c376b commit 35860ac
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
6 changes: 4 additions & 2 deletions contexts/v1.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
"encodedList":
"https://www.w3.org/ns/credentials/status-list#encodedList",
"ttl": "https://www.w3.org/ns/credentials/status-list#ttl",
"reference": "https://www.w3.org/ns/credentials/status-list#reference",
"size": "https://www.w3.org/ns/credentials/status-list#size",
"statusReference":
"https://www.w3.org/ns/credentials/status-list#statusReference",
"statusSize":
"https://www.w3.org/ns/credentials/status-list#statusSize",
"statusMessage": {
"@id": "https://www.w3.org/ns/credentials/status-list#statusMessage",
"@context": {
Expand Down
42 changes: 21 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ <h3>BitstringStatusListCredential</h3>
<td>
Used to indicate a status message associated with a <a>verifiable
credential</a>. The status message descriptions MUST be defined in
`credentialSubject.statusMessages`. `credentialSubject.size` MUST be defined
with this `statusPurpose`.
`credentialSubject.statusMessages`. `credentialSubject.statusSize` MUST be
defined with this `statusPurpose`.
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -541,14 +541,14 @@ <h3>BitstringStatusListCredential</h3>
</td>
</tr>
<tr>
<td>credentialSubject.size</td>
<td>credentialSubject.statusSize</td>
<td>
The `size` indicates the size of the status entry in bits. `size` MAY be
provided. If `size` is not present as a property of the `credentialStatus`, then
`size` MUST be processed as `1`. `size` MUST be an integer greater than zero.
If `size` is provided and is greater than `1`, then the property
`credentialStatus.statusMessages` MUST be present, and the number of status
messages must equal the number of possible values.
The `statusSize` indicates the size of the status entry in bits. `statusSize`
MAY be provided. If `statusSize` is not present as a property of the
`credentialStatus`, then `statusSize` MUST be processed as `1`. `statusSize`
MUST be an integer greater than zero. If `statusSize` is provided and is greater
than `1`, then the property `credentialStatus.statusMessages` MUST be present,
and the number of status messages must equal the number of possible values.
</td>
</tr>
<tr>
Expand All @@ -558,9 +558,9 @@ <h3>BitstringStatusListCredential</h3>
<td>
The `statusMessages` property MUST be an array. If present,
the length of the array must equal the number of possible status states
indicated by `size`. `statusMessages` MAY be present if
`size` is `1`. `statusMessages` MUST be present if
`size` is greater than `1`. If not present, the message value
indicated by `statusSize`. `statusMessages` MAY be present if
`statusSize` is `1`. `statusMessages` MUST be present if
`statusSize` is greater than `1`. If not present, the message value
associated with the bit value of `0` is "unset" and the bit
value of `1` is "set".
If present, elements in the `statusMessages` array MUST contain at
Expand All @@ -583,16 +583,16 @@ <h3>BitstringStatusListCredential</h3>
</td>
</tr>
<tr>
<td>credentialSubject.reference</td>
<td>credentialSubject.statusReference</td>
<td>
The `reference` property provides a point for implementers to include a [[URL]]
to material related to the status. An implementer MAY include the `reference`
property, and if they do, the value MUST be a [[URL]] or an array of URLs.
Implementers using a `statusPurpose` of `status` are strongly encouraged to
provide a `reference`.
The `statusReference` property provides a point for implementers to include a
[[URL]] to material related to the status. An implementer MAY include the
`statusReference` property, and if they do, the value MUST be a [[URL]] or an
array of URLs. Implementers using a `statusPurpose` of `status` are strongly
encouraged to provide a `statusReference`.
<p class="note" title="Details around reference">
`reference` is especially important when interpretation of the status for a
credential may involve some understanding of the business case involved.
`statusReference` is especially important when interpretation of the status for
a credential may involve some understanding of the business case involved.
</p>
</td>
</tr>
Expand Down Expand Up @@ -773,7 +773,7 @@ <h3>Bitstring Generation Algorithm</h3>
corresponding `statusListIndex` value in
a credential in `issuedCredentials`, set the value to the
appropriate status. The position of the value is computed as `statusListIndex`
times the `size`.
times the `statusSize`.
</li>
<li>
Generate a |compressed bitstring| by using the GZIP
Expand Down

0 comments on commit 35860ac

Please sign in to comment.