Skip to content

zkmopro/react-native-app

Repository files navigation

Mopro React Native App with Expo framework

This is a sample Expo app that demonstrates how mopro can be used to prove a multiplier2 circuit.

Example zkey: multiplier2_final.zkey

Learn more about Mopro: https://zkmopro.org.

Get started

1. Install dependencies

npm install

2. Start the app

  • start an android emulator

    npm run android
  • start an iOS simulator

    npm run ios
  • start a web app (WIP)

    npm run web

3. Update Mopro Bindings

  • Get MoproiOSBindings and MoproAndroidBindings through Rust Setup

  • Update modules/mopro/ios/MoproiOSBinding with MoproiOSBindings

  • Copy the MoproAndroidBindings/jniLibs directory to modules/mopro/android/src/main/jniLibs.
    And copy MoproAndroidBindings/uniffi directory to modules/mopro/android/src/main/java/uniffi.
    The folder structure should be as follows:

Screenshots

iOS

Android

````