arnaucube
arnaucube/grapevine-sonobePublic Self-hosted repository
grapevine-sonobe/circom/compile.sh
circom/compile.shRaw
 1#!/bin/bash
 2
 3# if artifacts does not exist, make it
 4if [ ! -d "./artifacts" ]; then
 5    mkdir -p ./artifacts
 6fi
 7
 8# install dependencies
 9yarn
10
11# compile circuit
12
13circom grapevine.circom \
14    --r1cs \
15    --wasm \
16    --prime bn128 \
17    --output ./artifacts
18
19# cleanup
20mv ./artifacts/grapevine_js/grapevine.wasm ./artifacts
21rm -rf ./artifacts/grapevine_js