Data batch retrieval method, system and equipment based on privacy calculation and medium

Through grouping and encryption processing between the central platform and the queried party, the problems of low retrieval efficiency and high communication overhead in privacy query technology are solved, efficient data batch retrieval is realized, and the privacy and retrieval efficiency of the data are ensured.

CN118568133APending Publication Date: 2024-08-30CHINA POWER IND INTERNET CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410812464.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-03-19
Filing Date
2024-06-21
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing privacy query technology has problems with low retrieval efficiency and high communication overhead during data sharing. Especially in scenarios with large-scale models and huge data sets, it is difficult to ensure data confidentiality and retrieval efficiency.

Method used

By transferring the unique identification value and characteristic parameters of the query data between the central platform and the queried party, grouping and encryption processing, the amount of data that the queried party needs to upload is reduced, and the encryption and decryption process of the public-private key pair and secret key pair is used to shorten the time Retrieval time and improve retrieval efficiency.

Benefits of technology

This method improves the efficiency of data batch retrieval while ensuring privacy, reduces data communication overhead and number of interactions, and improves retrieval efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568133A
    Figure CN118568133A
Patent Text Reader

Abstract

The invention relates to a data batch retrieval method, system and device based on privacy computing and a medium. After a queried party receives a retrieval instruction, unique identification values corresponding to all original data are grouped; therefore, the central platform can determine that the query data provided by the query party corresponds to the unique identification value in a certain group or a plurality of groups in the array, and sends the corresponding group number to the queried party, so that the queried party only needs to provide the original data related to the received group number to the central platform, and the query efficiency is improved. And all data does not need to be submitted to a central platform, and meanwhile, a batch retrieval method is combined, so that the retrieval time is greatly shortened, and the retrieval efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of privacy computing technology, and in particular to a privacy computing-based data batch retrieval method, system, device and medium. Background Art

[0002] In recent years, with the rise of science and technology, data processing and privacy protection have become two key challenges in today's science and technology field, but at the same time, they have also raised concerns about data privacy and security. Traditional data processing methods usually require centralized data storage and processing, but in many scenarios, data is scattered in multiple places, such as mobile devices, edge computing nodes, etc. In this case, the traditional centralized model training method is not applicable. The data owned by users may contain sensitive information. Directly concentrating the data in one place for training may have the risk of privacy leakage. At the same time, transmitting a large amount of raw data to the center for training may involve a lot of communication overhead, especially for large-scale models and large data sets.

[0003] In terms of data sharing, ensuring the confidentiality of search results is a key issue. It is necessary to ensure the integrity and accuracy of the data, and to ensure that the queryer and the search results are not leaked. However, the existing privacy query technology performs hidden queries on all data and only supports the retrieval of a certain data, which leads to problems such as high communication overhead and slow retrieval efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide a data batch retrieval method, system, equipment and medium based on privacy computing that can improve retrieval efficiency while ensuring privacy in response to the above technical problems.

[0005] A data batch retrieval method based on privacy computing, the method is implemented between a central platform, a query requesting party and a queried party, the method comprising:

[0006] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0007] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0008] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0009] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0010] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0011] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0012] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0013] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0014] In one embodiment, before the central platform sends a search instruction to the queried party, the queried party is required to obtain the search authorization of the queried party through the central platform.

[0015] In one embodiment, when there are multiple query data, there are multiple queried parties, and the central platform sends search instructions to the multiple queried parties respectively.

[0016] In one embodiment, when the queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameter according to the search instruction, it includes:

[0017] The queried party randomly generates a random value;

[0018] After the unique identification values ​​corresponding to all the original data are processed by the Hash algorithm, the random value is modulo-ed to obtain the calculation result;

[0019] The unique identification values ​​with the same calculation results are grouped into an array.

[0020] In one embodiment, the queried party finds the corresponding array in the two-dimensional array according to the array number and encrypts all relevant original data corresponding to the array using an elliptic curve encryption algorithm.

[0021] In one embodiment, when the queried party uses all the suspected keys in the two-dimensional decryption array to encrypt the corresponding original data, a symmetric key encryption algorithm is used.

[0022] The present application also provides a data batch retrieval system based on privacy computing, the system comprising a central platform, a query requesting party and a queried party;

[0023] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0024] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0025] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0026] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0027] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0028] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0029] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0030] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0031] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0033] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0034] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0035] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0036] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0037] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0038] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0039] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0040] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0041] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0042] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0043] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0044] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0045] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0046] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0047] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0048] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0049] In another aspect, the present invention provides a computer program product, which is stored on a computer-readable storage medium and includes computer instructions, which, when executed by a processor, cause a computer device to implement the following steps:

