bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 33쪽 중 21쪽
# WebSocket Events
Nodes do not provide WebSocket endpoints for real-time block or event streaming at this point. For real-time data access, applications must use polling via RPC endpoints or utilize third-party indexer services.
#### GraphQL Interface
The GraphQL interface enables ***flexible queries*** for complex multi-resource operations, providing ***type-safe query construction*** through schema definition and supporting ***efficient data aggregation*** and computation. The system includes ***query result caching*** for performance optimization.
### 2. Execution Layer
#### Move Virtual Machine (MoveVM)
The MoveVM provides ***native execution*** of Move bytecode, featuring ***precise gas metering*** that accounts for instruction, storage, and payload costs. It enforces ***type safety*** through Move's static and dynamic safety checks, including resource ownership rules, and ensures ***sandboxing*** by isolating transaction execution within the VM environment.
#### Transaction Pipeline
The transaction pipeline enables ***parallel processing*** through [Block-STM](https://arxiv.org/abs/2203.06871), which applies ***dynamic dependency resolution*** to detect read/write conflicts and order transactions consistently. The system supports ***speculative execution*** with optimistic parallel execution, where transactions may be aborted and re-executed as needed, and Block-STM guarantees that transactions are only ***committed in deterministic order*** once all prior dependencies are finalized.
#### State Management
State management maintains a ***consistent global state view*** of all account and resource data. It integrates with [Block-STM](https://arxiv.org/abs/2203.06871) to provide ***deterministic commit ordering*** of state changes. For performance, it uses ***in-memory buffering and caching*** during execution. Finalized state updates are written through ***efficient serialization*** and stored in ***authenticated data structures***, ensuring both persistence and verifiability.
### 3. Storage Layer
#### Account Store
The account store implements ***address-based*** direct mapping from addresses to account data, providing ***native storage*** of Move resources with ***optimized access patterns*** for common operations. The system includes ***state data compression*** for storage efficiency.
#### Merkle Trees
Merkle trees provide a ***cryptographic state root*** commitment to global state, enabling ***efficient proof generation*** for state verification and supporting ***incremental updates*** with minimal computation for state changes. The system ensures ***fast verification*** of state transitions.
#### Transaction History
Transaction history maintains a ***complete ledger*** with full history of all transactions, featuring ***efficient indexing*** for querying by various criteria and ***optional pruning*** of historical data for storage optimization. The system provides an ***immutable audit trail*** of all state changes.
### 4. Consensus Layer
#### Byzantine Fault Tolerant (BFT) Consensus
The BFT consensus mechanism uses a ***modified HotStuff-based algorithm*** designed for high throughput, providing ***safety*** guarantees that ensure consistency even with up to 1/3 malicious validators. The system maintains ***liveness*** by ensuring progress under network asynchrony, while delivering ***single-slot finality*** for fast transaction confirmation.
#### Validator Network
The validator network operates on a ***proof-of-stake*** model that enables energy-efficient validation through token staking, featuring a ***dynamic set*** where validators can join or leave based on their stake and performance. The system implements ***regular leader rotation*** for decentralization and includes ***slashing*** mechanisms that impose penalties for malicious or negligent behavior.
#### Leader Selection
Leader selection employs a ***deterministic*** approach with cryptographically verifiable selection that is ***weighted*** based on validator stake, ensuring ***fair*** distribution and preventing leader monopolization while maintaining ***efficient*** operation with minimal computational overhead.
### 5. Network Layer
#### Peer-to-Peer Protocol
The peer-to-peer protocol implements a ***gossip network*** for efficient information dissemination, featuring ***automatic peer discovery*** of network participants and ***robust connection management*** with handling and recovery capabilities. The system includes ***cryptographic message authentication*** for verification.
#### Mempool
The mempool manages ***pending transactions*** in a transaction pool, implementing ***priority-based ordering*** for transaction selection and providing ***spam protection*** against malicious transactions. The system includes ***broadcast optimization*** for efficient transaction propagation.
## Security Architecture
#### Cryptographic Primitives
The system employs ***Ed25519 digital signatures*** for transaction authentication, ***SHA-3 hash functions*** for data integrity and commitments, and ***efficient Merkle proofs*** for state and transaction verification. The architecture includes ***verifiable random beacons*** for leader selection.
#### Access Control
Access control implements an ***address-based account model*** with ***Move's resource ownership model*** for asset safety, featuring ***fine-grained permission systems*** for management and ***multi-signature support*** for transaction authorization.
#### Network Security
Network security provides ***DDoS protection*** against network attacks, implements ***rate limiting*** to prevent resource exhaustion, and ensures ***cryptographic validator authentication*** for identity verification. The system includes ***slashing conditions*** that create economic incentives for honest behavior.
## Performance Characteristics
#### Throughput
The system targets ***10,000+ transactions per second*** with ***burst capacity*** for higher throughput during brief periods. Future development includes ***horizontal scaling through sharding*** and ***continuous performance optimization*** for sustained improvements.
#### Latency
The system achieves ***1-2 second block production*** with ***single-block finality*** and ***sub-second transaction confirmation***. The architecture minimizes ***network propagation delay*** for optimal performance.
#### Storage
Storage management implements ***bounded state growth*** through pruning mechanisms, ***configurable history retention*** for transaction data, and ***efficient data compression*** techniques. The system includes ***long-term archival solutions*** for data preservation.
## Governance and Upgrades
#### On-Chain Governance
On-chain governance implements a ***structured proposal system*** for governance mechanisms, featuring ***token-weighted voting*** on protocol changes and ***automatic execution*** of approved proposals. The system includes ***emergency procedures*** with fast-track processes for critical issues.
#### Protocol Upgrades
Protocol upgrades feature ***coordinated version management*** for updates, maintaining ***backward compatibility*** where possible and providing ***automated migration tools*** for existing state. The process includes ***comprehensive testing*** before mainnet deployment.
# Overview
URL: /general/l1
import React from 'react';
M1 (Movement L1) is a native Move blockchain that provides high-throughput execution through the MoveVM.
## Documentation
* **[What is M1](/general/l1/what-is-movement-l1)** - Learn about M1 components and capabilities
* **[Move Language](/general/l1/move-language)** - High level overview of the Move Language
* **[M1 Architecture](/general/l1/architecture)** - Detailed architecture of M1
* **[Node-Level Architecture](/general/l1/node-level-architecture)** - Detailed node-level architecture and components
* **[Node Operations](/general/l1/nodes)** - Information about running M1 nodes
* **[Staking and Delegation](/general/l1/staking)** - Understanding staking states, delegation pools, and reward distribution
* **[M1 Whitepaper](/general/l1/protocol-specification)** - Whitepaper for M1
* **[MiCA Whitepaper](/general/l1/mica-whitepaper)** - Movement's MiCA compliance whitepaper
## Networks
M1 currently operates:
* **[Mainnet](/general/networks/mainnet)** - The production network serving real economic value
* **[Testnet](/general/networks/testnet)** - Production-ready testing environment
## Whitepaper
For further information about M1, please refer to our [M1 Whitepaper](/general/l1/protocol-specification).
# MiCA Whitepaper
URL: /general/l1/mica-whitepaper
The MiCA (Markets in Crypto-Assets) whitepaper outlines Movement's approach to regulatory compliance under the European Union's MiCA framework.
<a href="/mica-whitepaper.pdf" target="_blank" rel="noopener noreferrer">
Read the full MiCA Whitepaper
</a>
# Move Language
URL: /general/l1/move-language
Move is a safe and secure programming language designed by Facebook for smart contracts that emphasize ownership and safety. Assets in Move are represented as resources. Owing to Move's strong ownership model and explicit resource abilities, Move simplifies the development of safe smart contracts for common blockchain tasks such as transferring ownership of assets, minting, and destroying.
The chart below compares common non-Move runtimes against Aptos and Sui Move runtimes, underscoring the different models and benefits of Move.
| | Aptos / Move | Solana / SeaLevel | EVM | Sui / Move |
| ------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------- | ---------------------------------------------------------- | ------------------------------------- |
| **Data storage** | Stored at a global address or within the owner's account | Stored within the owner's account associated with a program | Stored within the account associated with a smart contract | Stored at a global address |
| **Parallelization** | Capable of inferring parallelization at runtime within Aptos | Requires specifying all data accessed | Currently serial, nothing in production | Requires specifying all data accessed |
| **Transaction safety** | Sequence number | Transaction uniqueness | Nonces, similar to sequence numbers | Transaction uniqueness |
| **Type safety** | Module structs and generics | Program structs | Contract types | Module structs and generics |
| **Function calling** | Static dispatch | Static dispatch | Dynamic dispatch | Static dispatch |
| **Authenticated Storage** | Yes | No | Yes | No |
| **Object accessibility** | Guaranteed to be globally accessible | Not applicable | Not applicable | Can be hidden |
# Node-Level Architecture
URL: /general/l1/node-level-architecture
This document provides a detailed view of the internal architecture of M1 nodes, covering the various components, their interactions, and the data flows within a single node instance. For the high-level system architecture and network design, see [M1 Architecture](/general/l1/architecture).
## Core Layers
The M1 node architecture is organized into five core layers, each handling specific aspects of node functionality while working together to provide a complete, high-performance blockchain node. These layers correspond directly to the [M1 Architecture](/general/l1/architecture) but focus on the internal implementation details of individual nodes rather than the overall system design.
```
┌─────────────────────────────────────────────────────────────────────┐
│ M1 Node │
├─────────────────────────────────────────────────────────────────────┤
│ 1. API Layer │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ RPC/API │ │ WebSocket │ │ Metrics │ │
│ │ Server │ │ Server │ │ Exporter │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ 2. Storage Layer │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ State │ │ Transaction │ │ Event │ │ Config │ │
│ │ Store │ │ Store │ │ Store │ │ Store │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ 3. Execution Layer │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Transaction │ │ Executor │ │ State Cache │ │
│ │ Validator │ │ Engine │ │ Manager │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ 4. Consensus Layer │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Consensus │ │ Voting │ │ Leader │ │ Safety │ │
│ │ Engine │ │ Module │ │ Election │ │ Module │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ 5. Network Layer │
│ ┌─────────────┐ ┌─────────────┐ │
│ │ P2P Net │ │ Mempool │ │
│ │ Handler │ │ Manager │ │
│ └─────────────┘ └─────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
```
### 1. API Layer
#### RPC/API Server
The RPC/API Server provides external API access to node functionality.
The RPC/API Server provides ***transaction submission*** endpoints for submitting signed transactions to the network, ***state queries*** for querying account states and resource data, ***block information*** retrieval for block and transaction data, and ***network status*** endpoints for getting node and network health information. For real-time data access, applications must implement polling mechanisms using these RPC endpoints.
#### WebSocket Server
Nodes do not provide WebSocket endpoints for real-time block or event streaming at this point. The WebSocket Server component is not available for external clients. For real-time data access, applications must use polling via RPC endpoints or utilize third-party indexer services.
#### Metrics Exporter
The Metrics Exporter exports node performance and health metrics.
It tracks ***performance metrics*** including transaction throughput, latency, and CPU usage, ***network metrics*** such as peer count, message rates, and bandwidth usage, ***storage metrics*** covering database size, disk I/O, and cache hit rates, and ***consensus metrics*** including participation rates and voting statistics.
### 2. Storage Layer
#### State Store
The State Store provides persistent storage of global blockchain state. It supports ***efficient read operations*** with Merkle proofs for state queries, ***atomic write operations*** with versioning for state updates, ***proof generation*** for cryptographic proofs of state, and ***state synchronization*** to sync state with other nodes.
#### Transaction Store
The Transaction Store stores the complete transaction history and metadata
#### Event Store and Indexing
The Event Store provides indexing ***by event key*** for fast queries of specific event streams, ***by type*** to query events by Move type, ***by transaction*** to find all events from a specific transaction, and ***by block*** to retrieve all events from a block.
#### Configuration Store
The Configuration Store stores node configuration and network parameters.
The Configuration Store manages ***network configuration*** for peer discovery and connection limits, ***consensus configuration*** for voting timeouts and block limits, ***execution configuration*** for gas prices and resource limits, and ***API configuration*** for rate limits and authentication settings.
### 3. Execution Layer
#### Transaction Validator
The Transaction Validator validates transaction signatures, format, and basic checks in the following steps:
1. **Signature Verification**: Cryptographic signature validation
2. **Format Checking**: Transaction structure and field validation
3. **Sequence Validation**: Account sequence number verification
4. **Gas Validation**: Gas price and limit verification
5. **Balance Checking**: Sufficient balance for transaction fees
#### Executor Engine
The Executor Engine executes validated transactions using the MoveVM and through the following pipeline:
1. **Transaction Preparation**: Load account states and dependencies
2. **MoveVM Execution**: Execute Move bytecode in sandboxed environment
3. **State Updates**: Apply changes to global state
4. **Event Generation**: Generate events for state changes
5. **Gas Accounting**: Calculate and charge gas fees
#### State Cache Manager
The State Cache Manager manages in-memory caching of frequently accessed state.
The State Cache Manager maintains an ***account cache*** for recently accessed account states, a ***resource cache*** for frequently queried Move resources, a ***module cache*** for compiled Move module bytecode, and a ***Merkle cache*** for recently computed Merkle tree nodes.
### 4. Consensus Layer
#### Consensus Engine
The Consensus Engine coordinates the Byzantine Fault Tolerant consensus protocol through the following flow:
1. **Block Proposal**: Leader proposes a block containing transactions and a Quorum Certificate (QC) for its parent.
2. **Voting Phase**: Validators verify the proposal and cast ***vote messages***.
3. **QC Formation**: Votes are aggregated into a ***Quorum Certificate*** attesting to the block's validity.
4. **Block Commit**: Once a 3-chain of consecutive certified blocks is formed, the earliest block in the chain is ***finalized*** and added to the ledger.
#### Voting Module
The Voting Module handles vote creation, validation, aggregation, and timeout votes for liveness. It has the following vote types:
* ***block vote***: validator’s signature attesting to a proposed block.
* ***timeout vote***: issued if no valid proposal is received in time, can aggregate into a Timeout Certificate (TC) to trigger a new leader view.
#### Leader Election
The Leader Election determines which validator proposes the next block.
The Leader Election uses ***weighted selection*** with probability proportional to validator stake, ensuring ***deterministic*** selection where the same leader is chosen by all honest validators. The algorithm implements ***regular rotation*** to prevent centralization and guarantees ***liveness*** with progress even when some validators are offline.
#### Safety Module
The Safety Module ensures consensus safety properties are maintained.
The Safety Module performs ***conflicting vote detection*** to prevent double voting, ***fork detection*** to identify potential blockchain forks, ***slashing evidence*** collection for malicious behavior, and implements ***recovery mechanisms*** to handle network partitions and attacks.
### 5. Network Layer
#### P2P Network Handler
The P2P Network Handler manages peer-to-peer communication with other nodes.
The P2P Network Handler consists of a ***connection manager*** that establishes and maintains connections to peers, a ***message router*** that routes incoming messages to appropriate handlers, a ***gossip protocol*** that implements efficient information dissemination, and ***peer discovery*** mechanisms that discover and connect to new network peers.
#### Mempool Manager
The Mempool Manager manages pending transactions before consensus.
The Mempool Manager includes a ***transaction pool*** for in-memory storage of pending transactions, a ***priority queue*** that orders transactions by gas price and priority, a ***spam filter*** that prevents spam and invalid transactions, and an ***expiration manager*** that removes expired transactions.
## Node Types and Specialization
#### Validator Nodes
Validator nodes provide ***active consensus participation*** in block production, performing ***state validation*** by verifying all state transitions and contributing to ***network security*** through staking mechanisms. These nodes participate in ***protocol governance*** decisions and include ***full consensu프로젝트로 돌아가기