Skip to main content
Version: Next

Getting started

This tutorial guides you through building a static library with the Circom/Halo2 adapter for Android and iOS and creating example templates for mobile development.

0. Prerequisites

Make sure you've installed the prerequisites.

1. Install CLI

Clone the mopro repository and install the mopro CLI tool.

git clone https://github.com/zkmopro/mopro
cd mopro/cli
cargo install --path .
cd ../..

2. Initialize adapters

Navigate to the folder where you want to build the app. Select the adapters using the mopro CLI.

mopro init

3. Build bindings

Navigate to your project directory. (e.g. cd mopro-example-app)
Build bindings for specific targets (iOS, Android).

mopro build
warning

The process of building bindings may take a few minutes.

info

Running your project in release mode significantly enhances performance compared to debug mode. This is because the Rust compiler applies optimizations that improve runtime speed and reduce binary size, making your application more efficient.

4. Create templates

Create templates for developing your mobile app.

mopro create

Follow the instructions to open development tools

For iOS:

open ios/MoproApp.xcodeproj

For Android

open android -a Android\ Studio