[0050] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0051] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0052] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0053] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0054] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0055] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0056] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0057] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0058] The above-mentioned data batch retrieval method, system, device and medium based on privacy computing, after the queried party receives the retrieval instruction, groups the unique identification values ​​corresponding to all the original data, so that the central platform can determine whether the query data provided by the inquiring party corresponds to the unique identification value in a certain group in the array, or multiple groups, and then send the corresponding group number to the queried party. In this way, the queried party only needs to provide the central platform with the original data related to the received group number, and does not need to submit all the data to the central platform. At the same time, combined with the batch retrieval method, the retrieval time will be greatly shortened and the retrieval efficiency will be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is a flowchart of a method for batch data retrieval based on privacy computing in one embodiment;

[0060] Figure 2 A schematic diagram of the interaction process between the central platform and the participants in a batch data retrieval process in one embodiment;

[0061] Figure 3 A schematic diagram of the interaction process between the central platform and the participants in a data calculation method in one embodiment;

[0062] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] The central platform described in the present invention is the core of various types of intelligent network systems. It can be a hardware platform, a software platform, or a platform that combines hardware and software. The hardware refers to computers and intelligent devices and communication equipment around computers. The central platform can perform unified management between different subsystems in the intelligent network system and realize information integration. It also provides data retrieval and query functions for the query requesting party (the query requesting party can be a customer, or various intelligent terminals that initiate query tasks to the platform center, or APPs loaded on various intelligent terminals). The central platform described in the present invention includes but is not limited to a business operation center platform, an intelligent monitoring center platform, an Internet of Things center platform, a user big data center platform, an energy big data center platform of a power system, and the like.

[0065] In the existing technology, the privacy retrieval of the central platform has problems such as low efficiency and small number of retrievals at one time. Figure 1 As shown, the data batch retrieval method based on privacy computing provided by the present application is implemented between the central platform, the query requesting party and the queried party, and specifically includes the following steps:

[0066] Step S100, requiring the query direction to send the unique identification value and related characteristic parameters corresponding to the query data to be retrieved to the central platform, wherein the query data includes one or more pieces.

[0067] Step S110, the central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party.

[0068] In step S120, the queried party groups the unique identification values ​​corresponding to all original data related to the characteristic parameters according to the search instruction, and merges all the arrays obtained after grouping into a two-dimensional array and sends it to the central platform.

[0069] Step S130, the central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party.

[0070] In step S140, the queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform.

[0071] In step S150, the central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set through the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encrypted result to the queried party.

[0072] In step S160, the queried party uses the private key to perform cyclic decryption on the encryption result to obtain a two-dimensional decryption array, which includes the same number of rows as the number of query data, and each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys. The corresponding original data is encrypted using all the secret keys in the two-dimensional decryption array, and a second key-value pair is generated for the encrypted suspected secret key and the corresponding unique identification value, and all the generated second key-value pairs are combined into a second key-value pair set and sent to the central platform.

[0073] In step S170, the central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0074] In the invention, the central platform, the party requesting inquiries and the party being queried can all be intelligent devices based on computers and computer communication technology. The central platform, the party requesting inquiries and the party being queried are communicatively connected and transmit data to each other through wired or wireless communication methods.

[0075] In this embodiment, the central platform sends a search instruction to the corresponding queried party according to the unique identification value provided by the querying party, and the queried party groups the unique identifications corresponding to all the original data according to the search instruction, and sends them to the central platform in the form of an array, so that the central platform can determine the group of the unique identification value corresponding to the data to be queried in the uploaded array, further reducing the amount of data that the queried party needs to upload. In addition, in this method, multiple data can be traced at the same time, and each original data comes from a different queried party.

[0076] In this embodiment, before the central platform sends a search instruction to the queried party, the queried party is required to obtain the queried party's search authorization through the central platform. When there are multiple query data, the central platform sends multiple query data from multiple queried parties by searching for the corresponding unique identification value. At this time, it is necessary to obtain the search authorization of all queried parties.

[0077] In this embodiment, when there are multiple query data, there are multiple queried parties, and the corresponding central platform sends search instructions to the multiple queried parties respectively. In some embodiments, the multiple query data may also come from the same queried party.

[0078] In this embodiment, the queried parties are multiple parties participating in privacy computing together with the central platform, and the querying party can be one of the multiple parties or another institutional platform.

