> 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/zk-evm.md).

# 概览

运行一个 EVM Rollup，其交易数据和经证明的状态根在 Solana 上结算。

不要与 Ostia 混淆，后者是 Canton 上的一个 ZK EVM，其区块在 Canton 上排序并结算；参见 [Canton ZK EVM](https://docs.rome.builders/zh/canton-zk-evm/canton-zk-evm.md).

Rome ZK EVM 让你在 Solana 上运行自己的 EVM rollup。你的排序器执行交易，你的批处理器将它们分批发布到 Solana。证明器使用 ZisK 运行该链的批次 guest。Solana 验证证明并记录新的状态根。已证明的根在发布它的那笔交易中即为最终状态。

Solana 持有交易数据，验证证明并结算根。该链不依赖于单独的数据可用性委员会或另一条结算链。你为你的链运行节点、批处理器和证明器。Rome 的共享程序负责在 Solana devnet 上进行结算。

本节涵盖 **v0.3.0**。代码和完整的运营文档公开于 [solana-zk-evm](https://github.com/rome-protocol/solana-zk-evm/tree/v0.3.0)。批次 guest 位于 [rome-zk-guest](https://github.com/rome-protocol/rome-zk-guest/tree/v0.3.0)。如果你想启动一条链，请从 [运行一个 rollup](https://docs.rome.builders/zh/rome-zk-evm/run-a-rollup.md) 开始。

## 在 devnet 上可用的功能

任何人都可以在 Solana devnet 上注册一条链。注册会锁定 5 SOL 押金，并创建该链的结算账户。要发布已证明的根，该链需要一个为其创世区块构建的 guest，以及一个由 Rome 注册的验证密钥。每个已证明的根需要支付 0.001 SOL 的结算费用，外加 Solana 费用和账户租金。

在该链的第一个最终根或已发布的十个根之后，这笔押金可退还给链的权限方。如果该链在注册后约 30 天内未发布任何根，任何人都可以将其领取，押金则归入国库。

Rome 在其自有的一条链上完成了 v0.3.0 devnet 指南，从注册到押金退款。以下是该次运行中的交易：

| 步骤                      | Solana devnet 交易                                                                                                                                            |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 一个已证明的根，发布后即为最终状态       | [`64uUhxFu…MpDGFr`](https://explorer.solana.com/tx/64uUhxFu9C48mqYd9rZTcfbEwvTB7C4PmSFWkY6feB8qsqJZNMh3gM8ZKM6woSsyjRgntqujSsHuCB2TGYMpDGFr?cluster=devnet) |
| 退出配置已激活                 | [`2yyQrpv9…h1aSds`](https://explorer.solana.com/tx/2yyQrpv9CHQg7n5exxwERNYMEPDcm9gaPZje4jAv2Y2HHQ9DsPjbCDRbeLWoCZMwVv5UA6rohtJeQ1KZXRh1aSds?cluster=devnet) |
| 存款队列已开启                 | [`4tpfJKTV…XJbb9F`](https://explorer.solana.com/tx/4tpfJKTVmhvUnhH822JficbJrDJZHknBJ9rwmux5R17HLj6WGniuRCXd9wQ8jSzjVa9uTDm4g3f369QQnkXJbb9F?cluster=devnet) |
| 0.1 SOL 已存入并在区块 191 中记账 | [`5jKNqid8…VjYy67`](https://explorer.solana.com/tx/5jKNqid8XsqMedKBgm6dM5cSnszA7yFxa9xgm4MyGE45RcxthTkEZ9k1yGpzaPzqKGhN7CDz7iLAMMNFrfVjYy67?cluster=devnet) |
| 已证明一笔 0.03 SOL 的提现      | [`3p8RhJJU…3rNDNz`](https://explorer.solana.com/tx/3p8RhJJUrvTxKrmtCJM1uZe2K6oLMw7cASoNQTm4RrMw6s1SrFeXWvws1D74UhnnRVPoevfhHmyNvkPGca3rNDNz?cluster=devnet) |
| 该提现已支付给其收款人             | [`3dMpiQRX…nSVAz9`](https://explorer.solana.com/tx/3dMpiQRXgLBoNbBmKmz6qBVXfdX7EC9YwajQ35uGg1fzSb9HryH3awqrqx1fAEpsGfQPEDQrwUepgGtEkrnSVAz9?cluster=devnet) |
| 注册押金已退款                 | [`3YgyfLL2…zQk7wp`](https://explorer.solana.com/tx/3YgyfLL2bze6uefnUx3x76etTAu9WxQ3L2S8oNkKdSc3bBY7aHfWTZtrs1qDKxiJTMwA6i3LxRYTBC9n3RzQk7wp?cluster=devnet) |

这笔提现在区块 192 中于链上发起，并在大约四分钟后在 Solana 上完成支付。大部分时间都用于关闭并证明其批次。随后，退出证明器证明了该提现，并从该链的金库中发送了其付款。 [存款和取款](https://docs.rome.builders/zh/rome-zk-evm/deposits-and-withdrawals.md) 说明限制，以及何时小额支付需要人工释放。

## 本版本的限制

这是一个 devnet 版本。Rome 持有共享程序的升级权限，并可在不事先通知的情况下升级它们。请查看 [信任模型](https://docs.rome.builders/zh/rome-zk-evm/trust-model.md) ，然后再将资金存入某条链的金库。

默认设置不会关闭旧的 inbox 批次、其分块或待处理根账户。它们的租金仍会被锁定。系统提供了一个待处理账户关闭设置，但默认关闭，因为较旧的最终根可能仍用于退出。v0.3.0 中没有任何内容会发送 inbox 的 `CloseBatch` 指令。这也会使存款记录的租金保持锁定状态，直到批次权限方关闭记账批次。Rome 尚未决定旧批次数据必须在 Solana 上保留多久。

用户依赖运营方保持排序器运行、发布批次并发送证明。有效证明不会自行发布；链权限方必须签署发布它的交易。没有证明器的链没有最终根，包括创世状态在内，也无法完成提现。请阅读 [工作原理](https://docs.rome.builders/zh/rome-zk-evm/how-it-works.md) 了解从区块到最终根的路径。

## 代码与帮助

这些 [v0.3.0 仓库 README](https://github.com/rome-protocol/solana-zk-evm/blob/v0.3.0/README.md) 链接了组件文档、运营手册和发布说明。如有问题，请使用 [GitHub Discussions](https://github.com/rome-protocol/solana-zk-evm/discussions)。如有漏洞或验证密钥请求，请使用 [问题表单](https://github.com/rome-protocol/solana-zk-evm/issues/new/choose)。如遇安全问题，请遵循 [SECURITY.md](https://github.com/rome-protocol/solana-zk-evm/blob/v0.3.0/SECURITY.md) ，而不是公开提交 issue。


---

# 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/zk-evm.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.
