Data query method and device based on multi-party secure computing

By shuffling and converting the data set into a Boolean shared form in multi-party secure calculations, and disclosing the top-ranked bit values ​​to narrow the scope of the target elements, the privacy leak caused by the association of the sorting sequence with the predetermined data set during the data query process is solved and low efficiency problems, improving query efficiency.

CN115080615BActive Publication Date: 2024-09-06ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210636832.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-07
Publication Date
2024-09-06
Estimated Expiration
2042-06-07

AI Technical Summary

Technical Problem

In multi-party secure computing, during the data query process, due to the association between the sorting sequence and the predetermined data set during the sorting process, data privacy is leaked, the communication volume is large, and the efficiency is low.

Method used

Determine the specified order by shuffling the data set in shared form, converting to Boolean shared form, exposing the top partial bit values ​​to recover plaintext, narrowing the target element, and interval sorting in Boolean shared form clear text representation.

Benefits of technology

It avoids the huge communication consumption of sorting out-of-order databases, improves the efficiency of multi-party security queries, and protects data privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080615B
    Figure CN115080615B
Patent Text Reader

Abstract

The embodiments of this specification provide a data query method and device based on multi-party secure computing. In the data query process based on multi-party secure computing, in order to query the target elements in the data set that are arranged in a specified order according to the order of data size, the data in the data set can be shuffled in the form of sharing to obtain a shuffled data set. Then the arithmetic sharing in the shuffled data set is converted into a Boolean sharing form. In the Boolean sharing form, the numerical values ​​on the front bits are disclosed, and the front bits can be restored to plain text. Based on the plain text data on the front bits, the data elements in the shuffled data set can be sorted in intervals, so as to determine the plain text representation corresponding to the sequence interval where the specified order is located, and the plain text representation only corresponds to some data elements in the shuffled data set. In this way, the range of the target element is narrowed, and then the target element is determined within the determined range of elements. This query method can improve query efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of secure computing technology, and in particular, to a data query method and device based on multi-party secure computing. Background Art

[0002] Secure multi-party computing is also called multi-party secure computing. Multiple parties can jointly calculate the result of a function without disclosing the input data of each party in the function. The result of the calculation is made public to one or more of the parties. Typical applications of secure multi-party computing include joint statistical analysis of multi-party data with privacy protection, machine learning, etc. The function here is a statistical operation function, a machine learning algorithm, etc.

[0003] In the process of multi-party secure computing, in order to prevent the disclosure of data and intermediate computing results of each party, the data or intermediate results can be held by each party in a shared form. A single party holds a data shard, and the shards held by each party are merged together to restore the corresponding data. Usually, the calculation is kept in a shared state. In this way, the number of data communications and the amount of communication in multi-party secure computing are important factors affecting the efficiency of secure computing. Summary of the invention

[0004] One or more embodiments of the present specification describe a data query method and device based on multi-party secure computing to solve one or more problems mentioned in the background technology.

[0005] According to a first aspect, a data query method based on multi-party secure computing is provided, which is used for the process of querying a target element in a specified order from a predetermined data set formed and shared by multiple participants, wherein the specified order is used to indicate the size order of the target element in each element of the predetermined data set, and the method is executed by a first party among the multiple participants who holds a first and shared shard of the predetermined data set, and the method comprises: securely scrambling the first and shared shards with other participants based on a secure scrambling protocol to obtain a first scrambled shard, and the first scrambled shard and other scrambled shards obtained by securely scrambling other and shared shards with other participants via the secure scrambling protocol together constitute a scrambled data set for the predetermined data set and a shared form; converting arithmetic sharing to Boolean sharing with other participants The A2B conversion protocol of the conversion converts the random data set in the shared form of the multiple participants into a Boolean shared form, and obtains the first Boolean shard of the random data set, which together with other Boolean shards obtained by other participants constitutes the Boolean shared form of the random data set; receives the first k-bit values ​​of each element disclosed by other participants for their local Boolean shards, and obtains t plaintext representations corresponding to the first k-bit values ​​of each element in the random data set according to the Boolean shared shard merging rule, and a single plaintext representation corresponds to at least one element in the random data set; based on the size order of the t plaintext representations, determines the first plaintext representation corresponding to the target element in a specified order; and determines the target element together with other participants based on the elements corresponding to the first plaintext representation.

[0006] In one embodiment, the secure out-of-order protocol is implemented by secret sharing or homomorphic encryption.

[0007] In one embodiment, the first Boolean shard includes Boolean sub-shards corresponding to each element in the random data set, and the Boolean shared shard merging rule for a single element is to perform an XOR operation on the Boolean sub-shards corresponding to the single element in each Boolean shared shard.

[0008] In one embodiment, determining the first plaintext representation corresponding to the target element in a specified order based on the order of size of the t plaintext representations includes: counting the number of elements corresponding to the t plaintext representations respectively; and determining the first plaintext representation corresponding to the specified order using the number of elements when the t plaintext representations are arranged in order of size.

[0009] In one embodiment, when the element corresponding to the first plaintext representation is not unique, determining the target element based on the elements corresponding to the first plaintext representation together with other participants includes: receiving the r-bit numerical values ​​of each element after the first k bits in each Boolean slice disclosed by other participants, and merging them according to the Boolean shared slice merging rule to obtain s plaintext representations corresponding to the first k+r-bit numerical values ​​of each element corresponding to the first plaintext representation; determining the second plaintext representation corresponding to the target element in a specified order based on the size order of the s plaintext representations; and determining the target element based on the element corresponding to the second plaintext representation together with other participants.

[0010] In a further embodiment, determining the target element together with other participants based on the elements corresponding to the first plaintext representation includes: when the element indicated by the current plaintext representation corresponding to the target element is not unique, continuing to disclose the subsequent several digits of the values ​​of the elements corresponding to the current plaintext representation until the element corresponding to the current plaintext representation is unique.

[0011] In one embodiment, when the element corresponding to the first plaintext representation is not unique, determining the target element based on the element corresponding to the first plaintext representation together with other participants includes: determining the first and second orders of the largest element and the smallest element in the random data set respectively, based on the size order of the t plaintext representations, and determining the first sub-shard of the largest element and the second sub-shard of the smallest element through security comparison with other participants, and the first sub-shard and the first sub-shard of the smallest element each constitute a shared form of the largest element and the smallest element with other sub-shards held by other participants; based on the first order, the second order, the first sub-shard of the largest element, and the second sub-shard of the smallest element, determine the estimated value corresponding to the specified order through security calculation with other participants as the target element.

[0012] In a further embodiment, the estimated value corresponding to the specified order is determined based on the equality of the absolute values ​​of: the ratio of the difference between the estimated value and the maximum element / the minimum element to the difference between the maximum element and the minimum element; the ratio of the difference between the specified order and the first order / the second order to the difference between the first order and the second order.

[0013] In one embodiment, determining the target element based on the element corresponding to the first plaintext representation together with other participants includes: securely determining with other participants the average of the elements corresponding to the first plaintext representation as the target element, thereby locally obtaining a first fragment of the target element.

