> For the complete documentation index, see [llms.txt](https://docs.rome.builders/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rome.builders/zh/rome-zk-evm/prover-host.md).

# 证明主机

为使用 ZisK 1.3.1-alpha 证明 Rome ZK EVM batches 的 GPU 主机进行规格设定与准备。

该节点无需 GPU 即可对交易进行排序并发布批次。要让 Solana 上的任何 root 最终确认，还需要一个证明器。在 v0.3.0 中，证明器运行 ZisK 1.3.1-alpha，并使用为你的链的创世区块构建的 guest。它会逐个证明 inbox 批次，在本地检查每个证明，然后将其提交到结算层。

这些 [完整的 prover 主机指南](https://github.com/rome-protocol/solana-zk-evm/blob/v0.3.0/docs/PROVER-HOST.md) 包含安装和恢复步骤。请将其与 [devnet 运行手册](https://github.com/rome-protocol/solana-zk-evm/blob/v0.3.0/docs/RUN-ON-DEVNET.md).

## 配置主机规格

请使用 x86-64 Ubuntu 22.04 或更高版本，并配备一块显存超过 30 GB 的 NVIDIA GPU。安装脚本可接受约 32.2 GB 或更高显存的 GPU。最终证明步骤大约需要 30 GB，因此 24 GB 的显卡太小。NVIDIA 驱动程序版本必须至少为 525.60.13。

至少预留 **128 GB RAM** 和 **125 GB 可用磁盘空间** 在 ZisK 的安装位置。1.3.1-alpha 证明密钥归档包大小为 5.1 GB，PLONK 密钥归档包大小为 21.9 GB。安装完成后生成其常量文件时，这两个密钥目录分别占用 21 GiB 和 26 GiB。首次证明会增加缓存文件。某台 CPU 主机在完成一次证明后总计占用 102.1 GB，而 GPU 缓存增长尚未测量。

1.3.1-alpha 证明库报告其主工作缓冲区为 24.7 GB，递归部分为 5.6 GB，针对约 300 万步的批次。此版本的整个进程峰值未记录。devnet GPU 运行使用了一台配备 176 GB RAM 的主机；其峰值内存使用同样未记录。请将 128 GB 作为容量估算，而不是实测峰值。

## 已测量的数据

一个几乎为空的批次大约耗时 **17 秒**，包括 PLONK 封装在内，在一台配有一块 **96 GB RTX PRO 6000**、48 个 CPU 核心和 176 GB RAM 的主机上完成。大约 95 GB 的 GPU 内存显示为正在使用。这是本次运行实际占用的内存，而不是每个批次所需的最小 GPU 内存。更大的批次尚未在 GPU 上计时。

Rome 在那块 GPU 上用大约 35 分钟清理了 116 个几乎为空的 devnet 批次。这一点很重要，因为当某条链在等待其验证密钥期间生成了空块时，证明器必须按顺序处理这些批次，才能到达更新的状态。

## 运行安装脚本

如有需要，先安装 NVIDIA 驱动并重启。从仓库根目录，以 root 身份运行该发行版的脚本。设置 `ZISK_HOME` 为 ZisK 及其密钥所在的目录。在你的 rollup 中使用相同的值 `.env`:

```sh
sudo ZISK_HOME=/opt/zisk bash deploy/rollup/prover/setup-prover-host.sh
sudo ZISK_HOME=/opt/zisk bash deploy/rollup/prover/setup-prover-host.sh --check
```

该脚本会安装 ZisK 的 GPU 构建版本、其证明密钥和 PLONK 密钥、所需的系统库，以及 Docker 的 NVIDIA 运行时。它会将锁定内存限制设置为无限。请注销并重新登录，以便该限制应用到你的 shell。随后它会检查 GPU 和驱动程序、已安装的二进制文件、密钥、内存限制以及容器运行时。

在运行安装程序之前，它会校验安装程序的 SHA-256。解压任一密钥归档之前，它会先检查两个密钥归档，并检查已安装的 `cargo-zisk` 和 `cargo-zisk-dev` GPU 二进制文件，然后脚本才会运行它们。它会生成聚合和 PLONK 证明所需的常量文件。如果某次运行失败，请重新运行该脚本。当已安装的密钥已经与固定清单匹配时，它会跳过密钥下载。

该脚本不会检查 ZisK 安装的每一个部分。安装程序会先获取一个二进制包并运行其工具链安装程序，然后脚本才会检查这两个已安装的 GPU 二进制文件。该包中的其他可执行文件和源文件不会被此脚本进行哈希校验。完整指南说明了这一限制，并提供了分别检查每个下载项的命令。

## 将其连接到你的链

证明器需要匹配的 guest ELF、其验证元数据，以及相同的 1.3.1-alpha 证明密钥。请在 rollup 配置中设置 `PROVER=on` 以及 guest 和 ZisK 配置，然后运行 `./rollup init` 和 `./rollup up`。首次运行会从 v0.3.0 源码构建 prover 镜像。仅节点镜像本身不包含 prover。

在每次启动之前，prover 都会将已安装的证明密钥与固定的 SHA-256 清单进行比对。该检查覆盖文件名和内容。由于生成的常量树和 GPU 常量文件会因主机而异，因此将它们排除在外。不匹配会使 prover 以 `KeysShaMismatch`停止。不要为了让不匹配的安装启动而修改清单；请安装与链的 guest 和已注册密钥相匹配的发行版。

运行 `./rollup check` 启动后。它会检查 prover 服务、当前生效的验证密钥，以及结算和 prover 的延迟情况。该 [监控指南](https://github.com/rome-protocol/solana-zk-evm/blob/v0.3.0/docs/MONITORING.md) 列出了本地指标和有用的告警条件。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rome.builders/zh/rome-zk-evm/prover-host.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
