From e0f2589e3d1ba14d49bb2514f6c279a84570d089 Mon Sep 17 00:00:00 2001 From: yu-zhen Date: Thu, 7 Mar 2024 04:04:36 +0900 Subject: [PATCH] docs: update rapidsnark installation instruction --- .../version-v1.x/installation.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/website/versioned_docs/version-v1.x/installation.md b/website/versioned_docs/version-v1.x/installation.md index d17478b48e..b57d7b0f0f 100644 --- a/website/versioned_docs/version-v1.x/installation.md +++ b/website/versioned_docs/version-v1.x/installation.md @@ -24,26 +24,35 @@ You need the following to use MACI: First, install dependencies: ```bash -sudo apt-get install build-essential libgmp-dev libsodium-dev nasm git +sudo apt-get install build-essential cmake libgmp-dev libsodium-dev nasm curl m4 +``` + +If you're running on **MacOS**, install dependencies by: + +```bash +brew install cmake gmp libsodium nasm ``` Next, clone `rapidsnark` and build it: ```bash git clone https://github.com/iden3/rapidsnark.git && \ -cd rapidsnark && \ -git checkout 1c13721de4a316b0b254c310ccec9341f5e2208e +cd rapidsnark pnpm install && \ git submodule init && \ git submodule update && \ -pnpm exec task createFieldSources && \ -pnpm exec task buildProver +./build_gmp.sh host && \ +mkdir build_prover && cd build_prover && \ +cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package && \ +make -j4 && make install ``` Note the location of the `rapidsnark` binary (e.g. `/home/user/rapidsnark/build/prover`). +For more information, please check rapidsnark [github repo](https://github.com/iden3/rapidsnark) + ### Install circom v2: https://docs.circom.io/