zkSecurity’s zkGolf Adds Midnight Network SHA-256 Circuit Optimization Challenge Verified in Lean 4

zkSecurity has added a problem based mostly on Midnight Community code to zkGolf, its contest for optimising zero-knowledge circuits, the Midnight Basis stated in a December 1 put up on X. The duty is to provide a less expensive model of Midnight’s SHA-256 circuit, a part utilized in proofs that present an announcement is true with out revealing the underlying information.
zkSecurity describes zkGolf as a platform to “golf zero-knowledge circuits” which can be verified in Lean. Each submission is checked with Lean 4, a proof device that mathematically confirms the code is appropriate. Each human builders and AI brokers can participate.
Formal proofs for Midnight’s circuits
zkSecurity has additionally printed separate formal verification work on Midnight’s proving stack. The corporate’s public clean-midnight repository describes formal verification of Midnight’s Halo2 circuits, together with a SHA-256 preimage circuit. In response to the repository, the Lean proofs cowl soundness, which means the circuit’s public output is the SHA-256 hash of the message, and completeness for each 24-byte message. It additionally says the verifying key derived in Lean matches the one derived in Rust.
The Midnight Basis says Midnight’s SHA-256 circuit is the baseline for the competition. Entrants have to cut back the price of the circuit whereas it does precisely the identical job, so a less expensive design solely counts if it passes the Lean verify.





