Tell Desk · a Midnight contract · Midnight Preprod
Tell the team before you tell the world.
A public report of a privacy leak exposes the users first. Tell Desk seals a finding on Midnight so the researcher can prove they found it, the team can answer and fix it without announcing an open bug, and anyone can check the report once it is revealed. It also holds Tell’s privacy grades, keyed by code hash, for wallets to read.
Sealed finding
Dual ledgerMidnight's public ledger, and private state on each person's device.
What is public and what stays private
Public ledger
On chain. Anyone can read it, forever.
reportsMap<Bytes<32>, Report>
Each report's id, persistentCommit({digest, project}, nonce): a hiding, binding commitment that proves priority. Also its seal time, last change and status
Readable by: Anyone; says a report exists, not what or about whom
tagBytes<32> per report
persistentHash("tell-desk:researcher", secret, id): lets the researcher prove a report is theirs, different for every report
Readable by: Anyone; unlinkable across reports
maintainersHistoricMerkleTree<10, Bytes<32>>
Credential leaves, persistentHash("tell-desk:maintainer", key, project), where key = persistentHash("tell-desk:maintainer-key", secret). Tell registers a key and a project after checking off chain that the key’s holder controls the repository; the circuit builds the leaf. Proofs disclose only a root
Readable by: Anyone; hides the key, the secret and the project
selfGradesMap<Bytes<32>, Grade>
persistentHash("tell-desk:self-grade", code hash, project) → a maintainer’s own grade. One slot per project and code, so no project can take another’s
Readable by: Anyone; a self-report names its project on purpose
openingsMap<Bytes<32>, Opening>
Digest, project and nonce of a report, only after it is fixed or its embargo passes: the reveal step of a commit-reveal
Readable by: Anyone, after the reveal
gradesMap<Bytes<32>, Grade>
Code hash → grade, rules version and scan, attested by Tell. Self-reported grades live in selfGrades, flagged and kept apart
Readable by: Anyone: wallets read it
attesterBytes<32>
persistentHash("tell-desk:attester", secret): the officer key that attests grades and registers maintainers. A hand-over only proposes the next key (nextAttester); it takes effect when that key’s holder accepts
Readable by: Anyone
Your private state
On your machine. The proof uses it; the chain never sees it.
report textoff chain
What was found. Only its SHA-256 ever reaches the chain, and only after the reveal
Readable by: Researcher and maintainer
digest, project, nonceOpening
The opening of the seal: SHA-256 of the text, SHA-256 of the canonical repository URL, 32 random bytes
Readable by: Researcher and maintainer, until the reveal
researcher secretBytes<32>
Authorship. Used inside the proof to make and check tags; never leaves the device
Readable by: The researcher
maintainer secretBytes<32>
The credential. Only its hash, the maintainer key, ever goes to Tell; the proof rebuilds the leaf from the secret. Plus the Merkle path, built from the public tree
Readable by: The maintainer
The flowSeal, acknowledge, fix, reveal; grades alongside.
How a disclosure goes
- 1
Seal
The researcher seals the report. The ledger stores a commitment, a per-report tag, the time and status pending. The text goes to the team off chain.
- 2
Acknowledge
The maintainer proves in zero knowledge that they hold the opening and a credential for that project. Status: acknowledged.
- 3
Fix
Same proof again once the fix is out. Status: fixed. The chain never said which project it was: the proof hides among every registered maintainer credential, counted live below.
- 4
Reveal
After the fix, or after the 90-day embargo, the opening is published. Anyone with the text can check it against the seal.
- 5
Grade
Tell attests the contract's grade against its code hash. A wallet computes the code hash from any address and looks it up.
IndexerRead the same way the live ballot page reads its contracts.
On Midnight Preprod, live
Every disclose()Tell scans its own contract: grade A, no suppressions.
What each circuit puts on the public ledger
| Circuit | Does | Discloses |
|---|---|---|
| seal | Records a new report: id, tag, seal time, status pending | The commitment and a per-report tag; the text, project and nonce stay private |
| acknowledge, markFixed | A maintainer proves they hold the opening and a credential for the project it commits to | Which report (already public) and a tree root every maintainer shares; not the credential, not the project |
| reveal | Publishes the opening of a fixed report, or of any report after the 90-day embargo | Digest, project and nonce: the point of the reveal |
| retract | The researcher withdraws a report before it is acknowledged | Which report; the proof shows the tag is theirs without naming them |
| registerMaintainer | Tell registers a maintainer key for a project, after checking off chain that the key’s holder controls the repository. The circuit builds the leaf | The leaf only; the key and the project are inputs, which a transaction carries only inside a hiding commitment |
| attest, selfGrade | Tell records a grade for a code hash; a registered maintainer may self-report one for their own project, in that project’s slot | The grade, rules version and scan; a self-report names its project |
| handOver, acceptHandOver | Tell proposes the next officer key; the role moves only when its holder accepts | The proposed key hash |
Run itEach party's secrets stay on their own machine.
Use the Desk client
Sealing, acknowledging and revealing run from the Desk client (desk/src/client.ts), so each party’s secrets stay in their own private state. A Lace flow in this page comes after the wallet path is solid; until then:
npm run compact -w desk # compile npm test -w desk # lifecycle, rejections, attacker tests npm run dry-run -w desk # the Preprod demo, offline TELL_NETWORK=preprod npm run deploy:desk -w chain # deploy and run the demo
Why on chainTrust the ledger, not our server.
Why a contract, not a database
Priority anyone can check
The seal time is a block time. Once revealed, the text hashes to the digest and the opening matches the seal: the finding existed, in this form, then.
No announcement of an open bug
Before a reveal the chain does not say which project a report is about, and an acknowledgement shows neither the maintainer nor the project.
Grades a wallet can read
The registry is keyed by code hash, which a wallet computes from any contract address. Tell’s attestations and maintainers’ self-reports are kept apart.
Limits, from the README: maintainer credentials cannot be revoked yet, nothing limits spam seals yet, and transaction timing is public. The demo runs every role from one house wallet. The ballots on Preprod show the other half: what Tell finds before a contract ships.
Before you deployA contract’s history is public forever.