A data opening method, device and storage medium based on privacy computing
By responding to users' data privacy configuration operations in blockchain nodes and merging computing nodes, it solves the problem of privacy computing technology being unable to adapt to users' flexible configurations, improves computing efficiency, and reduces the consumption of computing resources.
Patent Information
- Application Number
- CN202411052633.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Blockchain-based privacy computing technology cannot adapt to users' flexible configuration of data security, resulting in consumption of computing resources and low computing efficiency.
By responding to the user's data privacy configuration operation in the blockchain node, the corresponding privacy configuration information is generated, and the first node graph is generated based on this information, and the computing nodes that require privacy calculations are merged into subgraphs, and an adapted calculation method is used. Compute and reduce unnecessary consumption of privacy computing resources.
It improves computing efficiency, reduces the consumption of computing resources due to privacy computing, and can flexibly respond to different users' configuration requirements for data security.
Smart Images

Figure CN118568781B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of privacy computing and blockchain technology, and in particular to a data opening method, device and storage medium based on privacy computing. Background Art
[0002] With the development of the digital economy, data has become one of the core assets of enterprises, so data security has become one of the key concerns of enterprises. As data circulates more and more frequently between enterprises, there is an increasing demand for enterprises to open data. Therefore, how to achieve secure data openness while protecting user privacy has become one of the bottlenecks restricting the digital transformation of enterprises.
[0003] At present, the integration of privacy computing and blockchain technology has made it possible to realize the circulation of trusted data. Privacy computing is a series of information technologies that realize data value mining under the premise of ensuring that the data provider does not disclose the original data. It provides a "available but invisible" solution for the circulation of data value. Privacy computing technologies include secure multi-party computing (MPC) and homomorphic encryption (HE), which can realize joint analysis of data without disclosing the original data. Blockchain is a distributed ledger technology with the characteristics of decentralization, immutability, transparency and trustworthiness. It establishes a trust foundation between participants through a consensus mechanism to realize point-to-point value transfer. Blockchain technology can ensure the credibility of the computing process and data, and provide a feasible solution to compliance issues such as data authenticity or data confirmation.
[0004] Therefore, the integration of privacy computing and blockchain technology can make data “available but invisible” while ensuring the security and privacy of data. This combination can solve the problems of compliance and data ownership in data circulation, and provide a more complete and rigorous solution for the trusted and open circulation of data elements.
[0005] However, compared with conventional computing processes, privacy computing technology based on blockchain systems requires more computing resources. First, privacy computing (such as secure multi-party computing or homomorphic encryption) requires the introduction of secret sharing technology or special encryption and decryption algorithms in the computing process, so the computing process requires additional computing resources. In each process of blockchain technology to implement computing, broadcasting, consensus, and block generation operations are required within the blockchain system. Therefore, the consumption of computing resources by the additional computing process in privacy computing is further aggravated in a series of operations of the blockchain system.
[0006] In reality, users are very flexible in configuring data security. For example, for the same user, some types of data need to be kept confidential, but some types of data can be made public. Even for the same type of data, some users need to keep it confidential, while others can make it public. Therefore, in this case, performing privacy computing in the blockchain system will cause unnecessary consumption of computing resources due to the inability to adapt to the flexible configuration of data by different users, and lead to low computing efficiency of the entire system.
[0007] The publication number is CN117914627A, and the name is a data element circulation system based on DMZ network architecture. It includes: an Internet open area, which is used to provide Internet data services for different business scenarios; a core data production area, which is used to generate derivative data based on Internet data service needs by using big data analysis and calculation, and deliver data to the Internet open area through the data interaction area; a data interaction area, which is used for data interaction between the Internet open area and the core data production area. The data interaction area will not store or retrieve the original data, but only serves as a temporary transfer station to store derivative data; a network protection layer, which is used for access control between the data interaction area and the Internet open area, and between the data interaction area and the core data production area.
[0008] The publication number is CN118094568A, and the name is a data element transaction circulation system and method based on a secure and trusted environment. By integrating and managing the characteristics and performance of different computing devices, a trusted environment is customized according to the needs of the task, and the advantages of computing resources are maximized. By monitoring and managing the use of heterogeneous computing resources, the allocation and configuration of resources are dynamically adjusted according to real-time load conditions and performance requirements, so that the system can better adapt to different workloads, can be adapted to internal self-use analysis scenarios, and quickly prepare environments and data resources for scientific research and data analysts. It can also be used for data analysis in special fields, and can also be used for public data authorization when providing data usage rights to third parties.
[0009] There is currently no effective solution to the technical problem that the blockchain-based privacy computing technology in the above-mentioned existing technologies cannot adapt to users' flexible configuration of data security, resulting in waste of computing resources and low computing efficiency. Summary of the invention
[0010] The embodiments of the present disclosure provide a data opening method, device and storage medium based on privacy computing, so as to at least solve the technical problem that the blockchain-based privacy computing technology in the prior art cannot adapt to the user's flexible configuration of data security, thereby resulting in the consumption of computing resources and low computing efficiency.
[0011] According to one aspect of an embodiment of the present disclosure, a data opening method based on privacy computing is provided, which is used for a blockchain node of a blockchain system, including: in response to a user's data privacy configuration operation, uploading the privacy configuration information of the data corresponding to the data privacy configuration operation to the blockchain, and storing it in the blockchain data corresponding to the blockchain system; determining a computing task corresponding to a data processing instruction input by the user, and generating a first node graph corresponding to the computing task, the first node graph being used to indicate a plurality of computing nodes corresponding to a computing process of the computing task and a connection relationship between the plurality of computing nodes; obtaining privacy configuration information of open data corresponding to each computing node respectively from the blockchain data, wherein the open data is open to each node of the blockchain system; generating a second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data, wherein the second node graph includes a first subgraph and a second subgraph, wherein the first subgraph includes a plurality of computing nodes that are adjacently configured and need to perform privacy computing, and the second subgraph includes a plurality of computing nodes that are adjacently configured and do not need to perform privacy computing; and obtaining the open data corresponding to each subgraph from the blockchain system according to the second node graph, and implementing the computing process corresponding to each subgraph.
[0012] According to another aspect of the embodiments of the present disclosure, a storage medium is further provided. The storage medium includes a stored program, wherein the above method is executed by a processor when the program is running.
[0013] According to another aspect of the embodiment of the present disclosure, a data opening device based on privacy computing is also provided, which is used for a blockchain node of a blockchain system, including: a privacy configuration module, which is used to respond to a user's data privacy configuration operation, and to perform a chain operation on the privacy configuration information of the data corresponding to the data privacy configuration operation, and store it in the blockchain data corresponding to the blockchain system; a first node graph generation module, which is used to determine a computing task corresponding to a data processing instruction input by a user, and to generate a first node graph corresponding to the computing task, wherein the first node graph is used to indicate a plurality of computing nodes corresponding to a computing process of the computing task and a connection relationship between the plurality of computing nodes; a privacy configuration information acquisition module, which is used to obtain the privacy configuration information of the data corresponding to the data privacy configuration operation; The invention relates to a block chain system comprising a plurality of computing nodes which are adjacent to each other and need to perform privacy calculations. The block chain system comprises a plurality of computing nodes which are adjacent to each other and need to perform privacy calculations. The block chain system comprises a plurality of computing nodes which are adjacent to each other and need to perform privacy calculations. The block chain system comprises a plurality of computing nodes which are adjacent to each other and need to perform privacy calculations. The block chain system comprises a plurality of computing nodes which are adjacent to each other and need to perform privacy calculations. The block chain system comprises a plurality of computing nodes which are adjacent to each other and need to perform privacy calculations. The block chain system comprises a plurality of computing nodes which are adjacent to each other and need to perform privacy calculations. The block chain system comprises a plurality of computing nodes which are adjacent to each other and need to perform privacy calculations.
[0014] According to another aspect of an embodiment of the present disclosure, there is also provided a data opening device based on privacy computing, which is used for a blockchain node of a blockchain system, and includes: a processor; and a memory connected to the processor, and used to provide the processor with instructions for processing the following processing steps: in response to a user's data privacy configuration operation, the privacy configuration information of the data corresponding to the data privacy configuration operation is uploaded to the chain and stored in the blockchain data corresponding to the blockchain system; a computing task corresponding to the data processing instruction input by the user is determined, and a first node graph corresponding to the computing task is generated, the first node graph is used to indicate a plurality of computing nodes corresponding to the computing process of the computing task and a connection relationship between the plurality of computing nodes; privacy configuration information of open data corresponding to each computing node is obtained from the blockchain data, wherein the open data is open to each node of the blockchain system; according to the privacy configuration information corresponding to the open data, a second node graph corresponding to the first node graph is generated, wherein the second node graph includes a first subgraph and a second subgraph, wherein the first subgraph includes a plurality of computing nodes that are adjacently configured and need to perform privacy computing, and the second subgraph includes a plurality of computing nodes that are adjacently configured and do not need to perform privacy computing; and according to the second node graph, the open data corresponding to each subgraph is obtained from the blockchain system, and the computing process corresponding to each subgraph is implemented.
[0015] After the user performs a data privacy configuration operation on the open data in the corresponding blockchain node, the blockchain node will implement the operation of uploading the privacy configuration information corresponding to the open data, so that the privacy configuration information corresponding to the open data of each blockchain node will be stored in the blockchain data of each blockchain node. Then, when the user inputs a data processing instruction and the blockchain node determines the computing task corresponding to the data processing specification, a first node graph corresponding to the computing task will be generated. The blockchain node then determines the open type of the open data corresponding to each computing node of the first node graph based on the privacy configuration information stored in the blockchain data (that is, confidential data opened in the form of privacy computing, or non-confidential data opened in the form of privacy computing). The blockchain node then further combines multiple adjacent computing nodes involving confidential open data into a subgraph (that is, a first subgraph, such as a subgraph). Figure 1 Kazuko Figure 3 ), which combines multiple adjacent computing nodes that do not involve confidential open data into a subgraph (i.e., the second subgraph, such as sub Figure 2 Then, the blockchain node implements the communication with each subgraph according to the open data corresponding to the computing nodes of each subgraph in the second node graph, using a method adapted to the open data (using privacy computing or conventional computing). Figures 1 to 3 The corresponding calculation process.
[0016] Therefore, according to this embodiment, multiple computing nodes that require privacy computing in the first node graph are merged into one subgraph, or multiple computing nodes that do not require privacy computing are merged into one subgraph. This enables the blockchain node to merge multiple computing nodes together with a more flexible strategy according to the user's data privacy configuration of open data, and adopts an adaptive computing method to perform the calculation process of each subgraph. In this way, privacy computing can only be performed on open data that the user configures as confidential open data, while open data that the user configures as non-confidential open data is calculated using a conventional method, thereby reducing the additional consumption of computing resources caused by privacy computing. In addition, this embodiment uses a subgraph method to perform merged calculations, thereby greatly improving the efficiency of calculations. This solves the technical problem that the blockchain-based privacy computing technology in the prior art cannot adapt to the user's flexible configuration of data security, resulting in the consumption of computing resources and low computing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present application. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0018] Figure 1 is a hardware structure block diagram of a computing device for implementing the method according to Embodiment 1 of the present disclosure;
[0019] Figure 2 is a schematic diagram of a data opening system based on privacy computing according to Embodiment 1 of the present disclosure;
[0020] Figure 3 It is a schematic diagram of the architecture of the blockchain node of the data open system according to Embodiment 1 of the present disclosure;
[0021] Figure 4 is a flowchart of the data opening method based on privacy computing according to Embodiment 1 of the present disclosure;
[0022] Figure 5 is a schematic diagram of open data stored in a blockchain node of the data open system according to Embodiment 1 of the present disclosure;
[0023] Figure 6 is a schematic diagram of a first node graph according to Embodiment 1 of the present disclosure;
[0024] Figure 7 is a schematic diagram of a second node graph according to Embodiment 1 of the present disclosure;
[0025] Figure 8 is a schematic diagram of a data opening device based on privacy computing according to Embodiment 2 of the present disclosure; and
[0026] Fig. 9 It is a schematic diagram of a data opening device based on privacy computing according to Example 3 of the present disclosure. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0029] Definition of terms
[0030] Data openness: Data openness in this application is similar to data sharing, which means opening data to other devices or nodes for use. However, unlike data sharing, data openness in this application includes forms such as "data available and visible" (i.e., data sharing) and "data available but not visible" (e.g., data openness in privacy computing). Example 1
[0031] According to this embodiment, a method embodiment of a data opening method based on privacy computing is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0032] The method embodiment provided in this embodiment can be executed in a computer terminal, a server or a similar computing device. Figure 1The hardware structure block diagram of a computing device for implementing a data openness method based on privacy computing is shown. Figure 1 As shown, the computing device may include one or more processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, a transmission device for communication functions, and an input / output interface. The memory, the transmission device, and the input / output interface are connected to the processor via a bus. In addition, it may also include: a display, a keyboard, and a cursor control device connected to the input / output interface. A person skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0033] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computing device. As involved in the embodiments of the present disclosure, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0034] The memory can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the data openness method based on privacy computing in the embodiment of the present disclosure. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the data openness method based on privacy computing of the above-mentioned application is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0035] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computing device. In one example, the transmission device includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] The display may be, for example, a touch screen liquid crystal display (LCD) that may enable a user to interact with a user interface of the computing device.
[0037] It should be noted that, in some optional embodiments, the above Figure 1 The computing device shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware elements and software elements. Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computing devices described above.
[0038] Figure 2 Schematic diagram of the data open system based on privacy computing according to this embodiment. Figure 2 As shown, the system may be, for example, a blockchain system including a plurality of blockchain nodes ND1~ND m In this embodiment, different blockchain nodes ND1~ND m For example, they belong to different users P1~P m Or deployed to different users P1~P m It should be noted that the blockchain nodes ND1~ND m The hardware structure described above can be applied to both.
[0039] also, Figure 3 It is the blockchain node ND1~ND according to this embodiment. m A schematic diagram of the architecture of any blockchain node in . Figure 3 As shown in the figure, the blockchain nodes gradually include from the bottom layer to the upper layer: data layer, network layer, consensus layer, smart contract layer, privacy computing layer, data processing layer and application layer.
[0040] The data layer includes blockchain data (i.e., data blocks organized in a chain structure), hash functions, digital signature modules, and asymmetric encryption modules. The network layer includes various mechanisms for networking, such as P2P networks, propagation mechanisms, and verification mechanisms. The consensus layer is used to implement different consensus mechanisms, including PoW, PoS, and DPoS. The smart contract layer includes pre-deployed smart contracts. The privacy computing layer includes privacy computing modules 1 and 2 for supporting different privacy protocols. The data processing layer is used to configure data security types according to user operations at the application layer, as well as implement and schedule data computing, including privacy configuration modules, task parsing modules, and computing implementation modules. The above modules will be described in detail below.
[0041] In the above operating environment, according to the first aspect of this embodiment, a data opening method based on privacy computing is provided. The method comprises: Figure 2 The various blockchain nodes ND1~ND m accomplish. Figure 4 A schematic diagram showing the process of the method is shown in FIG. Figure 4 As shown, the method includes:
[0042] S402: In response to the user's data privacy configuration operation, the privacy configuration information of the data corresponding to the data privacy configuration operation is uploaded to the blockchain and stored in the blockchain data corresponding to the blockchain system;
[0043] S404: Determine a computing task corresponding to the data processing instruction input by the user, and generate a first node graph corresponding to the computing task, where the first node graph is used to indicate a plurality of computing nodes corresponding to a computing process of the computing task and a connection relationship between the plurality of computing nodes;
[0044] S406: Obtaining privacy configuration information of open data corresponding to each computing node from the blockchain data, wherein the open data is open to each node of the blockchain system;
[0045] S408: generating a second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data, wherein the second node graph includes a first subgraph and a second subgraph, wherein the first subgraph includes a plurality of adjacently configured computing nodes that need to perform privacy computing, and the second subgraph includes a plurality of adjacently configured computing nodes that do not need to perform privacy computing; and
[0046] S410: Obtain open data corresponding to each subgraph from the blockchain system according to the second node graph, and implement a calculation process corresponding to each subgraph.
[0047] Specifically, Figure 5 The table shows the various blockchain nodes ND1~NDm Open data stored. For example, blockchain node ND1 stores open data A 1 ~ Z 1 ; Blockchain node ND2 stores open data A 2 ~ Z 2 ; ...; and blockchain node ND m Open data saved A m ~ Z m In this embodiment, the operation of blockchain node ND1 is taken as an example to illustrate the method described in this embodiment, but those skilled in the art should know that the method described in this embodiment is also applicable to other blockchain nodes ND2~ND m .
[0048] In this embodiment, user P1 can access the open data of blockchain node ND1 through the application program in the application layer of the corresponding blockchain node ND1. A 1 ~ Z 1 Perform data privacy configuration operations. Specifically, for example, you can A 1 Set as confidential data that needs to be opened through privacy computing, and open data B 1 and C 1 Set it as non-confidential data in a way that does not require privacy computing, and so on, thereby making open data A 1 ~ Z 1 Configure data privacy.
[0049] Thus, the privacy configuration module of the data processing layer of the blockchain node ND1 generates privacy configuration information corresponding to the data privacy configuration operation in response to the data privacy configuration operation of the user P1. Specifically, the privacy configuration information is used to indicate the privacy of each open data. A 1 ~ Z 1 The privacy configuration module then uploads the privacy configuration information to the blockchain and stores it in the blockchain data corresponding to the blockchain system (S402).
[0050] Among them, during the chain operation, the blockchain node ND1 sends information to other blockchain nodes ND2~ND m The privacy configuration information is broadcasted and temporarily stored in the transaction pool of each blockchain node. Then, the blockchain nodes ND2~ND m The block node in generates a data block containing the privacy configuration information and transmits it to the blockchain node ND1. After receiving the data block, the blockchain node ND1 saves it in the local blockchain data. In addition, the remaining blockchain nodes ND2~ND m In response to the data privacy configuration operation of each user, each blockchain node ND1~ND m The blockchain data of each blockchain node ND1~ND m The data privacy configuration information.
[0051] Then, user P1 inputs the data processing instruction through the application. For example, user P1 can click a button corresponding to a preset data processing operation to trigger the data processing instruction corresponding to the data processing operation. The data processing operation, for example, requires the use of each blockchain node ND1~ND m This can only be achieved through multiple steps of calculation based on open data.
[0052] Then, the task parsing module in the data processing layer of the blockchain node ND1 determines the computing task corresponding to the data processing instruction, and generates a first node graph corresponding to the computing task (S404).
[0053] in Figure 6 FIG. 1 shows a partial schematic diagram of the first node graph. Figure 6 As shown, the first node graph includes a plurality of computing nodes NS1~NS 14 . Each computing node corresponds to a computing step in the computing task.
[0054] For example, the calculation step corresponding to NS1 is k1 A1; NS2 corresponds to the calculation step k2 C3; the calculation step corresponding to NS3 is k3 The calculation step corresponding to D2 and NS4 is to sum the calculation results of the calculation nodes NS1 to NS3 with E5. Similarly, each calculation node corresponds to a calculation step after the calculation task is decomposed.
[0055] Then, the task parsing module of blockchain node ND1 reads the blockchain data related to each blockchain node ND1~ND m Open data (i.e. Figure 5The privacy configuration information related to each open data shown in (S406) is obtained.
[0056] Then, the task parsing module of the blockchain node ND1 determines the open type of the open data corresponding to the computing operation of each computing node based on the privacy configuration information obtained from the blockchain data. For example, it can be determined that the open data A1 corresponding to the computing node NS1 is confidential data; the open data C3 corresponding to the computing node NS2 is confidential data; the open data D2 corresponding to the computing node NS3 is confidential data; the open data E5 corresponding to the computing node NS4 is confidential data; ... and so on.
[0057] Then, the task parsing module of the blockchain node ND1 generates a second node graph corresponding to the first node graph according to the open type of the open data corresponding to each computing node (S408).
[0058] Specifically, Figure 7 Shown with Figure 6 Schematic diagram of the second node graph corresponding to the first node graph shown. Figure 7 As shown, the second node graph consists of Figure 1 ,son Figure 2 ,son Figure 3 , computing node NS8, computing node NS 10 And computing node NS 14 composition.
[0059] Among them Figure 1 It includes computing nodes NS1~NS4, and the computing processes corresponding to NS1~NS4 all use confidential open data that requires privacy computing. Figure 2 Computing nodes NS5 to NS7 and NS9 are included, and the open data used in the computing processes corresponding to computing nodes NS5 to NS7 and NS9 are all non-confidential open data that does not require privacy computing. Figure 3 Including computing nodes NS 11 ~NS 13 , and NS 11 ~NS 13 The corresponding computing processes all use confidential open data that requires privacy computing. In addition, computing nodes NS8 and NS 14 The open data used is non-confidential open data that does not require privacy computing, and the computing node NS 10 Confidential open data that requires privacy computing is used.
[0060] Then, the computational implementation module of the data processing layer directly obtains the Figure 2 The corresponding non-confidential open data and the sub Figure 2The corresponding calculation process. In addition, the calculation execution module instructs the privacy calculation module 1 and / or the privacy calculation module 2 of the privacy calculation layer to obtain the open data corresponding to the sub- Figure 1 and sub- Figure 3 and execute the privacy calculation process (S410) corresponding to each sub- Figure 1 and sub- Figure 3 Among them, due to different open types, the open data corresponding to the sub- Figure 2 is obtained in the way of "available and visible" (that is, obtained in the way of sharing), and the open data corresponding to the sub- Figure 1 and sub- Figure 3 is obtained in the way of "available but invisible" (that is, obtained according to the regulations of privacy calculation).
[0061] Thus, through the above method, the calculation execution module can obtain the calculation results of each sub- Figure 1 ~sub- Figure 3 and use the calculation results of the sub- Figure 1 ~sub- Figure 3 to perform further calculations, and finally obtain the calculation result corresponding to the calculation task.
[0062] As described in the background technology, compared with the conventional calculation process, the privacy calculation technology based on the blockchain system requires more computing power resources. And the blockchain technology needs to perform operations such as broadcasting, consensus, and block generation in the blockchain system in each process of realizing the calculation. Therefore, the consumption of computing power resources by the additional calculation process in privacy calculation is further aggravated in a series of operations of the blockchain system. In reality, the user's configuration of data security is very flexible. Therefore, in this case, performing privacy calculation in the blockchain system will result in unnecessary consumption of computing power resources due to the inability to adapt to the flexible configuration of data by different users, and lead to low calculation efficiency of the entire system.
[0063] In view of this, according to this embodiment, after the user performs a data privacy configuration operation on the open data in the corresponding blockchain node, the blockchain node will perform an operation of uploading the privacy configuration information corresponding to the open data to the chain, so that the privacy configuration information corresponding to the open data of each blockchain node will be stored in the blockchain data of each blockchain node. Then, when the user inputs a data processing instruction and the blockchain node determines the calculation task corresponding to the data processing instruction, a first node graph corresponding to the calculation task will be generated. Then, the blockchain node determines the open type of the open data corresponding to each calculation node of the first node graph according to the privacy configuration information stored in the blockchain data (that is, the confidential data opened in the form of privacy calculation, or the non-confidential data not opened in the form of privacy calculation). Then, the blockchain node further combines multiple adjacent calculation nodes involving confidential open data into a sub-graph (that is, the first sub-graph, such as sub- Figure 1Sub Figure 3 ), and the latter combines multiple adjacent computing nodes that do not involve confidential open data into a sub-graph (i.e., the second sub-graph, such as Sub Figure 2 ). Then, the blockchain node, according to the open data corresponding to the computing nodes in each sub-graph in the second node graph, uses a method adapted to the open data (using privacy computing or conventional computing) to implement the computing processes corresponding to each sub Figure 1 ~Sub Figure 3 .
[0064] Therefore, according to this embodiment, multiple computing nodes that require privacy computing in the first node graph are combined into a sub-graph, or multiple computing nodes that do not require privacy computing are combined into a sub-graph. Thus, the blockchain node can combine multiple computing nodes together with a more flexible strategy according to the user's data privacy configuration for open data, and adopt an adapted computing method for the computing processes of each sub-graph. In this way, privacy computing can be performed only on the open data configured by the user as confidential open data, while the open data configured by the user as non-confidential open data is calculated using conventional methods, thereby reducing the additional consumption of computing power resources caused by privacy computing. In addition, this embodiment uses the sub-graph method for combined computing, so the computing efficiency is greatly improved. Thus, the technical problem in the prior art that the blockchain-based privacy computing technology cannot adapt to the flexible configuration of user data security, resulting in the consumption of computing power resources and low computing efficiency, is solved.
[0065] Optionally, the first sub-graph and the second sub-graph are parallel in the second node graph, and the operations of obtaining the open data corresponding to each sub-graph from the blockchain system according to the second node graph and implementing the computing processes corresponding to each sub-graph include: obtaining the open data of the first sub-graph and the second sub-graph in parallel; and implementing the computing processes of the first sub-graph and the second sub-graph in parallel.
[0066] Specifically, as shown in reference Figure 7 , Sub Figure 1 and Sub Figure 3 as the first sub-graph and Sub Figure 2 as the second sub-graph are parallel. The above-mentioned parallel sub-graphs mean that these sub-graphs have the same trigger conditions. For example, in Figure 7 , Sub Figure 1 ~Sub Figure 3 all start from the initial computing nodes NS1~NS3, NS5~NS6, and NS11~NS12, so the open data can be obtained in parallel and the computing can be performed in parallel.
[0067] Thus, in this embodiment, the computing implementation module of the data processing layer and the privacy computing module of the privacy computing layer obtain the required open data respectively in parallel and perform computations in parallel. That is, the computing implementation module obtains the open data corresponding to the sub- Figure 2 and performs conventional computations, and the privacy computing module 1 and / or the privacy computing module 2 obtain the open data corresponding to the sub- Figure 1 and sub- Figure 3 and perform privacy computations. Among them, the acquisition and computation of the open data of the sub- Figures 1 to 3 are carried out in parallel.
[0068] Thus, in this way, the blockchain node can obtain the confidential open data that requires privacy computing and the non-confidential open data that does not require privacy computing in parallel, and perform corresponding computations in parallel for different subgraphs, thereby greatly improving the efficiency of data opening and computing.
[0069] Optionally, the operation of generating the second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data includes: determining the third subgraph and the fourth subgraph according to the privacy configuration information corresponding to the open data, where the third subgraph includes computing nodes that are adjacently configured to perform computations in the first privacy computing manner, and the fourth subgraph includes computing nodes that are adjacently configured to perform computations in the second privacy computing manner; and using the third subgraph and the fourth subgraph as the second subgraph to generate the second node graph.
[0070] Specifically, according to this embodiment, when the user performs privacy configuration on the open data, the privacy configuration module not only determines whether the open data is confidential open data that requires privacy computing according to the user's configuration. And for the open data that has been determined to be confidential open data, the privacy configuration module will further determine the way of performing privacy computing on the open data, for example, determining whether it is computed through the secure multi-party computing method or through the homomorphic encryption method.
[0071] For example, the privacy configuration module determines that the computing nodes NS1~NS4 in the first node graph perform privacy computing through the secure multi-party computing method, and thus combines them into sub- Figure 1 (that is, the third subgraph). And, the privacy configuration module determines that the computing nodes NS 11 ~NS 13 in the first node graph perform privacy computing through the homomorphic encryption method, and thus combines them into sub- Figure 3 (that is, the fourth subgraph). Thus, the privacy configuration module generates the second node graph shown in Figure 1 ~sub- Figure 3 . Figure 7
[0072] Therefore, according to this embodiment, the subgraph in the node graph is determined not only according to whether the open data corresponding to the computing node performs privacy calculation, but also according to the specific privacy calculation method of the open data corresponding to the computing node. Therefore, computing nodes with the same calculation method can be merged into the same subgraph, thereby reducing the consumption of computing resources and further improving computing efficiency in the subsequent computing process.
[0073] Optionally, the operation of obtaining the open data of the first subgraph and the second subgraph in parallel includes: obtaining the open data of the second subgraph using a computing implementation program module of the data processing layer arranged below the application layer, and obtaining the data of the first subgraph using a privacy computing module of the privacy computing layer arranged below the data processing layer; and the operation of implementing the computing process of the first subgraph and the second subgraph in parallel includes: implementing the computing process of the second subgraph using the computing implementation program module, and implementing the computing process of the first subgraph using the privacy computing module, and transmitting the computing result of the first subgraph to the computing implementation program module.
[0074] Specifically, refer to Figure 3 As shown, in the blockchain node described in this embodiment, a data processing layer is provided below the application layer, which interacts with the application layer and performs corresponding data processing on the open data in response to the instructions of the application layer, including data privacy configuration for the open data, parsing the computing tasks, and implementing the computing process corresponding to the computing tasks.
[0075] In addition, a privacy computing layer is provided below the data processing layer, and the privacy computing layer is provided with multiple privacy computing modules, such as privacy computing module 1 and privacy computing module 2, for implementing privacy computing in different privacy computing modes. For example, privacy computing module 1 performs privacy computing in a secure multi-party computing mode, and privacy computing module 2 performs privacy computing in a homomorphic encryption mode.
[0076] Therefore, according to this embodiment, after the task parsing module of the data processing layer generates the second node graph, it transmits the second node graph to the calculation implementation module. Figure 2 The corresponding open data is instructing the privacy computing module 1 and / or the privacy computing module 2 to obtain the corresponding open data. Figure 1 Kazuko Figure 3 The corresponding open data, so that the privacy computing module 1 and / or the privacy computing module 2 obtains the corresponding Figure 1 Kazuko Figure 3 The corresponding open data.
[0077] Thus, in the calculation implementation module, Figure 2 In the corresponding conventional calculation process, privacy computing module 1 and / or privacy computing module 2 perform sub-calculations in parallel. Figure 1Kazuko Figure 3 This enables parallel computing of confidential open data and non-confidential open data.
[0078] In this way, since an independent privacy computing layer is set up to implement privacy computing-related processing, the separation of data processing and privacy computing is achieved, and privacy computing is separated from data processing, so that the privacy computing module of the privacy computing layer can independently interact with the lower-level blockchain layer architecture. For example, the privacy computing module of the privacy computing layer can directly obtain the required open data from each blockchain node with the help of the lower-level blockchain architecture. Or the privacy computing module of the privacy computing layer can perform privacy computing (such as secure multi-party computing) with other blockchain nodes with the help of the lower-level blockchain architecture. In this way, the efficiency of privacy computing is greatly improved, and the flexibility of the deployment of the data processing layer is also improved.
[0079] Optionally, the operation of obtaining the open data of the first subgraph and the second subgraph in parallel includes: obtaining the open data corresponding to the third subgraph through a first privacy computing module corresponding to the first privacy computing method; and obtaining the open data corresponding to the fourth subgraph through a second privacy computing module corresponding to the second privacy computing method.
[0080] For example, as described above, the privacy computing module 1 deployed in the privacy computing layer performs privacy computing through secure multi-party computing. Therefore, the privacy computing module 1 obtains the child Figure 1 (i.e., the third subgraph) corresponds to the open data. And the privacy computing module 2 performs privacy computing by homomorphic encryption, so the privacy computing module 2 obtains the corresponding Figure 3 (i.e., the fourth sub-figure) corresponding to the open data.
[0081] And further optionally, the operations of implementing the calculation process of the first subgraph and the second subgraph in parallel include: performing the calculation process of the third subgraph in a first privacy computing method through the first privacy computing module, and transmitting the calculation result to the calculation implementation program module; and performing the calculation process of the fourth subgraph in a second privacy computing method through the second privacy computing module, and transmitting the calculation result to the calculation implementation program module.
[0082] Specifically, the privacy computing module 1 obtains the sub Figure 1 After the corresponding open data of the third subgraph is obtained, the corresponding privacy calculation is performed through secure multi-party calculation, and the calculation results are transmitted to the calculation implementation module. Figure 3 (i.e., the fourth subgraph) After receiving the corresponding open data, the corresponding privacy calculation is performed through homomorphic encryption, and the calculation results are transmitted to the calculation implementation module.
[0083] Therefore, through the above methods, open data related to the computing task can be calculated using different privacy computing methods at the same time, thereby greatly improving the efficiency of privacy computing.
[0084] Optionally, the operation of implementing the computing process corresponding to each subgraph includes: merging the computing processes of the computing nodes in the second subgraph, and performing corresponding privacy calculations on the merged computing processes.
[0085] Specifically, refer to sub Figure 1 , where the calculation step corresponding to NS1 is k1 A1; NS2 corresponds to the calculation step k2 C3; the calculation step corresponding to NS3 is k3 The calculation step corresponding to D2 and NS4 is to sum the calculation results of the calculation nodes NS1 to NS3 with E5. Similarly, each calculation node corresponds to a calculation step after the calculation task is decomposed.
[0086] Thus, in the process of Figure 1 In the corresponding privacy calculation, the calculation process of each computing node can be merged. The merged calculation process is:
[0087] k1 A1+k2 C3+k3 D2+E5.
[0088] Therefore, the corresponding privacy calculation can be performed for the combined calculation process. In this way, the interaction process in the privacy calculation process can be reduced, thereby greatly improving the efficiency of privacy calculation.
[0089] Optionally, the method further includes using the calculation results of each subgraph as a constant for operation of the second node graph.
[0090] Specifically, refer to Figure 3 and Figure 7 As shown, privacy computing module 1 and privacy computing module 2 complete the sub Figure 1 Kazuko Figure 3 After the privacy calculation is completed, the result of the privacy calculation will be transmitted to the calculation implementation module of the data processing layer. Figure 1 Kazuko Figure 3 The calculation result is used as a constant, combined with other calculation nodes in the second node graph (for example, NS8, NS 10 and NS 14 etc.) and subgraphs (not shown) to perform calculations, thereby obtaining calculation results corresponding to the calculation tasks and outputting them to the application program at the application layer.
[0091] In addition, referring to Figure 1 As shown, according to the second aspect of this embodiment, a storage medium is provided. The storage medium includes a stored program, wherein when the program runs, the method described in any one of the above is executed by a processor.
[0092] Thus, according to this embodiment, after the user performs a data privacy configuration operation on the open data in the corresponding blockchain node, the blockchain node will implement an operation of uploading the privacy configuration information corresponding to the open data to the blockchain, so that the privacy configuration information corresponding to the open data of each blockchain node will be stored in the blockchain data of each blockchain node. Then, when the user inputs a data processing instruction and the blockchain node determines the computing task corresponding to the data processing specification, a first node graph corresponding to the computing task will be generated. Then, the blockchain node determines the open type of the open data corresponding to each computing node in the first node graph according to the privacy configuration information stored in the blockchain data (that is, the confidential data opened in the form of privacy computing, or the non-confidential data not opened in the form of privacy computing). Then, the blockchain node further combines multiple adjacent computing nodes involving confidential open data into a subgraph (that is, the first subgraph, such as sub Figure 1 and sub Figure 3 ), and the latter combines multiple adjacent computing nodes not involving confidential open data into a subgraph (that is, the second subgraph, such as sub Figure 2 ). Then, the blockchain node implements the computing process corresponding to each sub Figure 1 ~sub Figure 3 according to the open data corresponding to the computing nodes in each subgraph of the second node graph, using a method adapted to the open data (using privacy computing or conventional computing). Thus, according to this embodiment, multiple computing nodes that require privacy computing in the first node graph are merged into one subgraph, or multiple computing nodes that do not require privacy computing are merged into one subgraph. Thus, the blockchain node can merge multiple computing nodes together with a more flexible strategy according to the user's data privacy configuration of the open data, and adopt an adapted computing method for the computing process of each subgraph. Thus, in this way, privacy computing can be performed only on the open data configured by the user as confidential open data, while the open data configured by the user as non-confidential open data is calculated using a conventional method, thus reducing the additional consumption of computing power resources caused by privacy computing. In addition, this embodiment uses the subgraph method for combined computing, so the computing efficiency is greatly improved. Thus, it solves the technical problems in the prior art that the blockchain-based privacy computing technology cannot adapt to the flexible configuration of user data security, resulting in the consumption of computing power resources and low computing efficiency.
[0093] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention. Example 2
[0095] Figure 8 The data opening device 800 based on privacy computing according to this embodiment is shown. The device 800 is used for a blockchain node of a blockchain system and corresponds to the method described in the first aspect of embodiment 1. Figure 8 As shown, the device 800 includes: a privacy configuration module 810, which is used to respond to the user's data privacy configuration operation, and to perform a chain operation on the privacy configuration information of the data corresponding to the data privacy configuration operation, and store it in the blockchain data corresponding to the blockchain system; a first node graph generation module 820, which is used to determine the computing task corresponding to the data processing instruction input by the user, and to generate a first node graph corresponding to the computing task, and the first node graph is used to indicate a plurality of computing nodes corresponding to the computing process of the computing task and the connection relationship between the plurality of computing nodes; a privacy configuration information acquisition module 830, which is used to obtain the privacy configuration information corresponding to each computing node from the blockchain data. The privacy configuration information of the corresponding open data, wherein the open data is opened by each node of the blockchain system; a second node graph generation module 840, which is used to generate a second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data, wherein the second node graph includes a first subgraph and a second subgraph, wherein the first subgraph includes a plurality of adjacently configured computing nodes that need to perform privacy calculations, and the second subgraph includes a plurality of adjacently configured computing nodes that do not need to perform privacy calculations; and a computing module 850, which is used to obtain the open data corresponding to each subgraph from the blockchain system according to the second node graph, and implement the computing process corresponding to each subgraph.
[0096] Thus, according to this embodiment, after the user performs a data privacy configuration operation on the open data in the corresponding blockchain node, the blockchain node will implement the operation of uploading the privacy configuration information corresponding to the open data, so that the privacy configuration information corresponding to the open data of each blockchain node will be stored in the blockchain data of each blockchain node. Then, when the user inputs a data processing instruction and the blockchain node determines the computing task corresponding to the data processing specification, a first node graph corresponding to the computing task will be generated. Then, the blockchain node determines the open type of the open data corresponding to each computing node of the first node graph based on the privacy configuration information stored in the blockchain data (that is, confidential data opened in the form of privacy computing, or non-confidential data opened in the form of privacy computing). Then, the blockchain node further combines multiple adjacent computing nodes involving confidential open data into a subgraph (that is, a first subgraph, such as a subgraph). Figure 1 Kazuko Figure 3 ), which combines multiple adjacent computing nodes that do not involve confidential open data into a subgraph (i.e., the second subgraph, such as sub Figure 2 Then, the blockchain node implements the communication with each subgraph according to the open data corresponding to the computing nodes of each subgraph in the second node graph, using a method adapted to the open data (using privacy computing or conventional computing). Figures 1 to 3 Corresponding calculation process. Therefore, according to this embodiment, multiple computing nodes that require privacy calculation in the first node graph are merged into one subgraph, or multiple computing nodes that do not require privacy calculation are merged into one subgraph. This enables the blockchain node to merge multiple computing nodes together with a more flexible strategy according to the user's data privacy configuration of open data, and adopts an adaptive calculation method to perform the calculation process of each subgraph. In this way, privacy calculation can be performed only on open data that the user configures as confidential open data, while open data that the user configures as non-confidential open data is calculated using a conventional method, thereby reducing the additional consumption of computing resources caused by privacy calculation. In addition, this embodiment uses a subgraph method to perform merged calculations, thereby greatly improving the efficiency of calculations. This solves the technical problem that the blockchain-based privacy computing technology in the prior art cannot adapt to the user's flexible configuration of data security, resulting in the consumption of computing resources and low computing efficiency. Example 3
[0097] Fig. 9 The data opening device 900 based on privacy computing according to this embodiment is shown. The device 900 is used for a blockchain node of a blockchain system and corresponds to the method described in the first aspect of embodiment 1. Fig. 9As shown, the device 900 includes: a processor 910; and a memory 920, connected to the processor 910, for providing the processor 910 with instructions for processing the following processing steps: in response to a user's data privacy configuration operation, the privacy configuration information of the data corresponding to the data privacy configuration operation is uploaded to the chain and stored in the blockchain data corresponding to the blockchain system; determining a computing task corresponding to the data processing instruction input by the user, and generating a first node graph corresponding to the computing task, the first node graph is used to indicate a plurality of computing nodes corresponding to the computing process of the computing task and a connection relationship between the plurality of computing nodes; obtaining privacy configuration information of open data corresponding to each computing node from the blockchain data, wherein the open data is opened by each node of the blockchain system; generating a second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data, wherein the second node graph includes a first subgraph and a second subgraph, wherein the first subgraph includes a plurality of computing nodes that are adjacently configured and need to perform privacy computing, and the second subgraph includes a plurality of computing nodes that are adjacently configured and do not need to perform privacy computing; and obtaining open data corresponding to each subgraph from the blockchain system according to the second node graph, and implementing the computing process corresponding to each subgraph.
[0098] Thus, according to this embodiment, after the user performs a data privacy configuration operation on the open data in the corresponding blockchain node, the blockchain node will implement the operation of uploading the privacy configuration information corresponding to the open data, so that the privacy configuration information corresponding to the open data of each blockchain node will be stored in the blockchain data of each blockchain node. Then, when the user inputs a data processing instruction and the blockchain node determines the computing task corresponding to the data processing specification, a first node graph corresponding to the computing task will be generated. Then, the blockchain node determines the open type of the open data corresponding to each computing node of the first node graph based on the privacy configuration information stored in the blockchain data (that is, confidential data opened in the form of privacy computing, or non-confidential data opened in the form of privacy computing). Then, the blockchain node further combines multiple adjacent computing nodes involving confidential open data into a subgraph (that is, a first subgraph, such as a subgraph). Figure 1 Kazuko Figure 3 ), which combines multiple adjacent computing nodes that do not involve confidential open data into a subgraph (i.e., the second subgraph, such as sub Figure 2 Then, the blockchain node implements the communication with each subgraph according to the open data corresponding to the computing nodes of each subgraph in the second node graph, using a method adapted to the open data (using privacy computing or conventional computing). Figures 1 to 3Corresponding calculation process. Therefore, according to this embodiment, multiple computing nodes that require privacy calculation in the first node graph are merged into one subgraph, or multiple computing nodes that do not require privacy calculation are merged into one subgraph. This enables the blockchain node to merge multiple computing nodes together with a more flexible strategy according to the user's data privacy configuration of open data, and adopts an adaptive calculation method to perform the calculation process of each subgraph. In this way, privacy calculation can be performed only on open data that the user configures as confidential open data, while open data that the user configures as non-confidential open data is calculated using a conventional method, thereby reducing the additional consumption of computing resources caused by privacy calculation. In addition, this embodiment uses a subgraph method to perform merged calculations, thereby greatly improving the efficiency of calculations. This solves the technical problem that the blockchain-based privacy computing technology in the prior art cannot adapt to the user's flexible configuration of data security, resulting in the consumption of computing resources and low computing efficiency.
[0099] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0100] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0101] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0103] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0105] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data opening method based on privacy computing, used for a blockchain node of a blockchain system, characterized in that: include: In response to a data privacy configuration operation of a user, the privacy configuration information of the data corresponding to the data privacy configuration operation is uploaded to the blockchain and stored in the blockchain data corresponding to the blockchain system; Determine a computing task corresponding to a data processing instruction input by a user, and generate a first node graph corresponding to the computing task, wherein the first node graph is used to indicate a plurality of computing nodes corresponding to a computing process of the computing task and a connection relationship between the plurality of computing nodes, and each computing node corresponds to a computing step after the computing task is disassembled; Acquire privacy configuration information of open data respectively corresponding to each computing node from the blockchain data, wherein the open data is open to each node of the blockchain system; Generate a second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data, wherein the second node graph includes a first subgraph and a second subgraph, wherein the first subgraph includes a plurality of adjacently configured computing nodes that need to perform privacy computing, and the second subgraph includes a plurality of adjacently configured computing nodes that do not need to perform privacy computing; as well as According to the second node graph, open data corresponding to each subgraph is obtained from the blockchain system, and a calculation process corresponding to each subgraph is implemented.
2. The method according to claim 1, characterized in that At least one of the first subgraphs and at least one of the second subgraphs are parallel in the second node graph, and the open data corresponding to each subgraph is obtained from the blockchain system according to the second node graph, and the operation of implementing the calculation process corresponding to each subgraph includes: Acquiring the open data of the first subgraph and the second subgraph in parallel; and The calculation process of the first subgraph and the second subgraph are performed in parallel.
3. The method according to claim 2, characterized in that The operation of generating a second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data includes: Determining a third subgraph and a fourth subgraph according to the privacy configuration information corresponding to the open data, wherein the third subgraph includes adjacently arranged computing nodes that perform computing in a first privacy computing manner, and the fourth subgraph includes adjacently arranged computing nodes that perform computing in a second privacy computing manner; and The third subgraph and the fourth subgraph are used as the second subgraph to generate the second node graph.
4. The method according to claim 3, characterized in that The operation of acquiring the open data of the first subgraph and the second subgraph in parallel comprises: acquiring the open data of the second subgraph using a computing implementation program module of a data processing layer disposed below an application layer, and acquiring the data of the first subgraph using a privacy computing module of a privacy computing layer disposed below the data processing layer; and The operation of implementing the calculation process of the first subgraph and the second subgraph in parallel includes: using the calculation implementation program module to implement the calculation process of the second subgraph, and using the privacy calculation module to implement the calculation process of the first subgraph, and transmitting the calculation result of the first subgraph to the calculation implementation program module.
5. The method according to claim 4, characterized in that The operation of acquiring the open data of the first subgraph and the second subgraph in parallel includes: Acquire, by a first privacy computing module corresponding to the first privacy computing method, open data corresponding to the third subgraph; and The open data corresponding to the fourth subgraph is obtained through a second privacy computing module corresponding to the second privacy computing method.
6. The method according to claim 5, characterized in that The operation of implementing the calculation process of the first subgraph and the second subgraph in parallel includes: Performing a calculation process of the third subgraph by the first privacy computing module in the first privacy computing manner, and transmitting the calculation result to the calculation implementation program module; and The calculation process of the fourth subgraph is performed by the second privacy computing module in the second privacy computing manner, and the calculation result is transmitted to the calculation implementation program module.
7. The method according to claim 1, characterized in that The operation of implementing the computing process corresponding to each of the subgraphs includes: merging the computing processes of the computing nodes in the second subgraph, and performing corresponding privacy computing on the merged computing processes.
8. The method according to claim 1, characterized in that The method also includes: using the calculation results of each subgraph as a constant for the operation of the second node graph.
9. A data opening device based on privacy computing, used in a blockchain node of a blockchain system, characterized in that: include: A privacy configuration module, configured to respond to a data privacy configuration operation of a user, upload the privacy configuration information of the data corresponding to the data privacy configuration operation to the blockchain, and store it in the blockchain data corresponding to the blockchain system; A first node graph generating module, used to determine a computing task corresponding to a data processing instruction input by a user, and generate a first node graph corresponding to the computing task, wherein the first node graph is used to indicate a plurality of computing nodes corresponding to a computing process of the computing task and a connection relationship between the plurality of computing nodes, and each computing node corresponds to a computing step after the computing task is disassembled; A privacy configuration information acquisition module, used to acquire privacy configuration information of open data corresponding to each computing node from the blockchain data, wherein the open data is open to each node of the blockchain system; A second node graph generation module, configured to generate a second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data, wherein the second node graph includes a first subgraph and a second subgraph, wherein the first subgraph includes a plurality of adjacently configured computing nodes that need to perform privacy computing, and the second subgraph includes a plurality of adjacently configured computing nodes that do not need to perform privacy computing; as well as A computing module is used to obtain open data corresponding to each subgraph from the blockchain system according to the second node graph, and implement a computing process corresponding to each subgraph.
10. A data opening device based on privacy computing, used in a blockchain node of a blockchain system, characterized in that: include: processor; as well as A memory, connected to the processor, configured to provide the processor with instructions for processing the following processing steps: In response to a data privacy configuration operation of a user, the privacy configuration information of the data corresponding to the data privacy configuration operation is uploaded to the blockchain and stored in the blockchain data corresponding to the blockchain system; Determine a computing task corresponding to a data processing instruction input by a user, and generate a first node graph corresponding to the computing task, wherein the first node graph is used to indicate a plurality of computing nodes corresponding to a computing process of the computing task and a connection relationship between the plurality of computing nodes, and each computing node corresponds to a computing step after the computing task is disassembled; Acquire privacy configuration information of open data respectively corresponding to each computing node from the blockchain data, wherein the open data is open to each node of the blockchain system; Generate a second node graph corresponding to the first node graph according to the privacy configuration information corresponding to the open data, wherein the second node graph includes a first subgraph and a second subgraph, wherein the first subgraph includes a plurality of adjacently configured computing nodes that need to perform privacy computing, and the second subgraph includes a plurality of adjacently configured computing nodes that do not need to perform privacy computing; as well as According to the second node graph, open data corresponding to each subgraph is obtained from the blockchain system, and a calculation process corresponding to each subgraph is implemented.
Citation Information
Patent Citations
Data element circulation system based on DMZ network architecture
CN117914627A
Data element transaction circulation system and method based on secure and trusted environment
CN118094568A
Decentralized multi-party security data processing method and device and storage medium
CN110298190A
Transaction method and device based on blockchain and multi-party security computing, and storage medium
CN110335037A
