Filecoin's "off-chain verification" is making its debut, or ushering in a new era of low Gas
后浪君Blockchain
2021-03-04 02:28
本文约1786字,阅读全文需要约7分钟
The Lotus v1.5.0 version update mainly includes two optimization proposals, FIP-0007 and FIP-0010, which are dedicated to improving the performance of the Filecoin system and reducing the consumption of network Gas fees to a certain extent.

It is reported that the Filecoin network will be officially upgraded to Lotus v1.5.0 at block height 550321 according to the established plan. Previously, Filecoin official Jennifer publicly stated in the slack channel that the update of Lotus v1.5.0 mainly includes two optimization proposals, FIP-0007 and FIP-0010, which are dedicated to improving the performance of the Filecoin system and reducing the consumption of network gas fees to a certain extent .

The FIP-0007 proposal consists of 3 small proposals, respectively improving Filecoin HAMT (Hash Array Mapped Trie) and AMT in terms of performance and security to make them more efficient. Since FIP-0007 is a regular proposal and has little impact on the entire Fielcoin network, this post will focus on the FIP-0010 proposal.

First of all, we need to understand the basic composition of the Gas fee consumption of the Filecoin network, so as to have a deeper understanding of the "pilot" significance of the FIP-0010 proposal.

Gas fee consumption is mainly divided into three parts: PreCommit, ProveCommit, and WindowPoSt. ProveCommit accounts for 69.49% of the three, which is the "big gas fee consumer", while WindowPoSt accounts for the lowest, only 5.47%.

The FIP-0010 proposal innovatively proposed the "off-chain verification" method, using off-chain WindowPoSt verification, that is, WindowPoSt can be uploaded to the chain without accepting verification, and later off-chain verifiers can call DisputeWindowedPoSt for verification. To put it simply, the Filecoin network no longer verifies the proofs generated by the miners in the Filecoin network's spot checks every 30 minutes, but defaults to passing them, and then allows off-chain verifiers to later dispute the miners' on-chain results . Any third party with a Lotus node can challenge on-chain storage proofs submitted within the past 1800 block heights (i.e. 15 hours) by calling DisputeWindowedPoSt.

The improvement of WindowPoSt by FIP-0010 can significantly reduce the gas fee. We all know that the more time it takes for a message to be verified on the chain, the more Gas fees it consumes, so when the message is no longer required to be verified on the chain, the Gas fee consumption will be reduced. It is worth mentioning that Filecoin officially adopts the "off-chain verification" method at the level of space-time proof this time. 69.49%), these two "big gas fee consumers", may be able to fundamentally break through the high gas fee dilemma of Filecoin, and also provide a new solution for other public chains (such as ETH).

Is "off-chain verification" really safe and reliable? Will Filecoin's community consensus be split again?

Since the launch of the Filecoin mainnet, it has gone through ups and downs in the past five months. The initial unfriendly economic model (severe punishment mechanism, high mortgage coins, etc.) Standing on the opposite side for a time, the voice of forking Filecoin is one after another, and the consensus is gradually split, which brings immeasurable losses to the entire Filecoin ecological network.

This FIP-0010 optimization proposal "off-chain verification" also breaks the consensus of the community in a strict sense. "Trusted" miners are selected for the verification of "on-chain" space-time proofs, while "off-chain" It is allowed to "challenge" the results in the form of "supervision" and "spot check". So will miners always abide by the rules of the Filecoin network? Will the data still be stored as required?

Needless to say, it will. Known as "perfectionism", Filecoin officially launched the FIP-0010 proposal after careful consideration. First of all, Lotus nodes are not limited to miners. Any third party can apply to own a Lotus node to "supervise" Filecoin miners. At the same time, in order to encourage more Participate, and give certain remuneration to the questioners of the Lotus node - once the question is successful, they will get 4 FIL, and the 4 FIL will be paid by the corresponding miners who provide space-time proof.

When the base number of Lotus nodes participating in the "off-chain verification" is large enough, the miners will not dare to "lazy" when submitting the space-time proof, because once "lazy", the Filecoin network will reject the verification of the space-time proof submitted by the miner before, and the miner will be verified. fine. First, the miner needs to pay 4 FIL to the challenger. Then, the miner needs to pay the invalid proof fee IPF, which is currently 5.51BR, which is 5.51 times the daily block income of each sector corresponding to the rejected WindowPoSt. In addition, Filecoin officially designed a flat fee penalty of 20FIL.

Filecoin pioneered "off-chain verification", which may usher in a new era of low Gas. At the same time, with the stable operation of the main network of Filecoin, the continuous construction of infrastructure and the continuous expansion of the ecology, more and more investors are paying attention to and actively deploying Filecoin mining.

后浪君Blockchain
作者文库