Skip to content
QORECHAIN
Register

Protocol Builders

Vigil

A payments rollup built to survive Q-Day.

Share on X

About

Vigil is a payments rollup on the QoreChain testnet (qorechain-diana), built so that no step that moves value depends on a classical key. Our rollup, vigil-pay-1 (qledger-v1, based, optimistic), has been live since 19 Nov 2026. - Users sign L2 payments with ML-DSA-44. The creator's sequencer, Keel, anchors each batch with an ML-DSA-87 signature in the same transaction. - No admin key. Anyone can post to the inbox, and any account that bonds can submit batches; only governance can pause a based rollup. On 20 Nov we stopped our main sequencer: a standby sequencer with its own bond took over, and the withdrawal it batched was paid on L1. - Two watchtowers in two regions re-execute every batch from chain data and challenge fraud. In our second fraud drill, our watchtower's challenge was upheld in the very next block and the 1,000 QOR bond was slashed. - Instant exits. A withdrawal normally waits out the one-hour challenge window. Once both watchtowers have re-executed its batch, each signs for the withdrawal with ML-DSA-87, and InstantExitVault (no owner) checks the signatures through pqcVerify and pays at once from LP liquidity: our first exit, relayed by hand, was paid 68 blocks after its batch. Since 24 Nov a relayer pays them automatically, 22 to 34 s after the withdrawal (14 exits by 1 Dec, all repaid). A relayer with its own key now does this with nobody in the loop, and after finality executes the withdrawal on L1 and repays the vault. Users risk at most the fee: if nobody fronts an exit, they are paid in full at finality. - Payslips travel inside the same inbox as QoreSeal envelopes (ML-KEM-1024 with X25519). Only the named employee, employer and auditor can open them, and data receipts prove each one sits in a settled batch. - Settlement receipts are checked three ways: - in the CLI; - in the browser: our web app reads a public node over its websocket, with no server of ours, verifies the ML-DSA-87 signature locally and requires the batch to be final; - in Solidity: SettlementReceiptVerifier checks the ML-DSA-87 anchor through the pqcKeyStatus and pqcVerify precompiles, and has recorded 61 of the creator's anchors on chain, every one through layer height 61 (1 Dec). Web app (rollup, instant exits, receipts, payslips): https://vigil-pq.up.railway.app On 24 Nov we attacked our own project with six reviewers and fixed what they found the same night (THREAT_MODEL §12). Every claim has a transaction hash in EVIDENCE.md, and THREAT_MODEL.md says what is and is not covered. Testnet only. For jurors: the Solidity PQC signature check and key status show as Declared because this site cannot verify them automatically yet (Builder FAQ). The README section "For jurors: where the post-quantum checks are" links each pqcVerify and pqcKeyStatus call to its line and to the transactions that ran it.

How it's made

