[Advanced Mini-Class] What are the characteristics of Filecoin’s consensus mechanism?

[Advanced Mini-Class] What are the characteristics of Filecoin’s consensus mechanism?

Let us first review the content of the previous issue of [Advanced Mini Class]. In the last issue, we fully understood the financing details of Filecoin. Investing with the smartest people in the world is always more successful than investing by yourself by asking around for gossip. Click on the picture below to review previous content.
Blockchain is known as the cornerstone of the value Internet, and the consensus mechanism is the core element of blockchain and the charm of blockchain. As a blockchain project favored by investors, Filecoin's consensus mechanism has really fascinated many people. Today, I will talk to you about Filecoin's consensus mechanism.

What is a consensus mechanism?
The self-trust of blockchain is mainly reflected in the fact that users distributed in the blockchain do not need to trust the other party to the transaction, nor do they need to trust a centralized organization. They only need to trust the software system under the blockchain protocol to complete the transaction.

The premise of this self-trust is the consensus mechanism of the blockchain, that is, in a market where there is no mutual trust, the necessary and sufficient condition for all nodes to reach a consensus is that each node, out of consideration for maximizing its own interests, will spontaneously and honestly abide by the rules pre-set in the protocol, judge the authenticity of each record, and finally record the records judged to be true in the blockchain. In other words, if each node has its own independent interests and competes with each other, it is almost impossible for these nodes to conspire to deceive you, and this is particularly evident when the nodes have public credibility in the network.

Blockchain technology uses a set of consensus-based mathematical algorithms to establish a "trust" network between machines, thereby creating new credit through technological endorsement rather than centralized credit institutions.

Consensus can be simply understood as the common understanding, values, ideas, etc. sought by different groups, and the unanimous agreement reached on a certain aspect. The consensus mechanism is to determine the way to reach a certain consensus and maintain consensus.

If consensus is the foundation of blockchain, then the consensus mechanism is the soul of blockchain.


What are the commonly used consensus mechanisms?


Today's blockchain consensus mechanisms can be divided into four categories: Proof of Work (PoW), Proof of Stake (PoS), Delegated Proof of Stake (DPoS) and Validation Pool (Pool).

1. Proof of Work (PoW):

PoW can be simply understood as a proof that you have done a certain amount of work. By looking at the results of your work, you can know that you have completed a specified amount of work. The most commonly used blockchain consensus algorithm is PoW. Both Bitcoin and Ethereum are based on the PoW consensus mechanism.

For example, Bitcoin uses the PoW mechanism in the process of generating blocks. Simply put, everyone competes for the right to keep accounts. Whoever gets it first and completes the accounting work correctly will get the system reward, which is Bitcoin, which is the so-called "mining". Miners complete this accounting work through the computing power of computers. This professional computer with computing power is the so-called "mining machine".

advantage:

① Complete decentralization, with free entry and exit of nodes, avoiding the cost of establishing and maintaining centralized credit institutions.

② As long as the computing power of the network destroyer does not exceed 50% of the total computing power of the entire network, the transaction status of the network can be consistent and the historical records cannot be tampered with.

③ The more computing power is invested, the greater the probability of obtaining accounting rights, and the more likely it is to generate new block rewards.

shortcoming:

① Currently, Bitcoin mining causes a large amount of computing power and energy waste.

② The mining incentive mechanism also leads to a high concentration of mining computing power

③ The settlement cycle is long, with a maximum of 7 transactions settled per second, which is not suitable for commercial applications.

2. Proof of Stake (POS):

The probability of getting bookkeeping is determined by the number and duration of holding tokens, which is similar to the dividend system of stocks. The more shares you hold, the more dividends you can get. Tokens are equivalent to the rights and interests of the blockchain system. Currently, many digital assets use POW to issue new coins.

advantage:

① Reduced resource waste of the PoW mechanism;

② It speeds up the calculation, which can also be understood as an upgraded version of proof of work;

shortcoming:

The longer the age of the currency, the greater the chance of the node obtaining the right to keep accounts, which is likely to lead to the Matthew effect, where the rich get richer, rights and interests will become more and more concentrated, and thus fairness will be lost.

3. Delegated Proof of Stake (DPoS):

It is a more professional solution derived from PoS, similar to board voting, where people with tokens vote for fixed nodes and elect several agents, who are responsible for verification and bookkeeping. Unlike PoW and PoS, where the entire network can participate in the bookkeeping competition, the bookkeeping nodes of DPoS are determined within a certain period of time. In order to encourage more people to participate in the election, the system will generate a small amount of tokens as rewards. BitShares adopts this method.

advantage:

Compared with PoW, DPoS greatly improves the ability of blockchain to process data, and can even achieve instant deposit, while also significantly reducing the cost of maintaining blockchain network security.

shortcoming:

The degree of decentralization is weak, the node agents are manually selected, the fairness is lower than PoS, and it relies on the issuance of tokens to maintain the stability of the agent nodes.

4. Verification Pool Consensus Mechanism (Pool)

This is a consensus mechanism based on traditional distributed consistency technology and data verification. It is currently widely used in the industry chain.

Advantages: Consensus verification can be achieved in seconds without relying on tokens;

Disadvantages: The degree of decentralization is weak, and it is more suitable for a multi-center business model with multiple parties involved;

