Data verification method and device, equipment, medium and product

By querying and recording transaction data on blockchain nodes and verifying consistency using consensus algorithms, the problem of inefficient verification of transaction data in the existing technology is solved, and the security of resource information is improved.

CN119646007APending Publication Date: 2025-03-18CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411734751.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The prior art is inefficient in transaction data consistency verification and fails to check in time, resulting in low security of resource information.

Method used

By querying and recording transaction data on different nodes in the blockchain built by both parties to the transaction, the consensus algorithm between blockchain nodes is used to verify the consistency of transaction data, and write the data to the database when it is consistent.

Benefits of technology

It improves the efficiency and timeliness of transaction data verification and enhances the security of resource information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119646007A_ABST
    Figure CN119646007A_ABST
Patent Text Reader

Abstract

The invention discloses a data verification method and device, equipment, a medium and a product, and relates to the technical field of information security. The method comprises the following steps: receiving a query request sent by a transaction response device, wherein the query request comprises a target transaction identifier; in response to the query request, querying whether the plurality of block chain nodes record first transaction data corresponding to the target transaction identifier; when it is queried that the first target block chain node records the first transaction data, first target information is sent to a transaction response device; receiving second transaction data sent by the transaction response equipment; recording second transaction data by using the second target block chain node; and under the condition that the first transaction data and the second transaction data are consistent, writing data of the first target block chain node and the second target block chain node into a database. And the transaction data corresponding to the same transaction is verified in time, so that the security of the resource information is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information security technology, and in particular, relates to a data verification method, device, equipment, medium and product. Background Art

[0002] With the continuous improvement of economic level, the types and number of transactions involved in various industries have increased dramatically. Usually, the transaction data involved in various industries will be stored in the database, which is convenient for users to query historical transaction data. Moreover, for the databases corresponding to the two parties of the transaction, the transaction data of the same transaction will be checked for consistency to ensure the consistency of the transaction and the security of resource information.

[0003] At present, both the transaction request device and the transaction response device will first submit the transaction data to the database, and then determine the consistency of the transaction by verifying whether the transaction data corresponding to the same transaction is consistent between multiple databases. This verification method is inefficient and the verification is not timely, resulting in low security of resource information. Summary of the invention

[0004] The embodiments of the present application provide a data verification method, apparatus, device, medium and product. Based on different nodes in the blockchain built by the two parties to the transaction, the method first queries whether the blockchain node has recorded the transaction data corresponding to the target transaction identifier sent by the transaction response device, that is, whether there is transaction data corresponding to the transaction with the same transaction identifier. If so, the first target information is sent to the transaction response device for the transaction response device to perform subsequent transaction processes; the transaction data sent by the transaction response device is received, recorded using different blockchain nodes, and then the transaction data recorded by the two blockchain nodes are verified to be consistent. If they are consistent, it means that the transactions are consistent. The data in the two blockchain nodes are written into the database, and the transaction data corresponding to the same transaction is verified in time, thereby improving the security of resource information.

[0005] In a first aspect, an embodiment of the present application provides a data verification method, which is applied to a financial business system, wherein the financial business system includes multiple blockchain nodes, and the multiple blockchain nodes include a first target blockchain node and a second target blockchain node. The method includes:

[0006] receiving a query request sent by a transaction response device, wherein the query request includes a target transaction identifier;

[0007] In response to the query request, query multiple blockchain nodes whether they record first transaction data corresponding to the target transaction identifier;

[0008] In the case where the first target blockchain node is found to record the first transaction data, the first target information is sent to the transaction response device, so that the transaction response device adjusts the resource information based on the first transaction data to obtain the second transaction data, where the second transaction data includes the target transaction identifier;

[0009] receiving second transaction data sent by the transaction response device;

[0010] Using a second target blockchain node to record second transaction data;

[0011] When the first transaction data and the second transaction data are consistent, the data of the first target blockchain node and the second target blockchain node are written into the database.

[0012] In one possible embodiment, recording the second transaction data using the second target blockchain node includes:

[0013] receiving a first login key sent by a transaction response device;

[0014] When the first login key meets the preset conditions, the second transaction data is recorded using the second target blockchain node.

[0015] In a possible implementation, before receiving the query request sent by the transaction response device, the method further includes:

[0016] Receiving first transaction data sent by a transaction request device, where the first transaction data includes a target transaction identifier;

[0017] The first transaction data is recorded using a first target blockchain node among multiple blockchain nodes.

[0018] In one possible implementation, recording first transaction data using a first target blockchain node among multiple blockchain nodes includes:

[0019] receiving a second login key sent by the transaction request device;

[0020] When the second login key meets the preset conditions, the first transaction data is recorded using the first target blockchain node among the multiple blockchain nodes.

[0021] In one possible embodiment, when the first transaction data and the second transaction data are consistent, after writing the data of the first target blockchain node and the second target blockchain node into the database, the method further includes:

[0022] The second target information is sent to the transaction requesting device.

[0023] In a possible embodiment, it also includes:

[0024] In the case that the first transaction data and the second transaction data are inconsistent, third target information is sent to the transaction requesting device.

[0025] In a second aspect, an embodiment of the present application provides a data verification device, which is applied to a financial business system, wherein the financial business system includes multiple blockchain nodes, wherein the multiple blockchain nodes include a first target blockchain node and a second target blockchain node, and the device includes:

[0026] A receiving module, used for receiving a query request sent by a transaction response device, wherein the query request includes a target transaction identifier;

[0027] A query module, configured to query, in response to a query request, whether a plurality of blockchain nodes record first transaction data corresponding to a target transaction identifier;

[0028] A sending module, configured to send first target information to a transaction response device when the first target blockchain node records the first transaction data, so that the transaction response device adjusts the resource information based on the first transaction data to obtain second transaction data, wherein the second transaction data includes a target transaction identifier;

[0029] The receiving module is further used to receive the second transaction data sent by the transaction response device;

[0030] A recording module, used to record the second transaction data using the second target blockchain node;

[0031] The writing module is used to write the data of the first target blockchain node and the second target blockchain node into the database when the first transaction data and the second transaction data are consistent.

[0032] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0033] a processor and a memory storing computer program instructions;

[0034] A method for verifying data of any one of the above items is implemented when a processor executes computer program instructions.

[0035] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the data verification method of any one of the above items is implemented.

[0036] In a fifth aspect, an embodiment of the present application provides a computer program product, characterized in that when the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute any of the above-mentioned data verification methods.

[0037] The data verification method, device, equipment, medium and product of the embodiments of the present application are applied to a financial business system, which includes multiple blockchain nodes, and the multiple blockchain nodes include a first target blockchain node and a second target blockchain node. The method includes: receiving a query request sent by a transaction response device, and the query request includes a target transaction identifier; in response to the query request, querying multiple blockchain nodes whether they record first transaction data corresponding to the target transaction identifier; in the case where the first target blockchain node is found to record the first transaction data, sending first target information to the transaction response device, so that the transaction response device adjusts resource information based on the first transaction data to obtain second transaction data, and the second transaction data includes the target transaction identifier; receiving the second transaction data sent by the transaction response device; using the second target blockchain node to record the second transaction data; and in the case where the first transaction data and the second transaction data are consistent, writing the data of the first target blockchain node and the second target blockchain node into the database.

[0038] In this way, based on the different nodes in the blockchain built by the two parties to the transaction, it is first queried whether the blockchain node has recorded the transaction data corresponding to the target transaction identifier sent by the transaction response device, that is, whether there is transaction data corresponding to the transaction with the same transaction identifier. If so, the first target information is sent to the transaction response device for the transaction response device to perform subsequent transaction processes; the transaction data sent by the transaction response device is received, recorded using different blockchain nodes, and then it is verified whether the transaction data recorded by the two blockchain nodes are consistent. If they are consistent, it means that the transactions are consistent, and the data in the two blockchain nodes are written into the database, and the transaction data corresponding to the same transaction is verified in time, thereby improving the security of resource information. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0040] Figure 1 It is a flowchart of a data verification method provided by an embodiment of the present application;

