MT Capital Research Report: Comprehensive Interpretation of Parallel EVM, Project Overview and Future Prospects

CN
1 year ago

The Parallel EVM's Basic Concept

Introduction to EVM

The Ethereum Virtual Machine (EVM) is the core component of the Ethereum blockchain, serving as its computational engine. It is a Turing-complete machine that provides a runtime environment for executing smart contracts on the Ethereum network, crucial for maintaining trust and consistency within the entire Ethereum ecosystem.

The EVM executes smart contracts by processing bytecode, which is a more basic form of smart contract code compiled from high-level programming languages (such as Solidity). These bytecodes consist of a series of opcodes used to perform various functions, including arithmetic operations and data storage/retrieval. The EVM operates as a stack machine, processing operations in a last-in, first-out manner, with each operation in the EVM incurring a related gas cost. This gas system measures the computational work required to execute operations, ensuring fair resource allocation and preventing network abuse.

In Ethereum, transactions play a crucial role in the functionality of the EVM. There are two types of transactions: those that result in message calls and those that result in contract creation. Contract creation leads to the creation of a new contract account containing the compiled bytecode of the smart contract, which is then executed when another account makes a message call to it.

The architecture of the EVM includes components such as bytecode, stack, memory, and storage. It has a dedicated memory space for temporarily storing data during execution and a persistent storage space on the blockchain for indefinitely storing data. The design of the EVM ensures the secure execution of smart contracts by isolating them to prevent reentrancy attacks and implementing various security measures such as gas and stack depth limits.

Furthermore, the influence of the EVM extends beyond Ethereum, as EVM-compatible chains extend its reach to a wider range of applications. While these chains may differ, they maintain compatibility with Ethereum-based applications, enabling seamless interaction with Ethereum-based applications across various domains such as enterprise solutions, GameFi, and DeFi.

Necessity of Parallel EVM

The necessity of Parallel EVM (Ethereum Virtual Machine) lies in its ability to significantly enhance the performance and efficiency of blockchain networks. Traditional EVM processes transactions sequentially, which not only consumes a large amount of energy but also imposes a heavy burden on network validators. This processing method often leads to high transaction costs and inefficiency, considered a major obstacle to the widespread adoption of blockchain.

Parallel EVM, by allowing multiple operations to execute simultaneously, fundamentally changes the consensus process. The capability for parallel execution greatly enhances the network's throughput, thereby strengthening the overall performance and scalability of the entire blockchain. Utilizing Parallel EVM, blockchain networks can process more transactions in a shorter time, effectively addressing common congestion issues and slow processing times in traditional blockchain systems.

Parallel EVM has a significant impact on various aspects of blockchain technology:

  • It provides a more energy-efficient transaction processing method. By alleviating the workload of validators and the entire network, Parallel EVM contributes to building a more sustainable blockchain ecosystem.

  • Increased scalability and throughput directly result in reduced transaction fees. Users will enjoy a more cost-effective experience, making blockchain platforms more appealing to a wider audience.

  • Processing multiple transactions simultaneously, rather than sequentially, means dApps can run more smoothly even during periods of high network demand.

Implementation Methods of Parallel EVM

In the current EVM architecture, the most granular read and write operations are sload and sstore, used for reading and writing data from the state trie. Therefore, ensuring that different threads do not conflict on these two operations is a simple entry point for implementing parallel/concurrent EVM. In fact, Ethereum has a special transaction type that includes a special structure called an "access list," allowing transactions to carry the storage addresses they will read and modify. This provides a good starting point for implementing schedule-based concurrent methods.

In terms of system implementation, there are three common forms of parallel/concurrent EVM:

  1. Multi-threading of a single EVM instance.

  2. Multi-threading of multiple EVM instances on a single node.

  3. Multi-threading of multiple EVM instances on multiple nodes (essentially system-level sharding).

The differences between parallel/concurrent processing in blockchain and database systems are:

  • Unreliable timestamps make it difficult to deploy time-based concurrent methods in the blockchain world.

  • Absolute determinism on blockchain systems to ensure that transactions re-executed by different validators are the same.

  • Validators' ultimate goal is higher profits rather than faster transaction execution.

So, what do we need?

  • System-level consensus is needed, and faster execution will bring higher returns.

  • Considering the multivariate scheduling algorithm of block limits, it can capture more income while being able to execute faster.

  • More granular data operations, including opcode-level data locking, memory caching layer, etc.

Major Projects and Their Technologies

Monad Labs

Monad is an EVM Layer 1, aiming to significantly improve the scalability and transaction speed of blockchain through its unique technical features. One of Monad's key advantages is its ability to process up to 10,000 transactions per second and has a 1-second block time. This is made possible by its MonadBFT consensus mechanism and EVM compatibility, enabling efficient and fast transaction processing.

One of the most notable features of Monad is its parallel execution capability, allowing it to process multiple transactions simultaneously. This significantly improves network efficiency and throughput compared to the sequential processing method used in traditional blockchain systems.

Monad's development is led by Monad Labs, co-founded by Keone Hon, Eunice Giarta, and James Hunsaker. The project has successfully raised a seed funding of $19 million and plans to launch a testnet in the mid-Q1 of 2024, followed by the mainnet launch.

Monad has been optimized in the following four main areas, making it a high-performance blockchain:

  1. MonadBFT:

    MonadBFT is a high-performance consensus mechanism for the Monad blockchain, used to achieve transaction ordering consistency under partially synchronous conditions in the presence of Byzantine actors. It is an improved version based on HotStuff, using a two-phase BFT algorithm, with optimistic responsiveness and linear communication overhead in common cases and quadratic communication overhead in timeout cases. In MonadBFT, the leader sends a new block and the previous round's QC (Quorum Certificate) or TC (Timeout Certificate) to the validators each round. Validators audit the block, and if they agree, they send a signed "yes" vote to the next round's leader. This process aggregates "yes" votes from **2f+1** validators using threshold signatures to form a QC. In common communication cases, the leader sends the block to the validators, and the validators directly send votes to the next round's leader. MonadBFT also uses pairing-based BLS signatures to address scalability issues, aggregating incremental signatures into one signature, and verifying a single valid aggregate signature can prove that shares associated with the public key have all signed the message. For performance considerations, MonadBFT uses a hybrid signature scheme, where BLS signatures are only used for aggregatable message types (votes and timeouts). The integrity and authenticity of messages are still provided by ECDSA signatures. Due to these features, MonadBFT achieves efficient and robust blockchain consensus.

  2. Delayed Execution:

    This is a key innovation that decouples the execution process from the consensus process. In this architecture, the consensus process involves nodes agreeing on the official ordering of transactions, while execution is the actual process of executing these transactions and updating the state. In this design, the leader proposes transaction ordering but does not know the final state root when proposing the ordering; validators do not know if all transactions in the block will execute successfully when voting on the block's validity.

    This design allows Monad to achieve significant speed improvements, enabling a single-shard blockchain to scale to millions of users. In Monad, each node independently executes transactions in block N while reaching consensus on block N, and begins to reach consensus on block N+1. This approach allows for a larger gas budget, as execution only needs to keep up with the speed of consensus. Additionally, because execution only needs to keep up with consensus on average, this approach is more tolerant to specific changes in computational time.

    To further ensure state machine replication, Monad includes a delayed Merkle root in block proposals, delayed by D blocks. This delayed Merkle root ensures consistency across the entire network even in the presence of nodes executing incorrectly or maliciously.

    In MonadBFT, the final determinism is single-slot (1 second), and the execution results typically lag behind by less than 1 second on full nodes. This single-slot final determinism means that users will see the official ordering of transactions after a single block following the submission of transactions. There is no possibility of reordering unless a supermajority of the network behaves maliciously. For users who need to quickly know the results of transactions (e.g., high-frequency traders), running a full node minimizes latency.

  3. Parallel Execution:

    It enables Monad to execute multiple transactions simultaneously. This approach initially seems different from Ethereum's execution semantics, but in reality, it is not. Blocks in Monad are the same as blocks in Ethereum, both being linearly ordered sets of transactions. The results of executing these transactions are the same between Monad and Ethereum.

    In parallel execution, Monad uses an optimistic execution approach, starting to execute subsequent transactions before earlier transactions in the block are completed. This sometimes leads to incorrect execution results. To address this issue, Monad tracks the inputs used in the execution of transactions and compares them with the outputs of previous transactions. If differences exist, it indicates the need to re-execute the transaction with the correct data.

    Additionally, Monad uses a static code analyzer to predict dependencies between transactions during execution to avoid invalid parallel execution. In the best case, Monad can predict many dependencies in advance; in the worst case, it falls back to a simple execution mode.

    Monad's parallel execution technology not only improves network efficiency and throughput but also reduces cases of transaction failures caused by parallel execution through optimized execution strategies.

  4. MonadDb:

    MonadDb is optimized for data storage and processing. It is part of Monad's optimization strategy aimed at improving overall network performance, particularly in handling state and transaction data. This component design enhances the efficiency and scalability of data storage, improving the blockchain network's ability to handle large volumes of data. It includes improved data indexing mechanisms, more efficient storage structures, and optimized data access paths. These optimizations help reduce data access times, improve transaction processing speed, and enhance the overall performance of the blockchain network.

