Data processing method, related nodes and system

By introducing verification nodes and routing nodes into the blockchain system, data interaction and integration between multiple blockchains are realized, which solves the problem that the blockchain system cannot manage business globally and improves business processing performance.

CN110647559BActive Publication Date: 2024-08-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910904835.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-24
Publication Date
2024-08-23
Estimated Expiration
2040-03-24

AI Technical Summary

Technical Problem

Information cannot be exchanged directly between different blockchains, resulting in the blockchain system being unable to globally manage all businesses of a person or enterprise, affecting business processing performance.

Method used

Introduce verification nodes to manage data on multiple blockchains, send business query requests to routing nodes through verification nodes, routing nodes send requests to multiple consensus networks, query and integrate the transaction data of target users, and verification nodes will merge the Data is processed and managed.

Benefits of technology

It realizes the global data management of target users by the blockchain system, improves business processing performance, and meets the actual needs of business processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110647559B
    Figure CN110647559B
Patent Text Reader

Abstract

The embodiment of the present invention provides a data processing method, node and system, wherein the method includes: the verification node sends a business query request to the routing node, the business query request is used to request to query the transaction data of the target user; the verification node receives the transaction data of the target user sent by the routing node and returned from at least one first consensus network, wherein the transaction data of the target user returned by each first consensus network is correspondingly stored in the blockchain generated by each first consensus network, and the first consensus network is any one of the multiple consensus networks; the verification node merges the transaction data of the target user returned by the at least one first consensus network to obtain merged transaction data. It can be seen that by implementing this application, the performance of multi-chain processing services in the blockchain system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a data processing method, related nodes and a system. Background Art

[0002] Blockchain can be divided into two types: public chain and consortium chain. In the public chain, any node can join the consensus system. However, in actual applications, there are many scenarios where sensitive data is uploaded to the chain (such as financial data, identity data, invoice data, etc.), so consortium chains with routing nodes that isolate the consensus network from other nodes have emerged. The application scenarios of consortium chains tend to be more inclined to businesses with larger data volumes, more frequent data flows and requests. In order to meet the specific usage requirements of consortium chains, multi-chains (i.e., multiple blockchains) are introduced. The multi-chain approach effectively provides scalability of blockchain data and performance, allowing different businesses requested by the same person or enterprise to be executed in parallel, while ensuring the consistency and security of business data.

[0003] However, at present, different blockchains cannot directly exchange information, resulting in the blockchain system being unable to globally manage all the business of a person or a company, unable to meet the actual needs of business processing, resulting in business processing failures and affecting business processing performance. Summary of the invention

[0004] The embodiments of the present invention disclose a data processing method, related nodes and systems, which introduce verification nodes into a blockchain system to manage data of multiple blockchains, and can solve the problems existing in the prior art that the actual needs of business processing cannot be met and the business processing performance is affected, thereby facilitating the improvement of the performance of the blockchain system in processing business.

[0005] In a first aspect, an embodiment of the present invention provides a data processing method, which is applied to a blockchain system, wherein the blockchain system includes a verification node, a routing node and multiple consensus networks, and the routing node communicates with the verification node and the multiple consensus networks respectively. The method includes: the verification node sends a business query request to the routing node, and the business query request is used to request to query the transaction data of the target user; the verification node receives the transaction data of the target user returned from at least one first consensus network sent by the routing node, wherein the transaction data of the target user returned by each first consensus network is correspondingly stored in the blockchain generated by each first consensus network, and the first consensus network is any one of the multiple consensus networks; the verification node merges the transaction data of the target user returned by at least one first consensus network to obtain merged transaction data.

[0006] In this technical solution, the verification node receives the transaction data of the target user returned by at least one first consensus network and sent by the routing node, and merges the transaction data of the target user. This can meet the actual needs of blockchain system business processing and improve business processing performance.

[0007] In one implementation, before the verification node sends a service query request to the routing node, the verification node obtains a network configuration instruction, which carries the identifiers of multiple consensus networks supported and managed by the verification node; in response to the network configuration instruction, the identifiers of the multiple consensus networks are registered to the verification node to perform service processing for a target consensus network among the multiple consensus networks.

[0008] In one implementation, the verification node sends a business processing request to the routing node, and the business processing request carries the identifier of the second consensus network, which is used to request the second consensus network to process the business processing request to generate a new business block. After the second consensus network reaches a consensus, the new business block is added to the target blockchain corresponding to the second consensus network.

[0009] In a second aspect, an embodiment of the present invention provides a data processing method, which is applied to a blockchain system, wherein the blockchain system includes a verification node, a routing node and multiple consensus networks, and the routing node communicates with the verification node and the multiple consensus networks respectively. The method includes: the routing node receives a business query request sent by the verification node, and the business query request is used to query the transaction data of a target user; the routing node sends the business query request to multiple consensus networks to query the transaction data of the target user from the multiple consensus networks respectively; the routing node receives the transaction data of the target user returned by at least one first consensus network, and the first consensus network is any one of the multiple consensus networks.

[0010] In this technical solution, the routing node receives the business query request sent by the verification node, and then sends the business query request to multiple consensus networks, respectively querying the transaction data of the target user from multiple consensus networks. Therefore, the blockchain system can globally manage all the businesses of the target user.

