Multi-party privacy computing communication system and method
By introducing communication protocol selectors and gateways into the privacy computing communication system, multiple communication protocols are supported, which solves the problem of non-interoperable protocols in privacy computing communication, improves communication efficiency and compatibility, simplifies the communication process, and reduces resource consumption. .
Patent Information
- Application Number
- CN202410656284.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-05-24
AI Technical Summary
In the existing privacy computing communication system, the protocols of the parties are not interoperable, resulting in low communication efficiency and concurrency. In addition, due to differences in code implementation, there are compatibility issues in the communication process, which cannot effectively solve the security and efficiency of private data transmission. Require.
Provides a multi-party privacy computing communication system. The privacy computing initiator deploys a communication protocol selector locally, selects a matching communication protocol framework, encodes and decodes task data, and routes and forwards it through the gateway. It supports multiple communication protocol frameworks, such as RPC and gRPC. , Dubbo and Thrift, realize communication protocol selection with any participant, and reduce the communication maintenance workload of the initiator and participants.
It simplifies the communication between privacy computing initiators and participants, reduces additional workload and resource consumption, allowing participants and initiators to only focus on algorithm implementation, avoiding the need to maintain communication protocols, and improving communication efficiency and compatibility. sex.
Smart Images

Figure CN118250350B
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of communication technology, and in particular, to a multi-party privacy computing communication system and method. Background Art
[0002] With the development of privacy computing technology, various application scenarios have put forward higher requirements for the transmission security, stability, protocol scalability, and transmission efficiency between privacy data. In the prior art, the communication module in privacy computing needs to actively communicate with the gateway through sockets, customize the data structure, and require a unified protocol between multiple participants. It needs to implement the other party's protocol, implement retry and packet loss strategies, and mainly establish connections through the ip+port method. Then, multiple participants communicate with each other in pairs, and execute algorithm tasks in sequence. However, this calculation process will have the problem of incompatibility and non-intercommunication of the protocols of the various communication parties, and due to the differences in the code implementation of each party, it will lead to low communication efficiency and concurrency. Therefore, an effective solution is urgently needed to solve the above problems. Summary of the invention
[0003] In view of this, the embodiments of this specification provide a multi-party privacy computing communication system. One or more embodiments of this specification also involve a multi-party privacy computing communication method, a computing device, a computer-readable storage medium, and a computer program product to solve the technical defects existing in the prior art.
[0004] According to a first aspect of an embodiment of this specification, a multi-party privacy computing communication system is provided, including a privacy computing initiator and a plurality of candidate privacy computing participants, wherein the privacy computing initiator locally deploys a communication protocol selector;
[0005] The privacy computing initiator is configured to obtain task data corresponding to the privacy computing task, and select a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants; use the communication protocol selector to determine the communication protocol framework matched by the privacy computing participant; call the communication protocol framework to encode the task data into target task data, and send it to the privacy computing participant;
[0006] The privacy computing participant is configured to call the communication protocol framework to decode the target task data into the task data; and use the locally deployed privacy computing task engine to process the task data.
[0007] Optionally, the privacy computing initiator is further configured to parse the privacy computing task to obtain participant information; select a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants according to the participant information; and perform a communication protocol consistency check on each privacy computing participant when the number of participants among the privacy computing participants is greater than a preset number threshold; if the check fails, use the communication protocol selector to determine the communication protocol framework matched by each privacy computing participant; wherein the communication protocol framework matched by each privacy computing participant is different.
[0008] Optionally, the privacy computing initiator is also configured to communicate with the privacy computing participant using a universal handshake protocol using the communication protocol selector, wherein the universal handshake protocol carries the supported protocol type information of the privacy computing initiator; determine the target protocol type that matches both the privacy computing initiator and the privacy computing participant based on the communication result; and use the communication protocol selector to select a communication protocol framework for the privacy computing participant according to the target protocol type.
[0009] Optionally, the multi-party privacy computing communication system further includes a gateway;
[0010] The gateway is configured to route and forward the privacy computing initiator and the multiple candidate privacy computing participants according to the pre-domain name registration strategy, and to build a domain name service interface; wherein the domain name service interface is used for access by the multiple candidate privacy computing participants.
[0011] Optionally, the privacy computing participant is further configured to receive the target task data and send the target task data to the gateway;
[0012] The gateway is also configured to forward the target task data to the communication protocol framework, which decodes the target task data, obtains the task data and feeds it back to the privacy computing task engine locally deployed by the privacy computing participant.
[0013] Optionally, the privacy computing participant is also configured to, when it is determined based on the processing result of the task data that the privacy computing task has not been completed, use the privacy computing participant as the privacy computing initiator, and determine the associated task data based on the processing result of the task data, use the associated task data as the task data, and execute the step of selecting a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants.
[0014] Optionally, the communication protocol selector includes at least one of the following communication protocol frameworks:
[0015] Remote procedure call protocol framework, cross-language protocol framework, microservice protocol framework, and serialization protocol framework.
[0016] According to a second aspect of an embodiment of this specification, a multi-party privacy computing communication method is provided, which is applied to a multi-party privacy computing communication system, wherein the multi-party privacy computing communication system includes a privacy computing initiator and a plurality of candidate privacy computing participants, wherein the privacy computing initiator locally deploys a communication protocol selector;
[0017] The privacy computing initiator obtains task data corresponding to the privacy computing task, and selects a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants; uses the communication protocol selector to determine the communication protocol framework that matches the privacy computing participant; calls the communication protocol framework to encode the task data into target task data, and sends it to the privacy computing participant;
[0018] The privacy computing participant calls the communication protocol framework to decode the target task data into the task data; and uses the locally deployed privacy computing task engine to process the task data.
[0019] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0020] Memory and processor;
[0021] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above-mentioned multi-party privacy computing communication method are implemented.
[0022] According to the fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned multi-party privacy computing communication method are implemented.
[0023] According to the fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions, which implement the steps of the above-mentioned multi-party privacy computing communication method when executed by a processor.
[0024] The multi-party privacy computing communication system provided in this embodiment can simplify the communication between the privacy computing initiator and the privacy computing participants and reduce the extra workload. The privacy computing initiator can obtain the task data corresponding to the privacy computing task, and can select the privacy computing participant associated with the privacy computing task from multiple candidate privacy computing participants. On this basis, the communication protocol selector can be used to determine the communication protocol framework that matches the privacy computing participant. In other words, the communication protocol selection can support the communication protocol selection with any privacy computing participant, and then the communication protocol framework can be called to encode the task data into target task data and send it to the privacy computing participant. After the privacy computing participant receives the target task data submitted by the privacy computing initiator, the privacy computing participant can call the communication protocol framework to decode the target task data into task data. After that, the task data can be processed using the locally deployed privacy computing task engine. In this way, when performing privacy computing communication, the participants and the initiator can only focus on the algorithm implementation itself without the need to maintain the communication protocol, thereby reducing the workload and resource effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a schematic diagram of a multi-party privacy computing communication system provided by an embodiment of this specification;
[0026] Figure 2 It is a structural diagram of a multi-party privacy computing communication system provided by an embodiment of this specification;
[0027] Figure 3 is a flowchart of a multi-party privacy computing communication method provided by an embodiment of this specification;
[0028] Figure 4 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0029] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0030] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0031] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0032] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0033] First, the terms involved in one or more embodiments of this specification are explained.
[0034] The RPC (Remote Procedure Call) framework is a software framework that allows developers to call methods on remote servers just like calling local methods. The RPC framework is often used to implement communication between distributed systems, where different services or components may be deployed on different machines or containers.
[0035] gRPC: Based on HTTP / 2 design, it supports multiple programming languages. It uses Protocol Buffers as the interface definition language (IDL), allowing you to define service interfaces and data structure types, and then generate client and server code for you. The main features of gRPC include high performance, cross-language, and scalability.
[0036] Dubbo: Apache Dubbo is a high-performance Java RPC framework that provides rich features such as service governance, load balancing, and fault tolerance. Dubbo supports multiple protocols, including Dubbo, RMI, Hessian, HTTP, WebService, Thrift, and Restful.
[0037] Thrift: It is a cross-language service development framework with features such as scalability, cross-language support, and rich data types. It uses Thrift IDL to describe service interfaces and data types, and then can generate code in various programming languages.
[0038] In this specification, a multi-party privacy computing communication system is provided. This specification also involves a multi-party privacy computing communication method, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.
[0039] See also Figure 1 As shown in the schematic diagram, the multi-party privacy computing communication system provided by this embodiment can simplify the communication between the privacy computing initiator and the privacy computing participants and reduce the extra workload. The privacy computing initiator can obtain the task data corresponding to the privacy computing task, and can select the privacy computing participant associated with the privacy computing task from multiple candidate privacy computing participants. On this basis, the communication protocol selector can be used to determine the communication protocol framework that matches the privacy computing participant. In other words, the communication protocol selection can support the communication protocol selection with any privacy computing participant, and then the communication protocol framework can be called to encode the task data into the target task data and send it to the privacy computing participant. After the privacy computing participant receives the target task data submitted by the privacy computing initiator, the privacy computing participant can call the communication protocol framework to decode the target task data into task data. After that, the task data can be processed using the locally deployed privacy computing task engine. In this way, when performing privacy computing communication, the participants and the initiator can only focus on the algorithm implementation itself without the need to maintain the communication protocol, thereby reducing the workload and resource effect.
[0040] See also Figure 2 , Figure 2 A schematic diagram of the structure of a multi-party privacy computing communication system provided according to an embodiment of the present specification is shown. The multi-party privacy computing communication system 200 includes a privacy computing initiator 210 and multiple candidate privacy computing participants 220, wherein the privacy computing initiator 210 locally deploys a communication protocol selector;
[0041] The privacy computing initiator 210 is configured to obtain task data corresponding to the privacy computing task, and select a privacy computing participant 222 associated with the privacy computing task from the multiple candidate privacy computing participants; use the communication protocol selector to determine the communication protocol framework matched by the privacy computing participant; call the communication protocol framework to encode the task data into target task data, and send it to the privacy computing participant;
[0042] The privacy computing participant 222 is configured to call the communication protocol framework to decode the target task data into the task data; and use the locally deployed privacy computing task engine to process the task data.
[0043] The privacy computing task specifically refers to a task that requires data privacy computing during the task data processing process, such as a data privacy computing task in a federated training model in a multi-party federated computing scenario, which is used to avoid data leakage by performing privacy computing on the data transmitted between each other during the multi-party joint training model. The multi-party federated training model can be a text processing model, an image processing model, a product recommendation model, etc. This embodiment does not make any limitation here.
[0044] Correspondingly, task data specifically refers to data that needs to be transmitted between privacy computing participants in a privacy computing task, and the task data is private secret data relative to the holder, which can be user data, transaction data, etc. held by the holder. The privacy data in different scenarios is different, and this embodiment does not make any restrictions here. Correspondingly, the privacy computing participant specifically refers to the candidate privacy computing participant that has communication needs with the privacy computing initiator in this execution of the privacy computing task. For example, in the federated model training scenario, Party A holds user deposit data, Party B holds user shopping data, and Party C holds user identity attribute data. When Party A has a prediction model for training and predicting the probability of a user opening a credit card, it is necessary to combine the user shopping data held by Party B and the user identity attribute data held by Party C to complete the model training. The data held by each party is private data relative to itself, so privacy computing is required. In this scenario, Party A can be understood as the privacy computing initiator, and Party B and Party C can be understood as privacy computing participants.
[0045] Correspondingly, the communication protocol selector specifically refers to the protocol selector locally deployed by the privacy computing initiator, which encapsulates a large number of different types of communication protocols. When there is a need to communicate with the privacy computing participants, the communication protocol framework that matches the privacy computing participants can be selected for use, thereby reducing the operation of the privacy computing initiator to maintain the communication protocol separately. Among them, the communication protocol selector can support gRPC communication protocol, Dubbo communication protocol, Thrift communication protocol, Finagle communication protocol, etc. This embodiment does not make any restrictions here. Correspondingly, the communication protocol framework specifically refers to the communication protocol that the privacy computing participants and the privacy computing initiator determine to be used through the protocol at the current moment. The target task data specifically refers to the task data obtained after the task data is processed by the protocol encoding using the communication protocol framework. It should be noted that when the privacy computing initiator needs to communicate with multiple privacy computing participants, the same or different communication protocol frameworks can be selected for different privacy computing participants through the communication protocol selector, thereby supporting the initiator to communicate with the participants concurrently, and avoiding the mandatory requirement for a unified communication protocol, which affects the data transmission rate.
[0046] Correspondingly, the privacy computing engine specifically refers to a computing engine with encryption and decryption processing capabilities deployed locally by the privacy computing participants, and the privacy computing initiator can also deploy its own computing engine to achieve that when executing privacy computing tasks, a separate computing engine completes data encryption and decryption processing, while communication and data transmission are completed by the gateway and communication protocol selector, thereby achieving decoupling of privacy computing and communication, improving the efficiency of privacy computing while ensuring effective and fast communication.
[0047] It should be noted that the privacy computing initiator can be any participant among multiple candidate privacy computing participants who has privacy computing needs, that is, the participant with privacy computing initiation needs can serve as the privacy computing issuance initiator, and the participant who needs to cooperate with the privacy computing initiator to perform privacy computing processing is the participant corresponding to the associated privacy computing task.
[0048] Based on this, in order to simplify the communication between the privacy computing initiator and the privacy computing participants and reduce the extra workload, the privacy computing initiator can obtain the task data corresponding to the privacy computing task, and at the same time select the privacy computing participant associated with the privacy computing task from multiple candidate privacy computing participants; on this basis, the communication protocol selector can be used to determine the communication protocol framework that matches the privacy computing participant; that is, the communication protocol selection can support the communication protocol selection between any privacy computing participant, and then the communication protocol framework can be called to encode the task data into target task data and send it to the privacy computing participant; after the privacy computing participant receives the target task data submitted by the privacy computing initiator, the privacy computing participant can call the communication protocol framework to decode the target task data into task data; thereafter, the task data can be processed using the locally deployed privacy computing task engine.
[0049] That is to say, the multi-party privacy computing communication system provided in this embodiment can be based on the RPC communication framework. By cooperating with the domain name registration service of Envoy, the communication process can be simplified, and a unified sending structure can be encapsulated in the privacy computing participants and the privacy computing initiators, so that the privacy computing algorithm only needs to focus on the algorithm implementation itself, without worrying about the communication logic. In addition, a communication protocol selector is added, so that the algorithm developer does not need to worry about the specific communication protocol of the other end, reducing the workload.
[0050] In one or more embodiments of the present embodiment, the privacy computing initiator may first perform a communication protocol consistency check when selecting a communication protocol framework. The privacy computing initiator is also configured to parse the privacy computing task to obtain participant information; select a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants according to the participant information; perform a communication protocol consistency check on each privacy computing participant when the number of participants among the privacy computing participants is greater than a preset number threshold; if the check fails, use the communication protocol selector to determine the communication protocol framework matched by each privacy computing participant; wherein the communication protocol framework matched by each privacy computing participant is different.
[0051] Specifically, the participant information refers to the participant identification information associated with the privacy computing task, which is used to select the privacy computing participant associated with the task from multiple candidate privacy computing participants. Based on this, after triggering the privacy computing task, the privacy computing initiator can parse the privacy computing task and obtain the participant information; thereafter, the privacy computing participant associated with the privacy computing task can be selected from multiple candidate privacy computing participants according to the participant information; thereafter, the number of privacy computing participants can be detected. If the number of participants of the privacy computing participants is greater than the preset number threshold, it means that there may be a need to use different communication protocols for different privacy computing participants to communicate, so the communication protocol consistency detection can be performed on each privacy computing participant; if the detection fails, it means that different communication protocols need to be used to communicate with the privacy computing participants, and at this time, the communication protocol selector can be used to determine the communication protocol framework matched by each privacy computing participant; wherein, the communication protocol framework matched by each privacy computing participant is different. If the detection passes, it means that the communication protocols of the privacy computing participants involved are consistent, and at this time, the consistent communication protocol can be directly used to communicate with each privacy computing participant.
[0052] In one or more embodiments of this embodiment, the privacy computing initiator is also configured to use the communication protocol selector to communicate with the privacy computing participant using a universal handshake protocol, wherein the universal handshake protocol carries the supported protocol type information of the privacy computing initiator; determine the target protocol type that matches both the privacy computing initiator and the privacy computing participant based on the communication result; and use the communication protocol selector to select a communication protocol framework for the privacy computing participant according to the target protocol type.
[0053] Specifically, the general handshake protocol refers to the protocol used when the privacy computing participants and the privacy computing initiator directly determine the communication protocol. The protocol carries the protocol types supported by the privacy computing initiator and the privacy computing participants. The communication using this protocol can support the communication protocol framework required for the negotiation between the privacy computing initiator and the privacy computing participants. Correspondingly, the target protocol type is the protocol type determined after negotiation between the privacy computing initiator and the privacy computing participants.
[0054] Based on this, the privacy computing initiator can use the communication protocol selector to communicate with the privacy computing participants using the general handshake protocol, and the general handshake protocol carries the supported protocol type information of the privacy computing initiator; in this case, the two can determine the target protocol type that matches both the privacy computing initiator and the privacy computing participant based on the communication results; thereafter, the communication protocol selector can be used to select the communication protocol framework for the privacy computing participant according to the target protocol type for subsequent use.
[0055] That is to say, when starting a privacy computing task, there may be a need to support different communication protocols for multiple privacy computing participants, so a communication protocol selector can be provided to the privacy computing service on the communication side. This selector is used to support multiple rpc communication protocol frameworks (including mainstream grpc, broc, thrift, etc.). The selector's choice of protocol is based on a general handshake protocol, which carries the supported protocol types of both communicating parties. After negotiating the specific protocol, each communication framework performs protocol encoding on the task data, or forwards it using native sockets.
[0056] In one or more embodiments of this embodiment, the multi-party privacy computing communication system also includes a gateway; the gateway is configured to route and forward the privacy computing initiator and the multiple candidate privacy computing participants according to the pre-domain name registration policy, and to build a domain name service interface; wherein the domain name service interface is used for access by the multiple candidate privacy computing participants.
[0057] Specifically, the domain name registration strategy refers to the strategy for routing and forwarding internal backend services. Correspondingly, the domain name service interface refers to the unified domain name service interface provided to privacy computing participants, which can support privacy computing participants to access.
[0058] In one or more embodiments of this embodiment, the privacy computing participant is also configured to receive the target task data and send the target task data to the gateway; the gateway is also configured to forward the target task data to the communication protocol framework, and the communication protocol framework decodes the target task data, obtains the task data and feeds it back to the privacy computing task engine locally deployed by the privacy computing participant.
[0059] In other words, the gateway routes and forwards internal backend services through domain name registration, and provides a unified domain name service externally for access by other second privacy communication parties. After receiving the task data, the privacy computing participants forward it to the corresponding protocol framework through the gateway, and then each framework decodes the data and returns it to the privacy computing task engine of each privacy computing participant.
[0060] In one or more embodiments of the present embodiment, the privacy computing participant is also configured to, when it is determined based on the processing result of the task data that the privacy computing task has not been completed, use the privacy computing participant as the privacy computing initiator, determine the associated task data based on the processing result of the task data, use the associated task data as the task data, and execute the step of selecting a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants.
[0061] In addition, considering that privacy computing needs to continue when the task is not completed, the current participant in the privacy computing can be used as the privacy computing initiator, and the above process can be repeated until the task is completed.
[0062] For example, Party A holds user deposit data, Party B holds user shopping data, and Party C holds user identity attribute data. When Party A has a prediction model for training and predicting the probability of a user opening a credit card, it is necessary to combine the user shopping data held by Party B and the user identity attribute data held by Party C to complete the model training. At this time, Party A will trigger the privacy computing task. Party A can negotiate the communication protocol type with Party B and Party C based on a common handshake protocol through a locally deployed communication protocol selector, and the protocol carries the protocol types supported by each other. At this time, it is determined that Party B supports gRPC communication and Party C supports Thrift communication. On this basis, Party A can use the gRPC communication framework to protocol encode the user deposit data and send it to Party B; at the same time, use the Thrift communication framework to protocol encode the user deposit data and send it to Party C.
[0063] On this basis, after receiving the user deposit data, Party B and Party C can forward it to the corresponding communication protocol framework through the gateway, and then each framework will decode the data, so that the decoded user deposit data can be sent to the privacy computing task engines corresponding to Party B and Party C respectively; at this time, Party B can combine the user shopping data and user deposit data to train the prediction model, and feed back the model parameters to Party A after the training is completed; at the same time, Party C will also combine the user identity attribute data and user deposit data to train the prediction model, and feed back the model parameters to Party A after the training is completed. At this time, Party A can aggregate the model parameters corresponding to Party B and Party C to adjust the local model, and repeat the above process until the target prediction model that meets the training stop condition is obtained. The target prediction model can support the input of user information and output information on the probability of users opening a credit card, so that in the application stage, this information can be used to determine whether to provide credit card opening services to users, avoid disturbing users with low interest, and at the same time improve the reach rate of users with high interest.
[0064] In practical applications, the communication protocol selector may include at least one of the following communication protocol frameworks: remote procedure call protocol framework, cross-language protocol framework, microservice protocol framework, and serialization protocol framework. In addition, when there are multiple participants, privacy computing communication can be performed for participants of different communication protocols at the same time.
[0065] The multi-party privacy computing communication system provided in this embodiment can simplify the communication between the privacy computing initiator and the privacy computing participants and reduce the extra workload. The privacy computing initiator can obtain the task data corresponding to the privacy computing task, and can select the privacy computing participant associated with the privacy computing task from multiple candidate privacy computing participants. On this basis, the communication protocol selector can be used to determine the communication protocol framework that matches the privacy computing participant. In other words, the communication protocol selection can support the communication protocol selection with any privacy computing participant, and then the communication protocol framework can be called to encode the task data into target task data and send it to the privacy computing participant. After the privacy computing participant receives the target task data submitted by the privacy computing initiator, the privacy computing participant can call the communication protocol framework to decode the target task data into task data. After that, the task data can be processed using the locally deployed privacy computing task engine. In this way, when performing privacy computing communication, the participants and the initiator can only focus on the algorithm implementation itself without the need to maintain the communication protocol, thereby reducing the workload and resource effect.
[0066] Corresponding to the above method embodiment, this specification also provides a multi-party privacy computing communication method embodiment, Figure 3 FIG. 1 is a flowchart of a multi-party privacy computing communication method provided by an embodiment of this specification. Figure 3 As shown, the method is applied to a multi-party privacy computing communication system, which includes a privacy computing initiator and multiple candidate privacy computing participants, wherein the privacy computing initiator locally deploys a communication protocol selector;
[0067] Step S302: the privacy computing initiator obtains task data corresponding to the privacy computing task, and selects a privacy computing participant associated with the privacy computing task from among the multiple candidate privacy computing participants; uses the communication protocol selector to determine the communication protocol framework that matches the privacy computing participant; calls the communication protocol framework to encode the task data into target task data, and sends it to the privacy computing participant;
[0068] Step S304: The privacy computing participant calls the communication protocol framework to decode the target task data into the task data; and uses the locally deployed privacy computing task engine to process the task data.
[0069] In an optional embodiment, the privacy computing initiator parses the privacy computing task to obtain participant information; selects a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants according to the participant information; performs a communication protocol consistency check on each privacy computing participant when the number of participants among the privacy computing participants is greater than a preset number threshold; if the check fails, uses the communication protocol selector to determine the communication protocol framework matched by each privacy computing participant; wherein the communication protocol framework matched by each privacy computing participant is different.
[0070] In an optional embodiment, the privacy computing initiator uses the communication protocol selector to communicate with the privacy computing participant using a universal handshake protocol, wherein the universal handshake protocol carries the supported protocol type information of the privacy computing initiator; determines the target protocol type that matches both the privacy computing initiator and the privacy computing participant based on the communication result; and uses the communication protocol selector to select a communication protocol framework for the privacy computing participant according to the target protocol type.
[0071] In an optional embodiment, the multi-party privacy computing communication system also includes a gateway; the gateway routes and forwards the privacy computing initiator and the multiple candidate privacy computing participants according to the pre-domain name registration strategy, and constructs a domain name service interface; wherein the domain name service interface is used for access by the multiple candidate privacy computing participants.
[0072] In an optional embodiment, the privacy computing participant receives the target task data and sends the target task data to the gateway; the gateway forwards the target task data to the communication protocol framework, and the communication protocol framework decodes the target task data, obtains the task data and feeds it back to the privacy computing task engine locally deployed by the privacy computing participant.
[0073] In an optional embodiment, when the privacy computing participant determines that the privacy computing task has not been completed based on the processing result of the task data, the privacy computing participant is used as the privacy computing initiator, and the associated task data is determined based on the processing result of the task data, the associated task data is used as the task data, and the step of selecting a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants is executed.
[0074] In an optional embodiment, the communication protocol selector includes at least one of the following communication protocol frameworks: a remote procedure call protocol framework, a cross-language protocol framework, a microservice protocol framework, and a serialization protocol framework.
[0075] The multi-party privacy computing communication method provided in this embodiment can simplify the communication between the privacy computing initiator and the privacy computing participants and reduce the extra workload. The privacy computing initiator can obtain the task data corresponding to the privacy computing task, and can select the privacy computing participant associated with the privacy computing task from multiple candidate privacy computing participants. On this basis, the communication protocol selector can be used to determine the communication protocol framework that matches the privacy computing participant. In other words, the communication protocol selection can support the communication protocol selection with any privacy computing participant, and then the communication protocol framework can be called to encode the task data into target task data and send it to the privacy computing participant. After the privacy computing participant receives the target task data submitted by the privacy computing initiator, the privacy computing participant can call the communication protocol framework to decode the target task data into task data. After that, the task data can be processed using the locally deployed privacy computing task engine. In this way, when performing privacy computing communication, the participants and the initiator can only focus on the algorithm implementation itself without the need to maintain the communication protocol, thereby reducing the workload and resource effect.
[0076] The above is a schematic scheme of a multi-party privacy computing communication method of this embodiment. It should be noted that the technical scheme of the multi-party privacy computing communication method and the technical scheme of the multi-party privacy computing communication system mentioned above belong to the same concept. For details not described in detail in the technical scheme of the multi-party privacy computing communication method, please refer to the description of the technical scheme of the multi-party privacy computing communication system mentioned above.
[0077] Figure 4 The block diagram of a computing device 400 according to one embodiment of the present specification is shown. The components of the computing device 400 include but are not limited to a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and the database 450 is used to store data.
[0078] The computing device 400 also includes an access device 440 that enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).
[0079] In one embodiment of the present specification, the above components of the computing device 400 and Figure 4 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 4 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0080] The computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 400 may also be a mobile or stationary server.
[0081] Among them, the processor 420 is used to execute the following computer-executable instructions, which, when executed by the processor, implement the steps of the above-mentioned multi-party privacy computing communication method.
[0082] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the multi-party privacy computing communication method mentioned above belong to the same concept. For details not described in detail in the technical scheme of the computing device, please refer to the description of the technical scheme of the multi-party privacy computing communication method mentioned above.
[0083] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned multi-party privacy computing communication method.
[0084] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the multi-party privacy computing communication method mentioned above belong to the same concept. For details not described in detail in the technical scheme of the storage medium, please refer to the description of the technical scheme of the multi-party privacy computing communication method mentioned above.
[0085] An embodiment of the present specification also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps of the above-mentioned multi-party privacy computing communication method.
[0086] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the multi-party privacy computing communication method mentioned above belong to the same concept. For details not described in detail in the technical scheme of the computer program product, please refer to the description of the technical scheme of the multi-party privacy computing communication method mentioned above.
[0087] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0088] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0089] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0090] In the above embodiments, 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.
[0091] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can understand and use this specification well.
Claims
1. A multi-party privacy computing communication system, characterized in that: The method comprises a privacy computing initiator and a plurality of candidate privacy computing participants, wherein the privacy computing initiator locally deploys a communication protocol selector; The privacy computing initiator is configured to obtain task data corresponding to a privacy computing task, wherein the privacy computing task is a data privacy computing task associated with a federated training model in a multi-party federated computing scenario; parse the privacy computing task to obtain participant information; select a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants according to the participant information; perform a communication protocol consistency test on each privacy computing participant when the number of participants in the privacy computing participant is greater than a preset number threshold; if the test fails, use the communication protocol selector to communicate with each privacy computing participant using a general handshake protocol, wherein the general handshake protocol carries the supported protocol type information of the privacy computing initiator; determine the target protocol type matched by the privacy computing initiator and each privacy computing participant according to the communication result; use the communication protocol selector to select a communication protocol framework for each privacy computing participant according to the target protocol type; wherein the communication protocol framework matched by each privacy computing participant is different; call the communication protocol framework to encode the task data into target task data, and send it to the privacy computing participant; The privacy computing participant is configured to call the communication protocol framework to decode the target task data into the task data; use the locally deployed privacy computing task engine to process the task data; wherein the privacy computing task engine is a computing engine that performs encryption and decryption processing on the task data; when it is determined according to the processing result of the task data that the privacy computing task has not been completed, the privacy computing participant is used as the privacy computing initiator, and the associated task data is determined according to the processing result of the task data, the associated task data is used as the task data, and the step of selecting a privacy computing participant associated with the privacy computing task from the multiple candidate privacy computing participants is executed.
2. The multi-party privacy computing communication system according to claim 1, characterized in that: The multi-party privacy computing communication system also includes a gateway; The gateway is configured to route and forward the privacy computing initiator and the multiple candidate privacy computing participants according to the pre-domain name registration strategy, and to build a domain name service interface; wherein the domain name service interface is used for access by the multiple candidate privacy computing participants.
3. The multi-party privacy computing communication system according to claim 2, characterized in that: The privacy computing participant is further configured to receive the target task data and send the target task data to the gateway; The gateway is also configured to forward the target task data to the communication protocol framework, which decodes the target task data, obtains the task data and feeds it back to the privacy computing task engine locally deployed by the privacy computing participant.
4. The multi-party privacy computing communication system according to any one of claims 1 to 3, characterized in that: The communication protocol selector includes at least one of the following communication protocol frameworks: Remote procedure call protocol framework, cross-language protocol framework, microservice protocol framework, and serialization protocol framework.
5. A multi-party privacy computing communication method, characterized in that: Applied to a multi-party privacy computing communication system, the multi-party privacy computing communication system includes a privacy computing initiator and multiple candidate privacy computing participants, wherein the privacy computing initiator locally deploys a communication protocol selector; The privacy computing initiator obtains task data corresponding to a privacy computing task, wherein the privacy computing task is a data privacy computing task associated with a federated training model in a multi-party federated computing scenario; parses the privacy computing task to obtain participant information; selects a privacy computing participant associated with the privacy computing task from among the multiple candidate privacy computing participants according to the participant information; performs a communication protocol consistency check on each privacy computing participant when the number of participants in the privacy computing participant is greater than a preset number threshold; if the check fails, uses the communication protocol selector to communicate with each privacy computing participant using a general handshake protocol, wherein the general handshake protocol carries the supported protocol type information of the privacy computing initiator; determines the target protocol type matched by the privacy computing initiator and each privacy computing participant according to the communication result; uses the communication protocol selector to select a communication protocol framework for each privacy computing participant according to the target protocol type; wherein the communication protocol framework matched by each privacy computing participant is different; calls the communication protocol framework to encode the task data into target task data, and sends it to the privacy computing participant; The privacy computing participant calls the communication protocol framework to decode the target task data into the task data; and processes the task data using a locally deployed privacy computing task engine; wherein the privacy computing task engine is a computing engine that performs encryption and decryption processing on the task data; and when it is determined based on the processing result of the task data that the privacy computing task has not been completed, the privacy computing participant is used as the privacy computing initiator, and the associated task data is determined based on the processing result of the task data, and the associated task data is used as the task data, and the step of selecting a privacy computing participant associated with the privacy computing task from among the multiple candidate privacy computing participants is executed.
6. A computing device, characterized in that include: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method according to claim 5 are implemented.
7. A computer-readable storage medium, characterized in that: It stores computer executable instructions, which implement the steps of the method according to claim 5 when executed by a processor.
8. A computer program product, characterized in that The method comprises a computer program or an instruction, which implements the steps of the method according to claim 5 when executed by a processor.
