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.28.0LATEST
Compact language 0.20.0
28 January 2026
Summary
- new standard library APIs for unshielded tokens
- structural ("transparent") and nominal ("opaque") type aliases
- selective module import and renaming
- meaning of
Uintranges has changed - maximum representable unsigned integer is smaller
- compiler-enforced bounds on various sizes
CurvePointis renamed toNativePoint- now uses ECMAScript modules (ESM) instead Common JS (CJS) modules