A Study on Shared Objects in Sui Smart Contracts

Read original: arXiv:2406.15002 - Published 6/24/2024 by Roman Overko
Total Score

0

A Study on Shared Objects in Sui Smart Contracts

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • This paper explores the concept of shared objects in Sui smart contracts, which are a type of decentralized application (dApp) running on the Sui blockchain.
  • Shared objects allow multiple parties to access and modify the same data, enabling a range of use cases for Sui smart contracts, such as shared accounts, decentralized finance (DeFi) protocols, and more.
  • The paper examines the properties of shared objects, their potential benefits, and the challenges in designing secure and efficient shared object systems.

Plain English Explanation

Shared objects in Sui smart contracts are a way for multiple people or programs to access and change the same digital information at the same time. This is useful for building decentralized applications (dApps) on the Sui blockchain, where you want multiple parties to be able to interact with the same data, like in shared accounts or DeFi protocols.

The paper looks at how shared objects work, what advantages they can provide, and the challenges in making sure they are secure and efficient. For example, the researchers might explore how to prevent one user from accidentally overwriting another's changes, or how to ensure the system can handle a large number of users trying to access the same object at once.

Understanding shared objects is important for developers who want to build complex, collaborative applications on the Sui blockchain, where multiple parties need to interact with the same digital assets or data in a trustless and decentralized way.

Technical Explanation

The paper examines the properties and design of shared objects in Sui smart contracts. Sui is a new blockchain platform that aims to enable efficient and scalable decentralized applications (dApps) through its unique architecture, which includes the concept of "shared objects."

Shared objects in Sui allow multiple parties to concurrently access and modify the same on-chain data, unlike traditional smart contracts where each contract instance has its own separate state. This shared state model enables new use cases, such as shared accounts, DeFi protocols, and non-fungible token (NFT) marketplaces.

The researchers analyze the key properties of shared objects, such as their ability to be deferred and their implications for transaction processing and smart contract vulnerabilities. They also explore the design choices and trade-offs involved in implementing a secure and efficient shared object system within the Sui blockchain architecture.

Critical Analysis

The paper provides a valuable exploration of the shared object model in Sui smart contracts, highlighting both the potential benefits and the challenges in designing such a system. The researchers acknowledge that while shared objects enable new decentralized application use cases, they also introduce complex concurrency and security considerations that must be carefully addressed.

One potential limitation mentioned is the potential for increased attack surface and vulnerabilities due to the shared state model. The paper suggests further research is needed to fully understand the security implications and develop robust mitigation strategies.

Additionally, the scalability of the shared object system is an area that could use further investigation, especially as the number of users and concurrent operations grows. The researchers note that performance benchmarking and optimization techniques may be necessary to ensure the system can handle high-throughput use cases.

Overall, the paper provides a solid foundation for understanding the shared object model in Sui smart contracts, but there remains significant scope for continued research and development to realize the full potential of this innovative blockchain architecture.

Conclusion

This paper offers an in-depth look at the concept of shared objects in Sui smart contracts, a key feature of the Sui blockchain platform that enables new possibilities for decentralized application development. By allowing multiple parties to concurrently access and modify shared on-chain data, shared objects open the door for more collaborative, interactive, and complex dApps compared to traditional smart contract models.

The researchers explore the properties and design trade-offs of shared objects, highlighting both the benefits and the challenges in ensuring security and efficiency. As the Sui ecosystem continues to evolve, a deeper understanding of shared objects and how to leverage them effectively will be crucial for developers aiming to build the next generation of decentralized applications.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

A Study on Shared Objects in Sui Smart Contracts
Total Score

0

A Study on Shared Objects in Sui Smart Contracts

Roman Overko

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.

Read more

6/24/2024

🚀

Total Score

0

Sui Lutris: A Blockchain Combining Broadcast and Consensus

Sam Blackshear, Andrey Chursin, George Danezis, Anastasios Kichidis, Lefteris Kokoris-Kogias, Xun Li, Mark Logan, Ashok Menon, Todd Nowacki, Alberto Sonnino, Brandon Williams, Lu Zhang

