Write zero knowledge proofs in solidity.
Creating an alternative frontend for noir / nargo, developers can write, prove and verify zk circuits that are written in solidity.
That's it.
This repo contains a nargo
workspace where the files are written in solidity. Each example demonstrates a different type of circuit, use the run instructions below to test each of them!
- Make sure you have
noirup
installed - instructions below. - Go and clone this branch of noir
- Run
noirup -p .
to replace your local nargo binary with the one with solidity support - Run
nargo check
to generate prover toml etc - Enter the values you want in your generate your proof with in
Prover.toml
nargo compile
nargo prove
nargo verify
See the official Noir installation instructions.
Then, install the Noir toolchain installer (noirup
) with:
curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/install | bash
Now you've installed the noirup
binary,
Follow the instructions above to install the solidity circuits branch.