How it works
Every Qorva tool runs the same loop: read a rollup's inbox from QoreChain, check it against what the batch committed, re-execute it with the chain's own qledger-v1 rules, and compare the result with what was settled. The tools differ only in what they show you: a streaming table, one entry at a time, a board of every rollup, a score, a receipt, or a CI exit code.
The core loop
- 01Read the inbox
fetchWholeInboxreads every post and deposit of the rollup in two indexed transaction searches (rdk_data_posted,rdk_rollup_deposit). Posts wrapped in authzMsgExecare unwrapped, and each payload is matched to its event'sdata_hashand poster. - 02Check the rangeFor each batch, the inbox accumulator is folded forward (
qledgerAccumulate) andinboxRangeHashof the batch's range is compared with thedataHashthe batch committed on L1. So the replay runs on exactly the bytes the sequencer committed to. - 03Re-execute
executeQledgerfrom@qorechain/rdkapplies the range to aQledgerLedger. These are the same qledger-v1 rules the chain uses when it judges a fraud proof. - 04Compare and reportThe replayed root is compared with the settled
stateRoot. A batch counts as reproduced only if the roots match and its range hashed todataHash. The result becomes a table row, a board row, a badge or an exit code.
Separately from the loop, Qorva checks the post-quantum anchor of a batch: the rollup creator's ML-DSA-87 signature over the batch's state root, stored in x/multilayer. That check is a settlement receipt (Settlement receipts), and the watchtower runs it a second time inside the EVM through precompile 0x0A01 (Watchtower).
The life of one batch: setoff-1 #113
setoff-1 is another team's qledger-v1 rollup with based sequencing. Its batch #113 is small enough to follow completely. Every value below was read from the testnet on 2026-11-30, through Qorva.
1. Two withdrawals reach the inbox
Two ML-DSA-44-signed L2 withdrawals were posted to the rollup's L1 inbox at heights 11,034,833 and 11,034,850. The inbox gave them sequence numbers 2261 and 2262.
2. The sequencer settles them
Batch #113 consumed inbox range (2260, 2262] and was submitted at height 11,034,883 with state root 0x0ce83fe0…1461836b. Its status is finalized: the challenge window has closed.
3. Replay reproduces the root
Replay starts at genesis, because state is cumulative. In a CLI run on 2026-11-30, all 114 batches of setoff-1 that existed then reproduced (114/114, 27.5 s), batch #113 included: its range hashed to its committed dataHash (RANGE ok) and the replayed root equals the settled one (MATCH).
4. The debugger shows each entry
/console?view=debugger&rollup=setoff-1&batch=113 rebuilt the parent state (root 0x292b3260…f0193d34, equal to batch #112's settled root) and stepped the two entries, 25.4 s on a cold cache:
| Seq | Entry | Effect | State change |
|---|---|---|---|
| 2261 | withdrawal, 1.25 QOR to qor18j8j…hujpcwq | applied | sender 0xcb5b6a70a8…: 36,880,000 to 35,630,000 uqor, nonce 18 to 19; withdrawal index 81 |
| 2262 | withdrawal, 2.25 QOR to qor1dwu7…lk8jl6 | applied | sender 0x58d654b745…: 114,450,000 to 112,200,000 uqor, nonce 11 to 12; withdrawal index 82 |
The rollup's reserved withdrawal-counter slot moved from 81 to 83. The stepwise root, the whole-batch root and the chain's root are the same, and the withdrawals root 0x230d7ed7…4431f089 matches the one the chain stored.
5. The anchor and the receipt
The rollup creator qor1svla8sel903wmht50367j4m6w8xxuy693ys9k5 signed the batch's v2 anchor bytes with ML-DSA-87 (a 4,627-byte signature), anchored at main-chain height 11,034,883 on 2026-11-30 at 15:11:50 UTC. /receipt/setoff-1/113 builds a settlement receipt from that chain state and verifies it: all six checks passed in 2.1 s. The same receipt with the last hex digit of its state root changed failed five of the six (only the rollup-to-layer binding still holds).
6. CI keeps checking it
.github/workflows/qorva-self-check.yml replays setoff-1 and vigil-pay-1 through the local action, then builds and independently verifies this same receipt (receipt setoff-1 113, verify-receipt) on every push to main, every pull request and every six hours.
The app at a glance
| Area | What it holds |
|---|---|
| Console · Replay | Pick a qledger-v1 rollup, stream its replay batch by batch, inspect any row. |
| Console · Debugger | Rollup and batch pickers, one step per inbox entry, account diffs, no-op reasons. |
| Console · Watchtower | The fleet table of every rollup, and the dual-lane audit of a batch. |
| Console · PQC hygiene | Leaderboard of every rollup and the evidence behind each of nine checks. |
| Console · Sequencer | An in-memory sandbox ledger. Local only, never posted to x/rdk. |
| Console · Testnet rollup | The qorva-l2 operator console: setup steps, live params, drills. Not funded yet. |
| /network | Every rollup replayed in a background sweep, receipts for latest batches, badge snippets. |
| /receipt | Paste a receipt to verify it, or open /receipt/<rollup>/<batch> to build one. |
| CLI and Action | Replay and receipts in any CI (Rollup CI). |