A real-time reconciliation method and device based on blockchain, and electronic equipment
Through real-time verification and reconciliation in the blockchain network, the problem of delay in fund system reconciliation is solved, timely processing of transaction abnormalities and improving reconciliation efficiency is achieved, and data consistency and system stability are ensured.
Patent Information
- Application Number
- CN201811445867.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-29
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2038-11-29
AI Technical Summary
The existing fund system's reconciliation methods lack real-time performance, resulting in delayed processing of transaction abnormalities, affecting the timely issuance of returns and net value, and are less efficient.
Using a real-time reconciliation method based on blockchain, the transaction data is generated and broadcasted in the blockchain network, and the nodes participating in the transaction are verified and identified in real time, and the verification transaction data is used for reconciliation, including smart contract accounting rules and Manual adjustments ensure data consistency.
Real-time processing of transaction exceptions and reconciliation and account adjustments are realized, reconciliation efficiency is improved, system clearing delay risk, and real-time consistency of data is ensured.
Smart Images

Figure CN109670924B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a real-time account reconciliation method and device, and electronic equipment based on blockchain. Background Art
[0002] In order to ensure data consistency, the current fund system chooses to conduct reconciliation at a fixed time: for example, the fixed time is selected at 15:00. After 15:00 every day, the transaction data is reconciled through file transfer and other methods, and adjustments are made when imbalances are found. However, due to the dependencies between the various systems, each system can only perform reconciliation operations within a centralized time. When the reconciliation finds that a transaction is abnormal, if the reconciliation and adjustment business personnel of the system are delayed in processing, the downstream system will also be delayed, resulting in problems such as delayed income distribution and delayed net value distribution. It can be seen that the reconciliation method in the prior art is not real-time and has low efficiency. Summary of the invention
[0003] In order to solve the problem that the reconciliation and adjustment methods in the related art are not real-time and inefficient, the present invention provides a real-time reconciliation method and device, and electronic device based on blockchain.
[0004] The first aspect of the embodiment of the present invention discloses a real-time reconciliation method based on blockchain, the method comprising:
[0005] After a first participating node participating in a target transaction completes a transaction processing corresponding to the node, generating first transaction data, wherein the first participating node is a network node in the blockchain network;
[0006] Reporting the first transaction data to the blockchain network and broadcasting it, so that any network node in the blockchain network other than the first participating node verifies the target transaction according to the first transaction data;
[0007] When any one of the network nodes other than the first participating node verifies that the target transaction is abnormal according to the first transaction data, identifying a second participating node participating in the target transaction, where the second participating node is a node among the network nodes other than the first participating node participating in the target transaction;
[0008] Acquire second transaction data generated after the second participating node participates in the target transaction and completes transaction processing corresponding to the node;
[0009] The first transaction data and the second transaction data are used for reconciliation.
[0010] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the reconciling the first transaction data with the second transaction data includes:
[0011] Extracting a corresponding public ledger within a preset time range from a public database maintained by the blockchain network;
[0012] Verifying whether the first transaction data is normal according to the public account book;
[0013] If it is normal, taking the first transaction data as the reference data, and using the reference data to reconcile with the second transaction data;
[0014] If it is abnormal, issuing a reminder message to remind the business personnel corresponding to the first participating node to perform manual reconciliation, and reminding the business personnel corresponding to the first participating node to adjust the first transaction data;
[0015] receiving feedback information fed back by the business personnel through the first participating node, wherein the feedback information is used to indicate that the first transaction data is adjusted to target first transaction data, and the target first transaction data is normal;
[0016] The target first transaction data is used as the benchmark data, and the benchmark data is used to perform reconciliation with the second transaction data.
[0017] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the reconciling the reference data with the second transaction data includes:
[0018] determining whether the reference data matches the second transaction data;
[0019] If the reference data does not match the second transaction data, sending a reminder message to the second participating node to remind the second participating node to adjust the second transaction data;
[0020] When the second participating node receives the reminder message, the second transaction data is adjusted based on the benchmark data according to the account adjustment rules agreed upon in the smart contract of the second participating node.
[0021] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining whether the reference data matches the second transaction data includes:
[0022] Determining whether a first sum of a plurality of transaction detail data included in the reference data matches a second sum of a plurality of transaction detail data included in the second transaction data;
[0023] If the first sum does not match the second sum, it is determined that the reference data does not match the second transaction data.
[0024] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
[0025] If the first sum matches the second sum, determining whether each transaction detail data included in the reference data matches the corresponding transaction detail data in the second transaction data;
[0026] If any transaction detail data included in the reference data does not match the corresponding transaction detail data in the second transaction data, it is determined that the reference data does not match the second transaction data.
[0027] As an optional implementation manner, in the first aspect of the embodiment of the present invention, after adjusting the second transaction data based on the reference data according to the account adjustment rule agreed upon by the smart contract of the second participating node, the method further includes:
[0028] receiving a reconciliation completion message fed back by the second participating node, wherein the reconciliation completion message is used to indicate that the second transaction data is adjusted to target second transaction data, and the target second transaction data is normal;
[0029] The benchmark data and the target second transaction data are uploaded to the public database.
[0030] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
[0031] When any one of the network nodes except the first participating node verifies that the target transaction is abnormal based on the first transaction data, an alarm message is broadcast to the blockchain network to inform all the network nodes on the blockchain network that the target transaction is abnormal.
[0032] A second aspect of an embodiment of the present invention discloses a real-time reconciliation system based on blockchain, the system comprising:
[0033] A generating unit, configured to generate first transaction data after a first participating node participating in a target transaction completes a transaction processing corresponding to the node, wherein the first participating node is a network node in a blockchain network;
[0034] a broadcasting unit, configured to report the first transaction data to the blockchain network and broadcast the first transaction data, so that any network node in the blockchain network other than the first participating node verifies the target transaction according to the first transaction data;
[0035] an identification unit, configured to identify a second participating node participating in the target transaction when any one of the network nodes other than the first participating node verifies that the target transaction is abnormal according to the first transaction data, wherein the second participating node is a node among the network nodes other than the first participating node participating in the target transaction;
[0036] An acquiring unit, configured to acquire second transaction data generated after the second participating node participates in the target transaction and completes the transaction processing corresponding to the node;
[0037] A reconciliation unit is used to reconcile the first transaction data with the second transaction data.
[0038] A third aspect of an embodiment of the present invention discloses an electronic device, the electronic device comprising:
[0039] processor;
[0040] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the real-time reconciliation method based on blockchain disclosed in the first aspect of an embodiment of the present invention is implemented.
[0041] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the real-time reconciliation method based on blockchain disclosed in the first aspect of an embodiment of the present invention.
[0042] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0043] The real-time reconciliation method based on blockchain provided by the present invention includes the following steps: after a first participating node participating in a target transaction completes the transaction processing corresponding to the node, first transaction data is generated, and the first participating node is a network node in the blockchain network; the first transaction data is reported to the blockchain network and broadcasted, so that any network node other than the first participating node in the blockchain network verifies the target transaction according to the first transaction data; when any network node other than the first participating node verifies that the target transaction is abnormal according to the first transaction data, a second participating node participating in the target transaction is identified, and the second participating node is the remaining node in the network node that participates in the target transaction except the first participating node; the second transaction data generated after the second participating node participates in the target transaction and completes the transaction processing corresponding to the node is obtained; and the first transaction data is used to reconcile with the second transaction data.
[0044] Under this method, by reporting the first transaction data generated after the first participating node participating in the target transaction completes the transaction processing to the blockchain network and broadcasting it, any network node in the blockchain network can verify the target transaction in real time based on the first transaction data. When the target transaction is verified to be abnormal, the remaining participating nodes participating in the target transaction are identified, and the first transaction data is used to reconcile with the second transaction data generated by the remaining participating nodes. Reconciliation and adjustment can be performed in real time, thereby improving reconciliation efficiency.
[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0047] Figure 1 It is a structural diagram of a real-time reconciliation system based on blockchain disclosed in an embodiment of the present invention;
[0048] Figure 2 It is a flowchart of a real-time reconciliation method based on blockchain disclosed in an embodiment of the present invention;
[0049] Figure 3 It is a flowchart of another real-time reconciliation method based on blockchain disclosed in an embodiment of the present invention;
[0050] Figure 4 It is a flowchart of another real-time reconciliation method based on blockchain disclosed in an embodiment of the present invention;
[0051] Figure 5 It is a structural diagram of another real-time account reconciliation system based on blockchain disclosed in an embodiment of the present invention;
[0052] Figure 6 It is a structural diagram of another real-time account reconciliation system based on blockchain disclosed in an embodiment of the present invention;
[0053] Figure 7 It is a structural diagram of another real-time reconciliation system based on blockchain disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0055] Embodiment 1
[0056] The embodiments of the present invention are applicable to scenarios in which real-time reconciliation is performed during fund transactions. When a transaction is found to be abnormal, the reconciliation and adjustment of the transaction is immediately performed without waiting for a designated time for centralized reconciliation. Thus, the abnormal situation can be handled as soon as the transaction is abnormal, more processing time can be reserved, and the risk of liquidation delays in various systems can be reduced. Reconciliation and adjustment can be performed in real time, thereby improving reconciliation efficiency.
[0057] Figure 1 1 is a schematic diagram of a real-time account reconciliation system based on blockchain disclosed in an embodiment of the present invention. The device 100 may be the electronic device mentioned above. Figure 1 As shown, the apparatus 100 may include one or more of the following components: a processing component 102 , a memory 104 , a power component 106 , a multimedia component 108 , an audio component 110 , a sensor component 114 , and a communication component 116 .
[0058] The processing component 102 generally controls the overall operation of the device 100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 102 may include one or more processors 118 to execute instructions to perform all or part of the steps of the method described below. In addition, the processing component 102 may include one or more modules to facilitate the interaction between the processing component 102 and other components. For example, the processing component 102 may include a multimedia module to facilitate the interaction between the multimedia component 108 and the processing component 102.
[0059] The memory 104 is configured to store various types of data to support operations on the device 100. Examples of such data include instructions for any application or method operating on the device 100. The memory 104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The memory 104 also stores one or more modules, which are configured to be executed by the one or more processors 118 to complete all or part of the steps in the method shown below.
[0060] The power supply component 106 provides power to the various components of the device 100. The power supply component 106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 100.
[0061] The multimedia component 108 includes a screen that provides an output interface between the device 100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel. If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. The screen may also include an organic light emitting display (OLED).
[0062] The audio component 110 is configured to output and / or input audio signals. For example, the audio component 110 includes a microphone (MIC), which is configured to receive external audio signals when the device 100 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signal can be further stored in the memory 104 or sent via the communication component 116. In some embodiments, the audio component 110 also includes a speaker for outputting audio signals.
[0063] The sensor assembly 114 includes one or more sensors for providing various aspects of status evaluation for the device 100. For example, the sensor assembly 114 can detect the open / closed state of the device 100, the relative positioning of the components, and the sensor assembly 114 can also detect the position change of the device 100 or a component of the device 100 and the temperature change of the device 100. In some embodiments, the sensor assembly 114 can also include a magnetic sensor, a pressure sensor or a temperature sensor.
[0064] The communication component 116 is configured to facilitate wired or wireless communication between the device 100 and other devices. The device 100 can access a wireless network based on a communication standard, such as WiFi (Wireless-Fidelity). In an embodiment of the present invention, the communication component 116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an embodiment of the present invention, the communication component 116 also includes a near field communication (NFC) module for facilitating short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth technology and other technologies.
[0065] In an exemplary embodiment, the device 100 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors, digital signal processing devices, programmable logic devices, field programmable gate arrays, controllers, microcontrollers, microprocessors or other electronic components to perform the following method.
[0066] Embodiment 2
[0067] See also Figure 2 , Figure 2Schematic diagram of a real-time reconciliation method based on blockchain disclosed in an embodiment of the present invention. Figure 2 The blockchain-based real-time reconciliation method may include the following steps:
[0068] 201. After a first participating node participating in a target transaction completes the transaction processing corresponding to the node, first transaction data is generated. The first participating node is a network node in the blockchain network.
[0069] In the embodiment of the present invention, for a certain target transaction, multiple participating nodes jointly participate, and each participating node completes its corresponding transaction processing and generates transaction data corresponding to its own transaction processing. For example, if the participating nodes include a seller, a share registration system, and a fund system, then after the seller participates in a certain target transaction and completes the transaction processing corresponding to the node, the generated transaction data may be "Subscription Fund 1, Subscription Shares X".
[0070] 202. Report the first transaction data to the blockchain network and broadcast it, so that any network node in the blockchain network except the first participating node can verify the target transaction according to the first transaction data.
[0071] In the embodiment of the present invention, all participating nodes participating in the target transaction will generate corresponding transaction data after completing the transaction processing corresponding to the node, and the corresponding transaction data generated by all participating nodes will be reported to the blockchain network and broadcast, so that any network node other than the first participating node in the blockchain network can verify the target transaction according to any transaction data. It can be understood that only when the target transaction is verified to be normal can the transaction data be uploaded to the public database maintained by the blockchain network.
[0072] 203. When any network node other than the first participating node verifies that the target transaction is abnormal according to the first transaction data, identify a second participating node participating in the target transaction, where the second participating node is the remaining node in the network node that participates in the target transaction except the first participating node.
[0073] In the embodiment of the present invention, the second participating node may be one network node or multiple network nodes, which is not limited in the present invention.
[0074] 204. Obtain second transaction data generated after the second participating node participates in the target transaction and completes the transaction processing corresponding to the node.
[0075] 205. Use the first transaction data and the second transaction data to perform reconciliation.
[0076] As an optional implementation, the first transaction data or the second transaction data may include target transaction information, which includes an identification code. Based on this, after executing step 204, the target transaction information in the second transaction data can be obtained, and the target transaction information includes an identification code; the reconciliation smart contract corresponding to the identification code is searched to trigger the reconciliation smart contract to perform a reconciliation operation. Accordingly, step 205 may include: determining whether the first attribute field of the target transaction exists in the first participating node and the second participating node; if so, determining all second attribute fields associated with the first attribute field in the first transaction data and the second transaction data; grouping all second attribute fields associated with the first attribute field to obtain multiple second attribute field sets of the same type; according to each second attribute field set, comparing the data corresponding to the second attribute field set in the first transaction data and the second transaction data.
[0077] By implementing this implementation mode, the reconciliation smart contract can be used to reconcile the first transaction data and the second transaction data, making the reconciliation method more intelligent.
[0078] visible, Figure 2 The described method can report the first transaction data generated by the first participating node participating in the target transaction after completing the transaction processing to the blockchain network and broadcast it. Any network node in the blockchain network can verify the target transaction in real time based on the first transaction data. When the target transaction is verified to be abnormal, the remaining participating nodes participating in the target transaction are identified, and the first transaction data is used to reconcile with the second transaction data generated by the remaining participating nodes. Reconciliation and adjustment can be performed in real time, thereby improving reconciliation efficiency.
[0079] Embodiment 3
[0080] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of another real-time reconciliation method based on blockchain disclosed in an embodiment of the present invention. Figure 3 As shown, the real-time reconciliation method based on blockchain may include the following steps:
[0081] 301 to 304. Among them, steps 301 to 304 are the same as steps 201 to 204 described in the second embodiment, and will not be described in detail in this embodiment of the present invention.
[0082] As an optional implementation, after executing step 303, the following steps may be performed:
[0083] When any network node other than the first participating node verifies that the target transaction is abnormal according to the first transaction data, an alarm message is broadcast to the blockchain network to inform all network nodes on the blockchain network that the target transaction is abnormal. As another optional implementation, the above implementation can also be performed simultaneously with step 303.
[0084] By implementing this implementation method, timely alarms can be issued, and there is no need to wait until the designated time for centralized reconciliation to discover transaction anomalies, so that the entire transaction process can be monitored.
[0085] 305. Extract the corresponding public ledger within a preset time range from the public database maintained by the blockchain network.
[0086] In an embodiment of the present invention, when the target transaction is verified to be abnormal, the transaction data generated by all participating nodes after participating in the target transaction cannot be uploaded to the public database maintained by the blockchain network through verification. Therefore, extracting the corresponding public account book within the preset time range from the public database maintained by the blockchain network may include part of the transaction data of the target transaction, or may not include any transaction data of the target transaction, which is not limited by the present invention. Among them, the preset time range may be a period of time before the time node sent for the target transaction, and the corresponding public account book within the preset time range includes account book data associated with the transaction data of the target transaction.
[0087] 306. Verify whether the first transaction data is normal according to the public account book. If normal, execute step 307; if abnormal, execute step 308.
[0088] As an optional implementation, before executing step 306, the following steps may be performed: extracting all account book data related to the first participating node from the public account book within a preset time range; aggregating all account book data related to the first participating node to obtain a target account book centered on the first participating node. Accordingly, the specific method of executing step 306 may be to verify whether the first transaction data is normal based on the target account book.
[0089] The implementation of this embodiment can speed up the reconciliation process and provide a better understanding of the asset status of the first participating node.
[0090] In the embodiment of the present invention, the account data in the public account book that is associated with the transaction data is used to verify whether the transaction data is normal. For example, if the participating node is the payer, the transaction data of the payer is "transfer amount X", and before this transaction, the account data recorded by the payer in the public database maintained by the blockchain network is "total assets Y", and Y is less than X, then the transaction data is determined to be abnormal.
[0091] 307. Use the first transaction data as the benchmark data and use the benchmark data to reconcile with the second transaction data.
[0092] In the embodiment of the present invention, if the first transaction data is normal, the first transaction data is used as the reference data to reconcile with the second transaction data. For example, assuming that the first transaction data includes "amount X transferred to the second participating node" and the second transaction data includes "amount Y transferred from the first participating node", if X=Y, the second transaction data is normal; otherwise, the second transaction data is abnormal.
[0093] 308. Issue a reminder message to remind the business personnel corresponding to the first participating node to perform manual reconciliation, and remind the business personnel corresponding to the first participating node to adjust the first transaction data.
[0094] 309. Receive feedback information fed back by the business personnel through the first participating node, where the feedback information is used to indicate that the first transaction data is adjusted to the target first transaction data, and the target first transaction data is normal.
[0095] 310. Use the target first transaction data as the benchmark data and use the benchmark data to reconcile with the second transaction data.
[0096] It can be seen that the implementation Figure 3 The described method can not only perform reconciliation and adjustment in real time to improve reconciliation efficiency, but also issue timely alarms, eliminating the need to wait until a designated time for centralized reconciliation to discover transaction anomalies, thereby enabling monitoring of the entire transaction process.
[0097] In addition, the reconciliation process can be accelerated and the asset status of the first participating node can be better understood.
[0098] Embodiment 4
[0099] See also Figure 4 , Figure 4 This is a flowchart of another real-time reconciliation method based on blockchain disclosed in an embodiment of the present invention. Figure 4 The blockchain-based real-time reconciliation method may include the following steps:
[0100] 401 to 409. Among them, steps 401 to 409 are the same as steps 301 to 309 described in the third embodiment, and will not be described in detail in this embodiment of the present invention.
[0101] 410. Taking the target first transaction data as the reference data, determine whether the reference data matches the second transaction data. If they do not match, execute step 411; if they match, end this process.
[0102] In the embodiment of the present invention, as an optional implementation, step 410 may include the following steps:
[0103] The target first transaction data is used as the benchmark data;
[0104] Determining whether a first sum of the plurality of transaction detail data included in the reference data matches a second sum of the plurality of transaction detail data included in the second transaction data;
[0105] If the first sum does not match the second sum, it is determined that the reference data does not match the second transaction data.
[0106] If the first sum matches the second sum, determining whether each transaction detail data included in the reference data matches the corresponding transaction detail data in the second transaction data;
[0107] If any transaction detail data included in the reference data does not match the corresponding transaction detail data in the second transaction data, it is determined that the reference data does not match the second transaction data.
[0108] The implementation of this embodiment can improve the accuracy of data judgment.
[0109] 411. Send a reminder message to the second participating node to remind the second participating node to adjust the second transaction data.
[0110] 412. When the second participating node receives the reminder message, the second transaction data is adjusted based on the benchmark data according to the account adjustment rules agreed upon in the smart contract of the second participating node.
[0111] In the embodiment of the present invention, as an optional implementation, after executing step 412, the following steps may be performed:
[0112] receiving a reconciliation completion message fed back by the second participating node, where the reconciliation completion message is used to indicate that the second transaction data is adjusted to the target second transaction data, and the target second transaction data is normal;
[0113] The benchmark data and the target second transaction data are uploaded to a public database.
[0114] As an optional implementation, before uploading the benchmark data and the target second transaction data to the public database, the following steps may be performed:
[0115] Determine whether the baseline data and the target second transaction data need to be processed for privacy protection; if so, generate a key for the plaintext encryption algorithm, and use the plaintext encryption algorithm using the key to encrypt the baseline data and the target second transaction data respectively to generate encrypted baseline data and target second transaction data; encrypt the key using an agreed rule to generate a key ciphertext, and the agreed rule includes an algorithm that enables the first participating node and the second participating node to encrypt and decrypt the key ciphertext in a preset manner; upload the encrypted baseline data and target second transaction data to a public database.
[0116] By implementing this implementation method, all transaction data for a certain target transaction can be encrypted, and only the participating nodes participating in the target transaction can decrypt and view it, so the privacy of special transaction data can be protected.
[0117] It can be seen that the implementation Figure 4 The described method can not only perform real-time reconciliation and adjustment, improve reconciliation efficiency, but also improve the accuracy of data judgment. In addition, the privacy of special transaction data can be protected.
[0118] Embodiment 5
[0119] See also Figure 5 , Figure 5 Schematic diagram of another real-time account reconciliation system based on blockchain disclosed in an embodiment of the present invention. Figure 5 As shown, the real-time reconciliation system based on blockchain may include: a generation unit 501, a broadcast unit 502, an identification unit 503, an acquisition unit 504 and a reconciliation unit 505, wherein:
[0120] A generating unit 501 is used to generate first transaction data after a first participating node participating in a target transaction completes a transaction processing corresponding to the node, where the first participating node is a network node in the blockchain network;
[0121] A broadcast unit 502 is used to report the first transaction data to the blockchain network and broadcast it, so that any network node other than the first participating node in the blockchain network verifies the target transaction according to the first transaction data;
[0122] The identification unit 503 is used to identify a second participating node participating in the target transaction when any network node other than the first participating node verifies that the target transaction is abnormal according to the first transaction data, where the second participating node is a node in the network node other than the first participating node participating in the target transaction;
[0123] An acquisition unit 504 is used to acquire second transaction data generated after the second participating node participates in the target transaction and completes the transaction processing corresponding to the node;
[0124] The reconciliation unit 505 is used to reconcile the first transaction data with the second transaction data.
[0125] As an optional implementation, the acquisition unit 504 is further configured to acquire target transaction information in the second transaction data, where the target transaction information includes an identification code.
[0126] As an optional implementation, Figure 5 The blockchain-based real-time reconciliation system shown may also include:
[0127] The search unit is used to search for the reconciliation smart contract corresponding to the identification code after the acquisition unit 504 acquires the target transaction information of the second transaction data, so as to trigger the reconciliation smart contract to perform a reconciliation operation.
[0128] Accordingly, the above-mentioned reconciliation unit 505 may include:
[0129] A determination subunit, used for determining whether the first attribute field of the target transaction exists in the first participating node and the second participating node;
[0130] a determination subunit, configured to determine all second attribute fields associated with the first attribute field in the first transaction data and the second transaction data when the determination unit determines that the first attribute field of the target transaction exists in the first participating node and the second participating node;
[0131] An acquisition subunit is used to collect and process all second attribute fields associated with the first attribute field to obtain multiple second attribute field sets of the same type;
[0132] The comparison subunit is used to compare the data corresponding to the second attribute field set in the first transaction data and the second transaction data according to each second attribute field set.
[0133] By implementing this implementation mode, the reconciliation smart contract can be used to reconcile the first transaction data and the second transaction data, making the reconciliation method more intelligent.
[0134] visible, Figure 5 The blockchain-based real-time reconciliation system shown can report the first transaction data generated after the first participating node participating in the target transaction completes the transaction processing to the blockchain network and broadcast it. Any network node in the blockchain network can verify the target transaction in real time based on the first transaction data. When the target transaction is verified to be abnormal, the remaining participating nodes participating in the target transaction are identified, and the first transaction data is used to reconcile with the second transaction data generated by the remaining participating nodes. Reconciliation and adjustment can be performed in real time, thereby improving reconciliation efficiency.
[0135] Embodiment 6
[0136] See also Figure 6 , Figure 6 It is a structural diagram of another real-time reconciliation system based on blockchain disclosed in an embodiment of the present invention. Figure 6 The blockchain-based real-time reconciliation system shown is composed of Figure 5 The real-time reconciliation system based on blockchain is optimized. Figure 5 Compared with the blockchain-based real-time reconciliation system shown in Figure 6 In the real-time reconciliation system based on blockchain shown, the reconciliation unit 505 may include:
[0137] The extraction subunit 5051 is used to extract the corresponding public ledger within a preset time range from the public database maintained by the blockchain network.
[0138] The verification subunit 5052 is used to verify whether the first transaction data is normal according to the public account book.
[0139] The reconciliation subunit 5053 is used to reconcile the second transaction data with the first transaction data as the reference data when the verification subunit 5052 verifies that the first transaction data is normal.
[0140] The reminder subunit 5054 is used to issue a reminder message to remind the business personnel corresponding to the first participating node to perform manual reconciliation and to remind the business personnel corresponding to the first participating node to adjust the first transaction data when the verification subunit 5052 verifies that the first transaction data is abnormal.
[0141] The receiving subunit 5055 is used to receive feedback information fed back by the business personnel through the first participating node, where the feedback information is used to indicate that the first transaction data is adjusted to the target first transaction data and the target first transaction data is normal.
[0142] The above-mentioned reconciliation subunit 5053 is also used to use the target first transaction data as the reference data and to perform reconciliation with the second transaction data using the reference data.
[0143] As an optional implementation, the above-mentioned broadcast unit 502 is also used to broadcast alarm information to the blockchain network when any network node other than the first participating node verifies that the target transaction is abnormal based on the first transaction data, so as to inform all network nodes on the blockchain network that the target transaction is abnormal.
[0144] By implementing this implementation method, timely alarms can be issued, and there is no need to wait until the designated time for centralized reconciliation to discover transaction anomalies, so that the entire transaction process can be monitored.
[0145] As an optional implementation, the extraction subunit 5051 is further used to extract all the ledger data related to the first participating node from the public ledger within a preset time range; aggregate all the ledger data related to the first participating node to obtain a target ledger centered on the first participating node;
[0146] Accordingly, the verification subunit 5052 may verify whether the first transaction data is normal according to the public account book in the following manner:
[0147] The verification subunit 5052 is used to verify whether the first transaction data is normal according to the target account book.
[0148] The implementation of this embodiment can speed up the reconciliation process and provide a better understanding of the asset status of the first participating node.
[0149] visible, Figure 6 The blockchain-based real-time reconciliation system shown can not only perform reconciliation and adjustment in real time to improve reconciliation efficiency, but also issue timely alarms, eliminating the need to wait until the designated time for centralized reconciliation to discover transaction anomalies, thereby enabling the entire transaction process to be monitored.
[0150] In addition, the reconciliation process can be accelerated and the asset status of the first participating node can be better understood.
[0151] Embodiment 7
[0152] See also Figure 7 , Figure 7 It is a structural diagram of another real-time reconciliation system based on blockchain disclosed in an embodiment of the present invention. Figure 7 The blockchain-based real-time reconciliation system shown is composed of Figure 6 The real-time reconciliation system based on blockchain is optimized. Figure 6 Compared with the blockchain-based real-time reconciliation system shown in Figure 7 In the blockchain-based real-time reconciliation system shown, the reconciliation subunit 5053 may include:
[0153] The judgment module 50531 is used to judge whether the reference data matches the second transaction data.
[0154] The reminding module 50532 is used to send a reminder message to the second participating node to remind the second participating node to adjust the second transaction data when the judging module 50531 judges that the reference data does not match the second transaction data;
[0155] The account adjustment module 50533 is used to adjust the second transaction data based on the benchmark data according to the account adjustment rules agreed upon in the smart contract of the second participating node when the second participating node receives the reminder message.
[0156] The receiving module 50534 is used to receive a reconciliation completion message fed back by the second participating node, where the reconciliation completion message is used to indicate that the second transaction data has been adjusted to the target second transaction data, and the target second transaction data is normal.
[0157] The upload module 50535 is used to upload the benchmark data and the target second transaction data to the public database.
[0158] As an optional implementation, the above-mentioned determination module 50531 is used to determine whether the reference data matches the second transaction data in the following specific manner:
[0159] The above-mentioned judgment module 50531 is used to judge whether the first sum of the multiple transaction detail data included in the reference data matches the second sum of the multiple transaction detail data included in the second transaction data.
[0160] As an optional implementation, the above-mentioned reconciliation subunit 5053 may further include:
[0161] The determination module is used to determine that the benchmark data does not match the second transaction data when the judgment module 50531 determines that the first sum does not match the second sum, so as to trigger the reminder module 50532 to send a reminder message to the second participating node to remind the second participating node to adjust the second transaction data.
[0162] As an optional implementation, the above-mentioned judgment module 50531 is also used to judge whether each transaction detail data included in the benchmark data matches the corresponding transaction detail data in the second transaction data when it is judged that the first sum matches the second sum.
[0163] Correspondingly, the above-mentioned determination module is also used to determine that the benchmark data and the second transaction data do not match when the judgment module 50531 determines that any transaction detail data included in the benchmark data does not match the corresponding transaction detail data in the second transaction data, so as to trigger the reminder module 50532 to send a reminder message to the second participating node to remind the second participating node to adjust the second transaction data.
[0164] As an optional implementation, the above-mentioned determination module 50531 is also used to determine whether the benchmark data and the target second transaction data need to be processed for privacy protection.
[0165] Accordingly, as an optional implementation, the above-mentioned reconciliation sub-unit 5053 may also be equipped with a built-in generation module, which is used to encrypt the benchmark data and the target second transaction data respectively using a plaintext encryption algorithm using the key to generate encrypted benchmark data and target second transaction data when the judgment module 50531 determines that the benchmark data and the target second transaction data need to be privacy protected, and to encrypt the key using an agreed rule to generate a key ciphertext, and the agreed rule includes an algorithm that enables the first participating node and the second participating node to encrypt and decrypt the key ciphertext in a preset manner.
[0166] Accordingly, the upload module 50535 may upload the reference data and the target second transaction data to the public database in the following manner:
[0167] The above-mentioned uploading module 50535 is used to upload the encrypted reference data and target second transaction data to the public database.
[0168] By implementing this implementation method, all transaction data for a certain target transaction can be encrypted, and only the participating nodes participating in the target transaction can decrypt and view it, so the privacy of special transaction data can be protected.
[0169] visible, Figure 7 The blockchain-based real-time reconciliation system shown above can not only reconcile and adjust accounts in real time and improve reconciliation efficiency, but also improve the accuracy of data judgment. In addition, it can also protect the privacy of special transaction data.
[0170] The present invention also provides an electronic device, the electronic device comprising:
[0171] processor;
[0172] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by a processor, the real-time reconciliation method based on blockchain as shown above is implemented.
[0173] The electronic device may be Figure 1 The device 100 is shown.
[0174] In an exemplary embodiment, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the real-time reconciliation method based on blockchain as shown above.
[0175] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be performed without departing from its scope. The scope of the present invention is limited only by the appended claims.
Claims
1. A real-time reconciliation method based on blockchain, characterized in that: The method comprises: After a first participating node participating in a target transaction completes a transaction processing corresponding to the node, generating first transaction data, wherein the first participating node is a network node in the blockchain network; Reporting the first transaction data to the blockchain network and broadcasting it, so that any network node in the blockchain network other than the first participating node verifies the target transaction according to the first transaction data; When any one of the network nodes other than the first participating node verifies that the target transaction is abnormal according to the first transaction data, identifying a second participating node participating in the target transaction, where the second participating node is a node among the network nodes other than the first participating node participating in the target transaction; Acquire second transaction data generated after the second participating node participates in the target transaction and completes transaction processing corresponding to the node; Extracting a public ledger corresponding to a preset time range from a public database maintained by the blockchain network, wherein the public ledger corresponding to the preset time range is composed of ledger data associated with the transaction data of the target transaction; Verifying whether the first transaction data is normal according to the public account book; If it is normal, taking the first transaction data as the reference data, and using the reference data to reconcile with the second transaction data; If it is abnormal, issuing a reminder message to remind the business personnel corresponding to the first participating node to perform manual reconciliation, and reminding the business personnel corresponding to the first participating node to adjust the first transaction data; receiving feedback information fed back by the business personnel through the first participating node, wherein the feedback information is used to indicate that the first transaction data is adjusted to target first transaction data, and the target first transaction data is normal; The target first transaction data is used as the benchmark data, and the benchmark data is used to perform reconciliation with the second transaction data.
2. The method according to claim 1, characterized in that The reconciling the reference data with the second transaction data includes: determining whether the reference data matches the second transaction data; If the reference data does not match the second transaction data, sending a reminder message to the second participating node to remind the second participating node to adjust the second transaction data; When the second participating node receives the reminder message, the second transaction data is adjusted based on the benchmark data according to the account adjustment rules agreed upon in the smart contract of the second participating node.
3. The method according to claim 2, characterized in that The determining whether the reference data matches the second transaction data includes: Determining whether a first sum of a plurality of transaction detail data included in the reference data matches a second sum of a plurality of transaction detail data included in the second transaction data; If the first sum does not match the second sum, it is determined that the reference data does not match the second transaction data.
4. The method according to claim 3, characterized in that The method further comprises: If the first sum matches the second sum, determining whether each transaction detail data included in the reference data matches the corresponding transaction detail data in the second transaction data; If any transaction detail data included in the reference data does not match the corresponding transaction detail data in the second transaction data, it is determined that the reference data does not match the second transaction data.
5. The method according to any one of claims 2 to 4, characterized in that: After adjusting the second transaction data based on the reference data according to the account adjustment rules agreed upon in the smart contract of the second participating node, the method further includes: receiving a reconciliation completion message fed back by the second participating node, wherein the reconciliation completion message is used to indicate that the second transaction data is adjusted to target second transaction data, and the target second transaction data is normal; The benchmark data and the target second transaction data are uploaded to the public database.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When any one of the network nodes except the first participating node verifies that the target transaction is abnormal based on the first transaction data, an alarm message is broadcast to the blockchain network to inform all the network nodes on the blockchain network that the target transaction is abnormal.
7. A real-time reconciliation system based on blockchain, characterized in that: The system comprises: A generating unit, configured to generate first transaction data after a first participating node participating in a target transaction completes a transaction processing corresponding to the node, wherein the first participating node is a network node in a blockchain network; a broadcasting unit, configured to report the first transaction data to the blockchain network and broadcast the first transaction data, so that any network node in the blockchain network other than the first participating node verifies the target transaction according to the first transaction data; an identification unit, configured to identify a second participating node participating in the target transaction when any one of the network nodes other than the first participating node verifies that the target transaction is abnormal according to the first transaction data, wherein the second participating node is a node among the network nodes other than the first participating node participating in the target transaction; An acquiring unit, configured to acquire second transaction data generated after the second participating node participates in the target transaction and completes the transaction processing corresponding to the node; A reconciliation unit is configured to extract a public account book corresponding to a preset time range from a public database maintained by the blockchain network, wherein the public account book corresponding to the preset time range is composed of account book data associated with the transaction data of the target transaction; verify whether the first transaction data is normal according to the public account book; if normal, use the first transaction data as a reference data and use the reference data to reconcile with the second transaction data; if abnormal, issue a reminder message to remind the business personnel corresponding to the first participating node to perform manual reconciliation, and remind the business personnel corresponding to the first participating node to adjust the first transaction data; The reconciliation unit is further used to receive feedback information fed back by the business personnel through the first participating node, wherein the feedback information is used to indicate that the first transaction data is adjusted to the target first transaction data and that the target first transaction data is normal; and the target first transaction data is used as the benchmark data, and the benchmark data is used to perform reconciliation with the second transaction data.
8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: It stores a computer program, which enables a computer to execute the real-time reconciliation method based on blockchain as described in any one of claims 1 to 6.
Citation Information
Cited By
Reconciliation method and device based on block chain oracle machine and secure multi-party computing
CN121173499A
