RWACompliance

CloakSwap RWA: private eligibility swaps via Uniswap v4 Hooks & ENS, funded cross-chain with LI.FI.

RWACompliance

Created At

HackMoney 2026

Project Description

CloakSwap RWA lets users trade tokenized RWAs on Uniswap v4 while keeping eligibility private. Users encrypt onboarding data client-side and only ciphertext + expiry are stored onchain. A v4 Hook enforces eligibility in beforeSwap with verifiable allow/deny outcomes. LI.FI enables “deposit from anywhere” cross-chain funding into the Ethereum trading venue, and ENS adds human-readable identity and portable preferences.

How it's Made

CloakSwap RWA is a Next.js (TypeScript) app + Solidity contracts. Users connect a wallet and encrypt eligibility data client-side; only ciphertext + expiry are stored onchain in a UserRegistry (Sepolia/Ethereum demo). A Uniswap v4 Hook enforces eligibility in beforeSwap by fetching the encrypted profile, verifying it against a pool rule mask, and emitting ComplianceCheck events (or reverting with clear reason codes). The Deposit flow integrates LI.FI SDK/Composer to route liquidity from Base/Arbitrum into Ethereum USDC (swap + bridge) with step-by-step receipts. ENS adds human-readable identity (reverse resolution) and portable preferences via text records to prefill the UX.

background image mobile

Join the mailing list

Get the latest news and updates

RWACompliance | ETHGlobal