Midnight
Build privacy-preserving dApps with zero-knowledge proofs on the Midnight Network
Midnight is a zero-knowledge privacy network that enables you to build confidential smart contracts and transactions on Cardano. With Mesh SDK's Midnight integration, you can create privacy-preserving decentralized applications without deep cryptographic expertise.
Why Midnight?
| Feature | Benefit |
|---|---|
| Zero-knowledge proofs | Verify data without revealing it |
| Confidential smart contracts | Execute logic while keeping inputs private |
| Cardano integration | Leverage Cardano's security and ecosystem |
| TypeScript SDK | Full type safety and modern developer experience |
When to use Midnight
Use Midnight when you need:
- Financial privacy: Hide transaction amounts while proving validity
- Identity verification: Prove attributes (age, citizenship) without revealing personal data
- Confidential voting: Enable verifiable elections with secret ballots
- Private DeFi: Build lending, staking, or trading with hidden positions
Quick start
Install the Midnight setup package:
npm install @meshsdk/midnight-setupConnect to a wallet and deploy a contract:
import { MidnightSetupAPI } from '@meshsdk/midnight-setup';
import { setupProviders } from './providers';
const providers = await setupProviders();
const api = await MidnightSetupAPI.deployContract(providers, contractInstance);
console.log('Contract deployed at:', api.deployedContractAddress);Explore the documentation
Midnight Setup
Complete development setup for building Midnight Network dApps
Midnight Contracts Wizard
CLI tool to scaffold Midnight smart contract projects with pre-built templates
Related resources
- Midnight Network Documentation - Official Midnight docs
- Mesh SDK Documentation - Full SDK reference
- Lace Beta Wallet - Browser wallet for Midnight
- GitHub Repository - Source code and examples