Skip to main content
Version: 0.2.0

Prerequisites

Depending on what platforms and adapters you use, there are several prerequisites to install before getting started.

Installations

Circuits

  • Circom
  • Halo2
    • Pre-generated SRS (Structured Reference String) file, typically used as the universal setup for your circuits.
    • Please check out plonkish-fibonacci-sample to prepare circuits and SRS files.
  • Noir

iOS configuration

Ensure that the command-line tools path is correctly set in Xcode. You can check this by navigating to Xcode > Settings > Locations.

xcode - settings - location

Android configuration

Some additional configuration is required for Android.

First, install the latest SDK. In Android Studio, go to SDK Manager > SDK Tools and install NDK (Side by Side) (see Android Developer site).

After that, set the following environment variables:

  1. Export $ANDROID_HOME
export ANDROID_HOME="~/Library/Android/sdk"
  1. Locate which NDK version you have
ls $ANDROID_HOME/ndk # => 26.1.10909125
  1. Set it to your NDK_PATH environment variable
NDK_PATH=$ANDROID_HOME/ndk/26.1.10909125

Reference: Running Rust on Android with UniFFI.