Business data processing method, device, computer equipment and readable storage medium

By configuring two types of storage nodes in the Fabric blockchain and using a trusted execution environment for encryption, the problem that business nodes cannot effectively back up and restore data is solved, and the storage security and integrity of data are improved.

CN115297125BActive Publication Date: 2024-11-26SHUGEN GEZHI TECH (HUNAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210930658.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-04
Publication Date
2024-11-26
Estimated Expiration
2042-08-04

AI Technical Summary

Technical Problem

In the smaller Fabric blockchain architecture, business nodes cannot effectively backup and restore data from transaction services, resulting in data being lost or damaged in time.

Method used

By configuring two types of nodes that store service data in the Fabric blockchain, encrypting and processing and decrypting are used to use a trusted execution environment to send encrypted services to the first storage node with viewing permission and the second storage node without viewing permission respectively Data, realizes data backup and redundant storage.

Benefits of technology

Improve the storage security of business data, ensure the integrity and reliability of data during processing, and avoid the risks caused by data loss or corruption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115297125B_ABST
    Figure CN115297125B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a business data processing method, device, computer equipment and readable storage medium, wherein the fabric blockchain includes at least one first storage node and at least one second storage node, wherein the first storage node includes a trusted execution environment, and the business data processing method includes: obtaining encrypted business data corresponding to a preset transaction request; sending the encrypted business data to a target storage node according to an endorsement signature, so that the target storage node obtains the plaintext data of the encrypted business data in the trusted execution environment and stores the plaintext data; sending the encrypted business data to any second storage node, so that the second storage node stores the encrypted business data. The present invention configures two types of node roles for storing business data in the blockchain, so that the business data can be backed up redundantly each time the business data is stored, thereby effectively improving the storage security of the business data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a business data processing method, device, computer equipment and readable storage medium. Background Art

[0002] In the existing fabric blockchain data processing solution, the number of business nodes participating in the business request is determined by the scale of the blockchain. In a smaller-scale fabric blockchain architecture, the number of business nodes is small, and when the amount of business data used by the transaction business is large, the business node cannot completely back up the business data participating in the transaction business. When the business data in the business node is lost or damaged, the business node cannot effectively restore the business data.

[0003] Therefore, there is an urgent need for a business data processing solution that can effectively ensure the security of business data in business nodes. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present application provide a business data processing method, device, computer equipment and readable storage medium. The specific solutions are as follows:

[0005] In a first aspect, an embodiment of the present application provides a business data processing method, which is applied to a fabric blockchain, wherein the fabric blockchain includes at least one first storage node and at least one second storage node, wherein the first storage node includes a trusted execution environment, and the business data processing method includes:

[0006] Acquire encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key, and the business storage key is a symmetric key corresponding to the preset transaction request provided by the trusted execution environment;

[0007] Sending the encrypted business data to a target storage node according to the endorsement signature, so that the target storage node obtains plaintext data of the encrypted business data in the trusted execution environment and stores the plaintext data, wherein the target storage node is a first storage node corresponding to the encrypted business data, and the endorsement signature is signature information obtained by endorsing the encrypted business data;

[0008] The encrypted business data is sent to any second storage node so that the second storage node stores the encrypted business data.

[0009] According to a specific implementation of an embodiment of the present application, the fabric blockchain further includes a computing node and an endorsement node, the first storage node includes a trusted execution environment, and before the step of obtaining encrypted business data corresponding to a preset transaction request, the business data processing method further includes:

[0010] Sending a preset transaction request to the computing node;

[0011] Receiving a calculation result sent by the calculation node, wherein the calculation result is ciphertext business data obtained by the calculation node through calculation and encryption according to the preset transaction request;

[0012] Sending the calculation result to the endorsing node;

[0013] The encrypted business data sent by the endorsing node is received, where the encrypted business data includes the calculation result and an endorsement signature obtained by the endorsing node endorsing the calculation result.

[0014] According to a specific implementation of the embodiment of the present application, the first storage node is a business node with business data viewing authority, and the second storage node is a business node without business data viewing authority.

[0015] According to a specific implementation of the embodiment of the present application, when the fabric blockchain includes at least two second storage nodes, the step of sending the encrypted business data to any second storage node includes:

[0016] Determine whether the second storage node currently has remaining storage space;

[0017] In the case where the current second storage node has remaining storage space, sending the encrypted service data to the current second storage node;

[0018] In the case that the current second storage node has no remaining storage space, the encrypted business data is sent to a second storage node other than the current second storage node.

[0019] In a second aspect, an embodiment of the present application provides a business data processing method, which is applied to a first storage node of a fabric blockchain, wherein the first storage node includes a trusted execution environment, and the business data processing method includes:

[0020] Receiving encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key;

[0021] Performing signature authentication on the signature information associated with the encrypted business data;

[0022] After the signature authentication is passed, a business storage key is obtained in the trusted execution environment, where the business storage key is a symmetric key corresponding to the preset transaction request;

[0023] Decrypting the encrypted business data according to the business storage key to obtain plaintext data;

[0024] The plaintext data is stored.

[0025] According to a specific implementation of an embodiment of the present application, the fabric blockchain further includes at least one second storage node, and after the step of decrypting the encrypted business data according to the business storage key to obtain plaintext data, the method further includes:

[0026] Processing the historical plaintext data according to the preset transaction request to obtain target plaintext data, wherein the historical plaintext data is the plaintext data obtained after decrypting the encrypted business data;

[0027] Acquire a target business storage key in the trusted execution environment, wherein the target business storage key is a business storage key corresponding to the preset transaction request;

[0028] Encrypting the plaintext data according to the business storage key to obtain target encrypted business data;

[0029] The target encrypted business data is sent to the second storage node so that the second storage node stores the target encrypted business data.

[0030] In a third aspect, an embodiment of the present application provides a business data processing device, which is applied to a fabric blockchain, wherein the fabric blockchain includes at least one first storage node and at least one second storage node, wherein the first storage node includes a trusted execution environment, and the business data processing device includes:

[0031] An acquisition module, configured to acquire encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key, and the business storage key is a symmetric key corresponding to the preset transaction request and provided by the trusted execution environment;

[0032] A first storage module, configured to send the encrypted business data to a target storage node according to the endorsement signature, so that the target storage node obtains plaintext data of the encrypted business data in the trusted execution environment and stores the plaintext data, wherein the target storage node is a first storage node corresponding to the encrypted business data, and the endorsement signature is signature information obtained by endorsing the encrypted business data;

[0033] The second storage module is used to send the encrypted business data to any second storage node so that the second storage node stores the encrypted business data.

[0034] In a fourth aspect, an embodiment of the present application provides a business data processing device, which is applied to a first storage node of a fabric blockchain, wherein the first storage node includes a trusted execution environment, and the business data processing device includes:

[0035] A receiving module, configured to receive encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key;

[0036] An authentication module, used to perform signature authentication on the signature information associated with the encrypted business data;

[0037] A key acquisition module, used to acquire a business storage key in the trusted execution environment after the signature authentication is passed, wherein the business storage key is a symmetric key corresponding to the preset transaction request;

[0038] A decryption module, used to decrypt the encrypted business data according to the business storage key to obtain plaintext data;

[0039] A storage module is used to store the plaintext data.

[0040] In a fifth aspect, an embodiment of the present application provides a computer device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program runs on the processor, the business data processing method described in the first and second aspects is executed.

[0041] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a processor, it executes the business data processing method described in the first and second aspects above.

[0042] The embodiment of the present application provides a business data processing method, device, computer equipment and readable storage medium, the fabric blockchain includes at least one first storage node and at least one second storage node, the first storage node includes a trusted execution environment, and the business data processing method includes: obtaining encrypted business data corresponding to a preset transaction request; sending the encrypted business data to a target storage node according to an endorsement signature, so that the target storage node obtains the plaintext data of the encrypted business data in a trusted execution environment and stores the plaintext data; sending the encrypted business data to any second storage node, so that the second storage node stores the encrypted business data. The present invention configures two types of node roles for storing business data in the blockchain, so that the business data can be backed up redundantly each time the business data is stored, thereby effectively improving the storage security of the business data. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0044] Figure 1 A schematic diagram of a fabric blockchain framework provided in an embodiment of the present application is shown;

