Guides

Introduction to Guides

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.

Getting Started

Install CLI Tool

$ npm install -g @denithizgdh/cli

Initialize your project directory with the CLI:

$ den init my-project

1. Creating a Decentralized Identity

Generate New Identity

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"
}
                        

2. Using Zero-Knowledge Proofs

Generate ZK Proof

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.

3. Advanced Usage

Custom Verification

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.

Troubleshooting

Common Issues

Permission Errors

Ensure you're running the CLI with proper filesystem permissions. Reinstall if needed:

$ sudo npm install -g @denithizgdh/cli

API Authentication

You must use a valid API key in the Authorization header:

Header:
Authorization: Bearer YOUR_API_KEY

Generate your API key in the dashboard.