DarkSwap is moving onto BNB. See the hackathon build and try the agent quote.
DarkSwap on BNB

Solana roots · NEAR routes · BNB shield

Private swaps,
settled on New L1.

DarkSwap routes private swaps that start on Solana, through NEAR Intents. This build brings that path to BNB Chain: shield native BNB into the New L1 pool, swap inside one atomic call, and reshield the result. An agent can take the intent as a sentence.

  • Opt-in shielded pool
  • Native BNB only
  • Unaudited devnet
  • No real funds

Why DarkSwap

One deep shielded pool instead of fifty shallow ones.

Shielded liquidity is split across dozens of small pools on Ethereum, Solana, and Zcash. Each anonymity set is thin, and moving between them leaks. DarkSwap is the plan to funnel assets from any chain, through intents, into one BNB New L1 pool, where an agent swaps without leaving it.

  1. 01

    Any chain

    Assets start wherever the user already holds them.

  2. 02

    Intent

    A sentence names the swap. The route is an intent, not a new pool.

  3. 03

    One shielded pool

    Value is meant to settle in the New L1 shielded pool, not in a side pool.

  4. 04

    Agent swap

    The ERC-8004 agent calls atomicCall and the funds stay in that pool.

This funnel is the roadmap. Pool deposits are public today, and this repo does not yet submit a type 0x77 proof. The agent and the public rehearsal are what runs now.

DefiLlama tracks 55 privacy protocols with $763.5m TVL, about 98% of it in Tornado Cash, Railgun, and Zama.

Zcash shielded supply is split across four pools (Atlas ZEC). Solana's largest pool, Privacy Cash, is about $1.18m (DefiLlama). Elusiv shut down on 29 Feb 2024 (Elusiv).

17.65% of Railgun withdrawals are linkable (arXiv 2606.25926). 95.81% of bridge withdrawals were matched from public logs (arXiv 2409.04937).

NEAR Intents has routed $41.25B across 39 chains, including BNB (NEAR Stats). On New L1, atomicCall privacy comes from "the set of other users doing the same kind of operation" (BNB Chain docs).

01 — The path

Shield, swap, reshield.

New L1 keeps a shielded pool next to ordinary EVM transactions. A private swap uses the atomic-call flow: leave the pool only for the DEX call, then come back in the same transaction. Proofs authorize a direct 0x77 submission, so the sender need not appear.

01

Shield

A wallet calls privDeposit on the shielded pool and locks native BNB. Sender, amount, and asset stay public. The note is queued, then written into the Merkle tree by deferBatchInsert, about every 50 blocks.

Public entry
02

atomicCall

A type 0x77 transaction, operation 2, or a relayer calling transact. The proof unshields a measured amount into one public call — a DEX — then reshields the return. If that call reverts, the spend stands and the escrow can be retried.

Swap in one tx
03

Reshield

The return lands as an open note: the owner stays private, and the amount and asset are public. A later shielded transfer can spend it into a standard note, where amount and asset hide as well. That hop needs a proof.

Open note

What stays visible

Deposits. Sender, amount, and native BNB.

Withdrawals. Recipient, amount, and asset.

Atomic calls. Unshielded amount, call target, calldata, and the reshielded amount. The note owner can stay private.

Direct fees. A 0x77 fee is public native BNB. Only a shielded-to-shielded transfer hides sender, recipient, amount, and asset.

The in-repo demo of this shape is a public rehearsal. It is not a shielded transfer. Spec: Shielded pool, transaction type 0x77. The July 2026 forum post describes an earlier Groth16 circuit. Current docs specify two PLONK proofs, 864 bytes each. This page follows the docs. Circuits are unaudited, and the trusted setup is imported.

02 — The intent

Say the swap. The agent quotes it.

DarkSwap’s live routes already speak in intents. On BNB the same sentence is the interface: an agent with an ERC-8004 identity on BSC testnet reads it, quotes the pool, and refuses anything over a hard cap. Registration on BSC testnet is gas-free through MegaFuel. ERC-8183 can escrow a job. This hackathon build quotes and can execute the capped rehearsal. It does not take a fee. Other agents can call the quote tool over MCP at /api/mcp on this site. That endpoint is read-only and holds no key.

Registered on BSC testnet as agent id 2930. Registry 0x8004A818BFB912233c491871b3d84c89A494BD9e. Registration transaction. Owner 0x57f37b891980616e76ED2f650e7e38BeAFd59084. SDK: BNB Agent SDK. The page itself sends no transaction.