[0045] Figure 2 One of the method flow diagrams of a business data processing method provided by an embodiment of the present application is shown;

[0046] Figure 3 A second method flow diagram of a business data processing method provided by an embodiment of the present application is shown;

[0047] Figure 4 One of the device module schematic diagrams of a business data processing device provided in an embodiment of the present application is shown;

[0048] Figure 5 A second schematic diagram of a device module of a business data processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0049] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0050] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0051] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0052] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0053] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.

[0054] refer to Figure 1 and Figure 2 , are respectively a schematic diagram of the architecture of a fabric blockchain provided in an embodiment of the present application, and a method flow diagram of a business data processing method applied to an endorsement node of a fabric blockchain. The business data processing method provided in an embodiment of the present application is applied to a user node of a fabric blockchain, such as Figure 1 As shown, the fabric blockchain also includes at least one first storage node and at least one second storage node, and the first storage node includes a trusted execution environment.

[0055] In a specific embodiment, the fabric blockchain is a blockchain architecture that includes multiple types of nodes. Specifically, each node can be a subnet configured by an enterprise user according to a preset business purpose, and different enterprise users can realize interactive sharing of business data through channels between nodes. The fabric blockchain of this embodiment includes nodes of types such as user nodes, computing nodes, endorsement nodes, first storage nodes, and second storage nodes.

