What is the structure of the blockchain? Wonderful combination of Internet of Things

Hi everyone, I am Ruijie teacher from Tuoke Community, make friends with blockchain! Fans who want to learn more about blockchain brand promotion.

You can pay attention to the WeChat public account: come to Tuoke, or want to add my WeChat, reply 123 in the public account, you can get my personal WeChat. (Reprinted, article comes to WeChat: yimizu)

656acbcbfb3440409204838b4ad44a2e

Today, the first point will be to share the wonderful combination of blockchain and Internet of Things.

In addition to the financial industry, the Internet of Things is considered to be the most closely connected area with blockchain. If the blockchain technology is applied to the Internet of Things, it will ensure the efficient operation of this huge network of terminals.

Not only can it increase the speed of the system, save some complicated links, but also enhance its authenticity. Before encountering the blockchain, the IoT ecosystem can only rely on a centralized agent communication mode or server user mode.

In this ecosystem, all devices are connected together through cloud server authentication, and the connection between devices can be achieved only through the Internet. Although only within a few meters, this cloud server requires very powerful operating and storage capabilities.

This Internet model has been connected to general-purpose computer equipment for decades, and this is still the operation of this small-scale IoT network. Nevertheless, as the demand for the IoT ecosystem continues to grow, cloud servers cannot meet the huge demand.

As we all know, current IoT solutions are very expensive. Because the maintenance cost of infrastructure such as centralized cloud servers, large servers and network equipment is very high.

When the number of Euro-connected devices needs to increase to tens of billions, even thousands of conscious mass communication messages are generated. This will greatly increase the cost and cause the bottleneck of the IoT centralized model. The emergence of blockchain technology has cracked the ultra-high maintenance cost of the Internet of Things and the development bottleneck caused by cloud servers.

What is the structure of the blockchain? Simply explain that blockchain is a decentralized database system, and can also be understood as a series of data blocks.

The second point is what is the structure of the blockchain?

As a system open to everyone, once data is written into the blockchain, it is almost impossible to tamper with it in the future. So how exactly is such a magical function implemented?

We all know that a block is generated every ten minutes. Each block contains the data hash value and the hash data of the previous data block. It is better to understand, that is, the information packaged in.

For example, a bitcoin transaction will record Zhang San transferring 100 bitcoins to Li Si. We only need to understand the hash value as a black box function. Enter a string of any length. After that, a specific string will be output.

But as long as the input string is slightly modified, even a small change will produce unpredictable and significant changes to the output value. Through this good characteristic, we can distinguish whether my cheese has been moved by others. In addition, each block also contains the hash value of the previous block.

In other words, the blocks on the blockchain are connected head to tail. There is a blockchain with three blocks. It can be seen that each block contains its own hash value and the hash value of its previous block. That is, block three contains the hash value of block two. Block 2 contains the hash value of block 1.

What is special here is that block one has no corresponding block. We call the block one the genesis block. And once someone wants to tamper with anything on the blockchain. This will cause the hash value of block 2 to change, which will not match block 3.

The following blocks will all be invalidated, so that the public can quickly recognize that someone intends to cheat. In addition, bitcoin miners scramble to keep accounts by competing for calculations every ten minutes.

Generally speaking, there is only one node that calculates the correct answer first, but it cannot be ruled out that there are occasionally multiple nodes that simultaneously obtain a positive solution and are verified by the remaining nodes. So who should the reward be given at this time?

Which block should the main chain accept? In order to prevent this confusion, the blockchain design concept has a principle, the longest chain is respected, that is, which chain has the largest number of blocks. Then he is an effective main contract and will be ko.

So once there is a situation where the positive solution is dug out at the same time, it is also very common. It is difficult to dig out the next one at the same time again. Once the next block is born, the branch that will be accessed first will become the longest, which is known as the main chain chaos, and it will not occur again.

Ok, that ’s all for today. If you have anything else you want to learn and understand, please tell me in the message area, I am Ruijie teacher from the Tuoke community.

Total
0
Shares
Leave a Reply
Related Posts