[0079] In step S120, when the queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the retrieval instruction, it includes: the queried party randomly generates a random value, performs a Hash algorithm on the unique identification values ​​corresponding to all the original data, takes the modulus of the random value to obtain a calculation result, and groups the unique identification values ​​with the same calculation result into an array.

[0080] Specifically, the queried party randomly generates a value a, where the data should meet the requirement that the value of a is greater than 1000. Then, all unique identification values ​​key of the original data are processed by hash algorithm, and modulo a, and the values ​​with the same result are divided into the same array, and then all arrays are combined into a two-dimensional array AllKeys[][], and the structure of AllKeys[][] is as follows:

[0081]

[0082] Then upload AllKeys[][] to the central platform.

[0083] In step S130, after the central platform receives AllKeys[][], it searches for the array number of the key to be retrieved in AllKeys[][] according to the unique identification value key provided by the querying party, obtains an array KeyNum[], which includes the array numbers of multiple data, and then returns KeyNum[] to the queried party.

[0084] In step S140, the queried party selects the corresponding array in AllKeys[][] according to the array KeyNum[], and combines all the keys in the selected array into a new array Keys[], and encrypts the corresponding relevant original data in the new array Keys[] to generate a public-private key pair, and forms a key-value pair KV1={key:PK(data)} with the unique identification value key corresponding to the public key and the original data, and then forms these key-value pairs into an array PKS[] and sends it to the center. The structure of PKS[] is as follows:

[0085]

[0086] In the above formula, data is the original data to be encrypted, key is the unique identifier of this data, and PK() is the public key formed after encryption. Then the private key is saved locally. This further narrows the query scope.

[0087] In this embodiment, the queried party finds the corresponding array in the two-dimensional array according to the array number and encrypts all relevant original data corresponding to the array using an elliptic curve encryption algorithm.

[0088] In step S150, after receiving PKS[], the central platform randomly generates a key R with the same number of query data to be retrieved. In one embodiment, R is composed of 64 random characters to form an array RS[]. The structure of RS[] is as follows:

[0089] RS[]=[R1,…,R n ]

[0090] In the above formula, the subscript n of the secret key R is the number of query data to be retrieved.

[0091] Then, the central platform finds the corresponding public key PK(data) in PKS[] according to the key to be retrieved, and encrypts these public keys PK(data) with the randomly generated secret key R one-to-one, and sends the encrypted result M to the queried party in the form of an array MS[]. The structure of MS[] is as follows:

[0092] MS[]=[M1,…,M n ]

[0093] In step S160, after receiving the array MS[], the queried party uses all the saved private keys to cyclically decrypt all the encryption results M in the array one by one, so that multiple decryption results R′, i.e., suspected secret keys, can be obtained for each M, and all the decryption results R′ are generated into a two-dimensional data R′S[][], and the structure of R′S[][] is as follows:

[0094]

[0095] In the above formula, a is the number of elements in MS[]. In this case, only one R′ in each array in R′S[][] is correct.

[0096] Then, the queried party symmetrically encrypts the corresponding original data memory of each R′ in R′S[][] according to the corresponding key, and forms a second key-value pair KV2={key:AES(data)} with each encryption result and its unique identification value key, and then forms a second key-value pair group Res[][] based on all the second key-value pairs, where the structure of Res[][] is as follows:

[0097]

[0098] In the above formula, a is the number of elements in MS[], and AES() is the encryption algorithm.

[0099] In this embodiment, when the queried party uses all the suspected secret keys in the two-dimensional decryption array to encrypt the corresponding original data, a symmetric key encryption algorithm is used.

[0100] Then, the queried party sends Res[][] to the platform center.

[0101] In step S170, the central platform receives Res[][], matches the corresponding array in Res[][] according to the element number in the data MS[], then retrieves the desired AES(data) through key, and finally performs one-to-one AES decryption through the secret key R in RS[]. In this way, the data that the inquiring party wants to retrieve can be obtained.

[0102] In the entire retrieval process described above, the entire retrieval process is kept confidential to the queried party and the process is simple.

[0103] In one embodiment, the interaction process between the central platform and the queried party during the batch search process is also provided, such as Figure 2 shown.

