Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add documentation for revoking and activating a VC #223

Merged
merged 4 commits into from
Oct 28, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,51 @@ To get the rendered VC, you can try this endpoint [`/renderCredential`](http://l
:::tip
The document value is a string which is a encoded HTML string. You can use any online [Base64](https://www.base64decode.org/) tool out there to decode it. Good luck!
:::

## Revoking a VC

To revoke a VC, use the following VCKit API endpoint: [/agent/setBitstringStatus](http://localhost:3332/agent/setBitstringStatus).
huynguyen-hl marked this conversation as resolved.
Show resolved Hide resolved

### Request body:

```json
{
"statusListCredential": "http://localhost:3332/credentials/status/bitstring-status-list/26",
"statusListVCIssuer": "did:web:example.com",
"statusPurpose": "revocation",
"index": 0,
"status": true
}
```

### Expected response:

```json
{
"status": true
}
```

## Activating a VC

To activate a VC, use the following VCKit API endpoint: [/agent/setBitstringStatus](http://localhost:3332/agent/setBitstringStatus).

### Request body:

```json
{
"statusListCredential": "http://localhost:3332/credentials/status/bitstring-status-list/26",
"statusListVCIssuer": "did:web:example.com",
"statusPurpose": "revocation",
"index": 0,
"status": false
}
```

### Expected response:

```json
{
"status": false
}
```
Loading