Blockchain-based data processing system, method, computing device and storage medium

By using blockchain technology between insurance companies and third-party service platforms, creating transaction data structures and using smart contracts for automatic calculations, the problems of long commission settlement and lack of arbitration mechanisms in the existing technology are solved, achieving efficient, Accurate data processing and settlement.

CN113222752BActive Publication Date: 2024-09-10ADVANCED NEW TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110291638.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-12
Publication Date
2024-09-10
Estimated Expiration
2039-04-12

AI Technical Summary

Technical Problem

In the existing technology, insurance companies and third-party service platforms need to check transaction data before commission settlement, which results in a long settlement process, lack of an arbitration mechanism recognized by both parties, and high development costs.

Method used

Adopt a data processing system based on the blockchain to create a transaction data structure through business-side and server-side blockchain nodes, use smart contracts to automatically execute the task of calculating the amount to be counted, generate execution results and perform accounting operations, and establish joint maintenance by both parties The distributed ledger calculates transaction data in real time.

Benefits of technology

It greatly improves the efficiency of data settlement, ensures the non-tamperability and accuracy of transaction data, provides an arbitration mechanism that can be recognized by both parties, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113222752B
    Figure CN113222752B
Patent Text Reader

Abstract

The present specification provides a blockchain-based data processing system, method, computing device and storage medium, wherein the blockchain-based data processing system includes: a business-end blockchain node and a server-end blockchain node on the blockchain; the business-end blockchain node creates a matching transaction data structure for the target business and integrates the business data to be processed according to the transaction data structure to generate shared business data, automatically executes the task of calculating the amount to be counted, generates a corresponding execution result, updates the shared business data according to the execution result and performs accounting operations, collects the updated shared business data according to preset conditions and sends a request for processing the business to be counted to the server-end blockchain node; the server-end blockchain node receives the request for processing the business to be counted, and calculates the total amount to be counted in the updated shared business data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of blockchain technology, and in particular to a blockchain-based data processing system, method, computing device and storage medium. Background Art

[0002] With the development of the economy, insurance has become an important part of life. Today, the sales methods of insurance are becoming more and more diversified. For example, many insurance companies will entrust third-party service agencies to sell insurance on their behalf. In this way, insurance commissions need to be settled between the insurance companies and the third-party service agencies. In the existing technology, before settling the commissions, the insurance companies and the third-party service platforms need to reach an agreement on the transaction data, that is, the insurance companies and the third-party service platforms need to check the transaction data within a certain period in order to find out whether there are data differences in the same transaction between different agencies.

[0003] In the prior art, the data processing method between institutions is that the third-party service platform packages the transaction data generated within a preset time period and sends it to the insurance company. The insurance company verifies the transaction data and then settles the commission after the verification. However, the commission settlement method used in the prior art has a high development cost. The third-party service platform needs to export the transaction data from the core business system and send it to the insurance company for data verification by file transfer or other means. The whole process is time-consuming and has poor timeliness. In addition, if a dispute arises over transaction data in the future, there is a lack of an arbitration mechanism that both parties can agree on. Summary of the invention

[0004] In view of this, the embodiments of this specification provide a blockchain-based data processing system, method, computing device and storage medium to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a blockchain-based data processing system is provided, including:

[0006] Business-side blockchain nodes and server-side blockchain nodes on the blockchain;

[0007] The business-side blockchain node is configured to create a matching transaction data structure for the target business and integrate the business data to be processed according to the transaction data structure to generate shared business data. When the information contained in the shared business data meets the automatic execution condition of the smart contract of the business-side blockchain node, the task of calculating the amount to be counted is automatically executed, and a corresponding execution result is generated. According to the execution result, the shared business data is updated and an accounting operation is performed. According to preset conditions, the updated shared business data is collected and a request for processing the business to be counted is sent to the server-side blockchain node, and the request for processing the business to be counted carries the updated shared business data;

[0008] The server-side blockchain node is configured to receive the request for processing the business to be counted and calculate the total amount to be counted in the updated shared business data.

[0009] Optionally, the business-side blockchain node includes: a business-side blockchain business subnode and a business-side blockchain accounting subnode;

[0010] The business-side blockchain business sub-node is configured to create a matching transaction data structure for the target business and integrate the to-be-processed business data according to the transaction data structure to generate shared business data, and send a bookkeeping request to the business-side blockchain bookkeeping sub-node, wherein the bookkeeping request carries the shared business data;

[0011] The business-side blockchain accounting sub-node is configured to receive the accounting request, and when the automatic execution conditions of the smart contract in the business-side blockchain accounting sub-node are met, automatically execute the task of calculating the amount to be counted, generate the corresponding execution result, and update the shared business data according to the smart contract execution result and perform the accounting operation.

[0012] Optionally, the business-side blockchain accounting sub-node is also configured to collect updated shared business data according to preset conditions and send a request for processing business to be counted to the server, wherein the request for processing business to be counted carries the updated shared business data.

[0013] Optionally, the business-end blockchain business subnode is further configured to create a transaction data structure based on an unused transaction output model (UTXO), wherein the transaction data structure includes a transaction ID, transaction input and output units, the transaction input unit is accompanied by a signature unlocking script for using the account balance, and the transaction output unit is accompanied by a locking script for the output balance, which is used to limit that only the specified account can use the corresponding UTXO unit.

[0014] Optionally, the business-side blockchain accounting sub-node is further configured to calculate the amount to be counted based on the business amount in the shared business data and the proportion of the amount to be counted in the business amount, and determine the output account based on the shared business data and the account mapping table in the smart contract, and update the output unit of the shared business data based on the amount to be counted and the output account.

