TheX Protocol
Comment on page

TheX Chain - Layer 2 Blockchain

TheX Protocol's structure enables it to perform transactions on multiple blockchain networks. Within the Web3 ecosystem, there may be thousands, tens of thousands, or even millions of teams interested in developing business models and utilizing TheX Protocol Web3 Wizard. Considering the potential high transaction volume on targeted networks, instead of directly burdening the networks, we will maintain the transaction intensity within the TheX Protocol Layer 2 Blockchain as a support point. TheX Protocol Layer 2 Blockchain will be activated when transaction volume significantly increases through the Web3 Wizard.
TheX Protocol Layer 2 Blockchain will utilize ZK-Snark and ZK-Rollups technologies under Layer 2 Technology.
Technologies Used in Layer2 - TheX Chain
TheX Chain, operating on Layer2, utilizes a range of advanced technologies to enable efficient and scalable operations within the Web3 ecosystem. These technologies include:
1. Merkle Tree
Main Chain Nodes Validate TheX Chain Merkle Tree:
The Merkle Tree structure holds a significant place in the architecture of almost every implemented blockchain. In TheX Chain Data Storage Architecture, the Merkle Tree plays a crucial role in storing, progressing, classifying, and enabling Main Chain nodes to validate TheX Chain blocks in a synchronized manner.
The Main Chain is always responsible for verifying the information coming from TheX Chain. To measure the accuracy of TheX Chain "Transaction Proofs," the Main Chain leverages the Merkle Tree structure.
2. ZK-Rollups
Layer 1 blockchains may experience interruptions or slowdowns during periods of high transaction volume or unexpectedly high demand. In such cases, Layer 2 ZK-Rollups offer an important solution. ZK-Rollups prevent Mainchains from being exposed to interruptions and slowdowns by providing transaction summaries with minimal proof costs instead of sending all transactions to the Mainchain.
As mentioned in TheX Chain introduction, TheX Protocol has superior Web3 service infrastructure, which allows it to perform fast block read and write operations on active Layer 1 networks. With Zero-Knowledge Rollups, TheX Chain scales the Main Chain it is in mutualistic communication with, alleviating a significant burden on the chain.
Structures such as Process Calculation and Data Storage are kept in TheX-Chain Layer, while the Security Layer, Fund Protection, and Transaction Proofs are kept on the Main Chain.
Data verifications regarding the proof transactions of the protection of the users' funds are also kept in the Main Chain Layer, and the investor fund is protected by the 'Main Chain' nodes.
TheX Chain is structured on the ZK-Rollups architecture. TheX Chain is a Layer 2 Scaling solution where ZK Rollup is used, funds are kept on a smart contract on the Main Chain, and computation and storage are kept on TheX-Chain. Every Rollup Block sent from Layer 2 to Layer 1 is verified on the Main Chain with Zero Knowledge Proof (SNARK) belonging to TheX-Chain. X-Chain does not execute transactions on the Mainchain. Information proofs and transitions are carried out on the Main Chain.
TheX-Chain, ZK-Rollups and Mainchain Relationship
  • The funds of users are secured on the Mainchain where X-Chain is connected, through X-Chain Smart Contracts on the Mainchain.
  • Computations, information, and state storage, excluding funds, are performed on TheX-Chain.
  • All information transmitted from TheX-Chain to the Mainchain is verified by Mainchain nodes.
3. X-Chain ZK-Snarks
ZK-Snarks is a protocol that enables the verification of ownership without revealing the underlying information. In the context of ZK-Rollups, transactions are recorded in a block along with transaction summaries and zero-knowledge proofs. When these recorded transactions are transmitted to the Mainchain, Mainchain nodes read and verify the transaction summaries and zero-knowledge proofs. This introduces a groundbreaking paradigm in the relationship between Layer 2 and Layer 1 because instead of executing transactions directly on the Mainchain, transaction summaries and corresponding zero-knowledge proofs are generated.
ZK-Snarks employ a structure known as the R1CS (Rank-1 Constraint System) to establish the correctness of transactions through mathematical constraints. R1CS, also referred to as Quadratic Arithmetic Programs (QAP), consists of a combination of equality and inequality constraints. This characteristic allows ZK-Snarks to prove the accuracy of transactions while simultaneously preserving the privacy of transaction data.
TheX Chain Testnet - TheX Protocol
Creating a sound business model and ensuring operational efficiency are critical to the success of businesses. However, achieving these goals may require multiple tests, and during these tests, no risks are desired. TheX Chain Testnet allows users to create the desired environment without taking any risks.
Users can also connect to testnets in their desired blockchain network in a few steps and perform transactions on the respective testnet. This allows businesses to test their developed applications under real-world conditions, identify issues, and come up with solutions.
The use of TheX Chain Testnet helps businesses accelerate the process of creating new business models using blockchain technology while minimizing their operational risks.