[0104] In this method, a data privacy calculation process between a central platform and multiple participants is also provided, and the process includes: each participating method registers on the central platform and opens relevant authorizations. When the central platform receives the calculation task, it determines the calculation model and the characteristic parameters that each participant needs to calculate according to relevant rules, and notifies each participant respectively. After each participant receives the calculation model and the characteristic parameters that need to be calculated, it uses local data to calculate the data quality value corresponding to the characteristic parameters respectively, and uploads the data quality value and identification value corresponding to each characteristic parameter to the central platform. The central platform receives the data quality value and identification value sent by each participant, groups them according to the characteristic parameters, selects the optimal parameter feature in each group according to the requirements of the calculation model, constructs an intersection identification value data set according to the identification values ​​sent by each participant, and notifies each participant of the intersection identification value data set and the optimal parameter feature that each participant needs to calculate. Finally, after each participant uses the intersection identification value data set to align data, it uses local data to calculate data according to the calculation model and the optimal characteristic parameters that it needs to calculate, and obtains the calculation results of other participants through the central platform to complete the data calculation.

[0105] In this embodiment, considering that when calculating the privacy model, for each feature parameter that needs to be calculated, there is at least one or more participants who provide it, which leads to a large amount of redundant data and the data quality of each participant varies. Therefore, in this application, the participants calculate the quality of the data corresponding to the feature parameters that they can provide, and send it to the central platform. The central platform selects the optimal data for each feature parameter and sends it to the corresponding participants. When performing data calculation, each feature parameter in the model is the optimal feature parameter, and for each participant, it is not necessary to calculate all the feature parameters that can be calculated, but only the optimal feature parameters that can be provided by the participants are calculated. This can improve the calculation quality while improving the calculation efficiency.

[0106] In this embodiment, each participant uses the following formula to calculate the data quality value corresponding to the characteristic parameter based on the characteristic parameters and local data that can be provided by the participant:

[0107]

[0108] In the above formula, InteRate() represents the ratio of complete data to the entire data, AccRate() represents the ratio of accurate data to the entire data, EffRate() represents the ratio of effective data to the entire data, TimeRate() represents the ratio of data within a specified time period to the entire data, a, b, c, d represent adjustment coefficients respectively, where a+b+c+d=1, and the arrow indicates that the quality value of each characteristic parameter is constructed into an array structure.

[0109] In this embodiment, after each participant uploads EValue and the unique identification value key[] of these feature data (such as personal ID card, corporate unified credit code, etc.) to the central platform, the center receives EValue and key[], groups them according to the feature parameters, selects excellent feature parameters according to the model requirements, and records the sources of the selected feature parameters in the database, and then compares the unique identification value key[] uploaded by the participant, takes their intersection Intersection(key[]), that is, the intersection identification value data set, and finally sends Intersection(key[]) to each participant, and tells them the feature parameters they want to calculate.

[0110] Specifically, when performing data calculation, the participant receives the feature parameters and Intersection(key[]) to be calculated, first aligns the data according to Intersection(key[]), and then performs the first calculation locally with its own data based on the calculation model and feature parameters. After obtaining the descent gradient value, it sends it to the central platform. After a simple merger, the central platform sends the result to each participant. The participant combines the descent gradient value sent by other participants with the local data for a second calculation, obtains the final gradient value and sends it to the center. After the center obtains the gradient values ​​uploaded by all participants, it performs aggregation processing and sends the result to each participant.

[0111] In one embodiment, the interactive process between the central platform and each participant based on the multi-party secure data computing method is as follows: Figure 3 shown.

[0112] In the above-mentioned data batch retrieval method based on privacy computing, after the queried party receives the retrieval instruction, the unique identification values ​​corresponding to all the original data are grouped, so that the central platform can determine whether the query data provided by the query party corresponds to the unique identification value in a certain group in the array, or multiple groups, and then send the corresponding group number to the queried party. In this way, the queried party only needs to provide the central platform with the original data related to the received group number, and does not need to submit all the data to the central platform. This method further narrows the retrieval scope by means of grouping all the data of the queried party, and supports batch retrieval, effectively reduces data communication overhead, reduces the number of interactions, and improves retrieval efficiency. At the same time, this method also provides a privacy data calculation process step. This method first performs data screening locally on each participant, filters duplicate and low-quality data, thereby improving the overall data quality and ensuring that the calculation results are more accurate and effective. This method combines neighbor learning and hidden computing to ensure that the entire process from data calculation to retrieval is safe and reliable.

[0113] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0114] In one embodiment, a data batch retrieval system based on privacy computing is provided, including: a central platform, a query requesting party, and a queried party, wherein:

