Skip to content
QORECHAIN
Register

Encrypted Apps

Whisper

Post-quantum private messages between QoreChain wallets

Share on X

About

A wallet address can receive money from anyone, but nobody can write to it privately. Whisper fixes that on QoreChain. Your address is your inbox: anyone can write to it, only you can read it, and every message can prove who sent it. Messages are sealed in the sender's browser with ML-KEM-1024 (QoreSeal), every send is signed through the QoreX wallet inside an ML-DSA-87 authorisation window, and the ciphertext is stored on QoreChain by the WhisperMailbox contract. There is no message server, no database and no backend. Why it matters, with four real cases: 1. Funds sent to the wrong address. Wallet support says the only fix is to contact the owner, but the owner is anonymous, so people leave notes in public transaction data. 2. Talking to an exploiter. After the $197M Euler Finance hack, the negotiation that brought about $177M back happened in public transaction data, and Euler had to ask to continue in private. 3. Agreeing a private trade. QoreChain has no token pairs on mainnet yet, so people who trade one to one need a private place to agree terms. 4. Proving who wrote it. Names and avatars are easy to copy. A Whisper message can carry a signature checked against the sender's ML-DSA-87 key in QoreChain's own PQC registry. And a channel built on classical crypto can be recorded today and read after Q-Day. Whisper is built so that does not happen. What you can do: - Inbox and threads per address, replies, reactions, unread counts, light and dark theme. - Send to a 0x address, a qor1 address or a QoreX @handle (handle records are verified in the browser). - Attach QOR to a message; the contract forwards it in the same transaction. - Sign a message and share it as a proof link. Anyone can check it at /check with no wallet. Change one character and it fails. - Contact requests and blocking, enforced by the contract. - Link a QoreX main account (coin 118) so its messages reach your Whisper inbox. - Encrypted backup and restore of your inbox key, so the same inbox opens on another device. - "Message the creator" button: any dApp adds Whisper with one element and one script tag. Security, tested on the live testnet: we gave an attacker only a victim's classical secp256k1 key (the key a quantum computer could one day derive) and ran eight attacks. All eight were blocked. QoreChain refused six (transfers, sends, EVM windows and key replacement all need the hybrid ML-DSA-87 signature) and Whisper rejected the other two (a forged signed message and a forged inbox card). The victim's registered ML-DSA key was unchanged. Method and full log are in audit.md. Tests: 31 Foundry contract tests, 30 SDK tests (including fixtures signed by the real QoreX wallet), 17 web app tests, plus end-to-end runs driving the real QoreX extension. Try it without a wallet: open whisper-qorex.vercel.app/check to verify a signed message, and whisper-qorex.vercel.app/demo/ to see the creator button. With QoreX on testnet: switch QoreX to testnet (diana), add an Ethereum account (coin 60), get test QOR from the faucet, open whisper-qorex.vercel.app/app and follow the five setup steps. Limits, stated plainly: who wrote to whom, when, attached QOR and padded size are public on chain (the content is not). Testnet only and not yet independently audited.

How it's made