[0014] In one embodiment, before determining the target element based on the element corresponding to the first plaintext representation together with other participants, the method further includes: sending to other participants the position identifiers of the elements corresponding to the first plaintext representation in the random data set.

[0015] According to a second aspect, a data query method based on multi-party secure computing is provided, which is used for querying a target element in a specified order from a predetermined data set formed and shared by multiple participants, wherein the specified order is used to indicate the size order of the target element in each element of the predetermined data set, and the method is performed by a second party holding the predetermined data set and a second party sharing a shard among the multiple participants, and the method includes:

[0016] The second and shared shards are securely scrambled with other participants based on a secure scrambling protocol to obtain a second scrambled shard, which together with other scrambled shards obtained by securely scrambling other and shared shards with other participants through the secure scrambling protocol constitute a sum-shared form of the scrambled data set for the predetermined data set; the sum-shared form of the scrambled data set among the multiple participants is converted into a Boolean-shared form according to an A2B conversion protocol for converting arithmetic sharing to Boolean sharing with other participants, and a second Boolean shard of the scrambled data set is obtained, which together with other Boolean shards obtained by other participants constitute a Boolean-shared form of the scrambled data set; the first k-bit values ​​of each element in the second Boolean shard are disclosed to a first party among the multiple participants, so that the first party can merge the first k-bit values ​​of each element in the scrambled data set according to the shard merging rule of Boolean sharing to obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the scrambled data set, and determine the first plaintext representation corresponding to the target element; the position identifiers of each element corresponding to the first plaintext representation in the scrambled data set are received from the first party; and the target element is determined based on the position identifiers together with other participants.

[0017] According to a third aspect, a data query device based on multi-party secure computing is provided, which is used for querying a target element in a specified order from a predetermined data set formed and shared by multiple participants, wherein the specified order is used to indicate the size order of the target element in each element of the predetermined data set, and the device is provided in a first party among the multiple participants that holds a first and shared shard of the predetermined data set, and includes:

[0018] A scrambling unit is configured to securely scramble the first and shared shards with other participants based on a secure scrambling protocol to obtain a first scrambled shard, and the first scrambled shard and other scrambled shards obtained by securely scrambling other and shared shards with other participants through the secure scrambling protocol together constitute a scrambled data set for the predetermined data set and a shared form;

[0019] a conversion unit configured to convert the random data set in the sum sharing form of the multiple participants into a Boolean sharing form according to an A2B conversion protocol for converting arithmetic sharing to Boolean sharing with other participants, and obtain a first Boolean slice of the random data set, wherein the first Boolean slice and other Boolean slices obtained by other participants constitute the Boolean sharing form of the random data set;

[0020] A receiving unit is configured to receive the first k-bit values ​​of each element disclosed by other participants for the local Boolean shard, and obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the random data set according to the Boolean shared shard merging rule, and a single plaintext representation corresponds to at least one element in the random data set;

[0021] A screening unit is configured to determine a first plaintext representation corresponding to the target element in a specified order based on the size order of the t plaintext representations;

[0022] A determination unit is configured to determine the target element together with other participants based on the elements corresponding to the first plaintext representation.

[0023] According to a fourth aspect, a data query device based on multi-party secure computing is provided, which is used for querying a target element in a specified order from a predetermined data set formed and shared by multiple participants, wherein the specified order is used to indicate the size order of the target element in each element of the predetermined data set, and the device is provided in a second party among the multiple participants that holds the predetermined data set and a second party that shares the shards, including:

[0024] A scrambling unit is configured to securely scramble the second and shared shards with other participants based on a secure scrambling protocol to obtain second scrambled shards, and the second scrambled shards and other scrambled shards obtained by securely scrambling other and shared shards with other participants through the secure scrambling protocol together constitute a scrambled data set for the predetermined data set and a shared form;

[0025] a conversion unit configured to convert the random data set in the sum sharing form of the multiple participants into a Boolean sharing form according to an A2B conversion protocol for converting arithmetic sharing to Boolean sharing with other participants, and obtain a second Boolean slice of the random data set, wherein the second Boolean slice and other Boolean slices obtained by other participants constitute the Boolean sharing form of the random data set;

[0026] A sending unit is configured to disclose the first k-bit values ​​of each element in the second Boolean slice to at least a first party among multiple participants, so that the first party can merge the first k-bit values ​​of each element in the random data set according to the Boolean shared slice merging rule to obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the random data set, and determine the first plaintext representation corresponding to the target element;

[0027] A receiving unit, configured to receive from the first party respective position identifiers of respective elements corresponding to the first plaintext representation in the random data set;

[0028] A determination unit is configured to determine the target element based on each location identifier together with other participants.

[0029] According to a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method of the first aspect or the second aspect.

[0030] According to a sixth aspect, a computing device is provided, comprising a memory and a processor, wherein an executable code is stored in the memory, and when the processor executes the executable code, the method of the first aspect or the second aspect is implemented.

[0031] Through the method and device provided by the embodiment of this specification, in the data query process based on multi-party secure computing, in order to query the target elements in the data set that are arranged in a specified order according to the order of data size, the data in the data set can be shuffled in the form of sharing to obtain a shuffled data set, so as to cut off the association between the sorting sequence and the predetermined data set during the sorting process and protect data privacy. Then the arithmetic sharing in the shuffled data set is converted into a Boolean sharing form. In the Boolean sharing form, by publicly disclosing the numerical values ​​on the front part of the arrangement, the front part of the digits can be restored to plain text. In the case where the front part of the arrangement is plain text, the data elements in the shuffled data set can be sorted by intervals, so as to determine the plain text representation corresponding to the sequence interval where the specified order is located, and the plain text representation only corresponds to some data elements in the shuffled data set. In this way, the range of the target element is narrowed. Then the target element is determined within the determined element range. This query method can avoid the huge amount of communication consumed by sorting the shuffled database and improve the efficiency of multi-party secure queries. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0033] Figure 1 A flow chart of a data query method based on multi-party secure computing jointly executed by multiple parties according to one embodiment is shown;

[0034] Figure 2 A flow chart of a data query method based on multi-party secure computing performed by a single participant according to an embodiment is shown;

[0035] Figure 3 A flow chart of a data query method based on multi-party secure computing performed by a single participant according to another embodiment is shown;

[0036] Figure 4 A schematic block diagram showing a data query device based on multi-party secure computing and provided at a single participant according to an embodiment;

[0037] Figure 5 A schematic block diagram of a data query device based on multi-party secure computing and provided at a single participant according to another embodiment is shown. DETAILED DESCRIPTION

[0038] The technical solution provided in this specification is described below in conjunction with the accompanying drawings.

[0039] Secret sharing is also called secret splitting or secret sharing. Its basic principle is to split a secret (such as a key, private data, etc.) into multiple shares and give them to different people for safekeeping. Only when the parties exceeding the threshold number merge their shares can the secret be recovered; the shares obtained from multiple parties less than the threshold number cannot recover any information of the secret. In multi-party secure computing, the threshold number is usually the same as the number of participants, and the shares into which the secret is split can also be called shards.

[0040] Secret sharing is an important means in the process of multi-party secure computing. Several commonly used forms of secret sharing in multi-party secure computing include arithmetic sharing, Boolean sharing, and Yao's sharing. The following takes sharing secret data x as an example to describe various sharing methods.

[0041] Arithmetic sharing is also called sum sharing. In a two-party secure computation, an integer x is divided into two pieces x=x L +x R Modulo 2 N The shared form (translated to [0, 2 N -1] interval) distributed storage in two parties, so that one party does not know x R , the other party does not know x L , neither of the two parties can obtain the complete form of x. Further, the two parties can be expanded to multiple parties, such as x = x1 + x2 + ... + x d Assuming N = 64, a single shard of x in a single participant can be represented by a 64-byte binary number. The way to split a data x into and share forms is, for example, to randomly generate d-1 2 64 The values ​​in the d-1 fragments (such as a randomly generated 64-byte binary number) are recorded as x1, x2, ..., x d-1 , and pair 2 64 (Translate to [0, 2 64 -1] interval) modulo as another slice, such as x d =x-x1-x2-…-x d-1 .

[0042] Boolean sharing is a secret sharing method that performs XOR operations on bits. For example, still taking two participants as an example, assuming that x is a bit of data (with a value of 0 or 1), and In the Boolean sharing form between two participants, x0 and x1 are the two Boolean sharing fragments of x in the two participants, both of which take values ​​of 0 or 1. Indicates XOR operation. A single participant does not know the shard held by another participant, so it cannot infer data x. For data x' consisting of n bits, an n-bit binary number can be randomly generated as the Boolean shared shard of one party (such as x0'). The Boolean shared shard of the other party (such as x1') can be obtained by the XOR result of x' and the Boolean shared shard of the party. Sure.

[0043] Yao's sharing is a sharing method related to garbled circuits (GC), which can be calculated through Boolean circuits. Taking the two participants (garbled party and calculation party) as an example, the garbled party can set a global string R, and the result of R acting on a string representing 0 (such as L0) is a string representing 1 (such as L1), such as the XOR result of R and L0 is L1. For example, a slice x0 of Yao's sharing of secret data x can be a randomly generated string k0, and another slice can be the XOR value k1 of k0 and the result of R acting on x (such as denoted as ).

[0044] The above three sharing methods each have their own advantages and disadvantages. The various sharing methods can also be converted to each other. For example:

[0045] Yao to Boolean Sharing (Yao to Boolean Sharing, abbreviated as Y2B), a single participant locally calculates the XOR result of the Yao shared shard and the string representing 0 as the corresponding Boolean shared shard;

[0046] Boolean to Yao Sharing (B2Y for short), the first party holding the Boolean shard x0 (such as the corresponding obfuscating party) randomly generates the Yao shard k0, and both parties execute the oblivious transfer protocol (OT), and the first party calculates The second party uses its Boolean shard x1 as the selection bit to obtain the Yao shard

[0047] Arithmetic to Yao Sharing (A2Y) is converted to Arithmetic to Yao Sharing. The two parties determine the corresponding Yao shared shards for the two shards x0 and x1 of x, respectively, and obtain the corresponding two sets of Yao shards (x0)0, (x0)1, (x1)0, (x1)1. Then, each party performs the addition operation of the Yao shards locally to obtain two Yao shards of x, such as x Y 0=(x0)0+(x1)0、x Y 1=(x0)1+(x1)1;

[0048] Arithmetic to Boolean Sharing (A2B) can be implemented with Boolean addition circuits (similar to A2Y) or with Arithmetic bit extraction circuits. Since Y2B is free and Yao's sharing is more efficient than Boolean circuits when doing addition, A2Y and Y2B can be used to process the corresponding arithmetic slices in sequence to obtain the corresponding Boolean slices. For example, the arithmetic slice x L Y2B(A2Y(x L )) is processed to obtain the Boolean slice x0;

[0049] etc.

[0050] The conversions between various sharing modes are not listed here one by one.

[0051] In multi-party secure computing, business data is usually shared among all participants. Due to the convenience of calculation, arithmetic sharing (and sharing) is widely used. In the data query business for data sets, you may encounter query business that requires querying in order of size. For example, percentiles and medians (i.e., 50% percentiles) are common statistical indicators that can be used as the basis for specifying the order of target elements. Taking percentiles as an example, given a data set, you can query the values ​​y that are arranged from small to large or from large to small at a predetermined percentile. If the predetermined percentile is 60, it can represent the 60% position. Assuming that the amount of data in the data set is 1000, querying the 60th percentile can represent querying the value ranked in the 600th order in the data set in order of size.

[0052] Assume that both parties hold an arithmetic share (modulo 2 of each element of the vector) of length n. N 's arithmetic share), from which the public 60th percentile value is queried. In conventional technology, in order not to disclose the privacy of each party, each participant can execute a secure shuffle protocol on V, and each obtains the arithmetic share of the shuffled vector V'=shuffle(V). Shuffling the original data set can cut off the correspondence between each element and the elements in the original data set during sorting, thereby protecting the data privacy of the original data set. Then, each party executes a secure sorting protocol on V' (such as a secure sorting protocol based on secure comparison, etc.), and each obtains the arithmetic share of the sorted vector V". In this way, each participant obtains a shard of the arithmetic share of the elements at the local 60th percentile position, and discloses it to other participants. The target element shards disclosed by each participant are then merged (such as summed) to obtain the target element as the query result.

[0053] In the above secure disorder protocol, for example, each participant can generate a permutation relationship, and each permutation relationship processes the data set V in turn, thereby obtaining a disordered data set V'. Taking the multi-party secure computation performed by two participants as an example, the data set V is, for example, an n-dimensional vector, and the two participants correspond to modulo 2 N For two n-dimensional vectors V1 and V2, one participant generates a permutation relationship π0 and the other participant generates a permutation relationship π1. The data set after the disorder is, for example, π0(π1(V1+V2)). The two participants can hold π0(π1(V1)) and π0(π1(V2)) respectively.

[0054] When securely sorting data in a disordered data set, multiple secure comparisons are required, which results in higher communication volume, higher complexity and lower efficiency.

[0055] To this end, this specification is based on a conversion protocol that can be converted from arithmetic sharing to Boolean sharing, and proposes a method for disclosing part of the content of each element in a data set in a Boolean sharing form, so as to obtain a target element according to the order of the disclosed part. This implementation architecture takes into account that the top-ranked bits can divide the range of data, and the arithmetic sharing of data cannot identify the data size range due to translation. By restoring part of the plaintext prefix by disclosing the top-ranked Boolean sharing results, the range of the target element can be narrowed according to the order of prefix size, thereby obtaining a target element of a specified order. In this way, the large data expense of performing a secure comparison of the data in the entire data set can be avoided, which greatly saves data communication volume and improves data query efficiency.

[0056] Reference below Figure 1 A specific example is shown to describe the technical concept of this specification.

[0057] Figure 1 A schematic diagram of a data query process based on multi-party secure computing is shown. The schematic diagram takes two participants as an example to describe a data query method that does not disclose data privacy. Among them, each participant jointly holds a predetermined data set X. The predetermined data set X can be a data set composed of various business data used in the business processing process, or a data set composed of intermediate processing results. For example, when currently processing a business for student grades, the business data here can be student grades, and the predetermined data set X can be a grade data set. In the business processing based on evaluating asset rankings, the business data can be the asset share evaluated for the asset subject, and the predetermined data set X is the asset share data set. In more business scenarios, the data set X can be other business data sets, which are not listed here one by one. The data set X can be represented by various methods such as sets, arrays, vectors, etc., and each element in the data set is represented by a module 2 NThe arithmetic sharing (and sharing) form of the data set X constitutes a modular 2 N The arithmetic sharing (and sharing) form of the data set X is a vector form. For example, when there are two participants, the vector X can have the first shard X in the first participant A and the second participant B respectively. A and the second shard X B , so that (X A +X B )%2 N =X. Here % means modulo.

[0058] The technical concept of this specification is aimed at the data query scenario based on sorting in the data set. For example, data query is performed according to percentile, such as querying the 10th percentile value arranged from large to small. Taking student scores as an example, querying the 10th percentile value from large to small can be querying the student score ranked in the 10th percentile (such as the 100th place among 1,000 students).

[0059] Each participant can be a computer, device or server with certain computing capabilities. Figure 1 As shown, the data query process based on multi-party secure computing is jointly executed by each participant and may include: step 101, securely shuffling each and shared shard based on a secure shuffling protocol, so that each participant obtains each shuffled shard, and each shuffled shard constitutes a shuffled data set for a predetermined data set in the module of multiple participants. N The sum sharing form of the random data set is obtained by converting the sum sharing form of the random data set among the multiple participants into a Boolean sharing form according to the A2B conversion protocol for converting arithmetic sharing to Boolean sharing, so that each Boolean shard of the random data set is obtained at each participant, and each Boolean shard constitutes the Boolean sharing form of the random data set; Step 103, each participant publicly discloses the first k bits of the numerical value of each element in the local Boolean shard, and obtains t plaintext representations corresponding to the first k bits of the numerical value of each element in the random data set according to the shard merging rule of Boolean sharing, and a single plaintext representation corresponds to at least one element in the random data set; Step 104, based on the size order of the t plaintext representations, determine the first plaintext representation corresponding to the target element in a specified order; Step 105, determine the target element based on each element corresponding to the first plaintext representation.

[0060] First, in step 101, each and shared shard is securely shuffled based on the secure shuffle protocol, so that each participant obtains a shuffled shard. Each shuffled shard constitutes a shuffled data set for a predetermined data set in multiple participants, modulo 2 N and shared forms.

[0061] Here, modulo 2 NThe sum of shared slices can be represented by a binary number of N (e.g. 64) bits. N It can usually be understood as a translation to [0, 2 N -1] interval. That is, if the value corresponding to a single shard is greater than 2 N -1, then subtract an integer number of 2 from it. N , or the value corresponding to a single shard is less than 0, then add an integer number of 2 to it. N , thus making a single slice [0, 2 N -1] range.

[0062] Among them, the joint shuffling of the predetermined data set by each data party is the process of disrupting the order of each element in the data set. This is because the elements in the predetermined data set may correspond to specific business objects, and the element values ​​are private data. For example, student grades may be associated with student identification, such as arranging them from small to large by student number. In order to protect data privacy, the data in the data set can be shuffled to cut off the association with the business object. The secure shuffling protocol can be implemented through secret sharing or homomorphic encryption. Since the predetermined data set is in the form of arithmetic sharing among each participant, it means that each element in the data set is in the form of arithmetic sharing among each participant. In the form of and sharing, the shards held by each participant are recorded as and shared shards, for example.

[0063] In the arithmetic sharing form, each participant can perform a random order on each element in the data set X through various conventional techniques, such as each participant generates a random order rule π0, π1, etc. as described above, and performs superimposed random order operations on the data set to obtain the final random order data set. Specifically, each participant can perform the same random order operation on each and shared shards, such as for each and shared shard V i , all execute π0[π1(V i )] to obtain a consistent disordered result as a disordered shard. Since the order of data elements in the disordered data set is disrupted, a single participant cannot restore the order in the predetermined data set, nor can they know the business objects corresponding to the disordered data elements. The subsequent processing process is performed on the disordered data set, thereby effectively protecting data privacy.

[0064] Next, in step 102, according to the A2B conversion protocol for converting arithmetic sharing to Boolean sharing, the sum sharing form of the disordered data set among multiple participants is converted into a Boolean sharing form, so that each participant obtains each Boolean fragment of the disordered data set. Here, each Boolean fragment constitutes the Boolean sharing form of the disordered data set.

[0065] Among them, the module 2 NThe conversion of the sum shared form into the modulo 2 Boolean shared form can be done using the A2B method mentioned above, which will not be repeated here. It is worth noting that since the random data set is composed and shared by each participant, that is, each element in the random data set is composed and shared by each participant, when the shared form is converted, each element in the random data set can be converted separately. A single Boolean shard of the random data set also contains the Boolean sub-shards of each element.

[0066] After converting the sum sharing form into a modulo 2 Boolean sharing form, each participant holds a Boolean sharing slice of each predetermined number of bits (e.g., 64 bits) for a single data element, and the XOR operation result of the Boolean sharing sub-slice of each predetermined number of bits corresponding to each participant for the single element can restore the single element.

[0067] In the Boolean sharing form, a single element can restore the private data by taking the XOR value bit by bit. The XOR result is the binary representation value of the single element. For example, the first four bits of the two Boolean sharing sub-slices of an element are 1101 and 0110 respectively, then the first four bits of the binary representation corresponding to the element are 1011. In the binary representation, assuming that every 4 bits represent a hexadecimal (or decimal, octal, etc.) bit of data, then 1011 corresponds to hexadecimal B (i.e. 11). For a certain data representation method (such as hexadecimal, decimal, octal, binary, etc.), the larger the value of the front position is, the larger the value is. For example, compared with the binary number a=1011 and b=0111, the highest bit of a is greater than the highest bit of b, so a is greater than b. When the values ​​of the front positions are the same, the values ​​of the back positions can be compared, and so on, until the size of the two values ​​is compared. When the number of bits of data is multiple (such as 64 bits), publishing the values ​​of the first few bits will not reveal the value of the data itself.

[0068] Therefore, in step 103, each participant discloses the first k bits of the values ​​of each element in the local Boolean shard, and obtains t plaintext representations corresponding to the first k bits of the values ​​of each element in the shuffled data set according to the Boolean shared shard merging rule. Among them, a single plaintext representation (such as 1101) corresponds to at least one element in the shuffled data set.

[0069] Here, k may be an integer less than the predetermined number of bits of the Boolean shared slice (such as 64), such as 1, 2, 4, etc. For example, when every 4 binary bits represent one bit of a hexadecimal or decimal number, k may be a multiple of 4. For another example, when every 3 binary bits represent one bit of an octal number, k may be a multiple of 3. Similarly, each value may also be directly represented by a binary number, and k may be a multiple of 1. In an optional embodiment, if the elements in the predetermined data set X differ greatly in order of magnitude (such as the difference between the maximum number and the minimum number is greater than the order of magnitude of the predetermined number, such as 4 orders of magnitude), a larger k value (such as 16 bits) may be used, and when the elements in the data set X differ less in order of magnitude (such as the difference between the maximum number and the minimum number is less than the order of magnitude of the predetermined number, such as 2 orders of magnitude), a smaller k value (such as 4 bits) may be used.

[0070] As a specific example, k may be an integer that is not greater than a predetermined ratio of the number of bytes N of a single Boolean sub-slice. For example, if the predetermined ratio is 1 / 4, k may be an integer obtained by rounding down N / 4.

[0071] In practice, the size of k can also be determined according to actual conditions. For example, when N=64, since the student's score is usually a 3-digit number in decimal, and when 4 bits represent a number, at most the last 12 digits are occupied, k can be a number greater than 64-12 but less than 64. For example, if k=48, then the hundreds digit of the student's score can be obtained when each participant discloses the first 56 digits. In particular, since it can be clearly seen that the hundreds digit of the student's score is the 53rd to 56th digits at the end, and the 1st to 52nd digits are all 0, each participant can also set k=4, and set the 53rd digit to the first digit at the front, so that only the binary numbers of the 53rd to 56th digits are disclosed.

[0072] In other examples, other data disclosure methods may be used to disclose the values ​​of the first k bits in each Boolean shared slice. Since the data elements in the data set X have been securely shuffled in step 101, disclosing the first k bits of each element in the shuffled data set will not disclose the privacy of the specific business object.

[0073] In addition, based on the principle of Boolean sharing, the shard merging rule of Boolean sharing is to perform bitwise XOR operations. It is worth noting that each participant can disclose the first k bits of the local data to each participant, and each participant can execute the shard merging rule of Boolean sharing to obtain the corresponding plaintext representation. Each participant can also disclose the first k bits of the local data to a single negotiated participant, such as the first party, and the single participant can execute the shard merging rule of Boolean sharing to obtain the corresponding plaintext representation. The single plaintext representation can be a binary number (such as 1111) obtained according to the merging rule of Boolean sharing, or it can be converted into decimal (such as 15) or hexadecimal (such as F), octal (such as 17), etc. for sorting, which is not limited in this specification.

[0074] It is worth noting that this specification does not require that the plain text representation here is consistent with the value of the element itself. For example, in each Boolean slice corresponding to a single element, the result of the XOR operation of every 4 bits can restore the 4 bits of the corresponding element, and k in the above text can be 3. Assuming that the original value of an element is 451, it can be represented as 12 bits of data 010001010001, and the plain text representation 010 restored from the first 3 bits may be converted into the octal number 2, not 4, and the two are not consistent.

[0075] In the plaintext representations of each element where the first k digits are numerical values, the same plaintext representation may exist. For example, when k=4, the first k digits may correspond to the plaintext representations 1111, 1101, 1110, and so on. If t digits are recorded, t is not greater than k. In other words, a single plaintext representation may correspond to one or more elements in the disordered data set. Assume that the number of elements corresponding to each plaintext representation may be: 10 corresponding to the plaintext representation 1111, 40 corresponding to the plaintext representation 1110, 60 corresponding to the plaintext representation 1101, and so on.

[0076] Thus, in step 104, based on the size order of the t plaintext representations, the first plaintext representation corresponding to the target element is determined in a specified order.

[0077] It can be understood that the number of elements corresponding to a single plaintext representation can be counted and sorted by size. For example, when k=4, from large to small (such as student scores from high to low), the element with the first k digits of 1111 is ranked before the element with the first k digits of 1110, and the order from large to small is 1111, 1110, 1101...0001, etc.

[0078] Furthermore, according to the number of elements corresponding to each plaintext representation, the range of the arrangement order of the plaintext representation can be estimated. For example, when k=4, the number of elements corresponding to each value of the first k digits is: 10 corresponding to 1111, 40 corresponding to 1110, 60 corresponding to 1101...90 corresponding to 0001. Then, in the case of sorting from large to small, it can be estimated that the arrangement order of each element corresponding to the plaintext representation 1111 is 1 to 10, the arrangement order of each element corresponding to the plaintext representation 1110 is 11 to 50, the arrangement order of each element corresponding to the plaintext representation 1101 is 51 to 110... In the case of calculation based on quantiles, the corresponding quantile range can also be estimated according to the total number of elements n in the disordered data set. Taking percentiles as an example, the above sequence is divided by the total number of elements n and converted into a percentage to get the corresponding percentile range. For example, if n=1000, the above sequence is divided by 1000 to get the percentile range: the plain text representation of 1111 corresponds to the 0th to 1st percentile (inclusive), the plain text representation of 1110 corresponds to the 1st percentile (exclusive) to the 5th percentile (inclusive), the plain text representation of 1101 corresponds to the 5th percentile (exclusive) to the 11th percentile (inclusive)…

[0079] In this way, the plaintext representation corresponding to the target element can be determined according to the specified order, for example, recorded as the first plaintext representation. Since the elements with the same first k bits cannot be distinguished temporarily, the plaintext representation corresponding to the order range in which the specified order falls can be determined as the first plaintext representation. For example, if the current specified order is percentile 6, it can correspond to the order range from the 5th percentile to the 11th percentile, that is, the first plaintext representation is 1101, and the elements corresponding to the first plaintext representation 1101 can constitute candidate elements.

[0080] It is worth noting that the process of merging t plaintext representations corresponding to the first k-bit values ​​of each element in step 103 and determining the first plaintext representation corresponding to the target element in step 104 can be executed locally by each participant at the same time, or by a single participant, and the execution results can be synchronized to other data parties, which is not limited here.

[0081] Furthermore, through step 105, the target element is determined based on each element corresponding to the first plaintext representation.

[0082] It can be understood that in a preferred case, the first plaintext represents a unique element, and the target element can be directly obtained according to the Boolean shared shards or the shared shards of the element in each participant. The target element can continue to be shared or restored to plaintext, which is determined according to business needs and privacy protection requirements and is not limited here.

[0083] In general, there are multiple elements corresponding to the first plaintext representation (ie, not unique), and obtaining the target element can be divided into two situations: obtaining an exact value and estimating a value.

[0084] In a possible design, in order to accurately estimate the target element, the r bits after the above k bits in the Boolean shared slice can be further disclosed for the elements in the target subset. Among them, r can be equal to k or not equal to k. For example, r can be less than k to reduce the speed of data disclosure. For example, if the first plaintext representation 1101 corresponds to multiple elements, then r=4 bits of these multiple elements can be further disclosed to obtain their k+s bits of plaintext in the Boolean shared slice, that is, to obtain their plaintext representation corresponding to the first k+r bits, such as 11011001, 11010011, etc. Assuming that the number of plaintext representations of these elements is s, then s is less than or equal to the number of elements corresponding to the first plaintext representation 1101. In this way, combined with the ranking of each element corresponding to the first plaintext representation in the entire data set (such as the 5th to 11th percentile), the range of elements corresponding to the target element of the specified order can be further narrowed. At this time, each of the s plaintext representations corresponds to a size sorting range in the entire predetermined data set or the disordered data set, such as 11011001 corresponding to the 5th to 7th percentile, 11010011 corresponding to the 9th to 10th percentile, etc. According to the order range (such as the 5th to 7th percentile) into which the specified order (such as the 6th percentile) falls in the s plaintext representations, the corresponding plaintext representation (such as the second plaintext representation) can further limit the candidate elements of the target element to the elements corresponding to the second plaintext representation.

[0085] If the element indicated by the second plaintext representation is unique, the target element can be obtained directly according to the Boolean shared slices or the shared slices of the element in each participant. Otherwise, if the element indicated by the second plaintext representation is not unique, the element indicated by the second plaintext representation can be iteratively narrowed (i.e., the values ​​of the subsequent bits of these elements are continuously disclosed) until the current plaintext representation obtained corresponding to the specified sequence corresponds to only one element.

[0086] In another possible design, an estimated value may be obtained as a target element based on each element corresponding to the first plain text representation.

[0087] In one embodiment, each participant can determine the mean of the element corresponding to the first plaintext representation as the target element based on secure calculation in a shared form. For example, each participant can calculate the mean of the local and shared form slices of each element to obtain a slice of the target element. Thus, each slice of the target element obtained by each participant constitutes the target element and the shared form. As described above, whether the target element and the shared form are publicly obtained to obtain the target element plaintext is optional.

[0088] In another embodiment, when the element values ​​in the predetermined data set are distributed according to a predetermined rule (such as uniform distribution), according to the number of elements corresponding to the aforementioned t plain text representations, the target element can be estimated based on the position of the specified order in the order range corresponding to the first plain text representation. Taking the uniform distribution of element values ​​in the predetermined data set as an example, the principle on which it is based is that, assuming that among the elements corresponding to the first plain text representation, the largest element and the smallest element are 600 and 540 respectively, and the corresponding percentiles are 5 (such as recorded as the first order) and 11 (such as recorded as the second order), and the specified order of the target element is the 6th percentile, the target element can be estimated by the following principle: |(largest element L0-target element estimated value L x ) / (largest element L0-smallest element L1)|=|(first order F0-specified order F x ) / (first order F0-second order F1)|. In this way, L0=600, L1=540, F0=5, F1=11, F x =6, etc., we can get the estimated value of the target element L x =L0-(L0-L1)×(F0-F x ) / (F0-F1)=600-(600-540)×(5-6) / (5-11)=590.

[0089] Similarly, when the element values ​​in the predetermined data set have other predetermined distributions, the estimated value of the target element may also be determined according to the principles of other predetermined distributions, which will not be described in detail here.

[0090] It is worth noting that, according to the estimation accuracy requirements, each participant can also disclose the values ​​of subsequent bits of each element in the iteration described above, and make an estimate again when the predetermined conditions are met (the number of elements corresponding to the current plaintext representation corresponding to the specified sequence does not exceed a predetermined threshold, such as 10).

[0091] Reviewing the above process, the technical concept provided by this specification, in the data query process based on multi-party secure computing, in order to query the target elements in the data set arranged in the specified order according to the order of data size, the data in the data set can be shuffled in the form of sharing to obtain a shuffled data set, so as to cut off the association between the sorting sequence and the predetermined data set during the sorting process and protect data privacy. Then the arithmetic sharing in the shuffled data set is converted into a Boolean sharing form. In the Boolean sharing form, by publicly disclosing the numerical values ​​on the front part of the arrangement, the front part of the arrangement can be restored to plain text. In the case where the front part of the arrangement is plain text, the data elements in the shuffled data set can be sorted by interval, so as to determine the plain text representation corresponding to the sequence interval where the specified order is located, and the plain text representation only corresponds to some data elements in the shuffled data set. In this way, the range of the target element is narrowed. Then the target element is determined within the determined element range. This query method can avoid the huge amount of communication consumed by sorting the shuffled database and improve the efficiency of multi-party secure query.

[0092] Figure 2 The data query process based on multi-party secure computing is shown from the perspective of one of the participants (hereinafter referred to as the first party). The execution subject of the process can be a device, computer or server with certain data processing capabilities. The participant and other participants together query the target element of the specified order from the data set in the shared form of each participant.

[0093] like Figure 2 As shown, the data query process performed by a single participant in a multi-party secure computation may include:

[0094] Step 201, securely shuffle the first and shared shards with other participants based on a secure shuffle protocol to obtain a first shuffled shard, and the first shuffled shard and other shuffled shards obtained by securely shuffle the first shard and other participants through the secure shuffle protocol constitute a shuffled data set for a predetermined data set and a shared form;

[0095] Step 202: Convert the sum sharing form of the disordered data set among multiple participants into a Boolean sharing form according to the A2B conversion protocol for converting arithmetic sharing into Boolean sharing with other participants, and obtain a first Boolean shard of the disordered data set. The first Boolean shard and other shards obtained by other participants constitute the Boolean sharing form of the disordered data set;

[0096] Step 203, receiving the first k-bit values ​​of each element in each Boolean shard disclosed by other participants, and obtaining t plaintext representations corresponding to the first k-bit values ​​of each element in the random data set according to the Boolean shared shard merging rule, and a single plaintext representation corresponds to at least one element in the random data set;

[0097] Step 204, based on the size order of the t plaintext representations, determine the first plaintext representation corresponding to the target element in a specified order;

[0098] Step 205: Determine the target element together with other participants based on the elements corresponding to the first plaintext representation.

[0099] Among them, in the Figure 1 In the description of , it is mentioned that each participant can determine the corresponding t plaintext representations according to the first k bits of the Boolean fragments of the elements disclosed in the same way, and sort the plaintext representations to determine the first plaintext representation corresponding to the specified order. A single participant can also determine the first plaintext representation and the corresponding element according to the first k bits of the Boolean fragments of the elements disclosed by other participants and send them to other participants. Here, Figure 2 The process shown can be used for any participant of the former, and for the single participant of the latter, while Figure 3 The process shown in the embodiment can be used for any of the other participants in the latter.

[0100] like Figure 3 As shown, the execution subject of the process is recorded as the second party, and the shared shards held by the second party are recorded as the second shared shards. The process includes:

[0101] Step 301, securely shuffle the second and shared shards with other participants based on a secure shuffle protocol to obtain second shuffled shards, and the second shuffled shards and other shuffled shards obtained by securely shuffle other and shared shards with other participants through the secure shuffle protocol constitute a shuffled data set for a predetermined data set and a shared form;

[0102] Step 302: Convert the sum sharing form of the disordered data set among multiple participants into a Boolean sharing form according to the A2B conversion protocol for converting arithmetic sharing into Boolean sharing with other participants, and obtain a second Boolean slice of the disordered data set. The second Boolean slice and other Boolean slices obtained by other participants constitute the Boolean sharing form of the disordered data set;

[0103] Step 303: disclose the first k-bit values ​​of each element in the second Boolean slice to at least the first party among the multiple participants, so that the first party can merge the first k-bit values ​​of each element in the scrambled data set according to the Boolean shared slice merging rule to obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the scrambled data set, and determine the first plaintext representation corresponding to the target element;

[0104] Step 304, receiving from the first party the position identifiers of the elements corresponding to the first plaintext representation in the random data set;

[0105] Step 305: determine the target element based on each location identifier together with other participants.

[0106] It is worth mentioning that Figure 2 , Figure 3 The process shown can be Figure 1 A process performed by a single participant in Figure 1 The operations performed by a single participant in the process shown can be adapted accordingly. Figure 2 , Figure 3 Shows the flow of operations performed by a single participant.

[0107] According to another embodiment, a data query device based on multi-party secure computing and arranged at a computing party is also provided. Figure 4 , Figure 5 Different embodiments of data query devices 400 and 500 based on multi-party secure computing are respectively shown.

[0108] like Figure 4 As shown, the device 400 provided at the first party holding the predetermined data set and the first party sharing the shard among the multiple parties includes:

[0109] The shuffling unit 401 is configured to perform secure shuffling on the first and shared shards with other participants based on a secure shuffling protocol to obtain a first shuffled shard of a shuffled data set for a predetermined data set, and the first shuffled shard and other shuffled shards obtained by performing secure shuffling on other and shared shards with other participants through the secure shuffling protocol constitute a shuffled data set and a shared form;

[0110] The conversion unit 402 is configured to convert the sum sharing form of the disordered data set among multiple participants into a Boolean sharing form according to the A2B conversion protocol for converting arithmetic sharing to Boolean sharing with other participants, and obtain a first Boolean slice of the disordered data set, and the first Boolean slice and other Boolean slices obtained by other participants constitute the Boolean sharing form of the disordered data set;

[0111] The receiving unit 403 is configured to receive the first k-bit values ​​of each element disclosed by other participants for the local Boolean shard, and obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the shuffled data set according to the Boolean shared shard merging rule, and a single plaintext representation corresponds to at least one element in the shuffled data set;

[0112] A screening unit 404 is configured to determine a first plaintext representation corresponding to the target element in a specified order based on the size order of the t plaintext representations;

[0113] The determination unit 405 is configured to determine the target element together with other participants based on the elements corresponding to the first plaintext representation.

[0114] like Figure 5As shown, the device 500 provided at the second party holding the predetermined data set and the second party sharing the shard among the plurality of participants includes:

[0115] The disorder unit 501 is configured to perform secure disordering on the second and shared shards with other participants based on the secure disordering protocol to obtain second disordered shards, and the second disordered shards and other disordered shards obtained by performing secure disordering on other and shared shards with other participants through the secure disordering protocol constitute a disordered data set for a predetermined data set and a shared form;

[0116] The conversion unit 502 is configured to convert the sum sharing form of the disordered data set among multiple participants into a Boolean sharing form according to the A2B conversion protocol for converting arithmetic sharing to Boolean sharing with other participants, and obtain a second Boolean slice of the disordered data set, and the second Boolean slice and other Boolean slices obtained by other participants constitute the Boolean sharing form of the disordered data set;

[0117] The sending unit 503 is configured to disclose the first k-bit values ​​of each element in the second Boolean slice to at least the first party among the multiple participants, so that the first party can merge the first k-bit values ​​of each element in the scrambled data set according to the Boolean shared slice merging rule to obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the scrambled data set, and determine the first plaintext representation corresponding to the target element;

[0118] A receiving unit 504 is configured to receive, from the first party, respective position identifiers of respective elements corresponding to the first plaintext representation in the scrambled data set;

[0119] The determination unit 505 is configured to determine the target element based on each location identifier together with other participants.

[0120] It is worth mentioning that Figure 4 , Figure 5 The devices 400 and 500 shown are respectively Figure 2 , Figure 3 The method described corresponds to Figure 2 , Figure 3 The corresponding description in the method embodiment is also applicable to devices 400 and 500, and will not be repeated here.

[0121] According to another embodiment, there is also provided a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute a combination of Figure 2 , Figure 3 The method described by et al.

[0122] According to another embodiment of the present invention, a computing device is provided, including a memory and a processor. The memory stores executable code. When the processor executes the executable code, the Figure 2 , Figure 3 The method described by et al.

[0123] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of this specification can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0124] The above specific implementation methods further explain in detail the purpose, technical solutions and beneficial effects of the technical concept of this specification. It should be understood that the above are only specific implementation methods of the technical concept of this specification, and are not used to limit the protection scope of the technical concept of this specification. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of this specification should be included in the protection scope of the technical concept of this specification.

