qorva-l2 testnet rollup
qorva-l2 is Qorva's own qledger-v1 rollup on the testnet, and it does not exist on chain yet: the operator account is not funded, so there are no transactions to show. The code path is written end to end in src/lib/testnet-sequencer.ts, and EVIDENCE.md lists every requirement as pending until it runs.
What the code does, once funded
The flow follows the official Build Before Q-Day workshop 4. Every action is a real testnet transaction signed hybrid (secp256k1 + ML-DSA-87), and the operator's first transaction registers its ML-DSA-87 key with a proof of possession.
| Action | What it sends |
|---|---|
| setup | Create the rollup (qledger-v1, based sequencing) and bond the batch submitter. |
| deposit | Deposit QOR from L1 to L2 account A or B (at least 1 QOR). |
| transfer / withdraw | Post an ML-DSA-44-signed L2 transaction to the rollup inbox. |
| batch | Rebuild the parent ledger with Replay, plan with planQledgerBatch, and submitBatch with anchor: "require" (an ML-DSA-87 creator anchor). Refuses if its own replay shows any divergence or skip. |
| claim | After the challenge window, pay a withdrawal on L1 with executeWithdrawal and a Merkle proof. |
| cheat | Fault-injection drill: submit one unanchored batch whose state root has one bit flipped. |
| challenge | A second account (QORVA_WATCHER_MNEMONIC) rebuilds the batch from chain with rebuildBatchContext, proves fraud locally with checkQledgerFraud, and only then sends challengeBatch. |
| kem-register / sealed-post / kem-open | Register ML-KEM-1024 keys, post a batch manifest sealed to them, and read it back (kem-open is read-only). |
Live x/rdk parameters on 2026-11-30: rollup stake 10,000 QOR (1% burned), submitter bond 1,000 QOR, minimum deposit 1 QOR, challenge window 3,600 s, post fee 10 uqor per byte. npm run qorva:operator computes the operator's need as stake + bond + about 54 QOR for deposits and fees, about 11,054 QOR. The watchtower needs at least 2 QOR (5 recommended).
Running it
npm run qorva:operator -- --new # testnet-only key into .env.local (mode 600, never printed); prints the address
npm run qorva:watcher -- --new # a second key for the watchtower challenge
npm run qorva:demo -- --dry-run # the plan, live params, balances, what is still unfunded; sends nothing
npm run qorva:demo # the full run, resumable (--until <step> to stop early)
npm run qorva:evidence # regenerate EVIDENCE.md from the transaction log, re-checked against the chainThe demo's steps, in order: setup, deposits, transfers, withdraw, batch, finality (waits out the one-hour challenge window), claim, receipt, kem-register, sealed-post, kem-open, cheat, challenge. Steps already done are skipped. The console view /console?view=testnet drives the same library through POST /api/testnet, which only answers on localhost (HTTP API).
Where its keys live
- The operator mnemonic (or private key) in
.env.local, git-ignored, mode 600 when the script writes it. - Two L2 ML-DSA-44 seeds and the transaction log in
.qorva/testnet-qorva-l2.json(folder mode 700, file mode 600). These L2 accounts are custodial demo accounts: the server signs for them.
Not to be confused with the local sandbox
/console?view=sequencer is a different thing: an in-memory qledger-v1 ledger (src/lib/qorva-appchain-node.ts, JSON-RPC at /api/appchain/rpc) that never posts to x/rdk.
- Its "L1 heights" are a local counter starting at 10,815,600, and all state is lost on restart.
- Its demo accounts come from fixed seeds; its ML-DSA-87 and ML-KEM keys are generated per process.
- Its one live call:
qorva_produceAnchoredBatchsends the batch's ML-DSA-87 anchor signature to precompile0x0A01byeth_calland recordsverified,rejected,unreachableornot-checked. That proves the signature is valid for the supplied key, not that the key is registered to anyone.