Effe

Privacy-preserving swap gating on Uniswap v4 using ZK group membership proofs

HackMoney 2026Shipped January 30, 2026 Dormant#defi#privacy#zk#identity
Visit Repo
Effe banner

About

https://effe-production.up.railway.app/

Effe is a Uniswap v4 hook that enforces compliance gating without revealing trader identities. The allowlist is a Semaphore group -- an on-chain Merkle tree of identity commitments. To swap, a trader generates a Groth16 zero-knowledge proof that their commitment is in the tree and passes it as hookData to the router.

The hook's beforeSwap function calls the Semaphore verifier on-chain: valid proof means the swap executes, missing or invalid proof means the transaction reverts. The only thing visible on-chain is a nullifier hash -- not the trader's identity or address. This gives you composable, privacy-preserving swap authorization at the protocol layer.

The project includes verified contracts on Ethereum Sepolia and a live web demo where you can join the group, generate proofs, execute authorized swaps, and see unauthorized swaps revert on-chain.

How it's made

The core is a Solidity hook contract (ZKComplianceHook) built against the Uniswap v4 hook interface. It integrates with the Semaphore protocol for on-chain ZK proof verification -- Semaphore uses Groth16 SNARKs over a Poseidon-based Merkle tree.

I wrote a custom HookedSwapRouter that forwards arbitrary hookData through the PoolManager.swap call so the proof reaches beforeSwap. Contracts were developed and deployed with Foundry, using CREATE2 salt mining to get a hook address whose lowest bits match the required permission flags (beforeSwap only).

The frontend is a vanilla HTML/JS app served by a Node.js backend (TypeScript, using viem for all chain interactions). Proof generation runs server-side via @semaphore-protocol/proof (snarkjs under the hood).

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

DormantLast push 299 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

GrimSwap

Privacy DEX on Uniswap v4 — ZK-SNARK proofs + stealth addresses break the sender-receiver link.

HackMoney 2026Prize winner Dormant#defi#privacy

Confidential Hook

ZK-powered hook that enable confidential trading with compliance, policy, and strategy verification