Skip to content
QORECHAIN
Register

Quantum Pass

Sisir

A linter for QoreChain Solidity. It catches post-quantum mistakes before you deploy.

Share on X

About

The fest FAQ says jurors check post-quantum calls in Solidity by hand. Sisir does that check with one command. It reads your contracts and flags eight QoreChain mistakes, such as trusting a key without proof of possession, ignoring the result of pqcVerify, or building a cross-VM payload from unchecked text. Every finding gives the file and line, a fix, and a link to the official page it comes from. It prints text, JSON or `SARIF`, so it can fail a CI job or mark the line in a pull request. On the first draft vault from Workshop 2 it reports two errors: a key status that is read without checking registered and possessionProven, and a signed message that can be replayed. On the fixed vault it reports none. You can try it in the browser, in English or Bahasa Melayu. A small contract on the testnet, SisirLedger, keeps a public record of reports. It only accepts an account that holds an ML-DSA-87 key with proof of possession. My project account anchored the workshop report through an EVM window opened by a hybrid-signed transaction. The same call from an account with no key is refused. Since then, SisirSealV2 records a report only when pqcVerify accepts the account's ML-DSA-87 signature in the QoreSign format, and the real QoreX extension anchored a report from the live page (transaction 1B32FEC5, block 11,146,722). It complements the official AI auditor. It does not replace an audit. I only show it on the workshop examples and on my own code.

How it's made

The playground starts from the Quantum Pass scaffold. The first commit of web/ is the unchanged output of npx create-qorechain-dapp@0.14.0 web --template viem-wagmi --network testnet --package-manager npm --yes --no-install. Later commits build on it and never rewrite it. Sisir parses each file once with @solidity-parser/parser and runs eight small rules over the syntax tree. Each rule comes from a sentence in the QoreChain docs or the workshops: precompile addresses, the empty answer from a precompile, pqcKeyStatus without registered and possessionProven, an unchecked pqcVerify result, the wrong kind of call to the bridge at 0x0901, a bridge payload built from unchecked text, a signed message without chain id, contract address or counter, and value sent to a precompile. The rule text and the docs links live in one catalog file. The CLI and the browser playground share the same rule engine. Every rule has at least two fixtures that must trigger it and two that must not. The tests check every rule, the workshop vault, the three output formats against the `SARIF` 2.1.0 schema, and the exit codes. Sisir is also a GitHub Action that uploads its findings to code scanning. SisirLedger is a Foundry contract with no owner, no pause, no upgrade and no payable function. Before it records an anchor it reads pqcKeyStatus and requires both registered and possessionProven. Sisir reports no findings on it. I deployed it from the project account after registering an ML-DSA-87 key with proof of possession, and every EVM transaction went through a one-transaction EVM window opened by a hybrid-signed MsgOpenEVMWindow. The playground connects QoreX through RainbowKit and reads recent anchors from the public EVM RPC. SisirSeal, added on 2 December, is a second contract next to the ledger, which is unchanged. It records a report only when the contract checks the signature itself: it reads the sender's ML-DSA-87 key from pqcKeyStatus (registered, possessionProven, 2,592 bytes) and calls pqcVerify on a 4,627-byte signature over a message that holds the chain id, the contract address, the sender's nonce and the report hash. The nonce moves on every seal, so a signature works once. On the testnet my project account sealed the Workshop 2 report with it. A forged signature, an account with no key and a replayed signature are each refused by the contract. Sisir reports no findings on SisirSeal. What was hard: QoreX does not sign EVM transactions yet. So the playground sends the anchor as one hybrid-signed Native transaction that runs SisirLedger.anchor, the route I first tried in my other entry, Mentari. Every rule is a syntax heuristic over one file, so it misses mistakes spread over two functions. The rules page lists what each rule does not catch. I built Sisir with AI coding agents, and AI_USAGE.md says how. Credit to the Workshop 2 vault (Apache-2.0) and to the parser's authors. SisirLedger on QoreChain testnet: 0xd457db8651842898ca63784dfc006b6d85dacc50 (qor163tahpj3ss5f3jnr0pxlcqrtdkza4nzsp4qnhn). Tested with the real QoreX extension (0.4.6) on 2 December, from an account that had never been used: the page stopped before the wallet because the account had no ML-DSA-87 key. Pressing "Register my key" made QoreX register the key first (68B9034DC75DE8DF41497F7233DC5AF5BBC068E0F21C72B17E6E08D6B3C6FF2B, signed classically by design, because the key does not exist on chain until this transaction puts it there), then send 1 uqor to itself (DAD4C52A007442BC3EB1FBFB461C58D0CA3B6BB58C8BE2AA8D27628C03BDDC54). The anchor ran (AD459E994A2BA1538FE9E44077C3872C1D93CABAEFFE59E899E0A827FA6B394E), and QoreX signed the report with signArbitrary for SisirSealV2, which checked it with pqcVerify (21C47581CD1FC9938F035BEF829279A1F5F9EFC2DDAB4F350252F5049706E833). Every transaction after the key registration carries the hybrid ML-DSA-87 signature, verified on chain. Contracts: SisirLedger 0xd457db8651842898ca63784dfc006b6d85dacc50, SisirSeal 0x43315cc1ddeaca4f3064ac2dcac13cfc05a4ff69, SisirSealV2 0x84d802687550fc0e9e585bbe3f3cf4d85acd4688. The README's "Judges in 2 minutes" table links every transaction.