PLAN AND APPROACH The goal was a messenger where a QoreChain address is the inbox, with post-quantum cryptography at every step and nothing off chain: no server, no database. Before writing product code I read the QoreChain docs and the QoreX extension, then tested every assumption on the live qorechain-diana testnet in small spikes. The design follows those results. Then I built in milestones: contract, SDK, setup flow, send, inbox, integrations, landing page, audit. Every milestone was tested with the real QoreX wallet before moving on. ARCHITECTURE - WhisperMailbox (Solidity, Foundry), deployed on qorechain-diana. It stores each user's published inbox key and a signed "Whisper card", stores message envelopes (ciphertext only), keeps a per-address index of the blocks that hold your messages, takes a 0.001 QOR fee, forwards attached QOR in the same transaction, and enforces contact requests and blocking. It never decides identity from a signature: a bad card costs its sender gas and every reader ignores it. - @whisper/sdk (TypeScript): sealing and opening messages, signature checks against the chain, recipient resolution (0x, qor1, @handle), handle-record verification, a reading client and the "Message the creator" button kit. - Web app (React 19 + Vite): setup, inbox, compose, settings and the /check proof page. A static landing page loads no app JavaScript. Hosted on Vercel as static files with a strict Content-Security-Policy. HOW A MESSAGE TRAVELS 1. Setup, once: the browser generates an ML-KEM-1024 key pair and encrypts its seed with the user's password (AES-GCM, PBKDF2 600,000 rounds) into IndexedDB. QoreX signs a Whisper card binding that key to the account with its hybrid ML-DSA-87 key, and publishKey stores it on chain. 2. Send: the app reads the recipient's card and checks it against their ML-DSA-87 key in QoreChain's PQC registry (the pqcKeyStatus precompile). It then seals the text with QoreSeal (ML-KEM-1024) to the recipient and to the sender, pads it to 256-byte blocks, and asks QoreX to send. QoreX opens a hybrid-signed EVM window (MsgOpenEVMWindow) and sends the EVM transaction inside it. 3. Read: the recipient's browser reads its index from the contract, fetches only those blocks' logs, opens each envelope with its ML-KEM key, and checks any signature against the sender's registered key, never a key the message brings along. KITS AND NETWORK FEATURES USED - QoreChain SDK (@qorechain/sdk, @qorechain/evm): unified account derivation, PQC key registration with proof of possession, hybrid-signed native transactions and EVM windows for the contract deployment and the attack test. - QoreSeal (@qorechain/qoreseal): ML-KEM-1024 encryption of every message. - QoreSign (@qorechain/qoresign): verifying hybrid ML-DSA-87 signatures on Whisper cards, signed messages and proof links. - QoreX integration (@qorechain/qorex-types): connect, signArbitrary for cards and signed messages, and eth_sendTransaction for every send, which QoreX wraps in an ML-DSA-87 window. - Network features: hybrid ML-DSA-87 transactions, scoped EVM windows, the pqcKeyStatus precompile (including possessionProven), PQC key registration with proof of possession, the QoreX handle registry, and coin-118 main-account linking. WHAT WAS HARD - QoreChain's EVM lane only accepts Ethereum (coin 60) accounts, and every EVM transaction needs an ML-DSA-87 window first. Setup had to guide users to the right QoreX account and handle QoreX's two-step approval. - The public RPC caps log queries at 10,000 blocks, so a naive inbox scan does not work. I added a per-address block index to the contract so clients read only the blocks that matter. - Logs from cross-VM calls (native to EVM) are not visible to eth_getLogs, so every send goes through the EVM lane. - QoreChain's REST API sends no CORS headers, and the handle registry only allows the QoreX dashboard. Key checks moved to the on-chain pqcKeyStatus precompile. Handles go through a same-origin read-only rewrite, and every handle record is verified in the browser (owner secp256k1 signature plus the registry's Ed25519 signature) so the proxy is never trusted. - QoreX does not inject into iframes, so the creator button opens Whisper in a popup with a new-tab fallback. It also treats the host site's name as an unverified claim. - Proving the post-quantum claim. A script gives an attacker only a victim's classical key and tries eight attacks on the live testnet. All eight were blocked; the log and method are in audit.md. - Testing with a real wallet. Playwright drove Chrome with the real QoreX extension through setup, sending, signing, attached QOR, requests, the creator popup, proof links, main-account linking and backup restore, while a second test user answered from a script. Built with AI tools: see AI_USAGE.md for exactly who did what.

Timeline

WhisperEncrypted Apps

Pushed 1 commit to main

  • bc4319a Say plainly that the /demo inbox key is public on purpose · Investorquab
WhisperEncrypted Apps

Pushed 1 commit to main

  • 51edcaf Replace em dashes with plain punctuation in this session's content · Investorquab
WhisperEncrypted Apps

Pushed 1 commit to main

  • 6f77d64 README: note forward secrecy as the planned next step · Investorquab
WhisperEncrypted Apps

Pushed 8 commits to main

  • 5c31f9e Attach an ERC-20 to a message in the same transaction · Investorquab
  • 2100639 SDK: attach and read ERC-20 token attachments · Investorquab
  • ef6d342 App: attach fUSD/fETH/fBTC to a message in the composer · Investorquab
  • a1a5d67 Add the live fUSD-attachment testnet proof script · Investorquab
  • d3f4dbc Point Whisper at the redeployed token-attachment mailbox · Investorquab

and 3 more commits

WhisperEncrypted Apps

Newly verified on chain: QoreSeal and the encryption key registry

WhisperEncrypted Apps

Pushed 3 commits to main

  • 9b98dd7 Open the demo message from its exact block, not by walking the index · Investorquab
  • da47a8b Register the deployer's ML-KEM key in QoreChain's native KEM registry · Investorquab
  • c35e0be Add docs/AUDIT.md: the security model behind the audit · Investorquab
WhisperEncrypted Apps

Pushed 1 commit to main

  • 2ff6a2d Surface the no-wallet /demo from the README and landing page · Investorquab
WhisperEncrypted Apps

Pushed 3 commits to main

  • c5a8df0 Move the creator-button example to /creator, free /demo for the judge demo · Investorquab
  • 85ace69 Record the no-wallet demo run on the gated mailbox · Investorquab
  • beb36fe Add the no-wallet /demo page · Investorquab
WhisperEncrypted Apps

Pushed 2 commits to main

  • 4a32b3e Point Whisper at the redeployed PQC-gated mailbox · Investorquab
  • 4221f9a Ask a returning user once to re-publish their key after a redeploy · Investorquab
WhisperEncrypted Apps

Pushed 5 commits to main

  • e42e789 Add .gitattributes: pin *.sol to LF so forge fmt passes on Windows · Investorquab
  • 679da92 Ignore local Claude Code config files · Investorquab
  • 9b4dafd Gate publishKey on an on-chain ML-DSA-87 key (pqcKeyStatus) · Investorquab
  • 6ffd204 Require a registered ML-DSA-87 key to link an inbox · Investorquab
  • 2d4e0ac Trust a registered ML-DSA-87 key only once possession is proven · Investorquab
WhisperEncrypted Apps

Pushed 12 commits to main

  • 5aae486 README: the new test counts, and how the second audit pass tightened key binding · Investorquab
  • e3c2992 Audit: record the second pass's leads, limits and how to re-run · Investorquab
  • 8d61ea3 Audit: document F-9, header fields the signed body could override · Investorquab
  • d14abe2 Audit: document F-8, an old link proof replayed by a former inbox · Investorquab
  • 337d49b Audit: document F-7, a retired key brought back after a rotation · Investorquab

and 7 more commits

WhisperEncrypted Apps

Pushed 14 commits to main

  • e77db36 Add @whisper/sdk: sealing, verification, directory and mailbox client · Investorquab
  • 4482e25 Add WhisperMailbox contract, tests and testnet deployment · Investorquab
  • ba26a86 Add web app foundation: encrypted inbox vault and QoreX adapter · Investorquab
  • 180ffca Add compose and send with verified @handles · Investorquab
  • 7a85d32 Add Whisper app setup flow with design system · Investorquab

and 9 more commits

WhisperEncrypted Apps

Pushed 3 commits to dev

  • f8b4817 Test reading recipient keys from QoreChain's native KEM registry · Investorquab
  • d696ed6 Add a live test: a message to a key from QoreChain's native KEM registry · Investorquab
  • cca7ca4 README: map the Encrypted Apps requirements to code and testnet evidence · Investorquab
WhisperEncrypted Apps

New project.

Comments and questions

  • No comments yet.