TONSquare’s Modular Layers
Let’s explore the four modular layers in greater detail, focusing on how they contribute to the functionality and scalability of TONSquare's blockchain.
Execution Layer (EL)
The Execution Layer (EL) is responsible for the core operations of the blockchain, including transaction processing and the execution of smart contracts. In TONSquare, the EL is designed to be compatible with both EVM and TON environments, allowing for seamless deployment and operation of smart contracts across different ecosystems. By utilizing zkRollups, the Execution Layer offloads much of the computational work from the main chain, which enhances the speed and reduces the cost of transactions.
Consensus Layer (CL)
The Consensus Layer (CL) is the backbone of network security. It ensures that all nodes in the network reach agreement on the blockchain’s current state. TONSquare employs a hybrid consensus mechanism combining Proof of Stake (PoS) with zk-SNARKs, which provides a secure and scalable method for achieving consensus while maintaining the integrity of the blockchain.
Data Availability Layer (DA)
In TONSquare's architecture, the Data Availability Layer (DA) is crucial for ensuring that all necessary data for transaction validation is accessible to validators. The DA layer is essential for maintaining the integrity and security of the network, ensuring that validators can reliably access the data they need to verify transactions.
TONSquare employs a decentralized approach to data availability, allowing the network to handle large amounts of data efficiently and securely. This layer enhances the scalability, security, and decentralization of the TONSquare network.
How DA Works in TONSquare
Data Storage and Operators:
TONSquare uses a decentralized network of operators to store transaction data (blobs). These operators are responsible for securely storing data associated with valid storage requests.
Each operator verifies the integrity of the data before storage, ensuring that only valid data is stored in the network.
Disperser and Encoding:
The DA layer includes a disperser that handles data encoding and distribution. This process involves erasure coding, where data is split into chunks and dispersed across multiple operators.
Each chunk is associated with cryptographic commitments and proofs, which are used to verify the accuracy and availability of the data.
Signature Aggregation and Onchain Registration:
After data is stored, operators sign their stored chunks, and these signatures are aggregated by the disperser.
The aggregated signatures, along with metadata about the data chunks, are then registered on-chain. This registration step is critical for ensuring that the data is available and can be retrieved by validators when needed.
Data Retrieval and Verification:
When data needs to be retrieved, validators or other network participants query the DA layer to obtain the necessary data chunks.
The DA layer ensures that all data retrieved is accurate and consistent with the original data stored, enabling secure and reliable transaction validation.
This diagram visualizes how data is managed within the DA layer of TONSquare, ensuring it is available, secure, and verifiable for all necessary operations within the blockchain.
Settlement Layer (SL)
The Settlement Layer (SL) is where transaction finality is achieved, and it handles the resolution of disputes and the verification of transactions. This layer acts as the final checkpoint for all off-chain computations, ensuring that they are securely settled on the main chain. The Settlement Layer is essential for maintaining the trustworthiness of TONSquare’s blockchain, as it guarantees that all transactions and state changes are accurately recorded and immutable.
These layers form the foundation of TONSquare’s modular blockchain. By leveraging these layers, TONSquare provides a robust, scalable, and secure platform that supports a wide range of decentralized applications.
Last updated