Earned a Ship Weeks badge.

About
Exam papers leak in transit: through the printer, the courier, the exam centre and the invigilator's phone. Paper Trail is a post-quantum chain of custody for exams. The paper is encrypted the moment it is set. No single person can release it early: the key is split 2-of-3 between the examiners, and two of them must release it, per centre, at the start time. Each centre receives a uniquely fingerprinted copy (a "canary" copy), so a leaked photo or text names the centre it came from. Invigilators form a QoreSeal epoch group. Remove a compromised invigilator and the group key rotates, so they can't read anything that comes after, including the candidates' answer scripts. Answer scripts are sealed to the markers under a candidate pseudonym, so marking is blind. Every step (setting, release, membership change, script submission, marks) leaves a hash or event on QoreChain that anyone can audit.
How it's made
How it's made What I'm building Paper Trail is a post-quantum chain of custody for exams. A paper is encrypted the moment it's set, and no single person can release it early. Each exam centre gets its own fingerprinted copy, so a leaked copy reveals which centre it came from. Invigilators who are removed lose access immediately. Answer scripts are marked blind under a pseudonym. Every step leaves a record on QoreChain that anyone can audit. Planned architecture - Smart contract (EVM lane, Solidity + Foundry): PaperTrail.sol is the custody log. It stores a SHA3 commitment of each centre's copy, the start time and the three examiners. It refuses any release before the start time and emits events for releases, invigilator changes, script submissions and published marks. Before an exam can be created, it checks that every examiner has a post-quantum key registered on-chain. - Crypto core (TypeScript): - Each centre's copy is encrypted with its own key. - That key is split 2-of-3 between the examiners (Shamir), and each share is sealed to its examiner with QoreSeal. - At start time, two examiners re-seal their shares to the centre's invigilator group. The invigilators combine the shares, decrypt the copy and check it against the on-chain commitment. - Fingerprinting changes question order, option order and small wording choices, so each centre's copy is unique without changing its difficulty. A leak detector matches leaked text back to its centre. - Web app (Next.js + Postgres): dashboards for the exam board, examiners, invigilators, candidates and markers, plus a public audit page and a judge demo mode. The server stores only ciphertext and hashes and can never read a paper. Kits and network features I plan to use - QoreSeal: ML-KEM-1024 hybrid encryption to accounts, multi-recipient envelopes, the on-chain KEM key registry (`MsgRegisterKEMKey`), and group keys that change every time an invigilator or marker is added or removed. - QoreChain SDK and QoreSign: ML-DSA-87 hybrid signatures, plus PQC key registration and status. - QoreX connectors: wallet sign-in and signing. - EVM lane: the custody contract, with a post-quantum key check through the chain's PQC key-status precompile. Why post-quantum matters here A paper only needs to stay secret for a few hours. Answer scripts, candidate identities and marks are sensitive records kept for years, which makes them targets for "harvest now, decrypt later" attacks. That's where post-quantum encryption earns its place. Open challenges so far - Confirming the PQC precompile's address and interface on the EVM lane. - Finding out whether QoreX can sign the QoreSeal key registration. - Making the fingerprints survive a partial photo of a leaked paper. - Keeping the whole judge demo under three minutes.
Timeline
Earned a Ship Weeks badge.
Newly verified on chain: EVM window (incl. scoped), QoreSeal and the encryption key registry
Pushed 21 commits to main
- e3521f6 docs: juror key mode is on in production · Cage4D
- f670fdd feat(api): 90-second demo countdown, so a full run fits in 3 minutes · Cage4D
- a6d2386 docs(readme): drop the rubric table from the top · Cage4D
- 0b1af13 docs(judge-guide): the demo takes about 3½ minutes; record the 30 Nov juror run · Cage4D
- 6761cf1 fix(e2e): demo-e2e waits for the background setup · Cage4D
and 16 more commits
Pushed 13 commits to main
- 1abcdc0 feat(web): clearer global nav, themed scrollbars and a custom cursor · Cage4D
- 4714117 docs: client-side sealing to any address and registered-key decryption · Cage4D
- 8827da3 fix(web): /try waits for recipient cards before sealing; long addresses wrap · Cage4D
- 2e0308e feat(web): seal to any QoreChain address and open with your own registered key · Cage4D
- ee828c0 feat(core): seal messages to any QoreChain address, from a browser · Cage4D
and 8 more commits
Pushed 1 commit to main
- 156e22c fix(web): tablet layouts (761-1100 px) without overlaps · Cage4D
Pushed 19 commits to main
- 35c1cbe fix(web): scale the key-ring shadow with its keys (offset 5, not 8) · Cage4D
- d921e12 fix(web): key-ring sticker casts a true offset shadow · Cage4D
- 359bdd9 feat(web): one global nav, identical on every page · Cage4D
- 491d3e6 feat(web): beat 1 fills in live while the demo is set up in the background · Cage4D
- c7d11e0 feat(api): /demo/start answers in seconds; the six setup txs run in the background · Cage4D
and 14 more commits
Pushed 1 commit to main
- a1908c1 docs: frontend handoff for the web app · Cage4D
Pushed 8 commits to main
- 4e8d484 docs: live deployment URL and project-page addresses in README · Cage4D
- 85807e3 test(scripts): judge mode on the deployed API (113.8 s, limit 180 s) · Cage4D
- 366223d chore: lockfile for esbuild (api bundle) · Cage4D
- 1e2a255 fix(api): deploy as one esbuild-bundled Vercel Function · Cage4D
- 6ffa125 fix(api): Vercel entry imports @nestjs/core directly (framework detection) · Cage4D
and 3 more commits
Pushed 6 commits to main
- d2913dc feat(api): /health warns when the relayer balance is below 2 QOR · Cage4D
- ce79bed docs: add Phase 6 report · Cage4D
- b8108a1 test(scripts): headless judge-mode run on diana (155 s, limit 180 s) · Cage4D
- d2af02f feat(api): judge mode (POST /demo/start, /demo/:id/act, /demo/:id/leak) · Cage4D
- 50dd153 fix(api): compare rate-limit windows in UTC · Cage4D
and 1 more commit
Pushed 7 commits to main
- 58e62f8 docs: bug-hunt fix report, PaperTrail v2 as the current deployment, honest trust model · Cage4D
- c4add6e test(scripts): live check that a stale-epoch release is refused by PaperTrail v2 · Cage4D
- 49a7175 test(scripts): record the passing full live e2e on PaperTrail v2 · Cage4D
- 951c52c feat(contracts): redeploy PaperTrail v2 with the signed release epoch · Cage4D
- 9db64c1 fix(api): sign-once relayer, chain-confirmed membership, chunked indexer, script tickets · Cage4D
and 2 more commits
Pushed 12 commits to main
- 10b787f docs: add Phase 5 report · Cage4D
- 8c37f37 test(scripts): record the passing Phase 5 full live e2e on diana · Cage4D
- 1a413b7 fix(api): ingest relayed receipts into the indexer; trail the head by 3 blocks · Cage4D
- 25b5176 fix(api): isolate tests in <db>_test and rescan when the indexer cursor is ahead of the chain · Cage4D
- a9718cb chore(scripts): fund and register invigilators A1/A2/B1 and markers 1/2 on diana · Cage4D
and 7 more commits
Pushed 6 commits to main
- dd22b10 docs: add Phase 4 report · Cage4D
- 7a38493 test(scripts): live API exit check on diana; update env example and credits · Cage4D
- e77c36c test(api): integration tests with real ML-DSA verification and a fake EVM transport · Cage4D
- 9e86261 feat(api): add chain, indexer, relayer, SIWQ auth, exams, health modules · Cage4D
- 414b76a feat(api): add Prisma schema and init migration; drop Nest Observe telemetry · Cage4D
and 1 more commit
Pushed 31 commits to main
- 0a1adda docs: add Phase 3 report · Cage4D
- 5575bc2 feat(core): release shares sealed to the centre's current invigilators · Cage4D
- 1cd3ad2 test(core): Shamir shares identical under node and jsdom browser build · Cage4D
- 40ba822 feat(core): add exam setup, board epoch groups and sealed scripts · Cage4D
- 270e2de feat(core): add leak detector (matchLeak) · Cage4D
and 26 more commits
Pushed 31 commits to main
- 0a1adda docs: add Phase 3 report · Cage4D
- 5575bc2 feat(core): release shares sealed to the centre's current invigilators · Cage4D
- 1cd3ad2 test(core): Shamir shares identical under node and jsdom browser build · Cage4D
- 40ba822 feat(core): add exam setup, board epoch groups and sealed scripts · Cage4D
- 270e2de feat(core): add leak detector (matchLeak) · Cage4D
and 26 more commits
New project.
Comments and questions
- No comments yet.