TON possesses a core technological logic centered around high-speed applications: TON originated from Telegram, with transactions directly recorded on the chain based on messages, supporting peer-to-peer communication.
TON’s dynamic multi-shard architecture facilitates application scalability: TON enhances speed through parallel queries, improves query accuracy with dynamic sharding, and boosts extensibility through a bag of cells structure.
TON will continue optimizing its technical framework in the future: Through parallel expansion, the introduction of chain sharding tools, and the reinforcement of node inspections, TON aims to sustain its advantages in speed and scalability.
Blockchain scalability is a crucial technical challenge and a key driver for the development of blockchain technology: As blockchain applications grow and user numbers increase, existing blockchain networks often face issues of insufficient throughput and long transaction confirmation times. Traditional blockchain designs limit their ability to handle large-scale transactions and user demands, leading to network congestion, high transaction costs, and inefficiency.
The challenges of blockchain scalability primarily stem from the distributed architecture and consensus mechanisms: The consensus mechanism and distributed nature of blockchain require every node in the network to verify and record all transactions, limiting the throughput of the network. Additionally, blockchain’s security and decentralized features demand that all nodes maintain complete blockchain copies, increasing the burden on storage and transmission.
To address the challenge of blockchain scalability, researchers have proposed various scaling solutions such as Sharding, Sidechains, and Layer 2 solutions: These approaches aim to enhance network throughput and performance by dividing the network into smaller segments, introducing independent blockchains, or constructing additional structures on the main chain. However, these solutions bring about new technical challenges and security issues, such as inter-shard communication, cross-shard asset transfers, and consensus mechanism design.
TON blockchain , originating from Telegram , was conceived with the idea of serving a massive user base: Telegram is one of the world’s most popular social platforms, boasting over 800 million monthly active users and transmitting billions of messages within the software every day. TON, as Telegram’s foray into web3, was designed from the outset to cater to billions of users rather than just a small user base.
TON’s sharding is bottom-up: While conventional blockchain sharding schemes typically adopt a top-down approach, establishing a single blockchain first and then breaking it down into interactive blockchains to enhance performance, TON’s sharding takes a bottom-up approach. It organizes these account chains into shardchains, forming a Shardchain, where Workchains exist purely in virtual or logical forms. TON achieves parallel transaction processing across multiple chains, referred to as a “blockchain of blockchains.” This approach effectively boosts system performance.
TON features a dynamic sharding architecture, consisting of masterchain, workchain, and shardchain: The masterchain coordinates, while actual transaction processing occurs within various workchains and shardchains. Additionally, TON’s sharding is dynamic, with each account functioning as a shardchain. These can adaptively combine into larger shardchains based on the interactions among accounts to address dynamic expansion needs.
If sharding reaches its limit, each shardchain will store only one account or smart contract. This results in numerous “account-chains” describing the state and transitions of individual accounts, with these chains mutually transmitting information, forming Workchain through Shardchains.
Message: Since TON uses FunC’s send_raw_message function to develop its language, the messages passed by TON nodes are called “messages”. A transaction in TON consists of an inbound message that initially triggers it and a set of outbound messages that are sent to other contracts;
Hypercube Routing: A three-dimensional structured messaging mechanism that enables messages created in one block of a sharded chain to be rapidly delivered and processed to the next block of the target sharded chain.
Asynchronous calls pose synchronization challenges: In synchronous blockchains, transactions can include multiple smart contract calls. In asynchronous systems, users cannot promptly receive responses from the target smart contract in the same transaction. This delay is because contract calls may take several blocks to process, and the routing distance between source and destination blocks affects this process.
To achieve infinite sharding, it is essential to ensure complete parallelization of messages, leading to the introduction of the concept of logical time: In TON, each transaction executes solely on a single smart contract and communicates between contracts using messages. This introduces the concept of logical time in asynchronous chains, enabling synchronization of messages between chains. Each message has its logical time or Lamport time (hereafter referred to as lt). This time is used to track the relationships between events and determine which events validators need to process first.
The execution logic is guaranteed by strictly following the execution order of message lt: Messages sent from an account and transactions occurring on an account are strictly ordered, with the lt of generated transactions greater than the lt of messages. Additionally, the lt of messages sent in a transaction is strictly greater than the lt of the transaction that triggers the messages. In the case of multiple messages, those with lower lt are processed earlier.
TON employs parallel execution with Fast Routing + Slow Routing:
Slow Routing: A more stable and traditional cross-chain information processing method, where information is packaged into a block on the source chain and then relayed from one shard chain to another through a relayer. Multiple intermediary shard chains can also be used for transmission. All shard chains form a “hypercube” graph, and messages propagate along the edges of this hypercube. After validation by validators, the information is packaged into another block.
The advantage of Slow Routing lies in higher security and decentralization, as all information needs to go through a complete block confirmation process. For a hypercube network of shard chains with a scale of N, the number of routes hop = log16(N). Therefore, only 4 routing nodes are needed to support a million shard chains.
Fast Routing: In Slow Routing, messages propagate along the edges of the hypercube. To speed up, Fast Routing allows the validators of the destination shard chain to process the message in advance, provide a Merkle proof, and send a receipt to destroy the transmitting message.
Fast Routing is faster (nodes can find the optimal path) and prevents double delivery. However, it cannot replace Slow Routing because validators are not penalized for losing receipts, posing a certain security risk.
“Bag of cells”: A set of cells updated in a manner similar to a Directed Acyclic Graph (DAG). This involves representing the new state as another “bag of cells” with its own root, and then combining the new and old sets of cells while simultaneously removing the old root.
Vertical block repair: In TON shard chains, each block is not just a single block but a chain. When it is necessary to fix a block in an erroneous shard chain, a new block will be submitted to the “vertical block chain” for the replacement of the block.
POS network consists of three roles:
BFT (Byzantine Fault Tolerance ): TON, after weighing options, chooses BFT over DPOS for its higher trust level and speed, despite DPOS being faster.
TON achieves high transaction speed and finality through a dynamic multi-shard architecture: Each user wallet in TON can have its own chain, and the theoretical basis for high TPS includes parallel computation of shards, support for instant cross-shard communication, and TVM supporting asynchronous computation.
TON brings higher scalability through an information-passing mechanism: In TON blockchain, calls between smart contracts are asynchronous rather than atomic. This means that when one smart contract calls another, the call is not executed immediately but is processed in some future block after the transaction ends. This design allows for higher scalability as it doesn’t require completing all transaction processing in a single block.
TON’s technical roadmap will continuously advance the speed and scalability advantages of TON:
TON possesses a core technological logic centered around high-speed applications: TON originated from Telegram, with transactions directly recorded on the chain based on messages, supporting peer-to-peer communication.
TON’s dynamic multi-shard architecture facilitates application scalability: TON enhances speed through parallel queries, improves query accuracy with dynamic sharding, and boosts extensibility through a bag of cells structure.
TON will continue optimizing its technical framework in the future: Through parallel expansion, the introduction of chain sharding tools, and the reinforcement of node inspections, TON aims to sustain its advantages in speed and scalability.
Blockchain scalability is a crucial technical challenge and a key driver for the development of blockchain technology: As blockchain applications grow and user numbers increase, existing blockchain networks often face issues of insufficient throughput and long transaction confirmation times. Traditional blockchain designs limit their ability to handle large-scale transactions and user demands, leading to network congestion, high transaction costs, and inefficiency.
The challenges of blockchain scalability primarily stem from the distributed architecture and consensus mechanisms: The consensus mechanism and distributed nature of blockchain require every node in the network to verify and record all transactions, limiting the throughput of the network. Additionally, blockchain’s security and decentralized features demand that all nodes maintain complete blockchain copies, increasing the burden on storage and transmission.
To address the challenge of blockchain scalability, researchers have proposed various scaling solutions such as Sharding, Sidechains, and Layer 2 solutions: These approaches aim to enhance network throughput and performance by dividing the network into smaller segments, introducing independent blockchains, or constructing additional structures on the main chain. However, these solutions bring about new technical challenges and security issues, such as inter-shard communication, cross-shard asset transfers, and consensus mechanism design.
TON blockchain , originating from Telegram , was conceived with the idea of serving a massive user base: Telegram is one of the world’s most popular social platforms, boasting over 800 million monthly active users and transmitting billions of messages within the software every day. TON, as Telegram’s foray into web3, was designed from the outset to cater to billions of users rather than just a small user base.
TON’s sharding is bottom-up: While conventional blockchain sharding schemes typically adopt a top-down approach, establishing a single blockchain first and then breaking it down into interactive blockchains to enhance performance, TON’s sharding takes a bottom-up approach. It organizes these account chains into shardchains, forming a Shardchain, where Workchains exist purely in virtual or logical forms. TON achieves parallel transaction processing across multiple chains, referred to as a “blockchain of blockchains.” This approach effectively boosts system performance.
TON features a dynamic sharding architecture, consisting of masterchain, workchain, and shardchain: The masterchain coordinates, while actual transaction processing occurs within various workchains and shardchains. Additionally, TON’s sharding is dynamic, with each account functioning as a shardchain. These can adaptively combine into larger shardchains based on the interactions among accounts to address dynamic expansion needs.
If sharding reaches its limit, each shardchain will store only one account or smart contract. This results in numerous “account-chains” describing the state and transitions of individual accounts, with these chains mutually transmitting information, forming Workchain through Shardchains.
Message: Since TON uses FunC’s send_raw_message function to develop its language, the messages passed by TON nodes are called “messages”. A transaction in TON consists of an inbound message that initially triggers it and a set of outbound messages that are sent to other contracts;
Hypercube Routing: A three-dimensional structured messaging mechanism that enables messages created in one block of a sharded chain to be rapidly delivered and processed to the next block of the target sharded chain.
Asynchronous calls pose synchronization challenges: In synchronous blockchains, transactions can include multiple smart contract calls. In asynchronous systems, users cannot promptly receive responses from the target smart contract in the same transaction. This delay is because contract calls may take several blocks to process, and the routing distance between source and destination blocks affects this process.
To achieve infinite sharding, it is essential to ensure complete parallelization of messages, leading to the introduction of the concept of logical time: In TON, each transaction executes solely on a single smart contract and communicates between contracts using messages. This introduces the concept of logical time in asynchronous chains, enabling synchronization of messages between chains. Each message has its logical time or Lamport time (hereafter referred to as lt). This time is used to track the relationships between events and determine which events validators need to process first.
The execution logic is guaranteed by strictly following the execution order of message lt: Messages sent from an account and transactions occurring on an account are strictly ordered, with the lt of generated transactions greater than the lt of messages. Additionally, the lt of messages sent in a transaction is strictly greater than the lt of the transaction that triggers the messages. In the case of multiple messages, those with lower lt are processed earlier.
TON employs parallel execution with Fast Routing + Slow Routing:
Slow Routing: A more stable and traditional cross-chain information processing method, where information is packaged into a block on the source chain and then relayed from one shard chain to another through a relayer. Multiple intermediary shard chains can also be used for transmission. All shard chains form a “hypercube” graph, and messages propagate along the edges of this hypercube. After validation by validators, the information is packaged into another block.
The advantage of Slow Routing lies in higher security and decentralization, as all information needs to go through a complete block confirmation process. For a hypercube network of shard chains with a scale of N, the number of routes hop = log16(N). Therefore, only 4 routing nodes are needed to support a million shard chains.
Fast Routing: In Slow Routing, messages propagate along the edges of the hypercube. To speed up, Fast Routing allows the validators of the destination shard chain to process the message in advance, provide a Merkle proof, and send a receipt to destroy the transmitting message.
Fast Routing is faster (nodes can find the optimal path) and prevents double delivery. However, it cannot replace Slow Routing because validators are not penalized for losing receipts, posing a certain security risk.
“Bag of cells”: A set of cells updated in a manner similar to a Directed Acyclic Graph (DAG). This involves representing the new state as another “bag of cells” with its own root, and then combining the new and old sets of cells while simultaneously removing the old root.
Vertical block repair: In TON shard chains, each block is not just a single block but a chain. When it is necessary to fix a block in an erroneous shard chain, a new block will be submitted to the “vertical block chain” for the replacement of the block.
POS network consists of three roles:
BFT (Byzantine Fault Tolerance ): TON, after weighing options, chooses BFT over DPOS for its higher trust level and speed, despite DPOS being faster.
TON achieves high transaction speed and finality through a dynamic multi-shard architecture: Each user wallet in TON can have its own chain, and the theoretical basis for high TPS includes parallel computation of shards, support for instant cross-shard communication, and TVM supporting asynchronous computation.
TON brings higher scalability through an information-passing mechanism: In TON blockchain, calls between smart contracts are asynchronous rather than atomic. This means that when one smart contract calls another, the call is not executed immediately but is processed in some future block after the transaction ends. This design allows for higher scalability as it doesn’t require completing all transaction processing in a single block.
TON’s technical roadmap will continuously advance the speed and scalability advantages of TON: