Sui.

Publication

Partagez vos connaissances.

jalishaRena.
Aug 26, 2025
Questions et Réponses avec des Experts

Preventing Reentrancy in Move

How does Move’s object model help avoid reentrancy vulnerabilities?

  • Move
0
4
Partager
Commentaires
.

Réponses

4
Gifted.eth.
Aug 26 2025, 19:09

Objects have single ownership and versioning, so functions cannot unintentionally re-enter or duplicate resources.

1
Meilleure réponse
Commentaires
.
Chubbycheeks .
Aug 26 2025, 19:10

Move’s strict resource ownership and linear types prevent reentrancy by ensuring objects can’t be accessed or modified concurrently during a transaction, eliminating reentrant calls and state inconsistencies.

0
Commentaires
.
dhaholar.
Aug 26 2025, 19:12

You avoid reentrancy problems in Move because the object model forces strict ownership and linear usage of resources, meaning an object can only be borrowed or moved once in a transaction and its version must update before it can be touched again. This prevents a contract from being re-entered while still holding mutable access to the same state, which is the classic attack surface in Solidity. Since objects in Move can’t be duplicated or partially reused, and function calls complete before ownership is released, an attacker has no way to recursively drain funds or trigger inconsistent state changes. In practice, this design makes reentrancy exploits that plague account-based systems like Ethereum far less likely on Sui.

0
Commentaires
.
Jedoyak.
Aug 26 2025, 19:22

How Move Prevents Reentrancy Vulnerabilities

  1. Linear resource model – Resources can't be copied or accessed from multiple places, preventing unsafe reentry.

  2. Strict ownership and borrowing rules – Enforces exclusive access to data during execution.

  3. No external or dynamic calls – Contracts can't call back into each other during execution.

  4. Isolated, deterministic execution – All object access is static and scoped to a single transaction.

Result: Move's object model prevents reentrancy by design—eliminating the key risks that make reentrancy possible in other smart contract languages like Solidity.

0
Commentaires
.

Connaissez-vous la réponse ?

Veuillez vous connecter et la partager.

Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.

1166Publications3581Réponses
Sui.X.Peera.

Gagne ta part de 1000 Sui

Gagne des points de réputation et obtiens des récompenses pour avoir aidé la communauté Sui à se développer.

Campagne de RécompensesAoût