You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,27 +16,37 @@ Follow the tutorial here to create an encrypted Bitstring Status List Resource o
16
16
17
17
<tabledata-card-size="large"data-view="cards"><thead><tr><th></th><th></th><thdata-hiddendata-card-targetdata-type="content-ref"></th></tr></thead><tbody><tr><td><markstyle="color:blue;"><strong>Charge for Status List</strong></mark></td><td>Create an encrypted Status List on cheqd with payment conditions, unlockable on payment of CHEQ</td><td><ahref="charge.md">charge.md</a></td></tr></tbody></table>
18
18
19
-
### Step 2: Construct Credential Payload with Status List
19
+
### Step 2: Choose index number for Credential
20
20
21
-
{% hint style="info" %}
22
-
With Bitstring status lists, the indices are assigned as per the current usage state of the status list. Users do not need to pass index, as it may interfere with auto-assignments and return errors if mismatched.
21
+
Each encrypted Status List is a [bitstring](https://en.wikipedia.org/wiki/Bit_array), where each bit represents a Credential which is either revoked or unrevoked (or suspended or unsuspended).
22
+
23
+
{% hint style="warning" %}
24
+
Users should maintain and manage a list of which Credentials match with which specific bitstring indices to be able to revoke or suspend Credentials in the future, and to avoid collisions.
23
25
{% endhint %}
24
26
27
+
When issuing a Credential, you have the choice of whether to manually specify an index for the Credential within the bitstring, or randomly generate an index number anywhere in the bitstring, or within a given range.
28
+
29
+
### Step 3: Construct Credential Payload with Status List
30
+
25
31
When constructing the payload for issuing a Credential just specify the purpose and the encrypted status list name.
Ensure that the `"statusPurpose"` is `message` and `"statusListName"` is the same as the existing Status List on-ledger, [created in Step 1](issue-paid-credential.md#step-1-create-an-encrypted-status-list-on-ledger). 
74
192
{% endhint %}
75
193
76
-
### Step 3: Execute the transaction
194
+
Ensure that the `"statusPurpose"` is `message` and `"statusListName"` is the same as the existing Status List on-ledger, [created in Step 1](https://app.gitbook.com/o/-MiQSPMufVJdYEwQHd2c/s/PVAMvpKH7PYzvXA6u6Cn/~/diff/~/changes/519/sdk/veramo/payments/issue-paid-credential#step-1-create-an-encrypted-status-list-on-ledger).
195
+
196
+
### Step 4: Execute the transaction
77
197
78
198
Once you have constructed your payload file, and have saved it as a JSON file, use the transaction below to issue the Verifiable Credential.
0 commit comments