Architecture - Rollup: vigil-pay-1, created with @qorechain/rdk 0.9.0. Settings: qledger-v1, based sequencing, 3,600 s challenge window, 1,000 QOR submitter bond. - Keel (packages/keel), the sequencer: - plans batches with the RDK; - replays and checks every published batch before building on it; - signs the v2 anchor message with the creator's ML-DSA-87 key and submits hybrid-signed. A second copy runs as a standby with its own bond in another region, and batches any entry left waiting 30 blocks. - Watchtower (packages/qledger-watchtower): - re-executes every batch from chain data and keeps its own inbox archive; - follows new batches over the websocket, judges each in milliseconds, and sends only a fraud proof it has checked will win; - signs an instant-exit claim for every withdrawal of a valid batch and posts the signatures into the inbox, so its key never opens an EVM window. Two keys run in two regions. - Exit relayer (packages/exit-relayer): - reads the attestations from the inbox, fronts each exit, and after finality executes the withdrawal on L1 and sweeps the exit address back to the vault; - needs no rollup state: the withdrawal list comes from the attestation, used only if it reproduces the chain's withdrawals root; - its ECDSA key reaches the EVM only through windows its ML-DSA-87 key opens, each admitting exactly the calls it is about to make (the vault only, their count, their fees) and closed right after. - Sealed lane (packages/sealed): QoreSeal hybrid envelopes in the inbox, recipient cards bound to each person's on-chain ML-DSA-87 and ML-KEM-1024 keys, and data receipts. - chain-ws (packages/chain-ws) runs the RDK in a browser: - QoreChain's public REST and RPC endpoints send no CORS headers, but the node's websocket answers every CometBFT method, including abci_query; - we read the chain's own protobuf schemas through gRPC reflection and answer the RDK's REST calls over the websocket; - 14 of 14 sample routes return what the REST API returns. - Web app (apps/web): - shows the rollup live and every instant exit, verifying the watchtower signatures in the browser and again through pqcVerify; verifies receipts and opens payslips; - is a static site with a strict Content-Security-Policy, and /version.json names the commit and every file's hash. - Contracts (Foundry): - SettlementReceiptVerifier has no owner. It rebuilds the anchor message byte for byte, reads the creator's key with pqcKeyStatus, verifies with pqcVerify, and keeps a public record. About 280k gas per anchor. - InstantExitVault has no owner. It fronts a withdrawal when both watchtowers' ML-DSA-87 signatures verify through pqcVerify, with keys from pqcKeyStatus. The payout is bound by a CREATE2 exit address inside the user's L2 signature, and fronting stops before the batch can be final, so nothing is paid twice. - PQGuardVault releases funds only with an ML-DSA-87 signature. Kits: @qorechain/rdk, @qorechain/sdk (unified eth-native accounts, hybrid signing, EVM windows), @qorechain/qoreseal. Network features: hybrid ML-DSA-87 transactions; PQC key registration with proof of possession; EVM windows, opened only by three single-purpose keys (two deployers, and the exit relayer, whose windows admit only its calls to the vault) and closed after use; the pqcVerify and pqcKeyStatus precompiles; the KEM key registry; x/rdk with x/multilayer anchors. Q-Day Drill: our registered account is also the rollup's creator. On drill day the only transaction it sent was our own proof (accepted). Nothing left the account, and no EVM window has ever been opened on it. What was hard - RDK 0.9.0's transitionRootValidator flags honest qledger-v1 batches as invalid, so we wrote our own re-execution check. Our fix is open upstream as qorechain/qorechain-rdk#1, ported to all five RDK languages (TypeScript, Go, Rust, Python and Java), each passing that language's CI in our fork. - In fraud drill 1, our challenge reached the right block but another team's watcher won. We rebuilt detection around the websocket and won drill 2 in the next block. - A batch index is not an identity: an upheld challenge removes later batches, and the index is reused. - No CORS on the public endpoints. We solved it with the websocket and the chain's own schemas, without a proxy. - BLOCKHASH is zero inside mined EVM transactions on this chain, so a contract cannot prove rollup state from block headers. Our Solidity verifier says exactly what it proves. - In the sequencer drill our standby took over too early, because posted data is numbered from 1. We found it in the logs and fixed and tested it within the hour. - Our own adversarial study found that the chain refuses inbox posts over 6,144 bytes after charging the fee, which made our exit attestations a way to drain the watchtowers. Fixed and deployed the same night. Tests: 604 TypeScript and 110 Foundry, on CI. Built with an AI coding agent; see AI_USAGE.md.

Timeline

VigilProtocol Builders

Pushed 1 commit to main

  • 11092b8 README: demo video link, figures to 1 Dec, judge commands that work as written · OoJae
VigilProtocol Builders

Pushed 1 commit to main

  • 8998409 Merge pull request #72 from Manuel-dev01/readme-final · OoJae
VigilProtocol Builders

Pushed 4 commits to main

  • e362079 README: for jurors, why two Solidity PQC features show Declared, and line links to each pqcVerify and pqcKeyStatus call · OoJae
  • 3ca29aa Evidence 181-190: anchors 26-61 recorded in Solidity; watchtower-3 top-up · OoJae
  • 9aeb913 worker smoke: use the archive's first 27 rows, as the recorded fixture continues from entry 28 · OoJae
  • c266748 Evidence 154-180: exit burst days 2-3 and the live exit canary · OoJae
VigilProtocol Builders

Pushed 1 commit to main

  • e9464e8 Merge pull request #71 from Manuel-dev01/juror-pointers · OoJae
VigilProtocol Builders

Pushed 1 commit to main

  • 1f8ac93 Merge pull request #70 from Manuel-dev01/re-attest-2-dec · OoJae
VigilProtocol Builders

A payslip only its recipients can read Why it matters: payroll on a public chain without publishing salaries. The payment stays public and checkable; the payslip that explains it is readable only by its recipients. On 26 Nov employer-1 paid 0.1 QOR on L2 (entry 26), then posted the January payslip (entry 27): a QoreSeal envelope, ML-KEM-1024 with X25519, sealed to employee, employer and auditor. Both settled in final batches 23 and 24, and the data receipt for entry 27 verifies. Try it: press "Open as the demo reader" on https://vigil-pq.up.railway.app/#/payslip (a testnet seal key we publish on purpose), or open this share link, which checks one payslip with no key or wallet: https://vigil-pq.up.railway.app/#/payslip?entry=32&dk=BmFrTK4QzfiluiAGPRBZwy5365G4B-U3de6OdB-XY7k EVIDENCE rows 121–123: https://github.com/Manuel-dev01/Vigil/blob/main/EVIDENCE.md#r121