[0056] In this embodiment, the computing node, the first storage node and the second storage node are all configured with a Trusted Execution Environment (TEE for short). The computing node, the first storage node and the second storage node can interact with the TEE key distribution server through remote verification to obtain the business storage key corresponding to the transaction request, thereby realizing encryption and decryption processing of the business data participating in the transaction request.

[0057] It should be noted that the user node and the endorsement node can selectively configure a trusted execution environment according to actual application scenarios, and no specific limitation is made to the user node and the endorsement node herein.

[0058] After the user node sends a preset transaction request to the computing node, the computing node can request the business storage root key from the preset key distribution server based on the Challenge-Response Authentication Mechanism (CRAM). The business storage key is a symmetric key obtained by processing the business storage root key and the business ID of the corresponding transaction request through a preset derivation function.

[0059] Specifically, the service ID is authentication information corresponding to the transaction request, and each transaction request has a unique corresponding service ID. The preset derivation function may be a hash function or other types of derivation functions, which is not limited in this embodiment.

[0060] Specifically, according to the purpose of different transaction businesses, a preset number of business nodes are configured in the fabric blockchain, and each business node stores the execution rules and associated business data for executing the corresponding transaction business.

[0061] In the process of executing a transaction, the user node sends a transaction request to the computing node, and the computing node obtains the business data corresponding to the transaction request from the preset database or the corresponding business node, and performs a preset calculation on the business data to obtain the calculation result corresponding to the transaction request. The computing node also encrypts the calculation result according to the business storage key in the trusted execution environment to obtain the corresponding encrypted calculation result.

[0062] After obtaining the encrypted calculation result, the computing node sends the encrypted calculation result to the user node, and the user node forwards the encrypted calculation result to the endorsement node so that the endorsement node endorses the encrypted calculation result. After verifying the TEE signature of the encrypted calculation result, the endorsement node endorses the encrypted calculation result to obtain the endorsement result. The endorsement result is the business data that has been calculated and processed and the endorsement signature corresponding to the business data.

[0063] Specifically, the transaction request includes a preset business contract, and the business contract specifies the calculation rules and endorsement policy of the business node. The endorsement node can perform calculation processing on the business data according to the preset calculation rules, and the endorsement node can endorse the business data according to the preset endorsement policy.

[0064] This embodiment does not specifically limit the setting of the calculation rules and endorsement policies, and adaptive replacement can be performed according to actual application scenarios.

[0065] When the endorsement node sends the endorsement result back to the user node, it also sends the business data packet associated with the transaction request to each business node, and each business node stores the received business data locally.

[0066] According to a specific implementation of the embodiment of the present application, the first storage node is a business node with business data viewing authority, and the second storage node is a business node without business data viewing authority.

[0067] This embodiment encrypts the business data obtained by the user node so that the data received by all business nodes are encrypted business data. At the same time, by configuring TEE and different data decryption permissions in each business node, the role of the business node is divided into a first storage node and a second storage node.

[0068] Specifically, this embodiment configures different roles for different business nodes in the fabric blockchain architecture, wherein the business nodes participating in the business data processing between enterprises are divided into first storage nodes, and the first storage nodes have the viewing authority of the privacy data corresponding to the business request. The business nodes not participating in the business data processing between enterprises are divided into second storage nodes, and the second storage nodes do not have the viewing authority of the privacy data corresponding to the business request.

[0069] The business data corresponding to different preset transaction requests are not the same. In this embodiment, corresponding to different transaction requests sent by different user nodes, the storage node role of each business node may be converted.

[0070] For example, for transaction request A, service node B is the first storage node, and service node C is the second storage node. For transaction request D, service node C is the first storage node, and service node B is the second storage node.

