Skip to content
QORECHAIN
Register

Encrypted Apps

Courier

Encrypted invoices and documents that get paid, with recipient keys bound on chain by ML-DSA-87.

Share on X

About

When two QoreChain accounts exchange an invoice or a document, a relay has to carry it, and an untrusted relay can swap in its own key or store ciphertext to decrypt later. Courier delivers encrypted invoices and documents between QoreChain addresses and ties each one to its payment and delivery receipt on chain. Each recipient binds a prekey bundle to their address in `PrekeyDirectory` with an ML-DSA-87 signature; before encrypting, the sender checks the bundle against the chain, so a swapped key is refused before a byte is sealed. Files are sealed on the device with ML-KEM-1024 plus X25519 and a double ratchet. `MemoPay` pays the invoice in fUSD and stores only the ciphertext hash; `DeliveryReceipts` checks the recipient's ML-DSA-87 receipt on chain. Try it with no wallet: https://courier-fawn-psi.vercel.app/app/try. Switch the relay to Lying and watch the refusal (public demo keys that hold nothing).

How it's made

Contracts. PrekeyDirectory stores one ML-DSA-87-bound bundle hash per owner (7-day maximum expiry); DeliveryReceipts records one signed receipt per ciphertext hash; MemoPay moves fUSD and stores keccak256(ciphertext) only (132-byte calldata, never holds tokens). Post-quantum. The handshake is four X25519 terms plus ML-KEM-1024 encapsulation to a one-time prekey, never to the long-term identity key, then a double ratchet with an ML-KEM step. publish and record call pqcVerify (0x…0a01) and check key status with pqcKeyStatus (0x…0a02) through PqAuth from haven-pq-kit. The client also checks the bundle's ML-KEM key against the chain's KEM registry (IDENTITY_KEM) and the X25519 key against a card signed by the registered ML-DSA-87 key (CARD). QoreChain pieces. QoreSeal (cards, KEM registry), QoreSign (receipts, SIWQ inbox sign-in), deploys and publishes in EVM windows opened by hybrid ML-DSA-87 transactions, keys registered with proof of possession, MCP in npm run evidence, QoreScan in npm run cbom:check. Web. Next.js: /app/try runs the real protocol in the browser and reads the registered ML-KEM key through a read-only same-origin proxy; /app/receipt verifies recorded signatures live. Testing. 66 TypeScript and 40 Foundry tests; npm run evidence 35 passed, 0 failed. Limits. No hosted relay (it can still drop traffic), bundles must be renewed every 7 days, no external audit. README: "Judge it in 5 minutes", "Where the PQC checks are (for jurors)", "Credits". Contracts (qorechain-diana): PrekeyDirectory 0x3d9a5821d0a24220a5f244a63a4a641d2acd9c2d · MemoPay 0x0fef978df64a5516e9f52ba1f4b2bbea6b7bd98c · DeliveryReceipts 0x06b52afc4a151b0efa260e2adcdf2d477632cb56. Catch a lying relay: https://courier-fawn-psi.vercel.app/app/try · every key transaction with explorer links: https://github.com/datharnu/courier#proof-table

Timeline

CourierEncrypted Apps

Pushed 1 commit to main

  • 07a5570 Shorter README with a 2-minute check; evidence moved to docs/EVIDENCE.md · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • dafb3fd Centred README header with logo and Built on QoreChain badge; record the 1 Dec renewal; describe renewals as ongoing instead of hard-coding expiry dates. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • f8a0eaf Record the first real browser guest run from /app/try/live. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 05d5490 Link the updated demo video with a live /app/try recording. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 4648435 Add /app/try/live: a guest writes real Courier transactions from the browser. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 196a0d9 Add a proof table with full hashes and explorer links, and stop hard-coding bundle expiry dates. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 0a3cdfe Expand the project page and record the 28 November demo-vendor renewal · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 064c945 Say what each browser demo can't show · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 7d63207 Record the 25 November bundle renewals · datharnu
CourierEncrypted Apps

First on-chain deployment detected on testnet.

CourierEncrypted Apps

Pushed 1 commit to main

  • c709032 Map the README to the official judging rubric and add a Credits section. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 200da64 Run the demo scripts on Node 22, fix judge-step friction, and list the PQC call sites. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • bc344fb Check the vendor's registered ML-KEM key on chain in /app/try. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • bdf2b0a Give the demo video cover a centred play button · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • b0b71f4 Use the project screenshot as the demo video cover · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • eb59f5c Add the demo video to the README and project page · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 5c2c347 Update evidence count to 35 and note the recorded video · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • ba7154c Read the /app/try modules through their CommonJS default in the root test. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • 1832675 Add /app/try: catch a lying relay in the browser, and lead with invoices that get paid. · datharnu
CourierEncrypted Apps

Pushed 1 commit to main

  • ca98ee7 Persist the relay, renew bundles before expiry, and correct the Signal claim. · datharnu

Comments and questions

  • No comments yet.