All projects

ShadowMarket

Private prediction markets with sealed-bid privacy and Chainlink CRE-driven AI settlement.

CRE & AI Prediction Markets Privacy

What it is

ShadowMarket is a decentralized prediction market that solves the prevalent issue of front-running and intent leakage. In traditional prediction markets, whales and institutions avoid participating because placing large, transparent positions exposes their market thesis and allows bots to manipulate odds before execution. ShadowMarket fixes this by implementing a commit-reveal architecture. Users first commit a hidden cryptographic hash of their bid, obscuring their amount and position side. Once the market expires and enters the resolving phase, users reveal their cleartext values to fund the pool. Finally, the outcome is impartially settled using verifiable consensus AI powered by the Chainlink Confidential Runtime Environment (CRE).

How it Works

The smart contracts are written in Solidity using Hardhat and deployed on the Sepolia testnet. The user interface is built with Next.js and Tailwind CSS, utilizing viem for robust abi encoding and Ethereum interactions.
The core settlement infrastructure relies entirely on the Chainlink Confidential Runtime Environment SDK, which operates via a workflow.yaml config and TypeScript logic. This workflow:

  1. Listens for on-chain MarketExpired events seamlessly.
  2. Executes confidential HTTP requests to search ground the required outcome (using the Serper API & historical sources).
  3. Queries Gemini/Claude models for outcome consensus in a protected environment.
  4. Generates a signed report and successfully pushes the encoded settlement back onto the blockchain using CRE's evm_write capabilities.

Links

Created by

  • Tomiwa Adeyemi
  • Okikiola Akintunde