Ecosystem Projects

Tayaswap

TayaSwap is an AMM DEX based on Monad, supported by SubLabs, allowing the trading of assets without traditional order books or intermediaries. AMM relies on mathematical formulas and smart contracts to facilitate token exchanges, determine prices, and enable peer-to-peer transactions.

Ambient Finance

Ambient (formerly CrocSwap) is a decentralized trading protocol that allows the combination of concentrated and constant product liquidity for any pair of blockchain assets in a bilateral AMM. Ambient operates the entire DEX in a single smart contract, where a single AMM pool is a lightweight data structure rather than individual smart contracts.

Shrimp Protocol

Shrimp is a (3,3) DEX with a flywheel token economy, supporting real-world assets, and is set to land on Monad.

Catalyst

Catalyst is a permissionless liquidity solution for modular blockchains, designed to connect all chains and provide access to any asset anywhere. Catalyst enables developers to automatically connect to all chains, gain access to users in a unified ecosystem, and its simple, decentralized, and self-hosted design ensures secure and seamless access to liquidity.

Swaap

Swaap is a market-neutral automated market maker (AMM). It combines oracles and dynamic spreads to provide sustainable returns for liquidity providers and cheaper prices for traders. The protocol significantly reduces impermanent loss and provides multi-asset pools.

Elixir

Elixir is a decentralized market-making protocol that interacts with centralized exchanges through API calls using market-making algorithms, bringing liquidity to long-tail crypto assets.

Timeswap

Timeswap is a decentralized currency market protocol based on AMM, which does not use oracles or liquidators. Unlike Uniswap, borrowing on Timeswap involves trading tokens until the repayment is completed. The lender provides asset A for borrowing, while "protecting" the borrower with a certain amount of asset B as collateral. Users can adjust their risk profile to obtain higher interest rates with a lower collateral ratio, and vice versa.

Poply

Poply is a community-based NFT marketplace specifically tailored for the Monad chain, showcasing and empowering NFT collections created specifically for this chain, attracting individuals interested in unique NFTs to trade ERC-721 tokens using AI-generated art and user-friendly interfaces.

Switchboard

Switchboard is a permissionless, customizable, multi-chain oracle protocol for general data feeds and verifiable randomness. By allowing anyone to push any form of data, regardless of data type, it provides users with a one-stop service and helps drive the development of next-generation decentralized applications.

Pyth Network

Pyth Network, developed by Douro Labs, is a next-generation price oracle solution aimed at providing valuable on-chain financial market data to projects, protocols, and the public through blockchain technology, including cryptocurrencies, stocks, forex, and commodities. The network aggregates first-party price data from over 70 trusted data providers and publishes it for use by smart contracts and other on-chain or off-chain applications.

AIT Protocol

AIT Protocol is an artificial intelligence data infrastructure that provides Web3 AI solutions. The decentralized market of AIT offers a unique and extensive opportunity for millions of cryptocurrency users to participate in "earn while training" tasks, allowing them to contribute to the development of artificial intelligence models while earning rewards.

Notifi

