Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.11 KB

README.md

File metadata and controls

43 lines (32 loc) · 1.11 KB

zkApp: Recursion

You build recursive zkApps by using ZkProgram, the o1js general purpose API for creating zero knowledge proofs.

A ZkProgram is similar to zkApp smart contracts but isn't tied to an on-chain account. This tutorial code is an example of a simple zkRollup. This tutorial guides you through a review of a simple zkRollup example that can be used to implement a zkRollup or an app chain.

Tutorial

For the step-by-step tutorial, see Tutorial 9: Recursion.

How to install and run this example project

  1. Clone the repository:

    git clone https://github.com/o1-labs/docs2.git
  2. Change directory to the project location:

    cd docs2/examples/zkapps/09-recursion
  3. Install dependencies:

    npm install
  4. Build the project:

    npm run build
  5. Run the compiled code:

    node build/src/add.js

    To run and build the compiled code with a single command:

    npm run build && node build/src/add.js

License

Apache-2.0