arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.15002cs.DC
收藏

Sui智能合约中共享对象的研究

A Study on Shared Objects in Sui Smart Contracts

Roman Overko

AI总结:

该研究针对Sui智能合约平台的共享对象特性,通过Sui Rust SDK分析共享对象交易频率、资源争用等情况,明确其使用现状,为优化基于对象的智能合约架构效率提供参考。

摘要:

在许多智能合约架构中,每个合约或对象默认都是可变共享的。Sui智能合约平台具备区分共享对象和自有对象的独特特性。针对共享对象的交易需要通过共识来对读写操作排序,而仅涉及自有对象的交易具有独立性,可绕过共识流程,因此后者更不容易受吞吐量瓶颈的影响。但要完全避免使用共享对象,并非总能实现,也未必符合需求。本文旨在识别并研究需要用到共享对象的去中心化应用。我们利用Sui Rust SDK查询可编程交易块,分析了涉及共享对象的交易频率、共享资源的争用程度,以及包含共享对象的最“热门”应用。本文给出的结果具备可复现性,结果显示Sui中共享对象使用广泛、争用程度较低,且原子交易中共享对象之间的依赖度适中。这项针对较新的智能合约平台中共享对象用例的创新性研究,对于提升此类基于对象的架构的效率具有重要意义。本研究对智能合约平台设计者和智能合约开发者均有参考价值。

英文摘要:

In many smart contract architectures, every contract or object is mutably shared by default. The Sui smart contract platform bears the unique feature of distinguishing between shared and owned objects. While transactions operating on shared objects require consensus to sequence reads and writes, those involving only owned objects are independent and may bypass consensus; thus, the latter are less prone to this throughput bottleneck. However, it may not always be possible or desirable to avoid using shared objects. This article aims at identifying and investigating decentralized applications that require shared objects. Utilizing the Sui Rust SDK to query programmable transaction blocks, we analyze the frequency of transactions involving shared objects, shared resource contention levels, and most "popular" applications that contain shared objects. The presented results are reproducible and show the extensive usage of shared objects in Sui, low contention levels, and moderate dependency among shared objects in atomic transactions. This novel study of shared object use cases in a relatively new smart contract platform is important for improving the efficiency of such object-based architectures. This work is relevant for smart contract platform designers and smart contract developers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