> 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/ja/canton-zk-evm/start-here.md). Agents can also search and read this documentation through its [MCP server](https://docs.rome.builders/~gitbook/mcp).

# ここから始めてください

Ostia を読む人それぞれにとっての出発点であり、使うツールやどこを見ればよいかを示します。アプリを構築する場合でも、Canton で検証する場合でも、証明器を実行する場合でも、監査する場合でも、あるいは自分自身の Ostia を運用する場合でも。

| したいこと                                         | ここから始める                                                                                                                                              |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| アプリをデプロイする                                    | [アプリ開発者](#app-builders)                                                                                                                              |
| Cantonで何を構築できるか、TestNetとDevNetで何が稼働しているかを確認する | [Cantonで構築する](https://docs.rome.builders/ja/canton-zk-evm/build-with-canton.md) と [ユースケース](https://docs.rome.builders/ja/canton-zk-evm/use-cases.md) |
| ウォレットとテストコインを入手する                             | [ユーザー](#users)                                                                                                                                       |
| 開発者として100 tROMEを入手する                          | [開発者助成金](https://docs.rome.builders/ja/canton-zk-evm/testnet.md#the-builder-grant)                                                                   |
| Canton、Ostia、Ethereum Sepolia間でトークンを移動する      | [ブリッジ](https://docs.rome.builders/ja/canton-zk-evm/bridge.md)                                                                                        |
| Cantonで各ブロックがどのように確定するかを確認する                  | [External calls](https://docs.rome.builders/ja/canton-zk-evm/explorer.md#external-calls)                                                             |
| ERC-20ツインとCanton Coinの仕組みを読む                  | [双方向のCantonアセット](#two-way-canton-assets)                                                                                                             |
| Canton参加者上でOstiaを実行するか、ブロックの承認者を確認する          | [Cantonバリデーターと参加者オペレーター](#canton-validators-and-participant-operators)                                                                               |
| 証明者を実行する                                      | [証明者オペレーター](#prover-operators)                                                                                                                       |
| 証明によって解決される問題と、解決されない問題を確認する                  | [信頼モデルと制限事項](https://docs.rome.builders/ja/canton-zk-evm/trust-model.md)                                                                             |
| コードを監査する                                      | [監査担当者と研究者](#auditors-and-researchers)                                                                                                               |
| 自分でOstiaを実行する                                 | [独自のOstiaを実行する](https://docs.rome.builders/ja/canton-zk-evm/run-it-locally.md)                                                                       |

すべてのコードは、1つの公開リポジトリにあります。 [rome-protocol/canton-zk-evm](https://github.com/rome-protocol/canton-zk-evm)。Apache License 2.0の下で公開されています。このページのコードリンクはメインブランチを参照しています。 [ステータス](https://docs.rome.builders/ja/canton-zk-evm/status.md) には、Ostiaが実行するコミットが記載されています。アプリは [`apps/accounts`](https://github.com/rome-protocol/canton-zk-evm/tree/main/apps/accounts), [`apps/twin`](https://github.com/rome-protocol/canton-zk-evm/tree/main/apps/twin) （その [レジストリサービス](https://github.com/rome-protocol/canton-zk-evm/tree/main/apps/twin/registry)を含む）と [`apps/otc`](https://github.com/rome-protocol/canton-zk-evm/tree/main/apps/otc)にあります。リリース [v0.1.0](https://github.com/rome-protocol/canton-zk-evm/releases/tag/v0.1.0) は最初のタグで、アプリが追加される前のものです。

## アプリ開発者

OstiaはCanton TestNet上で、HTTP JSON-RPC経由でEVMコントラクトを実行します。監査は受けておらず、テストコインに価値はなく、TestNetはリセットされる可能性があります。Romeは開発者、証明者、および唯一の承認参加者を運用しています。一部の動作はEthereumと異なります。まず [Ethereumとの違い](https://docs.rome.builders/ja/canton-zk-evm/evm-differences.md) をお読みください。Osaka以前向けに構築されたコントラクトは、Ethereumと同じデプロイ手順で実行できます（`london` が安全なターゲットです）。既存のアプリを接続する前に、 [RPCの制限](https://docs.rome.builders/ja/canton-zk-evm/testnet.md#limits) を確認してください。

**使用するもの**

* Foundry 1.8： `forge create` デプロイし、 `forge verify-contract` をエクスプローラーの Etherscan 互換 API に対して実行します。
* デプロイには Hardhat 2 を使います。
* 読み取りと送信には ethers を使います。混在型ロードキット（`load/mixed`）で使用します。 [Ostia で開発する](https://docs.rome.builders/ja/canton-zk-evm/build-on-ostia.md#viem-and-ethers) には viem のセットアップ方法もあります。
* ネットワーク設定値を使うか、エクスプローラーの API ページにあるボタンから設定した EVM ウォレット。
* OpenZeppelin コントラクト。それらを基盤にした ERC-20、ERC-721、ERC-1155 トークンが Ostia 上で稼働しており、ERC-3643（T-REX）許可型トークンと Uniswap V2 も稼働しています。
* ロードキットは、TACEO の Merces コントラクトへのプライベート転送も実行しました。Groth16 証明はクライアント側で生成され、オンチェーンで検証されました。MPC ネットワークは稼働しておらず、決済も行われていません。

viem のセットアップ方法とウォレットの手順は文書化されていますが、ここではエンドツーエンドのテストは行っていません。他の EVM ツールは試していません。RPC は WebSocket、 `eth_newFilter` 、 `eth_subscribe`に対応していないため、 `eth_getLogs`をポーリングしてください。Canton でブロックがファイナライズされるとレシートが表示されます。所要時間は約 10〜30 秒です。

**参照先**

* [Ostia TestNet](https://docs.rome.builders/ja/canton-zk-evm/testnet.md)：チェーン ID、RPC、ウォレット設定値、制限、停止およびメンテナンス情報。
* [Ethereum との違い](https://docs.rome.builders/ja/canton-zk-evm/evm-differences.md)：PREVRANDAO、ブロブトランザクション、ブロック時間など。
* [Ostia で開発する](https://docs.rome.builders/ja/canton-zk-evm/build-on-ostia.md)：Foundry または Hardhat でデプロイと検証を行い、viem または ethers で接続します。
* [エクスプローラー](https://docs.rome.builders/ja/canton-zk-evm/explorer.md)：API、コントラクトの検証、ファウセット、External calls ページ。
* [ビルダー助成金](https://docs.rome.builders/ja/canton-zk-evm/testnet.md#the-builder-grant)：GitHub でサインインしたビルダーに 100 tROME を提供します。
* [Canton で開発する](https://docs.rome.builders/ja/canton-zk-evm/build-with-canton.md)：ツイン、Canton Coin、Canton のパーティーを使った決済、Canton の取引所。
* [ユースケース](https://docs.rome.builders/ja/canton-zk-evm/use-cases.md)：TestNetまたは独自のネットワークで、現在利用できる機能。
* [Ostia を試す](https://github.com/rome-protocol/canton-zk-evm/blob/main/docs/TRY-OSTIA.md)：リポジトリにある簡潔なガイド。
* [load/mixed](https://github.com/rome-protocol/canton-zk-evm/tree/main/load/mixed)：上記すべてをデプロイするキットです。スクリプトと独自コントラクトを収録しており、残りはパッケージのインポートとフェッチ処理で取り込みます。

## ユーザー

**使用するもの**

* Ostia TestNet を追加したウォレット。
* テストコイン用ファウセット：全ユーザーに、アドレスごとに1日1 tROMEを配布します。GitHub でサインインしたビルダーには100 tROMEを配布します。tROMEに価値はありません。
* トランザクションの検索やブロックの確認にはエクスプローラーを使います。また、 [External calls](https://docs.rome.builders/ja/canton-zk-evm/explorer.md#external-calls)では、各ブロックが Canton 上でどのようにコミットされるかを確認できます。
* トークンを Canton、Ostia、Ethereum Sepolia 間で移動するための [ブリッジ](https://docs.rome.builders/ja/canton-zk-evm/bridge.md) 。

**参照先**

* [Ostia TestNet](https://docs.rome.builders/ja/canton-zk-evm/testnet.md#add-it-to-a-wallet)：ウォレットのセットアップ。
* [tROME を入手する](https://docs.rome.builders/ja/canton-zk-evm/testnet.md#get-trome)：ファウセットと [ビルダー助成金](https://docs.rome.builders/ja/canton-zk-evm/testnet.md#the-builder-grant).
* [エクスプローラー](https://docs.rome.builders/ja/canton-zk-evm/explorer.md)：ブラウザーでブロックを読み込み、その証明を検証します。
* [外部呼び出し](https://docs.rome.builders/ja/canton-zk-evm/explorer.md#external-calls)：各ブロックのCantonコミットと、その確定時間。
* [ブリッジ](https://docs.rome.builders/ja/canton-zk-evm/bridge.md)：Bridgeアプリ、現在の送金対象、Cantonウォレットの状況。
* [仕組み](https://docs.rome.builders/ja/canton-zk-evm/how-it-works.md#from-your-transaction-to-final-on-canton)：トランザクションからCantonブロックのコミットまで、「確定」の意味を説明します。

## 双方向のCantonアセット

資産は双方向に移動します。Ostia上のERC-20は、Canton上でツインとして扱うことができます。ボルトに預け入れると、Cantonのアカウントに同額が保有され、償還するとERC-20が払い戻されます。Canton CoinはCCトークンとしてOstiaに移動し、戻すこともできます。現在、Canton側の処理はRomeのテストパーティが実行しています。独自のCantonウォレットを [Bridge](https://docs.rome.builders/ja/canton-zk-evm/bridge.md) に接続することは、まだできません。エクスプローラーでは、各ツインの供給量とボルトの保有量を確認できます。

**参照先**

* [ブリッジ](https://docs.rome.builders/ja/canton-zk-evm/bridge.md)：Bridgeが現在移動させる資産。
* [入金、出金、支払い](https://docs.rome.builders/ja/canton-zk-evm/deposits-withdrawals-payments.md#canton-twins-of-erc-20-tokens)：ロックと償還のフロー、およびCanton Coin。
* [Ostia TestNet](https://docs.rome.builders/ja/canton-zk-evm/testnet.md#canton-assets-on-testnet)：ボルト、ツイン、CCトークンのアドレス、およびツインレジストリサービス。
* [エクスプローラー](https://docs.rome.builders/ja/canton-zk-evm/explorer.md#twins-and-canton-assets)： `/twins` ページ。
* [Cantonで開発する](https://docs.rome.builders/ja/canton-zk-evm/build-with-canton.md)：ツインレジストリの呼び出し、ERC-20としてのCanton Coin、支払い、OTC取引所。
* [信頼モデルと制限](https://docs.rome.builders/ja/canton-zk-evm/trust-model.md#what-the-twins-trust)：ツインを支える仕組み。
* [Ostia を試す](https://github.com/rome-protocol/canton-zk-evm/blob/main/docs/TRY-OSTIA.md#canton-twins-and-canton-coin-on-devnet)：リポジトリにある簡潔なガイド。

## Cantonバリデーターと参加者オペレーター

Ostiaでは、確認を行う参加者に隣接するサイドカーがブロックを検証するまで、Cantonはブロックをコミットしません。TestNetでは、その参加者はRomeです。サイドカーは検証器を実行し、証明、ヘッダー、トランザクションルートを検証します。検証に失敗すると、ブロックはコミットされません。

TestNetでは、1つの参加者、すなわちRome自身が、すべてのOstiaパーティをホストしています。そのサイドカーだけが確認者です。現在、Ostia TestNetのブロックを確認する参加者はほかにありません。Romeのバリデーターは、Canton 3.7.2を使用してSplice 0.10.1を実行しています。 [信頼モデルと制限](https://docs.rome.builders/ja/canton-zk-evm/trust-model.md#local-demo-vs-ostia-testnet) では、この確認者が1つだけの構成と、ローカルネットワークにある2つの確認者の構成を比較します。現在は、既存の参加者モードを使って、すでに運用している参加者上で独自のOstiaを実行できます。

**使用するもの**

* Cantonが外部呼び出し拡張機能を通じて呼び出すサイドカー。
* ラップされた証明の検証に使用する検証器。
* チェーンとそのブロックを保持するDamlパッケージ。
* すでに運用している参加者上にOstiaをセットアップするスクリプト。

**参照先**

* [sidecar/](https://github.com/rome-protocol/canton-zk-evm/tree/main/sidecar)：Cantonが呼び出すサービス。
* [verifier/](https://github.com/rome-protocol/canton-zk-evm/tree/main/verifier)：平易なRustで書かれた証明検証処理。
* [daml/](https://github.com/rome-protocol/canton-zk-evm/tree/main/daml)：Damlパッケージ。次のものが含まれます。 `Advance`.
* [network/README.md](https://github.com/rome-protocol/canton-zk-evm/blob/main/network/README.md#running-on-an-existing-participant-the-canton-network)：「既存の参加者上で実行する」。
* [network/external/](https://github.com/rome-protocol/canton-zk-evm/tree/main/network/external)：参加者の設定、サイドカー、セットアップスクリプト。
* [独自のOstiaを実行する](https://docs.rome.builders/ja/canton-zk-evm/run-it-locally.md#run-on-an-existing-participant)：このドキュメントに記載された手順を同じように実行します。
* [信頼モデルと制限](https://docs.rome.builders/ja/canton-zk-evm/trust-model.md#operator-confirmer-and-gateway-authority)：オペレーターと確認者が何を見て、何を実行できるか。

## 証明者オペレーター

証明者は各ブロックから証明を生成し、確認者のサイドカーがそれを検証します。GPUワーカーを1つ使ってZisKを実行します。Ostiaの証明者は、48 vCPUのマシン上で動作するNVIDIA RTX PRO 6000 Blackwell Server Edition（96 GB）1台です。TestNetでは、Romeがこの証明者1台を運用しています。これらのスクリプトは、独自のOstia用に証明者を実行するためのものです。

**使用するもの**

* `install.sh` を使って、固定バージョンのZisKリリースとそのキーをインストールします。
* `start.sh` でコーディネーターとGPUワーカーを起動します。
* `prove-one.sh` で1つの入力を証明し、結果を検証します。
* ゲストとは、証明対象のプログラムです。ビルドは固定のフォルダーで実行されるため、ビルド結果が記録済みのprogramVKと一致するか確認できます。

**参照先**

* [prover/](https://github.com/rome-protocol/canton-zk-evm/tree/main/prover)には、上記のスクリプトに加えて、 `build-guest.sh`.
* [guest/](https://github.com/rome-protocol/canton-zk-evm/tree/main/guest)には、ゲストと、ビルド結果が記録済みのprogramVKと一致するかを確認する方法が含まれています。
* [Ostiaの証明者ホスト](https://docs.rome.builders/ja/canton-zk-evm/prover-host.md)には、ホスト要件、ビルドと実行の手順、ゲストキーの再現方法が記載されています。
* [測定結果](https://docs.rome.builders/ja/canton-zk-evm/measurements.md)には、証明にかかる時間と、測定に使用したハードウェアが記載されています。

## 監査担当者と研究者

**使用するもの**

* ゲストにコンパイルされるチェーンルール。
* 証明の検証とストレージ証明のコード。
* Damlのチェーンレコードとその `Advance` 選択肢。
* ゲートウェイコントラクト。

**参照先**

* [guest/](https://github.com/rome-protocol/canton-zk-evm/tree/main/guest)には、証明対象のプログラムと、それが適用するルールが含まれています。
* [verifier/](https://github.com/rome-protocol/canton-zk-evm/tree/main/verifier)には、ラップされた証明の検証処理が含まれています。
* [mpt/](https://github.com/rome-protocol/canton-zk-evm/tree/main/mpt)には、Merkle-Patriciaストレージ証明が含まれています。
* [daml/](https://github.com/rome-protocol/canton-zk-evm/tree/main/daml)には、チェーンレコードと `Advance`.
* [gateway/](https://github.com/rome-protocol/canton-zk-evm/tree/main/gateway)には、ブロックに必要な条件をCantonに伝える唯一のEVMコントラクトが含まれています。
* [信頼モデルと制限](https://docs.rome.builders/ja/canton-zk-evm/trust-model.md) および [証明されること、証明されないこと](https://docs.rome.builders/ja/canton-zk-evm/what-is-proven.md)では、証明によって保証される内容と、各項目を誰が検証するかを説明します。
* [docs/DESIGN.md](https://github.com/rome-protocol/canton-zk-evm/blob/main/docs/DESIGN.md) および [SECURITY.md](https://github.com/rome-protocol/canton-zk-evm/blob/main/SECURITY.md)では、設計と、問題を非公開で報告する方法を説明します。

## 独自のOstiaを実行する

[独自のOstiaを実行する](https://docs.rome.builders/ja/canton-zk-evm/run-it-locally.md) では、テスト、GPUを使用したローカルCantonネットワーク、既存のCanton参加者へのデプロイを扱います。


---

# 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/ja/canton-zk-evm/start-here.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.
