Hyde Name Hooks is a privacy-preserving Uniswap v4 Hook framework that enables selective disclosure execution.
By bridging the gap between decentralized identity (ENS) and private execution, Hyde allows users to prove their reputation and eligibility without revealing their full wallet history, balances, or precise trading strategies. This creates a new primitive in DeFi: verifiable privacy with contextual trust.
Hyde Name Hooks was born from the realization that transparency in DeFi, while foundational, has become a double-edged sword. As the ecosystem moves toward global financial infrastructure, the lack of selective privacy leads to:
- Information Leakage: Institutional and professional traders cannot execute strategies without tipping their hand.
- Surveillance Risk: Retail users are exposed to constant on-chain tracking and data harvesting.
- Accountability Gaps: Current "privacy" tools often prioritize total anonymity, which can lead to Sybil abuse and reduced protocol integrity.
Our vision is to make privacy programmable. Hyde ensures that privacy is not a binary choice but a spectrum gated by reputation and intent.
Hyde Name Hooks introduces two combined primitives that solve the "Privacy vs. Accountability" dilemma:
- Context-Gated Privacy: Instead of allowing any address to enter a private pool, Hyde uses ENS Reputation Tiers. Only addresses with a proven history (reputation score ≥ X) are allowed to execute private swaps.
- Selective Disclosure Proofs: Users prove they belong to a specific tier (Standard, Trusted, or Elite) without revealing their raw score, wallet balance, or identifying metadata. The pool knows you are "verified," but not "who" you are in detail.
ENS (Ethereum Name Service) & Context Scoring
Hyde leverages ENS as a programmable truth anchor. Our backend scoring engine computes a Context Score (0-1000) based on real-time on-chain signals:
- Transaction History (0-300 pts): Weighted by TX count and ETH balance consistency.
- Token Holdings (0-300 pts): Analyzes balances of key ecosystem tokens (USDC, WETH, etc.).
- DeFi Activity (0-200 pts): Measures interaction frequency with major protocols.
- DAO Participation (0-200 pts): Credits ENS name ownership and governance history.
Tier Mapping:
🏆 Elite (900+): Premium pools with lowest fees and best execution.
🎖️ Trusted (800-899): Privacy-enhanced execution for professional traders.
👤 Standard (<800): Baseline access for public liquidity pools.
Uniswap v4 Hooks (Execution Gating)
The HydeHook contract integrates directly into the Uniswap v4 lifecycle via the beforeSwap hook. Every swap request undergoes a multi-stage validation pipeline:
- Active Pool Check: Ensures the specific pool ID is configured and active.
- Registration Verification: Queries the ENSContextRegistry to confirm the user has a verified status.
- Tier Requirement Check: Validates that the user's tier meets or exceeds the specific pool's requirement.
- Anti-Bot Cooldown: Enforces a protocol-defined time interval between swaps to mitigate bot-driven MEV.
Arc & Circle (USDC Settlement Layer)
Hyde uses Arc as a high-fidelity settlement layer. When a swap output consists of USDC, Hyde triggers a settlement flow powered by Circle’s Developer-Controlled Programmable Wallets (W3S):
- Idempotent Settlement: Each settlement is tracked via idempotencyKey to prevent double-spending.
- Circle W3S Integration: Uses Circle’s transfer API for secure, post-execution mobility.
- Unified USDC Balance: Through Circle Gateway, users maintain a cross-chain view of their settlement funds.