Tutorials
Create a DID
In order to create a Ziden DID, you need to generate a random 32-byte PrivateKey.
Random 32-byte PrivateKey
Then, use our TS Package to generate your own Authentication Tree, and then you can extract your Genesis ID. This Genesis ID will be your unique DID in our ecosystem.
Use can also use BIP39 and BIP32 libs to create your own HD wallets, for example:
Request for a new Claim
Claims are issued based on the specification of registered schemas, so to request a for a new claim, the Holder need to query information of registered Issuers to find the suitable schema registry.
Each Issuer has their own list of registered Schema.
After they found the correct Schema Registry, the Holder need to provide information for the Issuer for the issuance of the Identity Claim.
The Holder will receive a unique ID for their newly created claim. They can use this to track the status of the claim, which can be one of the followings:
Reviewing
Pending
Active
Rejected
Waiting
Accept a Claim
Besides directly request for issuance of new claims, the Holder can also accept pre-issued claims from Issuers. This approach fits for use cases where the Issuer wants to perform batch issuance for multiple Holders.
The Holder can query all claims attached to their DID and check if there is any claim with the "Waiting" status. Then, they can use the unique ID of the claim to accept it.
Backup/Recover Claims
In order to backup user data, the Holder need encrypt their claims with a SecretKey before upload to the Backup Service to protect their data.
After finishing backup, the Holder can fetch their data from the Backup Service and decrypt to use on other devices.
Therefore, we recommend using a separated backup password or a derived key from the Holder's auth to enable seamless experience across devices.
Generate ZKP for Attestations
Services are managed by Verifiers, so to utilize their claims, the Holder need to query information of registered Verifiers to find available services.
Each Verifier has their own list of registered Service.
After they found Service they want, the Holder check if they meet the service's requirements. If yes, they should fetch all the necessary inputs for the proof generation process.
In order to generate a ZKP proof for attestation, they need to use the TS Package.
After successfully generated a valid attestation proof, the Holder need to upload it to the Portal Service for the Verifier.
Share attestation verification results
Moreover, the Holder can also directly share the verification result of the attestation proof to others.
Resources
Identity SDKServices' API SpecificationLast updated