About
## Wave 1 submission
PHANTOM PROTOCOL — WAVE 1 SUBMISSION
"A phantom exists but cannot be observed. Your position is real — but invisible on-chain."
THE PROBLEM
Prediction markets on transparent chains are fundamentally broken. Every bet is publicly visible: amount, direction, timing. MEV bots front-run you from the mempool. Whales track institutional bettors and mirror their positions. The moment a sharp analyst bets, their research becomes public signal. The act of participating destroys the value of participating. Polymarket did $9B+ in volume in 2025 — every dollar on a fully readable chain, fully frontrunnable.
THE IDEA
PHANTOM is the world's first fully homomorphically encrypted prediction market. FHE is the only cryptographic scheme that allows computation directly on encrypted data — no decryption, no trust assumptions, no delays. Not ZK proofs. Not TEE hardware. Not commit-reveal. The smart contract runs full market logic on ciphertext: accumulating bets, routing outcomes, computing payouts — without ever seeing a single plaintext number.
WHAT WE BUILT — WAVE 1: PHANTOMBET
Three production Solidity contracts deployed on Arbitrum Sepolia:
PhantomACL.sol — Abstract base with on-chain Access Control Lists for every ciphertext. Roles: CREATOR, BETTOR, RESOLVER, AUDITOR. The contract can compute on ciphertexts but cannot read them.
PhantomBet.sol — Core binary market. FHE.select() routes each encrypted bet to YES or NO pool without the contract ever seeing direction. FHE.add() accumulates pool totals homomorphically. resolveMarket() calls FHE.allowPublic() to authorize CoFHE threshold decryption. revealPools() posts decrypted totals + ECDSA proof on-chain. claimPayout() distributes proportional winnings from public aggregates. Individual bets stay encrypted permanently.
PhantomToken.sol — $PHTM, a FHERC20 token where all balances are euint64 ciphertexts.
Deployed addresses:
PhantomBet: 0xFB9c10423EAaD015dDb04f5aC85273f1B3F7A566 PhantomToken: 0x31666B7ECf736c0c6014F0cd63C646B7f4Af3887 Chain: Arbitrum Sepolia, ID 421614
21 tests passing. Full production React 18 frontend live at phantom-protocol-chi.vercel.app — with 7 custom FHE hooks, wagmi 3.x, @cofhe/sdk 0.4.0, EIP-712 permit-based decryption, and a complete 4-step FHE state machine UI.
Privacy boundary: bet amounts, bet directions, pool totals before resolution, and all payout amounts are always encrypted. Only aggregate totals are revealed at resolution — losers are never exposed.
THE FIVE-WAVE VISION
Wave 1 — PhantomBet: Binary markets. LIVE NOW. Wave 2 — PhantomMulti: 2–10 outcome encrypted buckets. Elections, sports, brackets. Wave 3 — PhantomLiquidity: Encrypted AMM. Invisible pool depths. No frontrunning. Wave 4 — PhantomFutures: Perpetual markets with encrypted funding rates and margin. Wave 5 — PhantomOracle: AI inference on FHE-encrypted feeds. Trustless resolution without reading raw data.
docs: https://phantom-protocol-chi.vercel.app/docs Live: https://phantom-protocol-chi.vercel.app/
## Wave 2 submission
PHANTOM PROTOCOL — WAVE 1 SUBMISSION
"A phantom exists but cannot be observed. Your position is real — but invisible on-chain."
THE PROBLEM
Prediction markets on transparent chains are fundamentally broken. Every bet is publicly visible: amount, direction, timing. MEV bots front-run you from the mempool. Whales track institutional bettors and mirror their positions. The moment a sharp analyst bets, their research becomes public signal. The act of participating destroys the value of participating. Polymarket did $9B+ in volume in 2025 — every dollar on a fully readable chain, fully frontrunnable.
THE IDEA
PHANTOM is the world's first fully homomorphically encrypted prediction market. FHE is the only cryptographic scheme that allows computation directly on encrypted data — no decryption, no trust assumptions, no delays. Not ZK proofs. Not TEE hardware. Not commit-reveal. The smart contract runs full market logic on ciphertext: accumulating bets, routing outcomes, computing payouts — without ever seeing a single plaintext number.
WHAT WE BUILT — WAVE 1: PHANTOMBET
Three production Solidity contracts deployed on Arbitrum Sepolia:
PhantomACL.sol — Abstract base with on-chain Access Control Lists for every ciphertext. Roles: CREATOR, BETTOR, RESOLVER, AUDITOR. The contract can compute on ciphertexts but cannot read them.
PhantomBet.sol — Core binary market. FHE.select() routes each encrypted bet to YES or NO pool without the contract ever seeing direction. FHE.add() accumulates pool totals homomorphically. resolveMarket() calls FHE.allowPublic() to authorize CoFHE threshold decryption. revealPools() posts decrypted totals + ECDSA proof on-chain. claimPayout() distributes proportional winnings from public aggregates. Individual bets stay encrypted permanently.
PhantomToken.sol — $PHTM, a FHERC20 token where all balances are euint64 ciphertexts.
Deployed addresses:
PhantomBet: 0xFB9c10423EAaD015dDb04f5aC85273f1B3F7A566 PhantomToken: 0x31666B7ECf736c0c6014F0cd63C646B7f4Af3887 Chain: Arbitrum Sepolia, ID 421614
21 tests passing. Full production React 18 frontend live at phantom-protocol-chi.vercel.app — with 7 custom FHE hooks, wagmi 3.x, @cofhe/sdk 0.4.0, EIP-712 permit-based decryption, and a complete 4-step FHE state machine UI.
Privacy boundary: bet amounts, bet directions, pool totals before resolution, and all payout amounts are always encrypted. Only aggregate totals are revealed at resolution — losers are never exposed.
THE FIVE-WAVE VISION
Wave 1 — PhantomBet: Binary markets. LIVE NOW. Wave 2 — PhantomMulti: 2–10 outcome encrypted buckets. Elections, sports, brackets. Wave 3 — PhantomLiquidity: Encrypted AMM. Invisible pool depths. No frontrunning. Wave 4 — PhantomFutures: Perpetual markets with encrypted funding rates and margin. Wave 5 — PhantomOracle: AI inference on FHE-encrypted feeds. Trustless resolution without reading raw data.
docs: https://phantom-protocol-chi.vercel.app/docs Live: https://phantom-protocol-chi.vercel.app/
## Wave 3 submission
🔐 PHANTOM Protocol — Full Project Breakdown
What is it? PHANTOM is the world's first prediction market built on Fully Homomorphic Encryption (FHE). Your bet amount, direction, and even the pool totals stay encrypted on-chain — not hashed, not delayed — genuinely encrypted throughout the entire market lifecycle. The smart contract computes on ciphertext. Nobody sees anything. 🔗 Live Demo: https://phantom-protocol-chi.vercel.app/
📦 Three Live Contracts on Arbitrum Sepolia
PhantomBet 0x31a578f2c63a85Ae13E1e12A859a2B5f775De228 — Binary YES/NO prediction markets. FHE.select() routes bets, FHE.add() accumulates pools. 8 real markets seeded on-chain. PhantomToken ($PHTM) 0x78AF03022b1cD35e75642Ac2A043a6d2cE472228 — FHERC20 token. All balances are euint64 ciphertexts. Invisible transfers. PhantomRounds 0x76db8a0429d19e8440e3D290F79c0613834c72a1 — Wave 3 price-round engine. 5m/15m rounds, keeper bot, oracle sig, FHE pools.
🌊 Wave 3 — What We Built
PhantomRounds: 6-state round machine (NONE/OPEN/LOCKED/RESOLVED/CANCELED/PENDING_REVEAL). Users bet UP or DOWN on BTC/ETH/SOL in time windows. Keeper bot polls every 30s: auto-creates rounds with Binance price as start, locks them at lockAt, fetches close price at settleAt, computes oracle hash keccak256("PHANTOM_ROUND_ORACLE" || chainId || contract || roundId || endPrice || observedAt), signs EIP-191 (signMessage not sign — critical fix), resolves on-chain. Contract runs FHE.gte(encEndPrice, encStartPrice) entirely in ciphertext domain. Bet direction encrypted on-chain via FHE.asEbool(isUp) — no client SDK needed. Any EVM wallet works. CLI tool covers all lifecycle ops manually. Seed script deployed 8 real markets with TX hashes. Frontend Markets page: responsive 3-col card grid, inline animated detail panel. 54 tests all passing.
📈 Market Fit — Why Now, Why Different
Transparent prediction markets have a fundamental problem: everything is visible. Sophisticated traders, quant funds, and serious analysts avoid them because their positions immediately become public signal. Bots front-run from the mempool. Pool imbalance is readable in real time.
PHANTOM removes all of that structurally, not procedurally. There's no trusted party that could reveal data. No timing window where it's exposed. No hardware to compromise. The privacy guarantee is mathematical.
This creates a product that attracts exactly the participants who have the best forecasting ability but historically won't use transparent markets — funds, analysts, quant traders. When they can bet without broadcasting their thesis, market accuracy improves and liquidity deepens: a flywheel transparent markets structurally cannot create. Wave 3's price-round engine adds a second product on the same FHE core: real-time directional bets on crypto prices with automated lifecycle and live oracle integration.
## Wave 4 submission
.🔐 PHANTOM Protocol — Wave 4 Submission
What is it? PHANTOM is the world's first prediction market built on Fully Homomorphic Encryption (FHE). Your bet amount, direction, and pool totals stay genuinely encrypted on-chain — computed on ciphertext throughout the entire lifecycle. No trusted party. No timing window. Mathematical privacy.
🔗 Live: https://phantom-protocol-chi.vercel.app/
📦 Four Contracts on Arbitrum Sepolia
PhantomBet — 0x31a578f2c63a85Ae13E1e12A859a2B5f775De228 Binary YES/NO markets. FHE.select() routes bets, FHE.add() accumulates pools. 8 seeded markets live.
PhantomToken ($PHTM) — 0x78AF03022b1cD35e75642Ac2A043a6d2cE472228 FHERC20. All balances are euint64 ciphertexts. Invisible on-chain transfers.
PhantomRounds — 0x76db8a0429d19e8440e3D290F79c0613834c72a1 Price-round engine. 5m/15m rounds on BTC/ETH/SOL. Keeper bot + EIP-191 oracle. FHE.gte() resolves entirely in ciphertext.
PhantomMulti — deploying to Arbitrum Sepolia Multi-outcome markets (2–8 choices). FHE.select() routes each bet to the correct ciphertext pool. Pool totals stay hidden until resolution.
🌊 Journey: Wave 1 → 4
Wave 1 — PhantomBet + PhantomToken: Core FHE binary markets and invisible FHERC20 token. Wave 2 — Frontend: React/Vite/wagmi dashboard, CoFHE decrypt hooks, live market UI. Wave 3 — PhantomRounds: Directional price bets, keeper bot, EIP-191 oracle, 54 tests. Wave 4 — PhantomMulti: 2–8 outcome markets, FHE multi-pool accumulation, 65 tests passing.
🔑 Wave 4 Deep Dive — PhantomMulti
PhantomMulti generalizes FHE prediction markets beyond binary. Six-state lifecycle (NONE → OPEN → RESOLVED → PENDING_REVEAL → CANCELED). Outcome index encrypted via FHE.asEuint8(), bet amount via FHE.asEuint64(). FHE.select() routes each bet to the correct ciphertext pool without revealing which pool received value. Pool totals hidden until the resolver calls revealMultiPools(). Payout: (betAmt × total × 97) / (winPool × 100) — 3% fee.
Two bet interfaces: placeMultiBetSimple() takes plaintext outcome index — any EVM wallet works. placeMultiBet() is the full encrypted path; both index and amount stay ciphertext end-to-end.
65 Hardhat tests passing. Bot seeder deploys sample markets. Frontend Multi page with four wagmi hooks and full ABI wired.
📈 Why This Matters
Transparent markets are structurally broken for serious participants: positions broadcast a thesis, bots front-run from the mempool, pool imbalance leaks in real time. PHANTOM removes all of this mathematically — no trusted party, no hardware assumption, no timing window. Multi-outcome markets extend FHE privacy to elections, sports, token launches — any event with more than two results. When sophisticated actors can bet without broadcasting position, accuracy and liquidity both improve. A flywheel transparent markets cannot create.
## Wave 5 submission
PHANTOM Protocol is the first fully homomorphic encrypted prediction market and automated price-round engine live on Arbitrum Sepolia. Live demo: https://phantom-protocol-chi.vercel.app/
THE PROBLEM: On transparent blockchains every bet exposes amount, direction, timing, and pool sentiment. MEV bots front-run transactions, whales counter-trade visible positions, and analysts leak alpha instantly. Public pool depths become trading signals. Traditional prediction markets cannot protect strategic information.
THE SOLUTION: PHANTOM uses Fully Homomorphic Encryption through Fhenix CoFHE so smart contracts accumulate pools, route bets, compare prices, and settle payouts entirely on encrypted ciphertext. Individual positions stay private. Only authorized aggregate totals are revealed at resolution via threshold decryption and on-chain signature verification.
WHAT WE BUILT: Four deployed contracts — PhantomBet (encrypted YES/NO markets with 10 live questions), PhantomToken (FHERC20 confidential balances), PhantomRounds (automated UP/DOWN price rounds on BTC ETH SOL with oracle-signed Binance settlement), and PhantomMulti (2-8 outcome encrypted markets with 5 live seeds). A React frontend with Markets, Rounds, Multi, Positions, and Docs pages. Keeper Bot v3 runs 24/7 creating locking resolving and CoFHE-revealing round pools every 30 seconds. CLI tools for manual round control. 120 Hardhat tests passing.
HOW PHANTOMROUNDS WORKS: Keeper opens a round OPEN. Users bet UP or DOWN with ETH; FHE.select routes stakes into encrypted pools nobody can read. At lockAt the round locks. At settleAt the keeper fetches Binance price, signs an EIP-191 oracle attestation, and resolves on-chain using FHE.gte. CoFHE threshold-decrypts pool totals; keeper calls revealRoundPools. Winners reveal their encrypted direction with a CoFHE permit signature then claimRoundPayout receiving 97% of the pool in ETH (3% protocol fee).
PRIVACY MODEL: Encrypted on-chain — bet amounts, directions, pool totals before resolution, and PHTM balances. Public — market questions, final outcomes, aggregate pools after CoFHE reveal, and bettor counts. Resolution never exposes individual bet sizes pre-claim.
PRODUCTION READINESS: We completed a full end-to-end audit fixing the broken round claim path (keeper now auto-reveals pools, frontend runs reveal direction then claim, CLI adds reveal-pools and reveal-direction commands), fixed PhantomBet pool reveal ABI bug, deployed PhantomMulti, synchronized all environment files, and verified frontend production build.
Deployed on Arbitrum Sepolia: PhantomBet 0x31a578f2c63a85Ae13E1e12A859a2B5f775De228, PhantomRounds 0x76db8a0429d19e8440e3D290F79c0613834c72a1, PhantomMulti 0x674200f50Ee8816355dB3105d06fF799d15720F3. GitHub: github.com/Mr-Ben-dev/PHANTOM-Protocol
PHANTOM proves FHE is not just privacy — it is a new market primitive. Your position is real but invisible on-chain.
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





