Multi-level blockchain system, hybrid networking method and device of multi-level blockchain

Through the design of a multi-level blockchain system and the collaboration of cloud chains and edge chains, the problem of a single communication method and consensus algorithm in the blockchain system is solved, and the upgrade and expansion of the blockchain architecture and the expansion of ecological construction are realized, providing It provides efficient distributed storage and transaction privacy protection functions.

CN115348263BActive Publication Date: 2024-10-25INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210750090.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-10-25
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The existing blockchain system communication method and consensus algorithm are single, difficult to expand, and difficult to apply the technological achievements of the Internet of Things, which limits the ecological construction and expansion of the blockchain system.

Method used

Adopt a multi-level blockchain system, including cloud chain and edge chain, realize node joining and verification through new node registration code and well-known node list, support multiple communication protocols and consensus algorithms, and realize multi-level splitting of the blockchain architecture Deploy and upgrade capacity.

Benefits of technology

It realizes a convenient hybrid networking of the blockchain system, provides distributed storage and cloud transaction certificates, enhances the multi-party witness and transaction privacy protection functions of the edge blockchain, and enables business providers to customize edge smart contracts. , improving the possibility of blockchain ecological construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115348263B_ABST
    Figure CN115348263B_ABST
Patent Text Reader

Abstract

The present application provides a multi-level blockchain system, a hybrid networking method and device of a multi-level blockchain, the method is applied to a multi-level blockchain system, the system includes a cloud chain and multiple edge chains, the cloud chain is used to store the transaction process in each edge chain, the edge chain includes multiple mobile nodes that trade with each other, it involves the field of blockchain, and can also be used in the financial field, including: sending an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request; initiating a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list; establishing a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result. The present application can conveniently complete the hybrid networking of blockchains, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain and can be used in the financial field. Specifically, it is a multi-level blockchain system and a hybrid networking method and device of a multi-level blockchain. Background Art

[0002] Blockchain technology is widely used in various industries because of its many excellent characteristics such as anti-data tampering and decentralization. However, the construction process of the existing blockchain system relies heavily on the operating environment of the server and the communication method of the operator. After each participating node joins the network, it is difficult to change the communication address or communication protocol. The entire blockchain network has a relatively single support for the consensus algorithm, and the use of each consensus algorithm is exclusive, which means that each participating node needs to execute a set of conventional consensus processes before starting to complete the initialization operation of the blockchain system and be ready for subsequent smart contract transaction processing.

[0003] To sum up, the communication methods and consensus algorithms supported by existing blockchain systems are relatively simple, the ecological construction of blockchain systems is difficult to expand, and some technological achievements brought about by the development of Internet of Things technology at this stage are also difficult to be applied in blockchain systems. Summary of the invention

[0004] In response to the problems in the prior art, the present application provides a multi-level blockchain hybrid networking method and device, which can conveniently complete blockchain hybrid networking and complete multi-level split deployment and upgrade and expansion of the blockchain architecture.

[0005] In order to solve the above technical problems, this application provides the following technical solutions:

[0006] In a first aspect, the present application provides a hybrid networking method of a multi-level blockchain, which is applied to a multi-level blockchain system, wherein the system includes a cloud chain and multiple edge chains, wherein the cloud chain is used to store transaction processes in each of the edge chains, and the edge chain includes multiple mobile end nodes that trade with each other, including:

[0007] Sending an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request;

[0008] Initiate a verification request to the cloud chain based on the new node registration code and the public identity information in the well-known node list;

[0009] A long connection with the edge chain is established according to the well-known node filtering list fed back by the cloud chain based on the verification result.

[0010] Furthermore, initiating a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list includes:

[0011] Obtaining public identity information of each well-known node in the well-known node list;

[0012] The new node registration code and the public identity information are uploaded to the cloud chain, so that the cloud chain verifies the new node registration code and the public identity information.

[0013] Furthermore, the establishing of a long connection with the edge chain according to the filtering list of well-known nodes fed back by the cloud chain based on the verification result includes:

[0014] A handshake operation is performed with the well-known nodes in the well-known node filtering list to establish a long connection with the edge chain.

[0015] Furthermore, the hybrid networking method of the multi-level blockchain also includes:

[0016] A transaction result evidence storage request corresponding to the transaction process is sent to the cloud chain, so that the cloud chain performs evidence storage processing on the transaction result.

[0017] Furthermore, before sending the edge chain joining request to the cloud chain, it includes:

[0018] Generate encryption and decryption key pairs, signature and verification key pairs and registration information according to the encryption and signature protocol set of the system; the registration information includes Bluetooth name, network hotspot name, node identity information and client communication address;

[0019] Using the first key in the encryption / decryption key pair, the second key in the encryption / decryption key pair, the verification key in the signature and verification key pair, the Bluetooth name, the network hotspot name, the node identity information and the client communication address are encrypted to obtain an encrypted package of the edge chain joining request;

[0020] The encrypted package of the edge chain joining request is digitally signed using the signature key in the signature and signature verification key pair.

[0021] Furthermore, before sending the transaction result evidence storage request corresponding to the transaction process to the cloud chain, it includes:

[0022] Perform smart contract calculation on the transaction result, and reach consensus on the transaction result with the original mobile terminal nodes in the edge chain based on the smart contract calculation result to obtain a consensus result;

[0023] The consensus result is packaged and encrypted, and then zero-knowledge proof calculation and threshold signature are performed.

[0024] Furthermore, the hybrid networking method of the multi-level blockchain also includes:

[0025] Check whether your communication address in the operator's network environment has changed;

[0026] If there is a change, disconnect the persistent connection and clean up the corresponding connection cache;

[0027] The changed communication address is uploaded to the cloud chain, and a long connection with the edge chain is re-established based on the new node registration code and the public identity information in the well-known node list.

[0028] In a second aspect, the present application provides a hybrid networking method of a multi-level blockchain, which is applied to a multi-level blockchain system, wherein the system includes a cloud chain and multiple edge chains, wherein the cloud chain is used to store evidence of the transaction process in each of the edge chains, and the edge chain includes multiple mobile end nodes that trade with each other, including:

[0029] Generate a new node registration code and a list of well-known nodes based on the edge chain joining request sent by the newly added mobile node;

[0030] Processing the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list;

[0031] Based on the verification result, a well-known node filtering list is fed back to the newly added mobile terminal node, so that the newly added mobile terminal node establishes a long connection with the edge chain based on the well-known node filtering list.

[0032] Further, the processing of the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list includes:

[0033] Determine the type and parameters of the consensus algorithm of the newly added mobile node according to the new node registration code;

[0034] Determining the type and parameters of the consensus algorithm of the selected well-known node from the public identity information;

[0035] Verify whether the type and parameters of the consensus algorithm of the selected well-known node match the type and parameters of the consensus algorithm of the newly added mobile terminal node to obtain the verification result.

[0036] Furthermore, before feeding back the well-known node filtering list to the newly added mobile terminal node based on the verification result, the method includes:

[0037] Determine whether the well-known nodes in the well-known node filter list meet the consensus requirements of the edge end; the consensus requirements at least include: whether the number of consensus nodes meets a preset threshold.

