DEV Community

Wang Wei
Wang Wei

Posted on

Getting Started with Midnight: Your First Smart Contract

Steps on creating a simple smart contract on Midnight using Compact.

  1. Set up your dev environment. Install the Midnight SDK.

  2. Learn the basics of Compact, Midnight’s TypeScript-inspired language.

  3. Write your first contract: e.g., a private voting contract.

  4. Deploy it on the devnet using tDUST tokens.

  5. Test it: verify transactions without exposing user data.

Focus on how proofs are generated automatically, you don’t need to handle cryptography yourself.

Top comments (0)