How does Tusima improve the performance of mainnet with ZKRollup?

Trias
3 min readMar 30, 2022

TL;DR

Using the ZKRollup extension, Tusima processes data off-chain and verifies it on-chain through zero-knowledge proof technology, which greatly improves the performance of the Tusima system and reduces the gas fee for on-chain transactions, enabling the deployment of DeFi applications on Tusima in scale.

In the blockchain, each node performs the same computation for the transactions and then verifies whether the result is the same as that of other nodes. In other words, for each transaction on the chain, each node needs to perform the computation, which is one of the main reasons for the low performance of the current blockchain.

Nodes performing the same computation is not the only way to verify transactions. Take Sudoku as an example, solving a Sudoku problem may be difficult, but verifying the answer to a Sudoku is simple. Similarly, nodes performing the same computation to verify the result is the least efficient verification method. With the help of ZKRollup, we can reduce the cost of verifying the computation result and improve the on-chain efficiency.

ZKRollup is a Layer 2 extension scheme. It keeps the functions and features of Layer 1 powerful but simple, while putting some calculations and operations originally on Layer1 off-chain, and then verifies the calculation results through zero-knowledge proof technology to ensure the accuracy of these off-chain operations, improving the performance and reducing the cost of the chain on the premise of ensuring security.

In Tusima ZKRollup’s technical solution, for each transaction, the computation occurs only once and only validation operations are required on each node. ZKRollup empowers the network by transferring the computation of the transaction off-chain and then submitting the processed data to the mainnet for validation.

Specifically, the validators in Tusima aggregate the transactions of users in the network, and then compress them with the zkSNARK algorithm and upload the obtained verification to the mainnet, thus ensuring the validity of all transactions in the block. For example, after processing a series of transactions, the network state of Tusima changes from A to B. This state change can generate proof P by zero-knowledge proof, and for the nodes in Tusima, they do not need to verify every transaction in the whole process, but only need to determine the authenticity of state B by verifying P. This greatly reduces the workload required for verification and improves the verification efficiency.

Therefore, ZKRollup can greatly improve the performance of Tusima. If we compare the blockchain to a city transportation network, in the past, each person drove himself, so traffic congestion might occur during peak hours, but now ZKRollup is equivalent to a public transportation system, which can effectively alleviate congestion and improve the efficiency of travel while also reducing the operating costs of the transportation network.

--

--

Trias

Trustworthy and Reliable Intelligent Autonomous Systems