[0038] Furthermore, the hybrid networking method of the multi-level blockchain also includes:

[0039] A transaction result evidence storage request corresponding to the transaction process is received from the newly added mobile terminal node, and the transaction result is processed for evidence storage.

[0040] In a third aspect, the present application provides a multi-level blockchain system, including:

[0041] One cloud chain and multiple edge chains;

[0042] The cloud chain is used to store the transaction process in each edge chain; the edge chain includes a plurality of mobile end nodes that trade with each other; the mobile end nodes include newly added mobile end nodes and existing mobile end nodes;

[0043] The newly added mobile terminal node is used to send an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request; initiates a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list; and establishes a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result;

[0044] The cloud chain is specifically used to generate a new node registration code and a well-known node list based on an edge chain joining request sent by a newly added mobile terminal node; process a verification request initiated by the newly added mobile terminal node based on the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list; and feedback a well-known node filter list to the newly added mobile terminal node based on the verification result, so that the newly added mobile terminal node establishes a long connection with the edge chain based on the well-known node filter list.

[0045] Furthermore, the cloud chain is also used to receive a transaction result evidence storage request corresponding to the transaction process from the newly added mobile terminal node, and perform evidence storage processing on the transaction result.

[0046] In a fourth aspect, the present application provides a hybrid networking device of a multi-level blockchain, which is applied to a multi-level blockchain system, wherein the system includes a cloud chain and multiple edge chains, wherein the cloud chain is used to store evidence of the transaction process in each of the edge chains, and the edge chain includes multiple mobile end nodes that trade with each other, including:

[0047] A joining request sending unit, used to send an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request;

[0048] A verification request initiating unit, used to initiate a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list;

[0049] A networking unit is used to establish a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result.

[0050] Furthermore, the verification request initiating unit includes:

[0051] A public information acquisition module, used to obtain the public identity information of each well-known node in the well-known node list;

[0052] The registration code and information uploading module is used to upload the new node registration code and the public identity information to the cloud chain, so that the cloud chain can verify the new node registration code and the public identity information.

[0053] Furthermore, the networking unit includes:

[0054] The connection establishment module is used to perform a handshake operation with the well-known nodes in the well-known node filtering list to establish a long connection with the edge chain.

[0055] Furthermore, the hybrid networking device of the multi-level blockchain further includes:

[0056] The evidence request sending unit is used to send a transaction result evidence request corresponding to the transaction process to the cloud chain, so that the cloud chain can perform evidence processing on the transaction result.

[0057] Furthermore, the hybrid networking device of the multi-level blockchain further includes:

[0058] A key pair and information generation unit, used to generate encryption and decryption key pairs, signature and signature verification key pairs and registration information according to the encryption and signature protocol set of the system; the registration information includes Bluetooth name, network hotspot name, node identity information and client communication address;

[0059] An encrypted package generating unit, configured to encrypt the second key in the encryption / decryption key pair, the signature verification key in the signature and signature verification key pair, the Bluetooth name, the network hotspot name, the node identity information and the client communication address by using the first key in the encryption / decryption key pair to obtain an encrypted package of the edge chain joining request;

[0060] The digital signature unit is used to digitally sign the encrypted package of the edge chain joining request using the signature key in the signature and verification key pair.

[0061] Furthermore, the hybrid networking device of the multi-level blockchain further includes:

[0062] A transaction result consensus unit, used to perform smart contract calculation on the transaction result, and to perform transaction result consensus with the original mobile terminal nodes in the edge chain based on the smart contract calculation result to obtain a consensus result;

[0063] The zero-knowledge and signature unit is used to package and encrypt the consensus result and then perform zero-knowledge proof calculation and threshold signature.

[0064] Furthermore, the hybrid networking device of the multi-level blockchain further includes:

[0065] A communication address checking unit is used to check whether its communication address in the operator's network environment has changed;

[0066] A connection cache cleaning unit, used to disconnect the long connection and clean up the corresponding connection cache if a change occurs;

[0067] The re-networking unit is used to upload the changed communication address to the cloud chain, and re-establish a long connection with the edge chain according to the new node registration code and the public identity information in the well-known node list.

[0068] In a fifth aspect, the present application provides a hybrid networking device of a multi-level blockchain, which is applied to a multi-level blockchain system, wherein the system includes a cloud chain and multiple edge chains, wherein the cloud chain is used to store evidence of the transaction process in each of the edge chains, and the edge chain includes multiple mobile end nodes that trade with each other, including:

[0069] A registration code and list generating unit, used to generate a new node registration code and a well-known node list according to an edge chain joining request sent by a newly added mobile terminal node;

[0070] a verification request processing unit, configured to process the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list;

[0071] The filter list feedback unit is used to feed back the well-known node filter list to the newly added mobile terminal node based on the verification result, so that the newly added mobile terminal node establishes a long connection with the edge chain based on the well-known node filter list.

[0072] Furthermore, the verification request processing unit includes:

[0073] A new node confirmation module, used to determine the type and parameters of the consensus algorithm of the newly added mobile terminal node according to the new node registration code;

[0074] A well-known node confirmation module, used to determine the type and parameters of the consensus algorithm of the selected well-known node from the public identity information;

[0075] The verification matching module is used to verify whether the type and parameters of the consensus algorithm of the selected well-known node match the type and parameters of the consensus algorithm of the newly added mobile terminal node, and obtain the verification result.

[0076] Furthermore, the hybrid networking device of the multi-level blockchain further includes:

[0077] The consensus requirement determination unit is used to determine whether the well-known nodes in the well-known node filtering list meet the consensus requirements of the edge end; the consensus requirements at least include: whether the number of consensus nodes meets a preset threshold.

[0078] Furthermore, the hybrid networking device of the multi-level blockchain further includes:

[0079] The transaction result evidence processing unit is used to receive a transaction result evidence request corresponding to the transaction process from the newly added mobile terminal node, and perform evidence processing on the transaction result.

[0080] In a sixth aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the hybrid networking method of the multi-level blockchain are implemented.

[0081] In the seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the hybrid networking method of the multi-level blockchain.

[0082] In an eighth aspect, the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the hybrid networking method of the multi-level blockchain.

[0083] In response to the problems in the prior art, the multi-level blockchain hybrid networking method and device provided by the present application can be based on the multi-level networking technology of the blockchain, can conveniently complete the hybrid networking of the blockchain, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture; on the premise of providing basic services such as distributed storage and cloud transaction evidence, further provide value-added functions such as multi-party witnessing of the edge blockchain and transaction privacy protection of the edge blockchain, so that business providers in various business scenarios can customize the edge blockchain smart contracts, and then through the customized edge blockchain smart contracts, the business beneficiaries can use the blockchain system conveniently and quickly to process business with only a mobile client; it provides more possibilities for the ecological construction of the blockchain. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0085] Figure 1 This is a schematic diagram of the structure of a multi-level blockchain system in an embodiment of the present application;

[0086] Figure 2 This is one of the flow charts of the hybrid networking method of the multi-level blockchain in the embodiment of the present application;

[0087] Figure 3 This is a flow chart of initiating a verification request to the cloud chain in an embodiment of the present application;

[0088] Figure 4 This is the second flow chart of the hybrid networking method of the multi-level blockchain in the embodiment of the present application;

[0089] Figure 5 This is the third flow chart of the hybrid networking method of the multi-level blockchain in the embodiment of the present application;

[0090] Figure 6 This is the fourth flow chart of the hybrid networking method of the multi-level blockchain in the embodiment of the present application;

[0091] Figure 7 This is the fifth flow chart of the hybrid networking method of the multi-level blockchain in the embodiment of the present application;

[0092] Figure 8 This is a flowchart of processing a verification request initiated by a newly added mobile terminal node in an embodiment of the present application;

[0093] Fig. 9This is one of the structural diagrams of the hybrid networking device of the multi-level blockchain in the embodiment of the present application;

[0094] Fig.10 This is a structural diagram of a verification request initiating unit in an embodiment of the present application;

[0095] Fig.11 This is the second structural diagram of the hybrid networking device of the multi-level blockchain in the embodiment of the present application;

[0096] Fig.12 This is the third structural diagram of the hybrid networking device of the multi-level blockchain in the embodiment of the present application;

[0097] Fig.13 This is the fourth structural diagram of the hybrid networking device of the multi-level blockchain in the embodiment of the present application;

[0098] Fig.14 A schematic diagram of the structure of an electronic device in an embodiment of the present application;

[0099] Fig.15 This is a schematic diagram of the overall process of the hybrid networking method of the multi-level blockchain in the embodiment of the present application;

[0100] Fig.16 This is a functional module diagram of the multi-level blockchain system in the embodiment of this application;

[0101] Fig.17 This is a flowchart of a method for processing network registration of a mobile client in an embodiment of the present application;

[0102] Fig.18 A schematic diagram of a process flow of a mobile client networking method in an embodiment of the present application;

[0103] Fig.19 This is a flowchart of a method for processing offline transactions of a mobile client in an embodiment of the present application;

[0104] Fig. 20 Schematic diagram of the process flow of a method for processing dynamic changes and updates of network communications of a mobile client in an embodiment of the present application. DETAILED DESCRIPTION

[0105] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0106] It should be noted that the hybrid networking method and device of the multi-level blockchain provided in the present application can be used in the financial field, and can also be used in any field other than the financial field. The application field of the hybrid networking method and device of the multi-level blockchain provided in the present application is not limited.

[0107] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0108] With the development of blockchain technology, more and more application scenarios are integrated into the blockchain system. If all application scenarios are placed on the cloud blockchain for calculation and verification, the cloud blockchain will be under too much pressure. In order to reduce the pressure on the cloud blockchain and expand the ecological construction of the blockchain system, it is necessary to re-propose a new blockchain architecture for the Internet of Things environment and provide specific methods for new node discovery and new node networking.

[0109] The multi-level blockchain system provided by the embodiment of the present application introduces cloud-side blockchain and edge-side blockchain, so that the two can collaborate at multiple levels. The multi-level blockchain system can support multiple communication protocols and hybrid networking architecture, which solves the problem of excessive pressure on cloud-side blockchain and reconstructs and upgrades the architecture of the blockchain system. The blockchain architecture can be used to complete the upgrade and expansion of multi-level split deployment, and can also support mobile clients with different communication protocols and different consensus algorithms to participate in the blockchain system networking, solving the problems of consensus, networking compatibility and mobile client communication address drift in the Internet of Things environment, and expanding the ecological construction of the blockchain system.

[0110] In one embodiment, see Figure 1 In order to conveniently complete the blockchain hybrid networking, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture, this application provides a multi-level blockchain system, including:

[0111] One cloud chain and multiple edge chains;

[0112] The cloud chain is used to store the transaction process in each edge chain; the edge chain includes a plurality of mobile end nodes that trade with each other; the mobile end nodes include newly added mobile end nodes and existing mobile end nodes;

[0113] The newly added mobile terminal node is used to send an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request; initiates a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list; and establishes a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result;

[0114] The cloud chain is specifically used to generate a new node registration code and a list of well-known nodes according to the edge chain joining request sent by the newly added mobile terminal node; process the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list; and feedback the well-known node filter list to the newly added mobile terminal node based on the verification result, so that the newly added mobile terminal node establishes a long connection with the edge chain based on the well-known node filter list. The cloud chain is also used to receive a transaction result storage request corresponding to the transaction process from the newly added mobile terminal node, and perform storage processing on the transaction result.

[0115] Understandably, Figure 1 A network structure diagram of a blockchain system that supports multi-level hybrid networking in an Internet of Things environment is shown. The blockchain system includes: a transaction client 21 (corresponding to the newly added mobile terminal node and the original mobile terminal node), an edge blockchain network 22 (also called an edge chain) and a cloud blockchain network 23 (also called a cloud chain). Among them, the transaction clients 21 can communicate directly with each other, and an edge blockchain network 22 can be established. The established edge blockchain network 22 and the cloud blockchain network 23 communicate directly. The transaction client 21 completes the network access verification, identity authentication and other verification registration processes through the edge device registration management protocol smart contract of the cloud blockchain network 23. Only after that, it can be recognized by other transaction clients in the network or participate in the routing establishment, and can join the edge blockchain network 22. A node listening connection is established between the transaction client 21 and the cloud blockchain network 23, and some transaction clients 21 with stable connection addresses are selected as well-known nodes and recorded in the well-known node list.

[0116] Specifically, the transaction client 21 refers to a mobile communication device (such as a mobile phone) that has a specific business application and whose application background supports the hybrid networking protocol of the blockchain system proposed in this application, and can access the edge blockchain network 22.

[0117] The edge blockchain network 22 refers to a blockchain network established by the transaction client 21 through the hybrid networking protocol of the blockchain system proposed in this application, which can perform multilateral witnessing of transactions, distributed chain storage of transaction results, and perform threshold signatures and zero-knowledge proof calculations on the results sent to the cloud.

[0118] The cloud blockchain network 23 refers to a blockchain network that verifies and stores the calculation results of the edge blockchain network 22, and is composed of modules such as the edge device registration management protocol smart contract and the well-known node list management smart contract.

[0119] Fig.16The functional component diagram of a multi-level hybrid networking blockchain system under the Internet of Things environment is shown. Among them, it includes: device network registration component 301, witnessed transaction batch packaging component 302, threshold signature and zero-knowledge proof component 303, device communication link detection update and edge networking component 304, edge blockchain node routing table 305, smart contract transaction message generation component 306, edge blockchain node selection component 307, multi-party witness and transaction consensus component 308, edge device registration management protocol smart contract 309, well-known edge node list management smart contract 310, edge network transaction result verification and synchronization component 311, and transaction raw data encryption storage 312.

[0120] Among them, the device network registration component 301 is used to enable the mobile client 21 (newly added mobile terminal node) to register device information and business-related user personal information to the cloud blockchain 23. If other new mobile terminal nodes are added later, the above-mentioned registered information can be provided to other new mobile terminal nodes to verify the identity of the registered mobile terminal nodes (also called the original mobile terminal nodes). It should be noted that each mobile client 21 will only establish a communication connection between blockchain nodes with the registered mobile client 21 and transmit transaction messages.

