Private data sharing method and system based on block chain

By creating a blockchain network within the company and controlling data access with encrypted serial numbers, the problem of leakage risks in private data sharing is solved, and data security and efficient data viewing is achieved.

CN120578634APending Publication Date: 2025-09-02SHANGRAO ACAD OF SCI CLOUD COMPUTING CENT BIG DATA RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510527406.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-09-02

AI Technical Summary

Technical Problem

The existing technology cannot effectively restrict staff from leaking data to the outside during the internal privacy data sharing of the company, which poses a risk of privacy leakage and reduces work efficiency.

Method used

By receiving target enterprise information in real time, creating a blockchain network, and storing the target data to the blockchain nodes corresponding to the staff, controlling data access using encrypted serial numbers and keys, blocking external network connections.

Benefits of technology

Implement data viewing in a closed network environment to prevent data leakage and improve work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120578634A_ABST
    Figure CN120578634A_ABST
Patent Text Reader

Abstract

The invention provides a private data sharing method and system based on a block chain, and the method comprises the steps: receiving a target enterprise inputted by a user in real time, and detecting enterprise information corresponding to the target enterprise in real time; creating a corresponding block chain network in a target enterprise in real time according to the enterprise information, and when an access request of a worker is received in real time, extracting corresponding target data in a preset database in real time according to the access request; and detecting a block chain node corresponding to the worker in the block chain network in real time, and correspondingly storing the target data in the block chain node, so that the worker checks the target data in the block chain node. According to the invention, a worker can check data on the premise of shielding an external network, so that data leakage can be effectively avoided, and the working efficiency is correspondingly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a blockchain-based privacy data sharing method and system. Background Art

[0002] With the advancement of technology and the rapid development of productivity, people have established various types of companies. In the daily operations of the companies, a large amount of operational data will be generated, and this operational data can reflect the company's operating conditions, so it is necessary to carry out targeted processing of this operational data.

[0003] Among them, the existing technology has developed a corresponding data sharing system, that is, the staff within the company can obtain the company's internal private data and non-private data through the data sharing system to complete the corresponding work.

[0004] Furthermore, in the process of sharing private data within a company, most of the existing technologies store the private data within the company in a database, encrypt the database, and then send the encryption key of the database to the required staff to complete the sharing of the private data. However, this sharing method cannot effectively restrict the staff from leaking the company's private data to the outside, and thus there is a certain risk of privacy leakage, which reduces work efficiency. Summary of the Invention

[0005] Based on this, the purpose of the present invention is to provide a blockchain-based privacy data sharing method and system to solve the problem that the sharing method of the existing technology cannot effectively restrict staff from leaking the company's internal private data to the outside, resulting in the risk of privacy leakage.

[0006] The first aspect of the embodiment of the present invention proposes:

[0007] A method for sharing private data based on blockchain, wherein the method comprises:

[0008] Receive the target enterprise input by the user in real time, and detect the enterprise information corresponding to the target enterprise in real time;

[0009] A corresponding blockchain network is created in real time in the target enterprise based on the enterprise information, and when an access request from a staff member is received in real time, corresponding target data is extracted in real time from a preset database based on the access request;

[0010] The blockchain node corresponding to the staff member is detected in real time in the blockchain network, and the target data is stored in the blockchain node accordingly, so that the staff member can view the target data in the blockchain node.

[0011] The beneficial effect of the present invention is that by receiving the target enterprise input by the user in real time, the corresponding processing object can be clearly identified. Based on this, in order to facilitate subsequent processing, the corresponding enterprise information will be collected in real time, and the corresponding blockchain network can be created in real time in the current target enterprise based on the enterprise information. Based on this, in the actual application process, the data required by the user can be stored in the set blockchain node in real time, so that the staff can obtain the required target data while shielding the external network, thereby preventing the staff from leaking data to the outside, thereby improving work efficiency accordingly.

[0012] Furthermore, the step of creating a corresponding blockchain network in the target enterprise in real time according to the enterprise information includes:

[0013] When the enterprise information is acquired in real time, a full scan is performed on the enterprise information to detect in real time a number of work departments included in the target enterprise and a number of target employees included in each work department;

