Data aggregation method, device, electronic device and storage medium
By performing privacy protection and obfuscation in the multi-party secure computing system, and verifying the relationship of transmitted data at the central node, the problem of low credibility of data processing results in multi-party secure computing is solved, and high accuracy and accuracy of data aggregation results are achieved. Security.
Patent Information
- Application Number
- CN202211028258.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-08-25
AI Technical Summary
In multi-party secure computation, semi-honest and malicious participants may leak data, resulting in lower credibility of data processing results.
In the multi-party secure computing system, each participant performs privacy protection, determines privacy protection parameters and obfuscation processing results, and broadcasts encrypted information to the central node. The central node verifies the relationship between the transmitted data to recover the target data and ensures the data aggregation results. accuracy and credibility.
It effectively improves the credibility and accuracy of data aggregation results, prevents data modification during transmission, and enhances the security of data processing.
Smart Images

Figure CN115378724B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of energy technology, and in particular to a data aggregation method, device, electronic device and storage medium. Background Art
[0002] Secure Multi-Party Computation (MPC) is based on cryptographic principles to directly perform calculations on private data input by multiple participants without a trusted third party, ensuring the security of the private data of multiple participants. Currently, when performing secure multi-party computation, there are semi-honest participants and malicious participants. Semi-honest participants and malicious participants will leak data in secure multi-party computation to attackers, or even conduct malicious attacks, bringing security challenges and reducing the credibility of data processing results. Summary of the invention
[0003] In view of this, the embodiments of the present disclosure provide a data aggregation method, device, electronic device and computer-readable storage medium to solve the problem of low credibility of data processing results of multi-party secure computing in the prior art.
[0004] In a first aspect of an embodiment of the present disclosure, a data aggregation method is provided, which is applied to a multi-party secure computing system, wherein the multi-party secure computing system includes participants and a central node, and the method includes:
[0005] Each participant performs privacy protection on other participants and determines the privacy protection result corresponding to the privacy protection parameter; and based on the central node, the encrypted information of the privacy protection intermediate result is broadcast to other participants; the privacy protection result includes the privacy protection intermediate result;
[0006] Each participant performs obfuscation processing on the private data based on the privacy protection parameters and the public key information of other participants, determines the obfuscation processing result, and transmits the obfuscation processing result to the central node; the central node determines the participant list and broadcasts the participant list;
[0007] Each participant determines the transmission data to be transmitted to the central node based on the participant list and encrypted information, and the transmission data carries the privacy-preserving intermediate results. When the central node determines that the relationship between the privacy-preserving intermediate results carried by each received transmission data meets the preset relationship conditions, the central node recovers the target data based on the transmission data, and determines the data aggregation result based on the target data and the obfuscation processing result.
[0008] According to a second aspect of an embodiment of the present disclosure, a data aggregation device is provided, which is arranged in a multi-party secure computing system, wherein the multi-party secure computing system includes participants and a central node, including:
[0009] The secret sharing module is configured so that each participant performs privacy protection on other participants and determines the privacy protection result corresponding to the privacy protection parameter; and based on the central node, the encrypted information of the privacy protection result is broadcast to other participants; the privacy protection result includes the privacy protection intermediate result;
[0010] The obfuscation processing module is configured to perform obfuscation processing on the private data of each participant based on the privacy protection parameters and the public key information of other participants, determine the obfuscation processing result, and transmit the obfuscation processing result to the central node; the central node determines the participant list and broadcasts the participant list;
[0011] The data verification module is configured so that each participant determines the transmission data to be transmitted to the central node based on the participant list and encrypted information, and the transmission data carries the privacy-preserving intermediate results; when the central node determines that the relationship between the privacy-preserving intermediate results carried by each received transmission data meets the preset relationship conditions, the central node recovers the target data based on the transmission data, and determines the data aggregation result based on the target data and the obfuscation processing result.
[0012] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0013] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0014] Compared with the prior art, the disclosed embodiment has the following beneficial effects: when each participant performs privacy protection on other participants, a privacy protection parameter is determined, and a privacy protection result corresponding to the privacy protection parameter is determined, the privacy protection result is encrypted, and encrypted information is obtained, and the encrypted information is broadcast to other participants based on the central node. Each participant performs obfuscation processing on the private data according to the privacy protection parameter and the public key information of other participants, determines the obfuscation processing result, and transmits the obfuscation processing result to the central node. The central node receives the obfuscation processing result to determine the participant list, and broadcasts the participant list. After receiving the participant list, each participant determines the transmission data transmitted to the central node according to the participant list and the encrypted information. The transmission data can not only be used for data recovery, but also carries the privacy protection intermediate result. The central node verifies the privacy protection intermediate result carried by each received transmission data. When the relationship between each privacy protection intermediate result meets the preset relationship condition, the target data is further recovered based on the transmission data, and the data aggregation result is determined based on the target data and the obfuscation processing result. In the technical solution provided in the present disclosure, privacy-preserving intermediate results and preset relationship conditions are used for effective verification to avoid the possibility of data being modified during transmission, thereby effectively improving the credibility and accuracy of data aggregation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 is a flow chart of a data aggregation method provided by an embodiment of the present disclosure;
[0017] Figure 2 is a structural schematic diagram of a data aggregation device provided by an embodiment of the present disclosure;
[0018] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.
[0020] A data aggregation method and device according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0021] Figure 1 1 is a flow chart of a data aggregation method provided by an embodiment of the present disclosure. The method is applied to a multi-party secure computing system, which includes participants and a central node. The data aggregation method includes:
[0022] S10, each participant performs privacy protection on other participants and determines the privacy protection result corresponding to the privacy protection parameter; and based on the central node, broadcasts the encrypted information of the privacy protection result to other participants, wherein the privacy protection result includes the privacy protection intermediate result.
[0023] S20, each participant performs obfuscation processing on the private data based on the privacy protection parameters and the public key information of other participants, determines the obfuscation processing result, and transmits the obfuscation processing result to the central node; the central node determines the participant list and broadcasts the participant list.
[0024] S30, each participant determines the transmission data to be transmitted to the central node based on the participant list and the encrypted information, and the transmission data carries the privacy-preserving intermediate results; when the central node determines that the relationship between the privacy-preserving intermediate results carried by each received transmission data meets the preset relationship conditions, the central node restores the target data based on the transmission data, and determines the data aggregation result based on the target data and the obfuscation processing result.
[0025] Specifically, the privacy protection parameter is the parameter data that needs to be protected. The number of privacy protection parameters can be one or more. For example, the privacy protection parameter can be a random number and private key information. The participant performs privacy protection for other participants and determines the privacy protection result corresponding to the privacy protection parameter. The privacy protection result includes the privacy protection intermediate result. The privacy protection intermediate result is the data to be verified later to ensure the security of data transmission and achieve verifiable privacy protection. After the privacy protection result is determined, the privacy protection result is encrypted to obtain encrypted information, which is sent to the central node. The central node broadcasts the encrypted information to other participants, and other participants can receive and save the encrypted information. Each participant has private data, which is the data that is private to the participant and not shared with others. For example, the private data can be energy data, and each participant can be an energy manufacturer that has various energy data and intends to aggregate data. In order to ensure that the private data is not known by the central node and other participants, the participants will perform obfuscation processing on the private data, and the obfuscation processing is used to cover up the private data. After determining the obfuscation processing result, the obfuscation processing result is transmitted to the central node. The central node receives the obfuscation processing result, counts the participants who receive the obfuscation processing result, determines the participant list, and broadcasts the participant list. After receiving the participant list, each participant determines the transmission data transmitted to the central node. The transmission data is used for data recovery in the recovery algorithm, and the transmission data also carries the privacy protection intermediate result. Therefore, after receiving the transmission data, the central node determines the relationship between each privacy protection intermediate result. When the relationship between each privacy protection intermediate result meets the preset relationship condition, it proves that the data has not been modified during the transmission process. Then the central node recovers the target data based on the transmission data. The target data can offset the obfuscation effect in the obfuscation processing result and ensure the authenticity and accuracy of the data aggregation result. If the relationship between each privacy protection intermediate result does not meet the preset relationship condition, the subsequent process is terminated.
[0026] According to the technical solution provided by the embodiment of the present disclosure, when each participant performs privacy protection on other participants, the privacy protection parameters are determined, and the privacy protection results corresponding to the privacy protection parameters are determined, the privacy protection results are encrypted, and the encrypted information is broadcast to other participants based on the central node. Each participant performs obfuscation processing on the private data according to the privacy protection parameters and the public key information of other participants, determines the obfuscation processing results, and transmits the obfuscation processing results to the central node. The central node receives the obfuscation processing results to determine the participant list and broadcasts the participant list. After receiving the participant list, each participant determines the transmission data transmitted to the central node according to the participant list and the encrypted information. The transmission data can not only be used for data recovery, but also carries the privacy protection intermediate results. The central node verifies the privacy protection intermediate results carried by each received transmission data. When the relationship between each privacy protection intermediate result meets the preset relationship condition, the target data is further recovered based on the transmission data, and the data aggregation result is determined based on the target data and the obfuscation processing result. In the technical solution provided in the present disclosure, privacy-preserving intermediate results and preset relationship conditions are used for effective verification to avoid the possibility of data being modified during transmission, thereby effectively improving the credibility and accuracy of data aggregation results.
[0027] In some embodiments, the privacy protection result also includes a privacy protection value, the privacy protection intermediate result includes a first privacy protection intermediate result and a second privacy protection intermediate result, the first privacy protection intermediate result is data pre-generated by each participant, and each participant in S10 performs privacy protection on other participants to determine the privacy protection result corresponding to the privacy protection parameter, including:
[0028] S101, each participant determines a privacy protection value corresponding to a privacy protection parameter;
[0029] S102, each participant runs an initialization phase of related oblivious products with other participants, and in the initialization phase, the input of other participants is a first privacy-preserving intermediate result; then, an expansion phase of related oblivious products is run between each participant and other participants, and in the expansion phase, the input of the participant is a privacy-preserving value; after the expansion phase is completed, the participant obtains first extended data, and other participants obtain second extended data; the participant determines the second privacy-preserving intermediate result of the participant based on the first privacy-preserving intermediate result, the first extended data and the privacy-preserving value; other participants determine the second privacy-preserving intermediate results of other participants based on the second extended data.
[0030] Specifically, the privacy protection value is the split data of the privacy protection parameter. For example, if the privacy protection parameter is x, when privacy protection is performed for the i-th participant, the privacy protection value is xi. When participant 1 performs privacy protection for participant 2, the privacy protection value x2 corresponding to the privacy protection parameter is determined, and the initialization phase of the related oblivious product is run between participant 1 and participant 2. In the initialization phase, the input of participant 2 is the first privacy protection intermediate result Δ of participant 2. 2 After the initialization is completed, the expansion phase of the related oblivious product is run between participants 1 and 2. In the expansion phase, the input of participant 1 is the privacy protection value x2. After the expansion phase is completed, participant 1 obtains the first expanded data t. The participants use the first privacy protection intermediate result Δ 1 , the first extended data and the privacy protection value, determine the second privacy protection intermediate result m corresponding to participant 1 1 , such as m 1 =+x2*Δ 1 After the extension phase, participant 2 obtains the second extended data q, and participant 2 uses the second extended data as the second privacy protection intermediate result m of participant 2. 2 , that is, m 2 =.
[0031] According to the technical solution provided by the embodiment of the present disclosure, there are a first privacy-preserving intermediate result and a second privacy-preserving intermediate result, and the second privacy-preserving intermediate result is accurately determined using the relevant inadvertent product technology. The first privacy-preserving intermediate result and the second privacy-preserving intermediate result can be used to perform accurate data verification subsequently, thereby providing a prerequisite for ensuring data security.
[0032] In some embodiments, the preset relationship condition includes: the sum of the second privacy protection intermediate results is equal to the product of the sum of the first privacy protection intermediate results and the sum of the privacy protection values.
[0033] Specifically, when participant 1 shares a secret x with n other participants, there exists x=∑ i xi;m=∑ i m i ; Δ=∑ i Δ i ; m = x*Δ, where xi represents the privacy protection value corresponding to the i-th other participant, Δ i Represents the first privacy-preserving intermediate result corresponding to the i-th other participant, m i The second privacy-preserving intermediate result corresponding to the i-th other participant is characterized. The preset relationship condition can be used to accurately and effectively verify the first privacy-preserving intermediate result, the second privacy-preserving intermediate result and the privacy-preserving value, thereby ensuring the security of the data transmission process.
[0034] In some embodiments, the privacy protection parameter includes a random number. Then, before each participant performs the privacy protection step for other participants in S10, the method further includes:
[0035] S40, each participant obtains its own public key information; performs digital signature processing on the public key information to determine a first signature processing result; and broadcasts the first signature processing result and the public key information to other participants based on the central node;
[0036] S50, each participant verifies the received first signature processing result and public key information, and generates a random number if the first signature processing result passes the verification.
[0037] Specifically, each participant obtains its own public key information, performs digital signature processing on the public key information, determines a first signature processing result, and then sends the first signature processing result and the public key information to the central node. The central node broadcasts the first signature processing result and the public key information to other participants. Other participants receive the broadcast data, obtain the first signature processing result and the public key information, verify the first signature processing result, and generate a random number if the verification passes.
[0038] In a possible implementation, each participant generates two pairs of public and private keys by key negotiation, namely, a transmission public key and a transmission private key, and a perturbation public key and a perturbation private key, and the transmission public key and the transmission private key are used to encrypt the data to be transmitted. Then each participant digitally signs the transmission public key and the perturbation public key to determine the first signature processing result, for example, the signature private key and the signature public key are predetermined, and the two public keys are processed by the signature private key to determine the first signature processing result, and then the first signature processing result, the transmission public key and the perturbation public key are uploaded to the queue, and the central node monitors the queue to obtain the first signature processing result, the transmission public key and the perturbation public key transmitted by the participant, and the central node collects the data of all participants, and pre-sets a threshold t. If the number of participants who upload the first signature processing result, the transmission public key and the perturbation public key collected is less than t, the current process is terminated. If it is greater than or equal to t, the central node broadcasts the data so that other participants receive the first signature processing result, the transmission public key and the perturbation public key transmitted by the participant, and effectively notifies the public key.
[0039] Furthermore, each participant verifies the received first signature processing result, transmission public key and perturbation public key. For example, participant u receives the first signature processing result, transmission public key and perturbation public key sent by other participant v, substitutes the first signature processing result, transmission public key and perturbation public key into a preset formula, and if the preset formula is equal to the target value, the first signature processing result passes the verification. When the first signature processing result passes the verification, a random number is determined, and the random number is a privacy protection parameter.
[0040] According to the technical solution provided by the embodiment of the present disclosure, each participant digitally signs the public key information, determines the first signature processing result, and broadcasts the first signature processing result to other participants, effectively realizing the public key notification of each participant. After the participant receives the first signature processing result and public key information, it first verifies to ensure the security of the participant.
[0041] In some embodiments, the privacy protection parameter includes a random number and private key information. S20 each participant performs obfuscation processing on the private data based on the privacy protection parameter and the public key information of other participants, and determines the obfuscation processing result, including:
[0042] S101, each participant generates a first disturbance vector based on its own private key information and the public key information of other participants.
[0043] S102: Each participant generates a second disturbance vector based on a random number.
[0044] S103, each participant performs obfuscation processing on the private data based on the first perturbation vector and the second perturbation vector, and determines an obfuscation processing result.
[0045] Specifically, each participant determines a first perturbation vector based on its own private key information and the public key information received from other participants; each participant generates a second perturbation vector based on the generated random number; the first perturbation vector and the second perturbation vector are used to confuse the private data and determine the obfuscation result.
[0046] In a possible implementation, the private key information includes a perturbation private key and a transmission private key, and the public key information includes a perturbation public key and a transmission public key. When generating the first perturbation vector, the perturbation private key and the perturbation public keys of other participants are used, that is, each participant determines its own perturbation private key and the perturbation public keys of other participants to generate the first perturbation vector. Each participant has a perturbation private key and a perturbation public key, and the perturbation private key and the perturbation public key are used to negotiate a seed for secret perturbation. For example, there is a participant u, which uses its own perturbation private key and the perturbation public key of any participant v to negotiate a key negotiation result, and sends the key negotiation result as a seed to a pseudo-random number generator (PRG) to generate a first perturbation vector. The first perturbation vector of participant u to participant v can be recorded as p u,v The participant u determines a random number bu and sends it as a seed to PRG to generate a second perturbation vector. The second perturbation vector of the participant u can be recorded as p u The participant u performs obfuscation processing on the private data according to the first perturbation vector and the second perturbation vector to determine the obfuscation processing result. For example, the private data is x u , obfuscation result yu ,y u =x u +bu+p u,v , where v is any other participant.
[0047] According to the technical solution provided by the embodiment of the present disclosure, a first perturbation vector is generated by using the private key information of the participant itself and the public key information of other participants, and a second perturbation vector is generated based on a random number. The first perturbation vector and the second perturbation vector are used to effectively mask the privacy data, and an obfuscation processing result is determined, which has a high security.
[0048] In some embodiments, S30 each participant determines the transmission data to be transmitted to the central node based on the participant list and the encrypted information, including:
[0049] S301, each participant performs digital signature processing on the participant list to obtain a second signature processing result, and broadcasts the second signature processing result to other participants based on the central node;
[0050] S302, each participant verifies the second signature processing result, and when the second signature processing result passes the verification, determines the transmission data to be transmitted to the central node based on the encrypted information.
[0051] Specifically, after receiving the participant list, each participant needs to perform a consistency check on the participant list, that is, the participant list obtained by all participants is consistent to ensure the accuracy of the data processing results. Each participant performs digital signature processing on the participant list to obtain a second signature processing result, for example, using a signature private key to digitally sign the participant list to obtain a second signature processing result. Each participant uploads the second signature processing result to the queue, and the central node listens to the queue to obtain the second signature processing result. The central node counts the number of participants who upload the second signature processing result. If the number of participants is less than t, the current process is terminated. If the number of participants is greater than or equal to t, the central node broadcasts the second signature processing result to other participants. After the central node broadcasts, each participant will receive the second signature processing results of other participants and verify the second signature processing results. If the signature processing result passes the verification, the transmission data transmitted to the central node is determined based on the encrypted information.
[0052] According to the technical solution provided by the embodiment of the present disclosure, in order to prevent the occurrence of malicious simulation of participants, each participant performs a consistency check on the participant list after obtaining the participant list, thereby ensuring the credibility of the data aggregation results.
[0053] In some embodiments, the privacy protection parameter includes a random number and private key information of the participant. In S302, based on the encrypted information, determining the transmission data to be transmitted to the central node includes:
[0054] S3021, each participant decrypts the encrypted information based on its own private key information and the public key information of other participants to determine the decrypted information;
[0055] S3022, when the participant is offline, using the information related to the private key in the decrypted information as transmission data transmitted to the central node;
[0056] S3023, when the participant is online, the information related to the random number in the decrypted information is used as the transmission data transmitted to the central node.
[0057] Specifically, after the participant performs a consistency check on the participant list and passes the check, the participant can decrypt the encrypted information based on its own private key information (transmission private key) and the public key information of other participants (transmission public key) to determine the decrypted information. The decrypted information corresponds to the content during privacy protection, so the decrypted information will include information related to the private key and information related to the random number. In the decrypted information, the transmission data transmitted to the central node is determined.
[0058] Furthermore, not every participant will always be online. If a participant executes step 10 but does not execute step 20, the participant may be offline. In the case that the participant is offline, the information related to the private key in the decrypted information is used as the transmission data transmitted to the central node, so that the central node can recover the p according to the transmission data. u,v ; When the participant is online, the random number related information in the decrypted information is used as the transmission data transmitted to the central node, so that the central node can recover p according to the transmission data u . So that in the subsequent aggregation process, the p u,v and p u The p in the obfuscation result u,v and p u To offset the difference, accurate data aggregation results can be obtained.
[0059] According to the technical solution provided by the embodiment of the present disclosure, the encrypted information is decrypted using the private key information of each participant and the public key information of other participants to determine the effective decryption information, so as to ensure that the determined transmission data can be accurately restored and ensure the accuracy of the data aggregation results.
[0060] In one possible implementation, the participants start the "start" method, generate a queue container, start aggregation, initialize the listening queue, start the thread, and call the get_message method.
[0061] The central node starts the "start" method, starts listening to the queue, starts the thread, and uses the get_message method.
[0062] Participant round0 uses key negotiation to generate two pairs of public and private keys (i.e., a transmission public key and a transmission private key, and a perturbation public key and a perturbation private key, where the base g is preset), uses the pre-acquired signature private key to sign the information spliced from the two public keys, determines the first signature processing result, splices the first signature processing result and the two public keys, and uploads them to the specified queue.
[0063] The central node round0 initializes the dictionary to be broadcast, receives the queue information, splices it into a JSON string, and broadcasts it.
[0064] Participant round 1 verifies the correctness of the signature of the first signature processing result in the received dictionary, that is, whether the plaintext information signature verification result is consistent with the received first signature processing result. If not, the verification fails, and the information is broadcast so that all participants terminate the current process. If they are consistent, the verification passes, a random number is generated, and its own perturbation private key and random number are used as privacy protection parameters to perform privacy protection to other participants, and the privacy protection result, namely the privacy protection value and the privacy protection intermediate result, is determined. After symmetrically encrypting the privacy protection result, encrypted information is obtained, and the encrypted information is transmitted to the queue. Specifically, the MASCOT method can be used to determine the privacy protection value and the privacy protection intermediate result.
[0065] Central node round1, the central node initializes the dictionary to be broadcast, receives the queue information, splices it into a JSON string, and broadcasts it to the participants.
[0066] Participant round2, the participant receives the encrypted information broadcast and saves it. Generates the first perturbation vector and the second perturbation vector, performs matrix obfuscation on the private data, determines the obfuscation result, which is in matrix form, and transmits the obfuscation result to the queue.
[0067] The central node round2 initializes the matrix dictionary, receives the queue information, obtains the obfuscation result, collects the list of participants who sent the obfuscation result, and broadcasts the list of participants to the queue.
[0068] Participant round3 encrypts the participant list using the pre-acquired signature private key, obtains a second signature processing result, and transmits the second signature processing result to the queue.
[0069] The central node round3 initializes the dictionary to be broadcast, receives the queue information, splices it into a JSON string, and broadcasts it.
[0070] Participant round4 receives the second signature processing result, decrypts the second signature processing result using the pre-acquired signature public key, and performs consistency verification. If the participant lists corresponding to each participant are consistent, the verification is passed. If the participant lists corresponding to each participant are inconsistent, the current process is terminated. If the verification is passed, the encrypted information received by round2 is decrypted to obtain the decrypted information. If the participant is offline, the information related to the perturbed private key in the decrypted information is used as the transmission data transmitted to the central node. If the participant is online, the information related to the random number in the decrypted information is used as the transmission data transmitted to the central node, and the transmission data is uploaded to the secret restoration list. The transmission data also carries the privacy protection intermediate results.
[0071] The central node round4 receives queue information and verifies the privacy-preserving intermediate results transmitted by each participant. If the relationship between the privacy-preserving intermediate results meets the preset relationship conditions, the secret corresponding to the transmitted data is restored, and the restored secret is summed with the obfuscation processing result in a matrix to obtain the data aggregation result. The calculation is terminated. If the relationship between the password verification values does not meet the preset relationship conditions, the process is terminated.
[0072] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0073] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.
[0074] Figure 2 Schematic diagram of a data aggregation device provided by an embodiment of the present disclosure. Set in a multi-party secure computing system, the multi-party secure computing system includes participants and a central node, including:
[0075] The privacy protection module 21 is configured to perform privacy protection for each participant to other participants, determine the privacy protection result corresponding to the privacy protection parameter; and broadcast the encrypted information of the privacy protection result to other participants based on the central node; the privacy protection result includes the privacy protection intermediate result;
[0076] The obfuscation processing module 22 is configured to perform obfuscation processing on the private data of each participant based on the privacy protection parameter and the public key information of other participants, determine the obfuscation processing result, and transmit the obfuscation processing result to the central node; the central node determines the participant list and broadcasts the participant list;
[0077] The data verification module 23 is configured so that each participant determines the transmission data to be transmitted to the central node based on the participant list and the encrypted information, and the transmission data carries the privacy protection intermediate result; when the central node determines that the relationship between the privacy protection intermediate results carried by each received transmission data meets the preset relationship conditions, the central node restores the target data based on the transmission data, and determines the data aggregation result based on the target data and the obfuscation processing result.
[0078] According to the technical solution provided by the embodiment of the present disclosure, when each participant performs privacy protection for other participants, the privacy protection parameters are determined, and the privacy protection results corresponding to the privacy protection parameters are determined, the privacy protection results are encrypted, and the encrypted information is broadcast to other participants based on the central node. Each participant performs obfuscation processing on the private data according to the privacy protection parameters and the public key information of other participants, determines the obfuscation processing results, and transmits the obfuscation processing results to the central node. The central node receives the obfuscation processing results to determine the participant list and broadcasts the participant list. After receiving the participant list, each participant determines the transmission data transmitted to the central node according to the participant list and the encrypted information. The transmission data can not only be used for data recovery, but also carries the privacy protection intermediate results. The central node verifies the privacy protection intermediate results carried by each received transmission data. When the relationship between each privacy protection intermediate result meets the preset relationship condition, the target data is further recovered based on the transmission data, and the data aggregation result is determined based on the target data and the obfuscation processing result. In the technical solution provided in the present disclosure, privacy-preserving intermediate results and preset relationship conditions are used for effective verification to avoid the possibility of data being modified during transmission, thereby effectively improving the credibility and accuracy of data aggregation results.
[0079] In some embodiments, the privacy protection result further includes a privacy protection value, the privacy protection intermediate result includes a first privacy protection intermediate result and a second privacy protection intermediate result, the first privacy protection intermediate result is data pre-generated by each participant, and the privacy protection module includes:
[0080] a sharing value determination unit, configured to determine a privacy protection value corresponding to the privacy protection parameter for each participant;
[0081] The verification value determination unit is configured to run an initialization phase of related oblivious products between each participant and other participants, in which the input of other participants is a first privacy-preserving intermediate result; then run an extension phase of related oblivious products between each participant and other participants, in which the input of the participant is a privacy-preserving value; after the extension phase is completed, the participant obtains first extended data, and other participants obtain second extended data; the participant determines the second privacy-preserving intermediate result of the participant based on the first privacy-preserving intermediate result, the first extended data and the privacy-preserving value; and other participants determine the second privacy-preserving intermediate results of other participants based on the second extended data.
[0082] In some embodiments, the preset relationship condition includes: the sum of the second privacy protection intermediate results is equal to the product of the sum of the first privacy protection intermediate results and the sum of the privacy protection values.
[0083] In some embodiments, the privacy protection parameter includes a random number, and the apparatus further includes:
[0084] The signature processing module is configured so that each participant obtains its own public key information; performs digital signature processing on the public key information to determine a first signature processing result; and broadcasts the first signature processing result and the public key information to other participants based on the central node;
[0085] The verification processing module is configured so that each participant verifies the received first signature processing result and public key information, and generates a random number when the first signature processing result passes the verification.
[0086] In some embodiments, the privacy protection parameters include random numbers and private key information, and the obfuscation processing module includes:
[0087] A first generating unit is configured to generate a first disturbance vector for each participant based on its own private key information and the public key information of other participants;
[0088] A second generating unit is configured to generate a second disturbance vector based on a random number for each participant;
[0089] The obfuscation processing unit is configured to perform obfuscation processing on the private data of each participant based on the first perturbation vector and the second perturbation vector, and determine the obfuscation processing result.
[0090] In some embodiments, the data verification module includes:
[0091] The signature processing unit is configured to perform digital signature processing on the participant list for each participant to obtain a second signature processing result, and broadcast the second signature processing result to other participants based on the central node;
[0092] The verification processing unit is configured to verify the second signature processing result for each participant, and determine the transmission data to be transmitted to the central node based on the encrypted information when the second signature processing result passes the verification.
[0093] In some embodiments, the privacy protection parameter includes a random number and private key information of a participant, and the verification processing unit includes:
[0094] The decryption subunit is configured so that each participant decrypts the encrypted information based on its own private key information and the public key information of other participants to determine the decrypted information;
[0095] The first determination subunit is configured to use the information related to the private key in the decryption information as transmission data transmitted to the central node when the participant is offline;
[0096] The second determination subunit is configured to use the information related to the random number in the decrypted information as transmission data transmitted to the central node when the participant is online.
[0097] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
[0098] Figure 3 Schematic diagram of an electronic device 3 provided in an embodiment of the present disclosure. Figure 3 As shown, the electronic device 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program 303, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 301 executes the computer program 303, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0099] The electronic device 3 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 3 may include but is not limited to a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3 The electronic device 3 is merely an example and does not limit the electronic device 3 , and may include more or less components than those shown in the figure, or different components.
[0100] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0101] The memory 302 may be an internal storage unit of the electronic device 3, for example, a hard disk or memory of the electronic device 3. The memory 302 may also be an external storage device of the electronic device 3, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 3. The memory 302 may also include both an internal storage unit of the electronic device 3 and an external storage device. The memory 302 is used to store computer programs and other programs and data required by the electronic device.
[0102] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0103] If the integrated module / 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 present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, 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. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0104] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the protection scope of the present disclosure.
Claims
1. A data aggregation method, characterized in that: Applied to a multi-party secure computing system, the multi-party secure computing system includes participants and a central node, and the method includes: Each participant performs privacy protection on other participants and determines a privacy protection result corresponding to a privacy protection parameter; and based on the central node, broadcasts the encrypted information of the privacy protection result to the other participants; the privacy protection result includes an intermediate privacy protection result; Each participant performs obfuscation processing on the private data based on the privacy protection parameters and the public key information of other participants, determines the obfuscation processing result, and transmits the obfuscation processing result to the central node; the central node determines the participant list and broadcasts the participant list; Each participant determines the transmission data to be transmitted to the central node based on the participant list and the encrypted information, and the transmission data carries the privacy protection intermediate result; when the central node determines that the relationship between the privacy protection intermediate results carried by each received transmission data meets the preset relationship conditions, the central node recovers the target data based on the transmission data, and determines the data aggregation result based on the target data and the obfuscation processing result.
2. The method according to claim 1, characterized in that The privacy protection result also includes a privacy protection value, the privacy protection intermediate result includes a first privacy protection intermediate result and a second privacy protection intermediate result, the first privacy protection intermediate result is data pre-generated by each participant, then each participant performs privacy protection on the other participants, and determines the privacy protection result corresponding to the privacy protection parameter, including: Each participant determines the privacy protection value corresponding to the privacy protection parameter; An initialization phase of related oblivious products is performed between each participant and other participants, and in the initialization phase, the input of the other participants is the first privacy-preserving intermediate result; then an expansion phase of related oblivious products is performed between each participant and other participants, and in the expansion phase, the input of the participant is the privacy-preserving value; after the expansion phase is completed, the participant obtains first extended data, and the other participants obtain second extended data; the participant determines the second privacy-preserving intermediate result of the participant based on the first privacy-preserving intermediate result, the first extended data and the privacy-preserving value; the other participants determine the second privacy-preserving intermediate results of the other participants based on the second extended data.
3. The method according to claim 2, characterized in that The preset relationship condition includes: the sum of the second privacy protection intermediate results is equal to the product of the sum of the first privacy protection intermediate results and the sum of the privacy protection values.
4. The method according to claim 1, characterized in that: If the privacy protection parameter includes a random number, before each participant performs the privacy protection for the other participants, the method further includes: Each participant obtains its own public key information; performs digital signature processing on the public key information to determine a first signature processing result; based on the central node, broadcasts the first signature processing result and the public key information to other participants; Each participant verifies the received first signature processing result and the public key information, and generates a random number if the first signature processing result passes the verification.
5. The method according to claim 1, characterized in that The privacy protection parameters include random numbers and private key information. Each participant performs obfuscation processing on the private data based on the privacy protection parameters and public key information of other participants, and determines an obfuscation processing result, including: Each participant generates a first perturbation vector based on its own private key information and the public key information of other participants; Each participant generates a second disturbance vector based on the random number; Each participant performs obfuscation processing on the private data based on the first perturbation vector and the second perturbation vector, and determines an obfuscation processing result.
6. The method according to claim 1, characterized in that Each participant determines the transmission data to be transmitted to the central node based on the participant list and the encrypted information, including: Each participant performs digital signature processing on the participant list to obtain a second signature processing result, and broadcasts the second signature processing result to other participants based on the central node; Each participant verifies the second signature processing result, and when the second signature processing result passes the verification, determines the transmission data to be transmitted to the central node based on the encrypted information.
7. The method according to claim 6, characterized in that The privacy protection parameter includes a random number and private key information of the participant, and based on the encrypted information, determining the transmission data to be transmitted to the central node includes: Each participant decrypts the encrypted information based on its own private key information and the public key information of other participants to determine the decrypted information; In the case where the participant is offline, the information related to the private key in the decryption information is used as transmission data transmitted to the central node; When the participant is online, the information related to the random number in the decrypted information is used as transmission data transmitted to the central node.
8. A data aggregation device, characterized in that: Set up in a multi-party secure computing system, the multi-party secure computing system includes participants and a central node, including: The secret sharing module is configured to perform privacy protection for each participant to other participants, determine the privacy protection result corresponding to the privacy protection parameter; and broadcast the encrypted information of the privacy protection result to the other participants based on the central node; the privacy protection result includes the privacy protection intermediate result; The obfuscation processing module is configured so that each participant performs obfuscation processing on the private data based on the privacy protection parameter and the public key information of other participants, determines the obfuscation processing result, and transmits the obfuscation processing result to the central node; the central node determines the participant list and broadcasts the participant list; The data verification module is configured so that each participant determines the transmission data to be transmitted to the central node based on the participant list and the encrypted information, and the transmission data carries the privacy protection intermediate result; when the central node determines that the relationship between the privacy protection intermediate results carried by each received transmission data meets the preset relationship condition, the central node recovers the target data based on the transmission data, and determines the data aggregation result based on the target data and the obfuscation processing result.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Numerical ranking method and device based on block chain
CN112288523A
Confusion data aggregation privacy protection method, system, device, medium and terminal
CN113660197A
