Shadowmesh

AI-driven Uniswap v4 dark pool for zero-slippage, MEV-resistant token swaps

Open AgentsShipped April 24, 2026 Dormant#ai-agents#ai#defi#privacy#infra
Visit Repo
Shadowmesh banner

About

ShadowMesh: The Agentic Dark Pool

The Core Problem: Intent Leakage & The Trust Assumption In modern DeFi, large-volume execution suffers from a fatal trilemma involving Privacy, Decentralization, and MEV. If institutions trade on public AMMs, they suffer brutal MEV sandwich attacks and slippage. If they use public limit order books, they broadcast their intent to the market, causing preemptive price crashes. Traditional finance solves this with "Dark Pools," but bringing this to Web3 has historically required a centralized matching engine—reintroducing trust assumptions and single points of failure.

The ShadowMesh Breakthrough: Agentic P2P Settlement ShadowMesh introduces a fundamentally new DeFi primitive: The Trustless Agentic Dark Pool. We completely eliminate the centralized matching engine by shifting the negotiation phase entirely off-chain to a decentralized P2P mesh network, operated by autonomous AI agents, while maintaining deterministic, cryptographically guaranteed on-chain settlement via Uniswap v4.

Deep Architecture Breakdown:

1. The Sovereign AI Negotiators (Gemini + Pyth) Instead of users submitting static limit orders, they deploy autonomous Gemini-powered agents equipped with hidden parameters (max/min reserve prices). To ensure these agents do not hallucinate and are anchored to reality, their logic loops strictly query the Pyth Network Hermes Oracle before every turn. This provides sub-second, real-world spot pricing to inform their high-frequency haggling algorithms.

2. The Dark Mesh (Gensyn AXL)

To prevent mempool monitoring and metadata leakage, the agents do not communicate over a centralized server. They establish an Agent-to-Agent (A2A) connection over the Gensyn AXL P2P Mesh Network. This creates a true "Dark Room"—a decentralized, off-chain communication layer where high-frequency negotiation produces zero public footprint.

3. The Deterministic State Lock (EIP-712) The critical challenge of Agentic DeFi is bridging probabilistic AI outputs to deterministic smart contracts. ShadowMesh solves this using a cryptographic "State Lock." The exact millisecond the Buyer and Seller agents reach an agreement over the mesh, they generate a highly structured DarkPoolIntent payload. Both agents autonomously sign this payload using the EIP-712 cryptographic standard. This converts an off-chain AI hallucination into an immutable, mathematically verifiable on-chain commitment.

4. MEV-Proof Routing (KeeperHub)

If the signed EIP-712 agreement were broadcast to the public mempool, searchers would snipe it. ShadowMesh neutralizes this vector by routing the payload directly through KeeperHub. Acting as a private relayer, KeeperHub bypasses the public mempool entirely, wrapping the trade and delivering it stealthily to the Uniswap Router.

5. The On-Chain Arbiter (Uniswap v4 Hooks) The final, trustless arbiter of the ShadowMesh protocol is our custom Uniswap v4 Hook. ShadowMesh hooks into the beforeSwap execution phase. Before allowing the router to touch the liquidity pool, the Hook intercepts the transaction, unpacks the payload, and mathematically recovers the EIP-712 signatures of both the AI Buyer and Seller. It verifies that the requested swap parameters match the exact intent signed off-chain. If any external actor attempts to alter the swap amount or slippage by even a single wei, the Hook’s _validateIntentForSwap function forcefully reverts the transaction (InvalidSwap()).

The Result:

ShadowMesh achieves what was previously impossible: zero intent leakage, off-chain computational privacy, and trustless on-chain execution. By vertically integrating Pyth, Gensyn, KeeperHub, and Uniswap v4, we have laid the foundation for the future of institutional-grade, Agentic DeFi.

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 203 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.

Darkpool Mesh

Private mesh where AI agents broadcast intents, match peers, and settle without MEV.