[0011] In one implementation, the routing node forwards the transaction data of the target user returned by at least one first consensus network to the verification node for data fusion in the verification node; or, the routing node fuses the transaction data of the target user returned by at least one first consensus network to obtain fused transaction data, and forwards the fused transaction data to the verification node.

[0012] In one implementation, the routing node stores network node information, which is used to indicate address information of data nodes included in each consensus network in multiple consensus networks, and the business query request carries identifiers of multiple consensus networks; the routing node sends the business query request to the multiple consensus networks, including: the routing node queries the address information of data nodes included in each consensus network in the multiple consensus networks from the network node information according to the identifiers of the multiple consensus networks; and sends the business query request to the data nodes of each consensus network in the multiple consensus networks for processing according to the address information of the data nodes included in each consensus network.

[0013] In one implementation, the routing node receives a business processing request sent by the verification node, and the business processing request carries the identifier of the second consensus network; the routing node forwards the business processing request to the second consensus network corresponding to the identifier of the second consensus network, so as to generate a new business block by processing the business processing request in the second consensus network, and add the new business block to the target blockchain corresponding to the second consensus network after consensus is reached in the second consensus network.

[0014] In a third aspect, the present invention provides a verification node, which includes a functional device, such as a module or a unit, for executing the method described in the first aspect or any possible implementation of the first aspect.

[0015] In a fourth aspect, the present invention provides a routing node, which includes a functional device, such as a module or a unit, for executing the method described in the second aspect or any possible implementation of the second aspect.

[0016] In a fifth aspect, an embodiment of the present invention provides a verification node, which includes a memory, a processor, an input device, and an output device. The memory stores a set of program codes, and the processor calls the program code stored in the memory to execute the method described in the first aspect or any possible implementation of the first aspect.

[0017] In the sixth aspect, an embodiment of the present invention provides a routing node, which includes a memory, a processor, an input device, and an output device. The memory stores a set of program codes, and the processor calls the program code stored in the memory to execute the method described in the second aspect or any possible implementation of the second aspect.

[0018] In the seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the method described in the first aspect or any possible implementation of the first aspect.

[0019] In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the method described in the second aspect or any possible implementation of the second aspect.

[0020] In a ninth aspect, a blockchain system is provided, the system comprising a verification node, a routing node, and a plurality of consensus networks, wherein:

[0021] Verification node, used to send business query requests to routing nodes;

[0022] Routing nodes are used to receive business query requests and send business query requests to multiple consensus networks;

[0023] Multiple consensus networks are used to receive business query requests sent by routing nodes, respond to the business query requests, query the transaction data of target users; and return the queried transaction data of target users to the routing nodes;

[0024] The routing node is further used to receive the transaction data of the target user returned by at least one first consensus network and forward it to the verification node; wherein the transaction data of the target user returned by each first consensus network is correspondingly stored in the blockchain generated by each first consensus network, and the first consensus network is any one of the multiple consensus networks;

[0025] The verification node is further used to merge the transaction data of the target user returned by at least one first consensus network to obtain merged transaction data.

[0026] For the contents not shown or described in the present invention, please refer to the relevant introduction in the method embodiment described in the first aspect above, and no further details will be given here.

[0027] In an embodiment of the present invention, the verification node sends a business query request to the routing node, and the business query request is used to request to query the transaction data of the target user. The routing node receives the business query request, and then sends it to multiple consensus networks, and queries the transaction data of the target user from the multiple consensus networks respectively. Therefore, the blockchain system can globally manage all the businesses of the target user. The verification node receives the transaction data of the target user sent by the routing node and returned from at least one first consensus network, and merges the transaction data of the target user. It can meet the actual needs of the business processing of the blockchain system and improve the business processing performance. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0029] Figure 1 It is a schematic diagram of a blockchain system architecture provided by an embodiment of the present invention;

[0030] Figure 2 It is a flowchart of a data processing method provided by an embodiment of the present invention;

[0031] Figure 3 is a flow chart of another data processing method provided by an embodiment of the present invention;

[0032] Figure 4 It is an operation schematic diagram of a consensus network configuration provided by an embodiment of the present invention;

[0033] Figure 5 is a flow chart of another data processing method provided by an embodiment of the present invention;

[0034] Figure 6 is a structural schematic diagram of a data processing device provided by an embodiment of the present invention;

[0035] Figure 7 is a structural schematic diagram of another data processing device provided by an embodiment of the present invention;

[0036] Figure 8 is a schematic diagram of the structure of a verification node provided by an embodiment of the present invention;

[0037] Fig. 9 It is a structural diagram of a routing node provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0039] In order to solve the problems existing in the prior art, the embodiments of the present invention introduce verification nodes in the blockchain system, which can globally manage multiple chains to realize data processing in multiple chains. Among them, the verification node can be a light node, for example, it can be a simplified payment verification SPV (SPV) node. Based on this, the present invention proposes a data processing method, related nodes and systems applicable to the method. Please refer to Figure 1 , Figure 1 This is a schematic diagram of the architecture of a blockchain system provided by an embodiment of the present invention. The blockchain system is deployed using a three-layer network framework, namely: business layer, routing proxy layer and consensus network layer. Among them, the business nodes in the business layer are deployed in the public network, while the consensus nodes running the blockchain consensus protocol in the consensus network layer are deployed in the private network. The routing proxy layer isolates the business layer and the consensus network layer so that they cannot directly interact with each other, but interact with each other through the routing nodes in the proxy layer, thereby ensuring the security of the data in the consensus network layer.

