Issue Verifiable Credential with Encrypted Status List 2021 and index
Issue Verifiable Credential with Encrypted Status List 2021 Resource
There is a specific transaction type for issuing Verifiable Credentials that reference encrypted Status List Resources.
Step 1: Create an encrypted Status List on-ledger
Follow the tutorial here to create an encrypted Status List 2021 Resource on cheqd.
Step 2: Choose index number for Credential
Each encrypted Status List is a bitstring, where each bit represents a Credential which is either revoked or unrevoked (or suspended or unsuspended).
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.
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.
Step 2: Construct Credential Payload with Status List
As mentioned above, when constructing the payload for your Credential, including the encrypted Resource, you have a choice of how you would like to specify the index.
The following parameters may be included:
Parameter
Value
Optional
"statusPurpose"
"revocation" or "suspension"
No
"statusListName"
string
No
"statusListVersion"
string
Yes
"statusListRangeStart"
number
Yes
"statusListRangeEnd"
number
Yes
"statusListVersion"
number, or set of numbers
Yes
Below are a set of examples of how these parameters may be included in Credential payload files for different purposes: