Block chain-based data processing method and related device

By decomposing the business into subtasks and using blockchain technology for collaborative execution, the problem of low manual processing efficiency in existing business applications is solved, and efficient, secure and transparent business process execution is achieved.

CN119030718APending Publication Date: 2024-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310606181.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Reliance on manual processing in existing business applications leads to complex processes and inefficient processes, especially in areas such as loans, insurance and rentals, where business execution efficiency is low.

Method used

The blockchain-based data processing method is adopted to decompose the target business into multiple subtasks and be performed jointly by multiple business collaboration objects. Through blockchain-on-chain processing and smart contract decision-making, business processes are automated and transparent.

Benefits of technology

It improves the efficiency and reliability of business execution, ensures data security and privacy, and achieves transparent decision-making and open and transparent results of business processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030718A_ABST
    Figure CN119030718A_ABST
Patent Text Reader

Abstract

The invention provides a block chain-based data processing method and a related device. The method comprises the steps that service parameters of a service object for a target service are acquired, sub-tasks associated with the target service are determined, the target service is associated with a plurality of service cooperation objects, and one sub-task in the target service is associated with one service cooperation object; obtaining task data of each subtask associated with the target business based on the business parameters; performing data processing on the task data of each subtask to obtain cooperation data corresponding to each subtask; performing uplink processing on each collaboration data; wherein after the uplink processing of each collaboration data is completed and the uplink is successful, the collaboration client of each business collaboration object is triggered to obtain the corresponding collaboration data so as to execute the corresponding subtask. According to the invention, the target business can be executed according to the plurality of sub-tasks, so that the efficiency and reliability of business execution are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based data processing method, a blockchain-based data processing device, a computer device, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the widespread popularity of Internet technology, more and more business applications are spread across all aspects of daily life, such as loan business applications, insurance business applications, rental business applications, etc. At present, the working mode of these business applications is usually to manually collect information and fill in relevant information, and then send it to the audit object offline or online, and the audit object will execute the relevant process of business processing (such as business audit). This process based on manual execution of business is relatively complex and cumbersome, and the efficiency of this business execution model is low. Summary of the invention

[0003] The embodiment of the present application proposes a blockchain-based data processing method and related devices, which can execute the target business according to multiple subtasks respectively, thereby improving the efficiency and reliability of business execution.

[0004] On the one hand, an embodiment of the present application provides a data processing method based on blockchain, the method comprising:

[0005] Obtaining business parameters of the business object for the target business, and determining each subtask associated with the target business, the target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with one business collaboration object;

[0006] Obtaining task data of each subtask associated with the target business based on the business parameters;

[0007] Perform data processing on the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask;

[0008] Each collaborative data is processed on the chain; after the on-chain processing is completed and successfully uploaded to the chain, the collaborative client of each business collaboration object will be triggered to obtain the corresponding collaborative data to execute the corresponding subtask.

[0009] On the one hand, an embodiment of the present application provides a data processing method based on blockchain, the method comprising:

[0010] Obtaining a business processing request for a target business, the business processing request carrying: collaboration data of each subtask associated with the target business, any collaboration data including an object identifier of a business collaboration object associated with a corresponding subtask;

[0011] Based on each object identifier, each collaboration data carried in the business processing request is sent to the collaboration client of the corresponding business collaboration object;

[0012] Receive the business execution results sent by each collaboration client, which are generated by the collaboration client after performing business processing on the subtasks associated with the business collaboration object according to the corresponding collaboration data;

[0013] Based on the received execution results of each business, a decision is made on the business status of the target business to obtain a decision result.

[0014] On the one hand, an embodiment of the present application provides a data processing device based on blockchain, the device comprising:

[0015] An acquisition unit, used to acquire business parameters of a business object for a target business, and determine each subtask associated with the target business. The target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with one business collaboration object;

[0016] A processing unit, used to obtain task data of each subtask associated with the target business based on the business parameters;

[0017] The processing unit is further used to process the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask;

[0018] The processing unit is also used to process each collaborative data on the chain; after the on-chain processing is completed and successfully uploaded to the chain, the collaborative client of each business collaboration object will be triggered to obtain the corresponding collaborative data to execute the corresponding subtask.

[0019] In a possible implementation, the processing unit processes the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask, which is used to perform the following operations:

[0020] Get the object ID of the business collaboration object associated with any subtask;

[0021] Encrypt the task data of the corresponding subtask based on the object identifier to obtain the encrypted task data corresponding to any subtask;

[0022] Generate the collaboration data corresponding to any subtask based on the encrypted task data and the blockchain address of the business collaboration object;

[0023] Among them, the object identifier includes any of the following: blockchain address, key, identity certificate.

[0024] In a possible implementation, the processing unit processes the task data of each subtask separately, and after obtaining the collaboration data corresponding to each subtask, is further used to perform the following operations:

[0025] Obtaining the object type corresponding to the business object in the business scenario of the target business;

[0026] If the object type is the first type, the collaboration data corresponding to each subtask is sent to the blockchain node to trigger the blockchain node to process each collaboration data on the chain;

[0027] If the object type is the second type, the collaboration data corresponding to each subtask is sent to the collaboration client of the business collaboration object corresponding to the blockchain address included in each collaboration data.

[0028] In a possible implementation, the processing unit obtains task data of each subtask associated with the target service based on the service parameter, and performs the following operations:

[0029] Display the parameter setting interface, which displays the business parameters entered by the business object for the target business;

[0030] In response to the data analysis operation triggered in the parameter setting interface, data analysis and processing are performed on the business parameters of the target business to generate task data of each subtask associated with the target business;

[0031] The task data of each subtask associated with the target business is output in the parameter setting interface.

[0032] In a possible implementation, each collaboration data is assembled into a business processing request, and the business processing request includes a data field and an address field; wherein the data field is used to store each collaboration data, and the address field is used to record: a blockchain address in each collaboration data;

[0033] The on-chain processing includes: sending a business processing request to the blockchain system, triggering the blockchain node in the blockchain system to parse the data field of the business processing request to obtain various collaboration data, and performing on-chain processing on each collaboration data; and parsing each blockchain address from the address field of the business processing request, and sending each collaboration data to the collaboration client of the business collaboration object that matches the corresponding blockchain address.

[0034] In a possible implementation, after any collaboration data is sent to the collaboration client of the corresponding business collaboration object via the blockchain node, the collaboration client is triggered to perform decryption processing on the encrypted task data in the collaboration data to obtain task data; and, based on the task data obtained after the decryption processing, business processing is performed on the corresponding subtask to obtain a business execution result;

[0035] The task data includes: the contract address, contract method, contract parameters of the business processing contract, and the contract address of the business decision contract called to return the business execution result;

[0036] Business processing includes: calling a business processing contract to perform business processing on the corresponding subtask. The business processing contract is obtained according to the contract address, contract method, and contract parameters included in the task data.

[0037] In a possible implementation, the processing unit is further configured to perform the following operations:

[0038] Receive the decision result for the target business returned by the blockchain node, where the decision result is used to indicate the business status of the target business, including completed or uncompleted status;

[0039] Among them, the decision result is generated by the blockchain node after receiving the business execution results sent by each collaborative client, and making decisions on each business execution result based on the business decision contract indicated in the business processing.

[0040] On the one hand, an embodiment of the present application provides a data processing device based on blockchain, the device comprising:

[0041] An acquisition unit, used to acquire a business processing request for a target business, wherein the business processing request carries: collaboration data of each subtask associated with the target business, wherein any collaboration data includes an object identifier of a business collaboration object associated with the corresponding subtask;

[0042] A processing unit, configured to send each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier;

[0043] A receiving unit, used to receive the business execution results sent by each collaboration client, where the business execution results are generated after the collaboration client performs business processing on the subtask associated with the business collaboration object according to the corresponding collaboration data;

[0044] The processing unit is further used to perform decision processing on the business status of the target business based on the received business execution results to obtain a decision result.

[0045] In a possible implementation, the processing unit sends each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier, so as to perform the following operations:

[0046] receiving a data synchronization request sent by a target business collaboration object among the multiple business collaboration objects, where the data synchronization request includes a target identifier of the target business collaboration object;

[0047] Matching the target identifier based on each object identifier to obtain target collaboration data matching the target business collaboration object from each collaboration data carried in the business processing request;

[0048] The acquired target collaboration data is sent to the collaboration client of the target business collaboration object.

[0049] In a possible implementation, the processing unit performs decision processing on the service state of the target service based on the received service execution results, and obtains a decision result for performing the following operations:

[0050] Obtain business decision contracts based on business processing requests;

[0051] Analyze and process the received business execution results to obtain the task completion status of the subtasks executed by each business collaboration object;

[0052] Based on the task completion status of the subtasks executed by each collaborative client, the business decision contract is called to make a decision on the business status of the target business and obtain a decision result.

[0053] In a possible implementation, the business status includes a completion status, and the decision rule specified in the business decision contract includes any of the following:

[0054] If the task completion progress of the subtasks executed by each collaborative client reaches the preset progress threshold, the business status of the target business is determined to be a completion status;

[0055] If the number of executed subtasks in the target business reaches a preset number threshold, the business status of the target business is determined to be a completed state;

[0056] If the task completion status of the key subtasks in the target business meets the preset completion conditions, the business status of the target business is determined to be the completion status.

[0057] In a possible implementation, the processing unit is further configured to perform the following operations:

[0058] In the process of data processing for the target business, statistical data on the target business is obtained, the statistical data including at least one of the following: the number of subtasks included in the target business, the number of subtasks that have been successfully executed, the number of subtasks that have failed to execute, and the number of subtasks being executed;

[0059] Send statistical data to the business management platform, which is used to trigger the business management platform to perform business management on each business collaboration object;

[0060] The business management process includes any one or more of the following: the management process of the business authority of the business collaboration object, the management process of the task status of the subtask executed by the business collaboration object, and the management process of the business execution results associated with the business collaboration object.

[0061] On the one hand, an embodiment of the present application provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the above-mentioned blockchain-based data processing method.

[0062] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is read and executed by a processor of a computer device, the computer device executes the above-mentioned blockchain-based data processing method.

[0063] On the one hand, the embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned blockchain-based data processing method.

[0064] In the embodiment of the present application, the business parameters of the business object for the target business can be obtained, and the various subtasks associated with the target business can be determined. The target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with a business collaboration object; based on the business parameters, the task data of each subtask associated with the target business is obtained; the task data of each subtask is processed separately to obtain the collaboration data corresponding to each subtask; and each collaboration data is processed on the chain. It can be seen that, on the one hand, in this application, each subtask associated with a target business can be determined to determine the collaboration data of each subtask. After the chain processing of each collaboration data is completed and successfully uploaded to the chain, the collaboration clients of each business collaboration object will be triggered to obtain their respective collaboration data to execute the corresponding subtasks, so that a target business can be completed by multiple business collaboration objects. This business execution mode in which multiple collaboration clients perform their respective duties and have clear division of labor can improve the efficiency of business execution; on the other hand, the collaboration data used by each collaboration client to execute the corresponding subtask is obtained after the chain processing is completed. The chain processing of the collaboration data based on the blockchain can also avoid the leakage of the collaboration data, thereby improving the reliability and security of business execution. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0066] Figure 1 This is a schematic diagram of the principle of a data processing solution based on blockchain provided in an embodiment of the present application;

[0067] Figure 2a It is a structural diagram of a blockchain system provided by an embodiment of the present application;

[0068] Figure 2b This is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application;

[0069] Figure 3 This is a schematic diagram of the architecture of a blockchain-based data processing system provided in an embodiment of the present application;

[0070] Figure 4 It is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application;

[0071] Figure 5a This is a schematic diagram of an interface for obtaining service parameters provided in an embodiment of the present application;

[0072] Figure 5b This is a schematic diagram of an interface for obtaining task data provided in an embodiment of the present application;

[0073] Figure 6 It is a flowchart of another data processing method based on blockchain provided in an embodiment of the present application;

[0074] Figure 7 This is a schematic diagram of a process for obtaining identity information provided by an embodiment of the present application;

[0075] Figure 8 It is an interactive flow chart of a data processing method based on blockchain provided in an embodiment of the present application;

[0076] Fig. 9 This is a scenario diagram of a data processing method based on blockchain provided in an embodiment of the present application;

[0077] Fig.10 It is a structural schematic diagram of a blockchain-based data processing device provided in an embodiment of the present application;

[0078] Fig.11It is a structural schematic diagram of another blockchain-based data processing device provided in an embodiment of the present application;

[0079] Fig.12 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0081] This application provides a data processing solution based on blockchain, which can be applied to various business scenarios such as loan business, insurance business, leasing business, etc. It specifically provides a solution based on blockchain to realize business collaboration among multiple collaborators (business collaboration objects), so that data islands can be connected through multi-party collaboration; on-chain collaboration ensures transparent business processes and public decision-making results; off-chain collaborators process data independently to protect user privacy; multiple parties conduct business at the same time to improve collaboration efficiency. Please refer to Figure 1 , Figure 1 Schematic diagram of the principle of a data processing solution provided by the embodiment of the present application. Figure 1 As shown, the process involved in the principle of the data processing solution provided by the present application is roughly as follows: ① The business parameters of the business object for the target business can be obtained (for example, if the target business is a loan business, the business parameters can be loan parameters; if the target business can be an insurance business, the business parameters can be insurance parameters), and the subtasks associated with the target business are determined (for example, the loan business is associated with subtasks 1, 2, and 3; and the insurance business is associated with subtasks 1 and 2). The target business is associated with multiple business collaboration objects (for example, debit card banks, credit reporting agencies, housing authorities, insurance companies, etc.), and a subtask in the target business is associated with a business collaboration object; ② Based on the business parameters, the task data of each subtask associated with the target business is obtained; ③ The task data of each subtask is processed separately to obtain the collaboration data corresponding to each subtask; ④ Each collaboration data is processed on the chain.

[0082] It can be seen that, on the one hand, in this application, for a target business, the various subtasks associated with it can be determined to determine the collaboration data of each subtask. After the on-chain processing of each collaboration data is completed and successfully uploaded to the chain, the collaboration clients of each business collaboration object will be triggered to obtain their respective collaboration data to execute the corresponding subtasks, so that a target business can be completed by the collaboration of multiple business collaboration objects. This business execution model in which multiple collaboration clients perform their respective duties and have clear division of labor can improve the efficiency of business execution; on the other hand, the collaboration data used by each collaboration client to execute the corresponding subtask is obtained after the on-chain processing is completed. Uploading the collaboration data to the chain based on the blockchain can also avoid the leakage of the collaboration data, thereby improving the reliability and security of business execution.

[0083] Next, the relevant technical terms involved in the data processing solution provided by this application are introduced in detail in conjunction with the relevant drawings:

[0084] 1. Target business and subtasks:

[0085] The so-called target business refers to a business that is collaboratively executed by two or more business collaboration objects. The target business includes multiple subtasks, and one subtask is executed by one business collaboration object. The target business can be a business in any field (for example, including but not limited to: financial field, advertising field, live broadcast field, etc.). For example, the target business may include: loan business, insurance business, leasing business, etc. This application does not specifically limit the field to which the target business belongs. Please refer to Figure 1 , Figure 1 is a flowchart of a collaborative execution of a target business provided by an embodiment of the present application, such as Figure 1 As shown, the target business may be a loan business for a target object, and the loan business needs to be jointly executed by the debit card bank, the housing authority, the credit reporting agency, and the lending bank. The loan business includes four subtasks (such as subtask 1, subtask 2, subtask 3, and subtask 4). The debit card bank is used to execute subtask 1 in the loan business (for example, generating bank flow information for the target object), the housing authority is used to execute subtask 2 in the loan business (for example, generating property records for the target object), the credit reporting agency is used to execute subtask 3 in the loan business (for example, generating a personal credit report for the target object), and the lending bank is used to execute subtask 4 in the loan business (for example, approving the business execution results of the subtasks executed by the debit card bank, the housing authority, and the credit reporting agency respectively).

[0086] A subtask is any one of the target businesses. For example, if the target business is a loan business, the subtasks corresponding to the loan business may at least include: the debit card bank generates bank transaction information, the housing authority generates property records, the credit reporting agency prints credit reports, and the results of the approval business execution; for another example, if the target business is an advertising business, the subtasks corresponding to the advertising business may at least include: advertisers place advertising data, and the business platform feedbacks user data.

[0087] 2. Business cooperation objects:

[0088] The so-called business collaboration object refers to any object used to collaborate to complete the target business. The number of business collaboration objects corresponding to different target businesses may be the same or different. For example, if the target business is a loan business, the business collaboration objects may at least include: a debit card bank, a housing authority, a credit reporting agency, and a lending bank; if the target business is an insurance business, the business collaboration objects may at least include: an insurance company, a credit reporting agency, and a debit card bank. In addition, the same business collaboration object can be used to execute one or more target businesses. For example, if the business collaboration object is a debit card bank, the debit card bank can be used to collaborate to complete both the loan business and the insurance business.

[0089] 3. Business parameters, task data and collaboration data:

[0090] Business parameters are used to describe the data required to execute the target business, and the business parameters may include task data of each subtask associated with the target business. For example, if the target business is a loan business, and the loan business is associated with subtask 1, subtask 2, and subtask 3, the business parameters for the loan business may include: task data 1 of subtask 1, task data 2 of subtask 2, and task data 3 of subtask 3.

[0091] Task data refers to the data required by the business collaboration object to execute the corresponding subtask. Task data may include: the contract data required to execute the subtask, and the contract data required to return the business execution result after the subtask is executed. For example, task data may include but is not limited to: the off-chain contract address, contract method, parameter list used by the business collaboration object to process the subtask, and the on-chain contract address and contract method for feedback of the business execution result.

[0092] Collaboration data refers to data generated after data processing of the task data of the subtask. Specifically, the data processing may include any one or more of encryption processing and packaging processing. For example, collaboration data is generated after encrypting the task data of the subtask to be executed by the business collaboration object based on the object identifier of the business collaboration object (such as a blockchain address, or a key, or an ID or other unique identifier). In other words, the collaboration data is generated after encryption processing based on the unique identifier of the business collaboration object, so one business parameter corresponds to one business collaboration object.

[0093] 4. Business execution results:

[0094] The business execution result refers to the data obtained after executing the business processing of the subtask corresponding to the business collaboration object. Among them, the business execution result may include: the contract execution result of the off-chain contract corresponding to the execution subtask, the execution progress of the subtask, the completion status and other data. For example, for the subtask in the loan business: the credit reporting agency prints the credit report, the business execution result corresponding to the subtask may include: whether the credit report has been printed, the completion degree of the credit report, the validity of the credit report and other data.

[0095] 5. Blockchain Technology

[0096] Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains relevant information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Specifically, this application will introduce the relevant terms such as blockchain system and blockchain structure in detail.

[0097] (1) Blockchain system:

[0098] See also Figure 2a , Figure 2a This is a schematic diagram of the structure of a blockchain system provided by an embodiment of the present application. Figure 2a As shown, the blockchain system can be a data sharing system. The so-called data sharing system refers to a system for sharing data between node devices. The data sharing system 200 may include multiple node devices 201. The multiple node devices 201 may refer to various computer devices in the data sharing system. The computer device may be, for example, a terminal device or a server. Among them, the device types of different node devices 201 may be the same or different. For example, a node device 201 may be a terminal device, and another node device 201 may be a server.

[0099] Specifically, each node device 201 can receive input information when performing normal work, and maintain the shared data in the data sharing system based on the received input information. For example, when any node device 201 in the blockchain system receives input information (for example, receives a business processing request from a target object for a target business), the node device 201 can send multiple business parameters to the collaboration client of the corresponding business collaboration object according to the business processing request, so that each collaboration client performs business processing on the subtask corresponding to the business collaboration object based on the received collaboration data.

[0100] (2) Blockchain Node:

[0101] ①Node function:

[0102] a. Application functions are used to be deployed in the blockchain to implement specific businesses according to actual business needs, and record data related to the implementation of business functions to form record data (such as collaborative data). For example, collaborative data can refer to data used to record the implementation of obtaining bank flow information; collaborative data can also refer to data used to record the implementation of obtaining credit reports; collaborative data can also refer to data used to record the implementation of obtaining real estate records, etc. Digital signatures (digital signatures of business collaboration objects) can be carried in collaborative data to indicate the source of collaborative data, and collaborative data can be sent to other nodes in the blockchain system, so that other nodes can add collaborative data to temporary blocks when they successfully verify the source and integrity of collaborative data, and complete the on-chain processing of collaborative data.

[0103] b. Contract function. Any blockchain node in the blockchain system has the function of calling and executing the corresponding smart contract. The so-called smart contract (referred to as contract): smart contract has three major elements: commitment, agreement, and digital form. Therefore, it can expand the application scope of blockchain to all aspects of financial industry transactions, payments, settlements and liquidations. Smart contract means that when a pre-compiled condition is triggered, the smart contract will immediately execute the corresponding contract terms. Its working principle is similar to the if-then statement of a computer program. Among them, a smart contract virtual machine (ETHereumVirtual Machine, EVM) runs in the blockchain node. The smart contract virtual machine is a virtual machine that can execute smart contracts. The smart contract virtual machine can understand and execute these codes to realize the function of the smart contract. In the embodiment of the present application, the smart contract virtual machine running in the blockchain node can make decisions on the execution results of each business based on the business decision contract, thereby generating a decision result for the business status of the target business. The execution of business decisions on the blockchain network can ensure the security and reliability of the business status.

[0104] ②Node identification:

[0105] Each node in the blockchain system has a corresponding node identifier, and each node in the blockchain system can store the node identifiers of other nodes in the blockchain system, so that the generated blocks can be broadcast to other nodes in the blockchain system based on the node identifiers of other nodes. Each node can maintain a node identifier list as shown in the following table, and store the node name and node identifier in the node identifier list.

[0106] The node identifier may be an IP (Internet Protocol, a protocol for interconnecting networks) address or any other information that can be used to identify the node. Table 1 only uses the IP address as an example for description.

[0107] Table 1. Node ID list

[0108] Node Name Node ID Node 1 000.000.000.000 Node 2 111.111.111.111 … … Node N xxx.xxx.xxx.xxx

[0109] In the embodiment of the present application, each blockchain node needs to perform consensus processing on the collaborative data, and the consensus processing involves data interaction between nodes. During the data interaction process, each node can carry its own node identification, so that other nodes can perform node verification processing based on the corresponding node identification before performing consensus processing, thereby improving the security of the blockchain consensus process.

[0110] (2) Block structure:

[0111] See also Figure 2b , Figure 2b This is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application. Figure 2b As shown in the figure, the blockchain consists of multiple blocks, and each blockchain contains a genesis block. As the name implies, the so-called genesis block is the first block, the initial block. The genesis block includes a block header and a block body. The block header stores the input information feature value, version number, timestamp and difficulty value, and the block body stores the input information (such as various collaborative data); the next block of the genesis block uses the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information feature value of the current block, the block header feature value, version number, timestamp and difficulty value of the parent block, and so on, so that the collaborative data stored in each block in the blockchain is associated with the collaborative data stored in the parent block, ensuring the security of the task data in the block.

[0112] In the embodiment of the present application, the collaboration data corresponding to any subtask can be considered as a block data after being processed on the chain. The collaboration data is generated based on the task data of any subtask and the blockchain address of the business collaboration object associated with the subtask, wherein the block body of the collaboration data stores the task data, and the block header can store: the blockchain address of the business collaboration object associated with the subtask. Figure 2b The block structure shown in this application can ensure the reliability and security of the task data corresponding to any subtask.

[0113] 6. Cloud Technology:

[0114] In the data processing scheme based on blockchain proposed in this application, blockchain involves more data computing services and data storage services, so a lot of computer operating costs are required. Then, this application can realize the processing operations required for chaining based on cloud storage technology in cloud technology. Specifically: each collaborative data can be stored in the transaction pool based on the data storage service; and the business status of the target business can be processed based on the data computing service. Among them, the so-called cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool, which is used on demand and flexible and convenient. Among them, cloud technology can include cloud storage technology. The so-called cloud storage is a new concept extended and developed from the concept of cloud computing. The distributed cloud storage system (hereinafter referred to as the storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to collect a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide data storage and business access functions to the outside world.

[0115] It should be noted that the relevant data involved in the data processing process in this application, for example: business parameters, task data corresponding to each subtask, and collaborative data, etc. When the above embodiments of this application are applied to specific products or technologies, user permission or consent must be obtained, and the relevant data collection, use and processing processes must comply with relevant national and regional laws, regulations and standards, and comply with the principles of legality, legitimacy and necessity, and do not involve the acquisition of data types prohibited or restricted by laws and regulations. In some optional embodiments, the relevant data involved in the embodiments of this application are obtained after the object has been authorized separately. In addition, when obtaining the separate authorization of the object, the purpose of the relevant data involved is indicated to the object.

[0116] Combine the following Figure 3 The architecture diagram of the data processing system provided in the embodiment of the present application is introduced in detail.

[0117] See also Figure 3 , Figure 3 This is a schematic diagram of the architecture of a blockchain-based data processing system provided in an embodiment of the present application. Figure 3 As shown, the architecture diagram of the data processing system may include at least: a terminal device 301, at least one business collaboration client 302, and at least one blockchain node 303. Among them, each blockchain node 303 constitutes a blockchain network. It should be noted that the number of nodes in the blockchain network is only for example, and the number of nodes in this application is not specifically limited, and the number of business collaboration clients 302 is not specifically limited. Among them, any blockchain node 303 in the blockchain network can be directly or indirectly connected to the terminal device 301 and each business collaboration client 302 through wired or wireless communication.

[0118] Any computer device in the data processing system (terminal device 301, or business collaboration client 302, or blockchain node 303) can be a mobile phone, tablet computer, laptop computer, PDA, mobile internet device (MID), vehicle, vehicle-mounted equipment, roadside equipment, aircraft, wearable device, smart devices such as smart watches, smart bracelets, pedometers, etc., virtual reality devices... and so on.

[0119] Any computer device in the data processing system (terminal device 301, or business collaboration client 302, or blockchain node 303) can be a server. Specifically, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0120] It is understandable that the types of various computer devices in the data processing system can be the same or different. For example, the terminal device 301 can be a mobile phone, the business collaboration client 302 can also be a mobile phone, and the blockchain node 303 can also be a mobile phone; for another example, the terminal device 301 can be a mobile phone, the business collaboration client 302 can also be a laptop computer, and the blockchain node 303 can be a server. This application does not limit the number and type of various computer devices in the data processing system.

[0121] First, the functions of the terminal device 301, the business collaboration client 302, and the blockchain node 303 in the data processing system are introduced accordingly:

[0122] ① Terminal device 301: used to provide a business application program, based on which the business object can interact with the blockchain network. Specifically, the business object can enter the business parameters for the target business based on the business application program provided by the terminal device, thereby initiating a business processing request for the target business to the blockchain node 303; subsequently, the terminal device can receive the decision result for the target business returned by the blockchain node 303.

[0123] ② Business collaboration client 302: used to obtain subtasks associated with itself from blockchain node 303, execute the subtasks, obtain business execution results, and return the business execution results to blockchain node 303; for example, business collaboration client 302 may be a bank, which may be used to obtain subtasks associated with bank flow information from blockchain node 303; for another example, business collaboration client 302 may be a bank credit agency, which may be used to obtain subtasks associated with credit data from blockchain node 303, and so on;

[0124] ③ Blockchain node 303: used to receive the business processing request for the target business issued by the terminal device 301, and send the collaboration data of each subtask in the business processing request to the corresponding business collaboration client 302; and, perform decision-making processing on the business status of the target business.

[0125] Then, the data interaction process between the terminal device 301, the business collaboration client 302, and the blockchain node 303 in the data processing system is introduced in detail:

[0126] ① The terminal device 301 may obtain the service parameters of the service object for the target service, wherein the service object management is associated with multiple service collaboration objects, and one service collaboration object is associated with a subtask in the target service;

[0127] ② The terminal device 301 obtains the task data of each subtask associated with the target service based on the service parameters; and performs collaborative data processing on the task data of each subtask to obtain the collaborative data corresponding to each subtask;

[0128] ③ The terminal device 301 sends each collaborative data to the blockchain node 303 for on-chain processing;

[0129] ④ The blockchain node 303 sends each collaboration data to the collaboration client 302 of the corresponding business collaboration object;

[0130] ⑤ Any business collaboration client 302 generates a business execution result after performing business processing on the subtask associated with the business collaboration object according to the corresponding collaboration data, and sends the business execution result to the blockchain node 303;

[0131] ⑥ The blockchain node 303 makes a decision on the business status of the target business based on the received business execution results to obtain a decision result;

[0132] ⑦ The blockchain node 303 can return the decision result of the target business to the terminal device 301.

[0133] The data processing system provided by the present application can obtain the business parameters of the business object for the target business. The business object is associated with multiple business collaboration objects, and one business collaboration object is associated with a subtask in the target business; determine the various subtasks associated with the target business, and obtain the task data of each subtask associated with the target business based on the business parameters; perform data processing on the task data of each subtask to obtain the collaboration data corresponding to each subtask; and process each collaboration data on the chain. It can be seen that in this application, each subtask associated with a target business can be determined to determine the collaboration data of each subtask. After the chain processing of each collaboration data is completed and successfully uploaded to the chain, the collaboration clients of each business collaboration object will be triggered to obtain their respective collaboration data to execute the corresponding subtasks, so that a target business can be completed by multiple business collaboration objects. This business execution mode with each doing its own job and clear division of labor can improve the efficiency of business execution; in addition, each collaboration client executes the corresponding subtask based on its own collaboration data, which can also avoid data leakage, thereby improving the reliability and security of business execution.

[0134] It can be understood that the data processing system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. It is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0135] Based on the foregoing description of the blockchain-based data processing solution and the blockchain-based data processing system of the present application, the specific embodiments involved in the blockchain-based data processing solution will be described in detail with reference to the accompanying drawings.

[0136] See also Figure 4 , Figure 4 is a flowchart of a data processing method based on blockchain provided by an embodiment of the present application. The data processing method can be Figure 3The computer device (terminal device) in the blockchain-based data processing system shown is executed. The data processing method mainly includes but is not limited to the following steps S401 to S404:

[0137] S401: Acquire business parameters of a business object for a target business, and determine each subtask associated with the target business. The target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with multiple business collaboration objects.

[0138] Specifically, if the business object is a home loan object, the target business may be a loan business; if the business object is an insurance object, the target business may be an insurance business; if the business object is a rental object, the target business may be a rental business. Among them, one business object is associated with multiple business collaboration objects. For example, if the business object is a home loan object, the business collaboration objects associated with the home loan object may include: debit card banks, credit reporting agencies, and housing authorities; if the business object is an insurance object, the business collaboration objects associated with the insurance object may include: debit card banks, credit reporting agencies, and insurance companies. It should be understood that one business collaboration object is used to associate a subtask in the target business, that is, one business collaboration object is responsible for executing a subtask in the target business.

[0139] In a possible implementation, a terminal device runs a business application, and a business object can input business parameters for a target business based on the business application to obtain the business parameters for the target business from the business application. Specifically, the business application displays a parameter setting interface, and the business object can enter the business parameters for the target business in the parameter setting interface to obtain the business parameters for the target business. Figure 5a , Figure 5a Schematic diagram of an interface for obtaining service parameters provided in an embodiment of the present application. Figure 5a As shown, the parameter setting interface S501 is provided with a parameter entry 5011. In response to the parameter entry being triggered (such as double-clicking, long pressing, and other triggering operations), an input panel S502 can be output, and the business object can enter business parameters for the target business based on the input panel S502.

[0140] In a possible implementation, the business parameters of the target business can be analyzed and processed to determine the various subtasks associated with the target business. Specifically, the business parameters can be analyzed and processed by keywords, and the various subtasks associated with the target business can be determined based on the extracted keywords. For example, if the keywords obtained by analysis include: bank flow information, credit information, real estate information, etc., then it can be determined that the subtasks associated with the target business include: debit card bank, credit agency, housing authority, etc. Based on this method, the target business can be divided into multiple subtasks, and a subtask can be associated with a business collaboration object.

[0141] S402: Acquire task data of each subtask associated with the target business based on the business parameters.

[0142] The task data of any subtask may include but is not limited to: the contract address, contract method, contract parameters of the business processing contract, and the contract address of the business decision contract called by returning the business execution result. For example, if subtask 1 is used to instruct the acquisition of bank flow information, the business processing contract corresponding to subtask 1 may be a flow information processing contract; for another example, if subtask 2 is used to instruct the acquisition of credit information, the business processing contract corresponding to subtask 2 may be a credit processing contract; for another example, if subtask 3 is used to instruct the acquisition of real estate information, the business processing contract corresponding to subtask 3 may be a house processing contract.

[0143] In a possible implementation, the service parameters include task data of each subtask, and the terminal device obtains the task data of each subtask associated with the target service based on the service parameters, which may specifically include: performing data parsing processing on the service parameters to obtain the task data of each subtask associated with the target service. For example, the target service includes subtask 1, subtask 2, and subtask 3, and the service parameters include task data 1 of subtask 1, task data 2 of subtask 2, and task data 3 of subtask 3. Then, by parsing the service parameters, the task data of each subtask can be directly obtained: task data 1, task data 2, and task data 3.

[0144] In another possible implementation, the terminal device obtains the task data of each subtask associated with the target business based on the business parameters, which may specifically include: first, displaying a parameter setting interface, in which the business parameters entered by the business object for the target business are displayed; then, in response to the data analysis operation triggered in the parameter setting interface, performing data analysis on the business parameters of the target business to generate task data for each subtask associated with the target business; and outputting the task data for each subtask associated with the target business in the parameter setting interface. Specifically, the business parameters refer to some parameters used to indicate the data required for each subtask associated with the target task. Based on the parameter setting interface, data analysis can be automatically performed on the business parameters to automatically obtain the task data for the corresponding subtask. For example, the business parameters used to indicate that the data required for each subtask associated with the loan business include: bank flow information, credit information, real estate information and other parameters of the business object. After the data analysis is performed on the above business parameters, the task data for each subtask associated with the loan business can be automatically generated. Please refer to Figure 5b , Figure 5b Schematic diagram of an interface for obtaining task data provided by an embodiment of the present application. Figure 5b As shown, the business parameters entered by the business object are displayed in the parameter setting interface S503, and the parameter setting interface is provided with a data analysis control 5031. When the data analysis control 5031 is clicked, the business application can be triggered to automatically perform data analysis on the business parameters, so as to output the analysis results in the interface S504. The analysis results can be displayed as multiple output boxes (5041, 5042, 5043), and one output box includes: task data of a subtask associated with the target task. In this way, the business parameters can be automatically analyzed based on the interface provided by the business application to generate corresponding task data, thereby improving data processing efficiency.

[0145] S403: Process the task data of each subtask separately to obtain the collaboration data corresponding to each subtask.

[0146] In a possible implementation, the terminal device processes the task data of each subtask separately to obtain the collaboration data corresponding to each subtask, which may include: first, obtaining the object identifier of the business collaboration object associated with any subtask; then, encrypting the task data of the corresponding subtask based on the object identifier to obtain the encrypted task data corresponding to any subtask; finally, based on the encrypted task data and the blockchain address of the business collaboration object, generating the collaboration data corresponding to any subtask; wherein the object identifier includes any of the following: blockchain address, key, identity credential (such as user ID, name, etc.). Optionally, after the task data is encrypted, the encrypted data obtained can also be signed, and finally the encrypted data after signing can be obtained. In specific implementation, the task data of any subtask can be encrypted based on an encryption algorithm, and the encryption algorithm can include but is not limited to: a key encryption algorithm, an address encryption algorithm, and any other type of encryption algorithm. The embodiment of the present application does not specifically limit the encryption algorithm.

[0147] In another possible implementation, the terminal device processes the task data of each subtask separately to obtain the collaboration data corresponding to each subtask, which may also include: first, preprocessing the task data to obtain preprocessed task data; then, obtaining the object identifier of the business collaboration object associated with any subtask; next, encrypting the preprocessed task data of the corresponding subtask based on the object identifier to obtain the encrypted task data corresponding to any subtask; finally, based on the encrypted task data and the blockchain address of the business collaboration object, generating the collaboration data corresponding to any subtask. Among them, the above-mentioned data preprocessing includes any one or more of the following: data cleaning, normalization processing, and fixed format processing. In this way, the task data is first preprocessed and then the data processing operation is performed, so that the data format of each task data can be unified, thereby improving the efficiency of data processing.

[0148] Based on the above description, during the data processing of task data, encryption is performed according to the object identifier of the business collaboration object associated with each subtask. Since the object identifier uniquely identifies a business collaboration object, each collaboration data obtained after encryption based on the object identifier matches a unique business collaboration object, which can prevent the collaboration data from being tampered with by other business collaboration objects, thereby ensuring the security and reliability of the task data.

[0149] In a possible implementation, after the terminal device processes the task data of each subtask separately and obtains the collaboration data corresponding to each subtask, it also includes: first, obtaining the object type corresponding to the business object in the business scenario of the target business; if the object type is the first type, the collaboration data corresponding to each subtask is sent to the blockchain node to trigger the blockchain node to process each collaboration data on the chain; if the object type is the second type, the collaboration data corresponding to each subtask is sent to the collaboration client of the business collaboration object corresponding to the blockchain address included in each collaboration data. Specifically, in the loan scenario (the target business is the loan business), if the object type corresponding to the loan object (business object) is the public type (the first type), then after generating the collaboration data corresponding to each subtask, the terminal device can send each collaboration data to the blockchain node for chain processing; if the object type of the loan object (business object) is the member type (the second type), then after generating the collaboration data corresponding to each subtask, the terminal device can directly send the collaboration data to the corresponding collaboration client according to the blockchain address included in each collaboration data. In this way, the collaborative data can be distributed to the corresponding business collaboration objects according to the object type of the business object itself. In business scenarios such as insurance and loans, the privacy of the data interaction process can be further guaranteed, thereby improving data security.

[0150] S404: Process each collaboration data on the chain; after each collaboration data is processed and successfully uploaded to the chain, it will trigger the collaboration client of each business collaboration object to obtain the corresponding collaboration data to execute the corresponding subtask.

[0151] The following is a description of the chain processing process:

[0152] In a possible implementation, the terminal device can assemble various collaborative data into a business processing request, which includes a data field and an address field; wherein the data field is used to store various collaborative data, and the address field is used to record: the blockchain address in each collaborative data. For example, the data format of the business processing request is shown in Table 2 below:

[0153] Table 2. Data format of business processing request

[0154] Data Fields Address Field data1 address1 data2 address2 data3 address3

[0155] As shown in Table 2 above, assuming that the target business associations are: subtask 1, subtask 2, and subtask 3, then data1 in the data field of Table 2 can be represented as the collaboration data of subtask 1, and address1 can be represented as the blockchain address of the business collaboration object associated with subtask 1; data2 in the data field can be represented as the collaboration data of subtask 2, and address2 can be represented as the blockchain address of the business collaboration object associated with subtask 2; data3 in the data field can be represented as the collaboration data of subtask 3, and address3 can be represented as the blockchain address of the business collaboration object associated with subtask 3.

[0156] Among them, the chain processing includes: sending the business processing request to the blockchain system, triggering the blockchain node in the blockchain system to execute the parsing from the data field of the business processing request to obtain each collaborative data, and performing chain processing on each collaborative data; and parsing from the address field of the business processing request to obtain each blockchain address, and sending each collaborative data to the collaborative client of the business collaboration object matching the corresponding blockchain address. In specific implementation, the blockchain node's chain processing of each collaborative data may include: broadcasting each collaborative data to each blockchain node in the blockchain system, so that each blockchain node performs consensus processing on the received collaborative data. If the consensus processing passes, each collaborative data can be added to the blockchain to complete the chain processing of each collaborative data. In this way, uploading the collaborative data to the blockchain can ensure the openness and transparency of each collaborative data. Since the collaborative data is encrypted data, while ensuring the openness and transparency of the data, the original data (the task data of the subtask) will not be leaked, thereby ensuring the reliability and security of the collaborative data.

[0157] The following is a description of the business processing process:

[0158] In one possible implementation, after any collaboration data is sent to the collaboration client of the corresponding business collaboration object via the blockchain node, the collaboration client is triggered to perform decryption processing on the encrypted task data in the collaboration data to obtain task data; and, based on the task data obtained after the decryption processing, business processing is performed on the corresponding subtask to obtain a business execution result; wherein the task data includes: the contract address, contract method, contract parameters of the business processing contract, and the contract address of the business decision contract called to return the business execution result.

[0159] The business processing includes: calling a business processing contract to perform business processing on the corresponding subtask, and the business processing contract is obtained according to the contract address, contract method, and contract parameters included in the task data. Specifically, if the business processing contract is a bank flow information processing contract, the bank flow information of the business object can be obtained based on the bank flow information processing contract; if the business processing contract is a credit processing contract, the credit processing contract can be called to obtain the credit information of the business object.

[0160] In a possible implementation, the terminal device can also receive the decision result for the target business returned by the blockchain node, and the decision result is used to indicate the business status of the target business, and the business status includes a completed state or an uncompleted state; wherein the decision result is generated by the blockchain node after receiving the business execution results sent by each collaborative client, and performing decision processing on each business execution result based on the business decision contract indicated in the business processing. Based on the above description, after performing business processing on the corresponding subtask, the collaborative client can send the obtained business execution result to the blockchain node, and the blockchain node summarizes the business execution results of each collaborative client and performs decision processing based on the business decision contract, so as to obtain the decision result for the business status of the target business. This method can make the decision process on the chain open and transparent, and improve the reliability of the decision results.

[0161] In the embodiment of the present application, the business parameters of the business object for the target business can be obtained, and the various subtasks associated with the target business can be determined. The target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with a business collaboration object; based on the business parameters, the task data of each subtask associated with the target business is obtained; the task data of each subtask is processed separately to obtain the collaboration data corresponding to each subtask; and each collaboration data is processed on the chain. It can be seen that, on the one hand, in this application, each subtask associated with a target business can be determined to determine the collaboration data of each subtask. After the chain processing of each collaboration data is completed and successfully uploaded to the chain, the collaboration clients of each business collaboration object will be triggered to obtain their respective collaboration data to execute the corresponding subtasks, so that a target business can be completed by multiple business collaboration objects. This business execution mode in which multiple collaboration clients perform their respective duties and have clear division of labor can improve the efficiency of business execution; on the other hand, the collaboration data used by each collaboration client to execute the corresponding subtask is obtained after the chain processing is completed. The chain processing of the collaboration data based on the blockchain can also avoid the leakage of the collaboration data, thereby improving the reliability and security of business execution.

[0162] See also Figure 6 , Figure 6is a flowchart of another data processing method based on blockchain provided by an embodiment of the present application. The data processing method can be Figure 3 The computer device in the blockchain-based data processing system (such as any blockchain node in the blockchain network) is executed. The data processing method mainly includes but is not limited to the following steps S601 to S604:

[0163] S601: Obtain a business processing request for a target business.

[0164] The business processing request carries: the collaboration data of each subtask associated with the target business, and any collaboration data includes the object identifier of the business collaboration object associated with the corresponding subtask. The object identifier may include any of the following: blockchain address, key, identity certificate (such as user ID, name, etc.).

[0165] In a possible implementation, after obtaining the business processing request sent by the terminal device, the blockchain node can obtain the identity information of the business object that initiated the business processing request, and perform identity verification on the business object based on the identity information. If the identity verification passes, step S602 is triggered; if the identity verification fails, the blockchain node can delete the business processing request. The identity verification may include any one or more of: permission verification, security verification, and legality verification.

[0166] See also Figure 7 , Figure 7 This is a schematic diagram of a process for obtaining identity information provided by an embodiment of the present application. Figure 7 As shown, after obtaining the business processing request sent by the terminal device, the blockchain node can send an authorization request to the business object. The authorization request is used to request the authorization of the business object. The identity information of the business object can be obtained only after the business object agrees to the authorization. For example, after the terminal device used by the business object obtains the authorization request sent by the blockchain node, the authorization interface S700 can be displayed in the terminal device. The authorization interface S700 displays prompt information prompting the business object whether to confirm the authorization, and is provided with a confirmation control 901 and a rejection control 902. If the business object clicks the confirmation control 901, it means that the business object agrees to the authorization. If the business object clicks the rejection control 902, it means that the business object refuses the authorization. In this way, the security of the identity information of the business object can be guaranteed to prevent the identity information from being leaked, and the reliability of the blockchain node in executing the subsequent data processing process can also be guaranteed.

[0167] S602: Based on each object identifier, each collaboration data carried in the business processing request is sent to the collaboration client of the corresponding business collaboration object.

[0168] In one possible implementation, the blockchain node sends each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier, which may include the following steps: first, receiving a data synchronization request sent by a target business collaboration object among multiple business collaboration objects, wherein the data synchronization request includes a target identifier of the target business collaboration object; then, matching the target identifier based on each object identifier to obtain target collaboration data that matches the target business collaboration object from each collaboration data carried in the business processing request; finally, sending the obtained target collaboration data to the collaboration client of the target business collaboration object. Specifically, the target business collaboration object refers to any one of a plurality of business collaboration objects, wherein the target business collaboration object may periodically send data synchronization requests to the blockchain node. If the data synchronization request carries the blockchain address of the target business collaboration object (target identifier, such as address1), the blockchain node may determine the object identifier (address1) that matches the target identifier from each object identifier (such as address1, address2, address3), and use the collaboration data (such as data1) corresponding to the determined object identifier (address1) as the target collaboration data, and send the target collaboration data to the collaboration client of the target business collaboration object.

[0169] In another possible implementation, the blockchain node sends each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier. It may also include: the blockchain node can directly send each collaboration data to the collaboration client of the business collaboration object indicated by the object identifier. For example, the object identifier includes: address1, address2, address3, then the blockchain node can send collaboration data 1 to the collaboration client 1 of the business collaboration object indicated by address1, send collaboration data 2 to the collaboration client 2 of the business collaboration object indicated by address2, and send collaboration data 3 to the collaboration client 3 of the business collaboration object indicated by address3.

[0170] Based on the above description, each collaborative client can obtain collaborative data that matches itself from the blockchain node, thereby avoiding the risk of collaborative data being leaked and improving data security.

[0171] S603: Receive the service execution results sent by each collaborative client.

[0172] The business execution result is generated by the collaboration client after performing business processing on the subtasks associated with the business collaboration object according to the corresponding collaboration data. Specifically, after obtaining the corresponding collaboration data, the collaboration client can decrypt the encrypted task data in the collaboration data, for example, it can decrypt the encrypted task data based on the object identifier of the business collaboration object to obtain the task data; subsequently, the collaboration client performs business processing on the corresponding subtask based on the task data to obtain the business execution result, and returns the business execution result to the blockchain node.

[0173] In one possible implementation, after receiving the business execution result sent by any collaborative client, the blockchain node can obtain the client identification of the collaborative client, and verify the collaborative client based on the client identification (any one or more of the authority verification, security verification, and legality verification). If the verification of the collaborative client passes, step S604 is triggered; if the verification of the collaborative client fails, the business execution result is not saved.

[0174] S604: Based on the received execution results of each service, a decision is made on the service status of the target service to obtain a decision result.

[0175] The business status of the target business may include: completed state and uncompleted state. The completed state means: all subtasks associated with the target business have been completed, or all subtasks associated with the target business have been completed and any subtask has been correctly executed; the uncompleted state means: there are uncompleted subtasks among the subtasks associated with the target business, or all subtasks associated with the target business have been completed but some have not been correctly executed.

[0176] In a possible implementation, the blockchain node makes a decision on the business status of the target business based on the received business execution results to obtain the decision result, which may include the following steps: first, obtain the business decision contract according to the business processing request; then, analyze and process the received business execution results to obtain the task completion status of the subtasks performed by each business collaboration object; finally, based on the task completion status of the subtasks performed by each collaboration client, call the business decision contract to make a decision on the business status of the target business to obtain the decision result. Specifically, the business processing request carries the contract address or contract name of the business decision contract, and the blockchain node can call the specified business decision contract based on the contract address or contract name, wherein the business decision contract stipulates the decision rule, which is used to make a decision on the business status of the target business according to the execution results of each business.

[0177] Specifically, the business status includes the completion status, and the decision rules specified in the business decision contract include any of the following:

[0178] ① If the task completion progress of the subtasks executed by each collaborative client reaches the preset progress threshold, the business status of the target business is determined to be completed; otherwise, the business status of the target business is determined to be unfinished. For example, the target business is associated with: subtask 1, subtask 2, and subtask 3. When the task completion progress of subtask 1, subtask 2, and subtask 3 reaches 100% (preset progress threshold), the business status of the target business can be determined to be completed; for another example, when the task completion progress of subtask 1 and subtask 2 reaches 100%, but the task completion progress of subtask 3 is 90%, the business status of the target business can be determined to be unfinished.

[0179] ② If the number of executed subtasks in the target business reaches the preset number threshold, the business status of the target business is determined to be completed, otherwise, the business status of the target business is determined to be unfinished. For example, the target business is associated with: subtask 1, subtask 2, and subtask 3, and the preset number threshold is 2. If it is determined that subtask 1, subtask 2, and subtask 3 have all been executed by the corresponding business collaboration client, the business status of the target business can be determined to be completed; for another example, when subtask 1 and subtask 2 are executed by the corresponding business collaboration client, but subtask 3 has not yet been executed, the business status of the target business can be determined to be unfinished.

[0180] ③ If the task completion status of the key subtasks in the target business meets the preset completion conditions, the business status of the target business is determined to be completed; otherwise, the business status of the target business is determined to be unfinished. For example, the target business is associated with: subtask 1, subtask 2, and subtask 3, and the preset quantity threshold is 2. If subtask 1 is a key subtask, if the task completion status of subtask 1 is used to indicate: subtask 1 has been executed and completed and subtask 1 has been correctly executed, then the business status of the target business can be determined to be completed; if the task completion status of subtask 1 does not meet the above preset completion conditions (subtask 1 has been executed and completed and subtask 1 has been correctly executed), then the business status of the target business can be determined to be unfinished.

[0181] Based on the above method, the blockchain node can analyze and process the business execution results returned by each collaborative client according to the decision rules specified in the business decision contract, thereby summarizing the business execution results to obtain the decision results of the target business.

[0182] In a possible implementation, during the data processing process for the target business, the blockchain node can obtain statistical data about the target business, and the statistical data includes at least one of the following: the number of subtasks included in the target business, the number of subtasks that have been successfully executed, the number of subtasks that have failed to execute, and the number of subtasks being executed; then send the statistical data to the business management platform, and the statistical data is used to trigger the business management platform to perform business management on each business collaboration object; wherein the business management process includes: management of the business rights of the business collaboration object, management of the task status of the subtasks executed by the business collaboration object, and management of the business execution results associated with the business collaboration object. Any one or more. Specifically, the blockchain node can periodically obtain statistical data about the target business from each collaboration client, and the statistical data can be shown in Table 3 below:

[0183]

[0184] As shown in Table 3 above, statistical data about the target business can be obtained at preset time intervals (for example, one minute or two minutes). For example, the number of successfully executed subtasks obtained at time t1 is 8, the number of subtasks being executed is 2, and the number of subtasks that failed to execute is 0; for another example, the number of successfully executed subtasks obtained at time t2 is 9, the number of subtasks being executed is 1, and the number of subtasks that failed to execute is 0. And so on. The blockchain node can understand the execution status of each subtask in the target business in real time based on the statistical data, so that the statistical data can be sent to the business-related platform for business analysis and processing.

[0185] Furthermore, the blockchain node can send statistical data to the business management platform so that the business management platform can perform business management on each business collaboration object based on the statistical data. For example, if the statistical data is used to indicate that the subtask that failed to execute is task X, the business management platform can limit (for example, close, reduce, etc.) the business authority of the business execution object corresponding to task X; for another example, if the statistical data is used to indicate that the subtask being executed is task Y, the business management platform can highlight the task status of task Y (for example, highlight the display color); for another example, if the statistical data is used to indicate that the subtask that has been successfully executed is task Z, the business management platform can analyze and process the business execution results of task Z to facilitate subsequent business decision-making. In this way, the statistical data of the target business can be dynamically obtained, so that targeted business management measures can be taken for each business collaboration object according to the statistical data, which can enrich the integrity of the business processing process.

[0186] In the embodiment of the present application, the blockchain node can receive the business processing request of the terminal device for the target business, and can send each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier; next, the business execution result sent by each collaboration client can be received, and the business execution result is generated by the collaboration client after performing business processing on the subtask associated with the business collaboration object according to the corresponding collaboration data; finally, based on the received business execution results, the business status of the target business can be decided and the decision result can be obtained. It can be seen that based on the blockchain, each collaboration client can perform its own subtasks off the chain to improve the efficiency of business collaboration; on the chain, the business execution results of each collaboration client can be summarized, the data island can be connected, and the business decision can be completed, so as to ensure the reliability and openness and transparency of the decision result of the target business and improve the security of data processing.

[0187] See also Figure 8 , Figure 8 is an interactive flow chart of a data processing method based on blockchain provided in an embodiment of the present application. The interactive flow of the data processing method can be Figure 3 The terminal device, blockchain node, and collaborative client in the data processing system shown in the figure jointly execute. The data interaction method mainly includes but is not limited to the following steps S801 to S810:

[0188] S801: The terminal device obtains service parameters of the service object for the target service.

[0189] In a possible implementation, a terminal device runs a business application, and a business object can input business parameters for a target business based on the business application to obtain the business parameters for the target business of the business object from the business application. Specifically, a parameter setting interface is displayed in the business application, and the business object can enter the business parameters for the target business in the parameter setting interface to obtain the business parameters for the target business of the business object.

[0190] In a possible implementation, after the terminal device obtains the service parameters of the service object for the target service, it can also determine the various subtasks associated with the target service. Specifically, the terminal device can analyze and process the service parameters of the target service to determine the various subtasks associated with the target service. The target service is associated with multiple service collaboration objects, and one subtask in the target service is associated with one service collaboration object.

[0191] S802: The terminal device obtains the collaboration data of each subtask based on the service parameters.

[0192] In specific implementation, the terminal device obtains the collaborative data of each subtask based on the business parameters, which may include: first, obtaining the task data of each subtask associated with the target business based on the business parameters; then, processing the task data of each subtask separately to obtain the collaborative data corresponding to each subtask.

[0193] ①Acquire the task data of each subtask associated with the target business based on the business parameters.

[0194] In one possible implementation, the business parameters include task data of each subtask, and the terminal device obtains the task data of each subtask associated with the target business based on the business parameters, which may specifically include: performing data analysis on the business parameters to obtain the task data of each subtask associated with the target business. In another possible implementation, the terminal device obtains the task data of each subtask associated with the target business based on the business parameters, which may specifically include: first, displaying a parameter setting interface, in which the business parameters entered by the business object for the target business are displayed; then, in response to a data analysis operation triggered in the parameter setting interface, performing data analysis on the business parameters of the target business to generate task data of each subtask associated with the target business; and outputting the task data of each subtask associated with the target business in the parameter setting interface.

[0195] ② Process the task data of each subtask separately to obtain the collaboration data corresponding to each subtask.

[0196] In one possible implementation, the terminal device processes the task data of each subtask separately to obtain the collaboration data corresponding to each subtask, which may include: first, obtaining the object identifier of the business collaboration object associated with any subtask; then, encrypting the task data of the corresponding subtask based on the object identifier to obtain the encrypted task data corresponding to any subtask; finally, based on the encrypted task data and the blockchain address of the business collaboration object, generating the collaboration data corresponding to any subtask; wherein the object identifier includes any of the following: blockchain address, key, identity credential (such as user ID, name, etc.).

[0197] It should be noted that the terminal device obtains the task data of each subtask associated with the target service based on the service parameters, and processes the task data of each subtask respectively to obtain the specific execution process of the collaboration data corresponding to each subtask. Figure 4 The relevant processes involved in step S402 and step S403 in the embodiment will not be repeated here in the embodiment of the present application.

[0198] S803: The terminal device sends each collaboration data to the blockchain node.

[0199] In a possible implementation, the terminal device can assemble various collaborative data into a business processing request, which includes a data field and an address field; wherein the data field is used to store various collaborative data, and the address field is used to record: the blockchain address in each collaborative data.

[0200] S804: The blockchain node processes each collaborative data on the chain.

[0201] In specific implementation, the chain processing includes: sending a business processing request to the blockchain system, triggering the blockchain node in the blockchain system to parse the data field of the business processing request to obtain each collaboration data, and chain processing each collaboration data; and parsing each blockchain address from the address field of the business processing request, and sending each collaboration data to the collaboration client of the business collaboration object that matches the corresponding blockchain address. In specific implementation, the blockchain node chain processing of each collaboration data may include: broadcasting each collaboration data to each blockchain node in the blockchain system, so that each blockchain node performs consensus processing on the received collaboration data. If the consensus processing is passed, each collaboration data can be added to the blockchain to complete the chain processing of each collaboration data.

[0202] S805: The blockchain node receives a data synchronization request sent by the collaboration client.

[0203] In specific implementation, any business collaboration object (target business collaboration object) among multiple business collaboration objects associated with the target business can generate a data synchronization request based on its own object identifier and send the data synchronization request to the blockchain node. The data synchronization request includes the target identifier (object identifier) ​​of the target business collaboration object.

[0204] S806: The blockchain node sends the collaboration data to the collaboration client.

[0205] In the specific implementation, first, the blockchain node matches the target identifier based on each object identifier carried in the business processing request to obtain the target collaboration data that matches the target business collaboration object from each collaboration data carried in the business processing request. Next, the blockchain node sends the target collaboration data to the collaboration client where the target business collaboration object is located.

[0206] S807: The collaboration client performs business processing on the corresponding subtask based on the collaboration data to obtain a business execution result.

[0207] In a possible implementation, the collaborative client performs business processing on the corresponding subtask based on the collaborative data to obtain the business execution result, including the following steps: first, decrypt the encrypted task data in the collaborative data to obtain the task data; then, perform business processing on the corresponding subtask based on the task data to obtain the business execution result. Among them, the task data includes: the contract address, contract method, contract parameters of the business processing contract, and the contract address of the business decision contract called to return the business execution result. Among them, the business processing includes: the collaborative client calls the business processing contract to perform business processing on the corresponding subtask, and the business processing contract is obtained according to the contract address, contract method, and contract parameters included in the task data.

[0208] S808: The collaborative client sends the business execution result to the blockchain node.

[0209] S809: The blockchain node makes a decision on the business status of the target business based on the received business execution results to obtain a decision result.

[0210] In a possible implementation, the blockchain node makes a decision on the business status of the target business based on the received business execution results to obtain the decision result, including the following steps: first, obtain the business decision contract according to the business processing request; then, analyze and process the received business execution results to obtain the task completion status of the subtasks executed by each business collaboration object; finally, based on the task completion status of the subtasks executed by each collaboration client, call the business decision contract to make a decision on the business status of the target business to obtain the decision result. Among them, the business status includes the completion status, and the decision rules specified in the business decision contract include any of the following: ① If the task completion progress of the subtasks executed by each collaboration client reaches the preset progress threshold, the business status of the target business is determined to be the completion status, otherwise, the business status of the target business is determined to be the unfinished status; ② If the number of executed subtasks in the target business reaches the preset number threshold, the business status of the target business is determined to be the completion status, otherwise, the business status of the target business is determined to be the unfinished status; ③ If the task completion status of the key subtasks in the target business meets the preset completion condition, the business status of the target business is determined to be the completion status, otherwise, the business status of the target business is determined to be the unfinished status.

[0211] It should be noted that the specific process executed by the blockchain node in step S909 in the embodiment of the present application can be found in Figure 6 The relevant processes described in step S604 in the embodiment will not be repeated here in the embodiment of the present application.

[0212] S810: The blockchain node sends the decision result to the terminal device.

[0213] In a possible implementation, during the data processing process for the target business, the blockchain node can also obtain statistical data about the target business, and the statistical data includes at least one of the following: the number of subtasks included in the target business, the number of subtasks that have been successfully executed, the number of subtasks that have failed to execute, and the number of subtasks being executed; then, the blockchain node sends the statistical data to the business management platform, and the statistical data is used to trigger the business management platform to perform business management on each business collaboration object. Among them, the business management process includes: any one or more of the management process of the business authority of the business collaboration object, the management process of the task status of the subtasks executed by the business collaboration object, and the management process of the business execution results associated with the business collaboration object.

[0214] It should be understood that the above data processing method can be applied to various business scenarios such as: home loan, house rental, financial insurance, etc. Fig. 9 The application scenarios of the data processing method provided in the embodiments of the present application are elaborated in detail.

[0215] See also Fig. 9 , Fig. 9 Schematic diagram of a data processing method based on blockchain provided in an embodiment of the present application. Fig. 9 As shown, the application scenario of the data processing method involves: a business application (running in a terminal device used by a business object), a blockchain system, at least one collaborative client (e.g., collaborative client 1, collaborative client 2), and a business management platform. Among them, in the application scenario for the target business, the following steps are involved:

[0216] ① The business application initiates a business processing request to the blockchain node. Specifically, a business object (such as a home loan object, a house rental object, an insurance object, etc.) can use the business application running on the terminal device to initiate a business processing request for the target business. Among them, the business processing request carries: the collaboration data of each subtask associated with the target business, and any collaboration data includes the object identifier of the business collaboration object associated with the corresponding subtask.

[0217] ② The collaboration client synchronizes the business processing request from the blockchain node. Specifically, since any collaboration data includes an object identifier (such as a blockchain address) of a business collaboration object, the collaboration client can synchronize the collaboration data matching the business collaboration object from the blockchain node based on a blockchain address.

[0218] ③ The collaborative client performs business processing on the corresponding subtask based on the collaborative data. Specifically, the Vm module in the collaborative client decrypts the encrypted task data in the synchronized collaborative data to obtain the task data; and calls the corresponding business processing contract based on the task data to perform business processing on the subtask.

[0219] ④ The collaborative client obtains the service execution result. Specifically, the service execution result is returned to the synchronization module (Sync module) in the collaborative client.

[0220] ⑤ The collaborative client calls the business decision contract to return the business execution result. Specifically, the Sync module in the collaborative client calls the business decision contract to return the business execution result to the blockchain node.

[0221] ⑥ The blockchain node makes a decision on the business status of the target business based on the received business decision results. Specifically, the blockchain node calls the business decision contract to decide the business status of the target business based on the execution results of each business.

[0222] ⑦The blockchain node returns the decision result to the business application.

[0223] ⑧The blockchain node returns statistical data to the business management platform.

[0224] In the embodiments of the present application, on the one hand, a business application may initiate a business processing request for a target business, and the business processing request may be sent to the blockchain system for processing; each collaborative client is used to synchronize collaborative data that matches itself from the blockchain system to complete the business processing of the corresponding subtasks off-chain, thereby enabling multi-party collaboration based on the blockchain and breaking through data silos; on the other hand, the business execution results of each collaborative client are sent to the chain for decision-making to ensure that the process is transparent and the decision results are public; on another hand, each party off-chain processes data independently to protect user privacy, and multiple parties conduct business at the same time, which can improve collaboration efficiency.

[0225] The above describes in detail the method of the embodiment of the present application. In order to facilitate the better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly. Next, in combination with the blockchain-based data processing scheme provided in the above embodiment of the present application, the relevant devices of the embodiment of the present application are introduced accordingly.

[0226] See also Fig.10 , Fig.10 Schematic diagram of a data processing device based on blockchain provided in an embodiment of the present application. Fig.10As shown, the data processing device 1000 can be applied to the computer device (terminal device) mentioned in the above embodiments. Specifically, the data processing device 1000 can be a computer program (including program code) running in a computer device, for example, the data processing device 1000 is an application software; the data processing device 1000 can be used to execute the corresponding steps in the data processing method provided in the embodiment of the present application. In specific implementation, the data processing device 1000 can specifically include:

[0227] The acquisition unit 1001 is used to acquire the business parameters of the business object for the target business and determine each subtask associated with the target business. The target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with one business collaboration object.

[0228] The processing unit 1002 is used to obtain task data of each subtask associated with the target business based on the business parameters;

[0229] The processing unit 1002 is further used to process the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask;

[0230] The processing unit 1002 is also used to process each collaborative data on the chain; after the on-chain processing is completed and successfully uploaded to the chain, the collaborative client of each business collaboration object will be triggered to obtain the corresponding collaborative data to execute the corresponding subtask.

[0231] In a possible implementation, the processing unit 1002 processes the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask, which is used to perform the following operations:

[0232] Get the object ID of the business collaboration object associated with any subtask;

[0233] Encrypt the task data of the corresponding subtask based on the object identifier to obtain the encrypted task data corresponding to any subtask;

[0234] Generate the collaboration data corresponding to any subtask based on the encrypted task data and the blockchain address of the business collaboration object;

[0235] Among them, the object identifier includes any of the following: blockchain address, key, identity certificate.

[0236] In a possible implementation, the processing unit 1002 processes the task data of each subtask respectively, and after obtaining the collaboration data corresponding to each subtask, is further configured to perform the following operations:

[0237] Obtaining the object type corresponding to the business object in the business scenario of the target business;

[0238] If the object type is the first type, the collaboration data corresponding to each subtask is sent to the blockchain node to trigger the blockchain node to process each collaboration data on the chain;

[0239] If the object type is the second type, the collaboration data corresponding to each subtask is sent to the collaboration client of the business collaboration object corresponding to the blockchain address included in each collaboration data.

[0240] In a possible implementation, the processing unit 1002 obtains task data of each subtask associated with the target service based on the service parameter, and performs the following operations:

[0241] Display the parameter setting interface, which displays the business parameters entered by the business object for the target business;

[0242] In response to the data analysis operation triggered in the parameter setting interface, data analysis and processing are performed on the business parameters of the target business to generate task data of each subtask associated with the target business;

[0243] The task data of each subtask associated with the target business is output in the parameter setting interface.

[0244] In a possible implementation, each collaboration data is assembled into a business processing request, and the business processing request includes a data field and an address field; wherein the data field is used to store each collaboration data, and the address field is used to record: a blockchain address in each collaboration data;

[0245] The on-chain processing includes: sending a business processing request to the blockchain system, triggering the blockchain node in the blockchain system to parse the data field of the business processing request to obtain various collaboration data, and performing on-chain processing on each collaboration data; and parsing each blockchain address from the address field of the business processing request, and sending each collaboration data to the collaboration client of the business collaboration object that matches the corresponding blockchain address.

[0246] In a possible implementation, after any collaboration data is sent to the collaboration client of the corresponding business collaboration object via the blockchain node, the collaboration client is triggered to perform decryption processing on the encrypted task data in the collaboration data to obtain task data; and, based on the task data obtained after the decryption processing, business processing is performed on the corresponding subtask to obtain a business execution result;

[0247] The task data includes: the contract address, contract method, contract parameters of the business processing contract, and the contract address of the business decision contract called to return the business execution result;

[0248] Business processing includes: calling a business processing contract to perform business processing on the corresponding subtask. The business processing contract is obtained according to the contract address, contract method, and contract parameters included in the task data.

[0249] In a possible implementation, the processing unit 1002 is further configured to perform the following operations:

[0250] Receive the decision result for the target business returned by the blockchain node, where the decision result is used to indicate the business status of the target business, including completed or uncompleted status;

[0251] Among them, the decision result is generated by the blockchain node after receiving the business execution results sent by each collaborative client, and making decisions on each business execution result based on the business decision contract indicated in the business processing.

[0252] In the embodiment of the present application, the business parameters of the business object for the target business can be obtained, and the various subtasks associated with the target business can be determined. The target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with a business collaboration object; based on the business parameters, the task data of each subtask associated with the target business is obtained; the task data of each subtask is processed separately to obtain the collaboration data corresponding to each subtask; and each collaboration data is processed on the chain. It can be seen that, on the one hand, in this application, each subtask associated with a target business can be determined to determine the collaboration data of each subtask. After the chain processing of each collaboration data is completed and successfully uploaded to the chain, the collaboration clients of each business collaboration object will be triggered to obtain their respective collaboration data to execute the corresponding subtasks, so that a target business can be completed by multiple business collaboration objects. This business execution mode in which multiple collaboration clients perform their respective duties and have clear division of labor can improve the efficiency of business execution; on the other hand, the collaboration data used by each collaboration client to execute the corresponding subtask is obtained after the chain processing is completed. The chain processing of the collaboration data based on the blockchain can also avoid the leakage of the collaboration data, thereby improving the reliability and security of business execution.

[0253] See also Fig.11 , Fig.11 Schematic diagram of another data processing device based on blockchain provided in an embodiment of the present application. Fig.11As shown, the data processing device 1100 can be applied to the computer device (blockchain node) mentioned in the above embodiments. Specifically, the data processing device 1100 can be a computer program (including program code) running in a computer device, for example, the data processing device 1100 is an application software; the data processing device 1100 can be used to execute the corresponding steps in the data processing method provided in the embodiment of the present application. In specific implementation, the data processing device 1100 can specifically include:

[0254] The acquisition unit 1101 is used to acquire a business processing request for a target business, wherein the business processing request carries: collaboration data of each subtask associated with the target business, wherein any collaboration data includes an object identifier of a business collaboration object associated with the corresponding subtask;

[0255] The processing unit 1102 is used to send each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier;

[0256] The receiving unit 1103 is used to receive the business execution result sent by each collaboration client, where the business execution result is generated after the collaboration client performs business processing on the subtask associated with the business collaboration object according to the corresponding collaboration data;

[0257] The processing unit 1102 is further configured to perform decision processing on the service status of the target service based on the received service execution results to obtain a decision result.

[0258] In a possible implementation, the processing unit 1102 sends each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier, so as to perform the following operations:

[0259] receiving a data synchronization request sent by a target business collaboration object among the multiple business collaboration objects, where the data synchronization request includes a target identifier of the target business collaboration object;

[0260] Matching the target identifier based on each object identifier to obtain target collaboration data matching the target business collaboration object from each collaboration data carried in the business processing request;

[0261] The acquired target collaboration data is sent to the collaboration client of the target business collaboration object.

[0262] In a possible implementation, the processing unit 1102 performs decision processing on the service state of the target service based on the received service execution results, and obtains a decision result for performing the following operations:

[0263] Obtain business decision contracts based on business processing requests;

[0264] Analyze and process the received business execution results to obtain the task completion status of the subtasks executed by each business collaboration object;

[0265] Based on the task completion status of the subtasks executed by each collaborative client, the business decision contract is called to make a decision on the business status of the target business and obtain a decision result.

[0266] In a possible implementation, the business status includes a completion status, and the decision rule specified in the business decision contract includes any of the following:

[0267] If the task completion progress of the subtasks executed by each collaborative client reaches the preset progress threshold, the business status of the target business is determined to be a completion status;

[0268] If the number of executed subtasks in the target business reaches a preset number threshold, the business status of the target business is determined to be a completed state;

[0269] If the task completion status of the key subtasks in the target business meets the preset completion conditions, the business status of the target business is determined to be the completion status.

[0270] In a possible implementation, the processing unit 1102 is further configured to perform the following operations:

[0271] In the process of data processing for the target business, statistical data on the target business is obtained, the statistical data including at least one of the following: the number of subtasks included in the target business, the number of subtasks that have been successfully executed, the number of subtasks that have failed to execute, and the number of subtasks being executed;

[0272] Send statistical data to the business management platform, which is used to trigger the business management platform to perform business management on each business collaboration object;

[0273] The business management process includes any one or more of the following: the management process of the business authority of the business collaboration object, the management process of the task status of the subtask executed by the business collaboration object, and the management process of the business execution results associated with the business collaboration object.

[0274] In the embodiment of the present application, the blockchain node can receive the business processing request of the terminal device for the target business, and can send each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier; next, the business execution result sent by each collaboration client can be received, and the business execution result is generated by the collaboration client after performing business processing on the subtask associated with the business collaboration object according to the corresponding collaboration data; finally, based on the received business execution results, the business status of the target business can be decided and the decision result can be obtained. It can be seen that based on the blockchain, each collaboration client can perform its own subtasks off the chain to improve the efficiency of business collaboration; on the chain, the business execution results of each collaboration client can be summarized, the data island can be connected, and the business decision can be completed, so as to ensure the reliability and openness and transparency of the decision result of the target business and improve the security of data processing.

[0275] See also Fig.12 , Fig.12 1 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 1200 is used to execute the steps performed by the computer device (terminal device, or blockchain node, or collaborative client) in the aforementioned method embodiment, and the computer device 1200 includes: one or more processors 1201; one or more input devices 1202, one or more output devices 1203 and a memory 1204. The processor 1201, input device 1202, output device 1203 and memory 1204 are connected via a bus 1205.

[0276] Specifically, the memory 1204 is used to store a computer program, the computer program includes program instructions, and the processor 1201 is used to call the program instructions stored in the memory 1204 to perform the following operations:

[0277] Obtaining business parameters of the business object for the target business, and determining each subtask associated with the target business, the target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with one business collaboration object;

[0278] Obtaining task data of each subtask associated with the target business based on the business parameters;

[0279] Perform data processing on the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask;

[0280] Each collaborative data is processed on the chain; after the on-chain processing is completed and successfully uploaded to the chain, the collaborative client of each business collaboration object will be triggered to obtain the corresponding collaborative data to execute the corresponding subtask.

[0281] In a possible implementation, the processor 1201 processes the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask, which is used to perform the following operations:

[0282] Get the object ID of the business collaboration object associated with any subtask;

[0283] Encrypt the task data of the corresponding subtask based on the object identifier to obtain the encrypted task data corresponding to any subtask;

[0284] Generate the collaboration data corresponding to any subtask based on the encrypted task data and the blockchain address of the business collaboration object;

[0285] Among them, the object identifier includes any of the following: blockchain address, key, identity certificate.

[0286] In a possible implementation, the processor 1201 processes the task data of each subtask respectively, and after obtaining the collaboration data corresponding to each subtask, is further configured to perform the following operations:

[0287] Obtaining the object type corresponding to the business object in the business scenario of the target business;

[0288] If the object type is the first type, the collaboration data corresponding to each subtask is sent to the blockchain node to trigger the blockchain node to process each collaboration data on the chain;

[0289] If the object type is the second type, the collaboration data corresponding to each subtask is sent to the collaboration client of the business collaboration object corresponding to the blockchain address included in each collaboration data.

[0290] In a possible implementation, the processor 1201 obtains task data of each subtask associated with the target service based on the service parameter, and performs the following operations:

[0291] Display the parameter setting interface, which displays the business parameters entered by the business object for the target business;

[0292] In response to the data analysis operation triggered in the parameter setting interface, data analysis and processing are performed on the business parameters of the target business to generate task data of each subtask associated with the target business;

[0293] The task data of each subtask associated with the target business is output in the parameter setting interface.

[0294] In a possible implementation, each collaboration data is assembled into a business processing request, and the business processing request includes a data field and an address field; wherein the data field is used to store each collaboration data, and the address field is used to record: a blockchain address in each collaboration data;

[0295] The on-chain processing includes: sending a business processing request to the blockchain system, triggering the blockchain node in the blockchain system to parse the data field of the business processing request to obtain various collaboration data, and performing on-chain processing on each collaboration data; and parsing each blockchain address from the address field of the business processing request, and sending each collaboration data to the collaboration client of the business collaboration object that matches the corresponding blockchain address.

[0296] In a possible implementation, after any collaboration data is sent to the collaboration client of the corresponding business collaboration object via the blockchain node, the collaboration client is triggered to perform decryption processing on the encrypted task data in the collaboration data to obtain task data; and, based on the task data obtained after the decryption processing, business processing is performed on the corresponding subtask to obtain a business execution result;

[0297] The task data includes: the contract address, contract method, contract parameters of the business processing contract, and the contract address of the business decision contract called to return the business execution result;

[0298] Business processing includes: calling a business processing contract to perform business processing on the corresponding subtask. The business processing contract is obtained according to the contract address, contract method, and contract parameters included in the task data.

[0299] In a possible implementation, the processor 1201 is further configured to perform the following operations:

[0300] Receive the decision result for the target business returned by the blockchain node, where the decision result is used to indicate the business status of the target business, including completed or uncompleted status;

[0301] Among them, the decision result is generated by the blockchain node after receiving the business execution results sent by each collaborative client, and making decisions on each business execution result based on the business decision contract indicated in the business processing.

[0302] Specifically, the memory 1204 is used to store a computer program, the computer program includes program instructions, and the processor 1201 is used to call the program instructions stored in the memory 1204, and can also perform the following operations:

[0303] Obtaining a business processing request for a target business, the business processing request carrying: collaboration data of each subtask associated with the target business, any collaboration data including an object identifier of a business collaboration object associated with a corresponding subtask;

[0304] Based on each object identifier, each collaboration data carried in the business processing request is sent to the collaboration client of the corresponding business collaboration object;

[0305] Receive the business execution results sent by each collaboration client, which are generated by the collaboration client after performing business processing on the subtasks associated with the business collaboration object according to the corresponding collaboration data;

[0306] Based on the received execution results of each business, a decision is made on the business status of the target business to obtain a decision result.

[0307] In a possible implementation, the processor 1201 sends each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier, so as to perform the following operations:

[0308] receiving a data synchronization request sent by a target business collaboration object among the multiple business collaboration objects, where the data synchronization request includes a target identifier of the target business collaboration object;

[0309] Matching the target identifier based on each object identifier to obtain target collaboration data matching the target business collaboration object from each collaboration data carried in the business processing request;

[0310] The acquired target collaboration data is sent to the collaboration client of the target business collaboration object.

[0311] In a possible implementation, the processor 1201 performs decision processing on the service state of the target service based on the received service execution results, and obtains a decision result for performing the following operations:

[0312] Obtain business decision contracts based on business processing requests;

[0313] Analyze and process the received business execution results to obtain the task completion status of the subtasks executed by each business collaboration object;

[0314] Based on the task completion status of the subtasks executed by each collaborative client, the business decision contract is called to make a decision on the business status of the target business and obtain a decision result.

[0315] In a possible implementation, the business status includes a completion status, and the decision rule specified in the business decision contract includes any of the following:

[0316] If the task completion progress of the subtasks executed by each collaborative client reaches the preset progress threshold, the business status of the target business is determined to be a completion status;

[0317] If the number of executed subtasks in the target business reaches a preset number threshold, the business status of the target business is determined to be a completed state;

[0318] If the task completion status of the key subtasks in the target business meets the preset completion conditions, the business status of the target business is determined to be the completion status.

[0319] In a possible implementation, the processor 1201 is further configured to perform the following operations:

[0320] In the process of data processing for the target business, statistical data on the target business is obtained, the statistical data including at least one of the following: the number of subtasks included in the target business, the number of subtasks that have been successfully executed, the number of subtasks that have failed to execute, and the number of subtasks being executed;

[0321] Send statistical data to the business management platform, which is used to trigger the business management platform to perform business management on each business collaboration object;

[0322] The business management process includes any one or more of the following: the management process of the business authority of the business collaboration object, the management process of the task status of the subtask executed by the business collaboration object, and the management process of the business execution results associated with the business collaboration object.

[0323] In the embodiments of the present application, on the one hand, a business application may initiate a business processing request for a target business, and the business processing request may be sent to the blockchain system for processing; each collaborative client is used to synchronize collaborative data that matches itself from the blockchain system to complete the business processing of the corresponding subtasks off-chain, thereby enabling multi-party collaboration based on the blockchain and breaking through data silos; on the other hand, the business execution results of each collaborative client are sent to the chain for decision-making to ensure that the process is transparent and the decision results are public; on another hand, each party off-chain processes data independently to protect user privacy, and multiple parties conduct business at the same time, which can improve collaboration efficiency.

[0324] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer storage medium, and a computer program is stored in the computer storage medium, and the computer program includes program instructions. When the processor executes the above program instructions, the method in the corresponding embodiment of the foregoing text can be executed, so it will not be repeated here. For technical details not disclosed in the computer storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located in one place, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network.

[0325] According to one aspect of the present application, an embodiment of the present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the method in the above corresponding embodiment, and therefore, it will not be described in detail here.

[0326] A person skilled in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0327] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server, a data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0328] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technical object familiar with the technical field can be easily changed or replaced within the technical scope disclosed by the present invention, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method based on blockchain, characterized in that: include: Acquire a business parameter of the business object for the target business, and determine each subtask associated with the target business, wherein the target business is associated with multiple business collaboration objects, and one subtask in the target business is associated with one business collaboration object; Acquire task data of each subtask associated with the target business based on the business parameters; Perform data processing on the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask; Each collaborative data is processed on the chain; after the on-chain processing is completed and successfully uploaded to the chain, the collaborative client of each business collaboration object will be triggered to obtain the corresponding collaborative data to execute the corresponding subtask.

2. The method according to claim 1, characterized in that The task data of each subtask is processed separately to obtain the collaboration data corresponding to each subtask, including: Get the object ID of the business collaboration object associated with any subtask; Encrypting the task data of the corresponding subtask based on the object identifier to obtain encrypted task data corresponding to any subtask; Generate collaboration data corresponding to any one of the subtasks based on the encrypted task data and the blockchain address of the business collaboration object; The object identifier includes any one of the following: a blockchain address, a key, or an identity certificate.

3. The method according to claim 2, characterized in that After the task data of each subtask is processed respectively to obtain the collaboration data corresponding to each subtask, the method further includes: Obtaining the object type corresponding to the business object in the business scenario of the target business; If the object type is the first type, the collaboration data corresponding to each subtask is sent to the blockchain node to trigger the blockchain node to process each collaboration data on the blockchain; If the object type is the second type, the collaboration data corresponding to each subtask is sent to the collaboration client of the business collaboration object corresponding to the blockchain address included in each collaboration data.

4. The method according to claim 1, characterized in that The acquiring task data of each subtask associated with the target business based on the business parameter includes: Displaying a parameter setting interface, wherein the parameter setting interface displays the business parameters entered by the business object for the target business; In response to a data analysis operation triggered in the parameter setting interface, data analysis is performed on the business parameters of the target business to generate task data of each subtask associated with the target business; The task data of each subtask associated with the target business is output in the parameter setting interface.

5. The method according to claim 1, characterized in that Each collaborative data is assembled into a business processing request, and the business processing request includes a data field and an address field; wherein the data field is used to store each collaborative data, and the address field is used to record: a blockchain address in each collaborative data; The on-chain processing includes: sending the business processing request to the blockchain system, triggering the blockchain node in the blockchain system to parse the data field of the business processing request to obtain various collaboration data, and performing on-chain processing on each collaboration data; and parsing the address field of the business processing request to obtain each blockchain address, and sending each collaboration data to the collaboration client of the business collaboration object that matches the corresponding blockchain address.

6. The method according to claim 5, characterized in that After any collaboration data is sent to the collaboration client of the corresponding business collaboration object via the blockchain node, the collaboration client is triggered to perform decryption processing on the encrypted task data in the collaboration data to obtain task data; And, based on the task data obtained after the decryption processing, executing business processing on the corresponding subtask to obtain a business execution result; The task data includes: the contract address, contract method, contract parameters of the business processing contract, and the contract address of the business decision contract called by returning the business execution result; The business processing includes: calling a business processing contract to perform business processing on a corresponding subtask, and the business processing contract is obtained according to the contract address, contract method, and contract parameters included in the task data.

7. The method according to claim 6, characterized in that The method further comprises: Receiving a decision result for the target business returned by the blockchain node, wherein the decision result is used to indicate a business status of the target business, wherein the business status includes a completed state or an uncompleted state; Among them, the decision result is generated by the blockchain node after receiving the business execution results sent by each collaborative client, and making decisions on each business execution result based on the business decision contract indicated in the business processing.

8. A data processing method based on blockchain, characterized in that: include: Acquire a business processing request for a target business, wherein the business processing request carries: collaboration data of each subtask associated with the target business, wherein any collaboration data includes an object identifier of a business collaboration object associated with a corresponding subtask; Based on each object identifier, each collaboration data carried in the business processing request is sent to the collaboration client of the corresponding business collaboration object; Receiving the business execution results sent by each collaboration client, wherein the business execution results are generated after the collaboration client performs business processing on the subtask associated with the business collaboration object according to the corresponding collaboration data; Based on the received execution results of each service, a decision is made on the service status of the target service to obtain a decision result.

9. The method according to claim 8, characterized in that The sending of each collaboration data carried in the business processing request to the collaboration client of the corresponding business collaboration object based on each object identifier includes: Receiving a data synchronization request sent by a target business collaboration object among the multiple business collaboration objects, wherein the data synchronization request includes a target identifier of the target business collaboration object; Matching the target identifier based on each object identifier to obtain target collaboration data matching the target business collaboration object from each collaboration data carried in the business processing request; The acquired target collaboration data is sent to the collaboration client of the target business collaboration object.

10. The method according to claim 8, characterized in that The step of performing decision processing on the service status of the target service based on the received service execution results to obtain a decision result includes: Obtaining a business decision contract according to the business processing request; Analyze and process the received business execution results to obtain the task completion status of the subtasks executed by each business collaboration object; Based on the task completion status of the subtasks executed by each collaborative client, the business decision contract is called to perform decision processing on the business status of the target business to obtain a decision result.

11. The method according to claim 10, characterized in that The business status includes a completion status, and the decision rule specified in the business decision contract includes any of the following: If the task completion progress of the subtasks executed by each collaborative client reaches a preset progress threshold, then the business status of the target business is determined to be a completion status; If the number of executed subtasks in the target business reaches a preset number threshold, determining that the business status of the target business is a completed state; If the task completion status of the key subtask in the target business meets the preset completion condition, the business status of the target business is determined to be a completion status.

12. The method according to claim 8, characterized in that The method further comprises: In the data processing process for the target business, obtaining statistical data about the target business, the statistical data including at least one of the following: the number of subtasks included in the target business, the number of subtasks that have been successfully executed, the number of subtasks that have failed to execute, and the number of subtasks being executed; Sending the statistical data to a business management platform, wherein the statistical data is used to trigger the business management platform to perform business management on each business collaboration object; The business management process includes any one or more of the following: management process of the business authority of the business collaboration object, management process of the task status of the subtask executed by the business collaboration object, and management process of the business execution result associated with the business collaboration object.

13. A data processing device based on blockchain, characterized in that: include: An acquisition unit, used to acquire a business parameter of a business object for a target business, and determine each subtask associated with the target business, wherein the target business is associated with a plurality of business collaboration objects, and a subtask in the target business is associated with a plurality of business collaboration objects; A processing unit, configured to obtain task data of each subtask associated with the target business based on the business parameters; The processing unit is further used to process the task data of each subtask respectively to obtain the collaboration data corresponding to each subtask; The processing unit is also used to process each collaborative data on the chain; after the on-chain processing is completed and successfully uploaded to the chain, the collaborative client of each business collaboration object will be triggered to obtain the corresponding collaborative data to execute the corresponding subtask.

14. A data processing device based on blockchain, characterized in that: include: An acquisition unit, configured to acquire a business processing request for a target business, wherein the business processing request carries: collaboration data of each subtask associated with the target business, wherein any collaboration data includes an object identifier of a business collaboration object associated with the corresponding subtask; A processing unit, configured to send each collaboration data carried in the business processing request to a collaboration client of a corresponding business collaboration object based on each object identifier; A receiving unit, configured to receive a business execution result sent by each collaboration client, wherein the business execution result is generated after the collaboration client performs business processing on a subtask associated with the business collaboration object according to corresponding collaboration data; The processing unit is further configured to perform decision processing on the service status of the target service based on the received service execution results to obtain a decision result.

15. A computer device, characterized in that: include: storage devices and processors; a memory storing one or more computer programs; A processor, configured to load the one or more computer programs to implement the blockchain-based data processing method as described in any one of claims 1-7 or 8-12.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded by a processor and executing the blockchain-based data processing method as described in any one of claims 1-7 or 8-12.

17. A computer program product, characterized in that The computer program product includes a computer program, which is suitable for being loaded by a processor and executing the blockchain-based data processing method as described in any one of claims 1-7 or 8-12.