A consortium chain data shielding method, system and computer-readable storage medium

By introducing supervisory nodes outside the alliance chain and selecting and executing key information detection algorithms, the problem of missing blockchain node network transformation and dynamic policy adjustment functions in the existing technology is solved, and data shielding and data shielding without the need to transform blockchain nodes are solved. Data recovery avoids the spread of illegal information and is versatile and easy to implement.

CN113360568BActive Publication Date: 2024-09-24GUANGDONG INSPUR BIG DATA RES CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202110598776.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2024-09-24
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

The existing consortium chain supervision solution requires the transformation of the blockchain node network, and lacks dynamic policy adjustment functions and high difficulty in data recovery.

Method used

By introducing supervision nodes outside the blockchain node, it receives the client's data detection request, selects and executes the key information detection algorithm, detects the data packets, and decides whether to allow writing or reading of the blockchain node to achieve dynamic policy adjustment and Traceable and retrievable data masking.

Benefits of technology

There is no need to modify the blockchain node network, and it realizes dynamic policy adjustment and data recovery of data shielding, avoids the spread of illegal information, and is versatile and easy to implement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113360568B
    Figure CN113360568B
Patent Text Reader

Abstract

The present application discloses a consortium chain data shielding method, system and computer-readable storage medium, including a supervisory node receiving a data detection request sent by a client according to a user operation; the supervisory node selecting a key information detection algorithm according to the data detection request; the supervisory node executing the selected key information detection algorithm to detect the data packet carried by the data detection request; the supervisory node sends the detection result to the client, so that when the detection result is a detection pass, the client writes the data written by the user into the blockchain node, or returns the data read from the blockchain node to the user; on the contrary, the client does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user. The method does not require the transformation of the blockchain node network, has strong versatility, is easier to implement, and has a dynamic policy adjustment function, and can achieve traceable and restorable data shielding under the premise of non-tampering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a consortium chain data shielding method; it also relates to a consortium chain data shielding system and a computer-readable storage medium. Background Art

[0002] With the rapid development of alliance chain technology, alliance chain technology has been widely used in various fields such as finance, law, medical care, energy, entertainment, and justice. As an important type of blockchain, alliance chain refers to a blockchain jointly managed by several institutions or organizations. The data in its nodes are only allowed to be read and sent by institutions or organizations within the system, and transaction data is recorded together. The information added to the blockchain will be stored permanently. Therefore, supervision of alliance chain has become a necessary condition for the healthy development of alliance chain technology.

[0003] However, the existing supervision scheme for the alliance chain currently relies on the alliance chain itself, that is, the blockchain node itself determines whether the transaction request sent by the client contains key information, and when there is no key information, the blockchain node responds to the transaction request. The above scheme requires the transformation of the blockchain node network so that each blockchain node in the blockchain node network has the above supervision capability. In addition, although some manufacturers use smart contracts to determine the shielding conditions and encrypt illegal information or delete the decryption key to perform data shielding, this method determines the shielding conditions by voting by the client and does not have the function of dynamic policy adjustment. After the data is shielded and the decryption key is deleted, data recovery is more difficult.

[0004] In view of this, providing a consortium chain data shielding solution with dynamic policy adjustment function and easy data recovery has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] The purpose of this application is to provide a consortium chain data shielding method, which can achieve data shielding without modifying the blockchain node network, has strong versatility, is easy to implement, and has a dynamic policy adjustment function, and can achieve traceable and reversible data shielding under the premise of non-tampering. Another purpose of this application is to provide a consortium chain data shielding system and a computer-readable storage medium, both of which have the above technical effects.

[0006] In order to solve the above technical problems, the present application provides a consortium chain data shielding method, including:

[0007] The supervision node receives the data detection request sent by the client according to the user operation;

[0008] The supervision node selects a key information detection algorithm according to the data detection request;

[0009] The supervision node executes the selected key information detection algorithm to detect the data packet carried by the data detection request;

[0010] The supervision node sends the detection result to the client, so that when the detection result is a passed detection, the client writes the data written by the user into the blockchain node, or returns the data read from the blockchain node to the user; when the detection result is a failed detection, the client does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user.

[0011] Optionally, the supervisory node selecting a key information detection algorithm according to the data detection request includes:

[0012] The supervision node identifies the chain identifier representing the blockchain type carried by the data detection request, and selects the corresponding key information detection algorithm according to the chain identifier.

[0013] Optionally, the client sending a data detection request according to a user operation includes:

[0014] When the user writes data, the client organizes the data written by the user into a standard data packet and sends the data detection request carrying the data packet;

[0015] When the user reads data, after the client reads the data from the blockchain node, it sends the data detection request carrying the read data.

[0016] Optionally, also include:

[0017] When the detection result is that the detection fails, the client returns an error message to the user and prompts the reason.

[0018] Optionally, also include:

[0019] The supervision node updates the key information detection algorithm.

[0020] In order to solve the above technical problems, the present application also provides a consortium chain data shielding system, including:

[0021] The client is used to detect data requests sent according to user operations;

[0022] A supervision node is used to receive the data detection request sent by the client; select a key information detection algorithm according to the data detection request; execute the selected key information detection algorithm to detect the data packet carried by the data detection request; and send the detection result to the client, so that when the detection result is a detection pass, the client writes the data written by the user into the blockchain node or returns the data read from the blockchain node to the user; when the detection result is a detection fail, the client does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user.

[0023] Optionally, the supervision node includes:

[0024] A data detection request receiving module, used for receiving the data detection request sent by the client;

[0025] A detection algorithm selection module, used to select a key information detection algorithm according to the data detection request;

[0026] A key information detection algorithm module, used to execute the key information detection algorithm to detect the data packet carried by the data detection request;

[0027] The data detection result sending module is used to send the detection result to the client.

[0028] Optionally, the detection algorithm selection module is specifically used to identify the chain identifier representing the blockchain type carried by the data detection request, and select the corresponding key information detection algorithm according to the chain identifier.

[0029] Optionally, the client includes:

[0030] An interactive module, used for interacting with users;

[0031] The logic processing module is used to organize the user's operations into standardized data packets;

[0032] A data filtering module, used to send a data detection request carrying the data packet to the supervision node, and perform corresponding processing according to the detection result;

[0033] A data communication module is used to communicate with the regulatory node and the blockchain node.

[0034] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the alliance chain data shielding method as described in any one of the above items are implemented.

[0035] The alliance chain data shielding method provided in this application includes:

[0036] The supervision node receives a data detection request sent by the client according to a user operation; the supervision node selects a key information detection algorithm according to the data detection request; the supervision node executes the selected key information detection algorithm to detect the data packet carried by the data detection request; the supervision node sends the detection result to the client, so that when the detection result is a detection pass, the client writes the data written by the user into the blockchain node, or returns the data read from the blockchain node to the user; when the detection result is a detection failure, the client does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user.

[0037] It can be seen that the alliance chain data shielding method provided by the present application is to supervise illegal information by the regulatory nodes outside the blockchain node network, without the need to transform the blockchain node network itself, which is universal and easy to implement. At the same time, since the blockchain itself is not destroyed, it is possible to achieve traceable and reversible data shielding under the premise of non-tampering. When a user wants to write data to a blockchain node or read data from a blockchain node, the regulatory node first detects the data to be written or read through a key information detection algorithm, and only allows writing data to the blockchain node and reading data from the blockchain node when the detection passes, thereby avoiding the spread of illegal information in the blockchain. In addition, the key information detection algorithm can be inserted, and the key information detection algorithm can be incrementally deployed or adjusted in real time to achieve a dynamic strategy adjustment function.

[0038] The alliance chain data shielding system and computer-readable storage medium provided in this application both have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the prior art and the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A flowchart of a consortium chain data shielding method provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of a consortium chain data shielding system provided in an embodiment of the present application;

[0042] Figure 3 A block diagram provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of a supervisory node provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of a client provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The core of this application is to provide a consortium chain data shielding method, which can achieve data shielding without modifying the blockchain node network, has strong versatility, is easy to implement, and has a dynamic policy adjustment function, and can achieve traceable and reversible data shielding under the premise of non-tampering. Another core of this application is to provide a consortium chain data shielding system and a computer-readable storage medium, both of which have the above technical effects.

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] Please refer to Figure 1 , Figure 1 A schematic diagram of a consortium chain data shielding method provided in an embodiment of the present application, see Figure 1 As shown, the method mainly includes:

[0048] S101: The supervision node receives a data detection request sent by the client according to a user operation;

[0049] Specifically, the alliance chain data shielding method provided in this application is based on the supervision node and the client, and the supervision node and the client communicate and cooperate with each other to realize the alliance chain data shielding. There are one or more supervision nodes and one or more clients. The supervision node is not a node in the blockchain node network, but a peripheral node independent of the blockchain node network.