[0071] When the Fabric blockchain stores business data, the endorsement node can send the business data to the first storage node and the second storage node at the same time. The first storage node can view the plaintext content of the business data according to preset rules and preset permissions, and after obtaining the plaintext content of the business data, store the plaintext content in the local disk.

[0072] The second storage node serves as a redundant backup node. After acquiring the business data, the second storage node cannot view the plain text content of the business data and directly stores the cipher text content of the business data in the local disk.

[0073] It should be noted that the second storage node can also be any ordinary blockchain node that does not have the authority to view business data. The ordinary blockchain node refers to a node that does not participate in the processing of transaction business and can be used to store data.

[0074] Specifically, the number of the first storage nodes is determined according to the number of business nodes related to the preset transaction request. The more business nodes participate in the same transaction request, the more the first storage nodes are.

[0075] The number of the second storage nodes is determined according to the business node scale of the fabric blockchain. When the number of nodes in the fabric blockchain increases, the number of the second storage nodes will also increase. The number of the second storage nodes is always greater than the number of the first storage nodes.

[0076] This embodiment configures a preset number of second storage nodes in the fabric blockchain to ensure that the business data stored in the first storage node is fully backed up, thereby improving the security of the business data during the processing.

[0077] like Figure 2 As shown, the service data processing method applied to the user node includes:

[0078] Step S201, obtaining encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key, and the business storage key is a symmetric key corresponding to the preset transaction request provided by the trusted execution environment;

[0079] In a specific embodiment, after multiple rounds of data interaction with the computing node and the endorsing node, the user node obtains encrypted business data corresponding to the preset transaction request, wherein the encrypted business data is also associated with the endorsement signature obtained after the endorsement node endorses it.

[0080] Specifically, the encrypted business data may be an endorsement result sent by the endorsement node to the user node.

[0081] According to a specific implementation of an embodiment of the present application, the fabric blockchain further includes a computing node and an endorsement node, the first storage node includes a trusted execution environment, and before the step of obtaining encrypted business data corresponding to a preset transaction request, the business data processing method further includes:

[0082] Sending a preset transaction request to the computing node;

[0083] Receiving a calculation result sent by the calculation node, wherein the calculation result is ciphertext business data obtained by the calculation node through calculation and encryption according to the preset transaction request;

[0084] Sending the calculation result to the endorsing node;

[0085] The encrypted business data sent by the endorsing node is received, where the encrypted business data includes the calculation result and an endorsement signature obtained by the endorsing node endorsing the calculation result.

[0086] In a specific embodiment, the computing node receives a transaction request submitted by a user node, and determines target business data according to the contract and parameters included in the transaction request. The computing node extracts the target business data corresponding to the transaction request from a preset database.

[0087] Specifically, the transaction request includes a request for querying product prices, modifying product prices and other ledger data. The substantive content of the transaction request is not specifically limited here. Any transaction request applied to the fabric blockchain architecture may be included in the executable scope of this embodiment.

[0088] The preset database is a shared database of the fabric blockchain architecture, and the business data of all enterprise users is stored in the shared database.

[0089] In a feasible embodiment, the business data may also be stored in the corresponding first storage node. The computing node directly calls the business data from the first storage node by establishing a communication channel with the first storage node, and uses it for subsequent computing processing and endorsement processing.

[0090] After obtaining the target business data, the computing node performs computation processing on the target business data corresponding to the transaction request, and then encrypts the computation result in the TEE according to a preset encryption method to obtain the ciphertext business data.

[0091] After receiving the encrypted business data sent by the computing node, the endorsement node endorses the encrypted business data according to the preset contract of the transaction request to obtain encrypted business data including the endorsement signature.

[0092] After receiving the ciphertext business data, the endorsement node can configure a trusted execution environment in the endorsement node by loading TEE, so that the encrypted business data can be decrypted by the business storage key to obtain the plaintext data of the business data. After obtaining the plaintext data of the ciphertext business data, the endorsement node endorses the plaintext data and finally obtains the business data with the endorsement signature. The business data with the endorsement signature is then encrypted according to the business storage key to obtain encrypted business data with the endorsement signature.

[0093] The endorsement node sends the encrypted business data with the endorsement signature to the first storage node. The first storage node can decrypt the encrypted business data in the TEE environment and store the plain text content of the business data locally.

[0094] Specifically, the first storage node may request the business storage key from the TEE key server by remote attestation.