[0040] like Figure 1 As shown, the blockchain system may include a verification node 100, a routing node 200 and a consensus network 300. Among them, the verification node 100 is deployed in the business layer. The routing node 200 is deployed in the routing proxy layer. The consensus network layer may include multiple consensus networks 300, and each consensus network 300 generates a corresponding blockchain. Each consensus network 300 may include multiple consensus nodes and data nodes. The consensus node supports business processing in the blockchain system and generates corresponding blocks. After multiple consensus nodes in the consensus network reach a consensus, the block is added to the blockchain corresponding to the consensus network, which is referred to as chaining. Each consensus node can store a complete blockchain or part of the blocks of the blockchain. The data node supports data access. Specifically, the data node can access the blockchain corresponding to the consensus network to query the corresponding data from the blockchain.

[0041] Among them, the verification node 100 and the consensus node may specifically include but are not limited to computers, tablet computers, mobile terminals and other terminal devices with communication, storage and computing functions when actually deployed; the routing node 200 may specifically include but are not limited to routers, switches and other network devices with the function of connecting multiple networks or network segments when actually deployed.

[0042] The data processing method provided by the embodiment of the present invention is further introduced below.

[0043] See also Figure 2 , Figure 2 is a flow chart of a data processing method provided by an embodiment of the present invention. The method is applied to the above Figure 1 In the blockchain system shown in Figure 2 The method shown includes the following steps S201-S206:

[0044] Step S201: the verification node 100 sends a service query request to the routing node 200, where the service query request is used to request to query the transaction data of the target user. Accordingly, the routing node 200 receives the service query request sent by the verification node 100.

[0045] The verification node 100 of the present invention can obtain a business query request, and then send the business query request to the routing node 200. Among them, the business query request may come from other devices (such as servers, etc.), or it may be generated by the verification node 100 in response to the query operation of the target user. The query operation may specifically be, for example, the operation performed by the target user on the blockchain client software installed on the verification node 100, thereby initiating a corresponding business query request. It may also be a business query request initiated by the target user by operating the connection entrance of the web version of the blockchain. Among them, the type of business query request is not limited, for example, it may be an invoice query request, a copyright query request, and a product traceability query request. When the type of business query request is different, the transaction data of the target user requested to be queried by the business query request is also different.

[0046] For example, if the business query request is an invoice query request, the invoice query request can be used to specifically request to query the invoicing information of the target user. If the business query request is a product traceability query request, the invoice query request can be used to specifically request to query the logistics information of the target user's product. If the business query request is a copyright query request, the invoice query request can be used to specifically request to query the copyright ownership information of the target user.

[0047] The service query request of the present invention may carry the identifier of the target user, and may also carry other customized information, such as the address information of the verification node 100. Taking the address information of the verification node 100 as an example, the verification node 100 may sign the service query request to carry the address information of the verification node 100 in the service query request, and then send the service query request carrying the address information of the verification node 100 to the routing node 200. The address information of the verification node 100 may include an Internet protocol address (IP), a media access control address (MAC), and the like.

[0048] Accordingly, the routing node 200 receives the business query request sent by the verification node 100. The routing node 200 may further perform security verification on the address information of the verification node 100 to determine whether the verification node 100 is a legitimate node. If the verification fails, the routing node 200 rejects the business query request and returns a query failure instruction to the verification node 100, which is used to notify the routing node that the verification of the address information of the verification node 100 has failed; or notify that the business query request has failed, and the transaction data of the target user has not been queried, etc. If the verification passes, continue to execute step S202.

[0049] Optionally, before the verification node 100 sends a service query request to the routing node 200, the verification node 100 obtains a network configuration instruction, which carries the identifiers of multiple consensus networks that the verification node 100 supports and manages, wherein the identifier of the consensus network is used to distinguish the consensus network, which may specifically be the number, identity (identify, ID) of the consensus network, etc. The network configuration instruction may come from other devices (such as servers, mobile phones, etc.), or may be generated by the SPV node after detecting the user's network configuration operation, and the network configuration operation is specifically a configuration operation performed by the user to determine whether the SPV node has the authority to manage one or more consensus networks. For example, see Figure 3 A schematic diagram of the operation of a consensus network configuration is shown. As shown in the figure, the blockchain system includes multiple consensus networks, and the consensus networks that the user chooses to configure support management for the verification node include consensus network 1, consensus network 2, and consensus network 3.

[0050] Step S202: The routing node 200 sends the business query request to the multiple consensus networks 300. Accordingly, the multiple consensus networks 300 receive the business query request.

[0051] In one embodiment, routing node 200 may broadcast the business query request to each data node of the consensus network in the consensus network layer, so that the data node executes step 203.

[0052] In another embodiment, the business query request carries the identifiers of multiple consensus networks, and further, the routing node 200 stores network node information, which corresponds to the identifier of the consensus network and is used to indicate the address information of the data nodes included in each consensus network. The address information of the data node may include an IP address, a Mac address, etc.