Notifi provides a universal communication layer for all Web3 projects, planning to embed notification and messaging features into decentralized applications to interact with users on digital and on-chain channels. The Notifi API allows developers to unlock complex communication infrastructure through a simple API, providing a native user experience for all applications worldwide. Notifi Center offers users a customized notification experience, allowing them to view and manage all information in the Web3 world from mobile and web platforms, while Notifi Push enables marketers to create cohesive multi-channel engagement to drive business growth and retain their user base.

ACryptoS

ACryptoS is an advanced crypto strategy platform, serving as a multi-chain yield aggregator optimizer and DEX, offering various unique products including auto-compounding single-asset vaults, dual-asset LP vaults, unique liquidity vaults, Balancer-V2 branch DEX, and stablecoin swaps. Initially launched on the BNB chain in November 2020, ACryptoS has expanded to 11 chains, deploying over 100 vaults to support DeFi users and protocols.

MagmaDAO

MagmaDAO is a DAO-controlled liquidity staking protocol aimed at achieving fair token distribution through ecosystem competition airdrops. It is the first distributed validator outside of Ethereum, built on the fastest, cheapest, and most censorship-resistant EVM L1 Monad.

Wombat Exchange

Wombat Exchange is a multi-chain stablecoin exchange with open liquidity pools, low slippage, and single-sided staking.

Wormhole

Wormhole is a decentralized universal messaging protocol that enables developers and users of cross-chain applications to leverage the advantages of multiple ecosystems.

DeMask Finance

DeMask Finance is an on-chain AMM protocol for trading between NFTs and ERC20 tokens. DeMask Finance supports the creation of NFT collections and NFT launchpads paired with ETH and other tokens. The NFT decentralized exchange supports ERC-1155 NFTs or other tokens paired with ETH and ERC-20 tokens. The DeMask protocol aims to add liquidity to the NFT market, providing an interface for seamless exchange between ERC20 tokens or native tokens and NFT collections. DeMask is an interconnected smart contract system, allowing all users to create and own liquidity pools and conduct trades in a fully automated manner. Each pool will hold a pair of assets, including a token and an NFT, providing a fixed price for instant trades. This also allows other contracts to estimate the average price of two assets over time. Users with liquidity pools will be rewarded when exchanging asset pairs.

Sei V2

Sei V2 is a significant upgrade to the Sei network, aiming to be the first fully parallelized EVM. This upgrade will enable Sei to have the following features:

  1. Backward Compatibility with EVM Smart Contracts:

    This means that developers can deploy audited, EVM-compatible smart contracts on Sei without changing their code. This is crucial for developers as it simplifies the process of migrating existing smart contracts from other blockchains like Ethereum to Sei.

    From a technical perspective, Sei nodes will automatically import Geth – the Go implementation of the Ethereum Virtual Machine. Geth will be used to process Ethereum transactions, and any resulting updates (including state updates or calls to non-EVM-related contracts) will be routed through a special interface created by Sei for the EVM.

  2. Optimistic Parallelization:

    It allows the blockchain to support parallelization without requiring developers to define any dependencies. This means that all transactions can run in parallel, and when conflicts arise (e.g., transactions touch the same state), the chain will track the storage portions each transaction touches and re-run these transactions in sequence. This process will continue recursively until all unresolved conflicts are resolved. Because transactions are sequentially ordered in blocks, this process is deterministic, simplifying the developer workflow while maintaining chain-level parallelism.

  3. SeiDB:

    It will introduce a new data structure called SeiDB to optimize the platform's storage layer. The primary goal of SeiDB is to prevent state bloat, where the network becomes overly data-heavy, while simplifying the state synchronization process for new nodes. This design aims to enhance the overall performance and scalability of the Sei blockchain.

    Sei V2 achieves this goal by transforming the traditional IAVL tree into a dual-component system – state storage and state commitment. This change significantly reduces latency and disk usage, and Sei V2 also plans to transition to using PebbleDB to improve the read-write performance of multi-threaded access.

  4. Interoperability with Existing Chains:

    Sei V2 allows seamless integration between EVM and any other execution environment supported by Sei, providing developers with a smoother experience to access native tokens and other chain functionalities such as staking. It will also create a new component to support EVM smart contracts. These EVM smart contracts will benefit from all the changes made to consensus and parallelization and will also be able to interact with existing Cosmwasm smart contracts.