[0015] Optionally, the business-end blockchain accounting sub-node is also configured to monitor whether the state machine, transactions and / or trigger conditions in the smart contract meet the preset execution conditions. If any one of the state machine, transactions and / or trigger conditions in the smart contract meets the preset execution conditions, the smart contract meets the automatic execution conditions.

[0016] Optionally, the business-end blockchain business sub-node is also configured to obtain a calculation method for the amount to be counted, determine a mapping relationship between transaction information and accounting accounts, and generate a corresponding account mapping table based on the mapping relationship between the transaction information and accounting accounts, create the smart contract based on the calculation method for the amount to be counted and the account mapping table, and write the smart contract into the blockchain network.

[0017] Optionally, the business-end blockchain accounting sub-node is also configured to obtain a calculation method for the amount to be counted, determine a mapping relationship between transaction information and an accounting account, and generate a corresponding account mapping table based on the mapping relationship between the transaction information and the accounting account, create the smart contract based on the calculation method for the amount to be counted and the account mapping table, and write the smart contract into the blockchain network.

[0018] Optionally, the business-end blockchain node is also configured to transmit the updated shared business data signed with the private key into the blockchain network, and verify the validity of the updated shared business data transmitted into the blockchain network. When the validity verification of the updated shared business data is successful, the updated shared business data is integrated into a hash block ID, and the hash block ID is diffused to the entire network.

[0019] Optionally, the business-side blockchain accounting sub-node is further configured to collect shared business data according to preset conditions, integrate the shared business data to generate business data to be counted, process the business data to be counted to generate a corresponding hash value, and send a business processing request to be counted to the server-side blockchain node, wherein the business processing request to be counted carries the business data to be counted and the corresponding hash value.

[0020] Optionally, the server-side blockchain node is further configured to obtain the business data to be counted and the corresponding hash value carried in the business processing request to be counted, verify the validity of the business data to be counted based on the hash value, and if the verification passes, calculate the total amount to be counted in the business data to be counted, update the output unit in the business data to be counted according to the calculation result, and complete the business processing to be counted on the business-side blockchain node based on the calculation result.

[0021] Optionally, the server-side blockchain node is also configured to write the updated business data to be counted into the blockchain.

[0022] According to another aspect of the embodiment of this specification, a data processing method based on blockchain is provided, which is applied to a business-end blockchain node, including:

[0023] Creating a matching transaction data structure for the target business and integrating the business data to be processed according to the transaction data structure to generate shared business data;

[0024] When the information contained in the shared business data meets the automatic execution conditions of the smart contract of the business-end blockchain node, the task of calculating the amount to be counted is automatically executed, the corresponding execution result is generated, and the shared business data is updated and the accounting operation is performed according to the execution result;

[0025] According to preset conditions, the updated shared business data is collected and a request for processing business to be counted is sent to the server-side blockchain node, wherein the request for processing business to be counted carries the updated shared business data.

[0026] Optionally, creating a matching transaction data structure for the target business includes:

[0027] A transaction data structure based on an unused transaction output model (UTXO) is created, wherein the transaction data structure includes a transaction ID, transaction input, and output units.

[0028] Optionally, automatically executing the task of calculating the amount to be counted, generating a corresponding execution result, and updating the shared business data according to the execution result includes:

[0029] Calculate the amount to be counted according to the business amount in the shared business data and the proportion of the amount to be counted in the business amount, and determine the output account according to the shared business data and the account mapping table in the smart contract;

[0030] The output unit of the shared business data is updated based on the amount to be counted and the output account.

[0031] Optionally, before creating a matching transaction data structure for the target business, the following steps are also included:

[0032] Obtaining a calculation method for the amount to be counted, determining a mapping relationship between transaction information and accounting accounts, and generating a corresponding account mapping table according to the mapping relationship between the transaction information and accounting accounts;

[0033] Creating the smart contract according to the calculation method of the amount to be counted and the account mapping table;

[0034] Write the smart contract into the blockchain network.

[0035] Optionally, before automatically executing the task of calculating the amount to be counted, the following steps are also included:

[0036] Monitor whether the state machine, transaction and / or trigger condition in the smart contract of the business-end blockchain node meets the preset execution conditions;

[0037] If any of the state machines, transactions and / or trigger conditions in the smart contract meets the preset execution conditions, the smart contract reaches the automatic execution conditions.

[0038] Optionally, writing the smart contract into the blockchain network includes:

[0039] The updated shared business data signed with the private key is transmitted to the blockchain network, and the validity of the updated shared business data transmitted to the blockchain network is verified. When the validity verification of the updated shared business data is successful, the updated shared business data is integrated into a hash block ID, and the hash block ID is diffused to the entire network.

[0040] Optionally, collecting updated shared business data according to preset conditions and sending a request for processing business to be counted to the server-side blockchain node includes:

[0041] Collect shared business data according to preset conditions;

[0042] Integrate the shared business data to generate business data to be counted, and process the business data to be counted to generate a corresponding hash value;

[0043] Send a request for processing the business to be counted to the server-side blockchain node, wherein the request for processing the business to be counted carries the business data to be counted and the corresponding hash value.

[0044] According to another aspect of the embodiment of this specification, a data processing method based on blockchain is provided, which is applied to a server-side blockchain node, including:

[0045] receiving a service processing request, wherein the service processing request carries shared service data;

[0046] When the information contained in the shared business data meets the automatic execution conditions of the smart contract of the server-side blockchain node, the task of calculating the amount to be counted is automatically executed, the corresponding execution result is generated, and the shared business data is updated and the accounting operation is performed according to the execution result;

[0047] The updated shared business data is collected according to preset conditions and the total amount to be counted in the updated shared business data is calculated.

[0048] Optionally, after calculating the total amount to be counted in the updated shared business data, the method further includes:

[0049] The output unit in the business data to be counted is updated according to the calculation result, and the business processing to be counted of the business-end blockchain node is completed based on the calculation result;

[0050] The updated business data to be counted is written into the blockchain.

[0051] According to another aspect of an embodiment of this specification, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the blockchain-based data processing method when executing the instructions.

[0052] According to another aspect of an embodiment of this specification, a computer-readable storage medium is provided, which stores computer instructions, and when the instructions are executed by a processor, the steps of the blockchain-based data processing method are implemented.

[0053] In the embodiments of this specification, a matching transaction data structure is created for the target business through the business-side blockchain node, and the business data to be processed is integrated according to the transaction data structure to generate shared business data. When the automatic execution conditions of the smart contract of the business-side blockchain node are met, the task of calculating the amount to be counted is automatically executed to generate a corresponding execution result. According to the execution result, the shared business data is updated and the accounting operation is performed. According to the preset conditions, the updated shared business data is collected and a business processing request to be counted is sent to the server-side blockchain node. The server-side blockchain node receives the business processing request to be counted and calculates the total amount to be counted in the updated shared business data. In the embodiments of this specification, a distributed ledger jointly maintained by the business side and the server side is established, and the transaction data generated by each transaction on the business side is calculated in real time on the ledger, which greatly improves the efficiency of data settlement. The use of blockchain can also ensure the immutability and accuracy of transaction data. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 is a schematic diagram of a blockchain-based data processing system provided in an embodiment of the present application;

[0055] Figure 2 is a structural block diagram of a computing device provided in an embodiment of the present application;

[0056] Figure 3 is a flowchart of a blockchain-based data processing method provided in an embodiment of the present application;

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

[0058] Figure 5 It is an interactive diagram of the blockchain-based data processing method provided in the embodiment of the present application in the application scenario of the insurance business alliance chain. DETAILED DESCRIPTION

[0059] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0060] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0061] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0062] First, the terms involved in one or more embodiments of the present invention are explained.

[0063] Unspent Transaction Output: UTXO for short. UTXO is a certain amount of currency that cannot be divided, is locked by the owner or recorded in the blockchain, and is recognized as a currency unit by the entire network.

[0064] In the present application, a blockchain-based data processing system, method, computing device and storage medium are provided, which are described in detail one by one in the following embodiments.

[0065] Figure 1 A schematic diagram of a blockchain-based data processing system according to an embodiment of the present specification is shown, including:

[0066] The business-end blockchain node 102 and the server-end blockchain node 104 on the blockchain 100.

[0067] The business-end blockchain node 102 is configured to create a matching transaction data structure for the target business and integrate the business data to be processed according to the transaction data structure to generate shared business data. When the information contained in the shared business data meets the automatic execution condition of the smart contract of the business-end blockchain node, the task of calculating the amount to be counted is automatically executed, and the corresponding execution result is generated. According to the execution result, the shared business data is updated and the accounting operation is performed. According to the preset conditions, the updated shared business data is collected and a request for processing the business to be counted is sent to the server-end blockchain node, and the request for processing the business to be counted carries the updated shared business data.

[0068] The server-side blockchain node 104 is configured to receive the request for processing the business to be counted and calculate the total amount to be counted in the updated shared business data.

[0069] In one embodiment of this specification, the business-end blockchain node includes: a business-end blockchain business subnode and a business-end blockchain accounting subnode;

[0070] The business-side blockchain business sub-node is configured to create a matching transaction data structure for the target business and integrate the to-be-processed business data according to the transaction data structure to generate shared business data, and send a bookkeeping request to the business-side blockchain bookkeeping sub-node, wherein the bookkeeping request carries the shared business data;

[0071] The business-side blockchain accounting sub-node is configured to receive the accounting request, and when the automatic execution conditions of the smart contract in the business-side blockchain accounting sub-node are met, automatically execute the task of calculating the amount to be counted, generate the corresponding execution result, and update the shared business data according to the smart contract execution result and perform the accounting operation.

[0072] In one embodiment of the present specification, the business-side blockchain accounting sub-node is also configured to collect updated shared business data according to preset conditions and send a request for processing business to be counted to the server, wherein the request for processing business to be counted carries the updated shared business data.

[0073] In one embodiment of the present specification, the business-end blockchain business sub-node is further configured to create a transaction data structure based on an unused transaction output model (UTXO), wherein the transaction data structure includes a transaction ID, transaction input and output units, wherein the transaction input unit is accompanied by a signature unlocking script for using an account balance, and the transaction output unit is accompanied by a locking script for the output balance, which is used to limit that only a specified account can use the corresponding UTXO unit.

[0074] There are two different recording modes used in the blockchain network. The first method is called the "Unused Transaction Output (UTXO)" model, and the second method is the "Account / Balance" model. In one embodiment of this specification, a transaction data structure is created based on the "Unused Transaction Output" model, where each transaction will spend the amount of the previous transaction balance, which is called the "Unused Transaction Output". A new "Unused Transaction Output" will be generated after each transaction, and all "Unused Transaction Outputs" will be stored in each fully synchronized node.

[0075] In one embodiment of the present specification, the business-end blockchain accounting sub-node is further configured to calculate the amount to be counted based on the business amount in the shared business data and the proportion of the amount to be counted in the business amount, and determine the output account based on the shared business data and the account mapping table in the smart contract, and update the output unit of the shared business data based on the amount to be counted and the output account.

[0076] In one embodiment of the present specification, the business-end blockchain accounting sub-node is also configured to monitor whether the state machine, transaction and / or trigger condition in the smart contract meet the preset execution conditions. If any one of the state machine, transaction and / or trigger condition in the smart contract meets the preset execution conditions, the smart contract reaches the automatic execution condition.

[0077] In one embodiment of the present specification, the business-end blockchain business sub-node is also configured to obtain a calculation method for the amount to be counted, determine a mapping relationship between transaction information and accounting accounts, and generate a corresponding account mapping table based on the mapping relationship between the transaction information and accounting accounts, create the smart contract based on the calculation method for the amount to be counted and the account mapping table, and write the smart contract into the blockchain network.

[0078] In one embodiment of the present specification, the business-end blockchain accounting sub-node is also configured to obtain a calculation method for the amount to be counted, determine a mapping relationship between transaction information and an accounting account, and generate a corresponding account mapping table based on the mapping relationship between the transaction information and the accounting account, create the smart contract based on the calculation method for the amount to be counted and the account mapping table, and write the smart contract into the blockchain network.

[0079] In one embodiment of this specification, both the business-side blockchain business sub-node and the business-side blockchain accounting sub-node can be used to generate smart contracts.

[0080] In one embodiment of the present specification, the business-end blockchain node is also configured to transmit the updated shared business data signed with a private key into the blockchain network, and to verify the validity of the updated shared business data transmitted into the blockchain network. When the validity verification of the updated shared business data is successful, the updated shared business data is integrated into a hash block ID, and the hash block ID is diffused to the entire network.

[0081] In one embodiment of the present specification, the business-side blockchain accounting sub-node is further configured to collect shared business data according to preset conditions, integrate the shared business data to generate business data to be counted, process the business data to be counted to generate a corresponding hash value, and send a business processing request to be counted to the server-side blockchain node, wherein the business processing request to be counted carries the business data to be counted and the corresponding hash value.

[0082] In one embodiment of the present specification, the server-side blockchain node is further configured to obtain the business data to be counted and the corresponding hash value carried in the business processing request to be counted, verify the validity of the business data to be counted based on the hash value, and if the verification is passed, calculate the total amount to be counted in the business data to be counted, update the output unit in the business data to be counted according to the calculation result, and complete the business processing to be counted on the business-side blockchain node based on the calculation result.

[0083] In one embodiment of the present specification, the server-side blockchain node is further configured to write the updated business data to be counted into the blockchain.

[0084] In one embodiment of the specification of this invention, the server-side blockchain node is also configured to transmit the updated business data to be counted signed by the private key into the blockchain network, and verify the validity of the updated business data to be counted transmitted into the blockchain network. When the validity verification of the updated business data to be counted is successful, the updated business data to be counted is integrated into a hash block ID, and the hash block ID is spread to the entire network.

[0085] In one embodiment of the present specification, a distributed ledger jointly maintained by the business end and the service end is established, and the transaction data generated by each transaction on the business end is calculated in real time on the ledger, which greatly improves the efficiency of data settlement. The use of blockchain can also ensure the immutability and accuracy of transaction data.

[0086] Figure 2The structure block diagram of a computing device 200 according to an embodiment of the present specification is shown. The components of the computing device 200 include but are not limited to a memory 210 and a processor 220. The processor 220 is connected to the memory 210 via a bus 230, and the database 250 is used to store data.

[0087] The computing device 200 also includes an access device 240 that enables the computing device 200 to communicate via one or more networks 260. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 240 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0088] In one embodiment of the present specification, the above components of the computing device 200 and Figure 2 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 2 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0089] The computing device 200 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 200 may also be a mobile or stationary server.

[0090] The processor 220 may execute Figure 3 The steps in the blockchain-based data processing method are shown. Figure 3 A flowchart of a blockchain-based data processing method according to an embodiment of the present specification is shown, including steps 302 to 306.

[0091] Step 302: Create a matching transaction data structure for the target business and integrate the business data to be processed according to the transaction data structure to generate shared business data.

[0092] In one embodiment of this specification, creating a matching transaction data structure for a target business includes:

[0093] A transaction data structure based on an unused transaction output model (UTXO) is created, wherein the transaction data structure includes a transaction ID, transaction input, and output units.

[0094] Taking the insurance industry as an example, the transaction data structure created is shown in Table 1.

[0095] Table 1

[0096]

[0097] Table 1 includes transaction ID, input unit and output unit. Each transaction generates a transaction ID. The input unit includes source transaction ID, account, transaction type and amount. The source transaction ID is the source of the amount. In the insurance industry, the source transaction ID can be the policy number. The account is the income account of the amount. The transaction information includes user information and policy information. The output unit includes the account and amount. Taking the calculation of policy commission as an example, the account of the output unit is the account for receiving the commission, and the amount is the commission amount.

[0098] In one embodiment of this specification, still taking the insurance industry as an example, user A purchased a health insurance product from insurance company C on Internet sales platform B. The transaction ID was A001, the policy number was C00100001, the premium was 3,000 yuan, the insured amount was 450,000 yuan, and the sales commission ratio of Internet sales platform B was 3% of the premium.

[0099] The shared business data generated by the transaction is integrated according to the transaction data structure and is shown in Table 2.

[0100] Table 2

[0101]

[0102]

[0103] Step 304: When the information contained in the shared business data meets the automatic execution conditions of the smart contract of the business-end blockchain node, the task of calculating the amount to be counted is automatically executed, the corresponding execution result is generated, and the shared business data is updated and the accounting operation is performed according to the execution result.

[0104] In one embodiment of this specification, after the business data to be processed is integrated according to the transaction data structure to generate shared business data, the state machine, transaction and / or trigger condition in the smart contract of the business end blockchain node is monitored to see whether they meet the preset execution conditions. If any one of the state machine, transaction and / or trigger condition in the smart contract meets the preset execution condition, the smart contract reaches the automatic execution condition, automatically executes the task of calculating the amount to be counted, calculates the amount to be counted according to the business amount in the shared business data and the proportion of the amount to be counted in the business amount, determines the output account according to the shared business data and the account mapping table in the smart contract, and updates the output unit of the shared business data based on the amount to be counted and the output account.

[0105] In an embodiment of this specification, the insurance industry is still taken as an example. The amount to be counted is the commission generated by each transaction, and the business amount is the insured amount of each transaction. Taking Table 2 in step 302 as an example, the insured amount in the shared business data is 3000, and the commission accounts for 3% of the insured amount. The commission generated by the transaction is calculated to be 90. According to the account mapping table in the smart contract, the output account can be determined as: B-Health Insurance-Online Sales-To be settled.

[0106] The results of updating Table 2 according to the commission amount and output account are shown in Table 3.

[0107] Table 3

[0108]

[0109]

[0110] In one embodiment of the present specification, each time a transaction occurs, a new transaction data structure is generated. When the number of new transaction data structures reaches a preset threshold value N, the business end blockchain node packages and spreads the N transaction data structures to other blockchain nodes so that other blockchain nodes can reach a consensus on the transaction data structure.

[0111] Specifically, the business-side blockchain node transmits the updated shared business data signed with the private key to the blockchain network, and verifies the validity of the updated shared business data transmitted to the blockchain network. When the validity verification of the updated shared business data is successful, the updated shared business data is integrated into a hash block ID, and the hash block ID is spread to the entire network.

[0112] Step 306: Collect the updated shared business data according to the preset conditions and send a request for processing the business to be counted to the server-side blockchain node, wherein the request for processing the business to be counted carries the updated shared business data.

[0113] In one embodiment of the present specification, collecting updated shared business data according to preset conditions and sending a request for business processing to be counted to the server-side blockchain node can be achieved by the following steps:

[0114] Collect shared business data according to preset conditions;

[0115] Integrate the shared business data to generate business data to be counted, and process the business data to be counted to generate a corresponding hash value;

[0116] Send a request for processing the business to be counted to the server-side blockchain node, wherein the request for processing the business to be counted carries the business data to be counted and the corresponding hash value.

[0117] In one embodiment of the present specification, assuming that the preset condition is to generate three new transactions, and Internet platform B generates three new transactions, the data of these three transactions are integrated to generate the business data to be counted.

[0118] Still taking the insurance industry as an example, the business data to be counted generated by integrating the data of three transactions is shown in Table 4.

[0119] Table 4

[0120]

[0121] In one embodiment of the present specification, the business-side blockchain subnode processes the business data to be counted to generate a corresponding hash value, and sends a business processing request to be counted to the server-side blockchain node, wherein the business processing request carries the business data to be counted and the corresponding hash value. The server-side blockchain node receives the business processing request to be counted, and verifies the validity of the business data to be counted based on the hash value. If the verification is successful, the total amount to be counted in the business data to be counted is calculated, and the output unit in the business data to be counted is updated according to the calculation result. The updated result is shown in Table 5, and the business processing to be counted of the business-side blockchain node is completed based on the calculation result.

[0122] Table 5

[0123]

[0124] Insurance company C transfers the corresponding virtual currency to the corresponding account according to the account and amount of the output unit in Table 5, performs accounting operations, and writes the updated business data to be counted into the blockchain.

[0125] In one embodiment of this specification, the preset condition is to generate three new transactions. In actual applications, the preset condition can be determined according to actual needs and is not limited here.

[0126] In one embodiment of this specification, before the business-end blockchain node creates a matching transaction data structure for the target business, a smart contract is first generated, and the smart contract includes a calculation method for the amount to be counted and an account mapping table. The process of generating the smart contract can be specifically implemented by the following steps:

[0127] Obtaining a calculation method for the amount to be counted, determining a mapping relationship between transaction information and accounting accounts, and generating a corresponding account mapping table according to the mapping relationship between the transaction information and accounting accounts;

[0128] Creating the smart contract according to the calculation method of the amount to be counted and the account mapping table;

[0129] Write the smart contract into the blockchain network.

[0130] In one embodiment of this specification, taking the insurance industry as an example, the amount to be counted is the commission, and the calculation method of the amount to be counted is the proportion of the commission in the insured amount. Determining the mapping relationship between transaction information and accounting accounts means determining the accounting account corresponding to the transaction information based on the transaction information. Assuming that part of the information of a transaction is: User A purchased a health insurance product of insurance company C on Internet sales platform B, it can be determined that the accounting account corresponding to the transaction is Internet sales platform B-health insurance-online sales-unsettled commission.

[0131] In one embodiment of the present specification, the specific method of writing the smart contract into the blockchain network is: the updated shared business data signed with the private key is transmitted to the blockchain network, and the validity of the updated shared business data transmitted to the blockchain network is verified. When the validity verification of the updated shared business data is successful, the updated shared business data is integrated into a hash block ID, and the hash block ID is spread to the entire network.

[0132] In one embodiment of the present specification, a transaction data structure is created based on the UXTO model, and each transaction data is integrated according to the transaction data structure, which provides convenience for the insurance company to calculate the total commission. In addition, the unlocking script of the input and output units of the model can also provide users with more privacy. The business-side blockchain node writes the transaction data into the blockchain after calculating the amount to be counted for each transaction data. The server-side blockchain node writes the business data to the blockchain after calculating the total amount to be counted in the business data to be counted, thereby ensuring the data cannot be tampered with.

