Issue Credential with Encrypted Status List
Issue a Verifiable Credential referencing an Encrypted Status List and index within the Credential Body.
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).
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:
"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:
Step 3: Execute the transaction
Once you have constructed your payload file, and have saved it as a JSON file, use the transaction below to issue the Verifiable Credential.
veramo execute -m cheqdIssueRevocableCredentialWithStatusList2021 --argsFile path/to/payload.json
Response format
If the transaction is successful, you will get returned a formatted Verifiable Credential, including a populated "credentialStatus"
section.
Last updated
Was this helpful?