Links
Comment on page

Run zkSync Prover

Components
To run a prover for zkSync-era-based networks, you are required to run an external-node, a circuit-synthesizer and several provers, to be specific:
External-node
  • Synchronizing necessary data from L1 and trusted L2 node
  • Managing and sending ready proofs to L1 to earn rewards
Circuit-synthesizer
  • Distributing and collecting proof tasks
Prover
  • Performing ZKP calculation tasks

Requirements

OS: Ubuntu 20.04 amd64 LTS and above
Prover GPU: GeForce 30 Series and above

Prerequisites

The deploying steps mentioned in this documentation require docker and docker-compose to be previously installed. Check the following links if you haven't installed the dependencies yet.
Remember to set a proper directory for docker root.
Additionally, running a prover requires nvidia-container-toolkit / nvidia-docker2
  • https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/1.14.0/install-guide.html#configuring-docker
Install nvidia-container-toolkit & Configuring Docker
You may skip this part if running with easy-installation scripts
$ curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list \&& \
sudo apt-get update
$ sudo apt-get install -y nvidia-container-toolkit
$ sudo nvidia-ctk runtime configure --runtime=docker
$ sudo systemctl restart docker

Easy Installation

1. External-node

1.1 Install the Base Environment

Automatically check dependencies (including docker, docker-compose, nvidia-container-toolkit) and install missing ones.
wget -c https://pre-alpha-miner-download.opside.network/update/zksync/install-basic-env.sh -O ./install-basic-env.sh && chmod +x ./install-basic-env.sh && ./install-basic-env.sh

1.2 Install the External-node

Automatically downloads docker images and modifies the configuration based on the network selected.
wget -c https://pre-alpha-miner-download.opside.network/update/zksync/run-external-node.sh -O ./run-external-node.sh && chmod +x ./run-external-node.sh && ./run-external-node.sh
Enter after the instructions
  • Preferred network
  • Operator address (who submits proofs and receives rewards)
  • Private key of the operator
  • L1 RPC URL

2. Prover Group

2.1 Install the Base Environment

2.2 Install Prover

Automatically checks the graphic card driver version and downloads the corresponding docker image.
wget -c https://pre-alpha-miner-download.opside.network/update/zksync/run-prover-node.sh -O ./run-prover-node.sh && chmod +x ./run-prover-node.sh && ./run-prover-node.sh
Enter after the instructions
  • Preferred network
  • IP address of the external-node