[0133] Figure 4 A flowchart of a blockchain-based data processing method according to an embodiment of the present specification is shown, including steps 402 to 406.

[0134] Step 402: Receive a service processing request, wherein the service processing request carries shared service data.

[0135] In one embodiment of this specification, a transaction data structure based on an unused transaction output model (UTXO) is created by a business-side blockchain node for a target business, and the transaction data structure includes a transaction ID, a transaction input, and an output unit. The business data to be processed is integrated according to the transaction data structure to generate shared business data, and a business processing request is sent to a server-side blockchain node, and the business processing request carries the shared business data.

[0136] In one embodiment of this specification, before receiving a business processing request, the server-side blockchain node generates a smart contract, which includes a calculation method for the amount to be counted and an account mapping table. The generation process of the smart contract can be implemented by the following steps:

[0137] Obtaining a calculation method for the amount to be counted, determining a mapping relationship between transaction information and accounting accounts, and generating a corresponding account mapping table according to the mapping relationship between the transaction information and accounting accounts;

[0138] Creating the smart contract according to the calculation method of the amount to be counted and the account mapping table;

[0139] Write the smart contract into the blockchain network.

[0140] In one embodiment of the present specification, the updated shared business data signed with the private key is transmitted to the blockchain network, and the validity of the updated shared business data transmitted to the blockchain network is verified. When the validity verification of the updated shared business data is successful, the updated shared business data is integrated into a hash block ID, and the hash block ID is spread to the entire network.

[0141] Step 404: When the information contained in the shared business data meets the automatic execution conditions of the smart contract of the server-side blockchain node, the task of calculating the amount to be counted is automatically executed, the corresponding execution result is generated, and the shared business data is updated and the accounting operation is performed according to the execution result.

[0142] In one embodiment of the present specification, after receiving the business processing request, the server-side blockchain node monitors whether the state machine, transaction and / or trigger condition in the smart contract of the server-side blockchain node meets the preset execution condition. If any one of the state machine, transaction and / or trigger condition in the smart contract meets the preset execution condition, the smart contract reaches the automatic execution condition, automatically executes the task of calculating the amount to be counted, calculates the amount to be counted according to the business amount in the shared business data and the proportion of the amount to be counted in the business amount, determines the output account according to the shared business data and the account mapping table in the smart contract, and updates and accounts the output unit of the shared business data based on the amount to be counted and the output account.

[0143] In one embodiment of the present specification, each time a transaction occurs, a new transaction data structure is generated. When the number of new transaction data structures reaches a preset threshold value N, the server-side blockchain node packages and spreads the N transaction data structures to other blockchain nodes so that other blockchain nodes can reach a consensus on the transaction data structure.

[0144] Specifically, the server-side blockchain node transmits the updated shared business data signed with the private key to the blockchain network, and verifies the validity of the updated shared business data transmitted to the blockchain network. When the validity verification of the updated shared business data is successful, the updated shared business data is integrated into a hash block ID, and the hash block ID is spread to the entire network.

[0145] Step 406: Collect updated shared business data according to preset conditions and calculate the total amount to be counted in the updated shared business data.

[0146] In one embodiment of the present specification, the server-side blockchain node collects updated shared business data according to preset conditions, integrates the updated shared business data to generate business data to be counted, and calculates the total amount to be counted in the business data to be counted. The output unit in the business data to be counted is updated according to the calculation result, and the business to be counted of the business-side blockchain node is processed based on the calculation result, and the updated business data to be counted is written into the blockchain.

[0147] Specifically, the method for writing the updated business data to be counted into the blockchain is: the updated business data to be counted signed with a private key is transmitted into the blockchain network, and the validity of the updated business data to be counted transmitted into the blockchain network is verified; when the validity verification of the updated business data to be counted is successful, the updated business data to be counted is integrated into a hash block ID, and the hash block ID is spread to the entire network.

[0148] In one embodiment of the present specification, by transmitting each newly generated transaction data to the blockchain node in real time for commission calculation, real-time performance is ensured, and the calculation results are spread to other blockchain nodes, thereby achieving data immutability.

[0149] Figure 5 An interactive schematic diagram of the blockchain-based data processing method provided according to an embodiment of this specification in an application scenario of an insurance business alliance chain is shown, including steps 502 to 516.

[0150] Step 502: The Internet sales platform receives the user's insurance request.

[0151] In one embodiment of the present specification, after receiving the insurance request from the user, the Internet platform sells the corresponding insurance to the user and records the relevant transaction data.

[0152] Step 504: The Internet sales platform generates shared business data.

[0153] In one embodiment of this specification, before receiving the user's insurance request, the Internet sales platform creates a transaction data structure based on the unused transaction output model (UTXO) for the target business, and the transaction data structure includes a transaction ID, transaction input and output units. When a new transaction occurs, the transaction data is integrated according to the transaction data structure to generate shared business data.

[0154] Step 506: The Internet sales platform sends a bookkeeping request to the bookkeeping node.

[0155] Step 508: The accounting node updates the shared service data.

