The simple, seamless and secure way for developers to build confidential dApps
Privacy Protocol is a plug-and-play middleware that allows developers to easily build confidential dapps (DAOs, deFi, Prediction markets etc) and integrate zk privacy into their existing without needing to rewrite/redeploy smart contracts or migrate assets, Currently, achieving on-chain privacy forces users to migrate assets to isolated chains or requires developers to spend months mastering complex cryptography. Privacy Protocol solves this through a lightweight npm SDK that abstracts away zero-knowledge (ZK) circuit generation.
All the developer needs to do to have a confidential dApp in minutes is to install the Privacy Protocol SDK into their project, set it up and interact with their contract throught the SDK (uses react hooks and functions).
When a user initiates an action —like a swap, vote or trade —the SDK generates a ZK-SNARK proof directly in the browser. A decentralized Rust relayer submits this proof, paying the gas fees to completely hide the user's original wallet. On-chain, the protocol’s Pool contract verifies the proof and deploys an Ephemeral Proxy to execute the interaction and also secure the user's funds.
The target dApp sees only the temporary proxy, keeping the user completely anonymous while utilizing deep arbitrum liquidity. Any returned assets or data are securely locked to the proxy, accessible only to the user holding the valid cryptographic proof. Developers get seamless integration, superior UX and users interact on chain privately while retaining absolute sovereignty over their liquidity without ever needing a new wallet.
I built the end-to-end infrastructure of Privacy Protocol from scratch, bridging complex zero-knowledge cryptography with a seamless developer and user experience.
1. Smart Contract Architecture (Solidity & Noir)
PrivacyProtocolPool Contract: Built core logic for user deposits, ZK proof verification, and encrypted UTXO state management.
MinimalProxy System: Programmed factory logic to deploy ephemeral, single-use proxies, physically separating relayer gas payments from user funds.
ZK Circuit Integration: Deployed the Noir verifier contract to authenticate browser-generated SNARKs on-chain.
2. Off-Chain Relayer Infrastructure (Rust)
High-Performance Relayer: Developed a long-running Rust relayer using axum and ethers-rs to handle incoming proofs.
Anti-Theft & Fee Validation: Wrote logic to cryptographically bind the relayer's address to the transaction (preventing front-running) and validate gas fee margins.
Production Deployment: Containerized and deployed the persistent background batching loop to Render.
3. Developer SDK & Frontend (TypeScript/Next.js)
Universal SDK: Built a lightweight npm package wrapping Wagmi/Viem to abstract ZK complexity into simple React hooks.
Browser-Native Proving: Implemented bb.js and Noir to securely generate zkSNARKs in-browser, removing the need for centralized provers.
Interactive Demo: Developed a DAO and deFi application using Next.js to visually demonstrate the transaction flow through Privacy Protocol.
4. End-to-End Milestone Achieved I successfully routed a complete transaction through the stack: generating an in-browser proof, passing it through the Rust mempool, deploying an ephemeral on-chain proxy, and executing a swap and vote—all without exposing the original msg.sender.
Not started