Zk One
privacy, zk proofs, verification, data sharing
Created on 3rd December 2025
•
Zk One
privacy, zk proofs, verification, data sharing
The problem Zk One solves
ZK ONE is a decentralized application (DApp) focused on secure e-identity management, document verification, and privacy-preserving data sharing.
Challenges I ran into
- Generating and verifying zk-SNARKs client-side without killing performance Problem:
Initially I tried to generate zk-proofs directly in the browser using circom + snarkjs. For small circuits it was fine, but as soon as the identity document schema grew (multiple fields, timestamps, hashes), proof generation took 15–40 seconds on mid-range laptops and completely drained mobile batteries.Solution: Split the workflow: heavy proof generation is now done inside a Trusted Execution Environment (TEE) simulation in the backend (Node.js + express + snarkjs worker threads), while the frontend only handles proof verification (which is almost instant).
Later I replaced full client-side generation with pre-generated “ceremony” parameters and moved to the new halo2 + pse libraries that are 4–6× faster.
Added a nice animated progress bar + Web Workers so the UI never freezes.
- Storing large document hashes & metadata on Lisk L2 without exploding gas costsProblem:
Lisk L2 is cheap, but storing raw IPFS CIDs + Merkle paths for every document quickly became expensive when users started uploading multiple documents.Solution: Implemented a Merkle tree accumulator per user inside the smart contract. Instead of storing each hash individually, only the updated root is written on-chain (~60 bytes per update).
Off-chain I keep the full Merkle path in localStorage/indexedDB and rebuild it when needed.
Added batch updates users can upload 5-10 documents at once and commit only one root.
-
Seamless wallet connection + 2FA while keeping the UX actually simpleProblem:
Many users dropped off at the wallet-connect + mandatory 2FA step. The flow felt too “enterprise” for a Web3 product.Solution: Switched from the usual “Connect → Enable 2FA → Create identity” to a progressive model: users can explore the DApp and even upload documents with a temporary session (encrypted with lit-protocol). Only when they want to commit data on-chain do we ask for wallet + 2FA.
Used WalletConnect v2 + RainbowKit + custom modal styling with Shadcn - now the connection success rate jumped from ~45 % to 82 %. -
Making drag-and-drop access control intuitiveProblem:
The first version of the “share with permission” feature was a boring list of addresses + checkboxes. Nobody understood expiration dates and granularity.Solution: Built a visual canvas (react-dnd + beautiful-dnd) where users literally drag verified contacts onto document cards and set time-limited badges (“24h”, “7 days”, “revoke anytime”).
Added instant QR-code generation for offline/air-gapped sharing.
- Deploying a Next.js + static assets + worker backend on a fully decentralized hostProblem:
Vercel and Netlify were easy, but I wanted 100 % decentralized hosting to match the project philosophy. Fleek + IPFS was great for static files, but the proof-generation worker kept timing out.Solution: Split the app: static frontend → Fleek/IPFS + Filecoin
Backend proof service → Railway → Cloudflare Workers (for final production I’m migrating to Akash Network containers)
Added fallback gateways and DNSLink so the DApp stays accessible even if one gateway is down.
These challenges forced me to go deeper into zk, Merkle structures, L2 economics, and UX for privacy-sensitive flows and honestly made ZK ONE way stronger than my original MVP vision.