DEV Community

Marycynthia Ihemebiwo
Marycynthia Ihemebiwo

Posted on

Your First Midnight Smart Contract (No ZK Background Needed)

You don’t need to be a cryptography expert to build on Midnight. Smart contracts are written using Compact, a TypeScript-based language designed for privacy logic.
This tutorial walks through:
Writing a simple rule-based smart contract
Defining what data stays private
Defining what can be proven publicly
Deploying and testing the contract on the devnet
It’s focused on logic, not math.

Top comments (0)