In today's world, when institutional players trade large blocks of tokenized Real World Assets (RWAs) β such as $5M of tokenized T-Bills β public blockchains broadcast every detail. MEV bots front-run, copy-traders pile on, and slippage costs 2β5% of trade value. In traditional finance, dark pools solve this. On-chain, there is no privacy layer for confidential OTC settlement. Result: The $15T RWA tokenization wave stays stuck because institutions can't trade without broadcasting their intent.
ClawSearch DarkDesk solves this by acting as an AI-brokered OTC dark pool built on iExec Confidential Tokens and the Nox Protocol.
Key Features:
- π€ AI Trade Negotiator: ChainGPT Web3 LLM-powered chat for natural-language OTC negotiation.
- π Live RWA Price Oracle: Alpaca API for real-time T-Bill yields and stock prices β zero mocked data.
- π Confidential Wrap/Unwrap: ERC-20 β cToken conversion via iExec Nox Protocol (ERC-7984 TEE standard).
- π€ Confidential Escrow: Atomic swap contract holding both parties' cTokens.
- π Split-Screen Verifier: Side-by-side: Arbiscan (encrypted) vs. DarkDesk (real balances).
We built the frontend using Next.js 16 and Tailwind CSS v4. The Web3 integration uses wagmi v2 and viem connected to Arbitrum Sepolia. We integrated the ChainGPT API to power the AI negotiator and the Alpaca Markets API for live off-chain oracle data. Our smart contracts are built with Solidity 0.8.28 using the iExec Nox Protocol ERC-7984 (TEE) implementation for Confidential Tokens:
| Package | Version | Purpose |
|---|---|---|
@iexec-nox/nox-confidential-contracts |
0.1.0 | ERC-7984 IERC7984 interface & ERC7984Base |
@iexec-nox/nox-protocol-contracts |
0.2.2 | euint256 encrypted types & Nox SDK |
- [iExec]: We use the Nox Protocol ERC-7984 (TEE) implementation β not OZ/Zama FHE β for Confidential Tokens that hide OTC settlement amounts and balances. Imports
IERC7984andeuint256directly from@iexec-nox/*packages. Seecontracts/DarkDeskEscrow.sol. - [ChainGPT]: We used the ChainGPT Web3 LLM API to build the AI Negotiator that brokers the trade. The implementation can be found in
src/lib/chaingpt.tsandsrc/app/api/chat/route.ts.
- Clone the repo:
git clone https://github.com/edycutjong/clawsearch-darkdesk.git - Install dependencies:
cd clawsearch-darkdesk && npm install - Set up environment variables: Rename
.env.exampleto.env.localand add your keys (see table below). - Run the app:
npm run dev
Note for Judges: Our front-end runs on
http://localhost:3000. You will need to connect a wallet via RainbowKit. Please ensure you are connected to the Arbitrum Sepolia (Chain ID: 421614) testnet and have Testnet ETH to cover gas for the Escrow.
| Variable | Source |
|---|---|
CHAINGPT_API_KEY |
Contact @vladnazarxyz on Telegram |
ALPACA_API_KEY / ALPACA_API_SECRET |
Alpaca Markets (free paper trading) |
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID |
WalletConnect Cloud |
NEXT_PUBLIC_ESCROW_CONTRACT_ADDRESS |
After deploying DarkDeskEscrow.sol to Sepolia |
π clawsearch-darkdesk/
β
βββ π contracts/ # Solidity 0.8.28 β ERC-7984 Nox TEE Escrow
βββ π docs/ # Architecture diagrams and pitch assets
βββ π public/ # Logos and app demonstration GIFs
βββ π src/
β βββ π app/ # Next.js 16 App Router (Pages & API Routes)
β βββ π components/ # React 19 UI Components (Dark Pool features)
β βββ π lib/ # App Logic (ChainGPT & Alpaca Clients)
β
βββ π .env.example # Secure template for judges to configure API keys
βββ π feedback.md # Required iExec developer feedback
βββ π README.md # Project Pitch & Documentation
βββ π package.json
MIT Β© 2026 Edy Cu
Built for iExec Vibe Coding Challenge | View BUIDL
By: @edycutjong | Tags: @iEx_ec @Chain_GPT
