zkSecurity Challenges Developers to Cut the Cost of Midnight’s SHA-256 Circuit

The zkGolf competition uses Midnight’s implementation as its benchmark. Every ranked submission must prove in Lean 4 that it meets the same specification.

By SongMarketCap

Updated:

Midnight News - zkSecurity Challenges Developers to Cut the Cost of Midnight’s SHA-256 Circuit

zkSecurity has opened a zkGolf challenge to build a more efficient version of the SHA-256 circuit used as Midnight’s reference. The Midnight Foundation invited developers and AI agents to take part. Each submission must preserve the circuit’s behavior while reducing its cost under the competition’s scoring rules.

What the Midnight Circuit Proves

SHA-256 turns a message into a value of fixed length known as a hash. In the zkGolf challenge, the circuit checks that a private message produces a specified public hash. A zero-knowledge proof can establish that this relationship holds while keeping the message itself private.

The circuit describes the computation as a set of mathematical constraints. Those constraints enforce the rules that connect the private input to the public result. Competitors can change how those rules are expressed and arranged. The required SHA-256 computation stays the same, and Midnight’s reference circuit gives every submission a common point of comparison.

zkGolf’s First PLONK Challenge

zkSecurity describes the task as the first PLONK challenge on zkGolf. PLONK gives circuit designers several ways to arrange the same computation. A design might use fewer rows by packing more work into each row, while another might use simpler constraints spread across more rows.

The competition’s scoring model gives those designs a common measure of cost. zkGolf ranks submissions using that score. Measuring the time it takes to generate a proof in a particular Midnight application would require a separate benchmark.

[NEWSBREAK]

Lean 4 Checks Each Entry Before It Is Ranked

A submission includes a formal proof that the proposed circuit meets the challenge specification. Lean 4 checks the proof against the statements defined by the organizers. The platform ranks an entry only after it passes that check. The same verification requirement applies whether a participant writes the circuit by hand or uses an AI agent.

zkGolf provides instructions and an API that agents can use to read the challenge and submit solutions. Once a submission is verified, zkGolf makes its source files available for download so other participants can inspect how the circuit was built.