|
| 1 | +# Execution Layers in Rollkit |
| 2 | + |
| 3 | +Rollkit is designed to be modular and flexible, allowing different execution layers to be plugged in via the ABCI (Application Blockchain Interface) protocol. Rollkit defines a general-purpose execution interface ([see execution.go](https://github.com/rollkit/rollkit/blob/main/core/execution/execution.go)) that enables developers to integrate any compatible application as the rollup's execution layer. |
| 4 | + |
| 5 | +This means you can use a variety of ABCI or Reth compatible applications as the execution environment for your rollup. |
| 6 | + |
| 7 | +## Supported Execution Layers |
| 8 | + |
| 9 | +### ABCI-Compatible Execution Layers |
| 10 | + |
| 11 | +Any ABCI-compatible application can be used as the execution layer for a Rollkit rollup. This flexibility allows developers to choose the best execution environment for their use case, whether it's a custom application or an existing framework. |
| 12 | + |
| 13 | +A common example is a Cosmos SDK-based application, which provides a rich set of modules for staking, governance, IBC, and more, and is widely used in the Cosmos ecosystem. |
| 14 | + |
| 15 | +- [Cosmos SDK Documentation](https://docs.cosmos.network/) |
| 16 | +- [Cosmos SDK ABCI Documentation](https://docs.cosmos.network/main/build/abci/introduction) |
| 17 | +- [Rollkit ABCI Adapter](https://github.com/rollkit/go-execution-abci) |
| 18 | + |
| 19 | +### Reth |
| 20 | + |
| 21 | +Reth is a high-performance Ethereum execution client written in Rust. Rollkit can integrate Reth as an execution layer, enabling Ethereum-compatible rollups to process EVM transactions and maintain Ethereum-like state. This allows developers to build rollups that leverage the Ethereum ecosystem, tooling, and smart contracts, while benefiting from Rollkit's modular consensus and data availability. |
| 22 | + |
| 23 | +For more information about Reth, see the official documentation: |
| 24 | + |
| 25 | +- [Reth GitHub Repository](https://github.com/paradigmxyz/reth) |
| 26 | +- [Rollkit Reth Integration](https://github.com/rollkit/lumen) |
| 27 | + |
| 28 | +## How It Works |
| 29 | + |
| 30 | +- Rollkit acts as the consensus and data availability layer. |
| 31 | +- The execution layer (Cosmos SDK app or Reth) processes transactions and maintains application state. |
| 32 | +- Communication between Rollkit and the execution layer happens via the ABCI protocol or other supported interfaces. |
| 33 | + |
| 34 | +## Benefits |
| 35 | + |
| 36 | +- **Modularity:** Choose the execution environment that best fits your use case. |
| 37 | +- **Interoperability:** Leverage existing Cosmos SDK modules, deploy CosmWasm smart contracts, or use EVM tooling with Reth. |
| 38 | +- **Extensibility:** Easily upgrade or swap out the execution layer as your rollup evolves. |
| 39 | + |
| 40 | +For more details on integrating an execution layer with Rollkit, see the respective documentation links above. |
0 commit comments