Generate o1js proofs

Instructions to generate o1js proofs from Risc Zero proofs and then verify the o1js proofs in a Mina smart contract.

End-to-end example

There's an end-to-end example in scripts/risc_zero_example which does the following:

  1. Sets the required environment variables (verifier keys, public inputs, etc) using data from the provided Risc Zero proofs.

  2. Generates o1js proofs that verify the Risc Zero proof.

  3. Verifies the o1js proof inside a sample Mina zkapp.

To run the example, execute the e2e_risc_zero.sh script:

./scripts/e2e_risc_zero.sh

To run this end-to-end test with your own Risc Zero proofs, replace risc_zero_proof.json and risc_zero_raw_vk.json with appropriate values.

Last updated