What is the process of Filecoin mining? Explain the Filecoin block sealing process in detail

Let’s make a brief description of the process of Filecoin mining:
first, install the mining software and run it;
then, create a node and join the network, after joining, synchronize chain data and create a wallet address;
finally, because mining needs to pledge FIL, it needs Buy or borrow FIL and enter the wallet address.
Start mining: Obtain storage orders, seal data (sector packaging, the longest time-consuming), generate copy certificates, verify data, form effective computing power, obtain packaging rights, submit time and space certificates, and get block rewards.

Filecoin is storage mining. The miner obtains effective computing power (effective storage power) according to how much data it actually encapsulates and submits a copy proof to the chain. The higher the effective computing power, the greater the probability that the miner will receive block rewards.

The greater the computing power of the miner, the greater the right to block packaging or the greater the probability, here are the parameters of the winning rate and the block rate. The winning rate is the probability of winning votes, and the block rate is the probability of obtaining block rewards.
  
For comparison, the computing power of the mining machine purchased by Bitcoin mining is unchanged. After the mining machine is connected to the Internet, the number of coins generated every day is a fixed value;
  
while Filecoin is storage mining, and the computing power of Filecoin is based on How much effective data is encapsulated to calculate. Today, if 1 T is encapsulated, the computing power is 1 T, and computing power is still accumulating.
  
It should be noted that the shortest sector life cycle is set to 6 months, and the longest sector life cycle is determined by the proof algorithm. Initially, the longest sector life cycle is 18 months, that is, 540 days. Sectors will naturally expire at the end of their life cycle. In addition, miners can also extend the cycle of their sectors.
  
Therefore, effective computing power is the basis of mining. The higher the mining power of the miner, the greater the winning rate, the greater the probability of obtaining block rewards and the higher the mining revenue. The faster the sector packaging and packaging efficiency, the faster the growth rate of effective computing power, and the higher the percentage of effective computing power, the higher the block generation rate and the greater the amount of currency produced.
  
At this time we have to mention sector packaging. Encapsulate the sector with PoRep (Proof of Replication), which is a computationally intensive process that will generate a unique identification code for the sector. Once the data is encapsulated, the storage miner will generate a proof and run SNARK to compress the proof; finally, the compressed result will be submitted to the blockchain as a proof of storage commitment.

Insert picture description here

Sealing process IPFS mining machine consultation czdn222
  
1. empty packing (empty sector, inject data into, for example: 32GB, forming an unsealed sector)
  
2. precommit1–precommit2 (start sealing here, file fragment encryption method is silent Kerr tree column, the root of the Merkel tree column must be calculated finally, p1 is expected to take several hours, p2 is expected to take several tens of minutes)
  
3. precommting (submit the Merkel tree root calculated by precommit2 to the Chain to prove the encryption capability of the mining machine and the ability to complete sector sealing)
  
4. wait seed (can be understood as waiting for a certain time, here refers to a certain block height, each block is 30s apart, this is the current main network The specific waiting time is: a random number calculated in a sector, used to check whether the file fragments in the p2 sealed sector are stored, zero-knowledge proof)
  
5. Commiting 1, 2 (extract the corresponding file fragments, and calculate to Merkel root file path, c1 is expected to take only tens of seconds, c2 is expected to take about 25 minutes)
  
6. commit wait (submit the root of c2 calculation to prove that file fragments are stored)
  
7. finalize sector (fan Zone sealing ends)
  
8.
  
The time consumed by proving to complete the sealing process is generally related to the optimization algorithm and hardware configuration of each company. Effective operator force is generated after the completion of these steps, unlike the bit mining machine as credits, many operators have much power for later calculation force, the force calculated by the cumulative time Filecoin gradually
  
Filecoin mining contrast to traditional mining
  
bits Coin mining relies on computing power, and the process of mining is the process of computing the hash algorithm and obtaining the result. It relies on high-end chips such as CPU, GPU and ASIC.
  
But Filecoin is different in that it does not require a lot of calculations, so energy consumption is also small, but it has higher requirements for bandwidth and hard disk hardware.
  
Miners usually play two roles in the entire Filecoin network: storage miners and retrieval miners. .
  
In essence, storage miners provide storage space for the Filecoin network and provide storage requirements for customers. The retrieval miner is a secondary development based on the existing data to provide customers with data retrieval services.

Insert picture description here
  
Filecoin's current medium-income IPFS mining machine consultation czdn222
  
1. Storage income: provide storage space for customers who need to store content to help them save content fragments, you will get storage income
  
2. Retrieval income: provide retrieval services, bandwidth, and provide fast The content that the customer needs will receive retrieval income
  
3. Packing income: Pack the block, and every time a block is confirmed, the network will give a reward.
  
Another important difference is that the nature of Bitcoin and Filecoin mining machines is different. The essence of the machine is a data computing device. But the essence of Filecoin miner is a data storage device.
  
Filecoin's mining efficiency is proportional to storage activity, and it directly provides customers with useful storage services (unlike Bitcoin mining is only to maintain the consensus of the blockchain).

This approach provides strong incentives to miners, urging them to gather as much storage as possible and lease it to customers for storage.
  
The Filecoin protocol combines these resources together to form a self-healing storage network, and people all over the world can rely on it.

Guess you like

Origin blog.csdn.net/weixin_49795899/article/details/115001261