[0050] The client interacts with the user, the blockchain node, and the regulatory node. Users can log in through the client, query records in the blockchain, or record transaction data in the blockchain. The blockchain node stores the blockchain, and the client can obtain blockchain data from the blockchain node, or send newly generated transaction data to the blockchain node for recording in the blockchain. The client can be set up on the same device as the blockchain node, or on different devices.

[0051] In order to achieve data shielding, when the user interacts with the client and performs write or read operations, the client will not immediately respond to the user's operation, will not immediately write the data that the user is about to write into the blockchain into the blockchain, and will not immediately return the data read from the blockchain and display it to the user. Instead, it will first send a data detection request to the supervision node for detection based on the user's operation, so that the supervision node can determine whether to allow the data that the user is about to write into the blockchain to be written into the blockchain and whether to allow the data that the user wants to read from the blockchain to be returned and displayed to the user, so as to shield illegal information.

[0052] Among them, the client sends a data detection request according to the user operation, including: when the user writes data, the client organizes the data written by the user into a standard data packet, and sends a data detection request carrying the data packet; when the user reads data, the client reads the data from the blockchain node and sends a data detection request carrying the read data.

[0053] Specifically, when a user is ready to write data to the blockchain, the client first organizes the data into a standardized data packet after receiving the data, and then sends the data packet to the supervisory node for detection. When a user wants to read data from the blockchain, the client first converts the user's request into a data request packet and sends it to the blockchain node. The blockchain node reads the data from the blockchain according to the data request packet in accordance with the protocol requirements and returns it to the client. After the client receives the data returned by the blockchain node, it further sends the data to the supervisory node for detection.

[0054] S102: The supervision node selects a key information detection algorithm according to the data detection request;

[0055] S103: The supervision node executes the selected key information detection algorithm to detect the data packet carried by the data detection request;

[0056] Specifically, one or more key information detection algorithms are pre-configured in the supervision node according to laws, business characteristics, etc. Different key information detection algorithms are suitable for different shielding requirements. When the supervision node receives a data detection request, the supervision node first selects an applicable key information detection algorithm according to the data detection request, and then executes the selected key information detection algorithm to detect the data packet carried by the data detection request to determine whether there is illegal information in the data packet.

[0057] Among them, in a specific implementation manner, the supervisory node selects a key information detection algorithm based on a data detection request as follows: the supervisory node identifies a chain identifier representing a blockchain type carried in the data detection request, and selects a corresponding key information detection algorithm based on the chain identifier.

[0058] Specifically, when a user is ready to write or read data, the client first determines the type of blockchain that the user wants to write or read, and then sends a data detection request carrying a chain identifier that represents the type of blockchain to the supervisory node. After receiving the data detection request, the supervisory node identifies the chain identifier and selects the corresponding key information detection algorithm based on the chain identifier.

[0059] For example, when the blockchain that the user wants to write or read is a financial chain, the client will send a data detection request carrying the chain identifier representing the financial chain to the regulatory node, and the regulatory node will select a key information detection algorithm suitable for the financial chain. When the blockchain that the user wants to write or read is a medical chain, the client will send a data detection request carrying the chain identifier representing the medical chain to the regulatory node, and the regulatory node will select a key information detection algorithm suitable for the medical chain.

[0060] S104: The supervision node sends the detection result to the client, so that when the detection result is passed, the client writes the data written by the user into the blockchain node, or returns the data read from the blockchain node to the user; when the detection result is failed, the client does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user.

[0061] Specifically, after the supervisory node executes the key information detection algorithm to obtain the detection result, it sends the detection result to the client. If the detection passes, it indicates that the data to be written or read by the user does not contain illegal information and does not need to be shielded. At this time, the client writes the data to be written by the user to the blockchain node or returns the data to be read from the blockchain node to the user and displays it. On the contrary, if the detection fails, it indicates that the data to be written or read by the user contains illegal information and needs to be shielded. At this time, the client does not write the data to be written by the user to the blockchain node or does not return the data to be read from the blockchain node to the user.

[0062] Among them, when the detection result is that the detection fails, the client can specifically return an error message to the user and prompt the reason, but will not write the data that the user wants to write into the blockchain node or will not return the data that the user wants to read from the blockchain node to the user.

[0063] Further, based on the above embodiment, it also includes: the supervisory node updates the key information detection algorithm. Updating the key information detection algorithm includes modifying the key information detection algorithm, adding a key information detection algorithm, and deleting the key information detection algorithm. For example, for the data in the blockchain, if it was considered illegal data in the past but is now considered legal data, it needs to be restored. At this time, the key information detection algorithm can be modified to no longer block this data.