Claims

1. A data query method based on multi-party secure computing, which is used to query a target element in a specified order from a predetermined data set formed and shared by multiple participants, wherein the specified order is used to indicate the order of the target element in each element of the predetermined data set, and the method is executed by the first party holding the first and shared shards of the predetermined data set among the multiple participants, and the method include: Performing secure shuffling of the first and shared shards with other participants based on a secure shuffling protocol to obtain a first shuffled shard, and the first shuffled shard and other shuffled shards obtained by performing secure shuffling of other and shared shards with other participants through the secure shuffling protocol together constitute a shuffled data set for the predetermined data set and a shared form; With other participants, according to the A2B conversion protocol for converting arithmetic sharing to Boolean sharing, convert the random data set in the sum sharing form of the multiple participants into a Boolean sharing form, and obtain a first Boolean shard of the random data set, which constitutes the Boolean sharing form of the random data set together with other Boolean shards obtained by other participants; Receive the first k-bit values ​​of each element disclosed by other participants for their local Boolean shards, and obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the shuffled data set according to the Boolean shared shard merging rule, where a single plaintext representation corresponds to at least one element in the shuffled data set; Determine, based on the size order of the t plaintext representations, a first plaintext representation corresponding to the target element in a specified order; The target element is determined together with other participants based on the elements corresponding to the first plaintext representation.

