DIDs are stored in systems known as Verifiable Data Registries (VDRs). These registries hold DIDs and supply the essential data needed to fetch DID documents. For zCloak, the specific VDR utilized is Arweave.
Arweave is a decentralized, cryptographically secured permanent archive built on a cryptocurrency framework. Its goal is to offer enduring data storage. Users can make a one-time payment to permanently store their data on the Arweave network.
In Arweave, Tags
are important when a user tries to retrieve certain transactions. Tags
is a field in an Arweave transaction that is an array of {name, value} pairs. The total length of names and values must not exceed 2048 bytes. By customizing this field, you can use the Arweave gateway to retrieve the corresponding transaction.
<aside> 💡 Here is an example of customizing Tags in an Arweave transaction of DIDs
<aside> 📔 Tag Customization Example
</aside>
</aside>
In addition to Tags, users can also query Arweave Transactions via Owners
, Recipient
, and many other elements. For more details, please refer to Arweave GraphQL Guide.
If you know the DID URL, we highly advise you to use the DID Resolver in our SDK to retrieve the DID document.
A DID resolver retrieves the information linked to a DID with type did:zk
using the resolve query to fetch a response from the Arweave. The response contains:
DID Document
: DID Document associated with the specified DID in a W3C specification compliant DID Doc structure.The role of DID Resolver: To obtain DID Document
through DID. In this way, when the DID user logs in or uses a service, the service provider uses 'DID Resolver' to obtain DID Document and know how to verify and identify the User.
Explore the detailed codes of DID Resolver in our SDK Guideline