[0014] Each of the work departments and the corresponding target employees are block-processed to generate the blockchain network accordingly.

[0015] Furthermore, the step of performing block processing on each of the work departments and the corresponding target employees to generate the blockchain network includes:

[0016] When a number of target employees corresponding to the work department are detected in real time, a corresponding blockchain identifier is added to the employee terminal corresponding to each target employee;

[0017] Based on a preset blockchain protocol, a local blockchain network adapted to the work department is created in real time according to each blockchain identifier, and based on preset rules, a blockchain node corresponding to the work department is generated in real time according to the local blockchain network;

[0018] The communication connection between each of the blockchain nodes is constructed in real time to generate the blockchain network accordingly, and each work department corresponds to only one blockchain node.

[0019] Furthermore, the step of generating a blockchain node corresponding to the work department in real time according to the local blockchain network based on preset rules includes:

[0020] When the local blockchain network is acquired in real time, a number of target employee terminals corresponding to the local blockchain network are detected in real time;

[0021] Detecting all employee terminals corresponding to the target enterprise in real time, and calculating a target ratio between a number of the target employee terminals and all employee terminals in real time;

[0022] According to the size of the target ratio, the corresponding blockchain communication interface is allocated to the local blockchain network in real time, and the blockchain communication interface is set as the blockchain node of the work department.

[0023] Furthermore, the step of storing the target data in the blockchain node so that the staff can view the target data in the blockchain node includes:

[0024] In response to the viewing request of the staff member, detecting the request time and the name of the requesting staff member corresponding to the staff member in real time;

[0025] A request data chain adapted to the staff member is created in real time according to the request time and the name of the requesting person, and the staff member is controlled to view the target data in the blockchain node according to the request data chain. The request data chain is unique.

[0026] Furthermore, the step of controlling the staff to view the target data in the blockchain node according to the request data chain includes:

[0027] When the request data chain is obtained in real time, an encrypted serial number corresponding to the target data is generated in real time according to the request data chain;

[0028] The encrypted serial number is randomly split to generate corresponding parent keys and child keys in real time, and a viewing time adapted to the staff member is generated in real time according to the amount of the target data;

[0029] The staff is controlled to view the target data in the blockchain node according to the subkey and the viewing time, and the blockchain node can shield the communication connection between the staff and the external network.

[0030] Furthermore, the step of generating an encrypted serial number corresponding to the target data in real time according to the request data link includes:

[0031] When the request data chain is obtained in real time, the request data chain is fully scanned to detect in real time a number of target numbers and a number of target letters corresponding to the request data chain;

[0032] A number of the target numbers and a number of the target letters are randomly arranged and combined to generate a number of corresponding initial serial numbers in real time, and one of the initial serial numbers is randomly selected as the encrypted serial number, and the encrypted serial number is unique.

[0033] The second aspect of the embodiment of the present invention proposes:

[0034] A blockchain-based privacy data sharing system, wherein the system includes:

[0035] A receiving module is used to receive the target enterprise input by the user in real time and detect the enterprise information corresponding to the target enterprise in real time;

[0036] An extraction module is used to create a corresponding blockchain network in the target enterprise in real time based on the enterprise information, and upon receiving an access request from a staff member in real time, extract the corresponding target data from a preset database in real time based on the access request;

[0037] The detection module is used to detect the blockchain node corresponding to the staff member in the blockchain network in real time, and store the target data in the blockchain node accordingly, so that the staff member can view the target data in the blockchain node.

[0038] Furthermore, the extraction module is specifically used to:

[0039] When the enterprise information is acquired in real time, a full scan is performed on the enterprise information to detect in real time a number of work departments included in the target enterprise and a number of target employees included in each work department;

[0040] Each of the work departments and the corresponding target employees are block-processed to generate the blockchain network accordingly.

[0041] Furthermore, the extraction module is specifically used to:

[0042] When a number of target employees corresponding to the work department are detected in real time, a corresponding blockchain identifier is added to the employee terminal corresponding to each target employee;