2. The method according to claim 1, in, The secure out-of-order protocol is implemented by secret sharing or homomorphic encryption.

3. The method according to claim 1, in, The first Boolean shard includes each Boolean sub-shard corresponding to each element in the random data set. The Boolean shared shard merging rule for a single element is to perform an XOR operation on the Boolean sub-shards corresponding to the single element in each Boolean shared shard.

4. The method according to claim 1, in, The determining, based on the size order of the t plaintext representations, in a specified order, the first plaintext representation corresponding to the target element comprises: Counting the number of elements corresponding to the t plaintext representations; When the t plaintext representations are arranged in order of size, the first plaintext representation corresponding to the specified order is determined using the number of elements.

5. The method according to claim 1, in, In a case where the element corresponding to the first plaintext representation is not unique, determining the target element together with other participants based on the elements corresponding to the first plaintext representation includes: Receive the r-bit values ​​of each element after the first k bits in each Boolean slice publicly disclosed by other participants, and merge them according to the Boolean shared slice merging rule to obtain s plaintext representations corresponding to the first k+r-bit values ​​of each element corresponding to the first plaintext representation; Determine, based on the size order of the s plaintext representations, a second plaintext representation corresponding to the target element in a specified order; The target element is determined together with other participants based on the element corresponding to the second plaintext representation.