[0121] The witnessed transaction batch packaging component 302 is used to enable the mobile client 21 to batch package the completed edge blockchain witnessed transactions that have not been sent to the cloud, and send them to the cloud for data encryption and distributed storage.

[0122] The threshold signature and zero-knowledge proof component 303 is used to enable the mobile client 21 to batch calculate the zero-knowledge proof of the transaction result based on the original transaction data, and perform a threshold signature on the proof to indicate that a sufficient number of mobile clients 21 have witnessed the validity of the transaction results within a period of time.

[0123] The device communication link detection update and edge networking component 304 is used to enable the mobile client 21 to establish a routing table of the edge blockchain node before executing the transaction when it is first started, and to turn on the short-range communication detection of the device Bluetooth or wifi hotspot; establish a connection based on the searched Bluetooth name or wifi hotspot name; and obtain the registered identity information of the other party according to the hybrid blockchain networking protocol. The mobile client 21 can assemble the obtained opponent information (other mobile clients that conduct transactions with the mobile client 21) and send it to the cloud blockchain network, complete the registration and authentication of the opponent in the cloud blockchain, add the authenticated opponent to the node list of the blockchain edge networking, and finally establish an edge blockchain network consensus connection with the opponent.

[0124] The edge blockchain node routing table 305 is provided to the mobile client 21, which records the list of nodes that the mobile client 21 can select when networking the edge blockchain network, including the other party's communication address and identity information.

[0125] The smart contract transaction message generation component 306 is used to help the mobile client 21 receive transactions initiated by business applications after networking, and assemble smart contract transaction messages; according to the consensus algorithm selected by the edge blockchain, the edge blockchain node selection component selects appropriate nodes in the edge blockchain node list, and forwards the request to these nodes for processing.

[0126] The edge blockchain node selection component 307 displays multiple candidate blockchain nodes in the edge networking where the mobile client 21 is located; the built-in algorithm of the selection component selects a certain number of blockchain nodes based on the consensus algorithm selected by the edge blockchain node and the stability of the network communication link; generally, nodes with more stable network communication links will be selected. In specific implementation, the length of time the long connection between the mobile client and other mobile clients is maintained during the edge networking process, and the long connection time lengths are sorted from large to small, giving priority to mobile clients with longer long connection times for networking.

[0127] The multi-party witness and transaction consensus component 308 is used to complete the establishment of transaction consensus after the mobile client establishes a communication connection, and to perform multi-party witness and transaction consensus on the edge smart contract request.

[0128] The edge device registration management protocol smart contract 309 is used by the cloud blockchain to register the device information and user information of the mobile client in the edge blockchain. It is also used to pave the way for the authentication management established in the edge blockchain network and the establishment of p2p connections between clients.

[0129] The well-known edge node list management smart contract 310 is a list of well-known nodes that can be selected for edge networking returned by the cloud blockchain to the mobile client.

[0130] The edge network transaction result verification and synchronization component 311 is used to enable the cloud blockchain 23 to verify the zero-knowledge proof of the batch transaction results sent by the edge blockchain 22, and only synchronize the batch transaction results that have passed the verification to the cloud blockchain network.

[0131] The encrypted storage 312 of the original transaction data is to encrypt and distribute the original transaction data in the cloud. When a dispute arises over the transaction result, the data provider can authorize the supervisor or arbitrator to use the original transaction data.

[0132] From the above description, it can be seen that the hybrid networking method of the multi-level blockchain provided in this application can be based on the multi-level networking technology of the blockchain, and can conveniently complete the hybrid networking of the blockchain, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture; on the premise of providing basic services such as distributed storage and cloud transaction evidence, it further provides value-added functions such as multi-party witnessing of the edge blockchain and transaction privacy protection of the edge blockchain, so that business providers in various business scenarios can customize the edge blockchain smart contracts, and then through their customized edge blockchain smart contracts, the business beneficiaries can use the blockchain system conveniently and quickly to process business with only a mobile client; it provides more possibilities for the ecological construction of the blockchain.

[0133] In one embodiment, see Figure 2 In order to conveniently complete the hybrid networking of blockchains, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture, a hybrid networking method of a multi-level blockchain is applied to a multi-level blockchain system, wherein the system includes a cloud chain and multiple edge chains, wherein the cloud chain is used to store the transaction process in each edge chain, and the edge chain includes multiple mobile end nodes that trade with each other, including:

[0134] X101: Send an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request;

[0135] X102: Initiate a verification request to the cloud chain based on the new node registration code and the public identity information in the well-known node list; specifically, see Figure 3 , obtain the public identity information of each well-known node in the well-known node list (X201); upload the new node registration code and the public identity information to the cloud chain, so that the cloud chain verifies the new node registration code and the public identity information (X202).

[0136] X103: Establish a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result; specifically, perform a handshake operation with the well-known nodes in the well-known node filtering list to establish a long connection with the edge chain.

[0137] In one embodiment, the hybrid networking method of the multi-level blockchain further includes: sending a transaction result evidence storage request corresponding to the transaction process to the cloud chain, so that the cloud chain performs evidence storage processing on the transaction result (X104).

[0138] Understandably, see Fig.15, the blockchain system that supports multi-level hybrid networking in the Internet of Things environment provided by this application relates to the field of blockchain and Internet of Things technology. Among them, the method includes: the transaction client registers in the network in the connected state and obtains the list of well-known nodes of the blockchain, the transaction client selects adjacent nodes to form an edge blockchain network in the offline state, the transaction client selects well-known nodes to form an edge blockchain network in the connected state, the edge blockchain network witnesses the transactions initiated by the client and performs distributed storage on the edge, and batch packages the transaction results of the edge blockchain network in the connected state and completes the calculation of threshold signatures and zero-knowledge proofs and sends them to the cloud blockchain network for evidence storage. The blockchain system with multi-level hybrid networking in the Internet of Things environment includes: the joint action of multi-layer structures such as the transaction client, the edge blockchain, and the cloud blockchain network to complete the multi-party witnessing of the transaction in the edge blockchain network.

[0139] Among them, the executors of steps X101 to X103, steps X201 to X202, steps X301 to X303, steps X401 to X402, and steps X501 to X503 are all mobile clients 21 (also called newly added mobile nodes) requesting to join the blockchain system.

[0140] Understandably, Fig.18 A flow chart of a processing method for mobile client networking that supports multi-level hybrid networking in an IoT environment, involving mobile clients (edge ​​blockchain) and cloud blockchain networks. The networking steps of the hybrid networking protocol are as follows:

[0141] Step S501: The mobile client turns on the Bluetooth / wifi hotspot search function, connects to other mobile clients in the list in turn, initiates a GET_IDENTITY_REQ type request with the Bluetooth / wifi hotspot name as a parameter, and obtains the other party's identity information.

[0142] Step S502: After receiving the GET_IDENTITY_REQ type message, the mobile client parses the GET_IDENTITY_REQ type request, determines that the Bluetooth / Wifi hotspot name registered by the client matches the request parameters, and returns the GET_IDENTITY_RESP type. The parameters include the identity information VerKey and Bluetooth / Wifi hotspot name registered in the cloud blockchain.