[0043] Based on a preset blockchain protocol, a local blockchain network adapted to the work department is created in real time according to each blockchain identifier, and based on preset rules, a blockchain node corresponding to the work department is generated in real time according to the local blockchain network;

[0044] The communication connection between each of the blockchain nodes is constructed in real time to generate the blockchain network accordingly, and each work department corresponds to only one blockchain node.

[0045] Furthermore, the extraction module is specifically used to:

[0046] When the local blockchain network is acquired in real time, a number of target employee terminals corresponding to the local blockchain network are detected in real time;

[0047] Detecting all employee terminals corresponding to the target enterprise in real time, and calculating a target ratio between a number of the target employee terminals and all employee terminals in real time;

[0048] According to the size of the target ratio, the corresponding blockchain communication interface is allocated to the local blockchain network in real time, and the blockchain communication interface is set as the blockchain node of the work department.

[0049] Furthermore, the detection module is specifically used to:

[0050] In response to the viewing request of the staff member, detecting the request time and the name of the requesting staff member corresponding to the staff member in real time;

[0051] A request data chain adapted to the staff member is created in real time according to the request time and the name of the requesting person, and the staff member is controlled to view the target data in the blockchain node according to the request data chain. The request data chain is unique.

[0052] Furthermore, the detection module is specifically used to:

[0053] When the request data chain is obtained in real time, an encrypted serial number corresponding to the target data is generated in real time according to the request data chain;

[0054] The encrypted serial number is randomly split to generate corresponding parent keys and child keys in real time, and a viewing time adapted to the staff member is generated in real time according to the amount of the target data;

[0055] The staff is controlled to view the target data in the blockchain node according to the subkey and the viewing time, and the blockchain node can shield the communication connection between the staff and the external network.

[0056] Furthermore, the detection module is specifically used to:

[0057] When the request data chain is obtained in real time, the request data chain is fully scanned to detect in real time a number of target numbers and a number of target letters corresponding to the request data chain;

[0058] A number of the target numbers and a number of the target letters are randomly arranged and combined to generate a number of corresponding initial serial numbers in real time, and one of the initial serial numbers is randomly selected as the encrypted serial number, and the encrypted serial number is unique.

[0059] The third aspect of the embodiment of the present invention proposes:

[0060] A computer comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the blockchain-based privacy data sharing method as described above is implemented.

[0061] The fourth aspect of the embodiments of the present invention proposes:

[0062] A readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the blockchain-based privacy data sharing method as described above is implemented.

[0063] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 Flowchart of the blockchain-based privacy data sharing method provided by the first embodiment of the present invention;

[0065] Figure 2 This is a structural block diagram of the blockchain-based privacy data sharing system provided in the third embodiment of the present invention.

[0066] The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0067] To facilitate understanding of the present invention, the present invention will be described more fully below with reference to the accompanying drawings. The drawings illustrate several embodiments of the present invention. However, the present invention may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and comprehensive understanding of the present invention.

[0068] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be an intermediate element. When an element is referred to as being "connected to" another element, it may be directly connected to the other element or there may be an intermediate element. The terms "vertical," "horizontal," "left," "right," and similar expressions used herein are for illustrative purposes only.

[0069] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this invention pertains. The terms used in this specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0070] See also Figure 1 , shown is a blockchain-based privacy data sharing method provided by the first embodiment of the present invention. The blockchain-based privacy data sharing method provided by this embodiment enables staff to complete data viewing while shielding from the external network, thereby avoiding data leakage and improving work efficiency.

[0071] Specifically, this embodiment provides:

[0072] A blockchain-based privacy data sharing method specifically includes the following steps:

[0073] Step S10: receiving the target enterprise input by the user in real time, and detecting the enterprise information corresponding to the target enterprise in real time;

[0074] Step S20: creating a corresponding blockchain network in the target enterprise in real time based on the enterprise information, and upon receiving an access request from a staff member in real time, extracting the corresponding target data from a preset database in real time based on the access request;

[0075] Step S30: Detecting the blockchain node corresponding to the staff member in real time in the blockchain network, and storing the target data in the blockchain node, so that the staff member can view the target data in the blockchain node.

