> 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/ji-ben-gai-nian/choose-your-core.md).

# コアを選ぶ

デュアルレーンのアプリは、コアロジックをSolidity側に置くか、ネイティブなSolana側に置くかを選べます。これは判断次第です。アプリにとって何が重要かを比較してください。

ほとんどの Rome アプリはデュアルレーンです。MetaMask（EVM）ユーザーと Phantom（Solana）ユーザーの両方が到達する、1つの共有状態を持ちます。これには、対称的な2つの形で実装でき、違いは **どちら側がコアロジックを持つかです。** どちらを選ぶべきかに厳密なルールはありません—何が重要かに基づく緩やかな判断です *あなたの* アプリにとって重要な要素、つまり既にあるコードやアセット、チームの専門性、セキュリティ体制、好みのツール、性能、そして各利用者がどう使うかで決まります。

## (a) Solidity をコアにする; Solana ユーザーは合成送信者経由

ロジックは Solidity コントラクトです。Phantom ユーザーの Solana 署名は、Rome 由来のアイデンティティ（ `external_auth` PDA）からの EVM トランザクションとして実行されます—EVM キーは一切不要です。すでに Solidity コントラクトがある場合（特に堅牢化済み、または監査済みのもの）、標準的な EVM ツール群（Hardhat / Foundry / viem）を使いたい場合、またはロジックが単純な場合に、よく適した選択です。

*詳細:* [aerarium](https://github.com/rome-protocol/aerarium) — EVM と Solana のユーザーが共有する Compound v3 の貸借市場（Solidity コア）。

## (b) ネイティブ Solana プログラムをコアにする; EVM ユーザーは薄い CPI ルーター経由

ロジックはネイティブの Solana プログラムです。薄い Solidity ルーターにより、EVM ユーザーは CPI 経由でそれに到達できます。すでに Solana プログラムがある場合や、コアをネイティブで動かすことが構築内容にとって重要な場合に、よく適した選択です。

*詳細:* [rome-dex](https://github.com/rome-protocol/rome-dex) — EVM ルーターを備えたネイティブ AMM（Solana コア）で、両レーンが1つのプールを取引します。

## たとえば: 性能

性能は、 *場合があります* 選択の決め手になることがあります—これは一例として考えてください。ネイティブの Solana 実行は、重いロジックでは EVM インタプリタよりかなり安くなることがあります。私たちが計測したあるスワップでは、ネイティブ実行のほうが概ね 6 倍安くなりました。アプリに高頻度で計算負荷の高い経路があるなら、その差は重要かもしれません。そうでなければ、決定要因にはならないでしょう。ルールではなく、多くの入力の一つとして扱ってください。

## どちらを選んでも

コアは **権限非依存に保ち** — どの権限が署名してもそれに従って処理し、呼び出し元は Solana の pubkey にできます *または* EVM ユーザーの PDA — アカウント集合を軽量かつ ALT に適した形に保ち、EVM レーンのコストを低く維持し、 **両レーンをテストしてください。**

## 次は何をするか

* [EVM から Solana を呼び出す](https://docs.rome.builders/ja/gaido/call-solana-from-evm.md) — 形 (b) の CPI の仕組み、および任意の Solidity→Solana 呼び出し。
* [計算予算](https://docs.rome.builders/ja/ji-ben-gai-nian/compute-budget.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/ja/ji-ben-gai-nian/choose-your-core.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.