[0143] Step S503: After the mobile client collects the GET_IDENTITY_RESP type messages returned by other mobile clients, it collects and filters out valid information and sends it to the edge node filtering smart contract of the cloud blockchain for further verification. The parameters include the name of the Bluetooth / wifi hotspot of the neighboring node, the identity information VerKey of the neighboring node, the registration code RegisterID of the node device, and the type and parameters of the edge consensus algorithm (POW\POS\Raft or others).

[0144] Step S504: The cloud blockchain verifies the node device registration code and continues to execute subsequent steps after verification, otherwise it returns with an error.

[0145] Step S505: The cloud blockchain checks the list of neighboring node Bluetooth / wifi hotspot names and neighboring node identity information, filters the list according to the edge consensus algorithm type and parameters, and determines whether the filtered list meets the edge consensus requirements (including the number of consensus nodes meeting the requirements). If so, execute S507, otherwise execute S506.

[0146] Step S506: The cloud blockchain randomly adds the consensus nodes that survive on the edge, so that the returned results meet the consensus requirements of the edge.

[0147] Step S507: The cloud blockchain returns a list of nodes that meet the consensus algorithm after filtering. The nodes in the list also meet the requirements of having completed device registration under the hybrid networking protocol system and supporting the specified consensus algorithm protocol. The returned node list includes the Bluetooth / wifi hotspot / operator network communication method and communication address of each node.

[0148] Step S508: The mobile client obtains the node list returned by the cloud blockchain, shakes hands with each node in the list according to the communication method and communication address, and establishes a long connection with the blockchain network.

[0149] Step S509: The mobile clients complete the negotiation of information such as consensus type and consensus parameters through the above-mentioned long connection, establish a blockchain network and wait for processing of various types of smart contract transactions.

[0150] Understandably, Fig.19A flow chart of a method for processing offline transactions of mobile clients that support multi-level hybrid networking in an IoT environment is shown, which involves a mobile client (located at the edge blockchain). If all connected nodes in the mobile client networking are online in a short-distance communication mode for a period of time, then the mobile client can complete the establishment of the edge blockchain network and process offline transactions with other nearby mobile clients in an offline state. When any client node in the network can connect to the operator network, the client will send the original messages of incremental transactions and batch transaction execution results after a period of offline time to the cloud blockchain network for evidence storage after zero-knowledge proof calculation, threshold signature and other processing. The steps for offline transaction processing of the hybrid networking protocol are as follows:

[0151] Step S601: The mobile client can independently receive application transactions whether offline or online.

[0152] Step S602: The mobile client independently completes the smart contract calculation.

[0153] Step S603: The mobile client reaches consensus on the transaction results through the edge blockchain network, including consensus parameter negotiation and consensus result verification rule execution.

[0154] Step S604: The mobile client packages the edge transaction results into blocks.

[0155] Step S605: The mobile client determines whether it is connected to the Internet. If there are incremental blocks on the edge that have not been stored in the blockchain cloud, execute S606, otherwise return to the transaction reception and processing waiting state.

[0156] Step S606: The mobile client batch-packages and encrypts the original messages of the edge transaction and sends them to the cloud blockchain network.

[0157] Step S607: The cloud blockchain network stores the encryption results of the original messages of the edge batch transactions.

[0158] Step S608: The mobile client calculates a zero-knowledge proof of the edge batch transaction results to ensure that the association relationship of the key transaction information is included in the proof result.

[0159] Step S609: The mobile client performs a threshold signature on the proof result and sends it to the cloud blockchain for evidence storage.

[0160] Step S610: The cloud blockchain network performs a zero-knowledge proof verification calculation on the proof of the edge batch transaction execution result, and stores the proof of the execution result.

[0161] Specifically, in one embodiment, see Figure 4Before sending the edge chain joining request to the cloud chain, it includes: generating an encryption and decryption key pair, a signature and verification key pair and registration information according to the encryption and signature protocol set of the system; the registration information includes a Bluetooth name, a network hotspot name, a node identity information and a client communication address (X301); using the first key in the encryption and decryption key pair to encrypt the second key in the encryption and decryption key pair, the verification key in the signature and verification key pair, the Bluetooth name, the network hotspot name, the node identity information and the client communication address to obtain the encrypted package of the edge chain joining request (X302); using the signature key in the signature and verification key pair to digitally sign the encrypted package of the edge chain joining request (X303).

[0162] Specifically, in one embodiment, see Figure 5 Before sending the transaction result evidence request corresponding to the transaction process to the cloud chain, it includes: performing smart contract calculation on the transaction result, and based on the smart contract calculation result, reaching a consensus on the transaction result with the original mobile terminal node in the edge chain to obtain a consensus result (X401); packaging and encrypting the consensus result, performing zero-knowledge proof calculation and threshold signature (X402).

[0163] Understandably, Fig.17 It is a flowchart of the processing method for mobile client network registration that supports multi-level hybrid networking in the IoT environment, involving the interaction between the mobile client and the cloud blockchain network. The steps for network registration of the hybrid networking protocol are as follows:

[0164] Step S401: Before the mobile client joins the blockchain system, it completes the generation of the relevant encryption and decryption key pair EncKey / DecKey and the signature verification key pair SigKey / VerKey according to the requirements of the blockchain encryption and signature protocol set, and completes the registration of the device-related registration information in the cloud blockchain. The registration information includes but is not limited to the Bluetooth name, WiFi hotspot name, node identity information (including encryption key EncKey, signature verification key VerKey), and client communication address.

[0165] Step S402: After consensus is reached among all nodes in the cloud blockchain, a unique device registration code is generated for each mobile client device, the blockchain well-known node list is updated, the encryption key is transmitted, and the result is returned to the mobile client using EncKey encryption.

[0166] Step S403: The mobile client user keeps the device registration code and does not disclose it to a third party. When initiating other types of requests to the cloud blockchain, the request parameters include the device registration code, other request fields, and the result of using the SigKey signature. At the same time, the key provided by the blockchain is used for encryption. The design ensures that the cloud can use the signature verification key to check the client identity and only process legitimate client requests.

[0167] Step S404: The cloud blockchain uses the verification key VerKey corresponding to the device registration code and processes the client request.

[0168] Step S405: The mobile client receives the transaction processing result from the cloud blockchain and continues other business-related processing.

[0169] From the above description, it can be seen that the hybrid networking method of the multi-level blockchain provided in this application can be based on the multi-level networking technology of the blockchain, and can conveniently complete the hybrid networking of the blockchain, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture; on the premise of providing basic services such as distributed storage and cloud transaction evidence, it further provides value-added functions such as multi-party witnessing of the edge blockchain and transaction privacy protection of the edge blockchain, so that business providers in various business scenarios can customize the edge blockchain smart contracts, and then through their customized edge blockchain smart contracts, the business beneficiaries can use the blockchain system conveniently and quickly to process business with only a mobile client; it provides more possibilities for the ecological construction of the blockchain.

[0170] Specifically, in one embodiment, see Figure 6 , the hybrid networking method of the multi-level blockchain also includes:

[0171] X501: Check whether the communication address in the operator's network environment has changed;

[0172] X502: If any change occurs, disconnect the persistent connection and clear the corresponding connection cache;