[0095] Step S202: sending the encrypted business data to a target storage node according to the endorsement signature, so that the target storage node obtains plaintext data of the encrypted business data in the trusted execution environment and stores the plaintext data, wherein the target storage node is a first storage node corresponding to the encrypted business data, and the endorsement signature is signature information obtained by endorsing the encrypted business data;

[0096] In a specific embodiment, after obtaining the business data corresponding to the transaction request, the endorsement node endorses the business data according to a preset endorsement policy.

[0097] Specifically, the endorsement policy is a judgment condition for judging whether the business data meets the user's transaction purpose. The endorsement policy can be replaced according to the substantive content of the user's transaction request in the actual application scenario, and is not specifically limited here.

[0098] Specifically, endorsement refers to the processing action of verifying whether the transaction request is valid and declaring the first storage node that matches the transaction request. The endorsement signature is used to indicate whether the business data is valid and to indicate the corresponding target storage node.

[0099] When the fabric blockchain includes at least two first storage nodes, the user node needs to find the first storage node associated with the transaction request according to the endorsement signature of the business data packet, and use the associated first storage node as the target storage node to send the business data packet to it.

[0100] In a specific embodiment, after receiving the service data packet, the target storage node performs corresponding service processing on the service data packet.

[0101] Specifically, the target storage node sends a key acquisition request to a preset key distribution server, and obtains the business storage key corresponding to the transaction request from the key distribution server based on a Challenge-Response Authentication Mechanism (CRAM). In this embodiment, each transaction request has a unique corresponding business storage key. The business storage key is a symmetric key.

[0102] The target storage node decrypts the encrypted business data according to the business storage key to obtain the plaintext data corresponding to the transaction request. The target storage node stores the plaintext data in the local disk. The target storage node can also perform corresponding business processing on the plaintext data according to the preset transaction request.

[0103] Step S203: sending the encrypted service data to any second storage node, so that the second storage node stores the encrypted service data;

[0104] In a specific embodiment, the fabric blockchain includes a preset number of second storage nodes. When a user node sends a preset transaction request, each first storage node can be determined according to the business node corresponding to the preset transaction request. At this time, other business nodes can all serve as the second storage nodes of the current preset transaction request.

[0105] It should be noted that the disk space of all second storage nodes is greater than or equal to the disk space of all first storage nodes.

[0106] After the user node obtains the encrypted business data, it sends the encrypted business data to any second storage node, thereby backing up the business data corresponding to the transaction request in the second storage node, thereby ensuring the security of the business data.

[0107] In this embodiment, the second storage node directly stores the encrypted business data in the remaining space of the local disk, and the second storage node does not decrypt the encrypted business data.

[0108] In a specific implementation, when business data in the first storage node is damaged, the first storage node detects the business ID of the business storage key corresponding to the damaged business data, and queries the corresponding backup business data in the second storage node according to the business ID.

[0109] The first storage node calls the backup business data from the second storage node and re-performs the decryption process in the first storage node to obtain the complete plaintext content of the business data, thereby ensuring the normal operation of the business node.

[0110] According to a specific implementation of the embodiment of the present application, when the fabric blockchain includes at least two second storage nodes, the step of sending the encrypted business data to any second storage node includes:

[0111] Determine whether the second storage node currently has remaining storage space;

[0112] In the case where the current second storage node has remaining storage space, sending the encrypted service data to the current second storage node;

[0113] In the case that the current second storage node has no remaining storage space, the encrypted business data is sent to a second storage node other than the current second storage node.

[0114] In a specific embodiment, when backing up business data to the second storage node, the user node searches for a second storage node with remaining storage space among all the second storage nodes to store the encrypted business data.

[0115] Specifically, the second storage node may store only the business data in one first storage node, or may store the business data in multiple first storage nodes simultaneously.

[0116] Specifically, the business data stored in the second storage node all have a unique business storage key corresponding to the transaction request.

[0117] In a specific implementation, the user can set the backup rules of the second storage node in the user node in advance, establish an association relationship between the first storage node and the second storage node according to the transaction business type, and when the endorsement node sends encrypted business data to the second storage node, it will perform data backup according to the association relationship between the first storage node and the second storage node.

[0118] For example, the first storage node and the second storage node are numbered respectively, and the first storage node and the second storage node having the same number are associated.

[0119] The business data processing method proposed in this embodiment stores the business data corresponding to a transaction request in the first storage node and the second storage node respectively during the process of the endorsement node sending business data to the business node, thereby realizing the secure backup processing of all business data, greatly improving the security of business data in the business nodes of the fabric blockchain.

