Waiola

Private RFQ settlement on Uniswap v4 with ENS-based maker discovery and ZK enforcement

Waiola

Created At

HackMoney 2026

Winner of

Uniswap Foundation

Uniswap Foundation - Uniswap v4 Privacy DeFi 3rd place

ENS

ENS - Integrate ENS

Prize Pool

Project Description

Waiola is a Private RFQ (Request for Quote) settlement system built as a Uniswap v4 hook. In standard RFQ systems, quote requests leak intent, direction, and size to all market participants — enabling front-running, copy-trading, and quote fading. Waiola fixes this by moving quote negotiation offchain while enforcing settlement onchain with cryptographic guarantees.

(1) ENS Discovery - makers publish RFQ endpoints and policy hashes as ENS text records, turning ENS into a functional discovery layer for DeFi. (2) Private Negotiation - takers request quotes over direct HTTP, not broadcast to any mempool. (3) ZK-Enforced Settlement - every swap through the hook requires a valid Noir zero knowledge proof that cryptographically binds the commitment to the quoted terms without revealing the exact output price onchain. The hook also enforces EIP-712 signature verification, expiry checks, and atomic anti-replay protection. This is not "fully private swaps" - it's reduced pre-trade information leakage with full onchain verifiability.

How it's Made

The onchain layer is built with Foundry and Solidity on Uniswap v4. The core is RFQSettlementHook.sol, a beforeSwap-only hook (minimal permissions pattern) that validates 7 conditions before allowing any swap: commitment existence, anti-replay, pool binding, maker match, EIP-712 signature, expiry, and Noir ZK proof. Commitments use Poseidon2 hashing (ZK-friendly, BN254-compatible) instead of keccak256 so the same hash can be verified inside the Noir circuit. ENS text records (rfq-endpoint, rfq-policy-hash, rfq-pubkey) serve as a real discovery layer — takers resolve maker endpoints permissionlessly and verify policy integrity via onchain hash. The offchain maker server is Express.js/TypeScript handling /quote, /policy, and /status endpoints with EIP-712 signing. 124 tests cover unit, integration, replay protection, gas benchmarks, and fuzz scenarios.

background image mobile

Join the mailing list

Get the latest news and updates

Waiola | ETHGlobal