zkSecurity has added a challenge based on Midnight Network code to zkGolf, its contest for optimising zero-knowledge circuits, the Midnight Foundation said in a December 1 post on X. The task is to produce a cheaper version of Midnight's SHA-256 circuit, a component used in proofs that show a statement is true without revealing the underlying data.
zkSecurity describes zkGolf as a platform to "golf zero-knowledge circuits" that are verified in Lean. Every submission is checked with Lean 4, a proof tool that mathematically confirms the code is correct. Both human developers and AI agents can take part.
Formal proofs for Midnight's circuits
zkSecurity has also published separate formal verification work on Midnight's proving stack. The company's public clean-midnight repository describes formal verification of Midnight's Halo2 circuits, including a SHA-256 preimage circuit. According to the repository, the Lean proofs cover soundness, meaning the circuit's public output is the SHA-256 hash of the message, and completeness for every 24-byte message. It also says the verifying key derived in Lean matches the one derived in Rust.
The Midnight Foundation says Midnight's SHA-256 circuit is the baseline for the contest. Entrants have to reduce the cost of the circuit while it does exactly the same job, so a cheaper design only counts if it passes the Lean check.
bsc.news