To enter the P2P network, in order to protect your Bitcoin from being taken away by others, a password is inevitably needed.

The password of Bitcoin is amazing.

Everyone will first have a randomly generated number. This number is between 0-2 and the 256th power. It may appear more than the number of atoms in the universe, so the Peak hacker , It is also impossible to decipher it, and the security is extremely high.

The next appearance is a 58-ary algorithm called base58.

What is base 58? For example, binary is 0 and 1, and decimal is 0 to 9. Hexadecimal is actually based on decimal with six letters AF added.

The 58 base contains numbers, lowercase English letters and uppercase English letters.

Using this algorithm to turn the previously mentioned random number into a string, it looks similar to the "mysterious code", but it is much more complicated.

The final string is your private key, which is your "account password"

Now that you have a password, you must have an account. Based on this, calculate a public key through an elliptic curve ECPOINT algorithm. This is your account.

Finally, based on the public key, use an algorithm to calculate a relatively short string as your address, and you can start trading.

If you need to collect money, tell the other party the address. If you want to pay, you need to tell others your public key and address. The function of the public key is to check if the address is yours.

It is impossible to deduce the private key from the public key. The number is too large.

"It is true that the safer the transaction method, the more complicated it is." After listening to the core mechanism of Bitcoin, Wu Bin sighed with emotion, and then asked: "Then how to solve the inflation problem?"

"Simple." Li Yan snapped his fingers. "The number of bitcoins is limited, and this mechanism that controls the speed and quantity of his issuance is called mining."

" Specific algorithm?" Wu Bin asked.

"Well, almost, since there are a large number of transactions, someone has to sort out the account book. In Bitcoin, this account book is called a blockchain. Each block corresponds to a bill. Any transaction information And transfer records are recorded in this blockchain."

"Every time the Bitcoin system generates a random code on the system node, all computers on the Internet can find This code, whoever finds this code will generate a block and immediately get a bitcoin. This process is what people often call mining."

Speaking of this, Li Yan knocked on the Wu Bin computer The graphics card configuration on the screen says: "And this algorithm is where the graphics card is used."

"Add the version number of this block, the hash value of the previous block, and the transaction address , Update time and current difficulty, perform sha256 function operation with a random number X, and Sha256 function can encrypt any string to get a 64-bit hexadecimal number."

"The final result If the number is less than the given target value, then it is successful and rewarded with one bitcoin."

"Oh yes, this mined bitcoin can be just as good as the one you heard It’s not the same '1' that has been sold for several thousand. This Bitcoin is divided into 8 decimal places based on the current data structure."

"So it is 0.00000001?" Wu Bin Think about it.

Li Yan nodded: "Yes, it is estimated that by 2140, 21 million bitcoins will be issued, not just in name only, but also in reality. The golden mountains are golden mountains that everyone can dig. "After speaking, Li Yan shook his head suddenly: "Unfortunately, this was originally a very interesting Mathematics problem, but it has now been monopolized by the mining farm. The founder imagined the'decentralization' and ``everyone is equal''. Calculating power democracy has become a bubble."

After recalling, Wu Bin silently uninstalled BitcoinMiner. Originally, he was thinking about whether he could develop a better algorithm to calculate the result faster.

However, in the end he discovered that the so-called mining algorithm sounded extremely complicated. In fact, it was just guessing numbers. It was fixed and simple. There was no room for improvement.

There is only one method that can be obtained in this so-called "mining" game, and that is to find the hardware that executes the most algorithms in a unit of time. In addition, the same, in this seemingly fair Cheating in the game is also very simple, that is, whoever has more such hardware, who is most likely to win the game first.

When Bitcoin was first born, everyone could indeed mine with the CPU of a home computer.

Unfortunately, as long as it is a profitable thing, someone will definitely think of a plug-in.

In 2010, a hardware engineer discovered that there was a specific computing component in the GPU chip produced by AMD, which could speed up the key steps of guessing numbers.

So the "GPU mining machine" assembled by multiple GPUs quickly eliminated ordinary computer mining machines. This is why the graphics card is different from other computer hardware in those years. The price often rises instead of falling, and it is still old. out of stock.

Later, there were even more terrifying FPGA mining machines, which further eliminated unnecessary image computing hardware units in the GPU, so that the "mining" efficiency was once again greatly improved.

Finally, a mining farm with 20,000 "mining machines" joined the "game", announcing the complete end of the era of individual players.

"Oh~Sure enough, everything has to seize the opportunity, and the others know, how can I not play the rich and imposing Old Brother."

Look After BitcoinMiner was successfully uninstalled, Wu Bin sighed and continued to write his code silently.

In the rest of the winter vacation, Wu Bin would often take a few books to the park and sit with the cats all afternoon. Sometimes Fang Qing came, and the two just nodded and smiled at each other, and then He reads books, she draws cats, and occasionally... also draws people.

At the time of Chinese New Year, under the organization of Gu Fan, the study group established by Wu Bin as the center of the three classes is scheduled to visit the teachers' homes for a new year.

Gu Fan wearing a ski shirt at the Shangbei Road bus station saw Wu Bin standing next to the station reading a book from a distance. He shook his head, said "it hasn't changed", and ran over.

"Happy New Year, learning crazy Wu."

From behind, he patted Wu Bin's Gu Fan fiercely and greeted him.

Wu Bin, who was photographed staggered, did not fight back. He stood firm and shook his head looking at Gu Fan and said, "Naive."

This made everyone think about how to defend Wu Bin against counterattack. Gu Fan is a bit embarrassed, it feels like Wu Bin has become a mature college student, and he is still a high school child.

When Gu Fan was embarrassed and didn't know how to answer the next sentence, the book in Wu Bin's hand fell on his head.

"Happy New Year, scumbag Gu."

"pu, okay, pretend to be deep with me, right." Gu Fan, who reacted in an instant, locked Wu Bin's neck.

When the two were fighting, another familiar voice came into their ears.

"You are all college students now, can you not be so embarrassed on the street."

The two looked back and found that it was Xu Hao, and there was another one next to him. They are also very familiar girls.

PS: It’s not cool... The company took a one-month vacation. The past few days have to deal with a lot of things. There is really no time. Now it’s all done, and stable updates are restored.

PS2: Actually, Bitcoin mining farms also have a lot of interesting ideas. If there are other students who are interested, I will find a chance to write them later.

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like