[0053] Therefore, the routing node 200 can determine the consensus network storing the target user's transaction data according to the consensus network identifier, and then find the network node information corresponding to the consensus network identifier, and query the address information of the data node included in the consensus network from the network node information. According to the address information of the data node included in the consensus network, the routing node 200 sends the business query request to the corresponding data node in the consensus network, so that the data node executes step 203.

[0054] Step S203: Multiple consensus networks 300 respond to the business query request and query the transaction data of the target user.

[0055] The data node of each consensus network in the plurality of consensus networks 300 receives the business query request, responds to the business query request, and queries the transaction data of the target user from the blockchain corresponding to the consensus network 300. For example Figure 1 As shown, after receiving the business query request, the data node in the consensus network 2 can respond to the business query request and query the transaction data of the target user from the blockchain 2 generated by the consensus network 2.

[0056] Step S204: If at least one first consensus network queries the transaction data of the target user, the at least one first consensus network returns the queried transaction data of the target user to the routing node 200. The at least one first consensus network is any one of the multiple consensus networks 300. Accordingly, the routing node 200 receives the transaction data of the target user returned by the at least one first consensus network.

[0057] In actual applications, the blockchains corresponding to the multiple consensus networks 300 may store the transaction data of the target user, or may not store the transaction data of the target user. The present invention refers to the consensus network corresponding to the transaction data of the target user as the first consensus network, and the number of the first consensus networks is not limited, and the number can be one or more.

[0058] Accordingly, at least one consensus network responds to the business query request, and after querying the transaction data of the target user, the queried transaction data of the target user can be returned to the routing node 200.

[0059] Step S205: the routing node 200 forwards the transaction data of the target user returned by at least one first consensus network to the verification node 100. Accordingly, the verification node 100 receives the transaction data of the target user returned by at least one first consensus network and returns it to the verification node 100.

[0060] After receiving the transaction data of the target user returned by at least one first consensus network, the routing node 200 returns the transaction data of the target user returned by the at least one first consensus network to the verification node 100 according to the address information of the verification node 100 .

[0061] Step S206: The verification node 100 integrates the transaction data of the target user returned by at least one first consensus network to obtain integrated transaction data.

[0062] The verification node 100 receives the transaction data of the target user returned by at least one first consensus network from the routing node 200. Then, the transaction data is fused. The fusion method may be to obtain the fused transaction data by aggregating the transaction data of the target user, such as performing arithmetic operations such as summation and product. Alternatively, the transaction data of the target user may be classified, screened, sorted, etc. to obtain the fused transaction data. After the verification node 100 obtains the fused transaction data, it may be used by the verification node 100, for example, displayed on the display screen of the verification node 100 for the user to view.

[0063] See also Figure 4 , Figure 4 is a flow chart of a data processing method provided by an embodiment of the present invention. The method is applied to the above Figure 1 In the blockchain system shown in Figure 4 The method shown includes the following steps S401-S406:

[0064] Step S401: the verification node 100 sends a service query request to the routing node 200, where the service query request is used to request to query the transaction data of the target user. Accordingly, the routing node 200 receives the service query request sent by the verification node 100.

[0065] Step S402: The routing node 200 sends the business query request to the multiple consensus networks 300. Accordingly, the multiple consensus networks 300 receive the business query request.

[0066] Step S403: Multiple consensus networks 300 respond to the business query request and query the transaction data of the target user.

[0067] Step S404: If at least one first consensus network queries the transaction data of the target user, the at least one first consensus network returns the queried transaction data of the target user to the routing node 200. The at least one first consensus network is any one of the multiple consensus networks 300. Accordingly, the routing node 200 receives the transaction data of the target user returned by the at least one first consensus network.

[0068] For details about step S404-step S404, please refer to Figure 2The method.

[0069] S405: The routing node 200 integrates the transaction data of the target user returned by at least one first consensus network to obtain integrated transaction data.

[0070] After receiving the transaction data of the target user returned by the data node, the routing node 200 temporarily stores the transaction data of the target user in the cache of the routing node 100. After receiving the transaction data of the target user returned by all the data nodes of the first consensus network, the routing node 200 fuses the transaction data of the target user to obtain the fused transaction data. Finally, the routing node 200 forwards the fused transaction data to the verification node 100 according to the address information of the verification node 100. Among them, the fusion method can be to obtain the fused transaction data by aggregating the transaction data of the target user, such as performing four arithmetic operations such as summation and product. It can also be to classify, filter, sort, etc. the transaction data of the target user to obtain the fused transaction data.

[0071] Step S406: The routing node forwards the fused transaction data to the verification node 100. Accordingly, the verification node 100 receives the fused transaction data.

[0072] The verification node 100 receives the fused transaction data from the routing node 200 for use by the verification node 100, for example, displayed on a display screen of the verification node 100 for user reference.

[0073] To help better understand the embodiments of the present invention, the following is a detailed description of the business query request for invoice query. Assuming that the target user is an individual user Mr. A, there are three consensus networks that store Mr. A's invoice information. Consensus networks can be divided according to business types. For example, the blockchain that processes catering invoice information corresponds to consensus network 1, the blockchain that processes hotel accommodation invoice information corresponds to consensus network 2, and the blockchain that processes transportation invoice information corresponds to consensus network 3.

