Earned a Ship Weeks badge.

Protocol Builders
SDIQT
Hash-based STARK proofs and post-quantum receipts for every QoreChain qledger rollup batch.
About
SDIQT is a proof and watchtower system for QoreChain qledger-v1 rollups. It gives every batch a hash-based STARK proof that a browser checks long after the chain prunes the batch. A qledger-v1 rollup is optimistic. QoreChain re-executes a batch only inside a challenge, then prunes the posted data and, after 432,000 blocks, the batch record. A later reader rebuilds the whole inbox, more than 2,500 batches for sealed-scouts-1 alone. The validity proofs already on QoreChain are pairing-based SNARKs, which a large quantum computer breaks. Each signer uses a post-quantum key. The operator hybrid-signs each batch with its registered ML-DSA-87 key. An SP1 prover re-executes the batch and checks each user's ML-DSA-44 signature inside the proof. A separate watchtower verifies the proof and signs a settlement receipt with its own ML-DSA-87 key. An offline user seals a withdrawal to the watchtower's ML-KEM-1024 key. On the diana testnet, all 23 current batches of sdiqt-1 are STARK-proven. Each proof commitment lands a median of 2 min 17 s after its batch. Two withdrawals were paid, 2 QOR directly and 2.5 QOR through a sealed exit. We staged a wrong root in batch 12. An independent challenger's fraud proof rejected it 10 s later, and the chain slashed the operator's 1,000 QOR bond. Across 17 qledger-v1 rollups, the watchtower has checked more than 2,800 batches and found 37 wrong roots, all rejected by QoreChain. sdiqt.xyz verifies the newest proof in the browser, and its Flip One Byte button shows the same check failing. sdiqt.xyz/rollups lists every rollup the watchtower checks. The STARK is checked off chain, and settlement stays optimistic. One command, scripts/verify.sh, re-checks 21 claims from public chain data in about 11 s. THREAT_MODEL.md covers 12 threats, and PROOF.md names a diana transaction for every claim.
How it's made
SDIQT pairs a Rust proof side with a TypeScript chain side. SP1 6.10.0 runs a qledger-v1 port in crates/qledger-core. The verifier in crates/sdiqt-verify builds as a CLI and as WebAssembly for the explorer. The operator, watchtower, archiver and React explorer are TypeScript. QoreChain's RDK carries the rollup through MsgCreateRollup, MsgSubmitBatch, MsgPostRollupData, MsgChallengeBatch and MsgExecuteWithdrawal. The watchtower re-executes each batch with the RDK's checkQledgerFraud. The PQC module holds the ML-DSA-87 keys of the operator, the watchtower and the demo user, registered with MsgRegisterPQCKeyV2. It also holds the watchtower's ML-KEM-1024 key from MsgRegisterKEMKey, and QoreSeal seals exit packets to that key. A QSTR record of about 300 bytes in the same inbox commits to each proof bundle. Its first byte makes it a no-op for qledger. Memory was the hardest problem. On a 16 GB Apple M5, a 4-entry chunk proves in 145 to 192 s and peaks near 10.8 GB. An 11-entry chunk fails during compression. We split each batch into chunks of at most 4 signed entries. Each chunk starts from the root and inbox accumulator where the previous one ended. The verifier links the chunks into one execution from the batch's parent root. A 64-entry batch becomes 16 chunks. The first one we measured proved in 72 min on a shared 16 GB Mac, 18 min past the 3,300 s proof deadline, because other apps pushed each chunk into swap. A late proof leaves settlement optimistic, and a dedicated 32 GB prover keeps such a batch inside the deadline. The guest matches the chain byte for byte. The golden RDK vectors run in CI. A real 5-entry batch from rdk-v328-e2e-mwd5v89d, a rollup run by another team, proves VALID with the roots of its chain record. A chunk proof is about 1.27 MB and verifies in 30 to 62 ms. Six red-team cases with 20 attack attempts are all refused. LIMITS.md states the FRI parameters behind SP1's 100-bit security target. Our watchtower runs with --challenge, and its own MsgChallengeBatch on diana comes next.
Timeline
Comments and questions
- No comments yet.