[0120] refer to Figure 3 , which is a method flow diagram of a business data method applied to a first storage node of a fabric blockchain provided in an embodiment of the present application. The business data method provided in an embodiment of the present application is applied to a first storage node of a fabric blockchain, such as Figure 1 As shown, the fabric blockchain also includes a user node and at least one second storage node, such as Figure 3 As shown, the business data processing method includes:

[0121] Step S301, receiving encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key;

[0122] Step S302, performing signature authentication on the signature information associated with the encrypted business data;

[0123] Step S303: after the signature authentication is passed, a business storage key is obtained in the trusted execution environment, where the business storage key is a symmetric key corresponding to the preset transaction request;

[0124] Step S304, decrypting the encrypted business data according to the business storage key to obtain plaintext data;

[0125] Step S305: store the plaintext data.

[0126] The fabric blockchain framework in this embodiment can refer to the specific implementation process in the aforementioned embodiment 1, which will not be repeated here.

[0127] In a specific embodiment, the first storage node is a service node having service data reading authority.

[0128] After receiving the service data packet including the endorsement signature sent by the endorsement node, the first storage node will immediately authenticate the endorsement signature to determine whether the target storage node declared by the endorsement signature is the current first storage node.

[0129] When the target storage node of the endorsement signature declaration is the current first storage node, the current first storage node outputs a result of signature authentication passing.

[0130] When the target storage node declared by the endorsement signature is not the current first storage node or the endorsement signature indicates that the business data is illegal, the current first storage node outputs a result that the signature authentication fails.

[0131] After the endorsement signature authentication is passed, the first storage node submits a key acquisition request to a preset key distribution server to obtain a business storage key corresponding to the transaction request. Specifically, the specific implementation process of obtaining the business storage key from the key distribution server can refer to the specific implementation process in the aforementioned embodiment, which will not be repeated here.

[0132] In a specific embodiment, the preset key distribution server may be a TTE key distribution server.

[0133] The service storage key obtained by the first storage node from the preset key distribution server can be used to decrypt the service data packet sent by the endorsement node, and can also be used to encrypt the service data packet.

[0134] According to a specific implementation of an embodiment of the present application, the fabric blockchain further includes at least one second storage node, and after the step of decrypting the encrypted business data according to the business storage key to obtain plaintext data, the method further includes:

[0135] Processing the historical plaintext data according to the preset transaction request to obtain target plaintext data, wherein the historical plaintext data is the plaintext data obtained after decrypting the encrypted business data;

[0136] Acquire a target business storage key in the trusted execution environment, wherein the target business storage key is a business storage key corresponding to the preset transaction request;

[0137] Encrypting the plaintext data according to the business storage key to obtain target encrypted business data;

[0138] The target encrypted business data is sent to the second storage node so that the second storage node stores the target encrypted business data.

[0139] In a specific embodiment, after the first storage node decrypts the encrypted business data sent by the user node, it further processes the plaintext data according to a preset transaction request to obtain updated target plaintext data.

[0140] At this time, the first storage node will issue a key application to the preset TEE key distribution server to obtain the business storage key corresponding to the preset transaction request, and encrypt the target plaintext data based on the business storage key to obtain the updated target encrypted business data.

[0141] The first storage node searches for encrypted business data with the same business ID in each second storage node based on the business ID of the business storage key, and sends the target encrypted business data to the second storage node with the corresponding historical encrypted business data, so that the second storage node overwrites the historical encrypted business data to store the target encrypted business data.

[0142] In the business data processing method proposed in this embodiment, after the first storage node and the second storage node receive the encrypted business data sent by the user node, the first storage node will also determine whether the encrypted business data needs to be further processed. When the first storage node updates the encrypted business data, it will be synchronously updated in the second storage node serving as a backup node at any time.

[0143] The data stored in the second storage node is kept synchronized with the data in the first storage node at any time. When the local business data of the first storage node is damaged, the first storage node can call the same business data from the second storage node at any time to supplement it, thereby greatly ensuring the normal operation of the first storage node.

[0144] In addition, the business data stored in the second storage node is always in an encrypted state, so the leakage of private data can be effectively avoided. Because the second storage node will not obtain the plaintext data of the encrypted business data, the selection of the second storage node is not restricted by the business participants of the transaction request, which can greatly expand the number of backup nodes in the fabric blockchain and ensure that the business data related to the transaction request is fully backed up.

