About
In Nigerian markets, a screenshot of a "transfer successful" screen or a receipt proves nothing: editing apps can produce one with any amount, name and date. Sellers lose goods and buyers can't prove what they paid for.
Sealed lets a trader seal every sale on QoreChain. They tap products into a cart (or type the sale in plain words, like "2 bags rice 45k each, 1 groundnut oil 8500"), approve once in QoreX, and get a receipt with a QR code to send on WhatsApp, print or show on screen. The seal is a hybrid ECDSA + ML-DSA-87 transaction, so it stays trustworthy after Q-Day.
The buyer needs no app and no wallet: any phone camera opens the receipt and checks it against the chain. Green means it is exactly what the seller issued. If anyone changed it, the page turns red and shows both amounts side by side ("Shown on this copy ₦994,800 · Seller sealed ₦99,800").
We are honest about scope: a sealed receipt proves the seller issued this exact receipt and nobody changed it. It is not a bank alert, and the app says so on every verified screen.
How it's made
Architecture: a TypeScript monorepo with three zero-dependency packages and two apps.
• packages/core: receipt model, canonical JSON → SHA-256 fingerprint, the on-chain memo format ("SEALED1 <fingerprint> <total>"), the share-link codec and the verifier.
• packages/chain: the QoreX native-lane integration (window.qorex.native: enable, getKey, signAndBroadcast), a hand-written protobuf encoder for MsgSend, and a Cosmos REST reader that pulls the transaction back and reads the pqc_hybrid_verify event.
• packages/qr: our own QR generator, tested by decoding every version 1–30 with OpenCV.
• apps/web: React app for the seller (checkout, sealing, history) and the buyer (verify page, scanner). It has dark mode and was designed mobile-first for budget Android phones.
• apps/server: Node server with a read-only QoreChain REST proxy, a buyer-check counter, and an optional Claude-backed sale parser.
How a seal works: each receipt is a tiny transfer to yourself (1000 uqor) on qorechain-diana, carrying the fingerprint and total in its memo, signed by QoreX with both secp256k1 and ML-DSA-87. The QR holds a link: the receipt sits in the URL fragment (never sent to any server) plus the transaction hash. The verify page recomputes the fingerprint and checks four things: the transaction exists, the memo matches, the signer is the seller, and the chain reported the hybrid signature as verified.
What was hard:
1. An ML-DSA-87 signature is 4,627 bytes, which is bigger than any QR code can hold. So the chain keeps the proof and the QR keeps a short link.
2. Showing a buyer what was changed without putting the sale on chain. We put only the fingerprint and the total in the memo, so an edited copy is caught and the real amount is shown, while items and names stay private.
3. Making verification work with no wallet at all, on slow networks.
Testing: 28 unit tests, plus a Playwright end-to-end run against a mock QoreX wallet and mock chain node. It covers seal → scan → verified, edited amount → caught, unknown transaction, wallet rejection, demo mode across two browsers, and dark mode.