Create a Midnight Network app
A Midnight Network (MN) app is a privacy-preserving DApp that uses zero-knowledge proofs (ZKPs) to maintain data confidentiality. The core value proposition is selective disclosure, which allows users to prove specific information while keeping other sensitive data private.
Quick start with create-mn-appβ
The create-mn-app CLI tool scaffolds Midnight Network applications with zero configuration. The tool provides a preconfigured TypeScript setup, hot reloading, and wallet generation, with automatic dependency management for Node.js, Docker, and the Compact compiler. To install, run the following commands:
npx create-mn-app my-app
cd my-app
npm run setup
Available templates include Hello World (message storage) and Counter DApp (increment/decrement with zkProofs). Additional templates for Bulletin Board, DEX, and Midnight Kitties are in development.
For manual setup, follow these steps:
Prerequisitesβ
The following software and tools are required:
- Node.js: Version 20.x or higher. Install Node.js using NVM.
nvm install 20 - Command-line knowledge: Basic familiarity with terminal operations.
- Code editor: An IDE such as Visual Studio Code.