[0064] In summary, the alliance chain data shielding method provided by the present application is to supervise illegal information by the regulatory nodes outside the blockchain node network, without the need to transform the blockchain node network itself, which is universal and easy to implement. At the same time, since the blockchain itself is not destroyed, it is possible to achieve traceable and reversible data shielding under the premise of non-tampering. When a user wants to write data to a blockchain node or read data from a blockchain node, the regulatory node first detects the data to be written or read through a key information detection algorithm, and only allows writing data to the blockchain node and reading data from the blockchain node when the detection passes, thereby avoiding the spread of illegal information in the blockchain. In addition, the key information detection algorithm can be inserted, and the key information detection algorithm can be incrementally deployed or adjusted in real time to achieve a dynamic strategy adjustment function.

[0065] This application also provides a consortium chain data shielding system, and the system described below can be referenced in correspondence with the method described above. Figure 2 , Figure 2 A schematic diagram of a consortium chain data shielding system provided in an embodiment of the present application, combined with Figure 2 As shown, the system includes:

[0066] Client 20, used for data detection request sent according to user operation;

[0067] The supervision node 10 is used to receive a data detection request sent by the client 20; select a key information detection algorithm according to the data detection request; execute the selected key information detection algorithm to detect the data packet carried by the data detection request; and send the detection result to the client 20, so that when the detection result is that the detection is passed, the client 20 writes the data written by the user into the blockchain node or returns the data read from the blockchain node to the user; when the detection result is that the detection is not passed, the client 20 does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user.

[0068] Specifically, the alliance chain data shielding system provided by the present application includes one or more clients 20 and one or more regulatory nodes 10. The client 20 interacts with the user and interacts with the blockchain node. The user can log in through the client 20, query the records in the blockchain, or record the transaction data in the blockchain. The blockchain node stores the blockchain, and the client 20 can obtain the blockchain data from the blockchain node, or send the newly generated transaction data to the blockchain node for recording in the blockchain. The client 20 can be set on the same device as the blockchain node, or it can be set on different devices with the blockchain node.

[0069] Blockchain is essentially a database technology and a distributed shared ledger. It is a data structure that is composed of blocks containing transaction information connected in order from back to front. Each block generally consists of two parts: a block header and a block body. Figure 3 As shown in the figure, the block header contains information such as the parent block hash value, timestamp, Merkle root, etc., while the block body contains all the transaction information in this block. In addition, each block corresponds to two values ​​to identify the block, namely the block header hash value and the block height. The blockchain system combines blocks in a sequential manner in chronological order into a chain data structure, and uses cryptography to ensure that it is a distributed ledger that cannot be tampered with or forged.

[0070] In order to achieve data shielding and prevent illegal information from spreading in the blockchain, when the user interacts with the client 20 and performs a write operation or a read operation, the client 20 will not immediately respond to the user's operation, will not immediately write the data that the user is going to write into the blockchain into the blockchain, and will not immediately return the data read from the blockchain and display it to the user. Instead, it will first detect the data detection request sent by the user operation to the supervisory node 10 to determine whether the data that the user is going to write into the blockchain is allowed to be written into the blockchain and whether the data that the user wants to read from the blockchain is allowed to be returned and displayed to the user, so as to shield the illegal information. After receiving the data detection request, the supervisory node 10 first selects an applicable key information detection algorithm according to the data detection request, and then executes the selected key information detection algorithm to detect the data packet carried by the data detection request, determines whether there is illegal information in the data packet, and sends the detection result to the client 20. If the detection passes, it indicates that there is no illegal information in the data to be written or read by the user, and no shielding is required. At this time, the client 20 writes the data to be written by the user into the blockchain node or returns the data to be read from the blockchain node to the user and displays it. On the contrary, if the detection fails, it indicates that the data that the user wants to write or read contains illegal information and needs to be shielded. At this time, the client 20 does not write the data that the user wants to write into the blockchain node or does not return the data that the user wants to read from the blockchain node to the user.

[0071] refer to Figure 4 As shown, in a specific implementation, the supervision node 10 includes:

[0072] The data detection request receiving module 101 is used to receive the data detection request sent by the client 20;

[0073] A detection algorithm selection module 102, configured to select a key information detection algorithm according to a data detection request;

[0074] The key information detection algorithm module 103 is used to execute the key information detection algorithm to detect the data packet carried by the data detection request;