Timeline

SisirQuantum Pass

Pushed 1 commit to main

  • 66c6589 Fold the classical-registration wording and explorer links into the 1.2.2 notes · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • e750a55 Say the key registration is signed classically by design, and link list accounts to the explorer · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 81a834c Describe the demo video's transcription errors without quoting each run's spelling · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 4b0207a Show the real QoreX fresh-account run in the demo video · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 77132a4 Release 1.2.2: real QoreX fresh-account evidence, S003 same-function check, chain lists that survive an RPC outage · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 4be83a6 Show the host's last good copy of the chain lists when the public RPC is down · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • c02edcd S003: do not report a key read after the same function checked that account · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • d50b6d5 Record a fresh QoreX account running the whole page: key step, anchor and QoreSign seal · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 387410f Release 1.2.1: judges in 2 minutes, honest key-step wording and UTC dates · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 50b1ccf Say what is proven with the real QoreX and what only with the test wallet, and show dates in UTC · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • a59e270 Release 1.2.0: SisirSealV2, the key step for a fresh QoreX account, the threat model and a new demo video · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 1304004 Record what the transcription of the new demo video gets wrong · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 60e9317 Replace the demo video with a 90-second cut that shows the real QoreX extension · aimanmalib
SisirQuantum Pass

First on-chain deployment detected on testnet.

SisirQuantum Pass

Pushed 1 commit to main

  • 06aa1db Measure the AI workflow in AI_USAGE: sessions, reviews, gate runs and the three rejections · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 9e31e6b Show the Native route in the ledger band when QoreX is not installed · aimanmalib
SisirQuantum Pass

Pushed 3 commits to main

  • 6e0732a Register the ML-DSA-87 key before the first anchor from a fresh QoreX account · aimanmalib
  • 12c7f93 Add a threat model for the Q-Day attacker who holds only the secp256k1 key · aimanmalib
  • 57f7eea Put a judges' checklist with full, linked transaction hashes at the top of the README · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 5178f90 Judge key-status and verify wrappers at their callers (S003, S007) · aimanmalib
SisirQuantum Pass

Pushed 1 commit to main

  • 1cd6761 Install the playground's packages before the testnet step in the gate · aimanmalib
SisirQuantum Pass

Pushed 2 commits to main

  • 7e6255b Add SisirSealV2: sign and seal a report with QoreX in the QoreSign message format · aimanmalib
  • 54fe3e4 Count the tests the gate ran with SisirSealV2 in the README · aimanmalib

Comments and questions

  • No comments yet.