Setup your Development Environment
You’ll need an active Algorand dApp and Node.js installed to use the Ciphera React widget.1. Install the SDK
Install theciphera-sdk from npm. This package contains both the React frontend widget and the server-side verification utilities.
2. Add the React Widget
Import the<Ciphera /> component into your application. Place it wherever you want users to initiate the KYC process.
src/App.tsx
3. Verify on your Backend (Optional but Recommended)
If your architecture includes a separate backend (Node.js, python, etc.), you must independently verify that the wallet actually holds the credential before allowing database operations. You can do this without seeing any PII.src/server/api.ts
How it works for your Users
When your users click the widget:- They securely download an Offline XML from the government UIDAI portal.
- The widget generates the zero-knowledge proof locally on their device.
- Their raw data is immediately deleted from memory.
- The cryptographic proof is submitted to the Algorand blockchain.
- They receive an anonymous, non-transferable credential in their wallet.
- The
onVerifiedcallback fires, returning control to your application.