[0074] First, the target user Mr. A initiates an invoice query request on the verification node 100, which carries Mr. A's user information and the address information of the verification node 100. Further, the verification node 100 obtains a network configuration instruction, which carries the identifiers of multiple consensus networks supported and managed by the verification node 100, namely, the identifiers of consensus network 1, consensus network 2, and consensus network 3. Mr. A chooses to configure the consensus network that the verification node 100 supports and manages.

[0075] Further, the verification node 100 sends an invoice query request to the routing node 200. Accordingly, the routing node 200 receives the invoice query request sent by the verification node 100. The routing node 200 can determine the identifiers of the consensus network 1, consensus network 2, and consensus network 3 that store the transaction data of the target user according to the identifier of the consensus network. Then, the network node information corresponding to the identifier of the consensus network is found, and the address information of the data node included in the identifiers of the consensus network 1, consensus network 2, and consensus network 3 is queried from the network node information. The routing node 200 sends the invoice query request to the data node corresponding to the identifiers of the consensus network 1, consensus network 2, and consensus network 3.

[0076] Furthermore, consensus network 1, consensus network 2, and consensus network 3 receive the invoice query request, respond to the invoice query request, and query Mr. A's invoicing information from the blockchains corresponding to consensus network 1, consensus network 2, and consensus network 3 according to Mr. A's user information. After any one of consensus network 1, consensus network 2, and consensus network 3 queries Mr. A's invoicing information, it can return Mr. A's invoicing information to routing node 200. Routing node 200 returns Mr. A's invoicing information to verification node 100 based on the address information of verification node 100. Verification node 100 receives the returned invoicing information of Mr. A. Then, the invoicing information is summed to obtain the total amount of Mr. A's invoices in all businesses.

[0077] See also Figure 5 , Figure 5 is a flow chart of another data processing method provided by an embodiment of the present invention, the method is applied to the above Figure 1 In the blockchain system shown in Figure 4 The method shown includes the following steps S401-S403:

[0078] Step 501: The verification node 100 sends a business processing request to the routing node 200. Correspondingly, the routing node 200 receives the business processing request from the verification node 100, and the business processing request carries the identifier of the second consensus network.

[0079] Specifically, the business type corresponding to the business processing request is not limited, and may include but is not limited to invoicing, commodity logistics tracking, copyright registration and other types. Furthermore, the identifier of the second consensus network can be determined according to the type of business processing request, or it can be customized by the system. For example, taking invoicing as an example, consensus network 1 can correspond to the business of invoicing in Chongqing, consensus network 1 can correspond to the business of invoicing in Beijing, and consensus network 1 can correspond to the business of invoicing in Shanghai.

[0080] Step S502: the routing node 200 forwards the business processing request to the second consensus network corresponding to the identifier of the second consensus network.

[0081] Specifically, the business processing request carries the identifier of the second consensus network. Further, the routing node 200 stores network node information, which corresponds to the identifier of the second consensus network and represents the address information of the consensus nodes included in each second consensus network. The address information of the consensus node may include an IP address, a Mac address, etc.

[0082] The network node information records the information of multiple consensus networks supported by the routing node and all nodes included in each consensus network, such as the identification of multiple consensus nodes, the address information of multiple consensus nodes, the identification of data nodes, and the address information of data nodes. In other words, the network node information indicates the respective information of the consensus nodes and data nodes included in each consensus network, such as address information.

[0083] Therefore, the routing node 200 can query the network node information corresponding to the identifier of the second consensus network according to the identifier of the second consensus network, and query the address information of the consensus node included in the second consensus network from the network node information. According to the address information of the consensus node included in the second consensus network, the routing node sends the business processing request to the consensus node of the second consensus network for processing.

[0084] Specifically, the routing node 200 selects a target node in the second consensus network according to the load balancing algorithm, and sends the service processing request to the target node in the second consensus network for processing. The load balancing algorithm is not limited, for example, it can be based on the size of the service load of each consensus node, select the consensus node with the smallest service load as the target node; it can also be based on the communication distance between the routing node and the consensus node, select the consensus node with the shortest distance as the target node, or randomly select a consensus node as the target node, etc.

[0085] Step S503: The second consensus network processes the business processing request to generate a new business block, and after the second consensus network reaches a consensus, the new business block is added to the target blockchain corresponding to the second consensus network.

[0086] After receiving the business processing request, the target node in the second consensus network processes the business processing request and generates a new business block. After the new business block reaches consensus through the consensus mechanism in the second consensus network, the target node adds the new business block to the target blockchain corresponding to the second consensus network to realize the new business data on the chain. Among them, the consensus mechanism can adopt any one of the consensus mechanisms such as POW (Proof of Work), POS (Proof of Stake), POI (Proof of Importance), POP (Proof of Participation), PBFT (Practical Byzantine Fault Tolerance) and so on.

[0087] In an embodiment of the present invention, the verification node sends a business query request to the routing node, and the business query request is used to request to query the transaction data of the target user. The routing node receives the business query request, and then sends it to multiple consensus networks, and queries the transaction data of the target user from the multiple consensus networks respectively. Therefore, the blockchain system can globally manage all the businesses of the target user. The verification node receives the transaction data of the target user sent by the routing node and returned from at least one first consensus network, and merges the transaction data of the target user. It can meet the actual needs of the business processing of the blockchain system and improve the business processing performance.

[0088] See also Figure 6 , Figure 6 is a schematic diagram of a data processing device provided by an embodiment of the present invention, wherein the data processing device may be a verification node for executing Figure 2-Figure 4 In any of the method embodiments shown, the method steps described with the verification node as the execution subject, the node device 60 may include a sending unit 601, a receiving unit 602 and a fusion unit 603. Among them: The sending unit 601 is used to send a service query request to the routing node, and the service query request is used to request to query the transaction data of the target user.

[0089] Receiving unit 602: used to receive transaction data of a target user returned by at least one first consensus network and sent by a routing node, wherein the transaction data of the target user returned by each first consensus network is correspondingly stored in a blockchain generated by each first consensus network, and the first consensus network is any one of the multiple consensus networks;

[0090] Fusion unit 603: used to fuse the transaction data of the target user returned by at least one first consensus network to obtain fused transaction data.

[0091] In one implementation, the verification node 60 may further include a configuration unit 604, which is specifically configured to:

[0092] Obtain network configuration instructions, which carry the identifiers of multiple consensus networks that the verification node supports and manages;

[0093] In response to the network configuration instruction, the identifiers of the multiple consensus networks are registered to the verification node to perform business processing for a target consensus network among the multiple consensus networks.

[0094] In another embodiment, the sending module 601 may also be used for:

[0095] A business processing request is sent to the routing node, and the business processing request carries the identifier of the second consensus network, which is used to request the second consensus network to process the business processing request to generate a new business block. After the second consensus network reaches a consensus, the new business block is added to the target blockchain corresponding to the second consensus network.

[0096] See also Figure 7 , Figure 7 is a schematic diagram of the structure of another data processing device provided by an embodiment of the present invention, the data processing device may be a routing node for executing Figure 2-Figure 4 In any of the method embodiments shown, the method steps described with the routing node as the execution subject, the device 70 includes a first receiving unit 701, a first sending unit 702 and a second receiving unit 703, which may include:

[0097] The first receiving unit 701 is used to receive a business query request sent by a verification node, where the business query request is used to query transaction data of a target user;

[0098] The first sending unit 702 is used to send the business query request to multiple consensus networks to query the transaction data of the target user from the multiple consensus networks respectively;

[0099] The second receiving unit 703 receives transaction data of a target user returned by at least one first consensus network, where the first consensus network is any one of the multiple consensus networks.

[0100] In one implementation, the routing node 70 may further include a second sending unit 704, specifically configured to:

[0101] forwarding the transaction data of the target user returned by at least one first consensus network to a verification node to perform data fusion in the verification node; or,

[0102] The transaction data of the target user returned by at least one first consensus network are integrated to obtain integrated transaction data, and the integrated transaction data is forwarded to the verification node.

[0103] In another embodiment, the routing node stores network node information, where the network node information is used to indicate address information of data nodes included in each consensus network in the multiple consensus networks, and the business query request carries identifiers of the multiple consensus networks; when sending the business query request to the multiple consensus networks, the first sending unit 702 is specifically used to:

[0104] According to the identifiers of the multiple consensus networks, query the address information of the data nodes included in each consensus network in the multiple consensus networks from the network node information;

[0105] According to the address information of the data nodes included in each consensus network, the business query request is sent to the data nodes of each consensus network in the multiple consensus networks for processing.

[0106] In another embodiment, the first receiving unit 701 is specifically configured to:

[0107] Receive a business processing request sent by a verification node, where the business processing request carries an identifier of the second consensus network;

[0108] The business processing request is forwarded to the second consensus network corresponding to the identifier of the second consensus network, so as to generate a new business block by processing the business processing request in the second consensus network, and the new business block is added to the target blockchain corresponding to the second consensus network after consensus is reached in the second consensus network.

[0109] According to another embodiment of the present invention, Figure 6 to Figure 7 The various units in the data processing device shown can be separately or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple smaller units in function to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present invention, the device based on the data processing method can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0110] In an embodiment of the present invention, the verification node sends a business query request to the routing node, and the business query request is used to request to query the transaction data of the target user. The routing node receives the business query request, and then sends it to multiple consensus networks, and queries the transaction data of the target user from the multiple consensus networks respectively. Therefore, the blockchain system can globally manage all the businesses of the target user. The verification node receives the transaction data of the target user sent by the routing node and returned from at least one first consensus network, and merges the transaction data of the target user. It can meet the actual needs of the business processing of the blockchain system and improve the business processing performance.

[0111] Based on the description of the above method embodiment and device embodiment, the present invention also provides a structural diagram of a verification node. Figure 8 The verification node 80 (specifically, a terminal device 80) at least includes a processor 801, an input device 802, an output device 803, and a computer storage medium 804. The processor 801, the input device 802, the output device 803, and the computer storage medium 804 in the verification node may be connected via a bus or other means.

[0112] The computer storage medium 804 may be stored in the memory of the verification node, the computer storage medium 804 is used to store a computer program, the computer program includes program instructions, and the processor 801 is used to execute the program instructions stored in the computer storage medium 804. The processor 801 (or CPU (Central Processing Unit)) is the computing core and control core of the verification node, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; in one embodiment, the processor 801 described in the embodiment of the present invention can be used to perform a series of data processing on the change data, including: sending a business query request to the routing node, the business query request is used to request to query the transaction data of the target user; receiving the transaction data of the target user returned from at least one first consensus network sent by the routing node, wherein the transaction data of the target user returned by each first consensus network is correspondingly stored in the blockchain generated by each first consensus network, and the first consensus network is any one of the multiple consensus networks; the transaction data of the target user returned from at least one first consensus network is merged to obtain merged transaction data, and so on.

