> For the complete documentation index, see [llms.txt](https://docs.carrchain.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carrchain.io/products/integrations/layered-architecture.md).

# Layered Architecture

1. **Layer 1 (Ethereum Mainnet):**
   * **Security and Settlement:** CarrChain inherits Ethereum's security through the Rollup or AnyTrust protocols of Arbitrum.
   * **Data Finality:** Ethereum acts as the ultimate settlement layer, ensuring the integrity and finality of transactions executed on CarrChain.
2. **Layer 2 (Arbitrum):**
   * **Scalability with Rollup Technology:** Arbitrum uses Rollup technology to batch transactions and compress data, reducing fees and improving throughput.
   * **Data Availability Models:**
     * **Rollup Mode:** Posts all transaction data on Ethereum, offering full decentralization and security.
     * **AnyTrust Mode:** Reduces costs by maintaining data availability off-chain with a trusted data committee.
3. **Layer 3 (CarrChain):**
   * **Custom Native Gas Token:** CarrChain uses its own token for paying transaction fees, allowing for specialized economic models and incentives within the ecosystem.
   * **EVM+ Compatibility:** Supports smart contracts written in Solidity as well as additional languages like Rust, C, and C++ through Arbitrum Stylus.
   * **Application-Specific Logic:** Optimized for automotive use cases, providing tailored features for vehicle identity management, marketplaces, and automotive financial products.
