Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 2.99 KB

issue-credential.md

File metadata and controls

37 lines (22 loc) · 2.99 KB
description
Understand how to issue a Verifiable Credential including an encrypted Status List in the body.

Issue Credential with Encrypted Status List

Issuers are able to add encrypted Status Lists to the body of the Credential if they have previously created an Encrypted Status List on-ledger.

Step 1: Set up your account

Make sure you have set up your account with cheqd Studio and are logged in, using our guide below:

Set up your accountSet up your account with cheqd Studio and log in to start using the APIs.set-up-account.md

Step 2: Create an Issuer DID

Before you can create an encrypted Status List for charging for Credentials, you need to create a DID which is used to link the Status List on-ledger. Use the API in the page below to create a DID:

Create an Issuer DIDCreate a W3C conformant DID on cheqd using the did:cheqd DID Method.create-did.md

Step 3: Create an Encrypted Status List

Follow the tutorial here to create an encrypted Status List with a set of Payment Conditions to unlock:

Charge for Status ListCreate an encrypted Status List on-ledger with Payment Conditions to unlock, to charge for unlocking Status Lists.charge.md

Step 4: Specify the encrypted Status List within Credential body

Follow the instructions within the /credential/create API below to format and issue a Verifiable Credential.

Issue CredentialIssue a W3C conformant Verifiable Credential using the cheqd Studio APIs.issue-credential.md

{% hint style="info" %} Ensure that the "statusListName" and "statusPurpose" are the same as the Status List created in Step 3. This makes sure that if the Credential Status is changed, for example, if it is revoked or suspended, the correct Status List will be updated. {% endhint %}