Getting started

Welcome to Qorva

Qorva re-executes any QoreChain rollup from its L1 inbox and tells you, batch by batch, whether the state root the sequencer settled is the one the inbox actually produces. It is rollup developer tooling for the QoreChain testnet qorechain-diana (EVM chain id 9800), entered in the Build Before Q-Day hackathon in the Protocol Builders category.

An optimistic rollup is only as safe as the people who re-execute it. QoreChain accepts a sequencer's state root and opens a challenge window (3,600 s on testnet, read from the x/rdk params on 2026-11-30). If nobody re-executes the batch inside that window, a wrong root becomes final, together with every withdrawal it authorises. Qorva turns re-execution into one page, one command or one CI step, and checks the post-quantum parts (ML-DSA-87 anchors and settlement receipts) against the chain at the same time.

  • Replay - re-execute every settled batch of a qledger-v1 rollup and compare each state root.
  • Receipts - build a post-quantum settlement receipt from chain state and verify it, with a tampered copy that must fail.
  • Rollup CI - fail a build the moment a settled root stops reproducing.
Inbox routes on a drafting grid meet at a green anchored state root, beside a lattice cube and a settlement receipt
Fig. 00 · inbox entries route into a batch; its state root is anchored with ML-DSA-87 and proven by a receipt

Where everything lives

Every route and deep link below exists in this app. The console views read their state from the query string.

Landing page
Console, Replay view
/console?view=replay; add &rollup=veil-pay-1 to start a replay on load
Watchtower
/console?view=watchtower; add &rollup=<id> to audit that rollup's latest batch on load
PQC hygiene score
/console?view=hygiene; add &rollup=<id> to open one rollup
qorva-l2 testnet rollup
Local sandbox sequencer
Network health board
Verify a pasted receipt
Receipt for one batch
README badges
/badge/setoff-1.svg, /badge/<id>.svg?type=receipt, /badge/setoff-1.json
HTTP API
/api/replay, /api/debug, /api/sentinel, /api/health-board, /api/pqc-hygiene, /api/receipt, /api/pulse, /api/testnet, /api/appchain/rpc. See HTTP API.
Chain liveness
CLI and GitHub Action
packages/qorva-cli (qorva replay | receipt | verify-receipt) and packages/qorva-cli/action/action.yml. Not published to npm yet. See Rollup CI.
Repository
github.com/mrnetwork0001/Qorva, private for now: access on request
Hackathon project page
Testnet endpoints Qorva reads
REST https://api-testnet.qore.host, CometBFT RPC https://rpc-testnet.qore.host, EVM JSON-RPC https://evm-testnet.qore.host
Explorer links
https://dashboard.qorechain.io/explorer/tx/<hash>
Judge documents (repository root)
README.md, LIMITS.md, THREAT_MODEL.md, EVIDENCE.md, AI_USAGE.md, docs/ROLLUP_CI.md, and two upstream SDK bug drafts in docs/upstream/
Other routes in the tree
/legacy (an earlier UI, not reviewed for these docs) and /heroes/1 to /heroes/4 (landing hero concepts)

The stack, in one paragraph

A Next.js 15 App Router app (15.5.29 installed) on React 19.3 and TypeScript 5.8.2, styled with Tailwind CSS 3.4. All chain logic goes through QoreChain's published SDKs: @qorechain/rdk 0.9.0 for the rollup client, the qledger-v1 executor (executeQledger), inbox hashing, settlement receipts and fraud proofs; @qorechain/evm 0.14.0 for the precompile ABIs; @qorechain/qoreseal 0.1.0 for ML-KEM-1024 sealing; @qorechain/qoresign 0.2.0 and @qorechain/sdk 0.14.0; and viem 2.58.7 for eth_call. The verification code lives in src/lib/ and runs on the server; API routes in src/app/api/ stream or return its results. Reads go to the public testnet endpoints above. Caches live in memory and in the git-ignored .qorva/ folder (health.json, pqc-hygiene.json). Keys exist only for the qorva-l2 testnet sequencer, in a git-ignored .env.local (on 2026-11-30 GET /api/testnet reported configured: false). The CLI in packages/qorva-cli is bundled with esbuild from the same src/lib/replay-engine.ts, with @qorechain/rdk as its only runtime dependency. Tests run on Vitest 3.2 against the live testnet.

Reading order

  1. How it works: follows one real batch (setoff-1 #113) from inbox to receipt.
  2. Replay: the core: re-execute a rollup and compare every state root.
  3. Batch debugger: see exactly why an inbox entry was a no-op.
  4. Settlement receipts: the post-quantum part: an ML-DSA-87 anchor checked against the chain.
  5. Rollup CI: how a rollup team would put this in CI.
  6. Limits & FAQ: what is real, what is local, and what has not run yet.