[0075] The data detection result sending module 104 is used to send the detection result to the client 20.

[0076] Specifically, the supervision node 10 includes two parts: software and hardware. The hardware is a high-performance AI server or a common server, including components such as CPU, network card, AI acceleration card, memory, hard disk, etc. The software architecture includes a data detection request receiving module 101, a detection algorithm selection module 102, one or more key information detection algorithm modules 103, and a data detection result sending module 104.

[0077] In a specific implementation, the detection algorithm selection module 102 selects a key information detection algorithm according to a data detection request by identifying a chain identifier representing a blockchain type carried in the data detection request, and selecting a corresponding key information detection algorithm according to the chain identifier.

[0078] refer to Figure 5 As shown, in a specific implementation, the client 20 includes:

[0079] Interaction module 201, used for interacting with users;

[0080] The logic processing module 202 is used to organize the user's operations into standardized data packets;

[0081] The data filtering module 203 is used to send a data detection request carrying a data packet to the supervision node 10 and perform corresponding processing according to the detection result;

[0082] The data communication module 204 is used to communicate with the supervision node 10 and the blockchain node.

[0083] Specifically, the client 20 includes two parts: software and hardware. The hardware can be a desktop or laptop computer. The software architecture includes an interactive module 201, a logic processing module 202, a data filtering module 203, and a data communication module 204. The interactive module 201 is mainly used to interact with the client; the logic processing module 202 organizes the user's operations into standardized read or write data packets; the data filtering module 203 sends the data to the supervision node 10 for detection, and performs corresponding processing according to the detection results; the data communication module 204 is mainly responsible for the communication between the client 20 and the supervision node 10 and the blockchain node.

[0084] Based on the software structure of the above-mentioned supervisory node 10 and client 20, the alliance chain data shielding process is as follows:

[0085] When the user is ready to write data to the blockchain, after the interactive module 201 of the client 20 receives the data to be written by the user, the logic processing module 202 organizes the data to be written by the user into a standardized data packet, and then the data filtering module 203 sends the data packet to the supervision node 10. After the supervision node 10 receives the data detection request, the detection algorithm selection module 102 selects the applicable key information detection algorithm according to the data detection request, and sends the data to the corresponding key information detection algorithm module 103 for detection. The detection result is returned to the client 20 by the data detection result sending module 104 through the network sending module. If the detection passes, the client 20 sends the data to the blockchain node network to write to the blockchain; if the detection fails, the client 20 returns an error message to the user and prompts the reason.

[0086] When the user is ready to read data from the blockchain node network, the client 20 first converts the user's request into a data request packet and sends it to the blockchain node. The blockchain node will read the relevant data from the blockchain according to the data request packet in accordance with the protocol requirements and return it to the client 20 through the network. The data communication module 204 of the client 20 forwards the data returned by the blockchain node to the data filtering module 203, and the data filtering module 203 further sends the data to the supervision node 10 for detection. After the supervision node 10 receives the data detection request, the detection algorithm selection module 102 selects the applicable key information detection algorithm according to the data detection request, and sends the data to the corresponding key information detection algorithm module 103 for detection. The detection result is returned to the client 20 by the data detection result sending module 104 through the network sending module. If the detection passes, the client 20 sends the data to the blockchain node network to write into the blockchain; if the detection fails, the client 20 returns an error message to the user and prompts the reason.

[0087] Figure 2 The figure shows a case where there is one supervisory node 10 and multiple clients 20, in which case each client 20 interacts with a unique supervisory node 10. When there are multiple supervisory nodes 10 and multiple clients 20, the clients 20 can be grouped, and each supervisory node interacts with several of the clients 20.

[0088] In summary, the alliance chain data shielding system provided by the present application sets a supervision node. When a user wants to write data to a blockchain node or read data from a blockchain node, the data to be written or read is first detected by the key information detection algorithm in the supervision node, and only when the detection is passed is it allowed to write data and read data, thereby preventing illegal information from spreading in the blockchain. The system can achieve data shielding without modifying the blockchain itself, and is versatile and easy to implement. Since the blockchain itself is not destroyed, traceable and restorable data shielding can be achieved under the premise of non-tampering. The key information detection algorithm can be inserted, and the key information detection algorithm can be incrementally deployed or adjusted in real time to achieve a dynamic strategy adjustment function.