[0115] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0116] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0117] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0118] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0119] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0120] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0121] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0122] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0123] For the specific limitations of the data batch retrieval system based on privacy computing, please refer to the limitations of the data batch retrieval method based on privacy computing above, which will not be repeated here. Each module in the above-mentioned data batch retrieval system based on privacy computing can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0124] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for batch retrieval of data based on privacy computing is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0125] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0126] In one embodiment, a computer device is provided, including a query requesting party, a central platform, and a queried party, wherein the query requesting party, the central platform, and the queried party all include a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0127] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0128] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0129] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0130] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0131] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0132] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0133] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0134] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0135] In one embodiment, a computer-readable storage medium is provided, including a requesting party, a central platform, and a queried party, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0136] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0137] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0138] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0139] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0140] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0141] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0142] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0143] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0144] In one embodiment, a computer program product is provided, the computer program product being stored on a computer-readable storage medium and comprising computer instructions which, when executed by a processor, cause a computer device to implement the following steps:

[0145] The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items;

[0146] The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party;

[0147] The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform;

[0148] The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party;

[0149] The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform;

[0150] The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party;

[0151] The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform;

[0152] The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

[0153] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0154] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0155] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A data batch retrieval method based on privacy computing, characterized in that: The method is implemented between the central platform, the query requesting party and the queried party, and the method includes: The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items; The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party; The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform; The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party; The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform; The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party; The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform; The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

2. The data batch retrieval method based on privacy computing according to claim 1 is characterized in that: Before the central platform sends a search instruction to the queried party, the queried party is required to obtain the search authorization of the queried party through the central platform.

3. The data batch retrieval method based on privacy computing according to claim 1 is characterized in that: When there are multiple query data, there are multiple queried parties, and the central platform sends search instructions to the multiple queried parties respectively.

4. The data batch retrieval method based on privacy computing according to claim 1 is characterized in that: When the queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameter according to the search instruction, it includes: The queried party randomly generates a random value; After the unique identification values ​​corresponding to all the original data are processed by the Hash algorithm, the random value is modulo-ed to obtain the calculation result; The unique identification values ​​with the same calculation results are grouped into an array.

5. The data batch retrieval method based on privacy computing according to claim 1 is characterized in that: The queried party finds the corresponding array in the two-dimensional array according to the array number and encrypts all relevant original data corresponding to the array using an elliptic curve encryption algorithm.

6. The data batch retrieval method based on privacy computing according to claim 1 is characterized in that: When the queried party uses all the suspected secret keys in the two-dimensional decryption array to encrypt the corresponding original data, a symmetric key encryption algorithm is adopted.

7. The data batch retrieval system based on privacy computing is characterized by: The system includes a central platform, a party requesting inquiries and a party being inquired; The query requesting party sends the central platform a unique identification value and related characteristic parameters corresponding to the query data to be retrieved, wherein the query data includes one or more items; The central platform searches for the queried party who submitted the characteristic parameters according to the characteristic parameters, and sends a search instruction to the queried party; The queried party groups the unique identification values ​​corresponding to all the original data related to the characteristic parameters according to the search instruction, and combines all the arrays obtained after the grouping into a two-dimensional array and sends it to the central platform; The central platform determines the array where the query data is located in the two-dimensional array, and sends its array number to the queried party; The queried party finds the corresponding array in the two-dimensional array according to the array number, and encrypts all relevant original data corresponding to the array, generates a public-private key pair corresponding to each relevant original data, generates a first key-value pair using the public key and the unique identification value of the corresponding relevant original data, and combines all the generated first key-value pairs into a first key-value pair set and sends it to the central platform; The central platform randomly generates the same number of secret keys according to the number of query data, searches for the public key corresponding to the query data in the first key-value pair set by the unique identification value, and uses the secret key to perform one-to-one encryption on the searched public key, and sends the encryption result to the queried party; The queried party uses the private key to cyclically decrypt the encryption result to obtain a two-dimensional decryption array, wherein the two-dimensional decryption array includes the same number of rows as the number of query data, each row includes multiple suspected secret keys obtained after decrypting an encryption result using all private keys, encrypts the corresponding original data using all the suspected secret keys in the two-dimensional decryption array, generates a second key-value pair for the encrypted suspected secret key and the corresponding unique identification value, and combines all the generated second key-value pairs into a second key-value pair set and sends it to the central platform; The central platform selects the corresponding second key-value pair from the second key-value pair set according to the unique identification value corresponding to the query data, and decrypts the second key-value pair corresponding to the secret key to obtain the original data, i.e., the query data to be retrieved, and feeds back the original data to the party requesting the query.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, 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 6 are implemented.

Citation Information

Patent Citations

  • User privacy information query implementation method and device based on distributed reconstruction

    CN111782662A

  • Privacy calculation grouping query method and system

    CN114357522A

  • Query processing method and device, equipment and medium

    CN116702215A