03 — Architecture

Four layers, one route.

Production DarkSwap stays where it is, on Solana and NEAR. This repository is the new BNB code, kept separate. It reads the live devnet pool and, beside that, runs a public rehearsal of the same three hops. The rehearsal is not a privacy guarantee.

  1. Intent

    A sentence, the way DarkSwap already takes a route. The agent parses amount, direction, and the word “privately”.

  2. Agent

    ERC-8004 identity on BSC testnet via the BNBAgent SDK. Optional ERC-8183 job escrow and, later, an MCP or x402 surface.

  3. Swap

    A small constant-product AMM. The honest demo calls it in the clear and names that. The real shape is atomicCall on the system pool.

  4. New L1

    EVM L1, BNB gas, 200 ms blocks, no public mempool, fees on declared gas limit. ShieldedPool at 0x…5000 is a genesis system contract.

Proof generation ships with the New L1 client CLI, newl1-shield. That CLI has no public repository, so this repo cannot honestly submit a shielded transfer on its own. Live reads of the pool are real. A swap that claims to be private without a proof is labeled simulated.

04 — Devnet

The pool is already answering.

These figures are read from https://newl1-devnet-rpc.bnbchain.org/ when the page renders. Chain id 1105 is the documented devnet. There is no New L1 faucet: devnet BNB is bridged from BSC testnet tBNB. The devnet is unstable and may reset.

Latest block13,073,376newl1/v0.1.2
Total shielded40.995 BNB12,536 byte code
Merkle root0x2c3bfa…710dcbcommitment tree
Note queue48,710 / 48,710insertion caught up · deposits open

Selectors verified by eth_call on this devnet: merkleRoot, totalShielded, pendingCount, pendingHead, depositPaused. Fees charge the declared gas limit. eth_getProof is unsupported. There is no public mempool. Network information · System contracts · fetched 2026-11-26T09:15:13.123Z

05 — Roadmap

Devnet today. Testnet is a target.

Dates below are BNB Chain’s planning targets, cited from the docs, not a DarkSwap launch promise. A July 2026 blog named an earlier window. The FAQ updated on 2 November 2026 is the source this page uses.

  1. Now

    Multi-validator devnet, chain id 1105, real block production. Public testnet and mainnet have not launched. The shielded pool is native BNB only, unaudited, and may change.

  2. Q1 2027

    Public testnet. Partner-facing planning target dated 2 November 2026 in the New L1 FAQ. Subject to testing and release readiness. Not a committed date.

  3. H2 2027

    Mainnet, the same FAQ target, with the same caveat. A New L1 trusted-setup ceremony and a third-party circuit audit are still open before mainnet.

  4. After

    DarkSwap product work waits on those networks: ERC-20 shielding when the protocol has it, a relayer, and an agent identity pointed at a stable pool. This repo takes no fee and launches no token.

General FAQ — “Is New L1 live on mainnet?”

06 — Market check

CoinMarketCap against the pool.

The agent asks CoinMarketCap for BNB/USD and compares it with the rehearsal pool. One rNOTE is treated as one dollar, so rNOTE out per BNB is an implied BNB price. The seed pool spot is about 555.00 USD per BNB. A live print outside 500 bps refuses the swap. This is a public rehearsal, not a shielded fill.

AMM implied555.00USD per BNB, seed spot
CMC BNB/USD—no request
Deviation—limit 500 bps
DecisionskippedNot requested
Built at BNB Bangkok

Submitted on HackQuest.

Deadline Friday 27 November 2026, 09:00 Asia/Bangkok. The build is testnet and devnet only. Production DarkSwap at darkswap.app is a separate app; this repo does not replace it.

Design and usability

One page, DarkSwap’s dark palette, the swap drawn before a wallet opens. Live pool numbers sit in the hero so the chain is visible without a click.

Scalability

New L1 targets 200 ms blocks and inserts notes in batches so a shielded spend does not carry the full Merkle write. The demo AMM is only a counterparty.

Innovation

atomicCall is the private swap: unshield, call a public pool, reshield. The agent takes a natural-language intent, in the line of NEAR Intents.

Open source and integration

This repository is the new code. It integrates the genesis pool at 0x…5000 and the BNBAgent SDK, and it says where the proof CLI is missing.

Roadmap and model

Planning targets are quoted from the FAQ. A later fee would sit on the public edge of a route, the way DarkSwap already discloses a quote before anyone sends.

BNB Bangkok on HackQuest · darkswap.app · @darkswapapp · Privacy forum post