[0113] The embodiment of the present invention also provides a computer storage medium (Memory), which is a memory terminal device in the verification node for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium in the verification node and the extended storage medium supported by the verification node. The computer storage medium provides a storage space, which stores the operating system of the verification node. In addition, one or more instructions suitable for being loaded and executed by the processor 801 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory, such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.

[0114] In one embodiment, the processor 801 may load and execute one or more instructions stored in a computer storage medium to implement the corresponding steps of the method in the above data processing method embodiment; in a specific implementation, the processor 801 loads one or more instructions in a computer storage medium and executes the following steps:

[0115] Sending a business query request to the routing node, where the business query request is used to request to query the transaction data of the target user;

[0116] Receive transaction data of a target user returned from at least one first consensus network sent by a routing node, wherein the transaction data of the target user returned by each first consensus network is correspondingly stored in a blockchain generated by each first consensus network, and the first consensus network is any one of the multiple consensus networks;

[0117] The transaction data of the target user returned by at least one first consensus network is integrated to obtain integrated transaction data.

[0118] In one implementation, before the verification node sends a service query request to the routing node, the one or more instructions are loaded and specifically executed by the processor 801:

[0119] Obtain network configuration instructions, which carry the identifiers of multiple consensus networks that the verification node supports and manages;

[0120] In response to the network configuration instruction, the identifiers of the multiple consensus networks are registered to the verification node to perform business processing for a target consensus network among the multiple consensus networks.

[0121] In another implementation manner, the one or more instructions are loaded and specifically executed by the processor 801:

[0122] A business processing request is sent to the routing node, and the business processing request carries the identifier of the second consensus network, which is used to request the second consensus network to process the business processing request to generate a new business block. After the second consensus network reaches a consensus, the new business block is added to the target blockchain corresponding to the second consensus network.

[0123] Based on the description of the above method embodiment and device embodiment, the present invention also provides a schematic diagram of the structure of a routing node. Fig. 9 The routing node 90 (specifically, the terminal device 80) includes at least a processor 901, an input device 902, an output device 903, and a computer storage medium 904. The processor 901, the input device 902, the output device 903, and the computer storage medium 904 in the routing node may be connected via a bus or other means.

[0124] The computer storage medium 904 may be stored in the memory of the routing node, the computer storage medium 904 is used to store a computer program, the computer program includes program instructions, and the processor 901 is used to execute the program instructions stored in the computer storage medium 904. The processor 901 (or CPU (Central Processing Unit)) is the computing core and control core of the routing node, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; in one embodiment, the processor 901 described in the embodiment of the present invention can be used to perform a series of data processing on the change data, including: receiving a business query request sent by a verification node, the business query request is used to query the transaction data of the target user; sending the business query request to multiple consensus networks to query the transaction data of the target user from the multiple consensus networks respectively; receiving the transaction data of the target user returned by at least one first consensus network, the first consensus network is any one of the multiple consensus networks, and so on.

[0125] The embodiment of the present invention also provides a computer storage medium (Memory), which is a memory terminal device in a routing node for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium in the routing node and the extended storage medium supported by the routing node. The computer storage medium provides a storage space, which stores the operating system of the routing node. In addition, one or more instructions suitable for being loaded and executed by the processor 901 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.

[0126] In one embodiment, the processor 901 may load and execute one or more instructions stored in a computer storage medium to implement the corresponding steps of the method in the above data processing method embodiment; in a specific implementation, the processor 901 loads one or more instructions in a computer storage medium and executes the following steps:

[0127] Receive a business query request sent by a verification node, where the business query request is used to query the transaction data of a target user;

[0128] Sending the business query request to multiple consensus networks to query the transaction data of the target user from the multiple consensus networks respectively;

[0129] Receive transaction data of a target user returned by at least one first consensus network, where the first consensus network is any one of the multiple consensus networks.

[0130] In one embodiment, the one or more instructions are loaded and specifically executed by the processor 901:

[0131] forwarding the transaction data of the target user returned by at least one first consensus network to a verification node to perform data fusion in the verification node; or,

[0132] The transaction data of the target user returned by at least one first consensus network are integrated to obtain integrated transaction data, and the integrated transaction data is forwarded to the verification node.

[0133] In another embodiment, the routing node stores network node information, which is used to indicate address information of data nodes included in each consensus network in the multiple consensus networks, and the business query request carries identifiers of the multiple consensus networks; when the business query request is sent to the multiple consensus networks, the one or more instructions are loaded and specifically executed by the processor 901:

[0134] According to the identifiers of the multiple consensus networks, query the address information of the data nodes included in each consensus network in the multiple consensus networks from the network node information;

[0135] According to the address information of the data nodes included in each consensus network, the business query request is sent to the data nodes of each consensus network in the multiple consensus networks for processing.

[0136] In another embodiment, the one or more instructions are loaded and specifically executed by the processor 901:

[0137] Receive a business processing request sent by a verification node, where the business processing request carries an identifier of the second consensus network;

[0138] The business processing request is forwarded to the second consensus network corresponding to the identifier of the second consensus network, so as to generate a new business block by processing the business processing request in the second consensus network, and the new business block is added to the target blockchain corresponding to the second consensus network after consensus is reached in the second consensus network.

[0139] The present invention also discloses a blockchain system, which includes a verification node, a routing node and a consensus network. The SPV node can be used to execute the above Figure 2 and Figure 5 Any steps or technical contents described in the above with the verification node as the execution subject may be as follows Figure 8 The SPV node shown. The routing node can be used to perform the above Figure 2 and Figure 5 Any steps or technical contents described in the above with the routing node as the execution subject may be specifically as follows Fig. 9 The consensus network can be used to perform the above Figure 2 and Figure 5 Any steps or technical contents described in the consensus network as the execution subject.

[0140] In an embodiment of the present invention, the verification node sends a business query request to the routing node, and the business query request is used to request to query the transaction data of the target user. The routing node receives the business query request, and then sends it to multiple consensus networks, and queries the transaction data of the target user from the multiple consensus networks respectively. Therefore, the blockchain system can globally manage all the businesses of the target user. The verification node receives the transaction data of the target user sent by the routing node and returned from at least one first consensus network, and merges the transaction data of the target user. It can meet the actual needs of the business processing of the blockchain system and improve the business processing performance.

[0141] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A data processing method, characterized in that: Applied to a blockchain system, the blockchain system includes a verification node, a routing node, and a plurality of consensus networks, the routing node communicates with the verification node and the plurality of consensus networks respectively, the method includes: The verification node obtains a network configuration instruction, where the network configuration instruction carries identifiers of multiple consensus networks supported and managed by the verification node; In response to the network configuration instruction, registering the identifiers of the multiple consensus networks to the verification node to perform business processing for a target consensus network among the multiple consensus networks; The verification node sends a business query request to the routing node, where the business query request is used to request to query transaction data of target users corresponding to different business types in the multiple consensus networks; The verification node receives the transaction data of the target user returned by the routing node from at least one first consensus network, wherein the transaction data of the target user returned by each first consensus network is correspondingly stored in the blockchain generated by each first consensus network, and the first consensus network is any one of the multiple consensus networks; The verification node merges the transaction data of the target user returned by the at least one first consensus network to obtain merged transaction data; The method further comprises: The verification node sends a business processing request to the routing node, so that the routing node selects a target node in the second consensus network according to the load balancing algorithm to process the business processing request. The business processing request carries the identifier of the second consensus network, which is used to request the use of the second consensus network to process the business processing request to generate a new business block. After the second consensus network reaches a consensus, the new business block is added to the target blockchain corresponding to the second consensus network.

2. A data processing method, characterized in that: Applied to a blockchain system, the blockchain system includes a verification node, a routing node, and a plurality of consensus networks, the routing node communicates with the verification node and the plurality of consensus networks respectively, the method includes: The routing node receives a business query request sent by the verification node, where the business query request is used to request to query transaction data of target users corresponding to different business types in the multiple consensus networks; The routing node sends the business query request to the multiple consensus networks to query the transaction data of the target user from the multiple consensus networks respectively; The routing node receives the transaction data of the target user returned by at least one first consensus network, where the first consensus network is any one of the multiple consensus networks; The method further comprises: The routing node receives the business processing request sent by the verification node, where the business processing request carries an identifier of the second consensus network; The routing node forwards the business processing request to the second consensus network corresponding to the identifier of the second consensus network, so as to use the second consensus network to select a target node in the second consensus network according to a load balancing algorithm to process the business processing request and generate a new business block, and add the new business block to the target blockchain corresponding to the second consensus network after the second consensus network reaches a consensus.

3. The method according to claim 2, characterized in that The method further comprises: The routing node forwards the transaction data of the target user returned by the at least one first consensus network to the verification node, so as to perform data fusion in the verification node; or, The routing node merges the transaction data of the target user returned by the at least one first consensus network to obtain merged transaction data, and forwards the merged transaction data to the verification node.

4. The method according to claim 2, characterized in that The routing node stores network node information, where the network node information is used to indicate address information of data nodes included in each of the multiple consensus networks, and the service query request carries identifiers of the multiple consensus networks; The routing node sending the business query request to the multiple consensus networks includes: The routing node queries the network node information for address information of data nodes included in each consensus network in the multiple consensus networks according to the identifiers of the multiple consensus networks; According to the address information of the data nodes included in each consensus network, the business query request is sent to the data node of each consensus network in the multiple consensus networks for processing.

5. A verification node, comprising a memory, a processor, an input device and an output device, wherein the memory stores a set of program codes, and the processor calls the program codes stored in the memory to execute the data processing method according to claim 1.

6. A routing node, comprising a memory, a processor, an input device and an output device, wherein the memory stores a set of program codes, and the processor calls the program codes stored in the memory to execute the data processing method according to any one of claims 2 to 4.

7. A blockchain system, characterized in that: The blockchain system includes a verification node, a routing node and a plurality of consensus networks, wherein the routing node communicates with the verification node and the plurality of consensus networks respectively, wherein: The verification node is the verification node according to claim 5; The routing node is the routing node as claimed in claim 6.