Move · programming language

On this page 7

Move is a resource-oriented programming language for writing smart contracts, designed so that digital assets behave like physical objects: they cannot be copied, duplicated or silently discarded, only moved between owners. It was created at Facebook in 2019 for the Diem blockchain project and now powers the Aptos and Sui networks, among others.

Within smart contracts and the wider field of crypto & blockchain, Move represents an alternative to the Ethereum model built on Solidity and the EVM. Its central idea is that asset safety should be enforced by the type system and a bytecode verifier, rather than left to careful coding and audits alone.

How Move enforces asset safety

Move achieves safety through linear typing: a value of a resource type must be used exactly once, so it can be transferred, stored or explicitly destroyed by its defining module, but never copied or lost by accident. The compiler and, crucially, an on-chain bytecode verifier check these rules before any code is published, so even hand-written bytecode cannot bypass them.

Each struct declares abilities that state what the type may do. A coin type typically lacks copy and drop, which makes duplication and silent loss impossible. The table below lists the four abilities.

AbilityWhat it permitsTypical use
copyDuplicating a valuePlain data such as integers or settings
dropDiscarding a value at the end of scopeTemporary data with no value
storePlacing a value inside other stored structsTokens held inside a vault object
keyUsing the type as a top-level item in global storageAccounts, objects and collections
The four abilities of Move types

Code is organized into modules, which define types and functions and are published at an address. Only the module that defines a type can create, unpack or destroy its values, a principle known as module-level encapsulation. This prevents external contracts from forging tokens or tampering with internal fields.

Move dialects on Aptos and Sui

Move is no longer a single language but a family of dialects that share the core type system while differing in their storage models. The original Diem design stored resources under account addresses, an approach Aptos retained and extended, while Sui redesigned storage around independent objects with unique identifiers.

DialectStorage modelNotable features
Original Diem MoveResources stored under account addressesIntroduced abilities and the bytecode verifier
Aptos MoveAccount-based global storage plus an object modelParallel execution through Block-STM, Move 2 language updates
Sui MoveObject-centric model with owned and shared objectsProgrammable transaction blocks, fast path for owned objects
Other adoptersVaries by networkReuse of the Move virtual machine and tooling
Main Move dialects and their storage models

Because of these differences, Move code is not directly portable between Aptos and Sui. Developers must adapt storage access, object handling and framework libraries, even though the language syntax and ability system feel familiar on both.

Move compared with Solidity

The main difference between Move and Solidity lies in how assets are represented. In Solidity, a token balance is usually a number inside a mapping owned by the token contract, so correctness depends on every arithmetic update being right. In Move, a token is a typed value that the holder possesses, and the verifier guarantees it cannot be created from nothing.

AspectMoveSolidity
Asset modelFirst-class resources with linear typesBalances stored in contract mappings
Dynamic dispatchVery limited, calls resolved at publish timeArbitrary external calls at runtime
Reentrancy exposureLargely prevented by designCommon vulnerability class
VerificationBytecode verifier plus Move ProverCompiler checks plus external tools
Ecosystem sizeSmaller, growingLargest smart contract ecosystem
RuntimeMove virtual machineEthereum Virtual Machine
Move and Solidity side by side

The restriction on dynamic dispatch is significant. Since functions cannot call arbitrary unknown code in the middle of execution, the classic reentrancy attack that drained many EVM contracts is much harder to construct. The price is reduced flexibility for patterns such as plug-in architectures.

Formal verification with the Move Prover

The Move Prover is a formal verification tool that checks whether Move code satisfies mathematical specifications written by developers. Specifications state properties such as “total supply never changes during a transfer” or “this function aborts only when the balance is insufficient”, and the prover translates code and specifications into logic solved by an SMT solver.

Formal verification is practical in Move because the language is deliberately small and deterministic, without unbounded dynamic calls. This makes Move one of the few smart contract languages where proving key invariants is a routine engineering step rather than a research project, although writing good specifications still requires expertise.

Limitations and common mistakes

Move removes whole classes of bugs, but it does not guarantee correct business logic. A module can still contain flawed access control, incorrect pricing formulas or unsafe use of shared objects, and audits remain necessary.

PitfallConsequenceRemedy
Granting copy or drop to valuable typesAssets can be duplicated or lostOmit these abilities on asset structs
Weak capability checksUnauthorized minting or admin actionsUse explicit capability objects
Overusing shared objects on SuiConsensus contention and slower executionPrefer owned objects where possible
Assuming cross-chain portabilityBroken builds on another networkTarget one dialect and its framework
Arithmetic overflow assumptionsTransaction abortsTest edge cases and specify bounds
Typical Move pitfalls and their remedies

Developers also face a smaller tooling ecosystem than Ethereum offers with Hardhat, Foundry and OpenZeppelin. Libraries, auditors and learning material exist, but the talent pool is narrower, which matters for teams planning long-term maintenance.

In plain words

Move is a language for writing the programs that run on certain blockchains. Its special feature is that it treats digital money like a physical coin rather than a number in a spreadsheet.

A coin in your pocket cannot be photocopied, and it does not vanish unless someone takes it. Move builds that same rule into the language itself. As a result, many costly programming mistakes simply cannot happen, although programmers must still get the rest of their logic right.

A real-world example

A development team building a ticketing application on Sui represents each concert ticket as an owned object with the key and store abilities but without copy. The organizer’s module holds a minting capability object, so only the organizer can create tickets, and each ticket can be resold but never duplicated.

Before launch, the team writes Move Prover specifications stating that the number of issued tickets never exceeds venue capacity. The prover finds a path where a refund function failed to decrement the counter, and the team fixes it before deployment. Because transfers of owned objects avoid shared-object consensus, ticket sales process quickly even during peak demand, and the type system ensures no counterfeit ticket can exist on-chain.