[0145] refer to Figure 4 , is a schematic diagram of a device module of a business data processing device 400 applied to a user node of a fabric blockchain provided in an embodiment of the present application. The business data processing device 400 provided in an embodiment of the present application is applied to a user node of a fabric blockchain, such as Figure 1 As shown, the fabric blockchain includes at least one first storage node and at least one second storage node, wherein the first storage node includes a trusted execution environment, such as Figure 4 As shown, the business data processing device 400 includes:

[0146] An acquisition module 401 is used to acquire encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key, and the business storage key is a symmetric key corresponding to the preset transaction request provided by the trusted execution environment;

[0147] The first storage module 402 is used to send the encrypted business data to the target storage node according to the endorsement signature, so that the target storage node obtains the plaintext data of the encrypted business data in the trusted execution environment and stores the plaintext data, wherein the target storage node is the first storage node corresponding to the encrypted business data, and the endorsement signature is the signature information obtained by endorsing the encrypted business data;

[0148] The second storage module 403 is used to send the encrypted business data to any second storage node so that the second storage node stores the encrypted business data;

[0149] refer to Figure 5 , is a schematic diagram of a device module of a business data processing device 500 applied to a first storage node of a fabric blockchain provided in an embodiment of the present application. The business data processing device 500 provided in an embodiment of the present application is applied to a first storage node of a fabric blockchain, and the first storage node includes a trusted execution environment, such as Figure 1 As shown, the fabric blockchain also includes user nodes, such as Figure 5 As shown, the business data processing device 500 includes:

[0150] The receiving module 501 is used to receive encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key;

[0151] An authentication module 502 is used to perform signature authentication on the signature information associated with the encrypted business data;

[0152] A key acquisition module 503 is used to acquire a business storage key in the trusted execution environment after the signature authentication is passed, where the business storage key is a symmetric key corresponding to the preset transaction request;

[0153] A decryption module 504, configured to decrypt the encrypted business data according to the business storage key to obtain plaintext data;

[0154] The storage module 505 is used to store the plaintext data.

[0155] In addition, an embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores a computer program, and when the computer program runs on the processor, the business data processing method in the aforementioned embodiment is executed.

[0156] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a processor, the business data processing method in the foregoing embodiment is executed.

[0157] In summary, the embodiments of the present application provide a method, device, computer equipment and readable storage medium for processing business data. By setting a node that does not participate in the transaction business as a second storage node, the horizontal expansion of the backup node in the fabric blockchain architecture is realized. The second storage node in this embodiment can back up the business data in all the first storage nodes, and will not read the plain text content of the business data, which effectively improves the security of the business data in the fabric blockchain. When the data in the first storage node is damaged, the first storage node can call the backup business data from the second storage node according to the preset business storage key, which provides data protection for the stable operation of the transaction business of the first storage node. In addition, the specific implementation process of the business processing device, computer equipment and computer-readable storage medium mentioned in the above embodiments can refer to the specific implementation process of the above method embodiments, which will not be repeated here.

[0158] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0159] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0160] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0161] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A business data processing method, characterized in that: Applied to a fabric blockchain, the fabric blockchain includes at least one first storage node and at least one second storage node, a computing node, and an endorsement node, the first storage node includes a trusted execution environment, and the business data processing method includes: Sending a preset transaction request to the computing node; receiving a calculation result sent by the calculation node, wherein the calculation result is ciphertext business data obtained by the calculation node through calculation and encryption according to the preset transaction request; Sending the calculation result to the endorsing node; After receiving the ciphertext business data, the endorsement node can configure a trusted execution environment in the endorsement node by loading TEE, so that the ciphertext business data can be decrypted by the business storage key to obtain the plaintext data of the business data. After obtaining the plaintext data of the ciphertext business data, the endorsement node endorses the plaintext data to finally obtain the business data with the endorsement signature, and then encrypts the business data with the endorsement signature according to the business storage key to obtain the encrypted business data with the endorsement signature; Acquire encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key, and the business storage key is a symmetric key corresponding to the preset transaction request provided by the trusted execution environment; Sending the encrypted business data to a target storage node according to the endorsement signature, so that the target storage node obtains plaintext data of the encrypted business data in the trusted execution environment and stores the plaintext data, wherein the target storage node is a first storage node corresponding to the encrypted business data, and the endorsement signature is an endorsement signature of the encrypted business data; The encrypted business data is sent to any second storage node so that the second storage node stores the encrypted business data.

2. The method according to claim 1, characterized in that The first storage node is a business node with business data viewing authority, and the second storage node is a business node without business data viewing authority.