[0173] X503: Upload the changed communication address to the cloud chain, and re-establish a long connection with the edge chain based on the new node registration code and the public identity information in the well-known node list.

[0174] Understandably, Fig. 20 The flowchart of a method for processing dynamic changes and updates of mobile client network communications in a multi-level hybrid networking environment in the Internet of Things is shown, involving mobile clients (edge-end blockchain) and cloud-end blockchain networks. The steps for dynamic changes and updates of mobile client communications in the edge-end network are as follows:

[0175] Step S701: The mobile client checks whether its communication address in the operator network has changed. If so, execute S702; otherwise, execute S704.

[0176] Step S702: The mobile client disconnects all old connections with other edge mobile clients and clears the connection cache.

[0177] Step S703: The mobile client updates the changed new communication address to the cloud blockchain and executes S706.

[0178] Step S704: The mobile client checks whether the near field communication connection status with other mobile clients has changed. If so, execute S705; otherwise, return to S701.

[0179] Step S705: The mobile client restarts the networking step of the edge blockchain node hybrid networking protocol to obtain the new communication address of the original consensus node, or obtains the communication address of the new consensus node.

[0180] Step S706: The mobile client batches the original transaction messages that are not stored in the cloud and sends them to the cloud blockchain for evidence storage.

[0181] Step S707: The mobile client calculates the zero-knowledge proof of the transaction result and sends it to the cloud blockchain for storage.

[0182] In one embodiment, see Figure 7 A hybrid networking method of a multi-level blockchain is applied to a multi-level blockchain system, wherein the system includes a cloud chain and multiple edge chains, wherein the cloud chain is used to store the transaction process in each edge chain, and the edge chain includes multiple mobile end nodes that trade with each other, including:

[0183] X601: Generate a new node registration code and a list of well-known nodes based on the edge chain joining request sent by the newly added mobile node;

[0184] X602: Processing the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list;

[0185] X603: Feedback a well-known node filtering list to the newly added mobile terminal node based on the verification result, so that the newly added mobile terminal node establishes a long connection with the edge chain based on the well-known node filtering list.

[0186] It should be noted that the execution entities of steps X601 to X603, steps X701 to X703, steps X800 and steps X900 are all cloud blockchain 23. The specific implementation methods of each step have been described above and will not be repeated again.

[0187] In one embodiment, see Figure 8 , the processing of the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list includes:

[0188] X701: Determine the type and parameters of the consensus algorithm of the newly added mobile node according to the new node registration code;

[0189] X702: Determine the type and parameters of the consensus algorithm of the selected well-known node from the public identity information;

[0190] X703: Verify whether the type and parameters of the consensus algorithm of the selected well-known node match the type and parameters of the consensus algorithm of the newly added mobile node, and obtain the verification result.

[0191] In one embodiment, before feeding back the well-known node filtering list to the newly added mobile terminal node based on the verification result, the method includes:

[0192] X800: Determine whether the well-known nodes in the well-known node filtering list meet the consensus requirements of the edge end; the consensus requirements at least include: whether the number of consensus nodes meets a preset threshold.

[0193] In one embodiment, the hybrid networking method of the multi-level blockchain further includes:

[0194] X900: Receive a transaction result evidence storage request corresponding to the transaction process from the newly added mobile terminal node, and perform evidence storage processing on the transaction result.

[0195] From the above description, it can be seen that the hybrid networking method of the multi-level blockchain provided in this application can be based on the multi-level networking technology of the blockchain, and can conveniently complete the hybrid networking of the blockchain, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture; on the premise of providing basic services such as distributed storage and cloud transaction evidence, it further provides value-added functions such as multi-party witnessing of the edge blockchain and transaction privacy protection of the edge blockchain, so that business providers in various business scenarios can customize the edge blockchain smart contracts, and then through their customized edge blockchain smart contracts, the business beneficiaries can use the blockchain system conveniently and quickly to process business with only a mobile client; it provides more possibilities for the ecological construction of the blockchain.

[0196] Based on the same inventive concept, the embodiment of the present application also provides a hybrid networking device of a multi-level blockchain, which can be used to implement the method described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by the hybrid networking device of the multi-level blockchain is similar to the hybrid networking method of the multi-level blockchain, the implementation of the hybrid networking device of the multi-level blockchain can refer to the implementation of the method based on the software performance benchmark determination, and the repetitions will not be repeated. As used below, the term "unit" or "module" can implement a combination of software and / or hardware for a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0197] In one embodiment, see Fig. 9 In order to conveniently complete blockchain hybrid networking and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture, the present application provides a hybrid networking device of a multi-level blockchain, which is applied to a multi-level blockchain system. The system includes a cloud chain and multiple edge chains. The cloud chain is used to store transaction processes in each of the edge chains. The edge chain includes multiple mobile nodes that trade with each other, including: a joining request sending unit 901, a verification request initiating unit 902 and a networking unit 903.

[0198] A joining request sending unit 901 is used to send an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request;

[0199] A verification request initiating unit 902, configured to initiate a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list;

[0200] The networking unit 903 is used to establish a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result.

[0201] In one embodiment, see Fig.10 The verification request initiating unit 902 includes: a public information acquisition module 1001 and a registration code and information uploading module 1002.

[0202] The public information acquisition module 1001 is used to obtain the public identity information of each well-known node in the well-known node list;

[0203] The registration code and information uploading module 1002 is used to upload the new node registration code and the public identity information to the cloud chain, so that the cloud chain can verify the new node registration code and the public identity information.

[0204] In one embodiment, the networking unit 903 includes:

[0205] The connection establishment module is used to perform a handshake operation with the well-known nodes in the well-known node filtering list to establish a long connection with the edge chain.

[0206] In one embodiment, the hybrid networking device of the multi-level blockchain further includes:

[0207] The evidence request sending unit is used to send a transaction result evidence request corresponding to the transaction process to the cloud chain, so that the cloud chain can perform evidence processing on the transaction result.

[0208] In one embodiment, see Fig.11 The multi-level blockchain hybrid networking device also includes: a key pair and information generation unit 1101, an encryption package generation unit 1102 and a digital signature unit 1103.

[0209] The key pair and information generation unit 1101 is used to generate encryption and decryption key pairs, signature and signature verification key pairs and registration information according to the encryption and signature protocol set of the system; the registration information includes Bluetooth name, network hotspot name, node identity information and client communication address;

[0210] The encrypted package generation unit 1102 is used to encrypt the second key in the encryption / decryption key pair, the verification key in the signature and verification key pair, the Bluetooth name, the network hotspot name, the node identity information and the client communication address by using the first key in the encryption / decryption key pair to obtain the encrypted package of the edge chain joining request;

[0211] The digital signature unit 1103 is used to digitally sign the encrypted package of the edge chain joining request using the signature key in the signature and verification key pair.

[0212] In one embodiment, see Fig.12 The multi-level blockchain hybrid networking device also includes: a transaction result consensus unit 1201 and a zero-knowledge and signature unit 1202.

[0213] The transaction result consensus unit 1201 is used to perform smart contract calculation on the transaction result, and to perform transaction result consensus with the original mobile terminal nodes in the edge chain based on the smart contract calculation result to obtain a consensus result;

[0214] The zero-knowledge and signature unit 1202 is used to package and encrypt the consensus result and then perform zero-knowledge proof calculation and threshold signature.

[0215] In one embodiment, see Fig.13The multi-level blockchain hybrid networking device also includes: a communication address checking unit 1301, a connection cache cleaning unit 1302 and a re-networking unit 1303.

[0216] The communication address checking unit 1301 is used to check whether its communication address in the operator network environment has changed;

[0217] A connection cache cleaning unit 1302 is used to disconnect the long connection and clean up the corresponding connection cache if a change occurs;

[0218] The re-networking unit 1303 is used to upload the changed communication address to the cloud chain, and re-establish a long connection with the edge chain according to the new node registration code and the public identity information in the well-known node list.

[0219] From the hardware level, in order to conveniently complete the hybrid networking of blockchains and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the hybrid networking method of the multi-level blockchain, and the electronic device specifically includes the following contents:

[0220] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize the information transmission between the hybrid networking device of the multi-level blockchain and the core business system, user terminal and related database and other related equipment; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., and the present embodiment is not limited thereto. In the present embodiment, the logic controller can be implemented with reference to the embodiment of the hybrid networking method of the multi-level blockchain in the embodiment, and the embodiment of the hybrid networking device of the multi-level blockchain, and the contents thereof are incorporated herein, and the repeated parts are not repeated.

[0221] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.

[0222] In practical applications, part of the hybrid networking method of the multi-level blockchain can be performed on the electronic device side as described above, or all operations can be completed in the client device. The specific selection can be based on the processing capacity of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.

[0223] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.

[0224] Fig.14 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig.14 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig.14 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0225] In one embodiment, the hybrid networking method function of the multi-level blockchain can be integrated into the central processor 9100. The central processor 9100 can be configured to perform the following control:

[0226] S101: Sending an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request;

[0227] S102: Initiate a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list;

[0228] S103: Establishing a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result.

[0229] From the above description, it can be seen that the hybrid networking method of the multi-level blockchain provided in this application can be based on the multi-level networking technology of the blockchain, and can conveniently complete the hybrid networking of the blockchain, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture; on the premise of providing basic services such as distributed storage and cloud transaction evidence, it further provides value-added functions such as multi-party witnessing of the edge blockchain and transaction privacy protection of the edge blockchain, so that business providers in various business scenarios can customize the edge blockchain smart contracts, and then through their customized edge blockchain smart contracts, the business beneficiaries can use the blockchain system conveniently and quickly to process business with only a mobile client; it provides more possibilities for the ecological construction of the blockchain.

[0230] In another embodiment, the hybrid networking device of the multi-level blockchain can be configured separately from the central processor 9100. For example, the hybrid networking device of the multi-level blockchain of the data compound transmission device can be configured as a chip connected to the central processor 9100, and the function of the hybrid networking method of the multi-level blockchain can be realized through the control of the central processor.

[0231] like Fig.14 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig.14 In addition, the electronic device 9600 may also include Fig.14 For components not shown, reference may be made to the prior art.

[0232] like Fig.14 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0233] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.

[0234] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.

[0235] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.

[0236] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0237] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0238] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.

[0239] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the hybrid networking method of a multi-level blockchain in the above-mentioned embodiment, where the execution subject is a server or a client. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, all the steps of the hybrid networking method of a multi-level blockchain in the above-mentioned embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0240] S101: Sending an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request;

[0241] S102: Initiate a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list;

[0242] S103: Establishing a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result.

[0243] From the above description, it can be seen that the hybrid networking method of the multi-level blockchain provided in this application can be based on the multi-level networking technology of the blockchain, and can conveniently complete the hybrid networking of the blockchain, and complete the multi-level split deployment and upgrade and expansion of the blockchain architecture; on the premise of providing basic services such as distributed storage and cloud transaction evidence, it further provides value-added functions such as multi-party witnessing of the edge blockchain and transaction privacy protection of the edge blockchain, so that business providers in various business scenarios can customize the edge blockchain smart contracts, and then through their customized edge blockchain smart contracts, the business beneficiaries can use the blockchain system conveniently and quickly to process business with only a mobile client; it provides more possibilities for the ecological construction of the blockchain.

[0244] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0245] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0246] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0247] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0248] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A hybrid networking method of a multi-level blockchain, applied to a multi-level blockchain system, the system includes a cloud chain and multiple edge chains, the cloud chain is used to store transaction processes in each edge chain, the edge chain includes multiple mobile end nodes that trade with each other, the mobile end nodes include newly added mobile end nodes and original mobile end nodes, It is characterized in that include: The newly added mobile node is used to send an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request; wherein, a node monitoring connection is established between the mobile node and the cloud chain, and the mobile node with a stable connection address is selected as a well-known node and recorded in the well-known node list; Initiate a verification request to the cloud chain based on the new node registration code and the public identity information in the well-known node list; Establishing a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result; The hybrid networking method of the multi-level blockchain further includes: sending a transaction result evidence storage request corresponding to the transaction process to the cloud chain, so that the cloud chain performs evidence storage processing on the transaction result; Among them, before sending the transaction result evidence request corresponding to the transaction process to the cloud chain, it includes: performing smart contract calculation on the transaction result, and based on the smart contract calculation result, reaching a consensus on the transaction result with the original mobile terminal node in the edge chain to obtain a consensus result; packaging and encrypting the consensus result, performing zero-knowledge proof calculation and threshold signature.

2. According to the hybrid networking method of the multi-level blockchain according to claim 1, It is characterized in that The initiating a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list includes: Obtaining public identity information of each well-known node in the well-known node list; The new node registration code and the public identity information are uploaded to the cloud chain, so that the cloud chain verifies the new node registration code and the public identity information.

3. According to the hybrid networking method of the multi-level blockchain according to claim 1, It is characterized in that The establishing of a long connection with the edge chain according to the filtering list of well-known nodes fed back by the cloud chain based on the verification result includes: A handshake operation is performed with the well-known nodes in the well-known node filtering list to establish a long connection with the edge chain.

4. According to the hybrid networking method of multi-level blockchains as described in claim 1, It is characterized in that Before sending the edge chain joining request to the cloud chain, it includes: Generate encryption and decryption key pairs, signature and verification key pairs and registration information according to the encryption and signature protocol set of the system; the registration information includes Bluetooth name, network hotspot name, node identity information and client communication address; Using the first key in the encryption / decryption key pair, the second key in the encryption / decryption key pair, the verification key in the signature and verification key pair, the Bluetooth name, the network hotspot name, the node identity information and the client communication address are encrypted to obtain an encrypted package of the edge chain joining request; The encrypted package of the edge chain joining request is digitally signed using the signature key in the signature and signature verification key pair.

5. According to the hybrid networking method of multi-level blockchains as described in claim 1, It is characterized in that Also includes: Check whether your communication address in the operator's network environment has changed; If there is a change, disconnect the persistent connection and clean up the corresponding connection cache; The changed communication address is uploaded to the cloud chain, and a long connection with the edge chain is re-established based on the new node registration code and the public identity information in the well-known node list.

