Business Information Processing Method, Apparatus, Device, and Medium Based on Blockchain System
By adopting a blockchain system-based business information processing method in bank-enterprise Internet transaction business, and using the combination of the main blockchain network and the sub-blockchain network, the problem of cumbersome acquisition of cross-bank account data is solved, improving business verification efficiency and reducing risks.
Patent Information
- Application Number
- CN202210603794.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-05-30
AI Technical Summary
In the bank-enterprise Internet transaction business, due to the cumbersome acquisition of cross-bank account data, the business verification efficiency is low.
The business information processing method based on the blockchain system is adopted, and the combination of the main blockchain network and the sub-blockchain network can achieve safe, reliable and efficient transmission and verification of business information.
It improves the business verification efficiency of bank-enterprise Internet transaction services, reduces business risks, and improves the response speed of the blockchain system and reduces the hardware cost by reducing the number of nodes in a single blockchain network.
Smart Images

Figure CN114997987B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical fields of blockchain and finance, and more particularly, to a method, an apparatus, an electronic device, and a storage medium for processing business information based on a blockchain system. Background Art
[0002] In the enterprise-bank interconnection transaction business, an enterprise can connect to a bank front-end machine in the form of the Internet or a dedicated line to achieve seamless connection between the ERP (Enterprise Resource Planning) system and the banking business system, and establish a fast and smooth information interaction channel.
[0003] With the continuous expansion of the enterprise-bank interconnection transaction business, an enterprise inevitably needs to conduct business transactions through multiple accounts and different banks. Under the relevant technical framework, due to the cumbersome acquisition of cross-bank account data, the business verification efficiency of the enterprise-bank interconnection transaction business is relatively low. Summary of the Invention
[0004] In view of this, the present disclosure provides a method for processing business information based on a blockchain system, an apparatus for processing business information based on a blockchain system, an electronic device, and a readable storage medium.
[0005] One aspect of the present disclosure provides a method for processing business information based on a blockchain system. The blockchain system includes a main blockchain network and a secondary blockchain network. The main blockchain network includes a bank main node and a customer main node. The secondary blockchain network includes a customer secondary node and a sub-account secondary node. The customer secondary node is associated with the customer main node. The method includes: in response to triggering a preset event, obtaining target business information through a target sub-account secondary node associated with the preset event, where the preset event represents that a banking business processing system has completed the processing of a target business; writing the target business information into a target secondary blockchain ledger through the target sub-account secondary node, where the target secondary blockchain ledger is the blockchain ledger of the target secondary blockchain network to which the target sub-account secondary node belongs; sending the target business information to a target customer main node associated with the target customer secondary node based on the target secondary blockchain ledger through the target customer secondary node of the target secondary blockchain network; writing the target business information into the main blockchain ledger of the main blockchain network through the target customer main node; and sending the target business information to the banking business processing system based on the main blockchain ledger through the bank main node, where the banking business processing system verifies the target business based on the target business information.
[0006] According to an embodiment of the present disclosure, the above-mentioned target customer sub-node of the above-mentioned target secondary blockchain network sends the above-mentioned target service information to the target customer main node associated with the above-mentioned target customer sub-node based on the above-mentioned target secondary blockchain ledger, including: determining a target block from the above-mentioned target secondary blockchain ledger through the above-mentioned target customer sub-node based on the customer identification information of the above-mentioned target service; parsing the above-mentioned target block to obtain the above-mentioned target service information; and sending the above-mentioned target service information to the above-mentioned target customer main node.
[0007] According to an embodiment of the present disclosure, the above-mentioned obtaining of the target service information by the target sub-account sub-node in response to triggering a preset event includes: obtaining posting information from the target account information associated with the target sub-account sub-node through the target sub-account sub-node, where the above-mentioned posting information is generated in response to triggering the above-mentioned preset event; and encrypting the above-mentioned posting information with a target customer certificate to obtain the above-mentioned target service information, where the above-mentioned target customer certificate is a credential when connecting the above-mentioned target customer main node to the main blockchain network and when connecting the above-mentioned target secondary blockchain network to the blockchain system.
[0008] According to an embodiment of the present disclosure, the above-mentioned banking service processing system verifies the above-mentioned target service based on the above-mentioned target service information, including: the above-mentioned banking service processing system obtains the service processing result of the above-mentioned target service from a database; decrypting the above-mentioned target service information with the above-mentioned target customer certificate to obtain the above-mentioned posting information; and verifying the above-mentioned service processing result with the above-mentioned posting information.
[0009] According to an embodiment of the present disclosure, the above-mentioned writing of the above-mentioned target service information into the target secondary blockchain ledger by the above-mentioned target sub-account sub-node includes: writing the above-mentioned target service information into a first block through the above-mentioned target sub-account sub-node; in response to triggering a first recording event, performing consensus on the above-mentioned first block through the above-mentioned target secondary blockchain network to obtain a first consensus result; and in the case where the above-mentioned first consensus result indicates that consensus is reached, writing the above-mentioned first block into the above-mentioned target secondary blockchain ledger through the above-mentioned target secondary blockchain network.
[0010] According to an embodiment of the present disclosure, the above-mentioned consensus on the first block through the target secondary blockchain network in response to triggering a first recording event to obtain a first consensus result includes: in response to triggering the first recording event, generating, through the target secondary blockchain network, a first consensus request based on the first block, where the first consensus request carries first consensus information; sending the first consensus request to the target sub-account secondary node through the target secondary blockchain network; in the case where the target sub-account secondary node passes the verification of the first consensus information, sending the first consensus request to the first consensus node of the target secondary blockchain network through the target sub-account secondary node; in the case where the first target consensus node in the first consensus node passes the verification of the first consensus information, sending first consensus feedback information to the target sub-account secondary node and the second consensus node, where the second consensus node includes the first consensus nodes other than the first target consensus node in the first consensus node; sending second consensus feedback information to the target secondary blockchain network through the target sub-account secondary node or the first consensus node based on the received first consensus feedback information; and determining the first consensus result through the target secondary blockchain network based on the second consensus feedback information.
[0011] According to an embodiment of the present disclosure, the above-mentioned writing of the target service information into the main blockchain ledger of the main blockchain network by the target customer main node includes: writing the target service information into a second block by the target customer main node; in response to triggering a second recording event, performing consensus on the second block through the main blockchain network to obtain a second consensus result; and in the case where the second consensus result indicates that consensus is reached, writing the second block into the main blockchain ledger through the main blockchain network.
[0012] According to an embodiment of the present disclosure, the above-mentioned consensus on the second block through the main blockchain network in response to triggering the second recording event to obtain a second consensus result includes: in response to triggering the second recording event, generating a second consensus request based on the second block through the main blockchain network, wherein the second consensus request carries second consensus information; sending the second consensus request to the target customer main node through the main blockchain network; in the case where the target customer main node passes the verification of the second consensus information, sending the second consensus request to the third consensus node of the main blockchain network through the target customer main node; in the case where the second target consensus node in the third consensus node passes the verification of the second consensus information, sending third consensus feedback information to the target customer main node and the fourth consensus node, wherein the fourth consensus node includes the third consensus nodes other than the second target consensus node in the third consensus node; sending fourth consensus feedback information to the main blockchain network by the target customer main node or the third consensus node based on the received third consensus feedback information; and determining the second consensus result based on the fourth consensus feedback information through the main blockchain network.
[0013] According to an embodiment of the present disclosure, the above-mentioned method further includes: in response to triggering a recording event, determining consensus nodes from candidate nodes of the blockchain network through the blockchain network; wherein the recording event includes a first recording event or a second recording event, the blockchain network includes a target secondary blockchain network or the main blockchain network, and the candidate nodes include target customer secondary nodes of the target secondary blockchain network and all sub-account secondary nodes of the target secondary blockchain network, or all customer main nodes of the main blockchain network.
[0014] According to an embodiment of the present disclosure, the above-mentioned determining consensus nodes from candidate nodes of the blockchain network in response to triggering a recording event includes: for each of the above-mentioned candidate nodes, determining, through the blockchain network, a first time value consumed by the candidate node to generate a first preset number of blocks and a second time value consumed by parsing a preset hash function; determining an effectiveness parameter of the candidate node based on the first time value and the second time value; and selecting the second preset number of the above-mentioned candidate nodes with the highest effectiveness parameter as the consensus nodes.
[0015] Another aspect of the present disclosure provides a business information processing apparatus based on a blockchain system. The blockchain system includes a main blockchain network and a secondary blockchain network. The main blockchain network includes a bank main node and a customer main node. The secondary blockchain network includes a customer secondary node and a sub-account secondary node. The customer secondary node is associated with the customer main node. The apparatus includes: an acquisition module, configured to, in response to triggering a preset event, acquire target business information through a target sub-account secondary node associated with the preset event, where the preset event represents that a banking business processing system has completed processing of a target business; a first writing module, configured to write the target business information into a target secondary blockchain ledger through the target sub-account secondary node, where the target secondary blockchain ledger is a blockchain ledger of a target secondary blockchain network to which the target sub-account secondary node belongs; a first sending module, configured to send the target business information to a target customer main node associated with the target customer secondary node based on the target secondary blockchain ledger through the target customer secondary node of the target secondary blockchain network; a second writing module, configured to write the target business information into the main blockchain ledger of the main blockchain network through the target customer main node; and a second sending module, configured to send the target business information to the banking business processing system based on the main blockchain ledger through the bank main node, where the banking business processing system verifies the target business based on the target business information.
[0016] Another aspect of the present disclosure provides an electronic device, including: one or more processors; a memory, configured to store one or more instructions, where when the one or more instructions are executed by the one or more processors, the one or more processors are caused to implement the method as described above.
[0017] Another aspect of the present disclosure provides a computer-readable storage medium, storing computer-executable instructions, where the instructions are used to implement the method as described above when executed.
[0018] According to an embodiment of the present disclosure, after the target service is processed, the target service information can be uploaded to the target secondary blockchain ledger of the target secondary blockchain network through the target sub-account secondary node associated with the target service; thereafter, the target service information can be synchronized to the target customer primary node through the target customer secondary node of the target secondary blockchain network; the target customer primary node can upload the target service information to the primary blockchain ledger of the primary blockchain network; then, the bank primary node can obtain the target service information from the primary blockchain ledger and send the target service information to the banking service processing system so that the banking service processing system can verify the target service information. By using the blockchain system, the account change information occurring after the target service is processed can be sent to the banking service processing system to implement the tracking verification of the target service by the banking service processing system, so at least partially overcoming the technical problem in the related art that the business verification efficiency of the bank-enterprise interconnection transaction service is relatively low due to the cumbersome acquisition of cross-bank account data, thereby effectively improving the business verification efficiency of the bank-enterprise interconnection transaction service and reducing the business risk. On the other hand, by setting up the primary blockchain network and the secondary blockchain network in the blockchain system, the number of nodes in a single blockchain network is greatly reduced, so at least partially overcoming the technical problem of low working efficiency of the blockchain network in the related art, thereby effectively improving the response speed of the blockchain system and reducing the hardware cost of the blockchain system. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, the above and other objects, features, and advantages of the present disclosure will become clearer. In the drawings:
[0020] Figure 1 Schematically shows an exemplary system architecture to which the business information processing method and apparatus based on the blockchain system according to an embodiment of the present disclosure can be applied.
[0021] Figure 2 Schematically shows a structural diagram of the blockchain system according to an embodiment of the present disclosure.
[0022] Figure 3 Schematically shows a flowchart of the business information processing method based on the blockchain system according to an embodiment of the present disclosure.
[0023] Figure 4 Schematically shows a schematic diagram of the second block consensus process according to an embodiment of the present disclosure.
[0024] Figure 5 Schematically shows a flowchart of the consensus node election process according to an embodiment of the present disclosure.
[0025] Figure 6ASchematically shows an architecture diagram of a bank-enterprise interconnection platform according to an embodiment of the present disclosure.
[0026] Figure 6B Schematically shows a flowchart of a business processing method for applying a bank-enterprise interconnection platform according to an embodiment of the present disclosure.
[0027] Figure 7 Schematically shows a block diagram of a business information processing device based on a blockchain system according to an embodiment of the present disclosure.
[0028] Figure 8 Schematically shows a block diagram of an electronic device suitable for implementing a business information processing method based on a blockchain system according to an embodiment of the present disclosure. Detailed implementation manners
[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is obvious that one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present disclosure.
[0030] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0031] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0032] In the case of using expressions such as "at least one of A, B, and C, etc.", generally, it should be interpreted according to the meaning that those skilled in the art usually understand this expression (for example, "a system having at least one of A, B, and C" should include but not be limited to a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", generally, it should be interpreted according to the meaning that those skilled in the art usually understand this expression (for example, "a system having at least one of A, B, or C" should include but not be limited to a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0033] In the silver-enterprise interconnection transaction business, it is a relatively common way to connect an enterprise with a bank through a silver-enterprise interconnection system. By using the silver-enterprise interconnection system, an enterprise can connect to the bank front-end machine in the form of the Internet or a dedicated line, realize the seamless connection between the ERP system and the banking business system, and establish a fast and smooth information interaction channel. After the bank authenticates the customer's identity through a digital certificate, the customer can directly initiate a transaction from the ERP system to realize the free and secure exchange of transaction information. It improves the efficiency of customers handling business and ensures the security of transactions.
[0034] However, under the relevant technical framework, due to the limitations of technical conditions and inter-bank barriers, the silver-enterprise interconnection transaction does not set up a step to verify whether the funds actually arrive, and it is impossible to monitor in real time the accounting risks caused by errors in the active and passive systems. In addition, due to the cumbersome steps of obtaining cross-bank accounting data, the cross-bank transaction verification efficiency is relatively low.
[0035] In view of this, the embodiments of the present disclosure provide a method for verifying silver-enterprise interconnection transactions by using a blockchain system. A blockchain is a distributed shared ledger that cannot be arbitrarily changed. In a blockchain, data is stored in each block node, and the consistency of multi-node data is achieved by using formula algorithms. In a blockchain, no block can modify or delete data information by itself, and new additional information needs to be synchronized to all blocks. The immutability of the data on the chain meets the objective requirements of banks for data security. Based on the blockchain system, it is possible to verify the account movement situations of both the borrower and the lender after the silver-enterprise interconnection account movement transaction: when an enterprise initiates an account movement transaction using the bank system, the bank will track this transaction according to the account movement information in the blockchain, automatically verify the result of the account movement under the premise that the customer is unaware, reduce the situations of wrong accounts, chaotic accounts, and lost accounts, improve the user experience, and the information transparency is no longer restricted by the bank type, realizing the verification of cross-bank transactions.
[0036] Specifically, the embodiments of the present disclosure provide a business information processing method, device, electronic device and readable storage medium based on a blockchain system. The method is implemented based on a blockchain system, and the blockchain system includes a main blockchain network and a secondary blockchain network, the main blockchain network includes a bank main node and a customer main node, the secondary blockchain network includes a customer secondary node and a sub-account secondary node, and the customer secondary node is associated with the customer main node. The method includes: in response to triggering a preset event, obtaining target business information through a target sub-account secondary node associated with the preset event, wherein the preset event is characterized as the completion of the processing of the target business by the bank business processing system; writing the target business information into a target secondary blockchain account book through the target sub-account secondary node, wherein the target secondary blockchain account book is a blockchain account book of the target secondary blockchain network to which the target sub-account secondary node belongs; sending the target business information to the target customer primary node associated with the target customer secondary node based on the target secondary blockchain account book through the target customer secondary node of the target secondary blockchain network; writing the target business information into the main blockchain account book of the main blockchain network through the target customer primary node; and sending the target business information to the bank business processing system based on the main blockchain account book through the bank primary node, wherein the bank business processing system verifies the target business based on the target business information.
[0037] It should be noted that the business information processing method and device based on the blockchain system determined in the embodiments of the present disclosure can be used in the field of blockchain technology or the financial field. For example, the method and device can be used in bank-enterprise interconnected transaction business, and used for the banking business system to track and verify the business after completing the business processing. The business information processing method and device based on the blockchain system determined in the embodiments of the present disclosure can also be used in any field other than the field of blockchain technology and the financial field. For example, the method and device can be used in the government field to verify the business completed by multiple parts in cooperation. The application field of the business information processing method and device based on the blockchain system determined in the embodiments of the present disclosure is not limited.
[0038] In the technical solution disclosed in the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.
[0039] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0040] It should be noted that, unless it is explicitly stated that there is a sequence of execution between different operations shown in the flowchart in the embodiments of the present disclosure, or there is a sequence of execution between different operations in technical implementation, otherwise, the execution order of multiple operations may not be prioritized, and multiple operations may also be executed simultaneously.
[0041] Figure 1 Schematically shows an exemplary system architecture to which a business information processing method and apparatus based on a blockchain system according to an embodiment of the present disclosure can be applied. It should be noted that, Figure 1 What is shown is only an example of a system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0042] As Figure 1 shown, the system architecture 100 according to this embodiment may include a main blockchain network 110, secondary blockchain networks 120, 130, and a network 140.
[0043] The main blockchain network 110 may include main nodes 111, 112, and 113. The secondary blockchain networks 120, 130 may share a main node with the main blockchain network 110. For example, the main node 112 exists in the secondary blockchain network 120, and the main node 113 exists in the secondary blockchain network 130. The secondary blockchain network 120 may include the main node 112 and secondary nodes 121, 122. The secondary blockchain network 130 may include the main node 113 and secondary nodes 131, 132.
[0044] The network 140 is used to provide a medium for communication links between the nodes of the main blockchain network 110 and between the nodes of the secondary blockchain networks 120, 130. The network 140 may include various connection types, such as wired and / or wireless communication links, etc.
[0045] After any one of the secondary nodes (such as the secondary node 121, but not limited to this) in the secondary blockchain networks 120, 130 obtains business information, it can synchronize the business information to the main node 112 through the consensus mechanism of the secondary blockchain network 120. After that, the main node 112 can include the business information into a block through the consensus mechanism of the main blockchain network 110, so that when business verification is required, the business information can be obtained from the ledger of the main blockchain network 110.
[0046] It should be noted that the business information processing method based on the blockchain system provided by the embodiments of the present disclosure can generally be executed by the blockchain system. Correspondingly, the business information processing apparatus based on the blockchain system provided by the embodiments of the present disclosure can generally be set in the blockchain system.
[0047] It should be understood that, Figure 1 the numbers of the main blockchain network, secondary blockchain networks, main nodes, secondary nodes, and the network are merely illustrative. According to the implementation requirements, there can be any number of main blockchain networks, secondary blockchain networks, main nodes, secondary nodes, and networks.
[0048] Figure 2 Schematically shows a schematic diagram of the structure of a blockchain system according to an embodiment of the present disclosure.
[0049] As Figure 2 shown, the blockchain system may include a main blockchain network and multiple secondary blockchain networks. The main blockchain network may include a bank main node and a customer main node. The secondary blockchain networks include customer secondary nodes and sub-account secondary nodes, and the customer secondary nodes are associated with the customer main node.
[0050] Figure 3 Schematically shows a flowchart of a business information processing method based on a blockchain system according to an embodiment of the present disclosure.
[0051] As Figure 3 shown, the method includes operations S301 to S305.
[0052] In operation S301, in response to triggering a preset event, obtain target business information through a target sub-account secondary node associated with the preset event. The preset event is characterized by the banking business processing system completing the processing of the target business.
[0053] In operation S302, write the target business information into the target secondary blockchain ledger through the target sub-account secondary node. The target secondary blockchain ledger is the blockchain ledger of the target secondary blockchain network to which the target sub-account secondary node belongs.
[0054] In operation S303, based on the target secondary blockchain ledger, the target customer secondary node of the target secondary blockchain network sends the target business information to the target customer main node associated with the target customer secondary node.
[0055] In operation S304, write the target business information into the main blockchain ledger of the main blockchain network through the target customer main node.
[0056] In operation S305, based on the main blockchain ledger, the bank main node sends the target business information to the banking business processing system. The banking business processing system verifies the target business based on the target business information.
[0057] According to an embodiment of the present disclosure, the bank main node may be generated after being registered by the management system of the bank in the main blockchain network.
[0058] According to an embodiment of the present disclosure, the customer main node may be generated after being registered by the customer group in the main blockchain network. After the customer main node is registered in the main blockchain network, the blockchain system may generate a secondary blockchain network related to the customer main node. The customer group may also generate a customer secondary node in the secondary blockchain network by registering in the secondary blockchain network.
[0059] According to an embodiment of the present disclosure, a sub-account secondary node may be generated after each sub-account of a customer group is registered in a secondary blockchain network associated with the customer group.
[0060] According to an embodiment of the present disclosure, after the banking business processing system completes the processing of a target business, that is, after a preset event is triggered, two or more sub-accounts associated with the target business will have account movement transactions, thereby generating transaction information, that is, target business information. The electronic device to which the sub-account belongs may transmit the transaction information to the target sub-account secondary node.
[0061] According to an embodiment of the present disclosure, when the target sub-account secondary node writes the target business information into the target secondary blockchain ledger, each node in the target secondary blockchain network may perform consensus on the target business information, and after reaching consensus, complete the block writing operation. The algorithms used by each node for consensus may include but are not limited to POW (Proof of Work), POS (Proof of Stake), DPOS (Delegated Proof of Stake), PBFT (Practical Byzantine Fault Tolerance), DBFT (Delegated Byzantine Fault Tolerant), etc., which are not limited herein.
[0062] According to an embodiment of the present disclosure, after the target business information is chained in the target secondary blockchain ledger of the target secondary blockchain network, the target customer secondary node may obtain the target business information through the target secondary blockchain ledger. Since the target customer primary node and the target customer secondary node may be obtained by the same customer group registering in the primary blockchain network and the target secondary blockchain network respectively, the target customer secondary node may send the target business information to the target customer primary node by any wired or wireless communication method, and the specific communication method is not limited herein.
[0063] According to an embodiment of the present disclosure, when the target customer primary node writes the target business information into the primary blockchain ledger, each node in the primary blockchain network may perform consensus on the target business information, and after reaching consensus, complete the block writing operation. The algorithms used by each node for consensus may include but are not limited to POW, POS, DPOS, PBFT, DBFT, etc., which are not limited herein.
[0064] According to an embodiment of the present disclosure, after the target business information is chained in the primary blockchain ledger of the primary blockchain network, the bank primary node may obtain the target business information through the primary blockchain ledger.
[0065] According to an embodiment of the present disclosure, after the target service is processed, the target service information can be uploaded to the target secondary blockchain ledger of the target secondary blockchain network through the target sub-account secondary node associated with the target service; thereafter, the target service information can be synchronized to the target customer primary node through the target customer secondary node of the target secondary blockchain network; the target customer primary node can upload the target service information to the primary blockchain ledger of the primary blockchain network; then, the bank primary node can obtain the target service information from the primary blockchain ledger and send the target service information to the banking service processing system so that the banking service processing system can verify the target service information. By using the blockchain system, the account change information occurring after the target service is processed can be sent to the banking service processing system to implement the tracking and verification of the target service by the banking service processing system, so at least partially overcoming the technical problem of low service verification efficiency of the bank-enterprise interconnection transaction service caused by the cumbersome acquisition of cross-bank account data in the related art, thereby effectively improving the service verification efficiency of the bank-enterprise interconnection transaction service and reducing the service risk. On the other hand, by setting the primary blockchain network and the secondary blockchain network in the blockchain system, the number of nodes in a single blockchain network is greatly reduced, so at least partially overcoming the technical problem of low working efficiency of the blockchain network in the related art, thereby effectively improving the response speed of the blockchain system and reducing the hardware cost of the blockchain system.
[0066] The following refers to Figure 4 、 Figure 5 、 Figure 6A and Figure 6B , and further illustrate the method shown in Figure 3 in combination with specific embodiments.
[0067] According to an embodiment of the present disclosure, operation S301 may include the following operations:
[0068] Obtain the account movement information from the target account information associated with the target sub-account secondary node through the target sub-account secondary node, where the account movement information includes that generated in response to triggering a preset event; and encrypt the account movement information using the target customer certificate to obtain the target service information, where the target customer certificate represents the credentials when the target customer primary node accesses the primary blockchain network and when the target secondary blockchain network accesses the blockchain system.
[0069] According to an embodiment of the present disclosure, the target sub-account secondary node may be registered by the target sub-account in the target secondary blockchain network, the target account information associated with the target sub-account secondary node may refer to the transaction detail information of the target sub-account, and the account movement information may refer to the information related to the target service in the transaction detail information.
[0070] According to an embodiment of the present disclosure, encrypting the account movement information may adopt symmetric encryption or asymmetric encryption, which is not limited herein. Taking asymmetric encryption as an example, both the public key used for encryption and the private key used for decryption may be generated based on the target customer certificate. When encrypting, the relevant public key may be obtained from the encryption and decryption server through the target customer certificate, or the public key may be stored in the customer group and each sub-account of the customer group. Subsequently, the public key may be used to encrypt the account movement information to obtain the target service information.
[0071] According to an embodiment of the present disclosure, the target customer certificate may be a CA / EM certificate sent by the bank to the customer group when the customer group accesses the bank-enterprise interconnection system. The customer group may use the target customer certificate as a credential to achieve the access of the target customer main node, the target customer secondary node, and the sub-account secondary node.
[0072] According to an embodiment of the present disclosure, operation S302 may include the following operations:
[0073] Write the target service information into the first block through the target sub-account secondary node; in response to triggering the first recording event, perform consensus on the first block through the target secondary blockchain network to obtain the first consensus result; and, in the case where the first consensus result indicates that consensus is reached, write the first block into the target secondary blockchain ledger through the target secondary blockchain network.
[0074] According to an embodiment of the present disclosure, the target secondary blockchain network may periodically perform block chain-in operations. During the interval period between every two block chain-in operations, the information to be written into the target secondary blockchain ledger may first be written into a block, that is, the first block. The first recording event may be triggered when the target secondary blockchain network performs block chain-in operations.
[0075] According to an embodiment of the present disclosure, performing consensus on the first block through the target secondary blockchain network may be implemented by adopting any consensus algorithm, which is not limited herein.
[0076] According to an embodiment of the present disclosure, operation S303 may include the following operations:
[0077] Determine the target block from the target secondary blockchain ledger through the target customer secondary node based on the customer identification information of the target service; parse the target block to obtain the target service information; and send the target service information to the target customer main node.
[0078] According to an embodiment of the present disclosure, the customer identification information may include the identification information of the target sub-account associated with the target service, the identification information of the customer group to which the target sub-account belongs, the service processing time information associated with the target service, etc. The composition of the customer identification information may be set according to specific application scenarios, which is not limited herein.
[0079] According to an embodiment of the present disclosure, after a sub-account of a customer group is registered as a target sub-account secondary node on a target secondary blockchain network, the sub-account can achieve real-time monitoring of the target secondary blockchain ledger.
[0080] According to an embodiment of the present disclosure, the process of determining a target block from the target secondary blockchain ledger may be to use the last block in the target secondary blockchain ledger as the target block; it may also be to use the earliest block among multiple blocks in the target secondary blockchain ledger whose block dropping time is later than the service processing time information of the target service as the target block; it may also be to use the identification information of the target sub-account as a keyword to retrieve a preset number of blocks in the target secondary blockchain ledger, so as to determine the target block.
[0081] According to an embodiment of the present disclosure, parsing the target block may refer to obtaining target service information from the block information included in the target block.
[0082] According to an embodiment of the present disclosure, operation S304 may include the following operations:
[0083] Writing the target service information into the second block through the target customer primary node; in response to triggering a second recording event, performing consensus on the second block through the primary blockchain network to obtain a second consensus result; and, in the case where the second consensus result indicates that consensus is reached, writing the second block into the primary blockchain ledger through the primary blockchain network.
[0084] According to an embodiment of the present disclosure, the primary blockchain network may perform block chain-in operations periodically. During the interval period between every two block chain-in operations, the information to be written into the primary blockchain ledger may first be written into a block, that is, the second block. The second recording event may be triggered when the primary blockchain network performs block chain-in operations.
[0085] According to an embodiment of the present disclosure, performing consensus on the second block through the primary blockchain network may be implemented by adopting any consensus algorithm, which is not limited herein.
[0086] Taking the authorized Byzantine fault tolerance algorithm as an example, the process of performing consensus on the second block by the primary blockchain network will be described below.
[0087] Figure 4 Schematically shows a schematic diagram of the second block consensus process according to an embodiment of the present disclosure.
[0088] As Figure 4As shown, the second block consensus process may include a request initiation phase (request), a pre-prepare phase (pre-prepare), a prepare phase (prepare), a commit phase (commit), and a reply phase (reply). The third consensus nodes 1 and 2 may be consensus nodes in a normal state, and the third consensus node 3 may be a consensus node in an abnormal state.
[0089] According to an embodiment of the present disclosure, in response to triggering a second record event, the second block consensus process enters the request initiation phase. In the request initiation phase, a second consensus request may be generated based on the second block through the main blockchain network.
[0090] According to an embodiment of the present disclosure, the second consensus request may carry second consensus information, which may include timestamp information, main blockchain network identification information, the content of the second block, the digest information of the second block content, etc., and is not limited herein.
[0091] According to an embodiment of the present disclosure, in the request initiation phase, the main blockchain network may sign the second consensus request and send the second consensus request to the main node.
[0092] According to an embodiment of the present disclosure, the main node may be elected from the second consensus nodes; it may also be any designated node in the main blockchain network, such as the target customer main node, etc., and is not limited herein. Hereinafter, the target customer main node is used as the main node to illustrate the second block consensus process.
[0093] According to an embodiment of the present disclosure, in the request initiation phase, the main blockchain network sending the second consensus request to the main node may be: sending the second consensus request to the target customer main node through the main blockchain network.
[0094] According to an embodiment of the present disclosure, in the pre-prepare phase, the target customer main node may verify the received second consensus request. Specific verification operations may include verifying whether the signature of the second consensus request is correct, verifying whether the timestamp information of the second consensus request is correct, etc., and are not limited herein.
[0095] According to an embodiment of the present disclosure, in the case where the second consensus information fails to pass the verification of the target customer main node, the target customer main node may discard the second consensus request and end the consensus process for the second block.
[0096] According to an embodiment of the present disclosure, when the second consensus information is verified and passed by the target client master node, the target client master node can assign a number to the second consensus request and sign the second consensus request. Then, the second consensus request is broadcast in the main blockchain network, that is, the second consensus request is sent to the third consensus node in the main blockchain network through the target client master node.
[0097] According to an embodiment of the present disclosure, the number assigned to the second consensus request can be used to sort the second consensus request to ensure the stability of the consensus process.
[0098] According to an embodiment of the present disclosure, the third consensus node can be elected from among the various nodes in the main blockchain network.
[0099] According to an embodiment of the present disclosure, in the preparation stage, any one of the third consensus nodes in the third consensus nodes, that is, the second target consensus node, can verify the received second consensus request. The specific verification operations can include verifying whether the signature of the second consensus request by the target client master node is correct, determining whether the second consensus request is received repeatedly, determining whether the content of the second block included in the second consensus request corresponds to the content digest of the second block, etc., which are not limited herein.
[0100] According to an embodiment of the present disclosure, when the second consensus information fails to pass the verification of the second target consensus node, the second target consensus node can discard the second consensus request, that is, it does not respond to the second consensus request.
[0101] According to an embodiment of the present disclosure, when the second target consensus node verifies and passes the second consensus information, it can send third consensus feedback information to other nodes. That is, when the second target consensus node in the third consensus nodes verifies and passes the second consensus information, it sends third consensus feedback information to the target client master node and the fourth consensus node.
[0102] According to an embodiment of the present disclosure, the fourth consensus node can include the third consensus nodes other than the second target consensus node in the third consensus nodes.
[0103] According to an embodiment of the present disclosure, in addition to the information of the second consensus request, the third consensus feedback information can also include the signature of the second target consensus node on the second consensus request, etc.
[0104] According to an embodiment of the present disclosure, in the commitment stage, any one of the target customer master node and the third consensus node may verify the third consensus feedback information after receiving it. Specific verification operations may include verifying whether the signature in the preparation stage is correct, determining whether the content of the second block included in the third consensus feedback information corresponds to the content digest of the second block, etc., which are not limited herein.
[0105] According to an embodiment of the present disclosure, any one of the target customer master node and the third consensus node may determine whether to commit to the second consensus request based on the ratio of the number of received third consensus feedback information to the number of third consensus nodes. That is, the target customer master node or the third consensus node sends the fourth consensus feedback information to the main blockchain network based on the received third consensus feedback information. For example, when the number P of received third consensus feedback information is greater than the security threshold R, the node may commit to the second consensus request, and the security threshold R may be related to the number N of third consensus nodes, such as N≥R≥2N / 3.
[0106] According to an embodiment of the present disclosure, the main blockchain network may determine the second consensus result based on the number of received fourth feedback information. That is, the main blockchain network determines the second consensus result based on the fourth consensus feedback information. For example, when the number of received fourth consensus feedback information is less than the security threshold, the obtained second consensus result may be that consensus is not reached; when the number of received fourth consensus feedback information is greater than or equal to the security threshold, the obtained second consensus result may be that consensus is reached.
[0107] According to an embodiment of the present disclosure, by using a consensus algorithm to control the operation of the second block entering the chain, it is possible to ensure the consistency of the data recorded by each node in the blockchain network, thereby ensuring the normal operation of the blockchain system.
[0108] According to an embodiment of the present disclosure, taking the authorized Byzantine fault tolerance algorithm as an example, the process of the target secondary blockchain network reaching a consensus on the first block may include the following operations:
[0109] In response to triggering a first recording event, a first consensus request is generated based on a first block through a target secondary blockchain network, where the first consensus request carries first consensus information; the first consensus request is sent to a target sub-account secondary node through the target secondary blockchain network; in the case where the target sub-account secondary node passes the verification of the first consensus information, the first consensus request is sent to a first consensus node of the target secondary blockchain network through the target sub-account secondary node; in the case where a first target consensus node in the first consensus node passes the verification of the first consensus information, first consensus feedback information is sent to the target sub-account secondary node and a second consensus node, where the second consensus node includes first consensus nodes other than the first target consensus node in the first consensus node; based on the received first consensus feedback information, a second consensus feedback information is sent to the target secondary blockchain network through the target sub-account secondary node or the first consensus node; and, based on the second consensus feedback information, a first consensus result is determined through the target secondary blockchain network.
[0110] According to an embodiment of the present disclosure, for a specific description of the process of the target secondary blockchain network performing consensus on the first block, reference may be made to Figure 3 the description of the process of the main blockchain network performing consensus on the second block therein, which will not be elaborated herein.
[0111] According to an embodiment of the present disclosure, the first consensus node and the third consensus node may be elected, that is, in response to triggering a recording event, consensus nodes are determined from candidate nodes of the blockchain network through the blockchain network.
[0112] According to an embodiment of the present disclosure, the recording event may include a first recording event or a second recording event, the blockchain network may include a target secondary blockchain network or a main blockchain network, and the candidate nodes may include target customer secondary nodes of the target secondary blockchain network and all sub-account secondary nodes of the target secondary blockchain network, or, all customer main nodes of the main blockchain network.
[0113] Figure 5 Schematically shows a flowchart of a consensus node election process according to an embodiment of the present disclosure.
[0114] As Figure 5 shown, the consensus node election process may include operations S501 to S503.
[0115] In operation S501, for each candidate node, the blockchain network determines a first time value consumed by the candidate node to generate a first preset number of blocks, and a second time value consumed to parse a preset hash function.
[0116] In operation S502, based on the first time value and the second time value, the validity parameter of the candidate node is determined.
[0117] In operation S503, select the second preset number of candidate nodes with the highest validity parameters as consensus nodes.
[0118] According to an embodiment of the present disclosure, the first preset number and the second preset number can be set according to the specific scenario used, and are not limited herein.
[0119] According to an embodiment of the present disclosure, based on the first time value and the second time value, determining the validity parameter of the candidate node can be as shown in formula (1):
[0120]
[0121] In the formula, t represents the second time value; time n represents the first time value; t 0 represents the time measure, which can be a hyperparameter; n represents the first preset number; a represents the validity parameter.
[0122] Figure 6A Schematically shows an architecture diagram of a bank-enterprise interconnection platform according to an embodiment of the present disclosure.
[0123] As Figure 6A shown, the bank-enterprise interconnection platform 600 can be composed of an enterprise resource planning system 610, a bank-enterprise interconnection system 620, a banking business processing system 630, and a blockchain system 640.
[0124] According to an embodiment of the present disclosure, when an enterprise generates a transaction demand, a transaction request can be initiated in the enterprise resource planning system 610, data such as access elements and business elements are filled in according to the transaction demand, and the transaction information is encrypted according to the bank encryption rules. After encryption, a JSON format transaction message data packet is obtained, and the transaction message data packet can be transmitted to the bank-enterprise interconnection system 620 through the Internet or a dedicated line.
[0125] According to an embodiment of the present disclosure, the bank-enterprise interconnection system 620 can use the enterprise CA / EM certificate to identify the enterprise identity, extract the transaction information in the transaction message data packet, and perform a preliminary verification on the transaction information. For example, verify the customer certificate key, verify the signature of the transaction request, check the interface call permission of the enterprise, etc. After the verification passes, the transaction message data packet is forwarded to the banking business processing system 630. The bank-enterprise interconnection system 620 can also receive the feedback message from the banking business processing system 630 and return the feedback message to the enterprise resource planning system 610.
[0126] According to an embodiment of the present disclosure, the banking business processing system 630 can check the protocol permission and customer account permission based on the received transaction message data packet, and transfer the transaction information in the transaction message data packet to the corresponding bank back-end system for business processing to obtain a processing result.
[0127] According to an embodiment of the present disclosure, the banking business processing system 630 may also verify the target business after receiving the target business information of the blockchain system 640. Specifically, the following operations may be included: The banking business processing system obtains the business processing result of the target business from the database; decrypts the target business information using the target customer certificate to obtain the account movement information; and verifies the business processing result using the account movement information.
[0128] According to an embodiment of the present disclosure, verifying the business processing result using the account movement information may include: verifying the customer certificate in the transaction message data packet using the identity of the target customer master node in the main blockchain network; verifying the transaction amount in the transaction message data packet using the data change amount information in the account movement information; verifying the account debit and credit symbols in the transaction message data packet using the data change direction information in the account movement information, etc., which are not limited herein.
[0129] According to an embodiment of the present disclosure, the information in the blockchain can be encrypted using the customer certificate. Therefore, the information in the blockchain does not require public authentication, and the data is only for the use of the bank, which can ensure that customer information is not easily leaked.
[0130] According to an embodiment of the present disclosure, the banking business processing system 630 may return the verification result to the enterprise resource planning system 610 through the bank-enterprise interconnection system 620, so that the user can process the verification result.
[0131] According to an embodiment of the present disclosure, after the banking business processing system 630 completes the business processing, the blockchain system 640 may encrypt the account movement information generated after the business processing to obtain the target business information, and record the target business information in the ledger. After that, the blockchain system 640 may also send the target business information to the banking business processing system 630.
[0132] Figure 6B The flowchart of the business processing method applying the bank-enterprise interconnection platform according to an embodiment of the present disclosure is schematically shown.
[0133] As Figure 6B shown, after the process starts, the customer sends a transaction request in the enterprise resource planning system 610 according to their own transaction needs. The enterprise resource planning system 610 automatically packages the transaction information and encrypts it according to the customer certificate to form a transaction request data packet in the JSON standard format, and sends it to the bank-enterprise interconnection system 620 through the Internet or dedicated line.
[0134] According to an embodiment of the present disclosure, the bank-enterprise interconnection system 620 receives, verifies, and forwards transaction information. Specific elements in the data packet are extracted, and the element data that meets the requirements is output as a fixed-length format data packet. The data packet is simultaneously sent to the banking business processing system 630 and the blockchain system 640 for business processing and tracking verification respectively.
[0135] According to an embodiment of the present disclosure, the banking business processing system 630 processes the transaction request according to the system logic and outputs the processing result. The blockchain system 640 monitors the blockchain network in real time. According to the changes in the block data in the blockchain, a blockchain consensus application is initiated to identify the block in which data changes occur in the blockchain network and the data change information. The group customer certificate in the bank-enterprise interconnection transaction information is extracted for identity verification with the main block in the main blockchain of the consensus, the account transaction amount in the bank-enterprise interconnection transaction information is verified with the data change amount in the main and secondary blocks, and the account debit and credit symbols in the bank-enterprise interconnection transaction information are used to verify the data change direction in the main and secondary blocks. If all three verifications pass, the transaction is considered successful.
[0136] According to an embodiment of the present disclosure, based on the verification result and the business processing result, the bank-enterprise interconnection business result is comprehensively generated. If the verification passes, the business processing result is normally output. If the verification result is abnormal, the customer is notified that the transaction is abnormal, and the accounts are promptly reconciled with the bank. At the same time, the abnormal transaction information is resubmitted to the banking business processing system 630 for reprocessing of the abnormal transaction, and the subsequent processing of the abnormal transaction is completed before the customer reconciles the accounts, ensuring the normal customer transaction result, reducing the customer transaction risk, and improving the user experience.
[0137] Figure 7 A block diagram of a business information processing device based on a blockchain system according to an embodiment of the present disclosure is schematically shown.
[0138] As Figure 7 shown, the blockchain system includes a main blockchain network and a secondary blockchain network. The main blockchain network includes a bank main node and a customer main node. The secondary blockchain network includes a customer secondary node and a sub-account secondary node. The customer secondary node is associated with the customer main node. The business information processing device 700 based on the blockchain system includes an acquisition module 710, a first writing module 720, a first sending module 730, a second writing module 740, and a second sending module 750.
[0139] The acquisition module 710 is configured to obtain target business information through a target sub-account secondary node associated with a preset event in response to triggering the preset event, where the preset event is characterized by the banking business processing system completing the processing of the target business.
[0140] The first writing module 720 is configured to write target service information into a target secondary blockchain ledger through a target sub-account secondary node, where the target secondary blockchain ledger is the blockchain ledger of the target secondary blockchain network to which the target sub-account secondary node belongs.
[0141] The first sending module 730 is configured to send the target service information to a target customer primary node associated with the target customer secondary node based on the target secondary blockchain ledger through the target customer secondary node of the target secondary blockchain network.
[0142] The second writing module 740 is configured to write the target service information into the primary blockchain ledger of the primary blockchain network through the target customer primary node.
[0143] The second sending module 750 is configured to send the target service information to a banking service processing system based on the primary blockchain ledger through a bank primary node, where the banking service processing system verifies the target service based on the target service information.
[0144] According to an embodiment of the present disclosure, after the target service is processed, the target service information can be chained to the target secondary blockchain ledger of the target secondary blockchain network through the target sub-account secondary node associated with the target service; thereafter, the target service information can be synchronized to the target customer primary node through the target customer secondary node of the target secondary blockchain network; the target customer primary node can chain the target service information to the primary blockchain ledger of the primary blockchain network; then, the bank primary node can obtain the target service information from the primary blockchain ledger and send the target service information to the banking service processing system so that the banking service processing system verifies the target service information. By using the blockchain system, the account change information occurring after the target service is processed can be sent to the banking service processing system to implement the tracking verification of the target service by the banking service processing system, so at least partially overcoming the technical problem of low service verification efficiency of the bank-enterprise interconnection transaction service caused by the cumbersome acquisition of cross-bank account data in the related art, thereby effectively improving the service verification efficiency of the bank-enterprise interconnection transaction service and reducing the service risk. On the other hand, by setting the primary blockchain network and the secondary blockchain network in the blockchain system, the number of nodes in a single blockchain network is greatly reduced, so at least partially overcoming the technical problem of low working efficiency of the blockchain network in the related art, thereby effectively improving the response speed of the blockchain system and reducing the hardware cost of the blockchain system.
[0145] According to an embodiment of the present disclosure, the first sending module 730 includes a first sending unit, a second sending unit, and a third sending unit.
[0146] The first sending unit is configured to determine a target block from a target sub-blockchain ledger based on customer identification information of a target service through a target customer sub-node.
[0147] The second sending unit is configured to parse the target block to obtain target service information.
[0148] The third sending unit is configured to send the target service information to a target customer main node.
[0149] According to an embodiment of the present disclosure, the obtaining module 710 includes a first obtaining unit and a second obtaining unit.
[0150] The first obtaining unit is configured to obtain account movement information from target account information associated with a target sub-account sub-node through the target sub-account sub-node, where the account movement information is generated in response to triggering a preset event.
[0151] The second obtaining unit is configured to encrypt the account movement information using a target customer certificate to obtain target service information, where the target customer certificate is a credential when connecting the target customer main node to the main blockchain network and when connecting the target sub-blockchain network to the blockchain system.
[0152] According to an embodiment of the present disclosure, the second sending module 750 includes a fourth sending unit, a fifth sending unit, and a sixth sending unit.
[0153] The fourth sending unit is configured to obtain a service processing result of a target service from a database by a banking service processing system.
[0154] The fifth sending unit is configured to decrypt the target service information using the target customer certificate to obtain account movement information.
[0155] The sixth sending unit is configured to verify the service processing result using the account movement information.
[0156] According to an embodiment of the present disclosure, the first writing module 720 includes a first writing unit, a second writing unit, and a third writing unit.
[0157] The first writing unit is configured to write the target service information into a first block through the target sub-account sub-node.
[0158] The second writing unit is configured to perform consensus on the first block through the target sub-blockchain network in response to triggering a first recording event to obtain a first consensus result.
[0159] The third writing unit is configured to write the first block into the target sub-blockchain ledger through the target sub-blockchain network when the first consensus result indicates that consensus is reached.
[0160] According to an embodiment of the present disclosure, the second writing unit includes a first writing subunit, a second writing subunit, a third writing subunit, a fourth writing subunit, a fifth writing subunit, and a sixth writing subunit.
[0161] The first writing subunit is configured to, in response to triggering a first recording event, generate a first consensus request based on a first block through a target secondary blockchain network, wherein the first consensus request carries first consensus information.
[0162] The second writing subunit is configured to send the first consensus request to a target sub-account secondary node through the target secondary blockchain network.
[0163] The third writing subunit is configured to, when the target sub-account secondary node passes the verification of the first consensus information, send the first consensus request to a first consensus node of the target secondary blockchain network through the target sub-account secondary node.
[0164] The fourth writing subunit is configured to, when the first target consensus node in the first consensus node passes the verification of the first consensus information, send first consensus feedback information to the target sub-account secondary node and a second consensus node, wherein the second consensus node includes the first consensus nodes other than the first target consensus node in the first consensus node.
[0165] The fifth writing subunit is configured to send second consensus feedback information to the target secondary blockchain network through the target sub-account secondary node or the first consensus node based on the received first consensus feedback information.
[0166] The sixth writing subunit is configured to determine a first consensus result through the target secondary blockchain network based on the second consensus feedback information.
[0167] According to an embodiment of the present disclosure, the second writing module 740 includes a fourth writing unit, a fifth writing unit, and a sixth writing unit.
[0168] The fourth writing unit is configured to write target service information into a second block through a target customer master node.
[0169] The fifth writing unit is configured to, in response to triggering a second recording event, perform consensus on the second block through a main blockchain network to obtain a second consensus result.
[0170] The sixth writing unit is configured to, when the second consensus result indicates that consensus is reached, write the second block into a main blockchain ledger through the main blockchain network.
[0171] According to an embodiment of the present disclosure, the fifth writing unit includes a seventh writing subunit, an eighth writing subunit, a ninth writing subunit, a tenth writing subunit, an eleventh writing subunit, and a twelfth writing subunit.
[0172] The seventh writing subunit is configured to generate a second consensus request based on a second block through a main blockchain network in response to triggering a second recording event, where the second consensus request carries second consensus information.
[0173] The eighth writing subunit is configured to send the second consensus request to a target customer main node through the main blockchain network.
[0174] The ninth writing subunit is configured to, when the target customer main node passes the verification of the second consensus information, send the second consensus request to a third consensus node of the main blockchain network through the target customer main node.
[0175] The tenth writing subunit is configured to, when a second target consensus node in the third consensus node passes the verification of the second consensus information, send third consensus feedback information to the target customer main node and a fourth consensus node, where the fourth consensus node includes third consensus nodes other than the second target consensus node in the third consensus node.
[0176] The eleventh writing subunit is configured to send fourth consensus feedback information to the main blockchain network through the target customer main node or the third consensus node based on the received third consensus feedback information.
[0177] The twelfth writing subunit is configured to determine a second consensus result based on the fourth consensus feedback information through the main blockchain network.
[0178] According to an embodiment of the present disclosure, the service information processing device 700 based on a blockchain system further includes a determination module.
[0179] The determination module is configured to determine a consensus node from candidate nodes of the blockchain network through the blockchain network in response to triggering a recording event.
[0180] According to an embodiment of the present disclosure, the recording event includes a first recording event or a second recording event, the blockchain network includes a target secondary blockchain network or a main blockchain network, and the candidate nodes include target customer secondary nodes of the target secondary blockchain network and all sub-account secondary nodes of the target secondary blockchain network, or all customer main nodes of the main blockchain network.
[0181] According to an embodiment of the present disclosure, the determination module includes a first determination unit, a second determination unit, and a third determination unit.
[0182] The first determination unit is configured to, for each candidate node, determine a first time value consumed by the candidate node to generate a first preset number of blocks and a second time value consumed by parsing a preset hash function through the blockchain network.
[0183] A second determination unit, configured to determine a validity parameter of a candidate node based on a first time value and a second time value.
[0184] A third determination unit, configured to select a second preset number of candidate nodes with the highest validity parameter as consensus nodes.
[0185] According to embodiments of the present disclosure, any combination of a plurality of, or at least part of the functions of any of, the modules, sub-modules, units, and sub-units can be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure can be split into multiple modules for implementation. Any one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware in any other reasonable manner by integrating or packaging circuits, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in a suitable combination of any several of them. Alternatively, one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure can be at least partially implemented as a computer program module, and when the computer program module runs, it can execute corresponding functions.
[0186] For example, any combination of the obtaining module 710, the first writing module 720, the first sending module 730, the second writing module 740, and the second sending module 750 can be implemented by combining them in one module / unit / sub-unit, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the obtaining module 710, the first writing module 720, the first sending module 730, the second writing module 740, and the second sending module 750 can be at least partially implemented as a hardware circuit, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or any other reasonable way of integrating or packaging circuits, etc., implemented by hardware or firmware, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Alternatively, at least one of the obtaining module 710, the first writing module 720, the first sending module 730, the second writing module 740, and the second sending module 750 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding functions can be executed.
[0187] It should be noted that the part of the business information processing device based on the blockchain system in the embodiments of the present disclosure corresponds to the part of the business information processing method based on the blockchain system in the embodiments of the present disclosure. For the description of the part of the business information processing device based on the blockchain system, please refer to the part of the business information processing method based on the blockchain system for details, and will not be elaborated herein.
[0188] Figure 8 Schematically shows a block diagram of an electronic device suitable for implementing a business information processing method based on a blockchain system according to an embodiment of the present disclosure. Figure 8 The shown electronic device is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.
[0189] Such as Figure 8As shown, the computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage section 808 into a random access memory (RAM) 803. The processor 801 can include, for example, a general microprocessor (e.g., CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 can also include on-board memory for caching purposes. The processor 801 can include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0190] In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. The processor 801 performs various operations of the method flow according to an embodiment of the present disclosure by executing the programs in the ROM 802 and / or the RAM 803. It should be noted that the program can also be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 can also perform various operations of the method flow according to an embodiment of the present disclosure by executing the programs stored in the one or more memories.
[0191] According to an embodiment of the present disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, and the input / output (I / O) interface 805 is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read from it can be installed into the storage section 808 as needed.
[0192] According to an embodiment of the present disclosure, the method flow according to the embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described systems, devices, apparatuses, modules, units, etc. can be implemented by computer program modules.
[0193] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist alone without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0194] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
[0195] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the above-described ROM 802 and / or RAM 803 and / or one or more memories other than ROM 802 and RAM 803.
[0196] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program includes program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to cause the electronic device to implement the business information processing method based on the blockchain system provided by the embodiment of the present disclosure.
[0197] When the computer program is executed by the processor 801, the above functions defined in the system / apparatus of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described systems, apparatuses, modules, units, etc. can be implemented by computer program modules.
[0198] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication section 809, and / or installed from the removable medium 811. The program code included in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0199] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedures and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include but are not limited to, such as Java, C++, python, the "C" language, or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., by connecting through the Internet using an Internet service provider).
[0200] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.
[0201] The embodiments of the present disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present disclosure.
Claims
1. A business information processing method based on a blockchain system, wherein, the blockchain system includes a main blockchain network and a secondary blockchain network. The main blockchain network includes a bank main node and a customer main node. The secondary blockchain network includes a customer secondary node and a sub-account secondary node. The customer secondary node is associated with the customer main node. The method includes: In response to triggering a preset event, obtaining target business information through a target sub-account secondary node associated with the preset event, wherein the preset event is characterized by the banking business processing system completing the processing of a target business; Writing the target business information into a target secondary blockchain ledger through the target sub-account secondary node, wherein the target secondary blockchain ledger is the blockchain ledger of the target secondary blockchain network to which the target sub-account secondary node belongs; Based on the target secondary blockchain ledger, sending the target business information to a target customer main node associated with the target customer secondary node through the target customer secondary node of the target secondary blockchain network; Writing the target business information into the main blockchain ledger of the main blockchain network through the target customer main node; and Based on the main blockchain ledger, sending the target business information to the banking business processing system through the bank main node, wherein the banking business processing system verifies the target business based on the target business information; wherein, the writing the target business information into the target secondary blockchain ledger through the target sub-account secondary node includes: Writing the target business information into a first block through the target sub-account secondary node; In response to triggering a first recording event, performing consensus on the first block through the target secondary blockchain network to obtain a first consensus result; and In the case where the first consensus result is characterized by reaching a consensus, writing the first block into the target secondary blockchain ledger through the target secondary blockchain network; wherein, the writing the target business information into the main blockchain ledger of the main blockchain network through the target customer main node includes: Writing the target business information into a second block through the target customer main node; In response to triggering a second recording event, performing consensus on the second block through the main blockchain network to obtain a second consensus result; and In the case where the second consensus result is characterized by reaching a consensus, writing the second block into the main blockchain ledger through the main blockchain network.
2. The method according to claim 1, wherein, the sending the target business information to a target customer main node associated with the target customer secondary node through the target customer secondary node of the target secondary blockchain network based on the target secondary blockchain ledger includes: Determining a target block from the target secondary blockchain ledger through the target customer secondary node based on the customer identification information of the target business; Parsing the target block to obtain the target business information; and Sending the target business information to the target customer main node.
3. The method according to claim 1, wherein, Upon triggering a preset event, obtaining target service information through a target sub-account sub-node associated with the preset event, including: Obtaining posting information from the target account information associated with the target sub-account sub-node through the target sub-account sub-node, where the posting information includes that generated in response to triggering the preset event; and Encrypting the posting information using a target customer certificate to obtain the target service information, where the target customer certificate represents the credentials when the target customer main node is connected to the main blockchain network and when the target sub-blockchain network is connected to the blockchain system.
4. The method according to claim 3, wherein, The banking service processing system validates the target service based on the target service information, including: The banking service processing system obtains the service processing result of the target service from a database; Decrypting the target service information using the target customer certificate to obtain the posting information; and Validating the service processing result using the posting information.
5. The method according to claim 1, wherein, Upon triggering a first recording event, performing consensus on the first block through the target sub-blockchain network to obtain a first consensus result, including: Upon triggering the first recording event, generating a first consensus request based on the first block through the target sub-blockchain network, where the first consensus request carries first consensus information; Sending the first consensus request to the target sub-account sub-node through the target sub-blockchain network; When the target sub-account sub-node passes the verification of the first consensus information, sending the first consensus request to the first consensus node of the target sub-blockchain network through the target sub-account sub-node; When the first target consensus node in the first consensus node passes the verification of the first consensus information, sending first consensus feedback information to the target sub-account sub-node and the second consensus node, where the second consensus node includes the first consensus nodes other than the first target consensus node in the first consensus node; Sending second consensus feedback information to the target sub-blockchain network through the target sub-account sub-node or the first consensus node based on the received first consensus feedback information; and Determining the first consensus result based on the second consensus feedback information through the target sub-blockchain network.
6. The method according to claim 1, wherein, Upon triggering a second recording event, performing consensus on the second block through the main blockchain network to obtain a second consensus result, including: Upon triggering the second recording event, generating a second consensus request based on the second block through the main blockchain network, where the second consensus request carries second consensus information; Sending the second consensus request to the target customer main node through the main blockchain network; When the verification of the second consensus information by the target customer master node is passed, send the second consensus request to the third consensus node of the main blockchain network through the target customer master node; When the verification of the second consensus information by the second target consensus node in the third consensus node is passed, send the third consensus feedback information to the target customer master node and the fourth consensus node, where the fourth consensus node includes the third consensus nodes other than the second target consensus node in the third consensus node; Send the fourth consensus feedback information to the main blockchain network through the target customer master node or the third consensus node based on the received third consensus feedback information; and Determine the second consensus result based on the fourth consensus feedback information by the main blockchain network.
7. The method according to claim 5 or 6, further comprises: In response to a trigger record event, determine a consensus node from the candidate nodes of the blockchain network through the blockchain network; wherein the record event includes a first record event or a second record event, the blockchain network includes a target secondary blockchain network or the main blockchain network, and the candidate nodes include the target customer secondary nodes of the target secondary blockchain network and all sub-account secondary nodes of the target secondary blockchain network, or all customer master nodes of the main blockchain network.
8. The method according to claim 7, wherein the determining a consensus node from the candidate nodes of the blockchain network in response to a trigger record event includes: For each candidate node, determine, through the blockchain network, a first time value consumed by the candidate node to generate a first preset number of blocks and a second time value consumed by parsing a preset hash function; Determine the validity parameter of the candidate node based on the first time value and the second time value; and Select the second preset number of candidate nodes with the highest validity parameter as the consensus node.
9. A business information processing device based on a blockchain system, wherein the blockchain system includes a main blockchain network and a secondary blockchain network, the main blockchain network includes a bank master node and a customer master node, the secondary blockchain network includes a customer secondary node and a sub-account secondary node, the customer secondary node is associated with the customer master node, and the device includes: An acquisition module, configured to obtain target business information through a target sub-account secondary node associated with a preset event in response to a trigger preset event, where the preset event represents that a banking business processing system has completed the processing of a target business; A first writing module, configured to write the target business information into a target secondary blockchain ledger through the target sub-account secondary node, where the target secondary blockchain ledger is the blockchain ledger of the target secondary blockchain network to which the target sub-account secondary node belongs; A first sending module, configured to send the target business information to a target customer master node associated with the target customer secondary node through the target customer secondary node of the target secondary blockchain network based on the target secondary blockchain ledger; A second writing module, configured to write the target service information into the main blockchain ledger of the main blockchain network through the target customer master node; and A second sending module, configured to send the target service information to the banking service processing system through the bank master node based on the main blockchain ledger, where the banking service processing system verifies the target service based on the target service information; Wherein, the first writing module is configured to: Write the target service information into a first block through the target sub-account secondary node; In response to triggering a first recording event, perform consensus on the first block through the target secondary blockchain network to obtain a first consensus result; and When the first consensus result indicates that consensus is reached, write the first block into the target secondary blockchain ledger through the target secondary blockchain network; Wherein, the second writing module is configured to: Write the target service information into a second block through the target customer master node; In response to triggering a second recording event, perform consensus on the second block through the main blockchain network to obtain a second consensus result; and When the second consensus result indicates that consensus is reached, write the second block into the main blockchain ledger through the main blockchain network.
10. An electronic device comprising: One or more processors; A memory, configured to store one or more instructions, Wherein, when the one or more instructions are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which executable instructions are stored, and when the executable instructions are executed by a processor, the processor implements the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Business processing method and apparatus
CN107341702A
Blockchain-based account management method, device, server and storage medium
CN108712395A