Compact compiler
Compact is Midnight's dedicated smart contract programming language, designed for building secure, efficient, and adaptable decentralized applications.
Compact compiler translates Compact smart contract code into executable bytecode and proof-generating circuits.
To download the component, click the appropriate link under Artifacts.
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