Transaction data processing method and device based on blockchain system, equipment and medium

CN115906045BActive Publication Date: 2026-09-15HANGZHOU QULIAN TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211421682.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2026-09-15
Estimated Expiration
2042-11-14

AI Technical Summary

Technical Problem

[0005]本申请实施例提供了一种基于区块链系统的交易数据处理方法、装置、设备及介质,以解决现有技术中数据的可验证性差,无法确保数据交易的安全性及可靠性的问题

Benefits of technology

[0017] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115906045B_ABST
    Figure CN115906045B_ABST
Patent Text Reader

Abstract

The application is suitable for the field of blockchain technology, and provides a transaction data processing method and device based on a blockchain system, equipment and a medium, wherein the method comprises: obtaining a transaction request sent by a first client; in response to the transaction request, if a target checking program matched with the transaction request is retrieved from the blockchain system, the target checking program is extracted; based on the checking verification value, the target checking program is called to check the correctness of the transaction data, an inspection result is obtained, and data processing process proof information corresponding to the correctness checking is generated; and the data processing process proof information and the inspection result are stored in the blockchain system in association with user information of the data buyer. The scheme can ensure the security and reliability of both parties in the data transaction processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of blockchain technology, and in particular relates to a method, apparatus, device and medium for processing transaction data based on a blockchain system. Background Technology

[0002] Existing data trading models are more concerned with the decentralization of the trading platform, hoping to achieve a decentralized data trading platform on a blockchain system by leveraging blockchain technology. Data trading platforms differ from traditional commodity trading platforms; the commodities in data trading platforms are electronic data, which has unique characteristics during the trading process.

[0003] Decentralized data trading platforms face three main technical challenges. First, data sellers cannot show the data to buyers because electronic data is easily copied, leading to theft. Buyers also cannot verify the data's suitability beforehand. Second, some traded data is privacy-sensitive, such as salary information and medical data. Sellers may not want to sell the source data directly but want buyers to perform analysis and computation on the dataset.

[0004] This leads to an unbalanced contradiction between data verification and the sale of data usage rights, resulting in poor data verifiability and an inability to ensure the security and reliability of data transactions. Summary of the Invention

[0005] This application provides a method, apparatus, device, and medium for processing transaction data based on a blockchain system, in order to solve the problem of poor data verifiability in the prior art, which makes it impossible to ensure the security and reliability of data transactions.

[0006] A first aspect of this application provides a transaction data processing method based on a blockchain system, the method being applied to a computing node device, the method comprising:

[0007] The transaction request sent by the first client is obtained. The transaction request carries transaction data transmitted by the data seller through an encrypted channel and the check value corresponding to the transaction data. The first client corresponds to the data seller.

[0008] In response to the transaction request, if a target check procedure matching the transaction request is retrieved from the blockchain system, the target check procedure is extracted; the target check procedure is created and generated by a second client, which corresponds to the data purchaser.

[0009] Based on the check value, the target check program is invoked to perform a correctness check on the transaction data, obtain the check result, and generate data processing process proof information corresponding to the correctness check.

[0010] The data processing process proof information and the inspection results are associated with the user information of the data purchaser and stored in the blockchain system.

[0011] A second aspect of this application provides a transaction data processing apparatus based on a blockchain system, comprising:

[0012] The first acquisition module is used to acquire a transaction request sent by a first client. The transaction request carries transaction data transmitted by the data seller through an encrypted channel and a check value corresponding to the transaction data. The first client corresponds to the data seller.

[0013] The second acquisition module is used to, in response to the transaction request, extract the target inspection program if a target inspection program matching the transaction request is retrieved from the blockchain system; the target inspection program is created and generated by a second client, which corresponds to the data purchaser.

[0014] The data processing module is used to call the target inspection program based on the inspection verification value, perform a correctness check on the transaction data, obtain the inspection result, and generate data processing process proof information corresponding to the correctness check.

[0015] The storage module is used to associate and store the data processing process proof information and the inspection results with the user information of the data purchaser in the blockchain system.

[0016] A third aspect of this application provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described in the first aspect.

[0017] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.

[0018] The fifth aspect of this application provides a computer program product that, when run on a computer device, causes the computer device to perform the steps of the method described in the first aspect.

[0019] As can be seen from the above, in this embodiment of the application, when the data seller sells data to the data buyer, the blockchain system is used to store the inspection program provided by the data buyer. At the same time, the computing nodes are used to acquire the transaction data and retrieve and extract the inspection program, providing verifiable computing and privacy computing for the data transaction process. This enables the verifiability of privacy data transactions and the security and non-disclosure of data, ensuring the security and reliability of both parties in the data transaction process and protecting the interests of both parties. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This application provides a flowchart of a transaction data processing method based on a blockchain system. Figure 1 ;

[0022] Figure 2 This is an interactive schematic diagram of the transaction data processing method based on a blockchain system provided in the embodiments of this application;

[0023] Figure 3 This application provides a flowchart of a transaction data processing method based on a blockchain system. Figure 2 ;

[0024] Figure 4 This is a structural diagram of a transaction data processing device based on a blockchain system provided in an embodiment of this application;

[0025] Figure 5 This is a structural diagram of a computer device provided in an embodiment of this application. Detailed Implementation

[0026] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0027] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0028] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0029] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0030] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0031] In specific implementations, the computer devices described in the embodiments of this application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (e.g., touchscreen displays and / or touchpads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with touch-sensitive surfaces (e.g., touchscreen displays and / or touchpads).

[0032] The following discussion describes computer devices including displays and touch-sensitive surfaces. However, it should be understood that computer devices may include one or more other physical user interface devices such as physical keyboards, mice, and / or joysticks.

[0033] Computer devices support a variety of applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disc burning applications, spreadsheet applications, game applications, telephone applications, video conferencing applications, email applications, instant messaging applications, exercise support applications, photo management applications, digital camera applications, digital camcorder applications, web browsing applications, digital music player applications, and / or digital video player applications.

[0034] Various applications that can run on a computer device can use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and the corresponding information displayed on the computer device can be adjusted and / or changed between and / or within applications. In this way, the common physical architecture of the computer device (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.

[0035] It should be understood that the sequence number of each step in this embodiment does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application embodiment.

[0036] To illustrate the technical solution described in this application, specific embodiments are provided below.

[0037] See Figure 1 , Figure 1 This application provides a flowchart of a transaction data processing method based on a blockchain system. Figure 1 .like Figure 1 As shown, a transaction data processing method based on a blockchain system is applied to computing node devices.

[0038] The computing node device can specifically be a computer device. During implementation, the computing node device can be a node device within a blockchain system or a server node device independent of the blockchain system. It can be configured as needed and is not limited to this.

[0039] Specifically, the above method includes the following steps:

[0040] Step 101: Obtain the transaction request sent by the first client.

[0041] The transaction request includes transaction data transmitted by the data seller via an encrypted channel, along with a corresponding checksum. The first client corresponds to the data seller.

[0042] In this process, the data seller is responsible for providing the source data to be sold (i.e., transaction data) and verification values, which may be hash values ​​corresponding to the transaction data. The correctness of the data is verified by calling a specific verification program.

[0043] In one implementation plan, the above-mentioned transaction data processing method based on the blockchain system mainly involves four types of members: data buyers, data sellers, blockchain system node devices, and computing node devices.

[0044] Combination Figure 2 As shown, data buyers need to rely on computing nodes and blockchain nodes in the blockchain system to conduct transactions with data sellers.

[0045] Specifically, blockchain nodes and compute nodes serve as the infrastructure of the entire system architecture, available to both data buyers and sellers. These blockchain nodes collectively form a consensus network (i.e., a blockchain system network) that maintains a distributed ledger, ensuring the consistency and immutability of the stored data. Compute nodes can be configured to support Intel SGX (Intel Software Guard Extensions) functionality, responsible for data verification.

[0046] Optionally, in one embodiment of this application, the computing node needs to retrieve the inspection procedure from the consensus network, and then accept the secret input from the data seller to complete the data inspection calculation and generate a certificate.

[0047] In this process, the data purchaser is the creator of the inspection program, who writes specific inspection programs using a natural programming language, compiles them into arithmetic circuits, and publishes them to the consensus network.

[0048] In a different, alternative implementation, before obtaining the transaction request sent by the first client, the following steps are also included:

[0049] Retrieve the locally cached identity authentication certificate information;

[0050] Based on the identity authentication certificate information, the computing node device is authenticated, and if the identity authentication is successful, the device information of the computing node device is obtained and written into the list of registered nodes.

[0051] The above process corresponds to the initialization setup process that needs to be performed before the system architecture is officially put into operation.

[0052] The initialization setup includes the registration process for compute nodes, which verifies whether the compute nodes support Intel SGX functionality. Typically, Intel SGX functionality requires verification via remote attestation, specifically interaction with Intel IAS (International Attestation Services). To avoid the influence of hardware vendors on the functionality verification process, this embodiment uses a local service to verify the identity of trusted hardware (i.e., compute nodes). By pulling the corresponding certificate cache, the verification function can be implemented locally on the system. This process only needs to be performed once during system initialization; subsequently, the Intel IAS service will not affect the local verification service.

[0053] Step 102: In response to the transaction request, if a target check procedure matching the transaction request is retrieved from the blockchain system, the target check procedure is extracted.

[0054] The target inspection procedure is created and generated by a second client, which corresponds to the data purchaser.

[0055] In this process, when a data seller sells data to a data buyer, the blockchain system stores the inspection procedures provided by the data buyer. At the same time, computing nodes are used to acquire transaction data and retrieve and extract the inspection procedures. This enables the verifiability of privacy data transactions, ensures the security and reliability of both parties in the data transaction process, protects the data privacy of the data seller, and prevents the data buyer from being deceived by the data seller with false data.

[0056] The target checking procedure that retrieves the transaction request from the blockchain system can be implemented by comparing index characters or by matching set keywords.

[0057] In one optional implementation, the blockchain system stores multiple inspection procedures and corresponding descriptive information for each inspection procedure, the descriptive information including the storage address of each inspection procedure.

[0058] The description information may also include the user ID of the data purchaser corresponding to the inspection program, the name, size, and version of the inspection program, etc.

[0059] The data buyer first needs to deploy a specific verification program and send it to the blockchain system. The nodes in the blockchain system reach a consensus, write the program into their local database, and generate an address for the verification program for subsequent retrieval.

[0060] When retrieving a target check procedure that matches the transaction request from the blockchain system in response to the transaction request, the extraction of the target check procedure specifically includes:

[0061] In response to the transaction request, if a target inspection program matching the transaction request is retrieved from the blockchain system based on the description information, the target inspection program is extracted based on the target storage address corresponding to the target inspection program.

[0062] To achieve accurate retrieval of the target inspection procedure from multiple inspection procedures stored in the blockchain system.

[0063] Step 103: Based on the check value, call the target check program to perform a correctness check on the transaction data, obtain the check result, and generate data processing process proof information corresponding to the correctness check.

[0064] Specifically, the data processing process proof information corresponding to the correctness check can be zero-knowledge proof information for the data processing process of generating and calling the target check program based on the check verification value to perform a correctness check on the transaction data.

[0065] Correspondingly, in an optional implementation, an initialization configuration is also required before generating the data processing process proof information corresponding to the correctness check, specifically including:

[0066] In the target node of the blockchain system, a key is initialized, which is used to generate data processing process proof information corresponding to the correctness check.

[0067] Each time the key is updated, the node that writes the updated key changes to another node in the blockchain system.

[0068] In practice, this process involves initializing the zero-knowledge proof zk-STARK, which requires writing an initialization key into a blockchain node within a blockchain system. Subsequent data processing can then utilize this key.

[0069] Furthermore, the key can be updated. Each update writes the key into a new blockchain node, serving as a new checkpoint for the blockchain system. This ensures that if a key is compromised, its validity can be promptly guaranteed.

[0070] The aforementioned implementation plan addresses the issue of data verifiability, providing accuracy verification services for data in transactions, protecting the interests of data buyers, and preventing them from being deceived by false data. Simultaneously, it protects the privacy of data sellers, ensuring they do not worry about data leaks or theft during the transaction process.

[0071] Step 104: Associate the data processing process proof information and the inspection results with the user information of the data purchaser and store them in the blockchain system.

[0072] One or more data transaction nodes transmit their respective data to the computing nodes via an encrypted channel. After receiving the inspection program and data input, the computing nodes calculate the inspection result and the corresponding hash value, and generate zero-knowledge proof information for the inspection calculation process. Subsequently, this zero-knowledge proof information and the hash value corresponding to the inspection result are uploaded to the blockchain system for immutable storage.

[0073] In this embodiment, when a data seller sells data to a data buyer, a blockchain system is used to store the inspection program provided by the data buyer. Simultaneously, computing nodes are used to acquire transaction data and retrieve the inspection program, providing verifiable and privacy-preserving computation for the data transaction process. This enables the verifiability of privacy-preserving data transactions and ensures the security and reliability of data, protecting the interests of both parties in the data transaction process.

[0074] This application also provides different implementation methods for transaction data processing methods based on blockchain systems.

[0075] See Figure 3 , Figure 3 This application provides a flowchart of a transaction data processing method based on a blockchain system. Figure 2 .like Figure 3 As shown, a transaction data processing method based on a blockchain system includes the following steps:

[0076] Step 301: Obtain the transaction request sent by the first client.

[0077] The transaction request carries transaction data transmitted by the data seller through an encrypted channel and the corresponding check value of the transaction data. The first client corresponds to the data seller.

[0078] The implementation process of this step is the same as that of step 101 in the aforementioned embodiments, and will not be repeated here.

[0079] Step 302: In response to the transaction request, if a target check procedure matching the transaction request is retrieved from the blockchain system, the target check procedure is extracted.

[0080] The target inspection procedure is created and generated by a second client, which corresponds to the data purchaser.

[0081] The implementation process of this step is the same as that of step 102 in the aforementioned embodiments, and will not be repeated here.

[0082] Step 303: Based on the check value, call the target check program to perform a correctness check on the transaction data, obtain the check result, and generate data processing process proof information corresponding to the correctness check.

[0083] The implementation process of this step is the same as that of step 103 in the aforementioned embodiments, and will not be repeated here.

[0084] Step 304: The data processing process proof information and the inspection results are associated with the user information of the data purchaser and stored in the blockchain system.

[0085] The implementation process of this step is the same as that of step 104 in the aforementioned embodiments, and will not be repeated here.

[0086] Step 305: Output the data processing process proof information, the inspection results, and the user information of the data purchaser stored in association to the second client.

[0087] After linking and storing the data processing process proof information and inspection results with the data purchaser's user information in the blockchain system, you can choose to make this linked data visible to all participants.

[0088] Alternatively, the associated stored information, based on the user information of the data buyer, can be sent to the corresponding data buyer's second client.

[0089] Furthermore, after outputting the associated data processing process proof information, the inspection results, and the user information of the data purchaser to the second client, the method further includes:

[0090] The system detects the transaction payment operation triggered by the data purchaser based on the second client.

[0091] The transaction payment operation is recorded as evidence, and the evidence data is stored in the blockchain system.

[0092] Optionally, in one embodiment, after outputting the associated stored data processing process proof information, the inspection results, and the user information of the data purchaser to the second client, the method further includes:

[0093] Obtain the data delivery instruction triggered by the data seller based on the first client;

[0094] In response to the data delivery instruction, the transaction data is output to the second client via an encrypted channel.

[0095] In the aforementioned process, once the data buyer discovers that the relevant transaction data on the blockchain system has been checked and verified, they can use the blockchain system to make payments to the data seller, ensuring an immutable record of the payment transaction. After the data seller confirms receipt of payment, they can deliver the transaction data to the data buyer through an encrypted channel.

[0096] Specifically, when delivering transaction data to the data buyer, the hash value of the transaction data and the corresponding signature can be attached at the same time.

[0097] In an optional implementation, the delivery of transaction data can be subject to oversight by a trusted third party (TTP). If the data purchaser has any objection to the authenticity of the transaction data, they can apply to the TTP for adjudication. The TTP can then fairly determine which party has engaged in fraudulent behavior, and the fraudster will be punished accordingly.

[0098] In this embodiment, when a data seller sells data to a data buyer, a blockchain system is used to store the inspection program provided by the data buyer. Simultaneously, computing nodes are used to acquire transaction data and retrieve the inspection program, providing verifiable and privacy-preserving computation for the data transaction process. Ultimately, a reliable and effective transaction payment and data delivery process is achieved, enabling the verifiability of privacy-preserving data transactions, ensuring the security and reliability of both parties in the data transaction process, and protecting the interests of both parties.

[0099] See Figure 4 , Figure 4 This is a structural diagram of a transaction data processing device based on a blockchain system provided in an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0100] The blockchain-based transaction data processing device 400 includes:

[0101] The first acquisition module 401 is used to acquire a transaction request sent by a first client. The transaction request carries transaction data transmitted by the data seller through an encrypted channel and a check value corresponding to the transaction data. The first client corresponds to the data seller.

[0102] The second acquisition module 402 is used to, in response to the transaction request, extract the target inspection program if a target inspection program matching the transaction request is retrieved from the blockchain system; the target inspection program is created and generated by a second client, which corresponds to the data purchaser.

[0103] The data processing module 403 is used to call the target inspection program based on the inspection verification value, perform a correctness check on the transaction data, obtain the inspection result, and generate data processing process proof information corresponding to the correctness check.

[0104] Storage module 404 is used to associate and store the data processing process proof information and the inspection results with the user information of the data purchaser in the blockchain system.

[0105] The blockchain system stores multiple inspection procedures and corresponding description information for each inspection procedure. The description information includes the storage address of each inspection procedure. The second acquisition module 402 is specifically used for:

[0106] In response to the transaction request, if a target inspection program matching the transaction request is retrieved from the blockchain system based on the description information, the target inspection program is extracted based on the target storage address corresponding to the target inspection program.

[0107] The device also includes:

[0108] The output module is used to output the data processing process proof information, the inspection results, and the user information of the data purchaser stored in association to the second client.

[0109] The device also includes:

[0110] The payment evidence storage module is used for:

[0111] The system detects the transaction payment operation triggered by the data purchaser based on the second client.

[0112] The transaction payment operation is recorded as evidence, and the evidence data is stored in the blockchain system.

[0113] The device also includes:

[0114] The data delivery module is used for:

[0115] Obtain the data delivery instruction triggered by the data seller based on the first client;

[0116] In response to the data delivery instruction, the transaction data is output to the second client via an encrypted channel.

[0117] The device also includes:

[0118] The initialization module is used for:

[0119] In the target node of the blockchain system, a key is initialized, and the key is used to generate data processing process proof information corresponding to the correctness check;

[0120] Each time the key is updated, the node that writes the updated key changes to another node in the blockchain system.

[0121] This initialization module is also used for:

[0122] Retrieve the locally cached identity authentication certificate information;

[0123] Based on the identity authentication certificate information, the computing node device is authenticated, and if the identity authentication is successful, the device information of the computing node device is obtained and written into the list of registered nodes.

[0124] The transaction data processing apparatus based on the blockchain system provided in this application embodiment can implement all the processes of the above-described transaction data processing method based on the blockchain system embodiment and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0125] Figure 5 This is a structural diagram of a computer device provided in an embodiment of this application. As shown in the figure, the computer device 5 of this embodiment includes: at least one processor 50 ( Figure 5 (Only one is shown in the diagram), memory 51, and computer program 52 stored in said memory 51 and executable on said at least one processor 50, wherein said processor 50 executes said computer program 52 to implement the steps in any of the above method embodiments.

[0126] The computer device 5 may be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that... Figure 5 This is merely an example of computer device 5 and does not constitute a limitation on computer device 5. It may include more or fewer components than shown, or combine certain components, or different components. For example, the computer device may also include input / output devices, network access devices, buses, etc.

[0127] The processor 50 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0128] The memory 51 can be an internal storage unit of the computer device 5, such as a hard disk or memory of the computer device 5. The memory 51 can also be an external storage device of the computer device 5, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer device 5. Furthermore, the memory 51 can include both internal and external storage units of the computer device 5. The memory 51 is used to store the computer program and other programs and data required by the computer device. The memory 51 can also be used to temporarily store data that has been output or will be output.

[0129] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0130] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

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

[0132] In the embodiments provided in this application, it should be understood that the disclosed apparatus / computer devices and methods can be implemented in other ways. For example, the apparatus / computer device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0133] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0134] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0135] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0136] The methods described in this application can be implemented in whole or in part by a computer program product. When the computer program product is run on a computer device, the computer device executes the steps in the various method embodiments described above.

[0137] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for processing transaction data based on a blockchain system, characterized in that, The method is applied to a computing node device, and the method includes: The transaction request sent by the first client is obtained. The transaction request carries transaction data transmitted by the data seller through an encrypted channel and the check value corresponding to the transaction data. The first client corresponds to the data seller. In response to the transaction request, if a target checking procedure matching the transaction request is retrieved from the blockchain system, the target checking procedure is extracted; the target checking procedure is created and generated by a second client, which corresponds to the data purchaser; the target checking procedure is used to perform a correctness check on the transaction data. Based on the check value, the target check program is invoked to check the correctness of the transaction data and obtain the check result; In the target node of the blockchain system, a key is initialized. The key is used to generate data processing process proof information corresponding to the correctness check. Each time the key is updated, the writing node of the updated key changes to another node in the blockchain system. Generate data processing process proof information corresponding to the correctness check; The data processing process proof information and the inspection results are associated with the user information of the data purchaser and stored in the blockchain system.

2. The method of claim 1, wherein, The blockchain system stores multiple inspection procedures and corresponding description information for each inspection procedure. The description information includes the storage address of each inspection procedure. In response to the transaction request, if a target inspection procedure matching the transaction request is retrieved from the blockchain system, the target inspection procedure is extracted, including: In response to the transaction request, if a target inspection program matching the transaction request is retrieved from the blockchain system based on the description information, the target inspection program is extracted based on the target storage address corresponding to the target inspection program.

3. The method of claim 1, wherein, After associating and storing the data processing proof information and the inspection results with the user information of the data purchaser in the blockchain system, the method further includes: The associated data processing process proof information, the inspection results, and the user information of the data purchaser are output to the second client.

4. The method of claim 3, wherein, After outputting the associated data processing process proof information, the inspection results, and the data purchaser's user information to the second client, the method further includes: The system detects the transaction payment operation triggered by the data purchaser based on the second client. The transaction payment operation is recorded as evidence, and the evidence data is stored in the blockchain system.

5. The method of claim 3, wherein, After outputting the associated data processing process proof information, the inspection results, and the data purchaser's user information to the second client, the method further includes: Obtain the data delivery instruction triggered by the data seller based on the first client; In response to the data delivery instruction, the transaction data is output to the second client via an encrypted channel.