In terms of performance, Sei V2 will provide a throughput of 28,300 batch transactions per second, with a block time and finality of 390 milliseconds each, enabling Sei to support more users, provide better interaction experiences, and offer cheaper transaction costs than existing blockchains.

The main upgrade progress of Sei V2 is currently nearing code completion. Once the audit is completed, this upgrade will be released on the public testnet in the first quarter of 2024 and deployed to the mainnet in the first half of 2024.

Neon

Neon EVM leverages the capabilities of the Solana blockchain to provide an efficient environment for Ethereum dApps. It runs as a smart contract within Solana, allowing developers to deploy Ethereum dApps with minimal or no code changes and benefit from the advanced features of Solana. The architecture and operation of Neon EVM focus on security, decentralization, and sustainability, providing Ethereum developers with a seamless transition to the Solana environment. By enabling parallel transaction execution, high throughput, and reduced costs, Neon EVM utilizes the advantages of Solana, such as low fees and high transaction speeds. The main components of the Neon EVM ecosystem include:

  1. Neon EVM Program:

    It is an EVM compiled into Berkeley Packet Filter bytecode, running on Solana. It processes Ethereum-like transactions (Neon transactions) on Solana, following Ethereum rules. Neon EVM is configured through decentralized multi-sign EVM accounts, allowing participants to modify Neon EVM code and set parameters.

    The process of handling transactions by Neon EVM involves several key steps. Users initiate Ethereum-like transactions (N-tx) using Ethereum-compatible wallets. These transactions are encapsulated into Solana transactions (S-tx) by Neon Proxy and then passed to the Neon EVM program hosted on Solana. The Neon EVM program unpacks the transactions, verifies user signatures, loads EVM state (including account data and smart contract code), executes transactions in the Solana BPF (Berkeley Packet Filter) environment, and updates Solana's state to reflect the new Neon EVM state.

  2. Neon Proxy:

    It enables Ethereum dApps to be ported to Neon with minimal reconfiguration. Neon Proxy packages EVM transactions into Solana transactions in the form of a containerized solution for ease of use. Operators running Neon Proxy servers facilitate the execution of Ethereum-like transactions on Solana, accepting NEON tokens as gas fees and other payments within the Solana ecosystem.

  3. Neon DAO:

    The DAO provides governance services for the Neon Foundation and guides future research and development. It operates a series of contracts on Solana, providing a governance layer that controls Neon EVM functionality. NEON token holders can participate in DAO activities, including proposing and voting on decisions.

  4. NEON Token:

    This utility token serves two main functions – paying gas fees and participating in governance through the DAO.

  5. Integrations and Tools:

    Neon EVM supports various integrations and tools for development and analysis. These include block explorers (such as NeonScan), ERC-20 SPL wrappers for token transfers, NeonPass for transferring ERC-20 tokens between Solana and Neon EVM, NeonFaucet for providing test tokens, and compatibility with EVM-compatible wallets such as MetaMask.

Eclipse

Eclipse is a Layer 2 solution for Ethereum designed to significantly accelerate transaction processing by leveraging the Solana Virtual Machine (SVM). The design of Eclipse aims to achieve speed and scalability, adopting a modular rollup architecture and integrating key technologies such as Ethereum settlement, SVM smart contracts, Celestia data availability, and RISC Zero security.

Specifically, Eclipse Mainnet combines the best modular stack components:

  • Settlement Layer - Ethereum: Eclipse uses Ethereum as its settlement layer. Transactions are finalized and secured at this layer. Using Ethereum not only means leveraging its robust security and liquidity but also using ETH as the gas token for transaction fees. This setup allows Eclipse to inherit strong security features from Ethereum.

  • Execution Layer - SVM: Eclipse adopts SVM for smart contract execution. In contrast to the sequential execution of transactions by EVM, SVM can process transactions in parallel. Its Sealevel runtime's feature of parallel processing non-overlapping state transactions enables Eclipse to scale horizontally and increase throughput.

  • Data Availability - Celestia: To ensure timely and verifiable data availability, Eclipse adopts Celestia. Celestia provides a scalable and secure platform for data publication, a crucial support for Eclipse's high throughput.

  • Fraud Proofs - RISC Zero: Eclipse integrates RISC Zero for zero-knowledge fraud proofs, eliminating the need for serialization of intermediate state sequences, thereby improving system efficiency and security.