https://explore.qore.network/tx/013F7B58409CF2FF39099F9CA301E4EEA82BC941EC8FA3DB89C8CF37B7F7B982𝕏 OoJaePayroll on a public chain without publishing salaries. Our payslips sit in vigil-pay-1's public inbox sealed with ML-KEM-1024 + X25519, settled in final batches. Open the demo reader's one yourself on our site. #BuildBeforeQDay https://t.co/nQgpZp8X86 pic.twitter.com/2fyeSTYlgV
VigilProtocol Builders

We attacked our own project Why it matters: we would rather find our weak spots ourselves, and publish them, than leave them for users to find. On 24 Nov we turned reviewers on Vigil: the contracts, the sequencers and watchtowers, the exit relayer, the web app, our claims against the chain, and operations. The write-up is public in THREAT_MODEL §12, findings F6 to F10. Among them: - an exit attestation could be retried without limit, draining the watchtowers' budget (fixed in PR #42); - the relayer could be made to spend for nothing or stall (PR #42); - a watchtower could give up on a challengeable batch after an outage (PR #43); - the web app could be misled by forged inbox posts (PR #47). All were fixed, tested and deployed the same night. THREAT_MODEL §12: https://github.com/Manuel-dev01/Vigil/blob/main/THREAT_MODEL.md#12-findings

https://explore.qore.network/tx/19460460522CC18D3A60CA9E559E7BD3B66C2B80BAB919A9114C117322A1BD42𝕏 OoJaeWe'd rather find our weak spots ourselves and publish them. We attacked Vigil's contracts, sequencers, watchtowers, relayer, web app and claims; what put money or fraud detection at risk was fixed and deployed the same night. #BuildBeforeQDay https://t.co/0J36ZaNJan pic.twitter.com/lijAliiqj3
VigilProtocol Builders

Pushed 1 commit to main

  • bfc4272 Merge pull request #69 from Manuel-dev01/evidence-pre-freeze · OoJae
VigilProtocol Builders

Out of the rollup in about 30 seconds Why it matters: on an optimistic rollup a withdrawal normally waits out the challenge window, one hour here. With Vigil the user is paid in about 30 seconds and risks nothing: if the fast path fails, the chain still pays them in full at finality. How: both watchtowers re-execute the batch and sign the exit with ML-DSA-87. Our relayer opens an EVM window that admits only its call to InstantExitVault, which checks both signatures through pqcVerify and pays. After finality the relayer executes the withdrawal on L1 and repays the vault. So far: 5 automatic exits from 24 to 27 Nov, including a 0.5 QOR salary exit, paid 23 to 33 s after each withdrawal (block timestamps; a small sample). All repaid. EVIDENCE rows 99–109 and 138 on: https://github.com/Manuel-dev01/Vigil/blob/main/EVIDENCE.md#r99

https://explore.qore.network/tx/0x6542b5f393cd4b37f349ef3b2e9edfe103d81b2f675d4ee48c0bd2f2de627c8f𝕏 OoJaeUsers don't wait out our one-hour challenge window. 5 automatic exits on vigil-pay-1 (24–27 Nov) were paid 23–33 s after the withdrawal: both watchtowers sign with ML-DSA-87, the vault checks them via pqcVerify and pays. #BuildBeforeQDay https://t.co/ShWui9MYPy pic.twitter.com/scw98Mhne1
VigilProtocol Builders

Five languages, one answer Why it matters: anyone should be able to check Vigil's rollup with the software they trust, and get the same answer we do. The QoreChain RDK implements qledger-v1, the ledger our rollup runs, in TypeScript, Go, Rust, Python and Java. Our differential fuzzer generates rollup histories and runs each through all five: 10,056 histories, 0 divergences in state roots, withdrawals roots and withdrawals. On chain the same question has a public answer: batch 0 of vigil-pay-1. Our replay reproduces its state root, anchored with the creator's ML-DSA-87 signature. Re-run it from scripts/fuzz in our repo. Our qledger-v1 batch validator for watchtowers, in all five languages, is open upstream as qorechain/qorechain-rdk#1. EVIDENCE row 16: https://github.com/Manuel-dev01/Vigil/blob/main/EVIDENCE.md#r16

