zkSync Era

组件

一个 external-node, 一个 circuit-synthesizer 以及一堆 provers:

External-node

  • 从 L1 和信任的 L2 节点同步数据

  • 向L1发送证明获得奖励

Circuit-synthesizer

  • 分发和收集证明任务

Prover

  • 计算ZKP

要求

操作系统: Ubuntu 20.04 amd64 LTS and above

Prover GPU: GeForce 30 Series and above

前置要求

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

简单安装

1. External-node

1.1 安装基础环境

自动检查相关依赖 (包含 docker, docker-compose, nvidia-container-toolkit) 以及安装缺失的.

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 安装 External-node

自动下载 docker 镜像,以及基于选择的网络,修改相关的配置.

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

  • 选择打算提供ZKP的网络

  • 操作地址 (提交证明以及接收奖励的地址)

  • 操作者的私钥

  • L1 RPC URL

2. Prover Group

2.1 安装基础环境

查看 1.1 #1.1-install-the-base-environment

2.2 安装 Prover

自动检查显卡驱动版本,下载对应的docker镜像.

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

Last updated