Skip to content

Commit

Permalink
feat: use GPU for proving
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 committed Sep 30, 2024
1 parent d16ef7c commit 9298316
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions libs/rapidsnark.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive

# Install Node.js, Yarn and required dependencies
RUN apt-get update \
&& apt-get install -y curl git gnupg build-essential cmake libgmp-dev libsodium-dev nasm curl m4 \
&& curl --silent --location https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs

RUN git clone https://github.com/Orbiter-Finance/rapidsnark.git /rapidsnark
WORKDIR /rapidsnark
RUN git submodule init
RUN git submodule update
./build_gmp.sh host
mkdir build_prover && cd build_prover
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package
make -j$(nproc) && make install

ENTRYPOINT ["/rapidsnark/package/build/prover_cuda"]
3 changes: 2 additions & 1 deletion packages/prover/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ RUN npm install -g n
RUN n 22
RUN npm install -g yarn snarkjs

RUN git clone -b feat/gpu https://github.com/zkemail/ether-email-auth.git
RUN git clone -b refactor https://github.com/zkemail/ether-email-auth.git
WORKDIR /ether-email-auth/packages/prover
RUN pip install -r requirements.txt
RUN cp ./circom_proofgen.sh /root
RUN cp ./email_auth_with_body_parsing_with_qp_encoding /root
WORKDIR /root
RUN ls /root
RUN mkdir params
Expand Down

0 comments on commit 9298316

Please sign in to comment.