You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 20, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: source/index.html.md
+59-1
Original file line number
Diff line number
Diff line change
@@ -2609,6 +2609,10 @@ There can be multiple registries on the chain, and each registry has a unique id
2609
2609
2610
2610
For a detailed example of the registry workflow. Please refer [here](https://github.com/docknetwork/dock-api-js/blob/main/workflows/registryFlow.js).
2611
2611
2612
+
<asideclass="notice">
2613
+
If you want to revoke BBS+ credentials, you must create a registry with type `DockVBAccumulator2022`. For revoking other credentials, you can use `StatusList2021Entry` or `CredentialStatusList2017`.
@@ -2641,6 +2645,22 @@ curl --location --request POST https://api.dock.io/registries/ \
2641
2645
2642
2646
To create a registry, you have to create a `policy` object for which a DID is needed. It is advised that the DID is registered on the chain first. Otherwise, someone can look at the registry and register the DID, thus gaining control of the registry.
2643
2647
2648
+
Choosing the right revocation registry is essential. Here's a simplified overview of the available options:
2649
+
- CredentialStatusList2017
2650
+
- Only supports non-BBS+ credentials.
2651
+
- Individual Tracking: Each entry is tracked separately, which means more ledger space is used for multiple entries.
2652
+
- This registry is cost-effective for a single entry. However, managing several entries can be more expensive.
2653
+
- Implements add-only policies.
2654
+
- StatusList2021Entry
2655
+
- Only supports non-BBS+ credentials.
2656
+
- Recommended for most users.
2657
+
- Collective Tracking: Manages all revocation entries together, making it less costly to revoke multiple credentials simultaneously.
2658
+
- W3C Compliant.
2659
+
- DockVBAccumulator2022
2660
+
- Only supports BBS+ credentials.
2661
+
- Utilizes an on-ledger accumulator for enhanced privacy.
2662
+
- Offers more privacy than the W3C Status List 2021.
@@ -2653,7 +2673,7 @@ To create a registry, you have to create a `policy` object for which a DID is ne
2653
2673
2654
2674
|Parameter|Value|Description|
2655
2675
|---|---|---|
2656
-
|type|StatusList2021Entry **or** CredentialStatusList2017|The type used in registry creation.|
2676
+
|type|StatusList2021Entry **or** CredentialStatusList2017**or** DockVBAccumulator2022|The type used in registry creation.|
2657
2677
2658
2678
> 200 Response
2659
2679
@@ -2943,6 +2963,44 @@ To check if an id is revoked or not, you can check its status with the registry
2943
2963
|402|[Payment required](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402)|Transaction limit reached or upgrade required to proceed|[Error](#schemaerror)|
2944
2964
|400|[Server Error](https://datatracker.ietf.org/doc/html/rfc7231#section-6.6.1)|The request was unsuccessful, because you have not revoked or unrevoked the registered credential yet. Please try to revoke/unrevoke the registered credential and try again.|[Error](#schemaerror)|
curl --location --request GET https://api.dock.io/revocationStatus/{regId}/{revId} \
2973
+
--header 'DOCK-API-TOKEN: API_KEY' \
2974
+
--data-raw ''
2975
+
2976
+
```
2977
+
2978
+
The accumulator witness is utilized by the holder to generate a proof, which combines the witness with their revocation id associated with the credential id (`revId`) and the accumulator associated with the registry id (`regId`), allowing the verifier to validate the credential's status without directly accessing the revocation id on the blockchain.
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|The request was successful and will return the membership witness.|Inline|
3000
+
|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|The request was unsuccessful, because the registry was not found.|[Error](#schemaerror)|
3001
+
|402|[Payment required](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402)|Transaction limit reached or upgrade required to proceed|[Error](#schemaerror)|
3002
+
|400|[Server Error](https://datatracker.ietf.org/doc/html/rfc7231#section-6.6.1)|The request was unsuccessful, because you have not revoked or unrevoked the registered credential yet. Please try to revoke/unrevoke the registered credential and try again.|[Error](#schemaerror)|
0 commit comments