6. The method according to claim 5, in, Determining the target element together with other participants based on the elements corresponding to the first plaintext representation includes: In the case that the element indicated by the plaintext representation corresponding to the target element is not unique, the subsequent several digits of the values ​​of the elements corresponding to the plaintext representation corresponding to the target element continue to be disclosed until the element corresponding to the plaintext representation corresponding to the target element is unique.

7. The method according to claim 1, in, In a case where the element corresponding to the first plaintext representation is not unique, determining the target element together with other participants based on the elements corresponding to the first plaintext representation includes: Based on the size order of the t plaintext representations, determine the first order and second order of the largest element and the smallest element in the plurality of elements corresponding to the first plaintext representation in the random data set, and determine the first sub-shard of the largest element and the second sub-shard of the smallest element through security comparison with other participants. The first sub-shard and the first sub-shard of the smallest element each constitute a shared form of the largest element and the smallest element with other sub-shards held by other participants; Based on the first order, the second order, the first sub-shard of the maximum element, and the second sub-shard of the minimum element, determine with other participants through secure calculation an estimated value corresponding to the specified order as the target element.

8. The method according to claim 7, in, The estimated value corresponding to the specified order is determined based on the equality of the absolute values ​​of the following two items: a ratio of a difference between the estimated value and the maximum element / the minimum element to a difference between the maximum element and the minimum element; The ratio of the difference between the specified order and the first order / second order to the difference between the first order and the second order.

