This guide will walk you through setting up and using denithizgdh's decentralized identity and zero-knowledge proof tools. We'll cover installation, basic usage, and advanced scenarios.
$ npm install -g @denithizgdh/cli
Initialize your project directory with the CLI:
$ den init my-project
Use the CLI to create a new self-sovereign identity:
$ den identity:create --name alice
This will generate a DID document and private keys for the identity. The output shows:
{ "did": "did:den:abc123...", "keyId": "sec-k123456789", "createdAt": "2025-09-19T12:34:56Z" }
Create a zero-knowledge proof for private data verification:
$ den proof:create --identity did:den:abc123... --input ./secret.json
This command generates a proof without revealing underlying data. The output can be verified using our API.
Create custom verification logic with our API:
POST /api/v1/verify { "proof": "{{zk-proof}}", "publicInputs": [12345, 67890] }
Use this endpoint to verify custom zero-knowledge proofs in your applications.
Ensure you're running the CLI with proper filesystem permissions. Reinstall if needed:
$ sudo npm install -g @denithizgdh/cli
You must use a valid API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Generate your API key in the dashboard.