Summary: Each consensus mechanism cannot meet the requirements of security, efficiency, and fairness at the same time. The weaker the degree of decentralization, the lower the security and the faster the blockchain; the stronger the degree of decentralization, the higher the security and the slower the blockchain. PoW is completely decentralized, but its operating efficiency is too low. PoS improves efficiency but reduces fairness and security. DPoS has a strong centralized characteristic but is the most efficient in the short term. Currently, the industry blockchain uses Pool consensus on a large scale.


Filecoin’s consensus mechanism
In terms of the exploration of consensus mechanisms, Filecoin is undoubtedly more forward-looking and groundbreaking. Filecoin innovatively adopts a hybrid consensus mechanism - Proof of Replication (PoRep) + Proof of Spacetime (PoSt) + Expected Consensus (EC), in which Proof of Replication is the core factor in the consensus mechanism. Although Filecoin's network protocol, consensus, and other algorithms are basically finalized, Proof of Replication is still in the process of continuous improvement.
The picture comes from Filecoin official
Proof of Replication (PoRep) is an interactive proof system in which a storage provider needs to provide publicly verifiable proof that it has allocated unique space resources for a data file replica and that the stored data is retrievable.
Proof-of-Replication is the new PoS Proof-of-Storage. PoRep must be able to defend against the following three common attacks: Sybil attacks, exogenous attacks, and generation attacks. Their common feature is that the size of the data actually stored by the attacking miner is smaller than the data claimed to be stored, so that the attacking miner can obtain rewards that he should not have received.
  • Sybil Attack: Using n identities, promising to store n copies of data D, but actually storing less than n copies (for example, 1 copy), but providing n storage proofs, the attack is successful.

  • Outsourcing Attack: When the attacker miner receives a request from the verifier to provide proof of data D, the attacker miner generates a proof from other miners to prove that he has been storing data D, but in fact he has not stored it, and the attack is successful.

  • Generation Attack: Attacker A can generate data D in some way. When the verifier verifies it, attacker A can regenerate data D to complete the storage proof, and the attack is successful.

It is difficult to prevent generation attacks. All PoS protocols will encounter this problem. How to ensure that miners actually store this data? PoRep needs to solve this problem.
Therefore, the Filecoin protocol uses a game called RepGame to solve these three attack methods together. PoRes also introduces time bounds on this basis. There may be many ways to implement the PoRes protocol. No matter which implementation method is used, it must be able to prevent the above three attack methods and pass the RepGame game test.

Proof of Spacetime (PoSt) proposes a proof-chain data structure, which links some challenges and proofs. By adding a time period to the proof chain, we can get proof of the miner's storage data within a period of time, which is Proof of Spacetime (PoSt).
PoSt can prove that the miner has stored specific data during that period of time, and use timestamps to anchor these proof chains. In this way, even if the verifier is not online, the time-space proof can be used at some time in the future to verify that the miner has generated the proof chain. PoSt will be submitted to the chain to generate new blocks.

Expected Consensus (EC) is to elect one or more miners in each round to create new blocks. The probability of a miner winning the election is proportional to the miner's current effective storage (computing power). Filecoin converts the current storage data of the miner in the network relative to the storage ratio of the entire network into the voting power of the miner.
Regardless of whether one or more miners are elected in this cycle, the elected miners need to create new blocks and broadcast the new blocks to the network.
Although the blocks in the chain are linear, Filecoin's block data structure uses DAG (directed acyclic graph), which can generate multiple blocks at the same time (so Filecoin's transactions are much more efficient than BTC, which is why Filecoin is called "possible blockchain 3.0").

The hybrid consensus mechanism pioneered by Filecoin fundamentally defines Filecoin as a reasonable, efficient, and decentralized system, and reflects Filecoin's fairness, confidentiality, and public verifiability.
In the next issue of [Advanced Mini Class], let us analyze the factors affecting Filecoin mining. Welcome to follow.


<<:  Bitcoin ATMs are increasing by six units per day around the world. Where were they first put into use? | The Secret History of Bitcoin

>>:  How does Bitcoin scale? Understand the progress of Bitcoin off-chain scaling technology and investment status

Recommend

What face can bring you good fortune?

What face can bring you good fortune? What face c...

Mole analysis: Moles on the body that represent career

Mole analysis: Moles on the body that represent c...

Women with thick lips often don't keep their word

In fact, although many people say that people wit...

Analysis of the face of garlic nose

What does a bulbous nose look like? Is this kind ...

What are the 30 methods of Chinese folk face reading specifically?

What exactly do the 30 Chinese folk methods of id...

BitFury Group announces investment in BitPesa

The BitFury Group invested in BitPesa to help pan...

Russia calls for celebration of Bitcoin legalization

A few weeks ago, Russian authorities declared the...

Prevention and treatment of mining machine poisoning

Recently, some customers reported that some minin...

I always like to judge people by their appearance. I have a mole near my mouth.

Although judging people by their appearance is a ...

Is it good for a woman to have droopy eyebrows? What is a good eyebrow face?

Everyone has eyebrows, and different eyebrow feat...

There are four strange lines on the palm. Have you seen them all?

Although everyone's palm lines may be slightly...

What kind of fate is likely to give birth to a boy?

In fact, you can tell from the face which women a...

Palmistry ring finger to see marriage and relationship

There are many ways to predict marital status. Fo...

The face of a person who will die alone

The face of a person who will die alone The most ...