-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·44 lines (33 loc) · 999 Bytes
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
echo "Installing basic dependencies"
sudo apt-get install -y curl
sudo apt-get install -y bc
echo "Installing rust"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
echo "Installing circom"
git clone https://github.com/iden3/circom.git
cd circom
git checkout v2.0.6
Cargo build --release
Cargo install --path circom
echo "Installing node"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
nvm install 18
echo "Installing docker"
sudo apt-get install -y docker.io
sudo apt-get install -y docker-compose
echo "Handling docker permissions"
sudo groupadd docker
sudo usermod -aG docker $USER
docker run hello-world || echo "Please exit your shell or restart"
echo "Starting the local Ethereum blockchain network"
docker-compose up -d
echo "Installing npm packages"
npm i
echo "Setting up truffle"
npm i -g truffle
truffle init
echo "Preparing the ZKP trusted setups and deploying the corresponding verifiers"
cd circuits
npm i
cd ..