hackquest logo
  • 学习
  • 课程探索
  • 实战
  • 探索黑客松
  • 往期项目
  • 社区
  • 论坛
  • 全球活动
  • 我的社区
  • 共学营
  • 组织中心
  • 更多
    • 词汇表
    • 博客
    • 水龙头
    • 工作机会
    • 媒体工具包
    • 创始人
hackquest logo

DarkSwap on BNB

DarkSwap is a private swap with an AI swap agent, with Solana and NEAR as entry points. We are building our core on BNB Chain's New L1, where the shielded pool is part of the protocol itself.

视频

项目图片 1
项目图片 2
项目图片 3
项目图片 4

技术栈

Web3
Node
Solidity
React
Next
Python

描述

What DarkSwap on BNB is

DarkSwap on BNB is a new hackathon codebase for a private swap on BNB Chain's New L1, built on DarkSwap. DarkSwap is a privacy product at darkswap.app: private swap routing with Solana and NEAR as entry points with encrypted notes, client-side proofs, EVM contracts, a Solana program and a transaction relayer.

Why we are building our core on New L1

BNB Chain's New L1 takes a different approach. Its shielded pool is part of the protocol: predeployed at genesis at 0x0000000000000000000000000000000000005000, with notes, nullifiers, zero-knowledge proofs and a native shielded transaction type (0x77). Every application on the chain shares that one pool, so DarkSwap stops competing to fill a pool and builds on a shared one.

What we built for this hackathon

Live pool reads. The site reads the New L1 devnet (chain 1105) and its ShieldedPool directly, with no key: bytecode, total shielded BNB, Merkle root, note queue and deposit pause state.

A public rehearsal of the swap path on BSC testnet. PublicRehearsal, DemoAMM and the rNOTE demo token are deployed on BSC testnet (chain 97) and run shield, atomic swap and reshield. A recorded guarded swap moved 0.01 BNB into the demo AMM and about 4.61 rNOTE back, at a 41 bps gap to the oracle.

Price guards, on chain and off. Before a note is spent, PublicRehearsal.atomicSwap reads the Atlas BNB/USD feed on BSC testnet and reverts on a stale round or on a gap above 500 bps, leaving the note unspent. Off chain, each quote is checked against the Atlas feed and CoinMarketCap BNB/USD, and refused outside the band or above a 0.05 BNB cap. A risk score built from CoinMarketCap market data tightens the band and the cap when the market is stressed.

A decision log. DecisionLog is deployed on BSC testnet and verified on BscScan and Sourcify. It records the Atlas price, the CoinMarketCap price and response hash, the risk score, the gap and the decision. Record 0 is a pass at a 20 bps gap. Recording from the site is roadmap.

An AI swap agent and an API for other agents. The hackathon page at /hack leads with the swap agent and its prompt field. It takes a plain sentence and returns a quote with its market check. It refuses anything over the 0.05 BNB cap, any output other than rNOTE, and any quote when the Atlas feed is stale or unreadable. It is available in English and Simplified Chinese. The same quote is served read-only to other agents at POST https://hack.darkswap.app/api/mcp through the quote_swap tool. The endpoint holds no key and is registered in the ERC-8004 registry on BSC testnet as id 2930.

A simulated swap walk-through. An accepted quote can be stepped through five steps: Review, Shield, Atomic call, Reshield and Receipt. Each step advances on a click. Nothing is signed or broadcast and no transaction hash is invented. The last step links the recorded BSC testnet rehearsal, and says it is not a receipt for that quote.

What is real today, and what is not yet

Real: the live pool reads, the rehearsal contracts and the guarded swap on BSC testnet, the price guards, the decision log, the swap agent on /hack, and the registered quote endpoint.

Not yet: the swap in this build is a public rehearsal. Every owner and amount is visible, and no privacy is claimed for it. The walk-through on /hack is a simulation and sends nothing. Only native BNB can be shielded today. Dark pools on BNB are limited access and on the roadmap. Bridge transfers and deposits are public, and privacy begins in the pool. This build is testnet and devnet only, with no fee and no token.

Team and reach

Matthew is Lead Developer and Co-Founder of DarkSwap. The co-founders' experience spans trading tools and wallets (Sniper.xyz, OKX Wallet, Trojan Trading Bot), web3 communities (MUMU THE BULL, DeGods, Degen Ape Academy) and ecosystem projects (Retardio, Imperial.Trade, NEAR). These project credits are supplied by the co-founders.

Our plan is to bring the Western traders and communities we already work with onto BNB Chain through the same front door they use today.

New L1 integration plan

Previous integrations: Solana, where DarkSwap started with private swaps; NEAR, for cross-chain swaps from Solana through NEAR Intents; and Ethereum and Base. Planned integration: BNB Chain, with one native shielded pool. The path is shield native BNB, atomic call, reshield the output.

Next step and ask

The next step is a DarkSwap relayer on New L1. A relayer wraps the proofs in an ordinary transaction and pays the gas, so the user's own wallet never appears on it, and it is paid through a private fee note inside the same spend. Dark Pools already runs a relayer for its own pools.

We are asking for New L1 DEX integration partner. The proposed model is a fee on completed routed swaps. BNB Chain's planning targets are Q1 2027 for the public testnet and H2 2027 for mainnet. Those are BNB Chain's targets.

Solana roots. Private routing. BNB shield.

Tracks

Developer Track and CoinMarketCap x Atlas. The one-page write-up is docs/cmc-atlas-writeup.md in the repository, and the contract addresses are in docs/judges.md.

本次黑客松进展

All code in this repository was written during the hackathon, from 25 to 27 November 2026.

Day one: the site with live reads of the New L1 devnet and its shielded pool; the public rehearsal contracts in Foundry (PublicRehearsal, DemoAMM, the rNOTE demo token, and a quoted minimum on the swap); the capped swap quote; the CoinMarketCap market check and the on-chain oracle guard.

Day two: the rehearsal contracts deployed to BSC testnet and a guarded swap recorded there against the Atlas BNB/USD feed; the DecisionLog contract deployed, verified and written to; the risk score that tightens the band and the cap; the quote served as a public read-only endpoint and registered in the ERC-8004 registry as id 2930; the hackathon page at /hack with a live quote console, and a Simplified Chinese version at /hack/zh; the site deployed at hack.darkswap.app; a fix to the quote endpoint so the console returns live quotes.

Day three: the hackathon page reworked to lead with the AI swap agent and the MCP API, with a prompt field and the endpoint and tool shown on the page; a five-step simulated swap walk-through on an accepted quote, in English and Simplified Chinese; the quote now refuses outputs other than rNOTE and refuses when the Atlas feed is stale or unreadable; the rehearsal card on the swap page links PublicRehearsal on BSC testnet; dark pools on BNB described as limited access on the roadmap; Solana and NEAR shown as earlier darkswap.app work.

Tests: 44 TypeScript tests for the quote, the market check, the page copy and the swap walk-through, Python tests for the quote service, and a Foundry suite that covers shield, atomic swap, reshield, withdraw, and the oracle refusals.

Next: a proof-backed swap on New L1 once the newl1-shield CLI is public, token shielding when the protocol supports it, a relayer, and DecisionLog records written from the site.

融资状态

Self-funded by the team and a community-launched token that raised funds for the initial build. This hackathon build has no token and no fee.

队长
Tthe bullish dev
项目链接
部署生态
BNB Smart ChainBNB Smart Chain
赛道
DeFiInfra