In previous popular science articles, Plain Language Blockchain (ID: hellobtc) introduced Bitcoin mining: miners use continuous trial and error until they find a suitable random number, and new blocks are mined, and they receive corresponding block rewards and transaction fee rewards. Some friends left messages in the background, hoping to introduce the mining process in more detail. Today, the Plain Language Blockchain will introduce it from a different angle, so that you can understand Bitcoin mining in three minutes. 01 Let me tell you a storyThis is an ancient legend. There are 7 dragon balls scattered around the world. Whoever gathers the 7 dragon balls and recites a spell can summon the dragon. The dragon will grant him one wish. After the dragon grants his wish, the 7 dragon balls will automatically fly away and turn into stone. They can only be used again after one year. Yes, this story comes from the famous Japanese anime "Dragon Ball". If you can understand this story, you can understand Bitcoin mining. Don't believe it? Let's wait and see. 02 Bitcoin mining is like summoning the "dragon"To summon the dragon, you need to collect 7 dragon balls. Bitcoin mining is very similar to summoning the dragon. You need to collect 6 "dragon balls" to summon Bitcoin. Let's first understand the structure of the Bitcoin block. Bitcoin blocks are mainly composed of two parts: block header and block body . The block body is used to load all transactions packed in the block. The size of a block full of transaction information is generally no more than 1M. ▲Simple diagram of block structure The information contained in the block header includes 6 fields : version, parent block header hash value (that is, the previous block) , hash value of the Merkle tree root in the block, timestamp, difficulty target, and random number ( Nonce ) . The size of the block header is fixed, only 80 bytes , and the capacity of 12,500 block headers is only 1M. Please note: If you find that these terms are incomprehensible after reading this, it doesn’t matter. Just ignore them and treat them as “dragon balls”. They will not affect your understanding of mining. ▲Simplified diagram of the block header structure For mining, if you collect the "6 dragon balls" in the block header , you will have the opportunity to "summon the dragon". The 6 "dragon balls" are the 6 fields in the block header, and the "dragon" is the new block mined. The wish you make to the "dragon" is the Bitcoin reward , including the reward for creating a new block and the transaction fees of the transactions contained in the block. Let’s first understand what the 6 “dragon balls” of Bitcoin mining are and how easy they are to obtain. Among the 6 fields, except for the random number which needs to be found through trial and error, the other 5 fields are easy to obtain. 1. Version field: It is used to track the version number of software upgrades and can be automatically obtained from the software information; That is to say, 5 of the 6 "Dragon Balls" in the block header are easy to obtain and relatively certain. Only the 6th "Dragon Ball" - the random number (Nonce) is an uncertain variable that miners need to constantly try and find. Only when the right Nonce is found can the "dragon" be summoned - new blocks can be mined and Bitcoin rewards can be obtained. What is a suitable random number? Take the hash value of the six "dragon balls" in the block header. If this value is less than or equal to the difficulty target value given by the system, then even if the suitable random number is found, you can successfully "summon the dragon" - dig out a new block and get a Bitcoin reward. This is the process of Bitcoin mining. 03 SummaryLet’s summarize: Bitcoin mining is similar to summoning the dragon in "Dragon Ball". Collecting 6 "Dragon Balls" will give you a chance to "summon the dragon". Of the six "Dragon Balls", five are easy to obtain, but the sixth one - the random number - requires miners to constantly try and find it. Only when the right random number is found, that is, the hash operation is performed on the six "Dragon Balls" in the block header as a whole, and the value obtained is less than or equal to the difficulty target value, can a new block be mined and the corresponding Bitcoin reward be obtained. Compared to collecting 7 dragon balls to summon a dragon, collecting 6 "dragon balls" to summon Bitcoin, which one do you think is more difficult? Come and write down your thoughts in the comment section, and you will have a chance to win a prize if you leave a wonderful comment. Source: Vernacular Blockchain Author: Yan Wenchun |
<<: f2pool GRIN Mining Tutorial
>>: Research Report丨Grin Mining Equipment Investment Return Analysis Report
Everyone hopes that their true love can come soon...
Not everyone is suitable for this great and diffi...
What is the D10E Summit? D10E stands for Decentra...
In this society, it is generally believed that me...
Is the Sichuan palm good for women? The independe...
As one of the traditional physiognomy techniques, ...
Nowadays, many girls draw their eyebrows, and man...
Whether a face is good or bad will affect our for...
Is it good to connect the career line and the wis...
People are always not satisfied with the status q...
Since the birth of Bitcoin, there have been a num...
It is undeniable that the crypto market continues...
Jia Yueting, who is in the whirlpool of public op...
The wisdom line in palmistry is also called the h...
Financial independence is a woman's greatest ...