compact
Compact Smart Contracts
Compact (being renamed to Minokawa) is Midnight's domain-specific language for privacy-preserving smart contracts. Contracts compile to ZK-SNARKs, enabling selective disclosure of data.
Note: As of compiler v0.26.0, the language is being renamed from "Compact" to "Minokawa" under the Linux Foundation Decentralized Trust. The toolchain commands still use
compact.
Quick Start
pragma language_version 0.18;
export ledger message: Opaque<"string">;
export circuit setMessage(input: Opaque<"string">): [] {
message = disclose(input); // Makes private input public
}
More from fractionestate/midnight-dev-skills
tailwindcss
>-
24nextjs
Next.js 16.1+ App Router patterns including Server Components, Client Components, Server Actions, Route Handlers, Turbopack, MCP integration, and modern React patterns. Use when building pages, layouts, data fetching, or API routes. Triggers on Next.js, App Router, RSC, or Server Actions questions.
5turborepo
>-
5playwright
>-
5prisma
>-
4security
Security auditing patterns for Midnight Network smart contracts and dApps. Use when reviewing code for vulnerabilities, privacy leaks, cryptographic weaknesses, or performing security audits.
4