zkmopro/mopro
Tentang
Making client-side ZK proving on mobile simple.
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +2
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
Mopro: ZK Toolkit for Mobile
Mopro (Mobile Prover) is a toolkit for ZK app development on mobile. Mopro makes client-side proving on mobile simple.
📖 To learn more about mopro, please refer to the documentation at zkmopro.
Repository Structure
This repository contains the following components:
| Package | Version | Description |
|---|---|---|
| mopro-ffi |
|
Uses UniFFI to generate bindings for ZK provers (currently: Circom, Halo2, and Noir). It includes build scripts that eliminate the need for manual setup when integrating with iOS and Android. |
| mopro-cli |
|
A command-line tool that makes it easy to scaffold ZK projects using selected proving systems and target platforms. Currently supports: Swift (Xcode), Kotlin (Android Studio), React Native, Flutter and Web. |
| tests | End-to-end test examples for verifying integrations for mopro-ffi. | |
| docs | The source for zkmopro.org, containing up-to-date documentation. |
🎯 Mopro Kanban board
All tasks related to the Mopro implementation are public. You can track their progress, statuses, and additional details in the Mopro Kanban.
📱 Getting started
To get started with building a mobile app using Mopro, check out the Getting Started guide and ensure you’ve installed all required prerequisites.
🛠 Install
Clone this repository:
git clone https://github.com/zkmopro/mopro.git
📜 Usage
Code quality and formatting
Run Rustfmt to automatically format the code.
cargo fmt --all
Run rust-clippy to catch common mistakes and improve your Rust code.
cargo clippy --all-targets --all-features
mopro-ffi
To test the wasm bindings with wasm-pack test
wasm-pack test --chrome --headless -- --no-default-features --features wasm
[!IMPORTANT]
To learn more aboutmopro-ffi, please visit mopro-ffi
mopro-cli
To install the CLI
cd cli
cargo install --path .
[!IMPORTANT]
To learn more aboutmopro-cli, please visit cli
tests
iOS
Update bindings for iOS
cargo run --bin iosor
mopro build # with mopro CLIand choose
iOS.
Android
Update bindings for Android
cargo run --bin androidor
mopro build # with mopro CLIand choose
Android.
Flutter
Update bindings for Flutter
cargo run --bin flutter --no-default-features --features flutteror
mopro build # with mopro CLIand choose
flutter.
React Native
Update bindings for React Native
cargo run --bin react_nativeor
mopro build # with mopro CLIand choose
react-native.
Web
Update bindings for wasm
cargo run --bin web --no-default-features --features wasmor
mopro build # with mopro CLIand choose
web.
docs
- Install dependencies
yarn - Build for the website
yarn build - Start a server
yarn start
Performance
Both native circom witness generation and proof generation are generally faster than snarkjs in the browser, with potential speed improvements of up to 20 times.
Check the details for circom, halo2, and noir provers here: performance.
Community
Acknowledgements
This work was initially sponsored by a joint grant from PSE and 0xPARC. It is currently incubated by PSE.
[!IMPORTANT] We do not accept minor grammatical fixes (e.g., correcting typos, rewording sentences) unless they significantly improve clarity in technical documentation. These contributions, while appreciated, are not a priority for merging. If there is a grammatical error feel free to message the team.
Jelajahi proyek terkait
Memuat…