Sui Lutris is the first smart-contract platform to sustainably achieve sub-second finality. It achieves this significant decrease by employing consensusless agreement not only for simple payments but for a large variety of transactions. Unlike prior work, Sui Lutris neither compromises expressiveness nor throughput and can run perpetually without restarts. Sui Lutris achieves this by safely integrating consensuless agreement with a high-throughput consensus protocol that is invoked out of the critical finality path but ensures that when a transaction is at risk of inconsistent concurrent accesses, its settlement is delayed until the total ordering is resolved. Building such a hybrid architecture is especially delicate during reconfiguration events, where the system needs to preserve the safety of the consensusless path without compromising the long-term liveness of potentially misconfigured clients. We thus develop a novel reconfiguration protocol, the first to provably show the safe and efficient reconfiguration of a consensusless blockchain. Sui Lutris is currently running in production and underpins the Sui smart-contract platform. Combined with the use of Objects instead of accounts it enables the safe execution of smart contracts that expose objects as a first-class resource. In our experiments Sui Lutris achieves latency lower than 0.5 seconds for throughput up to 5,000 certificates per second (150k ops/s with transaction blocks), compared to the state-of-the-art real-world consensus latencies of 3 seconds. Furthermore, it gracefully handles validators crash-recovery and does not suffer visible performance degradation during reconfiguration.

Read more

8/13/2024

Secure Web Objects: Building Blocks for Metaverse Interoperability and Decentralization
Total Score

0

Secure Web Objects: Building Blocks for Metaverse Interoperability and Decentralization

Tianyuan Yu, Xinyu Ma, Varun Patil, Yekta Kocaogullar, Yulong Zhang, Jeff Burke, Dirk Kutscher, Lixia Zhang

This position paper explores how to support the Web's evolution through an underlying data-centric approach that better matches the data-orientedness of modern and emerging applications. We revisit the original vision of the Web as a hypermedia system that supports document composability and application interoperability via name-based data access. We propose the use of secure web objects (SWO), a data-oriented communication approach that can reduce complexity, centrality, and inefficiency, particularly for collaborative and local-first applications, such as the Metaverse and other collaborative applications. SWO are named, signed, application-defined objects that are secured independently of their containers or communications channels, an approach that leverages the results from over a decade-long data-centric networking research. This approach does not require intermediation by aggregators of identity, storage, and other services that are common today. We present a brief design overview, illustrated through prototypes for two editors of shared hypermedia documents: one for 3D and one for LaTeX. We also discuss our findings and suggest a roadmap for future research.

Read more

7/23/2024

Secure Ownership Management and Transfer of Consumer Internet of Things Devices with Self-sovereign Identity
Total Score

0

Secure Ownership Management and Transfer of Consumer Internet of Things Devices with Self-sovereign Identity

Nazmus Sakib, Md Yeasin Ali, Nuran Mubashshira Momo, Marzia Islam Mumu, Masum Al Nahid, Fairuz Rahaman Chowdhury, Md Sadek Ferdous

The popularity of the Internet of Things (IoT) has driven its usage in our homes and industries over the past 10-12 years. However, there have been some major issues related to identity management and ownership transfer involving IoT devices, particularly for consumer IoT devices, e. g. smart appliances such as smart TVs, smart refrigerators, and so on. There have been a few attempts to address this issue; however, user-centric and effective ownership and identity management of IoT devices have not been very successful so far. Recently, blockchain technology has been used to address these issues with limited success. This article presents a Self-sovereign Identity (SSI) based system that facilitates a secure and user-centric ownership management and transfer of consumer IoT devices. The system leverages a number of emerging technologies, such as blockchain and decentralized identifiers (DID), verifiable credentials (VC), under the umbrella of SSI. We present the architecture of the system based on a threat model and requirement analysis, discuss the implementation of a Proof-of-Concept based on the proposed system and illustrate a number of use-cases with their detailed protocol flows. Furthermore, we analyse its security using ProVerif, a state-of-the art protocol verification tool and examine its performance.

Read more

9/2/2024