Skip to content
QORECHAIN
Register

Quantum Pass

Forrel

Forrel is a post-quantum release and firmware signing log on QoreChain.

Share on X

About

Forrel is a post-quantum release and firmware signing log on QoreChain. Maintainers sign the SHA3-256 hash of each release with an ML-DSA-87 key, and the ForrelRegistry contract on Diana accepts the record only if QoreChain's pqcVerify precompile confirms the signature. Anyone can drop a downloaded file into the web app, or run `forrel verify` in CI, and see within seconds whether it is a genuine, revoked or unknown release, with no wallet. Keys can be rotated (by the current key or an offline recovery key) and bad releases revoked, and every one of those actions is itself ML-DSA-87 signed and checked on-chain. Devices ship today and trust updates for ten years; Forrel's goal is releases that still verify after Q-Day.

How it's made

Stack: a Next.js 16 web app (apps/web), a TypeScript core shared by the browser and a CLI (packages/core, packages/cli), and a Foundry/Solidity registry (contracts/), in one npm workspace. Starter kit: built from create-qorechain-dapp 0.14.0. The foundry template lives in contracts/ (foundry.toml, .env.example and the EVM window helper scripts/window.ts). The viem-wagmi template's QoreX connector, chain definitions, EVM window check and REST proxy were moved from its Vite app into Next.js (apps/web/lib/wallet, next.config.ts). Details: README "Starter kit" and docs/scaffold-notes.md. Post-quantum: each release, key rotation and revocation is an ML-DSA-87 signature (FIPS 204, pure, empty context) over a domain-separated, abi.encodePacked message that binds chainId, registry, projectId and a sequence number or key epoch. ForrelRegistry rebuilds the message on-chain and calls pqcVerify (0x…0a01); registering a project requires pqcKeyStatus (0x…0a02) to show a registered, possession-proven ML-DSA-87 key. Signatures from @noble/post-quantum are byte-identical to @qorechain/qoresign, and a gate script checks both against the real pqcVerify on Diana. Files are hashed with SHA3-256 locally (a Web Worker in the browser); public keys and signatures live in contract state via SSTORE2, so verification does not depend on pruned logs. The EVM transaction signer only pays gas: it cannot publish, rotate or revoke without the ML-DSA-87 key. QoreX: the web app connects QoreX through @qorechain/qorex-rainbowkit, and every write is approved in QoreX under an EVM authorisation window. Hybrid-signed transaction through QoreX: D80E7281711B9E9D992735CB95767C8EC623A65E59AB3657B1228759C5511191 (MsgOpenEVMWindow with a PQCHybridSignature, opened in QoreX). Five such windows were opened in QoreX; all are listed in the README. On Diana: ForrelRegistry 0xd438B0A22F2404C8f10c1dbBBA6cA56B391E997d. Demo project forrel-demo: registered, v1.0.0 published and revoked, key rotated to epoch 2, v1.0.1 published with the new key, and a forged-signature publish rejected on-chain with SignatureInvalid. Every transaction hash is in the README; the account's transactions: https://explore.qore.network/address/qor1uamlus9thq83fhk7el7d8kxyqclhvcrnwp5s8v (switch the explorer to Testnet). Tests: Foundry tests with mock precompiles (100% line coverage of the registry, including fuzzing and tampered-field cases), shared test vectors between TypeScript and Solidity, the live pqcVerify gate, and a manual end-to-end run on Diana, the threat model and known limits are in docs/THREAT_MODEL.md. AI: built with Claude Code and a second AI coding agent; illustrations generated with Gemini 4 Hydrogen. See AI_USAGE.md.

Timeline

ForrelQuantum Pass

Pushed 60 commits to main

  • b0ae79e Merge pull request #25 from Dominion116/docs/prd-cli-verify · Dominion116
  • b053e25 docs: tick the CLI verify exit codes item in the PRD · Dominion116
  • 011e216 Merge pull request #24 from Dominion116/docs/prd-submitted · Dominion116
  • 3176f24 docs: tick the demo video and form submission in the PRD · Dominion116
  • 959c886 Merge pull request #23 from Dominion116/docs/readme-badges · Dominion116

and 55 more commits

ForrelQuantum Pass

New project.

Comments and questions

  • No comments yet.