[0076] Specifically, in this embodiment, it should be noted that in order to enable staff to view private data in a closed environment, it is necessary to analyze the internal structure of the company to create a corresponding blockchain network. It should be noted that the existing blockchain network is a special and closed internal network that can shield the influence of external signals, thereby creating a secure data usage environment. Based on this, for the convenience of implementation, it should be noted that since the composition and department structure of each existing company are different, based on this, in order to be able to create a blockchain network adapted to each company in real time, it is necessary to first determine a target enterprise, that is, to clarify a corresponding processing object. Specifically, the present invention will detect the enterprise information corresponding to the current target enterprise in real time. It should be noted that the enterprise information can specifically include the various work departments within the current target enterprise and the staff corresponding to each department. Based on this, the present invention can create a blockchain network that meets the usage requirements of the current target enterprise in real time based on the current information. In actual use, the blockchain network can receive access requests from the staff within the current target enterprise in real time to facilitate subsequent processing.

[0077] Furthermore, after receiving the user's access request in real time through the above steps, it should be pointed out that since the access request carries the data content required by the current staff member, based on this, the present invention can directly extract the target data required by the current staff member in real time from the pre-created database. It should be noted that in order to prevent data leakage, the present invention will store the current target data in real time in the blockchain node corresponding to the current staff member's work department. On this basis, the current staff member is only allowed to view the above target data within the current blockchain node, thereby effectively creating a closed network environment, which can effectively prevent the leakage of private data within the company, thereby ensuring the security of private data within the company and improving work efficiency.

[0078] Second embodiment

[0079] Furthermore, the step of creating a corresponding blockchain network in the target enterprise in real time according to the enterprise information includes:

[0080] When the enterprise information is acquired in real time, a full scan is performed on the enterprise information to detect in real time a number of work departments included in the target enterprise and a number of target employees included in each work department;

[0081] Each of the work departments and the corresponding target employees are block-processed to generate the blockchain network accordingly.

[0082] Furthermore, the step of performing block processing on each of the work departments and the corresponding target employees to generate the blockchain network includes:

[0083] When a number of target employees corresponding to the work department are detected in real time, a corresponding blockchain identifier is added to the employee terminal corresponding to each target employee;

[0084] Based on a preset blockchain protocol, a local blockchain network adapted to the work department is created in real time according to each blockchain identifier, and based on preset rules, a blockchain node corresponding to the work department is generated in real time according to the local blockchain network;

[0085] The communication connection between each of the blockchain nodes is constructed in real time to generate the blockchain network accordingly, and each work department corresponds to only one blockchain node.

[0086] Furthermore, the step of generating a blockchain node corresponding to the work department in real time according to the local blockchain network based on preset rules includes:

[0087] When the local blockchain network is acquired in real time, a number of target employee terminals corresponding to the local blockchain network are detected in real time;

[0088] Detecting all employee terminals corresponding to the target enterprise in real time, and calculating a target ratio between a number of the target employee terminals and all employee terminals in real time;

[0089] According to the size of the target ratio, the corresponding blockchain communication interface is allocated to the local blockchain network in real time, and the blockchain communication interface is set as the blockchain node of the work department.

[0090] Furthermore, the step of storing the target data in the blockchain node so that the staff can view the target data in the blockchain node includes:

[0091] In response to the viewing request of the staff member, detecting the request time and the name of the requesting staff member corresponding to the staff member in real time;

[0092] A request data chain adapted to the staff member is created in real time according to the request time and the name of the requesting person, and the staff member is controlled to view the target data in the blockchain node according to the request data chain. The request data chain is unique.

[0093] Furthermore, the step of controlling the staff to view the target data in the blockchain node according to the request data chain includes:

[0094] When the request data chain is obtained in real time, an encrypted serial number corresponding to the target data is generated in real time according to the request data chain;

[0095] The encrypted serial number is randomly split to generate corresponding parent keys and child keys in real time, and a viewing time adapted to the staff member is generated in real time according to the amount of the target data;

[0096] The staff is controlled to view the target data in the blockchain node according to the subkey and the viewing time, and the blockchain node can shield the communication connection between the staff and the external network.