[0156] In one embodiment of the present specification, the accounting request carries shared business data, and monitors whether the state machine, transaction and / or trigger conditions in the smart contract of the accounting node meet the preset execution conditions. If any one of the state machine, transaction and / or trigger conditions in the smart contract meets the preset execution conditions, the smart contract reaches the automatic execution condition, automatically executes the task of calculating the commission, calculates the commission according to the insured amount in the shared business data and the proportion of the commission in the insured amount, determines the accounting account according to the shared business data and the account mapping table in the smart contract, and updates the output unit of the shared business data based on the commission and the accounting account. When the number of new transaction data structures reaches the preset threshold value N, the accounting node packages and spreads the N transaction data structures to other blockchain nodes so that other blockchain nodes reach a consensus on the transaction data structure.

[0157] In one embodiment of the present specification, the accounting node may be any node on the insurance business alliance chain, wherein the insurance business alliance chain is constructed based on multiple nodes of insurance companies and Internet sales platforms.

[0158] Step 510: The accounting node sends a request for processing the business to be counted to the insurance company.

[0159] In one example of this specification, the request for processing the business to be counted is the request for settlement of the total commission amount. Taking the preset condition of three transactions as an example, the accounting node integrates the three pending transaction data into the pending business data and sends the pending business processing request to the insurance company.

[0160] Step 512: The insurance company calculates the total amount to be counted.

[0161] Step 514: The insurance company sends a billing request to the billing node.

[0162] Step 516: The insurance company transfers the commission to the Internet sales platform.

[0163] In one embodiment of the present specification, the insurance company calculates the sum of three commissions in the business data to be counted, updates the output unit in the business data to be counted according to the calculation result, sends the calculation result to the accounting node for accounting, and transfers a corresponding amount of virtual currency to the Internet platform according to the calculation result.

[0164] In one embodiment of the present specification, a distributed ledger jointly maintained by an Internet sales platform and an insurance company is established, and the transaction data generated by each transaction on the Internet sales platform is calculated in real time on the accounting node, which greatly improves the efficiency of commission settlement. The use of blockchain can also ensure the immutability and accuracy of transaction data.

[0165] In one embodiment of the present specification, a computing device is also provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the blockchain-based data processing method when executing the instructions.

[0166] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the blockchain-based data processing method as described above.

[0167] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the data processing method based on blockchain are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the data processing method based on blockchain.

[0168] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0169] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0170] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0171] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0172] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is limited only by the claims and their full scope and equivalents.

Claims

1. A data processing system based on blockchain, characterized in that: include: A business-end blockchain node on a blockchain and a service-end blockchain node different from the business-end blockchain node, wherein the business-end blockchain node includes: a business-end blockchain business subnode and a business-end blockchain accounting subnode; The business-side blockchain business sub-node is configured to create a matching transaction data structure for the target business and integrate the to-be-processed business data according to the transaction data structure to generate shared business data, and send a bookkeeping request to the business-side blockchain bookkeeping sub-node, wherein the bookkeeping request carries the shared business data; The business-end blockchain accounting subnode is configured to automatically execute the task of calculating the amount to be counted when the information contained in the shared business data meets the automatic execution condition of the smart contract of the business-end blockchain node, generate a corresponding execution result, update the shared business data according to the execution result and perform accounting operations, and send a request for processing the business to be counted to the service-end blockchain node, wherein the request for processing the business to be counted carries the updated shared business data, and the smart contract is generated by the business-end blockchain business subnode or the business-end blockchain accounting subnode; The server-side blockchain node is configured to receive the request for processing the business to be counted and calculate the total amount to be counted in the updated shared business data.

2. The system according to claim 1, characterized in that The business-side blockchain accounting sub-node is further configured to collect updated shared business data according to preset conditions and send a request for processing business to be counted to the server-side blockchain node.

3. The system according to claim 1, characterized in that The business-end blockchain business subnode is further configured to create a transaction data structure based on the unused transaction output model UTXO, wherein the transaction data structure includes a transaction ID, transaction input and output units, the transaction input unit is accompanied by a signature unlocking script for using the account balance, and the transaction output unit is accompanied by a locking script for the output balance, which is used to limit that only the specified account can use the corresponding UTXO unit.

4. The system according to claim 1, characterized in that The business-end blockchain accounting sub-node is further configured to calculate the amount to be counted based on the business amount in the shared business data and the proportion of the amount to be counted in the business amount, determine the output account based on the shared business data and the account mapping table in the smart contract, and update the output unit of the shared business data based on the amount to be counted and the output account.

5. The system according to claim 1, wherein: The business-end blockchain accounting sub-node is also configured to monitor whether the state machine, transaction and / or trigger condition in the smart contract meet the preset execution conditions. If any one of the state machine, transaction and / or trigger condition in the smart contract meets the preset execution conditions, the smart contract reaches the automatic execution condition.

6. The system according to claim 1, wherein: The business-end blockchain business sub-node is also configured to obtain a calculation method for the amount to be counted, determine a mapping relationship between transaction information and accounting accounts, and generate a corresponding account mapping table based on the mapping relationship between the transaction information and accounting accounts, create the smart contract based on the calculation method for the amount to be counted and the account mapping table, and write the smart contract into the blockchain network.

7. The system according to claim 1, characterized in that The business-end blockchain accounting sub-node is also configured to obtain a calculation method for the amount to be counted, determine a mapping relationship between transaction information and an accounting account, generate a corresponding account mapping table based on the mapping relationship between the transaction information and the accounting account, create the smart contract based on the calculation method for the amount to be counted and the account mapping table, and write the smart contract into the blockchain network.

8. The system according to claim 1, wherein: The business-end blockchain node is also configured to transmit the updated shared business data signed with the private key into the blockchain network, verify the validity of the updated shared business data transmitted into the blockchain network, and when the validity verification of the updated shared business data is successful, integrate the updated shared business data into a hash block ID, and spread the hash block ID to the entire network.

