> 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/ko/core-concepts/choose-your-core.md).

# 코어 선택하기

듀얼 레인 앱은 핵심 로직을 Solidity 측이나 네이티브 Solana 측에 둘 수 있습니다. 이는 판단의 문제입니다 — 앱에 중요한 것이 무엇인지 따져보세요.

대부분의 Rome 앱은 이중 레인입니다: MetaMask(EVM) 사용자와 Phantom(Solana) 사용자 모두가 접근하는 하나의 공유 상태입니다. 두 가지 대칭적인 형태로 만들 수 있으며, 차이는 **코어 로직이 어느 쪽에 위치하느냐입니다.** 무엇을 선택해야 하는지에 대한 엄격한 규칙은 없습니다 — 다음에 무엇이 중요한지에 따라 부드럽게 판단하는 문제입니다 *당신의* 앱입니다: 이미 보유한 코드와 자산, 팀의 전문성, 보안 태세, 선호하는 도구, 성능, 그리고 각 사용자층이 이를 어떻게 사용할지.

## (a) Solidity 코어; 합성 발신자를 통한 Solana 사용자

귀하의 로직은 Solidity 계약입니다. Phantom 사용자의 Solana 서명은 그들의 Rome 파생 신원에서 발생한 EVM 트랜잭션으로 실행됩니다( `external_auth` PDA) — 사용자는 EVM 키가 전혀 필요하지 않습니다. 이미 Solidity 계약이 있거나(특히 강화되었거나 감사된 계약), 표준 EVM 도구(Hardhat / Foundry / viem)를 원하거나, 로직이 단순할 때 흔히 잘 맞습니다.

*읽기:* [aerarium](https://github.com/rome-protocol/aerarium) — EVM 및 Solana 사용자가 공유하는 Compound v3 대출 시장(Solidity 코어).

## (b) 네이티브 Solana 프로그램 코어; 얇은 CPI 라우터를 통한 EVM 사용자

귀하의 로직은 네이티브 Solana 프로그램입니다; 얇은 Solidity 라우터가 EVM 사용자가 CPI를 통해 접근할 수 있게 합니다. 이미 Solana 프로그램이 있거나, 코어를 네이티브로 실행하는 것이 구축하려는 것에 중요할 때 흔히 잘 맞습니다.

*읽기:* [rome-dex](https://github.com/rome-protocol/rome-dex) — EVM 라우터가 있는 네이티브 AMM(Solana 코어)으로, 양쪽 레인이 하나의 풀을 거래합니다.

## 예를 들어: 성능

성능은 하나의 요소이며 *어쩌면* 선택을 좌우할 수 있습니다 — 예시로 생각해 보세요. 네이티브 Solana 실행은 무거운 로직에서 EVM 인터프리터보다 훨씬 저렴할 수 있습니다: 우리가 측정한 한 스왑은 네이티브에서 대략 6배 더 저렴하게 실행되었습니다. 앱에 자주 실행되고 연산량이 많은 경로가 있다면, 그런 차이는 중요할 수 있습니다. 그렇지 않다면 아마 결정에 큰 영향을 주지 않을 것입니다. 이것을 규칙이 아니라 여러 입력 중 하나로 보세요.

## 어느 쪽을 선택하든

코어를 **권한에 종속되지 않게 유지하세요** — 어떤 권한이 서명하든 그에 따라 동작하므로, 호출자는 Solana 공개키일 수 있습니다 *또는* EVM 사용자의 PDA — 계정 집합을 간결하고 ALT 친화적으로 유지해 EVM 레인이 저렴하게 유지되도록 하고, **두 레인을 모두 테스트하세요.**

## 다음 단계

* [EVM에서 Solana 호출](https://docs.rome.builders/ko/developer-guides/call-solana-from-evm.md) — 형태 (b)의 CPI 메커니즘과 모든 Solidity→Solana 호출.
* [컴퓨트 예산](https://docs.rome.builders/ko/core-concepts/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/ko/core-concepts/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.