[0089] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0090] The supervision node receives a data detection request sent by the client according to a user operation; the supervision node selects a key information detection algorithm according to the data detection request; the supervision node executes the selected key information detection algorithm to detect the data packet carried by the data detection request; the supervision node sends the detection result to the client, so that when the detection result is a detection pass, the client writes the data written by the user into the blockchain node, or returns the data read from the blockchain node to the user; when the detection result is a detection failure, the client does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user.

[0091] The computer-readable storage medium may include: 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, and other media that can store program codes.

[0092] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.

[0093] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0094] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0095] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0096] The above is a detailed introduction to the alliance chain data shielding method, system and computer-readable storage medium provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A consortium chain data shielding method, It is characterized in that include: The supervision node receives the data detection request sent by the client according to the user operation; The supervision node selects a key information detection algorithm according to the data detection request; one or more key information detection algorithms are configured in the supervision node, and different key information detection algorithms are suitable for different shielding requirements; The supervision node executes the selected key information detection algorithm to detect the data packet carried by the data detection request, and determines whether there is illegal information in the data packet, so as to determine whether to allow the data that the user is going to write into the blockchain to be written into the blockchain and whether to allow the data that the user wants to read from the blockchain to be returned to the user; The supervision node sends the detection result to the client, so that when the detection result is detection passed, the client writes the data written by the user into the blockchain node, or returns the data read from the blockchain node to the user; When the detection result is that the detection fails, the client does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user.

2. The alliance chain data shielding method according to claim 1, It is characterized in that The supervisory node selecting a key information detection algorithm according to the data detection request includes: The supervision node identifies the chain identifier representing the blockchain type carried by the data detection request, and selects the corresponding key information detection algorithm according to the chain identifier.

3. The alliance chain data shielding method according to claim 1, It is characterized in that The client sending a data detection request according to a user operation includes: When the user writes data, the client organizes the data written by the user into a standard data packet and sends the data detection request carrying the data packet; When the user reads data, after the client reads the data from the blockchain node, it sends the data detection request carrying the read data.

4. The alliance chain data shielding method according to claim 1, It is characterized in that Also includes: When the detection result is that the detection fails, the client returns an error message to the user and prompts the reason.

5. The alliance chain data shielding method according to claim 1, It is characterized in that Also includes: The supervision node updates the key information detection algorithm.

6. A consortium chain data shielding system, It is characterized in that include: The client is used to detect data requests sent according to user operations; A supervision node, configured to receive the data detection request sent by the client; Selecting a key information detection algorithm according to the data detection request; one or more key information detection algorithms are configured in the supervision node, and different key information detection algorithms are suitable for different shielding requirements; executing the selected key information detection algorithm to detect the data packet carried by the data detection request, and determining whether there is illegal information in the data packet, so as to determine whether to allow the data that the user is going to write into the blockchain to be written into the blockchain and whether to allow the data that the user wants to read from the blockchain to be returned to the user; The detection result is sent to the client, so that when the detection result is a passed detection, the client writes the data written by the user into the blockchain node or returns the data read from the blockchain node to the user; when the detection result is a failed detection, the client does not write the data written by the user into the blockchain node or does not return the data read from the blockchain node to the user.

7. The alliance chain data shielding system according to claim 6, It is characterized in that The supervisory node includes: A data detection request receiving module, used for receiving the data detection request sent by the client; A detection algorithm selection module, used to select a key information detection algorithm according to the data detection request; A key information detection algorithm module, used to execute the key information detection algorithm to detect the data packet carried by the data detection request; The data detection result sending module is used to send the detection result to the client.

8. According to the alliance chain data shielding system of claim 7, It is characterized in that The detection algorithm selection module is specifically used to identify the chain identifier representing the blockchain type carried by the data detection request, and select the corresponding key information detection algorithm according to the chain identifier.

9. The alliance chain data shielding system according to claim 6, It is characterized in that The client comprises: An interactive module, used for interacting with users; The logic processing module is used to organize the user's operations into standardized data packets; A data filtering module, used to send a data detection request carrying the data packet to the supervision node, and perform corresponding processing according to the detection result; A data communication module is used to communicate with the regulatory node and the blockchain node.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the alliance chain data shielding method as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Block chain architecture-based ecological environment monitoring system and implementation method thereof

    CN106407481A

  • Invoice block chain recording method, apparatus, block chain gateway server and medium

    CN109241772A

  • Transaction monitoring method and device based on alliance chain and electronic equipment

    CN110246039A

  • Bill real-name receiving method and device based on block chain and electronic equipment

    CN110471986A

  • Blockchain data supervision method and device

    CN110910138A