6. The method of claim 1, wherein, Before obtaining the transaction request sent by the first client, the process also includes: Retrieve the locally cached identity authentication certificate information; Based on the identity authentication certificate information, the computing node device is authenticated, and if the identity authentication is successful, the device information of the computing node device is obtained and written into the list of registered nodes. 7.A transaction data processing apparatus based on a blockchain system, characterized by, include: The first acquisition module is used to acquire a transaction request sent by a first client. The transaction request carries transaction data transmitted by the data seller through an encrypted channel and a check value corresponding to the transaction data. The first client corresponds to the data seller. The second acquisition module is used to, in response to the transaction request, extract the target inspection program if a target inspection program matching the transaction request is retrieved from the blockchain system; the target inspection program is created and generated by a second client, which corresponds to the data purchaser. The target inspection procedure is used to check the correctness of the transaction data. An initialization module is used to initialize a key in a target node of the blockchain system. The key is used to generate data processing proof information corresponding to the correctness check. Each time the key is updated, the writing node of the updated key changes to another node in the blockchain system. The data processing module is used to call the target inspection program based on the inspection verification value, perform a correctness check on the transaction data, obtain the inspection result, and generate data processing process proof information corresponding to the correctness check. The storage module is used to associate and store the data processing process proof information and the inspection results with the user information of the data purchaser in the blockchain system.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 8. When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data safety sharing method and system based on block chain

    CN111753321A

  • Data transaction method and system based on block chain

    CN115203749A