[0041] Figure 2 is a flow chart of a data verification method provided by another embodiment of the present application;

[0042] Figure 3 is a flowchart of a data verification method provided by another embodiment of the present application;

[0043] Figure 4 is a flow chart of a data verification method provided in yet another embodiment of the present application;

[0044] Figure 5 is a flow chart of a data verification method provided in yet another embodiment of the present application;

[0045] Figure 6 is a flow chart of a data verification method provided in yet another embodiment of the present application;

[0046] Figure 7 is a structural schematic diagram of a data verification device provided in yet another embodiment of the present application;

[0047] Figure 8 It is a structural diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0048] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0049] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0050] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.

[0051] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0052] With the continuous improvement of economic level, the types and number of transactions involved in various industries have increased dramatically. Usually, the transaction data involved in various industries will be stored in the database, which is convenient for users to query historical transaction data. Moreover, for the databases corresponding to the two parties of the transaction, the transaction data of the same transaction will be checked for consistency to ensure the consistency of the transaction and the security of resource information.

[0053] At present, both the transaction request device and the transaction response device will first submit the transaction data to the database, and then determine the consistency of the transaction by verifying whether the transaction data corresponding to the same transaction is consistent between multiple databases. This verification method is inefficient and the verification is not timely, resulting in low security of resource information.

[0054] It should be noted that transaction consistency refers to the transaction consistency of the upstream and downstream of the transaction. Transaction consistency must be ensured for a transaction submission. For example, for a transaction, the transaction data of the transaction request device and the transaction response device must be consistent.

[0055] In order to solve the problems of the prior art, the embodiments of the present application provide a data verification method, device, equipment, medium and product. The data verification method provided by the embodiments of the present application is applied to a financial business system, and the financial business system includes multiple blockchain nodes, and the multiple blockchain nodes include a first target blockchain node and a second target blockchain node. Based on the different nodes in the blockchain built by the two parties to the transaction, first query whether the blockchain node records the transaction data corresponding to the target transaction identifier sent by the transaction response device, that is, whether there is transaction data corresponding to the transaction with the same transaction identifier. If so, send the first target information to the transaction response device for the transaction response device to perform subsequent transaction processes; receive the transaction data sent by the transaction response device, record it using different blockchain nodes, and then verify whether the transaction data recorded by the two blockchain nodes are consistent. If they are consistent, it means that the transactions are consistent, write the data in the two blockchain nodes into the database, and verify the transaction data corresponding to the same transaction in time, thereby improving the security of resource information.

[0056] The following first introduces the data verification method provided in the embodiment of the present application. Figure 1 As shown, the data verification method provided in the embodiment of the present application includes the following steps.

[0057] S110: Receive a query request sent by a transaction response device, where the query request includes a target transaction identifier.

[0058] Here, the target transaction identifier is the transaction identifier carried by the transaction request device when sending a transaction request to the transaction response device.

[0059] In some embodiments, before the financial service system receives the query request sent by the transaction response device, the transaction request device sends a transaction request to the transaction response device, and the transaction request includes basic transaction information and a target transaction identifier. The basic transaction information includes a transaction account number, a replacement quantity of resource information, and a type of resource information. Before the transaction response device adjusts the resource information based on the basic transaction information, it first sends a query request to the financial service system. If the transaction data corresponding to the target transaction identifier is recorded in the blockchain node, it means that the transaction request device has adjusted the resource information and generated the transaction data.

[0060] The transaction data may include, but is not limited to, the transaction account number, the exchange quantity of resource information, the type of resource information, the transaction time, etc.

[0061] It should be noted that a blockchain platform is built in the financial business system, and the blockchain platform includes multiple blockchain nodes, and the multiple blockchain nodes include a first target blockchain node and a second target blockchain node. Each blockchain node corresponds to a database node.

[0062] S120. In response to the query request, query whether multiple blockchain nodes record the first transaction data corresponding to the target transaction identifier.

[0063] Here, the first transaction data is set in advance.

[0064] In some embodiments, the first transaction data is transaction data sent by the transaction request device, and is transaction data generated after the transaction request device adjusts resource information.

[0065] It should be noted that multiple blockchain nodes can only record transaction data and do not store transaction data. Regardless of whether the transaction data can pass the consistency check, the transaction data in the blockchain node will disappear after the verification is completed.

[0066] S130. When it is found that the first target blockchain node records the first transaction data, the first target information is sent to the transaction response device, so that the transaction response device adjusts the resource information based on the first transaction data to obtain the second transaction data, and the second transaction data includes the target transaction identifier.

[0067] Here, the first target information is set in advance. The first target information indicates that the transaction corresponding to the target transaction identifier in the transaction response device can continue.

[0068] In some embodiments, the first target information includes first transaction data, and the transaction response device adjusts the resource information based on the first transaction data to obtain second transaction data.

[0069] In some embodiments, the transaction response device adjusts the resource information based on the basic information of the transaction to obtain the second transaction data. Here, the basic information of the transaction is obtained from the transaction request sent by the transaction request device.

[0070] The second transaction data may include, but is not limited to, a transaction account number, a replacement quantity of resource information, a type of resource information, a transaction time, etc.

[0071] S140: Receive second transaction data sent by the transaction response device.

[0072] S150. Use the second target blockchain node to record the second transaction data.

[0073] Here, the second target blockchain node and the first target blockchain node can be different blockchain nodes or the same blockchain node.

[0074] In some embodiments, if the second target blockchain node and the first target blockchain node are different blockchain nodes, the second target blockchain node is only used to record the second transaction data, and the first target blockchain node is only used to record the first transaction data.

[0075] In some embodiments, if the second target blockchain node and the first target blockchain node are the same blockchain node, the blockchain node is used to record the first transaction data and the second transaction data.

[0076] In some embodiments, the second target blockchain node is a blockchain node configured for the transaction response device, or a randomly selected blockchain node.

[0077] S160. When the first transaction data and the second transaction data are consistent, write the data of the first target blockchain node and the second target blockchain node into the database.

[0078] Here, after the data of the first target blockchain node and the second target blockchain node are successfully written into the database, the transaction corresponding to the target transaction identifier is completed.

[0079] In some embodiments, when the first transaction data and the second transaction data are consistent, it means that the transaction transaction corresponding to the target transaction identifier has passed the consistency check, and the data of the first target blockchain node and the second target blockchain node are blocked. When the data is successfully blocked, the database is also successfully written to achieve data consistency.

[0080] It should be noted that the consensus algorithm of blockchain is used to block data, that is, either the data succeeds together or fails together. There is no possibility of one succeeding and the other failing.

[0081] In this way, based on the different nodes in the blockchain built by the two parties to the transaction, it is first queried whether the blockchain node has recorded the transaction data corresponding to the target transaction identifier sent by the transaction response device, that is, whether there is transaction data corresponding to the transaction with the same transaction identifier. If so, the first target information is sent to the transaction response device for the transaction response device to perform subsequent transaction processes; the transaction data sent by the transaction response device is received, recorded using different blockchain nodes, and then it is verified whether the transaction data recorded by the two blockchain nodes are consistent. If they are consistent, it means that the transactions are consistent, and the data in the two blockchain nodes are written into the database, and the transaction data corresponding to the same transaction is verified in time, thereby improving the security of resource information.

[0082] Based on this, in some embodiments, such as Figure 2 As shown, the above S150 may specifically include:

[0083] S151, receiving a first login key sent by a transaction response device;

[0084] S152. When the first login key meets the preset conditions, the second transaction data is recorded using the second target blockchain node.

[0085] Here, the first login key is set in advance. The preset condition is set in advance.

[0086] In some embodiments, before the above S151, the financial service system performs identity authentication on the transaction response device, and after the identity authentication is passed, allocates and sends a first login key to the transaction response device.

[0087] In some embodiments, the above S152 may specifically include:

[0088] When the first login key is consistent with the preset login key in the financial business system and the first login key meets the usage time information, the second transaction data is recorded using the second target blockchain node.

[0089] Here, the usage time limit information may be pre-set. For example, the usage time limit information includes a first expiration time. If the time of receiving the first login key sent by the transaction response device exceeds the first expiration time, it is considered that the first login key does not meet the usage time limit information.

[0090] In some embodiments, when the first login key does not meet the preset condition, a prompt message is sent to the transaction request device to prompt the user to pay attention to the security of resource information and transaction data.

[0091] In this way, the use authority of the transaction response device is verified through the first login key. Only after the verification is passed can the second target blockchain node be used to record the second transaction data sent by the transaction response device until the transaction is completed, thereby improving the security of resource information and transaction data.

[0092] Based on this, in some embodiments, such as Figure 3 As shown, before the above S110, the method may further include:

[0093] S101, receiving first transaction data sent by a transaction request device, where the first transaction data includes a target transaction identifier;

[0094] S102. Use a first target blockchain node among multiple blockchain nodes to record first transaction data.

[0095] Here, the first transaction data is transaction data generated after the transaction request device adjusts the resource information.

[0096] In some embodiments, before the above S101, the transaction request device receives input of basic transaction information, adjusts resource information based on the basic transaction information, and generates first transaction data, where the first transaction data includes a target transaction identifier.

[0097] The first transaction data may include, but is not limited to, a transaction account number, a replacement quantity of resource information, a type of resource information, a transaction time, etc.

[0098] In some embodiments, the first target blockchain node is a blockchain node configured for the transaction requesting device, or a randomly selected blockchain node.

[0099] In this way, before receiving the query request sent by the transaction response device, the first transaction data sent by the upstream transaction request device is first received for comparison with the second transaction data sent by the downstream transaction response device to verify whether the upstream and downstream transaction affairs are consistent, thereby improving the security of resource information.

[0100] Based on this, in some embodiments, such as Figure 4 As shown, the above S102 may specifically include:

[0101] S210, receiving a second login key sent by a transaction requesting device;

[0102] S220. When the second login key meets a preset condition, the first transaction data is recorded using a first target blockchain node among multiple blockchain nodes.

[0103] Here, the second login key is set in advance. The preset condition is set in advance.

[0104] In some embodiments, before the above S210, the financial service system performs identity authentication on the transaction request device, and after the identity authentication is passed, allocates and sends a second login key to the transaction request device.

[0105] In some embodiments, the above S220 may specifically include:

[0106] When the second login key is consistent with the preset login key in the financial business system and the second login key meets the usage time information, the first target blockchain node is used to record the first transaction data.

[0107] Here, the usage time limit information may be pre-set. For example, the usage time limit information includes a second expiration time. If the time of receiving the second login key sent by the transaction request device exceeds the second expiration time, it is considered that the second login key does not meet the usage time limit information.

[0108] In some embodiments, when the second login key does not meet the preset condition, a prompt message is sent to the transaction request device to prompt the user to pay attention to the security of resource information and transaction data.

[0109] In this way, the use authority of the transaction request device is verified through the second login key. Only after the verification is passed can the first target blockchain node be used to record the first transaction data sent by the transaction request device until the transaction is completed, thereby improving the security of resource information and transaction data.

[0110] Based on this, in some embodiments, such as Figure 5 As shown, after the above S160, the method may further include:

[0111] S170. Send second target information to the transaction requesting device.

[0112] Here, the second target information is set in advance. The second target information represents the end of the transaction.

[0113] As an example, the second target information is "Transaction Completed".

[0114] In this way, by sending the second target information to the transaction request device, the user is notified that the transaction corresponding to the target transaction identifier has been completed, and the user does not need to perform complex query work, thereby improving the user experience.

[0115] Based on this, in some embodiments, such as Figure 6 As shown, corresponding to the above S160, the method may further include:

[0116] S180: When the first transaction data and the second transaction data are inconsistent, send third target information to the transaction request device.

[0117] Here, the third target information is set in advance. The third target information indicates that the transaction has not passed the consistency check.

[0118] As an example, the third target information is "the transaction contents are inconsistent".