9. The method according to claim 1, in, Determining the target element together with other participants based on the elements corresponding to the first plaintext representation includes: Securely determine with other participants the average of the elements corresponding to the first plaintext representation as the target element, thereby locally obtaining a first fragment of the target element.

10. The method according to claim 1, in, Before determining the target element together with other participants based on the elements corresponding to the first plaintext representation, the method further includes: Sending to other participants the position identifiers of the elements corresponding to the first plaintext representation in the random data set.

11. A data query method based on multi-party secure computing, which is used to query a target element in a specified order from a predetermined data set formed and shared by multiple participants, wherein the specified order is used to indicate the order of the target element in each element of the predetermined data set, and the method is executed by a second party among the multiple participants who holds the predetermined data set and a second party who shares a shard, and the method include: Performing secure shuffling of the second and shared shards with other participants based on a secure shuffling protocol to obtain second shuffled shards, and the second shuffled shards and other shuffled shards obtained by performing secure shuffling of other and shared shards with other participants through the secure shuffling protocol together constitute a shuffled data set for the predetermined data set and a shared form; With other participants, according to the A2B conversion protocol for converting arithmetic sharing to Boolean sharing, convert the random data set in the sum sharing form of the multiple participants into a Boolean sharing form, and obtain a second Boolean slice of the random data set, which constitutes the Boolean sharing form of the random data set together with other Boolean slices obtained by other participants; Disclosing the first k-bit values ​​of each element in the second Boolean slice to a first party among multiple participants, so that the first party can merge the first k-bit values ​​of each element in the random data set according to the Boolean shared slice merging rule to obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the random data set, and determine the first plaintext representation corresponding to the target element; receiving from the first party respective position identifiers of respective elements corresponding to the first plaintext representation in the random data set; The target element is determined based on each location identifier together with other participants.

