The easiest way to tell you what Bitcoin is

1. Let's assume a scenario -- a class in a school. In order to motivate classmates, A Cong teacher will reward small red flowers for students who perform well and improve their performance. These small red flowers can be exchanged for anime books, novels or beautiful stationery in the class shelves. The move was very popular with the students, and some of the transactions between the classmates began to use Xiaohonghua as a trading medium. For example, Xiaoqiang wants to borrow my "Naruto", I have to pay the little red flower to me, I can get the little red flower to go to the class shelf to rent the novel I love to read. In this way, Xiaohonghua became the currency of our class.

However, this system eventually collapsed, because some students began to make small red flowers in order to change books and stationery. The amount of small red flowers is increasing, surpassing the speed at which A Cong teacher replenished the bookshelf. Eventually, the students were no longer convinced that the papers were small._DJMINER

2, seeing this situation, A Cong teacher thought of a way. No longer use the little red flowers in the form of real things, but bookkeeping! Each classmate has a "small red flower ledger" of his own, and at the same time set a "small red flower ledger" in the squad leader. When the transaction occurred, the classmates filled out their own books under the witness of the squad leader. When the squad leader saw everything correct, he recorded the transaction on the "Little Red Flower General Ledger". For example, I want to rent a comic book from Xiao Ming, I have to pay him a small red flower. Then I recorded "Little Red Flower-1" on my account book. Xiao Ming recorded "Little Red Flower +1" on his account book. Then we went to the squad leader to see it. After the squad leader saw it, there was no problem. The transaction was recorded on the Little Red Flower General Ledger. If a classmate wants to secretly modify his or her own account, but the general ledger of the squad leader is not right, you will find the problem.

However, this monetary system has collapsed, because one day, some students found that the girls at the same table as the squad leader are always inexhaustible. I can write 10,000 words in this process, so I won't say more, anyway, you know._DJMINER

3. Teacher A Cong is indeed a clever teacher. It seems that it is a very difficult problem. Teacher A Cong came up with a wonderful solution. (Some people may say, let the discipline committee supervise, this is a temporary solution.)

The method of Teacher A Cong is as follows:
First, the general ledger is no longer established.

Second, every class of the transaction must be booked, regardless of whether the transaction involves you.

Third, after all the courses are finished every afternoon, the whole class calculates the transaction that happened today.

Fourth, the classmates who are the first to calculate each day reward 2 small red flowers.

Fifth, after a daily calculation, a transaction can only be recognized if it is consistent with the records of the majority of students.

For example: I want to rent a novel by Xiao Xue, and I need to pay Xiao Xue a small red flower. I recorded the transaction on my account book, and then passed the payment form to the students before and after. The classmate who received my order recorded the transaction and then passed it to the classmates around them until the class recorded. This transaction. In this way, it is very difficult for someone to secretly modify the account book. He must reconcile with the class account of the class. Only the majority (more than half) of the classmates’ accounts can be matched with you (maybe some students have miscounted) The deal will be recognized. At the same time, the enthusiasm of the students to calculate the accounts was also mobilized, because the students who were first calculated had rewards.

Haha, in real life, there will be no such abnormal classes and teachers, I will not continue to expand. Let's look at this simulated scenario.

1 In this scenario, the small red flower on the ledger is a digital currency, equivalent to bitcoin.

2 The network of the whole class is a p2p network. Each classmate is equivalent to a node.

3 The system composed of classmates + books is like a regional chain.

4 There is no “Little Red Flower Ledger” stored in the squad leader. This is decentralization.

5 The classmates who are the first to calculate will be rewarded. This is mining.

6 A classmate uses a calculator and counts faster than others. This calculator is equivalent to a mining machine.

7 If the classmate's books do not write their own names, but use the code they want, this is the embodiment of anonymity.

4. Now we move the example of the class to the real network world. This is how it looks

Every student who is billed is a node. In the network, the user runs the Bitcoin client software on the computer, which is called a node. These nodes are linked together to form a p2p network. The nodes of these networks participate in accounting, which forms a distributed storage system---region chain._DJMINER

Security is an important consideration in the network. The Bitcoin system uses a "key pair" to ensure security. A key pair is a private key that corresponds to a public key.

5. Return to the class example, assume that each classmate has his or her own password (private key), and then go to Teacher A Cong to receive a corresponding public key based on the private key. This public key is used as the account name and address of the children's shoes. I have to pay Xiao Ming, fill in Xiao Ming's public key to collect money, my public key remittance, other students see my public key remittance, and then can go to Acong teacher to verify that the public key is not true. Did you just pick up an account? But my private key they don't know.

The same is true in the network. Each participant randomly generates a string, which is your private key, and then the private key is converted into a public key (also a string), which is your bitcoin account. When I transfer money to other people, I send the order to other nodes and spread it to the whole network. Other nodes on the network can verify the transaction using the corresponding public key to see if the account is from a legitimate account holder.

At this time, the miners are on the scene and they want to verify the transaction. Every 10 minutes of data is packaged into a "data block." Just like the calculation of daily data in the class, in the Bitcoin system, it is calculated according to the transaction data of 10 minutes._DJMINER

The way to calculate is to use a hash function. This is not much to say, the winner of the calculation will get a certain bitcoin reward. This reward is initially 50 bitcoin. In the future, for every 210,000 blocks generated, the number of bitcoins will be halved. Until the 33rd halving, each block produced 0.0021 new bitcoins directly reduced to zero. We know that Bitcoin generates about one block every 10 minutes, while 210,000 10 minutes is close to four years. So the profit of bitcoin mining is reduced by half in about 4 years. It has been reduced 2 times now and the current reward is 12.5 bitcoins.

As for why this is set, this is to ask the inventor of Bitcoin - Nakamoto Satoshi. If you can find him._DJMINER

评论

热门博文