6. A hybrid networking method of a multi-level blockchain, applied to a multi-level blockchain system, the system comprising a cloud chain and multiple edge chains, the cloud chain is used to store the transaction process in each edge chain, the edge chain comprises multiple mobile end nodes that trade with each other, the mobile end nodes comprise newly added mobile end nodes and existing mobile end nodes, It is characterized in that include: Generate a new node registration code and a list of well-known nodes according to the edge chain joining request sent by the newly added mobile node; wherein, a node monitoring connection is established between the mobile node and the cloud chain, and the mobile node with a stable connection address is selected as a well-known node and recorded in the well-known node list; Processing the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list; Feedback a well-known node filtering list to the newly added mobile terminal node based on the verification result, so that the newly added mobile terminal node establishes a long connection with the edge chain based on the well-known node filtering list; The hybrid networking method of the multi-level blockchain further includes: receiving a transaction result evidence storage request corresponding to the transaction process from the newly added mobile terminal node, and performing evidence storage processing on the transaction result; Among them, before the newly added mobile terminal node sends the transaction result evidence request corresponding to the transaction process to the cloud chain, it includes: performing smart contract calculation on the transaction result, and based on the smart contract calculation result, reaching a consensus on the transaction result with the original mobile terminal node in the edge chain to obtain a consensus result; packaging and encrypting the consensus result, performing zero-knowledge proof calculation and threshold signature.

7. The hybrid networking method of the multi-level blockchain according to claim 6, It is characterized in that The processing of the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list includes: Determine the type and parameters of the consensus algorithm of the newly added mobile node according to the new node registration code; Determining the type and parameters of the consensus algorithm of the selected well-known node from the public identity information; Verify whether the type and parameters of the consensus algorithm of the selected well-known node match the type and parameters of the consensus algorithm of the newly added mobile terminal node to obtain the verification result.

8. The hybrid networking method of the multi-level blockchain according to claim 6, It is characterized in that Before feeding back the well-known node filtering list to the newly added mobile terminal node based on the verification result, the method includes: Determine whether the well-known nodes in the well-known node filter list meet the consensus requirements of the edge end; the consensus requirements at least include: whether the number of consensus nodes meets a preset threshold.

9. A multi-level blockchain system, It is characterized in that include: One cloud chain and multiple edge chains; The cloud chain is used to generate a new node registration code and a well-known node list according to the edge chain joining request sent by the newly added mobile terminal node; Processing the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list; Based on the verification result, a well-known node filtering list is fed back to the newly added mobile node, so that the newly added mobile node establishes a long connection with the edge chain based on the well-known node filtering list; wherein, a node listening connection is established between the mobile node and the cloud chain, and the mobile node with a stable connection address is selected as a well-known node and recorded in the well-known node list; The edge chain includes a plurality of mobile end nodes that trade with each other; the mobile end nodes include newly added mobile end nodes and existing mobile end nodes; the newly added mobile end node is used to send an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request; initiates a verification request to the cloud chain according to the new node registration code and the public identity information in the well-known node list; establishes a long connection with the edge chain according to the well-known node filtering list fed back by the cloud chain based on the verification result; The newly added mobile terminal node sends a transaction result evidence storage request corresponding to the transaction process to the cloud chain, so that the cloud chain performs evidence storage processing on the transaction result; Among them, before the newly added mobile terminal node sends the transaction result evidence request corresponding to the transaction process to the cloud chain, it also includes: performing smart contract calculation on the transaction result, and based on the smart contract calculation result, reaching a consensus on the transaction result with the original mobile terminal node in the edge chain to obtain a consensus result; packaging and encrypting the consensus result, performing zero-knowledge proof calculation and threshold signature.

10. A hybrid networking device of a multi-level blockchain, applied to a multi-level blockchain system, the system comprising a cloud chain and multiple edge chains, the cloud chain is used to store the transaction process in each edge chain, the edge chain comprises multiple mobile end nodes that trade with each other, the mobile end nodes comprise newly added mobile end nodes and existing mobile end nodes, It is characterized in that include: A joining request sending unit is used to add a mobile node to send an edge chain joining request to the cloud chain, so that the cloud chain generates a new node registration code and a well-known node list according to the edge chain joining request; wherein a node monitoring connection is established between the mobile node and the cloud chain, and the mobile node with a stable connection address is selected as a well-known node and recorded in the well-known node list; A verification request initiating unit, configured to initiate a verification request to the cloud chain based on the new node registration code and public identity information in the well-known node list; A networking unit, configured to add a mobile terminal node to establish a long connection with the edge chain according to a filtering list of well-known nodes fed back by the cloud chain based on the verification result; The hybrid networking method of the multi-level blockchain further includes: sending a transaction result evidence storage request corresponding to the transaction process to the cloud chain, so that the cloud chain performs evidence storage processing on the transaction result; Among them, before sending the transaction result evidence request corresponding to the transaction process to the cloud chain, it includes: performing smart contract calculation on the transaction result, and based on the smart contract calculation result, reaching a consensus on the transaction result with the original mobile terminal node in the edge chain to obtain a consensus result; packaging and encrypting the consensus result, performing zero-knowledge proof calculation and threshold signature.

11. A hybrid networking device of a multi-level blockchain, applied to a multi-level blockchain system, the system comprising a cloud chain and multiple edge chains, the cloud chain is used to store the transaction process in each edge chain, the edge chain comprises multiple mobile end nodes that trade with each other, the mobile end nodes comprise newly added mobile end nodes and existing mobile end nodes, It is characterized in that include: A registration code and list generating unit, used to generate a new node registration code and a well-known node list according to an edge chain joining request sent by a newly added mobile node; wherein a node monitoring connection is established between the mobile node and the cloud chain, and a mobile node with a stable connection address is selected as a well-known node and recorded in the well-known node list; a verification request processing unit, configured to process the verification request initiated by the newly added mobile terminal node according to the new node registration code returned by the newly added mobile terminal node and the public identity information of the well-known node selected by the newly added mobile terminal node from the well-known node list; A filter list feedback unit, configured to feed back a well-known node filter list to the newly added mobile terminal node based on the verification result, so that the newly added mobile terminal node establishes a long connection with the edge chain based on the well-known node filter list; The hybrid networking method of the multi-level blockchain further includes: receiving a transaction result evidence storage request corresponding to the transaction process from the newly added mobile terminal node, and performing evidence storage processing on the transaction result; Among them, before the newly added mobile terminal node sends the transaction result evidence request corresponding to the transaction process to the cloud chain, it includes: performing smart contract calculation on the transaction result, and based on the smart contract calculation result, reaching a consensus on the transaction result with the original mobile terminal node in the edge chain to obtain a consensus result; packaging and encrypting the consensus result, performing zero-knowledge proof calculation and threshold signature.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the hybrid networking method of the multi-level blockchain described in any one of claims 1 to 8 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the hybrid networking method of the multi-level blockchain described in any one of claims 1 to 8 are implemented.

14. A computer program product comprising a computer program or instructions, It is characterized in that When the computer program or instruction is executed by a processor, the steps of the hybrid networking method of the multi-level blockchain described in any one of claims 1 to 8 are implemented.