[0097] Furthermore, the step of generating an encrypted serial number corresponding to the target data in real time according to the request data link includes:

[0098] When the request data chain is obtained in real time, the request data chain is fully scanned to detect in real time a number of target numbers and a number of target letters corresponding to the request data chain;

[0099] A number of the target numbers and a number of the target letters are randomly arranged and combined to generate a number of corresponding initial serial numbers in real time, and one of the initial serial numbers is randomly selected as the encrypted serial number, and the encrypted serial number is unique.

[0100] In addition, in this embodiment, it should be noted that after the required enterprise information is obtained in real time through the above steps, it is necessary to immediately parse and process the current enterprise information to obtain the characteristics of the current target enterprise. Specifically, the present invention will first perform a full scan of the current enterprise information, and can simultaneously detect the current target enterprise's internal corresponding several work departments and each work department's internal corresponding several target employees. Based on this, it should be noted that since the existing internal staff of the enterprise all access data through the employee terminals they use, the employee's access rights can be controlled by controlling the employee terminals of the staff. Based on this, in order to facilitate subsequent identification, the present invention will first add corresponding blockchain identifiers to the employee terminals of each target employee in the current work department. At the same time, the existing blockchain protocol will be synchronously called out, and the blockchain identifiers between each employee terminal can be constructed in real time through the blockchain protocol, and the bureau adapted to the current work department can be created in real time according to each current blockchain identifier. A local blockchain network, wherein it should be noted that each department within the current target enterprise will correspond to a local blockchain network, and each local blockchain network will only correspond to one blockchain node. Based on this, by finally constructing the communication connection between each blockchain node in turn, a complete blockchain network can be created. It should be noted that in order to facilitate the generation of blockchain nodes, after the present invention obtains the required local blockchain network in real time, it will first detect the number of target employee terminals corresponding to the current local blockchain network. It should be noted that the more target employee terminals there are, the more data processing volume is generated, and thus the corresponding blockchain nodes need to be allocated. Based on this, the present invention will calculate in real time the target ratio between the several target employee terminals within each department and all the employee terminals within the current target enterprise, that is, one department will correspond to one ratio respectively. Based on this, the present invention will eventually allocate the corresponding blockchain communication interface according to the actual size of the target ratio, and can eventually set the communication link interface to the blockchain node.

[0101] Furthermore, after the blockchain nodes and the corresponding blockchain network are created in real time through the above steps, it should be noted that in the actual application process, when a staff member within the target enterprise needs to view private data, the staff member needs to send a corresponding viewing request to the current blockchain network through his or her own employee terminal in real time. At the same time, in order to facilitate the restriction of the current staff member, the present invention will also detect the request time and requesting person name corresponding to the current staff member in real time, and the corresponding request data chain can be created in real time according to the request time and requesting person name. In order to prevent the staff member from leaking private data, the present invention will first generate an encrypted serial number that is compatible with the target data required by the current staff member through the request data chain in real time. Based on this, in order to facilitate subsequent pairing and identification, the present invention will also randomly split the current encrypted serial number, so that the corresponding parent key and child key can be split. At the same time, it will also synchronize the current target key and child key according to the current target key. The size of the target data generates a viewing time that is adapted to the current staff in real time. Based on this, the current staff can enter the corresponding blockchain node to view the corresponding data only after the secret key is successfully paired, and can only view the target data within the specified viewing time, thereby effectively protecting the security of private data. When viewing the target data, the staff will shield the external network environment that may affect their viewing, thereby avoiding the phenomenon of private data leakage. It should be pointed out that in order to facilitate the generation of the required parent key and child key, the present invention will detect in real time the corresponding target numbers and target letters contained in the above-mentioned request data chain, and at the same time perform corresponding random permutations and combinations, so as to generate corresponding initial serial numbers, and only one initial serial number needs to be randomly selected as the encryption serial number of the current target data, thereby being able to quickly and effectively split the required parent key and child key, which greatly improves work efficiency.

[0102] See also Figure 2 , the third embodiment of the present invention provides:

[0103] A blockchain-based privacy data sharing system, wherein the system includes:

[0104] A receiving module is used to receive the target enterprise input by the user in real time and detect the enterprise information corresponding to the target enterprise in real time;

[0105] An extraction module is used to create a corresponding blockchain network in the target enterprise in real time based on the enterprise information, and upon receiving an access request from a staff member in real time, extract the corresponding target data from a preset database in real time based on the access request;

[0106] The detection module is used to detect the blockchain node corresponding to the staff member in the blockchain network in real time, and store the target data in the blockchain node accordingly, so that the staff member can view the target data in the blockchain node.

[0107] Furthermore, the extraction module is specifically used to:

[0108] When the enterprise information is acquired in real time, a full scan is performed on the enterprise information to detect in real time a number of work departments included in the target enterprise and a number of target employees included in each work department;

[0109] Each of the work departments and the corresponding target employees are block-processed to generate the blockchain network accordingly.

[0110] Furthermore, the extraction module is specifically used to:

[0111] When a number of target employees corresponding to the work department are detected in real time, a corresponding blockchain identifier is added to the employee terminal corresponding to each target employee;

[0112] Based on a preset blockchain protocol, a local blockchain network adapted to the work department is created in real time according to each blockchain identifier, and based on preset rules, a blockchain node corresponding to the work department is generated in real time according to the local blockchain network;

[0113] The communication connection between each of the blockchain nodes is constructed in real time to generate the blockchain network accordingly, and each work department corresponds to only one blockchain node.

[0114] Furthermore, the extraction module is specifically used to:

[0115] When the local blockchain network is acquired in real time, a number of target employee terminals corresponding to the local blockchain network are detected in real time;

[0116] Detecting all employee terminals corresponding to the target enterprise in real time, and calculating a target ratio between a number of the target employee terminals and all employee terminals in real time;

[0117] According to the size of the target ratio, the corresponding blockchain communication interface is allocated to the local blockchain network in real time, and the blockchain communication interface is set as the blockchain node of the work department.

[0118] Furthermore, the detection module is specifically used to:

[0119] In response to the viewing request of the staff member, detecting the request time and the name of the requesting staff member corresponding to the staff member in real time;

[0120] A request data chain adapted to the staff member is created in real time according to the request time and the name of the requesting person, and the staff member is controlled to view the target data in the blockchain node according to the request data chain. The request data chain is unique.

[0121] Furthermore, the detection module is specifically used to:

[0122] When the request data chain is obtained in real time, an encrypted serial number corresponding to the target data is generated in real time according to the request data chain;

[0123] The encrypted serial number is randomly split to generate corresponding parent keys and child keys in real time, and a viewing time adapted to the staff member is generated in real time according to the amount of the target data;

[0124] The staff is controlled to view the target data in the blockchain node according to the subkey and the viewing time, and the blockchain node can shield the communication connection between the staff and the external network.

[0125] Furthermore, the detection module is specifically used to:

[0126] When the request data chain is obtained in real time, the request data chain is fully scanned to detect in real time a number of target numbers and a number of target letters corresponding to the request data chain;

[0127] A number of the target numbers and a number of the target letters are randomly arranged and combined to generate a number of corresponding initial serial numbers in real time, and one of the initial serial numbers is randomly selected as the encrypted serial number, and the encrypted serial number is unique.

[0128] A fourth embodiment of the present invention provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the blockchain-based privacy data sharing method as described above is implemented.

[0129] A fifth embodiment of the present invention provides a readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the blockchain-based privacy data sharing method as described above is implemented.

[0130] In summary, the blockchain-based privacy data sharing method and system provided by the above embodiments of the present invention enable staff to complete data viewing while shielding the external network, thereby avoiding data leakage and improving work efficiency.

[0131] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0132] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0133] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0134] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0135] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0136] The above-described embodiments merely illustrate several embodiments of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

Claims

1. A privacy data sharing method based on blockchain, characterized in that: The method comprises: Receive the target enterprise input by the user in real time, and detect the enterprise information corresponding to the target enterprise in real time; A corresponding blockchain network is created in real time in the target enterprise based on the enterprise information, and when an access request from a staff member is received in real time, corresponding target data is extracted in real time from a preset database based on the access request; The blockchain node corresponding to the staff member is detected in real time in the blockchain network, and the target data is stored in the blockchain node accordingly, so that the staff member can view the target data in the blockchain node.

