
Sui là Layer 1 blockchain được thiết kế từ gốc cho execution song song, đạt 6M+ TPS thực tế (record July 2024). Khác với EVM sequential execution, Sui dùng object-centric model + Move language để xác định dependency giữa transaction trước khi chạy — cho phép validator xử lý hàng nghìn tx độc lập song song. Sui do Mysten Labs xây dựng, team cựu Meta/Diem. Mainnet ra mắt May 2023, hiện có hàng trăm validator toàn cầu.
Kiến trúc cốt lõi: Object-centric, không phải Account-centric
Ethereum: state = mapping(address → account). Mọi tx đọc/ghi vào global state lớn → contention, sequential execution. Đây là bottleneck chính của EVM — mọi transaction đều phải đọc/ghi global world state, tạo bottleneck khi có nhiều giao dịch cùng nhắm vào resource chung.
Sui: state = tập hợp objects độc lập, mỗi object có globally unique ID (UID). Transaction khai báo input objects upfront → network schedule tx không overlap song song. Nhờ đó, Sui đạt TPS tuyến tính theo số validator.
| Đặc điểm | EVM (Account-based) | Sui (Object-based) |
|---|---|---|
| State model | Global accounts mapping | Independent objects với UID |
| Transaction input | Implicit (đọc global state) | Explicit (liệt kê object IDs) |
| Parallel execution | Khó (cần conflict detection runtime) | Dễ (static analysis trước khi exec) |
| Asset ownership | Trong account storage | Object sở hữu bởi address/UID khác |
| Composability | Contract call contract | PTB: multiple commands atomic trong 1 tx |
| Transaction finality | 12+ blocks (~15 phút) | Sub-second (~480ms) |

Move on Sui: Ngôn ngữ an toàn cho tài sản
Move ban đầu phát triển cho Diem (Libra). Sui adopt và mở rộng nhiều tính năng:
- Resource safety: Type system ngăn double-spend, asset loss — compiler bắt lỗi ở compile-time. Không thể tạo 2 bản của cùng 1 resource. Anthropic/Google dùng Rust cho lý do tương tự.
- Object = struct có
keyability + fieldid: UID: Mỗi object unique, không thể duplicate. Verifier đảm bảo UID luôn mới, identifier không bao giờ reuse. - Module initializers (
init): Chạy 1 lần khi publish package, tạo singleton objects, setup state ban đầu. - Entry functions: Gọi từ PTB, không bị wrap bởi logic Move khác — chống front-run randomness, anti-MEV design.
- Programmable Transaction Blocks (PTB): 1 tx = nhiều commands (move_call, transfer_object, split_coin, make_move_vec…) atomic, gas duy nhất, rollback nếu 1 trong N commands fail.

Sui Move khác Move trên Diem ở đâu?
- Không có global storage: Object lưu riêng, không gắn vào account address. Mỗi object truy cập qua UID riêng biệt.
- Address = 32-byte UID: Dùng cho cả object và account (Diem: 16-byte account address riêng biệt)
- Object ID globally unique: Bytecode verifier đảm bảo UID không bao giờ reuse — security invariant quan trọng nhất
- Dynamic fields: Object có thể thêm field runtime (key-value) không cần modify struct definition — hữu ích cho upgradeable contracts.
- TransferPolicy, Kiosk standards: Built-in royalty, transfer rules cho NFT/marketplace — dev không phải tự code escrow/routing logic.
Mysticeti Consensus: Sub-second finality
Sui dùng Mysticeti — DAG-based consensus (dựa trên Narwhal/Tusk):
- Validator propose blocks dạng DAG, không chuỗi tuyến tính
- Finality ~390ms (testnet), ~480ms (mainnet)
- Throughput scale linear với số validator (không bị bottleneck single leader)
- Tách consensus (ordering) và execution — execution song song sau khi order xong
- Narwhal handles ordering, SuiVM handles execution, hai layer này scale độc lập.
- Consensus overhead thấp hơn BFT/PBFT truyền thống vì majority-based voting thay vì quorum-based
Ecosystem & Infrastructure
- zkLogin: Đăng nhập Web2 (Google, Apple, Twitch) → tạo Sui address, không cần seed phrase. Zero-knowledge proof đảm bảo privacy — Notion không thấy password của bạn.
- Passkey/WebAuthn: Hardware key (YubiKey, FaceID/TouchID) làm signer giao dịch — bảo mật sinh trắc học, không seed phrase.
- Walrus: Decentralized storage layer cho blob lớn (NFT media, AI model weights, video). Erasure coding, redundancy, cost thấp hơn IPFS.
- DeepBook: On-chain central limit order book (CLOB) shared liquidity. Cross-protocol composability — AMM + CLOB share same liquidity pool.
- SuiNS: Naming service .sui — human-readable addresses thay vì 0x…hex string.
- Seal: Threshold encryption cho access control dữ liệu off-chain — multi-party computation, không single point of failure.
Atoms vs Objects: Khi nào dùng cái gì?
Sui 2.0 (2025) giới thiệu Atoms — đơn vị tài sản mới:
- Object: Dùng cho dynamic composition, governance, NFT — có UID, có ownership, có dynamic fields.
- Atom: Fungible token, fixed supply, gas object được cải tiến — nhanh hơn, rẻ hơn, đơn giản hơn cho native tokens.
- Kết hợp cả hai: dùng Atom cho payment/fee, Object cho governance/NFT.
Ví dụ: Viết Move module cơ bản trên Sui
module my_package::counter {
use sui::object::{Self, UID};
use sui::transfer;
use sui::tx_context::{Self, TxContext};
struct Counter has key, store {
id: UID,
value: u64,
}
public fun increment(counter: &mut Counter) {
counter.value = counter.value + 1;
}
entry fun create(ctx: &mut TxContext) {
transfer::transfer(
Counter { id: object::new(ctx), value: 0 },
tx_context::sender(ctx)
)
}
}
key ability = object (có UID). store = transfer được. Entry function = gọi từ PTB. Compile: sui move build, deploy: sui client publish.
Kết luận
Sui không chỉ “EVM killer” — nó thiết kế lại từ state model, language, consensus để giải quyết bottleneck cốt lõi: sequential execution. Object-centric + Move + Mysticeti = throughput tuyến tính, finality sub-second, asset safety tại compile-time. Dành cho: DeFi high-frequency, gaming on-chain, AI agent economy, capital markets settlement. Sui Stack (Walrus, DeepBook, zkLogin, Seal) tạo hệ sinh thái hoàn chỉnh không cần phụ thuộc bên ngoài.
Nguồn: Sui Move Concepts | Sui Official | Sui GitHub | Object-Centric Design | What is Sui
