With the advent of the information age, the word big data begins to closely surround people’s lives. In this era of data and information explosion, the birth and reference of blockchain has solved many pain points of traditional commercial networks. Its characteristics of polycentricity, consensus credibility, tamperability and traceability have attracted more and more industries’ attention. ***
With the continuous growth of blockchain network, data is constantly enriched, more and more participants are involved, and privacy data isolation has become a major concern. Light nodes are generated for privacy data isolation and fast reading and access of clients. Let’s take you to the main features and usage scenarios of the light node of the blockchain service.
Light nodes are not “light”
With the continuous expansion of blockchain network and the increase of business volume, the peer node on each chain is also called “full node” here, compared with “light node”. The transaction volume and client applications of each full node may be huge, so the pressure of the full node will rise, and the access efficiency of the client will be affected to a certain extent. In addition, in today’s society that pays more attention to data privacy, with the increasing number of participants, privacy data isolation has naturally become an important demand. How do light nodes do this?
First, each light node will connect to a whole node in the chain, and issue user certificates to each light node linked to it through the whole node. The isolation provided by the light node takes fabric user as the isolation granularity. When the transaction is initiated, the user certificate of the light node will be used to register the privacy range. The status data will be continuously synchronized between the whole node and the connected light node through the establishment of a connection, and the change of the synchronization process supports the continuous transmission of breakpoints. During this period, permission verification will be used to ensure that the data registered with the privacy range will only be synchronized to the light nodes with access rights. The light node can not only realize the query and access of local data, but also realize the transparent transmission of chain code. In addition, the light nodes of Huawei cloud blockchain are deployed on IEF (intelligent edge platform) nodes, and a major feature of IEF is to establish edge nodes close to terminal equipment to reduce network delay, congestion and other problems. Therefore, the light nodes deployed on IEF have lower time delay and faster speed. When the client application has a large number of state data query operations, the fast and low delay of light nodes will be particularly obvious.
Full node vs light node, the difference is very different
After all this, some people may wonder what is the difference between all nodes and light nodes. First, from the name, the light node is naturally lighter. The whole node maintains the complete and full amount of ledger data, while the light node maintains its own related status database, which is lighter in terms of data volume; In addition, the functions of the two are essentially different. The all node peer participates in transaction endorsement as a participant in the blockchain, while the light node does not carry the endorsement function and only synchronizes the relevant status data to achieve privacy data isolation and fast access.
After a brief understanding of the light node, what are the main application scenarios of the light node? Let’s introduce it through a specific example and further understand the architecture of the light node. As shown in the figure below, in a complex blockchain network, we introduce it with a participant full node such as XX General Administration.
Among them, in the actual scenario of the above hypothetical application, the General Administration also has multiple sub bureaus such as Provincial Bureau a, Provincial Bureau B, municipal bureau a and Municipal Bureau B. if the light node is not used, these client applications are directly connected to the whole node, and the access pressure of the whole node will be relatively high. In addition, for example, some data of Municipal Bureau a in these sub bureaus belong to private data, It is expected that only the client connected to it can access it. At this time, it is required to implement implicit data isolation for these data, and at this time, light nodes will be used.
For these sub bureaus, we can create a light node connecting all nodes of the General Administration for each sub Bureau, and the General Administration will issue user certificates to the light nodes of these sub bureaus respectively. When municipal bureau a initiates a transaction and expects that the relevant data can only be viewed by itself, the relevant data can be isolated by registering the privacy scope, and the light nodes of other branches except Municipal Bureau a cannot synchronize this data, realizing privacy data isolation. In addition, these light nodes are deployed on IEF nodes. The terminal is closer to the user, and the relative delay will be reduced.
Through this example, it is not difficult to see that when the blockchain network is complex, there are many participants, or it is expected to achieve privacy data isolation, light nodes are a good choice. The advantage of light nodes is to accurately realize privacy data isolation and improve client access efficiency. At present, Huawei cloud blockchain light node supports plug-in installation, which is simple and fast to deploy. Come to China to experience cloud blockchain services.
This article is shared from Huawei cloud community blockchain light nodes: light body and heavy responsibility. The original author: Pipi likes shrimp.
Click focus to learn about Huawei cloud’s new technologies for the first time~