revoke_credential
Revoke a verifiable credential by updating its status in the W3C Status List 2021 bitstring, ensuring the credential is marked as invalid for future verification processes.
Instructions
Revoke a verifiable credential using W3C Status List 2021 specification. Updates the credential status in the bitstring status list.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
credentialId | Yes | ||
reason | No | Reason for revocation | |
statusListIndex | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {},
"properties": {
"credentialId": {
"minLength": 1,
"type": "string"
},
"reason": {
"description": "Reason for revocation",
"type": "string"
},
"statusListIndex": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"credentialId",
"statusListIndex"
],
"type": "object"
}