[0119] In this way, by sending the third target information to the transaction request device, the user is notified that the transaction corresponding to the target transaction identifier has not passed the consistency check, and the user is reminded to pay attention to the security of the resource information, thereby improving the security of the resource information.

[0120] In the embodiments provided in this application, blockchain is used to achieve transaction consistency, avoiding complex code development to ensure transaction consistency of the database. The blockchain consensus mechanism is used to ensure transaction consistency, reducing a large amount of coding to achieve transaction consistency.

[0121] In the embodiment provided in this application, through the blockchain platform, when the transaction data recorded by the blockchain nodes reach a consensus and are placed in a block, the database transaction is submitted and the transaction data is submitted to the corresponding database, which improves the security of resource information. And based on the record-only nature of the blockchain, the security of transaction data can be further improved.

[0122] Based on the data verification method provided in the above embodiment, the present application also provides a specific implementation of a data verification device. Please refer to the following embodiment.

[0123] See also Figure 7 The data verification device 300 provided in the embodiment of the present application is applied to a financial business system, the financial business system includes a plurality of blockchain nodes, the plurality of blockchain nodes include a first target blockchain node and a second target blockchain node, the device 300 includes:

[0124] The receiving module 310 is used to receive a query request sent by a transaction response device, where the query request includes a target transaction identifier;

[0125] A query module 320, configured to query, in response to a query request, whether a plurality of blockchain nodes record first transaction data corresponding to a target transaction identifier;

[0126] The sending module 330 is used to send the first target information to the transaction response device when the first target blockchain node records the first transaction data, so that the transaction response device adjusts the resource information based on the first transaction data to obtain the second transaction data, and the second transaction data includes the target transaction identifier;

[0127] The receiving module 310 is further used to receive the second transaction data sent by the transaction response device;

[0128] A recording module 340, configured to record second transaction data using a second target blockchain node;

[0129] The writing module 350 is used to write the data of the first target blockchain node and the second target blockchain node into the database when the first transaction data and the second transaction data are consistent.

[0130] Based on this, in some embodiments, the recording module 340 may be specifically used for:

[0131] receiving a first login key sent by a transaction response device;

[0132] When the first login key meets the preset conditions, the second transaction data is recorded using the second target blockchain node.

[0133] Based on this, in some embodiments, the apparatus 300 may further include:

[0134] The receiving module 310 is further configured to receive first transaction data sent by the transaction requesting device before receiving the query request sent by the transaction responding device, wherein the first transaction data includes a target transaction identifier;

[0135] The recording module 340 is also used to record the first transaction data using the first target blockchain node among the multiple blockchain nodes.

[0136] Based on this, in some embodiments, the recording module 340 may be specifically used for:

[0137] receiving a second login key sent by the transaction request device;

[0138] When the second login key meets the preset conditions, the first transaction data is recorded using the first target blockchain node among the multiple blockchain nodes.

[0139] Based on this, in some embodiments, the apparatus 300 may further include:

[0140] The sending module 330 is also used to send the second target information to the transaction request device after writing the data of the first target blockchain node and the second target blockchain node into the database when the first transaction data and the second transaction data are consistent.

[0141] Based on this, in some embodiments, the apparatus 300 may further include:

[0142] The sending module 330 is further configured to send third target information to the transaction request device when the first transaction data and the second transaction data are inconsistent.

[0143] The various modules of the data verification device provided in the embodiment of the present application can realize the functions of the various steps of the data verification method provided above and achieve the corresponding technical effects, which will not be repeated here for the sake of concise description.

[0144] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.

[0145] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0146] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.

[0147] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0148] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an integrated gateway disaster recovery device. In a specific embodiment, memory 402 is a non-volatile solid-state memory.

[0149] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0150] The processor 401 implements any one of the data verification methods in the above embodiments by reading and executing computer program instructions stored in the memory 402 .

[0151] In one example, the electronic device may further include a communication interface 403 and a bus 410. Figure 8 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.

