How are the blocks of the Filecoin blockchain generated?

FIL is the only token with a real application landing in the entire digital currency market, and the only real blockchain project.

After the BTC global fire, ETH followed. Since then, there has been no real project in the entire blockchain industry. In the past six years of power accumulation, once more projects appear, people will inevitably rush to participate.

How are Filecoin's blocks generated?

image

 

Our well-known Proof of Work (POW) consensus mechanism requires miners to rely on the computing power of the machine to continuously perform hash calculations. Whoever can solve the answer to the problem in a short time is qualified to generate the next block.

That is, the probability of miners generating blocks is theoretically proportional to the computing power of the machine, which gave birth to professional mining machines, but the only function of this hash calculation is to provide network security without any other contribution. This is why POW is criticized for consuming resources.

The Filecoin the "count force" is not only to provide network security, and the system provides the capability to protect, Filecoin the "force considered" force called the store count, bluntly speaking, that more miners to network storage With more data, you have more storage and computing power, and you will have more advantages in the next round of competition for accounting rights.

It can be seen that miners with large computing power not only protect the stability of the system at the security level, but also store data for users and provide functional guarantees.

Unlike POW, which continuously calculates the hash, although the calculation of the hash requires a long time to try, but-but the calculation is successful, the result of the calculation is very easy to verify, that is to say, the miner can check one area in a short time. Block for verification.

But Filecoin's storage power is not the case. This indicator refers to how much data the miners store on the local disk, which is something that other miners cannot verify with their own eyes.

The Filecoin consensus mechanism needs to confirm two things

image

 

1. Whether the data that the miner claims is actually stored on its disk;

2. Whether the miner claims that the stored data has been stored on its disk before expiration.

In order to confirm these two problems, Filecoin proposed two mechanisms: Proof-of-Replicaton and Proof-of-Spacetime.

The core idea of ​​proof of replication is that miner P can submit a PoRep proof to the entire network to verify that he does have a data backup on his storage device, and other miners can verify it more quickly.

However, the mining union launched a malicious attack. The malicious miner claimed to the entire network that he had saved a copy of the data, but in fact, the miner actually only saved the data by creating multiple nodes or sharing data by multiple miners. A copy of the data.

When it is necessary to initiate a proof to the entire network, a backup is used to complete all the inspections. Therefore, for users who have spent money to purchase the backup, there is no data security guarantee. The malicious miner uses a storage space to earn x copies of the price.

It can be seen that the key lies in the design of the PoRep consensus algorithm. 

The PoRep consensus algorithm needs to meet several requirements

image

1. The miner needs to perform an encryption operation when storing data. This operation should not be parallel and takes a long time

2. When extracting data, the decryption operation of the data should take a short time;

3. The process of generating PoRep proof from encrypted data should be fast;

4. The verification process of PoRep proof should be fast.

in conclusion

To summarize: PoRep is a time point proof that proves that the miner stored the file as required at that moment, and PoSt is a time interval proof that proves that the miner actually stored the file during the time period.

The FIL mainnet has been launched, leading the arrival of the blockchain 3.0 era. With the market greatly assisting the large-scale landing of IPFS, the construction of a new Internet ecological environment will naturally become the new favorite of the currency circle, and the price will rise. I believe that in the near future In the future, it is bound to make breakthroughs, let us look forward to it!

Investors who want to learn more about IPFS and Filecoin can follow the official website of the IPFS China Community: http://ipfs.cn and the official website of Space Cloud Technology: http://yunos.io

Guess you like

Origin blog.csdn.net/ewfhqwohfr/article/details/111589869