About
GrimSwap is a privacy-preserving decentralized exchange built as a Uniswap v4 hook that enables anonymous token swaps using zero-knowledge cryptography.
The Problem: Every swap on traditional DEXs is fully transparent. Anyone can track your wallet, analyze your trading patterns, and front-run your transactions. Over $1.3B in MEV is extracted annually, and 1 in 30 swaps gets attacked by sandwich bots. Your on-chain history is public forever.
GrimSwap solves this by breaking the on-chain link between depositors and recipients:
- Deposit — Users deposit tokens into a shielded pool, generating a secret commitment stored locally in their browser
- ZK Proof — When swapping, a Groth16 SNARK proof verifies the user owns a valid deposit without revealing which one (~1 second proof generation in-browser)
- Stealth Addresses — Swap outputs are routed to one-time ERC-5564 stealth addresses that only the recipient can derive and spend from
- Relayer — A gas relayer submits transactions on behalf of users, so the depositor's wallet never appears on-chain
The result: complete transaction privacy. No one can link your deposit to your withdrawal, trace your trading history, or identify your wallet.
Built natively on Uniswap v4's hook architecture, GrimSwap uses a dual-mode hook — the same pool supports both regular and private swaps, so privacy doesn't fragment liquidity. The hook verifies ZK proofs in beforeSwap and routes outputs to stealth addresses in afterSwap, all atomically in a single transaction.
Prizes
- ETHGlobal · ETHGlobal · 🏆 HackMoney 2026 Finalist
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






