Midnight

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
What lives where. Only the middle row is on chain, and none of it says who answered or what they wrote.
  • 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

Sequence of one answer: checks and a pass from the checker, a proof made in the person's browser, the sealed answer sent to Mitome, the DUST fee added and the receipt recorded on Midnight, then the owner's browser verifying it
The proof and the sealing happen in the person's browser. Only the check itself (here, the email address) goes to Mitome's checker.

Why it matters

Without MidnightWith it
You trust the form tool that each answer passed the checksThe contract only records answers whose proof includes a valid pass for this form's rules
You trust it to stop double answersThe contract refuses a second receipt with the same nullifier
You trust it not to edit or quietly drop answersYour browser checks every stored answer against its on-chain receipt
Closing a form is a setting on someone's serverA 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).

NetworkWhat it isHow browsers read itExplorer
PreviewMidnight's public network for new appsMidnight's public indexer, directlyMidnight Explorer
PreprodThe last stop before mainnetThrough Mitome's read-only window, since Preprod's indexer needs a Blockfrost keyMidnight 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:

FormContractAnswer
Anonymous team feedback (email check), published from the hosted appPreprod 541e9182…055e0submitChecked, block 3,547,846, fee 0.36 DUST
Anonymous team feedback (email check), published from the hosted appPreview 2a9c4593…1c877submitChecked, block 238,621, fee 0.36 DUST
Product feedback (no checks)Preview fdea73d9…3839asubmitOpen, block 235,161, fee 0.36 DUST
Team pulse (work-email check)Preview d5c8596f…ffc6dsubmitChecked, 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 pieceWhere 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 runtimeThe checker's pass, every owner action (including sealing a draw), and updates to everyone who entered
Witnesses and private stateThe 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 indexerDeploys, calls, and results read from the chain (on Preprod through Mitome's read-only window)
zkir-v3 and the ledger's proof providerProving in a browser worker, no proof server
DUST sponsorship (from the private-party example)Mitome pays every answer's fee

On this page