https://explore.qore.network/tx/E953275101D707E1D93C69216FA8B9CEA2331EF5BBCA88A6F34DEC3F33813D35𝕏 OoJaeAnyone can re-check our rollup in the language they trust. 10,056 generated qledger-v1 histories through the RDK in TypeScript, Go, Rust, Python and Java: same state roots, withdrawals roots and withdrawals. 0 divergences. #BuildBeforeQDay https://t.co/DQsUyRa7M5 pic.twitter.com/KgVEQO4xUB
VigilProtocol Builders

Newly verified on chain: AMM pools

VigilProtocol Builders

Earned a Ship Weeks badge.

VigilProtocol Builders

We stopped our own sequencer On 20 Nov at 12:45:04 UTC we put the creator's sequencer (Keel, US West) into dry run. Then a user's 0.1 QOR withdrawal was posted from an account that isn't one of our operators. keel-b took over. It is a standby sequencer on its own key, in EU West, with its own 1,000 QOR bond. It batched the withdrawal as batch 11, and both watchtowers re-executed it and judged it valid. Batch 11 is unanchored, because anchoring needs the creator's ML-DSA-87 key, and our web app shows it that way. Once the batch was final, keel-b executed the withdrawal on L1, and the chain paid 0.1 QOR to the user's wallet. The post, the batch and the payout all came from accounts other than the creator's. The creator's sequencer came back at 12:52 and anchors again. The drill also caught a bug of ours: the standby took over after 7 blocks instead of 30, an off-by-one (posted data is numbered from 1). Fixed and tested in PR #29. EVIDENCE rows 65–72: https://github.com/Manuel-dev01/

https://explore.qore.network/tx/660F744F553596BC80E2F294BAB65A5C3285B5E683D0387283E0055E3F30E65D𝕏 OoJaeWe stopped our own sequencer. A standby on its own key, in another region, batched a user's withdrawal; both watchtowers checked it; it was paid on L1 with no help from the creator. #BuildBeforeQDay https://t.co/wv33fVLNt7
VigilProtocol Builders

Fraud drill 2: caught in the next block On 19 Nov we bonded a separate key with 1,000 QOR and had it submit a deliberately wrong batch to our rollup vigil-pay-1: batch 8, with one nibble changed in its state root (height 10,382,606). Our watchtower-2 saw the batch on the chain's websocket about 1.6 s after the block's timestamp, judged it invalid in 10 ms and broadcast its fraud proof 254 ms later. The chain upheld it in the very next block, 10,382,607: - the 1,000 QOR bond was slashed; - 500 QOR went to our watchtower; - 500 QOR was burned. Watchtower-3, the backup in another region, also judged the batch invalid. It waited its 3 s, saw the batch already rejected and sent nothing. In drill 1 the same day, another team's watcher got there before us. We moved detection onto the websocket and won the rematch. EVIDENCE rows 51–56: https://github.com/Manuel-dev01/Vigil/blob/main/EVIDENCE.md#r51

https://explore.qore.network/tx/4963FCFD2D33188456572D27C16D96DD2CB03604767DCBEEF0EDFB54E0F5B915
VigilProtocol Builders

Pushed 111 commits to main

  • 0995969 AI usage: the 27 Nov gap study, ten reviewed PRs and the on-chain run · OoJae
  • be17896 Payslip page: open the demo reader's payslip in one click (its seal key is published on purpose), plus a share link in Try it · OoJae
  • c28ae7c Evidence 127-153: a payday that ends in a 33 s salary exit, three more instant exits, all repaid; verifier record now 25 anchors · OoJae
  • 85967c5 Stack fix: test counts after peoples-choice · OoJae
  • b5d4a4d Stack fix: test counts after cbom-gate · OoJae

and 106 more commits

VigilProtocol Builders

Pushed 1 commit to main

  • 6474524 Merge pull request #68 from Manuel-dev01/evidence-27-nov · OoJae
VigilProtocol Builders

Pushed 1 commit to main

  • ae5c598 Merge pull request #67 from Manuel-dev01/peoples-choice · OoJae
VigilProtocol Builders

Newly verified on chain: QoreScan

VigilProtocol Builders

Pushed 1 commit to main

  • 7846589 Merge pull request #66 from Manuel-dev01/cbom-gate · OoJae
VigilProtocol Builders

Pushed 1 commit to main

  • 3fe0e84 Merge pull request #65 from Manuel-dev01/payslip-share · OoJae

Comments and questions

  • No comments yet.