9. The system according to claim 1, characterized in that The business-side blockchain accounting sub-node is further configured to collect shared business data according to preset conditions, integrate the shared business data to generate business data to be counted, process the business data to be counted to generate a corresponding hash value, and send a business processing request to be counted to the server-side blockchain node, wherein the business processing request to be counted carries the business data to be counted and the corresponding hash value.

10. The system according to claim 9, characterized in that The server-side blockchain node is further configured to obtain the business data to be counted and the corresponding hash value carried in the business processing request to be counted, verify the validity of the business data to be counted based on the hash value, and if the verification is passed, calculate the total amount to be counted in the business data to be counted, update the output unit in the business data to be counted according to the calculation result, and complete the business processing to be counted on the business-side blockchain node based on the calculation result.

11. The system according to claim 10, characterized in that The server-side blockchain node is also configured to write the updated business data to be counted into the blockchain.

12. A data processing method based on blockchain, characterized in that: Applied to a business-side blockchain node, the business-side blockchain node includes a business-side blockchain business subnode and a business-side blockchain accounting subnode, and the method includes: The business-side blockchain business subnode creates a matching transaction data structure for the target business and integrates the business data to be processed according to the transaction data structure to generate shared business data, and sends a bookkeeping request to the business-side blockchain bookkeeping subnode, wherein the bookkeeping request carries the shared business data; The business-end blockchain accounting subnode automatically executes the task of calculating the amount to be counted, generates a corresponding execution result, and updates the shared business data and performs accounting operations according to the execution result, when the information contained in the shared business data meets the automatic execution condition of the smart contract of the business-end blockchain node, and the smart contract is generated by the business-end blockchain business subnode or the business-end blockchain accounting subnode; The business-end blockchain accounting sub-node sends a request for processing the business to be counted to the server-end blockchain node, wherein the request for processing the business to be counted carries the updated shared business data.

13. The method according to claim 12, characterized in that The step of creating a matching transaction data structure for the target business includes: A transaction data structure based on an unused transaction output model UTXO is created, wherein the transaction data structure includes a transaction ID, a transaction input, and an output unit.

14. The method according to claim 13, characterized in that The automatically executing the task of calculating the amount to be counted, generating a corresponding execution result, and updating the shared business data according to the execution result includes: Calculate the amount to be counted according to the business amount in the shared business data and the proportion of the amount to be counted in the business amount, and determine the output account according to the shared business data and the account mapping table in the smart contract; The output unit of the shared business data is updated based on the amount to be counted and the output account.

15. The method according to claim 12, characterized in that Before creating a matching transaction data structure for the target business, the method further includes: Obtaining a calculation method for the amount to be counted, determining a mapping relationship between transaction information and accounting accounts, and generating a corresponding account mapping table according to the mapping relationship between the transaction information and accounting accounts; Creating the smart contract according to the calculation method of the amount to be counted and the account mapping table; Write the smart contract into the blockchain network.

16. The method according to claim 12, characterized in that Before the task of automatically executing the calculation of the amount to be counted is performed, the method further includes: Monitor whether the state machine, transaction and / or trigger condition in the smart contract of the business-end blockchain node meets the preset execution conditions; If any of the state machines, transactions and / or trigger conditions in the smart contract meets the preset execution conditions, the smart contract reaches the automatic execution conditions.

17. The method according to claim 15, characterized in that Writing the smart contract into the blockchain network includes: The updated shared business data signed with the private key is transmitted to the blockchain network, and the validity of the updated shared business data transmitted to the blockchain network is verified. When the validity verification of the updated shared business data is successful, the updated shared business data is integrated into a hash block ID, and the hash block ID is diffused to the entire network.

18. The method according to claim 12, characterized in that The sending of a request for processing services to be counted to a server-side blockchain node includes: Collect updated shared business data according to preset conditions; Integrate the shared business data to generate business data to be counted, and process the business data to be counted to generate a corresponding hash value; Send a request for processing the business to be counted to the server-side blockchain node, wherein the request for processing the business to be counted carries the business data to be counted and the corresponding hash value.

19. A data processing method based on blockchain, characterized in that: Applied to server-side blockchain nodes, including: Receiving a business processing request sent by a business-end blockchain accounting subnode in a business-end blockchain node, wherein the business processing request carries shared business data, and the shared business data is generated by the business-end blockchain accounting subnode by automatically executing the task of calculating the amount to be counted when the information contained in the shared business data meets the automatic execution condition of the smart contract of the business-end blockchain node, and the shared business data carried in the accounting request sent by the business-end blockchain business subnode in the business-end blockchain node is updated, and the updated shared business data is collected and obtained according to preset conditions, wherein the business-end blockchain node includes the business-end blockchain business subnode and the business-end blockchain accounting subnode, and the smart contract is generated by the business-end blockchain business subnode or the business-end blockchain accounting subnode; When the information contained in the shared business data meets the automatic execution conditions of the smart contract of the server-side blockchain node, the task of calculating the amount to be counted is automatically executed, the corresponding execution result is generated, and the shared business data is updated and the accounting operation is performed according to the execution result; The updated shared business data is collected according to preset conditions and the total amount to be counted in the updated shared business data is calculated.

20. The method of claim 19, wherein: After calculating the total amount to be counted in the updated shared business data, the method further includes: The output unit of the shared business data in the business processing request is updated according to the calculation result, and the business processing of the business-end blockchain node is completed based on the calculation result; Write the updated shared business data into the blockchain.

21. A computing device comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the instructions, the steps of the method according to any one of claims 12 to 20 are implemented.

22. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of the method described in any one of claims 12 to 20 are implemented.