zkGolf
Write the cheapest zero-knowledge circuit and prove it correct in Lean 4
zkGolf grew out of an experiment. Giorgio Dell'Immagine and Mathias Hall-Andersen of zkSecurity had an LLM write a SHA-256 compression circuit in Clean, their Lean circuit DSL, then keep cutting its constraint count while re-proving it after every change. They report the result beat the best human-optimised version, and they opened the contest on 2 July 2026.
Free · Browser · Advanced

About zkGolf
A valid entry proves both soundness and completeness. Soundness alone would be easy to game, since a circuit nothing can satisfy is trivially sound, so completeness is what ties it to the intended function. Entries must also be R1CS circuits, ship proofs of their own cost, avoid native_decide and use only the axioms the challenge config permits.
The challenge repository starts with assert-bytes, the Hello, World! of the set, and climbs to SHA-256, Keccak-f[1600], BLAKE3 compression, JSON extraction, secp256k1 and BLS12-381 scalar multiplication, and RSA signature verification with 4096-bit keys.
In the Show HN thread a commenter caught an entry that measured its cost only on trivial inputs, and the organisers closed the gap. The Lean Game Server is the gentler place to learn tactics first.
Questions about zkGolf
How is a zkGolf submission scored?
Why would a submission time out?
Can I use an AI model to write the circuit?
Made this game? Claim it →

Tips and discussion
No tips yet.
Sign in to share a tip.