Overview
Midnight is a data-protection blockchain connected to Cardano. It keeps two kinds of state: public state on-chain (proofs, contract code and anything deliberately public) and private state, encrypted and kept locally by each user. Zero-knowledge proofs connect the two. A user proves something about private data, such as eligibility, a sufficient balance or membership, without revealing the data itself.
The project targets regulated uses: finance with built-in KYC or screening rules, healthcare data, identity credentials and private voting. Mainnet is live, and the ledger 9 network upgrade activated on 6 November 2026. The node, ledger, Compact compiler and wallet SDK are open source under Apache 2.0.
Key features
- Compact — a TypeScript-based domain-specific language that compiles contracts to zero-knowledge circuits, so developers do not design circuits by hand.
- Public and private state — each contract defines what goes on-chain and what stays on the user’s device.
- Shielded and unshielded transactions — the same validators process both kinds of transaction.
- NIGHT and DUST — NIGHT is the unshielded native token. Holding it generates DUST, a non-transferable resource that pays transaction fees, and apps can sponsor DUST for their users.
- Cardano bridge — a native bridge moves assets between Midnight and Cardano.
How the privacy works
When a user calls a contract, the private computation runs locally. A proof server, which the docs recommend running locally on the user’s machine, generates a zk-SNARK. The proof and any intended public outputs go to the chain, and validators verify the compact proof in milliseconds. Public state updates on-chain, and private state updates in the user’s local storage. Selective disclosure is written into contract logic, which can reveal specific facts to specific parties, including optional compliance reporting.
Trade-offs and things to know
- Block production is permissioned today. Only Federated Node Operators produce mainnet blocks, and registration for Cardano stake pool operators had not opened at the time of writing.
- NIGHT itself is unshielded, so token holdings and transfers are visible. Privacy comes from shielded transactions and contract design.
- Midnight’s privacy is aimed at compliance, and apps may build in disclosure to authorities.
- Midnight no longer hosts public mainnet RPC or indexer endpoints. Mainnet apps use Blockfrost or their own nodes.
Getting started
Use the Lace wallet, which supports Midnight, to hold NIGHT and register it to generate DUST. Developers should install the Compact toolchain, run a local proof server, and follow the tutorials at docs.midnight.network.