Skip to main content
Version: v0.0.0

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.

Link to related documentation

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 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