Introduction
The XRPL EVM is built on top of the Cosmos SDK, an open-source toolkit for building blockchains. The Cosmos SDK framework provides a powerful foundation with several key benefits:
- Modularity: The Cosmos SDK employs a modular architecture, allowing developers to choose from predefined modules or create custom modules for various blockchain functionalities. This flexibility speeds up development while accommodating unique use cases.
- Interoperability: Custom blockchains built using the Cosmos SDK can natively interoperate with other blockchains through the IBC (Inter-Blockchain Communication) protocol. Refer to the Using IBC page for a deeper dive into this feature.
- Security: The Cosmos SDK abstracts and secures low-level blockchain mechanics, enabling developers to focus on building secure and efficient interactions between modules.
- Built-in interfaces: With the Cosmos SDK, users can easily query network and application state information through built-in interfaces that interact directly with blockchain stores and modules. For more details see the Using the API page.
To learn more about the Cosmos SDK and its capabilities, visit the official documentation.
Cosmos and EVM
The modular design of the Cosmos SDK enables seamless integration of the Ethereum Virtual Machine (EVM) as the execution layer. When a transaction is submitted, the execution layer processes it, updates the blockchain state, and ensures that the output is both deterministic and consistent across all nodes.
The Cosmos SDK's multistore architecture plays a key role in this process by allowing modules to define and manage their own state. This means that the execution layer, represented by the EVM in this case, triggers state updates across various modules, ensuring a well-structured and modular state management system.
The XRPL EVM leverages Evmos as its EVM implementation, providing robust compatibility with Ethereum tools and smart contracts while integrating seamlessly within the Cosmos ecosystem.
The diagram below illustrates the architecture of Cosmos SDK using Evmos as the EVM execution layer and CometBFT as the consensus layer. For a deeper dive into the Cosmos SDK architecture, refer to the official documentation.