Skip to main content
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.

Link to related documentation

To install the toolchain, first install the Compact devtools. Then install the toolchain for the network you deploy to, as listed in the compatibility matrix:

  • Mainnet, Preview, and Preprod run ledger 9 and use toolchain 0.36.1. Mainnet moved to ledger 9 in the ledger 9 network upgrade, Preview relaunched on ledger 9 on 7 November 2026, and Preprod moved to ledger 9 on 9 November 2026. Run compact update 0.36 to get it.

A bare compact update installs the newest release, which can target a ledger version that your network does not run yet.


Release 0.36.1LATEST

Compact language 0.28.0

11 November 2026

Summary

Patch release: fixes key generation for circuits using JubjubScalar or JubjubPoint, and an internal compiler error with deserialized Boolean values