The design goal of Eclipse is to provide a truly scalable general Layer 2 solution for Ethereum. It aims to address the limitations of specific application rollups and the resulting isolation and complexity issues that could degrade user and developer experiences. Through its modular rollup system and integrated technical components, Eclipse provides an attractive choice for building scalable and high-performance dApps on Ethereum.

Lumio

Lumio is a Layer 2 solution developed by Pontem Network to address the scalability challenges of Ethereum and bring a Web2-like experience to Web3. It stands out as a unique rollup in the blockchain space because it can simultaneously support EVM and the Move VM used by Aptos. This dual compatibility allows Lumio to process transactions on Aptos while settling on Ethereum, providing a versatile and efficient solution for dApp developers and users. It has several key features:

  1. Dual Virtual Machine Compatibility: Lumio uniquely supports both EVM and Aptos' Move VM. This dual compatibility allows Lumio to seamlessly integrate the functionalities of Ethereum and Aptos, enhancing the flexibility and efficiency of dApp development and execution.

  2. High Throughput and Low Latency: By leveraging high-performance chains like Aptos for transaction ordering, Lumio significantly boosts transaction bandwidth. This integration ensures that Lumio can efficiently process a large volume of transactions while maintaining the security and liquidity features of Ethereum.

  3. Optimistic Rollup Technology: Lumio utilizes an open-source optimistic rollup technology with an OP stack. Optimistic rollups are known for their efficient transaction processing and lower costs, making them suitable for scaling Ethereum-based applications.

  4. Flexible Gas Fee Economic Model: Lumio introduces an application-centric gas fee economic model. This model allows application developers to directly benefit from network usage, potentially incentivizing more innovation and user-friendly dApp development.

  5. Interoperability and Integration: Lumio is capable of processing transactions on Aptos and settling on Ethereum, demonstrating a high degree of interoperability between different blockchain ecosystems. This feature enables developers to fully leverage the advantages of Ethereum and Aptos in their applications.

  6. Balancing Security and Scalability: By combining Ethereum's robust security and Aptos' scalability, Lumio provides an attractive solution for building high-performance, secure dApps. The architecture of Lumio is designed to effectively balance these two key aspects.

Lumio is currently in the closed testing phase and is planned to be gradually rolled out to selected users. This approach allows for comprehensive testing and improvements to the platform based on user feedback, ensuring a robust and user-friendly platform for broader release.

Other Parallel Projects in the Industry

Solana

Solana's Sealevel technology is a key component of its blockchain architecture, aimed at enhancing the performance of smart contracts through parallel processing. This approach significantly differs from the single-threaded processing of other blockchain platforms, such as EVM and EOS' WASM-based runtimes, which process one contract at a time and sequentially modify the blockchain state.

Sealevel enables Solana's runtime to process tens of thousands of contracts in parallel, utilizing all available cores of validators. This parallel processing capability is made possible because Solana transactions explicitly describe all the state they will read or write during execution, allowing non-overlapping transactions to be executed concurrently and transactions that only read the same state to be processed.

The core functionality of Sealevel is based on Solana's unique architecture, including components such as the Cloudbreak account database and the Proof of History (PoH) consensus mechanism. Cloudbreak maps public keys to accounts, which maintain balances and data, while programs (stateless code) manage the state transitions of these accounts.

Transactions in Solana specify an instruction vector, with each instruction containing a program, program instructions, and a list of accounts the transaction wishes to read or write. This interface is inspired by low-level operating system interfaces to devices, allowing the Solana Virtual Machine (SVM) to sort through millions of pending transactions and schedule all non-overlapping transactions for parallel processing. Additionally, Sealevel can sort all instructions by program ID and run the same program on all accounts simultaneously, a process similar to SIMD (Single Instruction, Multiple Data) optimization used in GPUs.