3. The method according to claim 1, characterized in that When the fabric blockchain includes at least two second storage nodes, the step of sending the encrypted business data to any second storage node includes: Determine whether the current second storage node has remaining storage space; In the case where the current second storage node has remaining storage space, sending the encrypted service data to the current second storage node; In the case that the current second storage node has no remaining storage space, the encrypted business data is sent to a second storage node other than the current second storage node.

4. A business data processing method, characterized in that: A first storage node applied to a fabric blockchain, the fabric blockchain further comprising at least one second storage node, the first storage node comprising a trusted execution environment, the business data processing method comprising: Receiving encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key; Performing signature authentication on the signature information associated with the encrypted business data; After the signature authentication is passed, a business storage key is obtained in the trusted execution environment, where the business storage key is a symmetric key corresponding to the preset transaction request; Decrypting the encrypted business data according to the business storage key to obtain plaintext data; Storing the plaintext data; Processing the historical plaintext data according to the preset transaction request to obtain target plaintext data, wherein the historical plaintext data is the plaintext data obtained after decrypting the encrypted business data; Acquire a target business storage key in the trusted execution environment, wherein the target business storage key is a business storage key corresponding to the preset transaction request; Encrypting the plaintext data according to the business storage key to obtain target encrypted business data; The target encrypted business data is sent to the second storage node so that the second storage node stores the target encrypted business data.

5. A business data processing device, characterized in that: Applied to a fabric blockchain, the fabric blockchain further includes at least one first storage node and at least one second storage node, a computing node, and an endorsement node, the first storage node includes a trusted execution environment, and the business data processing device includes: A computing request module, used to send a preset transaction request to the computing node; A calculation result receiving module, used to receive the calculation result sent by the calculation node, wherein the calculation result is the ciphertext business data obtained by the calculation node through calculation and encryption according to the preset transaction request; An endorsement request module, used to send the calculation result to the endorsement node; An encrypted business data receiving module, which is used for configuring a trusted execution environment in the endorsement node by loading TEE after the endorsement node receives the ciphertext business data, so that the ciphertext business data can be decrypted by the business storage key to obtain the plaintext data of the business data. After obtaining the plaintext data of the ciphertext business data, the endorsement node endorses the plaintext data to finally obtain the business data with the endorsement signature, and then encrypts the business data with the endorsement signature according to the business storage key to obtain the encrypted business data with the endorsement signature; An acquisition module, configured to acquire encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key, and the business storage key is a symmetric key corresponding to the preset transaction request and provided by the trusted execution environment; A first storage module, configured to send the encrypted business data to a target storage node according to the endorsement signature, so that the target storage node obtains plaintext data of the encrypted business data in the trusted execution environment and stores the plaintext data, wherein the target storage node is a first storage node corresponding to the encrypted business data, and the endorsement signature is an endorsement signature of the encrypted business data; The second storage module is used to send the encrypted business data to any second storage node so that the second storage node stores the encrypted business data.

6. A business data processing device, characterized in that: A first storage node applied to a fabric blockchain, the fabric blockchain further comprising at least one second storage node, the first storage node comprising a trusted execution environment, and the business data processing device comprising: A receiving module, configured to receive encrypted business data corresponding to a preset transaction request, wherein the encrypted business data is business data encrypted according to a business storage key; An authentication module, used to perform signature authentication on the signature information associated with the encrypted business data; A key acquisition module, used to acquire a business storage key in the trusted execution environment after the signature authentication is passed, wherein the business storage key is a symmetric key corresponding to the preset transaction request; A decryption module, used to decrypt the encrypted business data according to the business storage key to obtain plaintext data; A storage module, used for storing the plaintext data; A target plaintext data acquisition module, used to process the historical plaintext data according to a preset transaction request to obtain target plaintext data, wherein the historical plaintext data is the plaintext data obtained after decrypting the encrypted business data; A target business storage key acquisition module, used to acquire a target business storage key in the trusted execution environment, wherein the target business storage key is a business storage key corresponding to the preset transaction request; A plaintext encryption module, used to encrypt the plaintext data according to the business storage key to obtain target encrypted business data; The target encrypted business data storage module is used to send the target encrypted business data to the second storage node so that the second storage node stores the target encrypted business data.

7. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is run on the processor, the business data processing method according to any one of claims 1 to 4 is executed.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run on a processor, the business data processing method according to any one of claims 1 to 4 is executed.