Why Midnight
Each form is its own Midnight contract. People prove they may answer, once, with a zero-knowledge proof made in their own browser, and pay nothing.
Midnight is a blockchain built for privacy: its contracts take private inputs that are proven with zero-knowledge proofs and never published. Mitome uses it for the one thing a form tool can't do on its own server: make "this person passed the checks, and answered once" true for everyone, without the form's team or anyone on Midnight learning who they are.
What's on Midnight
Person's browser
- their secret key
- their pass
- the zero-knowledge proof
- answers, sealed
On Midnight
- the form's rules hash
- open and close times
- paused or closed
- team encryption keys
- receipts: nullifier → one-time key
- answer count
Mitome
- sealed answers and files
- the form's wording
- your workspace
- One contract per form. Publishing deploys it with the form's checks (as a hash), its open and close times, your workspace's key and your own encryption key. Teammates' keys are added afterwards, with signed actions, from Settings → Team. The form contract.
- An answer is a call to it, proven in the person's browser. The contract checks the pass from Mitome's checker inside the proof, that the form is open, and that this person hasn't answered; then it records a receipt. Proofs in the browser.
- The receipt says nothing about the person. It's a nullifier, a number made from their secret (or, on a form with checks, from a seed Mitome's checker derives from their verified identity) for this form only, and a one-time key that signs their sealed answer. One answer per person.
- Pause, close and who can read are changed by actions the workspace signs; the contract checks the signature.
One answer, start to finish


Why it matters
| Without Midnight | With it |
|---|---|
| You trust the form tool that each answer passed the checks | The contract only records answers whose proof includes a valid pass for this form's rules |
| You trust it to stop double answers | The contract refuses a second receipt with the same nullifier |
| You trust it not to edit or quietly drop answers | Your browser checks every stored answer against its on-chain receipt |
| Closing a form is a setting on someone's server | A paused or closed contract refuses answers, whatever any server does |
No wallet to answer
People answering have no wallet, no tokens and no fees. Their browser makes throwaway keys, builds and proves the call, and seals it so it can't be changed; Mitome adds the network fee (DUST) and submits it. Mitome can only pay for it: it can't change what was proven. Mitome only pays for calls that answer one of its own forms. How.
Live
Mitome runs on its own server: the app, its API, the checker and these docs, with Midnight's proof server beside them. One server publishes to both of Midnight's public test networks; the owner picks one when a form is first published (guest workspaces: Preview only).
| Network | What it is | How browsers read it | Explorer |
|---|---|---|---|
| Preview | Midnight's public network for new apps | Midnight's public indexer, directly | Midnight Explorer |
| Preprod | The last stop before mainnet | Through Mitome's read-only window, since Preprod's indexer needs a Blockfrost key | Midnight Explorer |
Forms on Preview and Preprod, each with a deploy and a real answer from a browser with no wallet. The contract links open Midnight Explorer, the explorer Mitome links to from a form's Overview, its Share tab, the publish dialog and every receipt:
| Form | Contract | Answer |
|---|---|---|
| Anonymous team feedback (email check), published from the hosted app | Preprod 541e9182…055e0 | submitChecked, block 3,547,846, fee 0.36 DUST |
| Anonymous team feedback (email check), published from the hosted app | Preview 2a9c4593…1c877 | submitChecked, block 238,621, fee 0.36 DUST |
| Product feedback (no checks) | Preview fdea73d9…3839a | submitOpen, block 235,161, fee 0.36 DUST |
| Team pulse (work-email check) | Preview d5c8596f…ffc6d | submitChecked, block 235,187, fee 0.36 DUST |
A checked answer is the whole idea in one transaction: the checker's pass for an email address, verified inside a zero-knowledge proof made in the person's browser, recorded once on Midnight's public network.
Numbers
Measured on a local Midnight network (compiler 0.36.1, midnight-js 5.0.1) on 2026-11-20 and 21; the runs are written up in packages/contract/MEASUREMENTS.md.
- proof in the browser, warm (14.8 s the first time)
- ≈12 s
- from Submit to thank-you when the proof is ready
- 0.15 s
- Mitome pays the fee, Midnight includes it
- 16–20 s
- the answer's proving key, cached after the first form
- 4 MB
Built with Midnight's own tools
| Midnight piece | Where Mitome uses it |
|---|---|
| Compact 0.36.1 (language 0.28) | The form contract: answers, owner actions, privacy checks |
jubjubSchnorrVerify in the circuit, jubjubSchnorrSign in the runtime | The checker's pass, every owner action (including sealing a draw), and updates to everyone who entered |
| Witnesses and private state | The person's secret and pass never leave their browser |
kernel.self()-scoped nullifiers (from the voting example) | One answer per person per form, unlinkable across forms |
| midnight-js 5.0.1 and the indexer | Deploys, calls, and results read from the chain (on Preprod through Mitome's read-only window) |
| zkir-v3 and the ledger's proof provider | Proving in a browser worker, no proof server |
| DUST sponsorship (from the private-party example) | Mitome pays every answer's fee |