Skip to main content
Version: Canary 🚧

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.

Link to related documentation

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 Uint ranges has changed
  • maximum representable unsigned integer is smaller
  • compiler-enforced bounds on various sizes
  • CurvePoint is renamed to NativePoint
  • now uses ECMAScript modules (ESM) instead Common JS (CJS) modules