2. The blockchain-based privacy data sharing method according to claim 1, characterized in that: The step of creating a corresponding blockchain network in the target enterprise in real time according to the enterprise information includes: When the enterprise information is acquired in real time, a full scan is performed on the enterprise information to detect in real time a number of work departments included in the target enterprise and a number of target employees included in each work department; Each of the work departments and the corresponding target employees are block-processed to generate the blockchain network accordingly.

3. The blockchain-based privacy data sharing method according to claim 2, characterized in that: The step of performing block processing on each of the work departments and the corresponding target employees to generate the blockchain network includes: When a number of target employees corresponding to the work department are detected in real time, a corresponding blockchain identifier is added to the employee terminal corresponding to each target employee; Based on a preset blockchain protocol, a local blockchain network adapted to the work department is created in real time according to each blockchain identifier, and based on preset rules, a blockchain node corresponding to the work department is generated in real time according to the local blockchain network; The communication connection between each of the blockchain nodes is constructed in real time to generate the blockchain network accordingly, and each work department corresponds to only one blockchain node.

4. The blockchain-based privacy data sharing method according to claim 3, characterized in that: The step of generating a blockchain node corresponding to the work department in real time according to the local blockchain network based on preset rules includes: When the local blockchain network is acquired in real time, a number of target employee terminals corresponding to the local blockchain network are detected in real time; Detecting all employee terminals corresponding to the target enterprise in real time, and calculating a target ratio between a number of the target employee terminals and all employee terminals in real time; According to the size of the target ratio, the corresponding blockchain communication interface is allocated to the local blockchain network in real time, and the blockchain communication interface is set as the blockchain node of the work department.

5. The blockchain-based privacy data sharing method according to claim 1, characterized in that: The step of storing the target data in the blockchain node so that the staff can view the target data in the blockchain node includes: In response to the viewing request of the staff member, detecting the request time and the name of the requesting staff member corresponding to the staff member in real time; A request data chain adapted to the staff member is created in real time according to the request time and the name of the requesting person, and the staff member is controlled to view the target data in the blockchain node according to the request data chain. The request data chain is unique.

6. The blockchain-based privacy data sharing method according to claim 5, characterized in that: The step of controlling the staff to view the target data in the blockchain node according to the request data chain includes: When the request data chain is obtained in real time, an encrypted serial number corresponding to the target data is generated in real time according to the request data chain; The encrypted serial number is randomly split to generate corresponding parent keys and child keys in real time, and a viewing time adapted to the staff member is generated in real time according to the amount of the target data; The staff is controlled to view the target data in the blockchain node according to the subkey and the viewing time, and the blockchain node can shield the communication connection between the staff and the external network.

7. The blockchain-based privacy data sharing method according to claim 6, characterized in that: The step of generating an encrypted serial number corresponding to the target data in real time according to the request data link comprises: When the request data chain is obtained in real time, the request data chain is fully scanned to detect in real time a number of target numbers and a number of target letters corresponding to the request data chain; A number of the target numbers and a number of the target letters are randomly arranged and combined to generate a number of corresponding initial serial numbers in real time, and one of the initial serial numbers is randomly selected as the encrypted serial number, and the encrypted serial number is unique.

8. A privacy data sharing system based on blockchain, characterized in that: The system comprises: A receiving module is used to receive the target enterprise input by the user in real time and detect the enterprise information corresponding to the target enterprise in real time; An extraction module is used to create a corresponding blockchain network in the target enterprise in real time based on the enterprise information, and upon receiving an access request from a staff member in real time, extract the corresponding target data from a preset database in real time based on the access request; The detection module is used to detect the blockchain node corresponding to the staff member in the blockchain network in real time, and store the target data in the blockchain node accordingly, so that the staff member can view the target data in the blockchain node.

9. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the blockchain-based privacy data sharing method according to any one of claims 1 to 7 is implemented.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the blockchain-based privacy data sharing method as described in any one of claims 1 to 7 is implemented.