OCaml DSL for verifiable computation
Browse cluster: Cosmos blockchain and smart contract languages →Snarky is an OCaml domain-specific language and front-end for writing R1CS SNARKs, a cryptographic proof system used in verifiable computation. The library abstracts away low-level SNARK details by allowing developers to write programs that look like ordinary OCaml code, with a `Checked.t` monad that marks computations whose execution will be certified by the SNARK; it is modular over backend SNARK libraries and includes backends from libsnark. The project was developed by O1 Labs and is primarily used by the Mina project, though the README notes the codebase contains substantial obsolete code from earlier versions. Snarky is built in OCaml and requires OCaml 4.14.2, along with libsnark's C/C++ dependencies.