<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by BitRexe Network on Medium]]></title>
        <description><![CDATA[Stories by BitRexe Network on Medium]]></description>
        <link>https://medium.com/@BitRexe?source=rss-1f9a4ca5aa7f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5a3I6YLjjQh7XXSOHee2AA.jpeg</url>
            <title>Stories by BitRexe Network on Medium</title>
            <link>https://medium.com/@BitRexe?source=rss-1f9a4ca5aa7f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:20:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@BitRexe/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PREDA: The Last Missing Puzzle of the Parallel Blockchain]]></title>
            <link>https://medium.com/@BitRexe/preda-the-last-missing-puzzle-of-the-parallel-blockchain-449bc44e04b2?source=rss-1f9a4ca5aa7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/449bc44e04b2</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[layer-2]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[parallel-evm]]></category>
            <dc:creator><![CDATA[BitRexe Network]]></dc:creator>
            <pubDate>Fri, 24 May 2024 07:19:37 GMT</pubDate>
            <atom:updated>2024-05-24T07:21:23.115Z</atom:updated>
            <content:encoded><![CDATA[<p>TL:DR</p><ul><li>The current landscape of parallel blockchain and problem statements;</li><li>Pros &amp; Cons of 1. Deterministic(Solana), Optimistic(Monad) and (PREDA) Asynchronous Parallelization</li><li>Data Dependency</li><li>Solidity V.S. PREDA</li></ul><h3>Introduction</h3><h3>The Evolution of Parallelism in Computer Architecture</h3><p>The history of parallel computing in computers can be broadly categorized into three levels: instruction-level parallelism, data-level parallelism, and task-level parallelism.</p><h4>Instruction-Level Parallelism</h4><p>The first level of parallelism is instruction-level parallelism (ILP). ILP was the primary means of improving performance in computer architectures during the last 20 years of the 20th century. Programmers particularly appreciate ILP because it can enhance performance while maintaining binary compatibility. There are two types of ILP: temporal parallelism, realized through instruction pipelining, and spatial parallelism, achieved through multiple issue or superscalar execution. Pipelining is analogous to an automobile assembly line, where multiple cars are produced simultaneously across different stages. Multiple issues allow for out-of-order execution, similar to multiple lanes on a highway. After the introduction of RISC architectures in the 1980s, ILP development reached a peak in the following two decades, but further improvements have been limited since 2010.</p><h4>Data-Level Parallelism</h4><p>The second level of parallelism is data-level parallelism (DLP), primarily referring to single instruction, multiple data (SIMD) vector architectures. Early DLP appeared in ENIAC, and vector machines like Cray-1 and Cray-2 were popular in the 1960s and 1970s. After Cray-4, SIMD went through a period of dormancy but has recently regained momentum, with increasing adoption. For example, AVX instructions in x86 can perform four 64-bit or eight 32-bit operations using a 256-bit datapath. SIMD has played a crucial role as a complement to ILP, especially in streaming media applications. While initially used in specialized processors, SIMD is now a standard feature in general-purpose processors.</p><h4><strong>Task-Level Parallelism</strong></h4><p>The third level, task-level parallelism, is prevalent in Internet applications. Task-level parallelism is represented by multi-core processors and multi-threaded processors, which are the primary methods for enhancing computer architecture performance. Task-level parallelism has a larger grain size, with a single thread containing hundreds or more instructions. From the perspective of the development of parallel computing, the current state of blockchain technology is in the process of transitioning from the first level to the second level. Mainstream blockchain systems typically employ either a single chain or a multi-chain architecture. Single-chain systems, such as Bitcoin and Ethereum, have a single chain with each node executing the same smart contract transactions, maintaining a consistent chain state. Each blockchain node typically executes smart contract transactions serially, resulting in low throughput. Recent high-performance blockchain systems, although employing a single-chain architecture, also support parallel execution of smart contract transactions. Thomas Dickerson and Maurice Herlihy from Brown University and Yale University, respectively, first proposed a parallel execution model based on Software Transactional Memory (STM) in their 2017 PODC paper. This model utilizes optimistic parallelism to execute multiple transactions in parallel, detecting and rolling back any conflicts that arise during execution. This approach has been applied to several high-performance blockchain projects, including Aptos, Sei, and Monad. In contrast, another parallel execution model is based on pessimistic concurrency, where transactions are executed in parallel only after detecting that they do not conflict with each other. This approach typically employs pre-computation, using program analysis tools to statically analyze smart contract code and build dependency graphs. When concurrent transactions are submitted to the system, the system determines whether transactions can be executed in parallel based on the dependencies between the states they access. Only transactions without dependencies can be executed in parallel. This approach has been applied to high-performance blockchain projects such as Zilliqa (CoSplit version) and Sui. Both models can significantly enhance system throughput. However, these works face two challenges: scalability and parallel semantic expression, which will be discussed in detail below.</p><h3>1. Parallel Design</h3><p>We will use the technical solutions of typical projects like Solana and Monad as examples to dissect their parallel architecture designs. This includes parallelization categorization, data dependencies, and other key metrics affecting parallelism and TPS.</p><h3>1.1 Parallel Design — Solana</h3><p>From a higher-level perspective, Solana’s design philosophy is that blockchain innovation should evolve with hardware advancements. As hardware continues to improve following Moore’s Law, Solana aims to benefit from higher performance and scalability. Solana co-founder <a href="https://twitter.com/aeyakovenko">Anatoly Yakovenko</a> initially designed</p><p><a href="https://solana.com/solana-whitepaper.pdf">Solana’s parallel architecture over five years ago, and now, parallelism as a blockchain design principle is rapidly spreading.</a> Solana employs <strong>Deterministic Parallelization</strong>, derived from Anatoly’s past experience with embedded systems, where developers typically pre-declare all states. This allows the CPU to understand all dependencies, enabling prefetching of necessary memory parts. The result is optimized system execution, but it also requires developers to do additional work upfront. On Solana, all memory dependencies of a program are essential and are specified in the constructed transaction (i.e., access list), enabling the runtime to efficiently schedule and execute multiple transactions in parallel.Another major component of Solana’s architecture is the Sealevel VM, which supports parallel processing of multiple contracts and transactions based on the number of cores validators possess. Validators in a blockchain are network participants responsible for verifying and confirming transactions, proposing new blocks, and maintaining the integrity and security of the blockchain. Since transactions pre-declare which accounts need read/write locks, the Solana scheduler can determine which transactions can be executed concurrently. As a result, during validation, the “block producer” or leader can sort through thousands of pending transactions and schedule non-overlapping transactions in parallel.</p><h3>1.2 Parallel Design — Monad</h3><p>Monad is building a Turing-complete parallel EVM Layer 1. Monad’s uniqueness lies not only in its parallelization engine but also in the optimization engine they are building in the background. Monad adopts a unique approach to its overall design, integrating several key features, including pipelines, asynchronous I/O, separate consensus and execution, and <a href="https://docs.monad.xyz/technical-discussion/execution/monaddb">MonadDB</a>. Similar to Sei, the Monad blockchain uses “Optimistic Concurrency Control (OCC)” to execute transactions. When multiple transactions exist in the system simultaneously, concurrent transaction processing occurs. This transaction method has two phases: execution and validation.During execution, transactions are optimistically processed, and all reads/writes are temporarily stored in transaction-specific storage. Subsequently, each transaction enters the validation phase, where information in the temporary storage operations is checked against any state changes made by previous transactions. If transactions are independent, they run concurrently. If one transaction reads data modified by another transaction, a conflict arises. A key innovation in Monad’s design is a slightly offset <a href="https://docs.monad.xyz/technical-discussion/concepts/pipelining">pipeline</a>. This offset allows for parallelizing more processes by running multiple instances simultaneously. Thus, pipelines are used to optimize many functions, such as state access pipelines, transaction execution pipelines, pipelines within consensus and execution, and pipelines in the consensus mechanism itself, corresponding to washing, drying, folding, and putting clothes in the closet in the diagram below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kgDnc21wrqn1rwlc" /></figure><p>In Monad, transactions are linearly <em>ordered</em> within a block, but the goal is to reach the final state faster through parallel execution. Monad uses an <strong>Optimistic Parallelization</strong> algorithm to design its execution engine. Monad’s engine processes transactions simultaneously and then analyzes to ensure that if transactions are executed successively, the results will be the same. If conflicts arise, a re-execution is required. The parallel execution here is a relatively simple algorithm, but combining it with Monad’s other key innovations makes this approach novel. It is worth noting that even if a re-execution occurs, it is usually inexpensive because the input required for invalid transactions is almost always cached, making it a simple cache lookup. Re-execution is guaranteed to succeed since you have already executed previous transactions in the <a href="http://block.in/">block.In</a> addition to delayed execution, Monad also enhances performance by separating execution and consensus, similar to Solana and Sei. The idea here is that by relaxing the condition of completing execution when consensus is reached, both can run in parallel, providing extra time for both. Of course, Monad uses deterministic algorithms to handle this scenario, ensuring that one does not run too far ahead and fall behind.</p><p>Disadvantages:</p><p>Whether adopting optimistic or pessimistic parallel execution, the above systems use shared-memory as the underlying data model abstraction, meaning that no matter how many parallel units there are, each unit can access all data (referring to all on-chain data in the blockchain). State data can be directly accessed by different parallel execution units (i.e., all on-chain data can be directly read and written by parallel units). Blockchain systems using shared-memory as the underlying data model typically have concurrency limited to a single physical node (Solana), and the concurrency capability of each physical node is limited by the node’s computing power, i.e., the number of physical threads (assuming each thread supports a virtual machine).This node-level parallel approach only requires modifications to the smart contract execution layer’s architecture, without the need to modify the system’s consensus layer logic, making it very suitable for increasing the throughput of single-chain systems. Therefore, as there is no sharding of data storage,</p><p><strong>every node in the blockchain network still needs to execute all transactions and store all states</strong>. Additionally, compared to shared-nothing architectures more suitable for distributed scaling, these systems using shared memory as the underlying data model abstraction cannot achieve horizontal scalability, i.e., expanding system state storage and execution capabilities by increasing the number of physical machines, thus fundamentally failing to address the scalability issues of blockchain.Are there existing solutions to these challenges?</p><h3>3. PREDA — Parallel Programming Model</h3><p>Before introducing PREDA, we would like to pose a natural question: Why use parallel programming? In the 1970s, 80s, and even parts of the 90s, we were quite content with single-threaded programming (or serial programming). You could write a program to accomplish a task. Once it finished execution, it would give you a result. Task completed, everyone was happy! However, if you were working on a particle simulation requiring millions or even billions of calculations per second, or processing images with thousands of pixels, you would want the program to run faster, which meant needing a faster CPU. Before 2004, CPU manufacturers like IBM, Intel, and AMD could provide faster processors, with processor clock speeds increasing from 16 MHz, 20 MHz, 66 MHz, 100 MHz to 200 MHz, 333 MHz, 466 MHz, and so on. It seemed like they could continuously boost CPU speed, thereby enhancing CPU performance. However, by 2004, due to technological constraints, the trend of continuously increasing CPU speed was no longer sustainable. This necessitated other technologies to continue delivering higher performance. The solution from CPU manufacturers was to place two CPUs within one CPU, even if the individual speeds of these two CPUs were lower than a single CPU. For instance, compared to a single-core CPU operating at 300 MHz, two CPUs working at 200 MHz each (referred to as cores by manufacturers) combined could perform more calculations per second (i.e., intuitively 2×200 &gt; 300). The seemingly dreamlike story of “single CPU, multiple cores” became a reality, requiring programmers to learn parallel programming techniques to leverage these two cores. If a CPU can execute two programs simultaneously, programmers must write these two programs. However, can this translate to double the program’s running speed? If not, then our idea of 2×200 &gt; 300 is flawed. What happens if one core doesn’t have enough work? In other words, if one core is truly busy while the other is idle? In such a scenario, it might be better to use a single 300 MHz core. The introduction of multiple cores highlighted many similar issues, emphasizing the need for efficient utilization of these cores through programming.</p><p>To help you develop a better understanding of the importance of a parallel programming language like PREDA, a informal analogy has been given as the chart appears below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VY6_ubtAShEpBk9y" /></figure><ol><li><strong>🚚Driving to Mine</strong></li><li><strong>⛏️Mining</strong></li><li><strong>🚚Loading the Mine</strong></li><li><strong>🔮Storge and Polish</strong></li></ol><p>The entire mining process consists of four independent but sequential tasks, with each task taking 15 minutes. When Bob and Alice work simultaneously, they can complete twice the amount of mining work in one hour because they each have their own vehicle and can share the road. They can also share grinding tools.However, if one day Bob’s mining truck breaks down, he leaves it at the repair shop and forgets his mining pickaxe inside the truck.</p><p>By the time they return to the processing plant, it’s too late, but they still have work to do. Using only Alice’s mining truck and the one pickaxe inside, can they still mine two units of ore per minute?In the analogy above, the four mining steps represent threads, the mining truck represents cores, the ore represents data units that smart contracts need to execute, and the pickaxe represents execution units.</p><p>The program consists of two interdependent threads: you cannot execute thread 2 before thread 1 finishes. The amount of harvested ore signifies program performance. The higher the performance, the greater the profits from mining for Bob and Alice. The mining field can be seen as memory, where you can obtain a data unit (gold ore), similar to fetching a piece of ore in thread 1 being akin to reading a data unit from memory.Now, let’s consider what happens if Bob’s mining truck breaks down. Bob and Alice need to share a vehicle, which initially isn’t a problem, but as mining equipment upgrades while ensuring mining efficiency, things change.</p><p>The capacity of the mining vehicle to hold ore becomes the bottleneck for overall efficiency because regardless of how efficient the mining machines are, the amount of ore that can be sent for grinding and processing is constrained by the “maximum ore capacity of the mining truck.”This is the essence of Solana’s parallel VM — <strong>1. Core Sharing:</strong></p><p>The ultimate design element of Solana is “pipelining.” When data needs to be processed through a series of steps with different hardware responsible for each step, pipeline operations occur. The key idea here is to acquire data that needs to be processed sequentially and parallelize it using pipelines. These pipelines can run in parallel, with each pipeline stage handling different batches of transactions. The higher the processing speed of the hardware (mining truck loading capacity), the higher the parallelized throughput. Today, the hardware node requirements of Solana have made it such that node validators have left one and only one choice — data centers, which brings efficiency but deviates from the original intent of blockchain.</p><p><strong>2.2 Data Dependency（Core Resources Sharing）：</strong></p><p>After upgrading the mining truck, the mining capacity couldn’t keep up, resulting in many instances where the truck wasn’t filled to capacity. Consequently, Bob spent a hefty sum to purchase a mining machine, increasing mining efficiency (upgrading execution units). Now, they can produce 10 units of ore within the same 15-minute timeframe. However, since the ore grinding work is still manually done as before, the increased production of ore per unit of time cannot be converted into more gold, leading to more ore being stockpiled in the warehouse. This example illustrates what happens when memory access becomes the limiting factor in program execution speed. The speed at which data is processed (i.e., core operating speed) becomes irrelevant. We are constrained by data retrieval speed. Slower I/O speeds can pose significant challenges because I/O is the slowest part of a computer, making asynchronous data retrieval crucial. Even though Bob’s mining machine can mine 10 units of ore in 15 minutes, if there is contention for memory access, they are still limited to mining 2 units of ore every 15 minutes. Existing parallel blockchain solutions propose two approaches to this problem — pessimistic execution and optimistic execution. The former requires clear definition of data state dependencies before data is written or read, necessitating developers to make upfront static control dependency assumptions. In the realm of smart contract programming, these assumptions often deviate from reality. The latter imposes no assumptions or restrictions on data writes and rolls back in case of conflicts. Taking MONAD’s optimistic execution approach as an example: in reality, most of the workload is transaction execution, and the scenarios where parallelism occurs are not as frequent as imagined. The graph below shows the gas fee consumption sources from Ethereum on a given day. While the distribution may not heavily favor popular smart contracts, there are variations in the distribution of different transaction types. Optimistic execution logic was feasible in the web2 era because a significant portion of web2 application requests were for access rather than modification. However, in the web3 domain, the majority of smart contract requests involve state modification — updating ledgers, which unexpectedly leads to more rollbacks, rendering the chain unusable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aSRq5Vj8mm-txV2d" /><figcaption>DUNE Data: Gas fee consumption from Ethereum on 2024–01–01</figcaption></figure><p>Therefore, the conclusion is that Monad can indeed achieve parallelism, but: 1. Concurrency has a theoretical limit, falling within the range of 2–3 times, not the advertised 100K; 2. This limit cannot be expanded by increasing virtual machines, meaning multiple cores do not equate to increased processing power; 3. Lastly, the perennial issue remains — without data sharding, Monad fails to address the demands on nodes resulting from blockchain state expansion. The requirements for nodes have already exceeded what a home computer can handle, and with its mainnet launch, without data sharding, we may inevitably see Monad following the path of Solana. 4. Lastly, and most importantly, optimistic execution is not suitable for parallelism in the blockchain domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UHA3O_cm3JIYr1At" /><figcaption>Hardware requirements of MONAD nodes</figcaption></figure><p>After mining for a while, Bob asked himself a question: “Why do I have to wait for Alice to return before grinding? While I grind, I can load the truck because the time required for loading and grinding is exactly the same. We definitely won’t encounter a state where we need to wait for grinding to be available. Before Alice finishes mining, I can drive to continue mining, so both of us can be 100% busy.” This ingenious idea brought them back to double efficiency, without the need for an extra mining truck. Importantly, Bob redesigned the program, specifically the order of thread execution, ensuring that all threads never get stuck waiting for shared resources within the core (such as the mining truck, pickaxe).</p><p>This is the correct version of parallelism — by splitting the state of smart contracts, accessing shared resources does not lead to any thread queuing or limit the final atomicity due to data I/O pipeline restrictions.</p><p>The PREDA model exposes the structure of contract state access during contract code execution to the execution layer, allowing the execution layer to easily and reasonably schedule, completely avoiding rollbacks of execution results. This parallel mode is also known as <strong>2.3 Asynchronous Parallelization.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RgjqFxZVYrsDyWUx" /><figcaption><strong>Asynchronous Parallelization of PREDA</strong></figcaption></figure><p>Because parallelization is inherently asynchronous, increasing threads will lead to linear improvements. Unlike the previous example, where upgrading the mining truck’s capacity was hindered by outdated mining equipment, resulting in the truck being idle, PREDA’s parallel execution environment differs fundamentally from MONAD and SOLANA, much like the distinction between multi-core CPUs and GPUs. The shared core processing efficiency will not be the bottleneck for parallelism, nor will there be issues with data dependencies during I/O read-write operations. More importantly, PREDA’s parallel model’s parallelism will increase with the addition of threads, similar to the relationship between GPUs. In the context of blockchain logic, increasing threads (VM) will reduce the hardware requirements of full nodes, thereby achieving performance enhancements while maintaining decentralization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cGSh1ui2RaY8OhfX" /></figure><p>The ultimate goal of achieving parallel blockchain is still lacking in the industry, aside from architectural design, which is the 2.4 <strong>Lack of parallel programming language semantics</strong>. Just as Nvidia requires CUDA, parallel blockchain also needs a new programming language — <a href="https://www.preda-lang.org/">PREDA</a>. Currently, smart contract developers lack the ability to express parallel semantics, making it impossible to effectively utilize the underlying multi-chain architecture’s support (data sharding or execution sharding or both) for general smart contracts, which are independent of blockchain parallelization architectures and consensus algorithms. The lack of a parallel programming model and language for smart contracts will lead to the inability to reconstruct applications and algorithms from serial to parallel, resulting in applications and algorithms being unable to adapt to blockchain systems with parallel execution capabilities, thereby preventing improvements in application execution efficiency and overall throughput.PREDA proposes a distributed programming model that divides contract states into fine-grained scopes through programmable contract scopes and executes transactions using functional relay semantics, distributing the execution flow across multiple parallel execution engines. This model also defines the partitioning scheme for contract states through programmable scopes, allowing developers to optimize based on application access patterns. Through asynchronous functional relays, transactions can be moved to execution engines that need to access states, achieving process movement rather than data movement. This model achieves distributed partitioning of contract states and transaction traffic without requiring developers to worry about the underlying multi-chain system’s details. Experimental results show that the PREDA model can achieve a maximum 18-fold increase in throughput on 256 execution engines, approaching the theoretical parallel limit. By using partition counters and swappable instructions, parallelism is further enhanced.</p><p><strong>Conclusion</strong></p><p>Traditional blockchain systems use a single sequential execution engine (e.g., EVM) to handle all transactions, limiting scalability. Multi-chain systems run parallel execution engines, but each engine processes all smart contract transactions, unable to achieve scalability at the contract level. This article discusses the essence of deterministic parallelism, represented by Solana—core sharing; and the limitations of optimistic parallelism, represented by Monad, which cannot stably run in real-world blockchain scenarios and faces high-frequency rollback possibilities. It also introduces PREDA’s parallel execution engine. The PREDA team proposes a novel programming model that expands a single smart contract by dividing its state and distributing transaction traffic across execution <a href="http://engines.it/">engines. It</a> introduces programmable contract scopes to define the partitioning scheme for contract states. Each scope runs on a dedicated execution engine. An asynchronous functional relay is used to decompose transaction execution flows and move them across execution engines when needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t2dw5QwrPJaiA6GE" /></figure><p>This decouples transaction logic from contract states, allowing inherent parallelism without data movement overhead. Its parallel model not only partitions states at the smart contract level, decoupling dependencies at the data publication level, but also provides a Multi-Threaded execution engine cluster architecture similar to Move; more importantly, it innovatively introduces the new programming model PREDA, which may be the last piece of the puzzle for achieving parallel blockchain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=449bc44e04b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why the existing blockchain parallelization including Monad can never achieve scalability.]]></title>
            <link>https://medium.com/@BitRexe/why-the-existing-blockchain-parallelization-including-monad-can-never-achieve-scalability-65e267e2ed19?source=rss-1f9a4ca5aa7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/65e267e2ed19</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[parallelchain]]></category>
            <category><![CDATA[parallel-computing]]></category>
            <dc:creator><![CDATA[BitRexe Network]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 10:18:53 GMT</pubDate>
            <atom:updated>2024-04-12T05:45:58.219Z</atom:updated>
            <content:encoded><![CDATA[<p>A BitReXe Research</p><h3>From Sharding to Parallelization?</h3><p>It is well-known that Ethereum operates on a single-core CPU-like architecture, similar to a single-lane highway or a washing machine that can only handle one task at a time. However, all modern CPUs are multi-core, and it is not feasible for blockchain to continue running on a single-core architecture.</p><p>Scalability is the consensus in the industry, and there are two main ways to scale the computational architecture: increasing the number of lanes, also known as horizontal scaling or sharding, and enhancing the capabilities of system components, including data read-write capabilities or hardware acceleration, splitting and enhancing the capabilities of each system component, which is known as vertical scaling or modular blockchain.</p><p>Ethereum’s recent danksharding update introduces Blob. It can be understood as adding a caching system. If the system is running under a heavy load, more data will be placed in the cache to alleviate the system’s read pressure. The method of modularized scaling is not discussed in this article, hence no further discussion.</p><p>This article is written by the BitReXe research team, aiming to provide a historical overview of the mainstream parallel blockchain iteration from parallel chains to the smart contract level and introduce the ultimate parallel execution blockchain scalability solution.</p><ol><li><strong>Chain Pallelization- Polkadot</strong></li></ol><p>The first parallel narrative was initiated by Polkadot, which expanded by increasing the number of sub-chains, and distributing the number of smart contracts processed by each chain to achieve “scalability.” As long as smart contracts are processed on different sub-chains, parallelization can be achieved at the chain level.</p><p>The Relay chain only needs to be responsible for security and transaction finality (Finality), without directly handling transactions. If the TPS requirements of each smart contract are similar, the blockchain’s scalability dilemma has not been solved by Polkadot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qVgb_PK7rhDlf6kv" /><figcaption>Polkadot Relay Chain architecture</figcaption></figure><p>However, the problem is that only a few contracts, such as Uniswap and USDT, consume 90% or more of the block space. If contracts are still running on one sub-chain, it’s equivalent to only expanding the chain layer, and smart contracts have not enjoyed the improvement brought by the parallel chains.</p><p><strong>Increased lanes but not being able to switch lanes is the current dilemma of Polkadot’s parallel chains.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yGypBxInbJVQ7--d" /><figcaption>Dune: <a href="https://dune.com/queries/2433549/3998044"><strong>Top 100 Ethereum Contracts by Gas Consumption</strong></a></figcaption></figure><p><strong>2. Chain State Pallelization — Near</strong></p><p>In the post-Polkadot era, the market discovered that scalability can be achieved not by adding more sub-chains but by separating the states of a chain. <a href="https://twitter.com/monad_xyz/status/1777687376136982767">Near</a> uses a single-chain sharding architecture to process different smart contracts on different shards. As shown in the figure, a block contains multiple Chunks, and each Chunk processes different smart contract transactions. As long as the transaction is not from a single smart contract, it can be executed in parallel without the involvement of a beacon chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JEkM3OAqMa3piFlj" /><figcaption><em>(Left) Ethereum’s Sharding Design and (right) NEAR’s Nightshade Sharding Design</em></figcaption></figure><p>However, the lack of a beacon chain makes it difficult for the state of one shard to be easily read by other shards. At the same time, the most resource-intensive smart contract is still forced to be partitioned in a certain Shard, queuing up in a Chunk queue in a certain block. Parallelization has not been achieved.</p><p><strong>3. Parallel Smart Contracts (Smart Contract Pallelization) — Monad</strong></p><p>Monad’s further partition of smart contracts is one step closer to the endgame of solving the blockchain trilemma. It officially announced on April 9 that it has received over $200 million in funding led by <a href="https://twitter.com/monad_xyz/status/1777687376136982767">Paradigm</a>, which indirectly verifies the advancedness of its solution.</p><p>Monad’s parallization method is as follows. When A finishes washing clothes at 6 PM, at 6:30 PM, because it does not submit updates to the same state root, 2 EVMs can process A’s drying needs and B’s washing needs simultaneously.</p><p>Parallelization is possible as long as the Merkle tree read of one smart contract is not the same type. One EVM can process Uniswap’s swap requests and NFT’s Transfer requests simultaneously, thus achieving parallelization.</p><p>However, there will be issues with <a href="https://docs.monad.xyz/technical-discussion/execution/parallel-execution">incorrect execution</a> orders being submitted to the block. The solution is to lock the database write-in before updating, either by locking it in advance or rolling back after an error occurs. Monad adopts the latter, also known as O<a href="https://en.wikipedia.org/wiki/Optimistic_concurrency_control">ptimistic Concurrency Control</a> (OCC).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5NsSw5kvpAh0xXgN" /><figcaption>The washing Machine metaphor by Monad</figcaption></figure><p>This is based on an assumption — if one smart contract’s transaction requests have so many different states, Monad can solve the expansion problem. However, in reality, most transactions are washing clothes (Transfer), and parallel occurrences are not so frequent. The following figure shows the source of gas fee consumption on Ethereum on January 1, 2024; you will find that although the distribution is not as high as that of popular smart contracts, different transaction types do exist in an uneven distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /><figcaption>DUNE Data: Gas fee consumption from Ethereum on 2024–01–01</figcaption></figure><h4>Further Towards Parallelization?</h4><p>Based on the iteration from Polkadot to Near, we can easily infer the next iteration direction for parallel blockchain — internal state partitioning of smart contracts.</p><p><strong>Parallel 4.0 (Smart Contract State Partition Parallelization)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QsCqlqcfsnTPL3xz6WZCAA.png" /></figure><p>Partitioning the smart contract state and letting 1 transaction be processed in parallel by multiple Parallel VMs, achieving final atomicity in the fragmented Relay time; this will be the ultimate solution for Parallel VM — it does not involve the data rollback that Monad may face, and through Global Shard, it can make cross-shard data asynchronous calls more convenient. More importantly, after the smart contract is divided into states, there is no need to assume that all smart contracts consume the same block space or that the transaction types within the smart contract are evenly distributed.</p><p><strong>Data remains unchanged, and the code follows the data.</strong></p><p>This sounds simple, but at least the following solutions need to be implemented:</p><ol><li>A new smart contract programming model that completes the state division when writing contracts;</li><li>Solving the final atomicity problem across shards;</li><li>Solving the asynchronous call problem of data in the shard chain structure of the Relay transaction;</li></ol><p>This ultimate parallel blockchain solution is very likely to be achieved by the PREDA programming model developed by a blockchain development team composed of Microsoft Research Institute, Ph.D. from the Chinese Academy of Sciences, a professor from Ohio State University, and an AMD programming language development engineer.</p><ol><li><strong>PREDA Parallel Programming Model</strong></li></ol><p>To fully exploit the performance of parallel blockchain, a programming model that supports parallel architecture, PREDA, is indispensable. If we compare Ethereum to a single-core CPU, then BitReXe’s parallel architecture is like NVIDIA’s GPU, and PREDA is like CUDA for Blockchain. Compared to Solidity, PREDA allows developers to freely divide smart contract states, fully exploiting the power of parallel blockchain. This model introduces “programmable scopes” (Programmable Scope) for state division and “functional relays” (Functional Relay) for handling data dependencies. The former reduces the additional computational cost brought by global Merkle tree updates, solving the repetitive computation problem in EVM. The latter solves the problem of each order state machine (a chain) running independently in a multi-chain system and coordinating through message passing (relay transactions) to form a parallel computing system. PREDA models distribute account book status and transactions on these chains to utilize the existing parallelism of multi-chain systems. It also allows any function call (triggering function) executed on one chain to trigger one or more subsequent asynchronous calls of functions (relay functions) on other chains.” Programmable scopes” describe the scheme of dividing smart contract states into non-overlapping independent parts.</p><p><strong>2. The team solved the cross-shard atomicity problem in the</strong><a href="https://www.usenix.org/conference/nsdi19/presentation/wang-jiaping"><strong> 2019 paper</strong></a></p><p><strong>The paper proposed Asynchronous Consensus Zones (Asynchronous Consensus Zones),</strong></p><p>which can linearly scale blockchain systems without affecting decentralization or security. This is achieved by running multiple independent and parallel single-chain consensus instances (regions). Consensus occurs independently within each region, with minimal communication, dividing the workload of the entire network and ensuring that the burden on each node is reasonable as the network grows. The final atomicity is proposed to ensure the atomicity of cross-region transactions, ensuring the efficient completion of transactions. In a test network environment with 1,200 virtual machines supporting 48,000 nodes, this system provides throughput and capacity of $1,000 per second, comparable to the Bitcoin and Ethereum networks. In a recent Uniswap V2 three-year data backtest, it achieved a uTPS (using relay transactions) of 140,000+ for a single smart contract in 16 parallel VM environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Mb0PxVWNgrC_EON" /><figcaption>Performance of PREDA multi-shard AMM</figcaption></figure><p><strong>3. Deterministic Parallelism (Deterministic Parallelization)</strong></p><p>By exposing the structure of contract code accessing the contract state at the execution moment to the execution layer, the execution layer can easily and reasonably schedule, completely avoiding the rollback of execution results.</p><p>The first Bitcoin layer 2 network to support parallel VMs, <a href="https://bitrexe.com/"><strong>BitReXe</strong>,</a> will be deployed on the Bitcoin network and adopt a combined mining method to reuse Bitcoin’s wasted computing power, significantly reducing block intervals while sharing Bitcoin’s security. The Bitcoin layer 2 network will soon open a bridge for mining BRX according to coin×days and the Bitcoin version of <a href="https://scan.bitrexe.com/dapp/rxbridge:dapp/contract/rxbridge.BitReXe"><strong>parallel fomo3D</strong></a>, which will also be the first parallel smart contract alive written in PREDA.</p><p><em>Financial Infrastructure that powers the unprivileged average</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65e267e2ed19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the Winners: PREDA Scale-out Smart Contracts Hackathon Showcases Blockchain Innovation]]></title>
            <link>https://medium.com/@BitRexe/unveiling-the-winners-preda-scale-out-smart-contracts-hackathon-showcases-blockchain-innovation-71a6f9822373?source=rss-1f9a4ca5aa7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/71a6f9822373</guid>
            <category><![CDATA[preda]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[BitRexe Network]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 10:24:07 GMT</pubDate>
            <atom:updated>2024-03-04T10:24:07.989Z</atom:updated>
            <content:encoded><![CDATA[<p>The recent <a href="https://predalang.notion.site/12cf828f7c5d47d48beca81f65c35d91?v=a3fce45b166c4630aa29a6727f3928ba">PREDA Scale-out Smart Contracts Hackathon</a> has concluded, marking a milestone in creativity and innovation within the community. Among the submissions, 11 winning projects emerged as the inaugural batch of contracts written in PREDA.</p><p>A heartfelt THANK YOU goes out to all the participants who contributed to the success of the event!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LWOL1XxPNzc4mq9zfsTrcg.png" /></figure><p>The submissions ranged from fundamental infrastructure-level token standards to pioneering NFT standards, showcasing the breadth of possibilities offered by PREDA. We witnessed innovative game designs leveraging PREDA’s core features such as parallelization and relay functions, laying the groundwork for future developments.</p><p>In the PREDA Innovator Track, where submissions had to utilize PREDA’s core features, Greaterme clinched the top prize with their creation of an exclusive NFT standard tailored for the PREDA community. This standard allows users to define properties and enable tradability of NFTs, marking a significant milestone in asset ownership written in PREDA.</p><p>Securing the second prize was the Orderbook DApp, revolutionizing on-chain orderbooks for seamless buy and sell transactions with on-chain matching capabilities. The third prize went to an exclusive Token standard for its implementation in the PREDA language, offering a FungibleToken contract and interfaces for defining token behavior, transfer, and storage, along with a Wallet contract for easy token transfers.</p><p>In the PREDA Skill Builder Track, eight winners emerged, showcasing their creativity in creating contracts with PREDA. These submissions exemplify how simple functionalities can be executed effectively with PREDA, laying the groundwork for more complex developments in the future.</p><p><a href="https://github.com/preda-devteam/HackathonSubmissions/pull/12"><strong>Submission TicTacToe project for PREDA Hackathon</strong></a> by Hossein-79</p><p><a href="https://github.com/preda-devteam/HackathonSubmissions/pull/16"><strong>Lottery App</strong></a> by superbow1</p><p><a href="https://github.com/preda-devteam/HackathonSubmissions/pull/1"><strong>Moba metaverse (real time game with custom items using Preda</strong></a> by ahmetson</p><p><a href="https://github.com/preda-devteam/HackathonSubmissions/pull/13"><strong>Added Auction DApp</strong></a> by vividwood</p><p><a href="https://github.com/preda-devteam/HackathonSubmissions/pull/14"><strong>Enhanced Crowdfunding Contract in Preda language</strong></a> by kamalbuilds</p><p><a href="https://github.com/preda-devteam/HackathonSubmissions/pull/4"><strong>An On-chain Vehicle Shop Using PREDA</strong></a> by taeyonlee</p><p><strong>Escrow</strong> (submitted by email) by Armando Medina</p><p><a href="https://github.com/preda-devteam/HackathonSubmissions/pull/2"><strong>The blog contract written in the PREDA language</strong></a> by Feli0428</p><p>Notable submissions include the Moba metaverse project by Ahmetson, aiming to revolutionize the gaming industry by blockchainizing gaming experiences and utilizing PREDA for parallel execution and scalability. Additionally, Vividwood’s Auction DApp and Feli0428’s blog contract highlight the diverse applications of PREDA.</p><p>The PREDA Scale-out Smart Contracts Hackathon embodies the spirit of innovation and collaboration within the blockchain community. By pushing the boundaries of what is possible, participants have paved the way for a future where blockchain technology drives transformative change.</p><p>To learn more about PREDA and its capabilities, check out:</p><ul><li>Deep Dive into the PREDA Programming Model: <a href="https://www.youtube.com/watch?v=RP8brbXDtcg">YouTube Video</a></li><li>All about PREDA: <a href="https://www.preda-lang.org/">Website</a></li><li>PREDA Interactive Tutorial: <a href="https://docs.dioxide.network/puppy/#/">Tutorial</a></li></ul><p>In PREDA, we stand by our developer community and look forward to seeing more groundbreaking projects in the future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71a6f9822373" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to issue assets on Bitcoin Layer 2 — BitRexe in 3 steps]]></title>
            <link>https://medium.com/@BitRexe/how-to-issue-assets-on-bitcoin-layer-2-bitrexe-in-3-steps-52db69703ef7?source=rss-1f9a4ca5aa7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/52db69703ef7</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[tokenisation]]></category>
            <category><![CDATA[tokenomics]]></category>
            <dc:creator><![CDATA[BitRexe Network]]></dc:creator>
            <pubDate>Tue, 30 Jan 2024 10:22:05 GMT</pubDate>
            <atom:updated>2024-02-01T07:15:51.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to issue assets on Bitcoin Layer 2 — BitRexe in 3 steps</h3><p><strong>Fair as Inscription, Programmable as ETH</strong></p><p>BitRexe, the layer 2 network of Bitcoin, has officially First Class Assets (FCA). Anyone can mint FCA on BitRexe within 2 minutes and complete the design of basic parameters, including ticker, total supply, and whether to support token issuance from other smart contracts.</p><p>There are only 3 steps required from creating your first Bitcoin layer 2 network wallet, DIO Wallet, to completing the token minting. This will have a groundbreaking significance for the Bitcoin ecosystem, as it means that digital assets secured by Bitcoin will be brought into the crypto world for the first time.</p><p><strong>Why create first-class assets on BitRexe?</strong></p><p>Creating a First-Class Asset (FCA) on BitRexe offers several benefits:</p><ol><li><strong>Ease of creation</strong>: Anyone can mint FCA on BitRexe within 2 minutes and complete the design of basic parameters, including ticker, total supply, and whether to support token issuance<a href="https://twitter.com/Bit_Rexe">1</a>.</li><li><strong>Integration with the Bitcoin ecosystem</strong>: FCA is a digital asset secured by Bitcoin, which brings it into the public eye for the first time<a href="https://twitter.com/Bit_Rexe">1</a>. This can have a groundbreaking significance for the Bitcoin ecosystem.</li><li><strong>Flexibility in design</strong>: Users can customize the basic parameters of their FCA, such as ticker, total supply, and token issuance support<a href="https://twitter.com/Bit_Rexe">1</a>.</li><li><strong>Earn Transaction Fee:</strong> BitRexe is highly scalable. While the dilemma of high-performance chains is: The higher the TPS, the lower the income. As for developers, the situation is even harsher. FCA enables BitRexe to better incentivize developers through Commission Fees (%of transition value).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bsPrvMIueCgdjAV2" /></figure><p>What’s the difference between FCA and other tokens and crypto coins?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7Dp7Gavydypzy2olzInLg.png" /></figure><p><strong>How to Create First-class Assets on BitRexe in 3 Steps</strong></p><p><strong>1st Step — — Download DIO wallet</strong></p><p><a href="https://chromewebstore.google.com/detail/diowallet/ghdejoclpabnhidemhnfagafafcmgcfm">Diowallet</a> is a hot wallet crypto wallet available on multiple platforms, including app, web, and extension. You can use the DIO wallet to easily access web3 and decentralized d-apps on BitRexe.</p><p>If you have any questions or great advice on improving the user experience, please don’t hesitate to contact us on D<a href="https://discord.gg/PZgHv4CJqu">iscord</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lBcC6MSY1Xv9oZ_F" /></figure><p><strong>2nd Step — — Peg-in Bitcoin to receive BRX as gas fees.</strong></p><p>As the secondary of BRX is not yet opened, users can only acquire BRX as gas fee with 2 methods: first is to automatically receive 5 BRX when peg-in any amount of bitcoin to BitRexe as rxBTC.</p><p>The second is to burn part of rxBTC to get BRX at a certain exchange rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*iU_pnWKENUZbJRxw" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VWXLidDAwth8hiLR" /></figure><p><strong>3rd Step — — Create a first-class token</strong></p><p>3.1 In your DIO wallet, you should be able to find [create assets].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hWc7y3xW7xFgluJU" /></figure><p>3.2 click [create token]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jpCyXzrAXi4ba8Ea" /></figure><p>3.3 Fill the blanks:</p><p>Ticker: The name of your token(only capital letters);</p><p>Decimals: max decimals of the token;</p><p>Initial Supply: the initial supply of the token amount;</p><p>Top-up Amount: top-up BRX as further expense of the smart contracts;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ljnm3dYhn00Vs0SM" /></figure><p>After successfully creating first-class assets, you can view and monitor them on Dioscan, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dpYmfuN4t4JhfGVI" /></figure><p>Notice: To be able to track your token’s balance, you must initiate at least one {Transfer} in the [token info].</p><p>After the transfer is successfully processed, you should be able to see the newly created token in your DIO wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Z7dE787VR8qm4w0" /></figure><p>BitRexe: Make Bitcoin Liqudate Again</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52db69703ef7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dioxide Expands to Medium: A New Platform for Exciting Updates!]]></title>
            <link>https://medium.com/@BitRexe/dioxide-expands-to-medium-a-new-platform-for-exciting-updates-90ec4bf2fbda?source=rss-1f9a4ca5aa7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/90ec4bf2fbda</guid>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[dioxide-network]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[testnet]]></category>
            <dc:creator><![CDATA[BitRexe Network]]></dc:creator>
            <pubDate>Thu, 14 Sep 2023 03:16:53 GMT</pubDate>
            <atom:updated>2023-09-14T03:18:09.650Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there! Dioxide is thrilled to announce its arrival on Medium. We are gearing up to share in-depth articles on the introduction to the Dioxide network, upcoming launch of the Dioxide testnet, , and its associated community campaigns here.</p><p><strong>About Dioxide:</strong></p><p>Dioxide is a Layer 1 public chain that built a massively scalable decentralized system, ensuring that its infrastructure remains in the hands of the people who use, build, and sustain it. Dioxide is built upon PREDA, a disruptive programming model for general smart contracts that scale in multi-chain blockchain systems.</p><p>Stay tuned for our latest updates, and follow us on Twitter:</p><p>Dioxide Network: <a href="https://twitter.com/Dioxide_Network">https://twitter.com/Dioxide_Network</a></p><p>PREDA Language: <a href="https://twitter.com/PREDALang">https://twitter.com/PREDALang</a></p><p>We can’t wait to embark on this journey with you on Medium! 💫</p><p>#Dioxide #Blockchain #PREDA #Scaling #Scalability</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90ec4bf2fbda" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>