For the complete documentation index, see llms.txt
Compact toolchain
Compact is Midnight's smart contract programming language, designed for building secure, efficient, and adaptable decentralized applications.
The Compact toolchain includes the Compact compiler, formatter, and the Compact "fixup" tool. The compiler translates Compact smart contract code into JavaScript implementations and a representation of the zero-knowledge circuits.
To install the toolchain, first install the compact devtools and then use compact update (for the latest version) or compact update 0.28.0 (for a specific version, such as 0.28.0 in this case).
Release 0.34.0LATEST
Compact language 0.26.0
25 August 2026
Artifacts
Summary
- Builds on 0.33.0: ledger version 9, cross-contract calls, events, serialization of Compact values, ZKIR version 3
- Cross-contract callees can perform shielded (Zswap) coin operations
- Language version 0.26.0 and Compact runtime 0.19.0
- Targets ledger 9, which is not yet deployed on the public networks; use
compact update 0.31for contracts deployed today