Sealevel offers several benefits, including enhanced scalability, reduced latency, cost efficiency, and improved security. It enables the Solana network to process a significantly higher number of transactions per second, provide nearly instant transaction finality, and reduce transaction fees. Even during parallel processing, the security of smart contracts is maintained through Solana's robust security protocols.

By implementing high-speed parallel processing and increased transaction throughput, Sealevel makes Solana a powerful decentralized application platform.

Sui

Sui's parallel technology features make it an efficient, high-throughput blockchain platform suitable for various Web3 applications and use cases. These notable features work together to enhance the efficiency and throughput of its network:

  1. Narwhal and Bullshark Components: These two components are crucial to Sui's consensus mechanism. Narwhal serves as a memory pool, accelerating transaction processing, improving network efficiency, and ensuring data availability when submitted to Bullshark (the consensus engine). Bullshark is responsible for sorting the data provided by Narwhal, using Byzantine fault tolerance to validate the transactions' validity and distribute them in the network.

  2. Asset Ownership Model: In the Sui network, assets can be owned by a single owner or shared by multiple owners. Assets owned by a single owner can be freely transferred within the network, while shared assets require validation through the consensus system. This asset ownership system not only improves transaction processing efficiency but also allows developers to create various types of assets for their applications.

  3. Distributed Computing: Sui's design allows the network to scale resources based on demand, similar to cloud services. This means that as demand for the Sui network increases, network validators can increase processing power to maintain network stability and keep gas fees low.

  4. Sui Move Programming Language: Sui Move is Sui's native programming language designed to create high-performance, secure, and feature-rich applications. Based on the Move language, it aims to address the shortcomings of smart contract programming languages, improving the security of smart contracts and programmer efficiency.

  5. Programmable Transaction Blocks (PTB): PTB in Sui is a complex, composable sequence of transactions that can access any public on-chain Move function in smart contracts. This design provides strong guarantees for payment or finance-oriented applications.

  6. Horizontal Scalability: Sui's scalability extends beyond transaction processing to storage. This allows developers to define complex assets with rich attributes and store them directly on the chain without resorting to indirect off-chain storage to save on gas fees.

Fuel

In the Fuel network, "parallel transaction execution" is a key technology that enables the network to efficiently process a large volume of transactions. The core of this parallel execution is achieved through the use of strict state access lists based on the Unspent Transaction Output (UTXO) model, which is a fundamental element in Bitcoin and many other cryptocurrencies.

Fuel introduces the capability of parallel transaction execution in the UTXO model. By using strict state access lists, Fuel can process transactions in parallel, utilizing more CPU threads and cores that are typically idle in single-threaded blockchains. This allows Fuel to provide more computational power, state access, and transaction throughput compared to single-threaded blockchains.

Fuel addresses concurrency issues in the UTXO model. In Fuel, users do not directly sign UTXOs but instead sign contract IDs, indicating their intention to interact with contracts. As a result, users do not directly change the state, leading to the consumption of UTXOs. Instead, block producers are responsible for determining how various transactions in a block affect the overall state, impacting contract UTXOs. The consumed contract UTXOs create new UTXOs with the same core features but updated storage and balances.

To achieve parallel transaction execution, Fuel has developed a specific virtual machine called FuelVM. The design of FuelVM focuses on reducing wasteful processing in traditional blockchain virtual machine architectures while providing developers with more potential design space. It combines years of experience and lessons learned from the Ethereum ecosystem, which cannot be implemented on Ethereum due to the need to maintain compatibility with past versions.

Aptos

The Aptos blockchain adopts a parallel execution engine called Block-STM (Software Transaction Memory) to enhance its transaction processing capabilities. This technology allows Aptos to execute transactions in a predetermined order within each block and allocate transactions to different processor threads during execution. The core idea of this approach is to record the memory locations modified by transactions while executing all transactions. After all transaction results are verified, if a transaction is found to access a memory location modified by a previous transaction, that transaction will be invalidated. The aborted transaction will then be re-executed, and this process repeats until all transactions are executed.