12. A data query device based on multi-party secure computing, used for the process of querying a target element in a specified order from a predetermined data set formed and shared by multiple participants, wherein the specified order is used to indicate the order of the target element in each element of the predetermined data set, and the device is provided in the first party among the multiple participants who holds the first and shared shards of the predetermined data set, include: A scrambling unit is configured to securely scramble the first and shared shards with other participants based on a secure scrambling protocol to obtain a first scrambled shard, and the first scrambled shard and other scrambled shards obtained by securely scrambling other and shared shards with other participants through the secure scrambling protocol together constitute a scrambled data set for the predetermined data set and a shared form; a conversion unit configured to convert the random data set in the sum sharing form of the multiple participants into a Boolean sharing form according to an A2B conversion protocol for converting arithmetic sharing to Boolean sharing with other participants, and obtain a first Boolean slice of the random data set, wherein the first Boolean slice and other Boolean slices obtained by other participants constitute the Boolean sharing form of the random data set; A receiving unit is configured to receive the first k-bit values ​​of each element disclosed by other participants for the local Boolean shard, and obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the random data set according to the Boolean shared shard merging rule, and a single plaintext representation corresponds to at least one element in the random data set; A screening unit is configured to determine a first plaintext representation corresponding to the target element in a specified order based on the size order of the t plaintext representations; A determination unit is configured to determine the target element together with other participants based on the elements corresponding to the first plaintext representation.

13. A data query device based on multi-party secure computing, used for querying a target element in a specified order from a predetermined data set formed and shared by multiple participants, wherein the specified order is used to indicate the order of the target element in each element of the predetermined data set, and the device is provided in a second party among the multiple participants that holds the predetermined data set and a second party that shares the shards, include: A scrambling unit is configured to securely scramble the second and shared shards with other participants based on a secure scrambling protocol to obtain second scrambled shards, and the second scrambled shards and other scrambled shards obtained by securely scrambling other and shared shards with other participants through the secure scrambling protocol together constitute a scrambled data set for the predetermined data set and a shared form; a conversion unit configured to convert the random data set in the sum sharing form of the multiple participants into a Boolean sharing form according to an A2B conversion protocol for converting arithmetic sharing to Boolean sharing with other participants, and obtain a second Boolean slice of the random data set, wherein the second Boolean slice and other Boolean slices obtained by other participants constitute the Boolean sharing form of the random data set; A sending unit is configured to disclose the first k-bit values ​​of each element in the second Boolean slice to at least a first party among multiple participants, so that the first party can merge the first k-bit values ​​of each element in the random data set according to the Boolean shared slice merging rule to obtain t plaintext representations corresponding to the first k-bit values ​​of each element in the random data set, and determine the first plaintext representation corresponding to the target element; A receiving unit, configured to receive from the first party respective position identifiers of respective elements corresponding to the first plaintext representation in the random data set; A determination unit is configured to determine the target element based on each location identifier together with other participants.

14. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 11.

15. A computing device comprising a memory and a processor, It is characterized in that The memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 11 is implemented.