Live Chat

Crypto News

Cryptocurrency News 3 days ago
ENTRESRUARPTDEFRZHHIIT

Sui Blockchain: Revolutionizing Transaction Processing with Move Language and Object-Centric Model

Algoine News
Summary:
The Sui blockchain, a new layer-1 (L1) protocol, is revolutionizing the blockchain space with its use of the Move programming language and an object-centric model for data storage and transaction processing. This model allows for secure, efficient processing of complex assets like NFTs and enables easier database sharding and parallelization. These advancements enhance scalability, reduce latency, and lower the risk of errors and security vulnerabilities, highlighting Sui's potential as a significant player in blockchain technology.
Presenting the Sui blockchain which comes armed with cutting-edge technologies on a level-1 (L1) structure. Our researchers at Cointelegraph have drilled down to explore the nuances of this newcomer in the blockchain arena. Sui is powered by the Move programming language, giving priority to asset management and control over access. In this article, we shed light on how Sui's data storage model, based on the principle of objects, could affect transaction processing and present potential benefits compared to conventional account-centric philosophies. Drawing heavily from the Diem blockchain, Sui leverages the Move programming language for smart contracts, a language specializing in asset management and control over access. Sui expands on this with a data storage model grounded on objects instead of accounts. Unlike classical models that deal with changing account balances or models that focus on simple transaction inputs and outputs, Sui's model views assets (and smart contracts) as dynamic objects. Transactions on Sui take in objects, and mutate them into output objects, with each object logging the hash of the last transaction that generated it. This system bears similarities to the UTXO models but is more versatile and robust. The implementation of linear logic in Move is associated with the object-centric model, aiding in the creation of secure software. This resource logic ensures that digital assets can't be double-counted or inadvertently destroyed. When an asset is implicated in a transaction, Sui Move ensures the asset's state is updated in a manner that mirrors the result of the transaction, consuming the previous state of the asset and generating it in its new state. In Sui, objects come equipped with pre-set access control and permissions, improving security and control over asset utilization after a transaction. This alleviates vulnerabilities common in account-centric chains that are prone to replay attacks. Such attacks trick a function into making an external call to another contract before updating its own state, duping it into repeatedly carrying out actions designed to be executed just once. This can lead to unauthorized alterations in the state of the contract, allowing more funds to be withdrawn than permitted. In Sui this error is impossible since transactions are explicit and atomic, with Move's linear type system ensuring a resource can't be reused unless consciously reassigned. In contrast, traditional models such as Solidity call for extra checks by developers to avoid these bugs, like replay attacks which must be circumvented using a sequence of checks, effects, and interactions. Every operation altering state (effects) needs to take place post-checks but pre-interactions (external calls). Ensuring state variables are updated prior to any external interactions, this system, often labeled "optimistic accounting", hikes up security. Although the object-centric model doesn't inherently enhance security, it has the potential to simplify the development process and make it easier to code securely. In Ethereum, smart contracts can be confirmed more securely through formal verification, but this can be an arduous and costly process. Known for its perplexing semantics, Solidity makes it harder for developers to predict the code's behaviour, increasing the risk of subtle bugs and security vulnerabilities being introduced. SUI Move simplifies secure smart contract development, incorporating sensible financial principles into the language's semantics from the ground up. Sui's object-centric model is particularly useful in managing intricate assets like non-fungible tokens (NFTs). In Ethereum, NFTs are linked to smart contract addresses and often require complicated contract calls and state updates, leading to higher costs and potential security risks. For example, transferring an NFT in Ethereum involves calling upon a function of the ERC-721 smart contract, which updates the state and triggers events, a multi-step process that requires gas fees for each operation. Sui’s object model, on the other hand, allows each NFT to be treated as a unique object with inherent characteristics and permissions. In terms of performance, the object-oriented model makes database partitioning on the SUI blockchain smoother. With a recent update in Sui's consensus mechanism, SUI achieves a time-to-finality of around 390 milliseconds; this may allow a throughput surpassing 100,000 transactions per second. Addressing the notorious compromise between scalability, security, and decentralization is a pressing issue for blockchains. One solution could be sharding, partitioning the blockchain database. In account-centric models, sharding involves dividing the state by account addresses. Every shard manages a unique range of addresses and transactions are processed by the shard containing the account data concerned. But, this brings about several issues. For instance, Polkadot necessitates that each account's balance and state be updated and synchronized across all shards (Parachains), making maintaining coherence across multiple shards challenging. Transactions involving multiple shards demand inter-shard messaging and coordination, which adds computational overhead and delays transaction finality. Zilliqa, for instance, had to experience downtime due to these constraints. Sui's object-centric model circumvents many of these issues by considering each object as an independent state unit. Objects can be processed and managed separately without any need for synchronizing the global state, and multiple transactions can be handled concurrently without syncing across shards. This decreases the necessity for complex cross-shard communication and allows for simpler and more efficient parallel processing. In closing, the Sui blockchain's object-centric model, enhanced with the Move programming language, overcomes several key drawbacks of traditional layer-1 blockchains. The capability of processing transactions in parallel significantly boosts scalability and cuts down on latency. The use of linear logic and capability-based security ensures strong resource management and access control, which could lower the risk of errors, and security vulnerabilities. In addition, Sui's approach to managing complex assets like NFTs simplifies interactions and improves efficiency compared to traditional account-based models. In the upcoming article, we will delve into the consensus mechanism of the Sui blockchain, exploring how it has evolved and the benefits it provides. Sui employs a consensus protocol designed to work seamlessly with its object-centric model. We will dissect the details of Sui's consensus mechanism, including its fault tolerance and throughput optimization methods. Comparisons between Sui's consensus approach with other noteworthy blockchains such as Ethereum, Polkadot, and Solana will illuminate its unique features whilst highlighting potential areas it could excel in or face challenges.

Published At

6/29/2024 3:30:00 PM

Disclaimer: Algoine does not endorse any content or product on this page. Readers should conduct their own research before taking any actions related to the asset, company, or any information in this article and assume full responsibility for their decisions. This article should not be considered as investment advice. Our news is prepared with AI support.

Do you suspect this content may be misleading, incomplete, or inappropriate in any way, requiring modification or removal? We appreciate your report.

Report

Fill up form below please

🚀 Algoine is in Public Beta! 🌐 We're working hard to perfect the platform, but please note that unforeseen glitches may arise during the testing stages. Your understanding and patience are appreciated. Explore at your own risk, and thank you for being part of our journey to redefine the Algo-Trading! 💡 #AlgoineBetaLaunch