Unlike other parallel execution engines, Block-STM maintains the atomicity of transactions without needing to know the data to be read/written in advance. This makes it easier for developers to build highly parallelized applications. Block-STM supports richer atomicity than other parallel execution environments, which often require breaking logical atomicity by splitting operations into multiple transactions. By reducing latency and improving cost efficiency, Block-STM enhances the user experience.

Additionally, Aptos adopts a consensus mechanism called AptosBFTv4, which is a rigorously proven production blockchain BFT protocol. This protocol optimizes responsiveness, providing low latency and high throughput, fully leveraging the advantages of the underlying network. AptosBFTv4 employs a pipeline design similar to a processor, ensuring maximal resource utilization at each step. As a result, a single node may participate in many aspects of consensus, from selecting transactions to include in a block to executing another set of transactions, writing the output of another set of transactions to storage, and authenticating the output of another set of transactions. This ensures that throughput is limited only by the slowest stage, rather than the sequential combination of all stages.

Challenges

Technical Challenges

In general, the core challenge of adopting parallel or concurrent approaches is data race issues, read-write conflicts, or data hazards. All these terms describe the same problem: different threads or operations attempting to read and modify the same data simultaneously. Implementing efficient and reliable parallel systems requires addressing complex technical issues, especially in ensuring predictable, conflict-free execution of parallel operations across thousands of decentralized nodes. Additionally, the challenge of technical compatibility lies in ensuring that new parallel processing methods can be compatible with existing EVM standards and smart contract code.

Ecosystem Adaptation

For developers, they may need to learn new tools and methods to maximize the advantages of parallel EVM. Additionally, users need to adapt to potential new interaction patterns and performance characteristics. This requires all participants in the ecosystem (including developers, users, and service providers) to have a certain level of understanding and adaptability to new technologies. Furthermore, a robust blockchain ecosystem relies not only on its technical features but also on widespread developer support and a rich array of applications. For new technologies like parallel EVM to succeed in the market, it is necessary to establish sufficient network effects to attract developer and user participation.

Increased System Complexity

Parallel EVM requires efficient network communication to support data synchronization across multiple nodes. Network latency or synchronization failures may lead to inconsistent transaction processing, increasing the complexity of system design. To effectively leverage the advantages of parallel processing, the system needs to intelligently manage and allocate computing resources. This may involve dynamically distributing loads across different nodes and optimizing the use of memory and storage. Developing smart contracts and applications that support parallel processing is more complex than traditional sequential execution models. Developers need to consider the characteristics and limitations of parallel execution, which may make the coding and debugging process more challenging. In a parallel execution environment, security vulnerabilities may be amplified, as a security issue could affect multiple parallelly executed transactions. Therefore, stricter security audits and testing processes are required.

Future Outlook

Parallel EVMs show tremendous potential in improving the scalability and efficiency of blockchain. These parallel EVMs represent a significant shift in blockchain technology, aiming to enhance transaction processing capabilities by executing transactions simultaneously on multiple processors. This approach breaks through the traditional sequential transaction processing, allowing for higher throughput and lower latency, which are crucial for the scalability and efficiency of blockchain networks.

The successful implementation of parallel EVMs largely depends on the foresight and skills of developers, especially in the design of smart contracts and data structures. These elements are crucial in determining whether transactions can be executed in parallel. Developers must consider parallel processing from the outset of a project to ensure that their designs enable independent execution of different transactions without interference.

Parallel EVMs also maintain compatibility with the Ethereum ecosystem, which is crucial for developers and users already involved in Ethereum-based applications. This compatibility ensures a smooth transition and integration of existing dApps, which is a challenge for systems like DAGs that typically require significant modifications to existing applications.

Developing parallel EVMs is seen as a key step in addressing the fundamental limitations of blockchain scalability. These innovations are expected to prepare blockchain networks for the future, enabling them to keep up with growing demands and become the cornerstone of the next generation Web3 infrastructure. While parallel EVMs offer tremendous potential, their successful implementation requires overcoming complex technical challenges and ensuring widespread ecosystem adoption.

免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到support@aicoin.com,本平台相关工作人员将会进行核查。

Share To
APP

X

Telegram

Facebook

Reddit

CopyLink