About
A screenshot of an encrypted chat proves nothing. Only the recipient can open the original, so when someone sends a threat, a scam or a promise they later deny, the person who received it has no way to show anyone what was actually written.
Frank lets the recipient of a sealed message prove to a contract on QoreChain exactly what it said and who sent it. The sender cannot deny it. The recipient cannot change a word, cut a line out of the thread, or claim it was sent to them by someone else. Their other messages stay sealed. And once the window closes, old messages stop counting as proof, so a leak from last month proves nothing.
Who it is for: anyone who receives abuse, a scam or a broken promise in an encrypted chat and needs someone else to believe them. A platform, a moderator or a community can accept reports it can check, without ever reading anyone's other messages.
Why it matters now: messengers have offered checkable abuse reports since 2016 (the technique is called message franking), but only the company's own server can check a report, and every deployed version uses cryptography a quantum computer will break. Frank puts the check in a public contract and uses only post-quantum cryptography.
What you can do on the live site:
- Make three testnet accounts (Alice, Bob and a moderator) with one click. No wallet needed: the site pays the gas and sends 16 real transactions to register their keys.
- Send messages. Each one is sealed in the browser to the recipient's keys on chain and delivered through the FrankMailbox contract.
- Read them back from the chain. The inbox opens each one and checks the sender's commitment and signature before showing anything.
- Try to cheat: edit a word, drop the middle message, claim it was sent to someone else, move the signature to another envelope. The deployed contract refuses each one with a named error.
- File an honest report. It is mined, sealed so only the moderator can read it, and the moderator's browser checks every word.
- Watch deniability happen: register a short epoch, and once it closes its seed is published automatically. From then on anyone could have forged an old message, and the contract refuses every report from that epoch.
Tested on the live testnet: in the recorded run, 3 messages were delivered on chain, 2 reports were mined, and 10 attacks were refused by the deployed contract, each with its error recorded in docs/EVIDENCE.md.
Tests: 42 Foundry contract tests (including a fuzz test that changes every byte of the text), 12 browser tests and 14 reference tests, run by CI on every push.
Try it with no wallet: https://frank-indol-one.vercel.app/dashboard and press "Set up Alice, Bob and a moderator". The README has a five-minute walkthrough for judges.
Limits, stated plainly: who wrote to whom is visible on chain; only content is sealed. While an epoch is open, a message convinces anyone the recipient shows it to, and a public report stays on chain for good, which is why sealed reports are the default. Accounts in the console are testnet keys kept in the browser. One-to-one messages only, and not yet audited. The full threat model is in SECURITY.md.
How it's made
PLAN AND APPROACH
The goal was message franking (checkable abuse reports for end-to-end encrypted messages) with no company in the middle and nothing a quantum computer can break. I started from the published research on franking, wrote the protocol and a reference implementation with 14 tests covering every honest and dishonest case, then checked every assumption against the live qorechain-diana testnet: that pqcVerify and pqcKeyStatus are active, their gas costs, the ML-DSA-87 key and signature sizes, and how proof of possession is reported. Only then did I write the contracts, the browser client and the live end-to-end run.
ARCHITECTURE
- FrankEpochs (Solidity): registers short-lived ML-DSA-87 epoch keys. The sender's long-term key, read from QoreChain's PQC registry through pqcKeyStatus and accepted only with possessionProven, signs a binding to the epoch key, its expiry height, the chain id and the contract address. The contract checks it with pqcVerify. After expiry the owner publishes the epoch seed.
- FrankReports (Solidity): checks reports. For each message it checks the SHA-256 commitment, the ML-DSA-87 signature with pqcVerify, that the reporter is the recipient, that each message follows the previous one, and that the epoch is still open. Public reports put the text in an event; sealed reports carry a blob only the moderator can open. Every refusal is a named error.
- FrankMailbox (Solidity): delivers each message as a sealed post addressed to its recipient, and stores each account's X25519 key, the second half of the hybrid seal.
- Web app (Next.js): the landing page and a console where all sealing, signing, opening and checking happen in the browser. A serverless route funds new testnet accounts from a key held only in the server's environment.
- chain/ scripts: deploy, bytecode check against the source build, the live end-to-end run that records every transaction and refusal, and benchmarks.
HOW A MESSAGE TRAVELS
1. The sender seals the message with QoreSeal (hybrid ML-KEM-1024 + X25519). Inside the envelope sits a random franking key; outside it, a SHA-256 commitment to the message.
2. The sender's epoch key signs the commitment, the envelope hash, the recipient and the hash of the previous message, so the thread is chained.
3. The whole post is sealed again to the recipient's ML-KEM-1024 key from the KEM registry and X25519 key from FrankMailbox, and posted on chain.
4. The recipient's browser opens it, recomputes the commitment and checks both signatures before showing anything. A sender who seals one text and commits to another is caught here.
5. To report, the recipient submits one message or a run of them. The browser first runs the report as an eth_call, so a refusal costs nothing and shows the contract's own error; a report that passes is mined.
6. When the epoch closes, the console publishes the seed, and anyone could now sign in that epoch.
KITS AND NETWORK FEATURES USED
- QoreSeal 0.1.0 in hybrid mode for every message and every sealed report
- The KEM key registry (MsgRegisterKEMKey) for recipient and moderator keys, checked before sealing
- The PQC key registry with proof of possession for every account's ML-DSA-87 key
- The pqcVerify precompile (0x...0A01) for epoch bindings and every reported message
- The pqcKeyStatus precompile (0x...0A02) to read the long-term key and require possessionProven
- EVM windows opened with hybrid secp256k1 + ML-DSA-87 Native transactions
- @qorechain/sdk and @qorechain/evm 0.14.0, @noble/post-quantum, viem, Foundry
WHAT WAS HARD
- Deniability without a company. Deployed franking gets it from a key only the platform holds; Frank has no platform. The answer was expiry enforced by block height plus a published seed, so an old signature becomes forgeable by anyone. The honest cost, that a message is publicly checkable while its epoch is open, is written down in SECURITY.md rather than hidden.
- Report size. An ML-DSA-87 signature is 4,627 bytes and the epoch key 2,592, so a three-message report is about 754,000 gas. I measured reports of 1 to 8 messages against the live contract: each extra message adds about 170,000 gas, and the text length barely matters.
- Binding keys correctly. pqcKeyStatus returns a key whether or not its owner proved possession, so the contract has to require possessionProven, and the binding covers the chain id and contract address so it cannot be replayed elsewhere.
- Sealed reports. The chain cannot read a sealed report, so it checks signatures, order, recipient and window, and the moderator's browser checks the text against the commitments. The console shows both halves.
- A drill that was wrong. One live refusal drill was built incorrectly and passed for the wrong reason; rebuilding it properly is what produced the WrongEpochKey refusal now in the evidence.
Built with AI assistance for code and docs; every figure in the README and docs comes from a recorded run on the testnet.