[0152] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0153] The bus 410 includes hardware, software or both, coupling the components of the electronic device to each other. For example, but not limitation, the bus may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, a front side bus (Front Side Bus, FSB), a hypertransport (Hyper Transport, HT) interconnection, an industry standard architecture (Industry Standard Architecture, ISA) bus, an infinite bandwidth interconnection, a low pin count (Linear Predictive Coding, LPC) bus, a memory bus, a micro channel architecture (MicroChannel Architecture, MCA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) bus, a video electronics standard association local (VESA Local Bus, VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 410 may include one or more buses. Although the embodiments of the present application describe and illustrate a specific bus, the present application considers any suitable bus or interconnection. The electronic device can execute the data verification method in the embodiments of the present invention, thereby realizing the above-mentioned data verification method.

[0154] In addition, in combination with the data verification method in the above embodiment, the embodiment of the present application can provide a computer storage medium to implement. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the data verification methods in the above embodiment is implemented.

[0155] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes each process of implementing any one of the above-mentioned data verification method embodiments.

[0156] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0157] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0158] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0159] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0160] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A data verification method, characterized in that: Applied to a financial business system, the financial business system includes a plurality of blockchain nodes, the plurality of blockchain nodes include a first target blockchain node and a second target blockchain node, the method includes: receiving a query request sent by a transaction response device, wherein the query request includes a target transaction identifier; In response to the query request, query the multiple blockchain nodes whether they record the first transaction data corresponding to the target transaction identifier; In the case where the first target blockchain node is found to record the first transaction data, first target information is sent to the transaction response device, so that the transaction response device adjusts resource information based on the first transaction data to obtain second transaction data, where the second transaction data includes the target transaction identifier; receiving second transaction data sent by the transaction response device; Using the second target blockchain node to record the second transaction data; When the first transaction data and the second transaction data are consistent, the data of the first target blockchain node and the second target blockchain node are written into the database.

2. The data verification method according to claim 1, characterized in that: The using the second target blockchain node to record the second transaction data includes: receiving a first login key sent by the transaction response device; When the first login key meets the preset conditions, the second target blockchain node is used to record the second transaction data.

3. The data verification method according to claim 1 or 2, characterized in that: Before receiving the query request sent by the transaction response device, the method further includes: Receiving first transaction data sent by a transaction request device, wherein the first transaction data includes a target transaction identifier; The first transaction data is recorded using the first target blockchain node among the multiple blockchain nodes.

4. The data verification method according to claim 3, characterized in that: The using a first target blockchain node among the multiple blockchain nodes to record the first transaction data includes: receiving a second login key sent by the transaction request device; When the second login key meets a preset condition, the first transaction data is recorded using a first target blockchain node among the multiple blockchain nodes.

5. The data verification method according to claim 1, characterized in that: When the first transaction data and the second transaction data are consistent, after writing the data of the first target blockchain node and the second target blockchain node into the database, the method further includes: The second target information is sent to the transaction requesting device.

6. The data verification method according to claim 1, characterized in that: Also includes: When the first transaction data and the second transaction data are inconsistent, third target information is sent to the transaction request device.

7. A data verification device, characterized in that: Applied to a financial business system, the financial business system includes a plurality of blockchain nodes, the plurality of blockchain nodes include a first target blockchain node and a second target blockchain node, the device includes: A receiving module, configured to receive a query request sent by a transaction response device, wherein the query request includes a target transaction identifier; A query module, configured to query, in response to the query request, whether the plurality of blockchain nodes record the first transaction data corresponding to the target transaction identifier; a sending module, configured to send first target information to the transaction response device when the first target blockchain node is found to record the first transaction data, so that the transaction response device adjusts resource information based on the first transaction data to obtain second transaction data, wherein the second transaction data includes the target transaction identifier; The receiving module is further used to receive the second transaction data sent by the transaction response device; A recording module, configured to record the second transaction data using the second target blockchain node; A writing module is used to write the data of the first target blockchain node and the second target blockchain node into a database when the first transaction data and the second transaction data are consistent.

8. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the data verification method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data verification method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to perform the data verification method as described in any one of claims 1 to 6.