Prerequisites
Depending on what platforms and adapters you use, there are several prerequisites to install before getting started.
- General
- iOS
- Android
- Android Studio
- Also see configuration below
- Web(WASM)
- Circom
- Pre-built
zkey
andwasm
files for your circuits
- Pre-built
- Halo2
- Pre-generated SRS (Structured Reference String) file, typically used as the universal setup for your circuits
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:
- Export
$ANDROID_HOME
and change{USER_NAME}
to your username
export ANDROID_HOME="/Users/{USER_NAME}/Library/Android/sdk"
- Locate which NDK version you have
ls $ANDROID_HOME/ndk # => 26.1.10909125
- Set it to your
NDK_PATH
environment variable
NDK_PATH=$ANDROID_HOME/ndk/26.1.10909125
Reference: Running Rust on Android with UniFFI.