Method and system for secure multi-party computing

By using secret sharing technology in secure multi-party computation, the problem of increased cost and reduced efficiency of encrypted circuit methods is solved, efficient secure multi-party computation is achieved, and the correctness and security of the calculation are ensured through information verification.

CN111506933BActive Publication Date: 2024-09-06FIFTH CENTURY DIGITAL TECHNOLOGY (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010470354.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-28
Publication Date
2024-09-06
Estimated Expiration
2040-05-28

AI Technical Summary

Technical Problem

Existing technologies that implement secure multi-party computation through encrypted circuits increase costs and reduce efficiency and performance, and require complex preprocessing when the number of malicious users is greater than honest users, and are difficult to verify at non-computing parties.

Method used

Adopting a method based on secret sharing, by splitting the digital value into multiple shared secrets and deploying them on the terminal device, these shared secrets are used for calculations to ensure that the input information of each user is not leaked, and the calculation results are calculated through the terminal device get the final result.

Benefits of technology

It achieves secure multi-party computation without increasing costs and improving efficiency, avoids complex pre-processing processes, ensures calculation correctness through information verification, and improves security and verifiability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111506933B
    Figure CN111506933B
Patent Text Reader

Abstract

The present application discloses a method and system for secure multi-party computing. The method for implementing secure multi-party computing based on secret sharing includes: receiving digital values ​​mastered by respective users from respective corresponding users through terminal devices corresponding to respective users; deploying shared secrets corresponding to the received digital values ​​on the terminal devices; calculating the operation results corresponding to each terminal device according to the set shared secrets and the calculation rules of multi-party computing through each terminal device, wherein the calculation rules are used to obtain the operation results of secure multi-party computing according to the digital values ​​mastered by the users; and calculating the operation results of multi-party computing according to the operation results corresponding to each terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and system for secure multi-party computing. Background Art

[0002] Secure multi-party computing refers to the situation where multiple participants use their own data to perform calculations according to common calculation rules without a trusted third party, so that all participants can jointly calculate the calculation results without leaking the input information of each party. At present, the most commonly used method in secure multi-party computing is to use encrypted circuits.

[0003] However, to implement secure multi-party computing through encryption circuits, the function to be calculated needs to be represented as a logic circuit, and encryption operations need to be performed on each logic gate of the logic circuit one by one. Therefore, this implementation method of secure multi-party computing will increase the cost of secure multi-party computing while reducing the efficiency and performance of secure multi-party computing. At the same time, the implementation of secure multi-party computing to deal with the number of malicious users being greater than that of honest users requires a complex preprocessing process, which will also reduce the performance of secure multi-party computing.

[0004] In addition, the process of secure multi-party computing needs to be verified at non-computing parties to enable non-computing parties to audit the correctness of the calculation. This is difficult to achieve for the solution of implementing secure multi-party computing with encrypted circuits.

[0005] There is currently no effective solution to the technical problem in the above-mentioned prior art that implementing secure multi-party computing through encryption circuits increases the cost of secure multi-party computing and reduces the efficiency and performance of secure multi-party computing, the technical problem that secure multi-party computing when the number of malicious users is greater than that of honest users requires a complex preprocessing process, and the technical problem of performing verification at non-computing parties in secure multi-party computing. Summary of the invention

[0006] The embodiments of the present disclosure provide a method and system for secure multi-party computing to at least solve the technical problems existing in the prior art of increasing the cost of secure multi-party computing and reducing the efficiency and performance of secure multi-party computing by implementing secure multi-party computing through encryption circuits, as well as the technical problems of large preprocessing overhead and non-computing parties verifying the correctness of the calculation.

[0007] According to one aspect of an embodiment of the present disclosure, a method for implementing secure multi-party computing based on secret sharing is provided, comprising: 1 To P n Corresponding terminal device T 1 To T n , from their respective corresponding users P 1 To Pn Receive the digital value Q of each corresponding user 1 To Q n ; In the terminal device T 1 To T n The received digital value Q is respectively deployed on 1 To Q n The corresponding shared secret Q i,j , where Q i,j Indicates that at the jth terminal device T j The deployed terminal device T i The received digital value Q i Related shared secrets, n is a natural number greater than 1, i = 1 ~ n, j = 1 ~ n, and through the shared secret Q i,1 To Q i,n Can restore the i-th terminal device T i The received digital value Q i ; Through terminal device T 1 To T n Each terminal device T i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and terminal device T i The corresponding operation result Z i , wherein the calculation rule is used to calculate the digital value Q mastered by the n users i Get the calculation result Z of the secure multi-party computation; and i The corresponding operation result Z i , calculate and obtain the operation result Z of the multi-party calculation.

[0008] According to another aspect of the embodiment of the present disclosure, a system for implementing secure multi-party computing based on secret sharing is provided, comprising: 1 To P n Corresponding terminal device T 1 To T n The system is configured to perform the following operations: 1 To P n Corresponding terminal device T 1 To T n , from their respective corresponding users P 1 To P n Receive the digital value Q of each corresponding user 1 To Q n ; In the terminal device T 1 To T n The received digital value Q is respectively deployed on 1 To Qn The corresponding shared secret Q i,j , where Q i,j Indicates that at the jth terminal device T j The deployed terminal device T i The received digital value Q i Related shared secrets, n is a natural number greater than 1, i = 1 ~ n, j = 1 ~ n, and through the shared secret Q i,1 To Q i,n Can restore the i-th terminal device T i The received digital value Q i ; Through terminal device T 1 To T n Each terminal device T i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and terminal device T i The corresponding operation result Z i , wherein the calculation rule is used to calculate the digital value Q mastered by the n users i Get the calculation result Z of the secure multi-party computation; and i The corresponding operation result Z i , calculate and obtain the operation result Z of the multi-party calculation.

[0009] Therefore, according to this embodiment, secure multi-party computing is achieved by using secret sharing, so that each user P 1 To P n Under the premise that the acquired values ​​are not leaked, these values ​​can still be used for calculation and finally obtain the calculation results. In addition, in this way, it is no longer necessary to implement secure multi-party computing through encryption circuits, thereby solving the technical problem in the prior art that implementing secure multi-party computing through encryption circuits increases the cost of secure multi-party computing and reduces the efficiency and performance of secure multi-party computing. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present application. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:

[0011] Figure 1 is a hardware structure block diagram of a computing device for implementing the method according to an embodiment of the present disclosure;

[0012] Figure 2 is a schematic diagram of a secure multi-party computing system according to an embodiment of the present disclosure;

[0013] Figure 3 is a flowchart of a secure multi-party computing method according to the first aspect of an embodiment of the present disclosure;

[0014] Figure 4 is a schematic diagram of a shared secret corresponding to a digital value deployed in each terminal device according to an embodiment of the present disclosure;

[0015] Figure 5 is a schematic diagram of obtaining a calculation result through secure multi-party computing according to an embodiment of the present disclosure;

[0016] Fig. 6A is a schematic diagram of a shared secret in two terminal devices when a multiplication operation is performed on digital values ​​in two terminal devices according to an embodiment of the present disclosure; and

[0017] Figure 6B is a schematic diagram of two terminal devices after assigning a triplet of shared secrets according to an embodiment of the present disclosure;

[0018] Figure 6C is a schematic diagram of three terminal devices after being assigned a shared secret of a triplet according to an embodiment of the present disclosure; and

[0019] Figure 7 It is a schematic diagram of deploying an information verification digital value and a corresponding shared secret verification digital value on a terminal device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.

[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0022] According to this embodiment, a method embodiment of a method for implementing secure multi-party computing based on secret sharing is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0023] The method embodiment provided in this embodiment can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Figure 1 The hardware structure block diagram of a computing device for implementing a method for implementing secure multi-party computing based on secret sharing is shown. Figure 1 As shown, the computing device may include one or more processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, and a transmission device for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0024] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be incorporated in whole or in part into any of the other components of the computing device. As involved in the embodiments of the present disclosure, the data processing circuitry acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0025] The memory can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the method for implementing secure multi-party computing based on secret sharing in the embodiment of the present disclosure. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the method for implementing secure multi-party computing based on secret sharing of the above-mentioned application program. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0026] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computing device. In one example, the transmission device includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.

[0027] The display may be, for example, a touch screen liquid crystal display (LCD) that may enable a user to interact with a user interface of the computing device.

[0028] It should be noted that, in some optional embodiments, the above Figure 1 The computing device shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware elements and software elements. Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computing devices described above.

[0029] Figure 2Schematic diagram of a secure multi-party computing system based on secret sharing to implement secure multi-party computing according to this embodiment. Figure 2 As shown, the system includes: a server 100; and n terminal devices T communicating with the server 100 1 To T n The terminal device T 1 To T n User P 1 To P n Each has its own digital value Q 1 To Q n .

[0030] The purpose of designing a secure multi-party computing system is to enable user P 1 To P n The calculation related to each digital value can be completed without disclosing the digital value known to other users and the server 100.

[0031] For example, in some cases, it may be necessary to calculate the user P 1 To P n The digital value Q 1 To Q n The sum of Q 1 +Q 2 +……+Q n In this case, according to the usual method, user P 1 To P n Send the digital value you know to the server 100 for the server 100 to perform the sum operation. 1 To P n Send your numerical value to other users to complete the sum operation together.

[0032] But if the digital value Q 1 To Q n For each user P 1 To P n For information that needs to be kept confidential, it needs to be in the user's P 1 To P n Do not set the respective digital values ​​Q 1 To Q n When the data is sent to other devices (such as the server 100 and other user's terminal devices), the above-mentioned operation can also be completed, and the final operation result is notified to the user P. 1 To P n . Therefore, this involves the issue of secure multi-party computing.

[0033] It should be noted that the server 100 and the terminal device T in the system1 To T n The hardware structure described above can be applied to both.

[0034] In the above operating environment, according to the first aspect of this embodiment, a method for implementing secure multi-party computing based on secret sharing is provided. The method comprises: Figure 2 The secure multi-party computing system shown in is implemented. Figure 3 A schematic diagram showing the process of the method is shown in FIG. Figure 3 As shown, the method includes:

[0035] S302: By communicating with n users P 1 To P n Corresponding terminal device T 1 To T n , respectively from their corresponding user P 1 To P n Receive the digital value Q of each corresponding user 1 To Q n ;

[0036] S304: In the terminal device T 1 To T n The received digital value Q is respectively deployed on 1 To Q n The corresponding shared secret Q i,j , where Q i,j Indicates that at the jth terminal device T j The deployed terminal device T i The received digital value Q i Related shared secrets, n is a natural number greater than 1, i = 1 ~ n, j = 1 ~ n, and through the shared secret Q i,1 To Q i,n Can restore the i-th terminal device T i The received digital value Q i ;

[0037] S306: Through each terminal device T among the n terminal devices i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and terminal device T i The corresponding operation result Z i , wherein the calculation rule is used to calculate the digital value Q mastered by the n users. i Obtaining a calculation result Z of the secure multi-party computation; and

[0038] S308: According to each terminal device T i The corresponding operation result Z i, and the operation result Z is calculated.

[0039] Specifically, refer to Figure 2 As shown, when user P 1 To P n When secure multi-party computing is required, each party can use the digital Q 1 To Q n Terminal device T corresponding to the input value 1 To T n (S302).

[0040] In the terminal device T 1 To T n Receive the respective digital value Q 1 To Q n When the terminal device T 1 To T n According to the digital value Q 1 To Q n Generate the corresponding shared secret Q i,j (S302). i,j represents the terminal device T of the jth user j The digital value Q generated by the i-th user i Related shared secrets, n is a natural number greater than 1, i = 1 ~ n, j = 1 ~ n, and Q i,1 To Q i,n The sum is equal to the digital value Q mastered by the i-th user i .

[0041] The idea of ​​secret sharing is to split the secret in an appropriate way. Each share after the split is managed by different participants. A single participant cannot recover the secret information. Only when several participants work together can the secret message be recovered. In this embodiment, each digital value Q i Split into n shared secrets Q i,j , and respectively by the terminal equipment T 1 To T n Management. Since the terminal device T 1 To T n Each device only has one share of the shared secret, so some terminal devices cannot use the shared secret Q that has been deployed. i,j Restore the digital value Q i , unless all terminal devices T 1 To T n All the shared secrets Q about digital values ​​can be i,j The digital value Q can be restored only after all are collected i .

[0042] In this embodiment, for the digital value Qi , then it is necessary to collect all n shared secrets Q i,j After that, the digital value Q can be restored i .

[0043] For example, when user P 1 To terminal device T 1 Enter a digital value Q 1 When the system is based on the terminal device T 1 The received digital value Q 1 , generating the digital value Q 1 The corresponding n shared secrets Q 1,1 , Q 1,2 ,……,Q 1,n . And respectively share the secret Q 1,1 , Q 1,2 ,……,Q 1,n Deploy to terminal devices T 1 To T n .

[0044] Among them, the shared secret Q 1,1 To Q 1 ,n is for example a terminal device T 1 According to user P 1 The digital value of the input 1 Generated. And deploy the shared secret Q 1,1 To Q 1,n This can be achieved in a variety of ways. For example, the terminal device T 1 The shared secret Q can be directly 1,2 To Q 1,n Sent to the corresponding terminal device T 2 To T n ; or terminal device T 1 The shared secret Q 1,2 To Q 1,n Sent to the server 100, which then sends the data to the corresponding terminal devices T 2 To T n .

[0045] Furthermore, other terminal devices T 2 To T n Thus, each terminal device is equipped with a corresponding digital value Q 1 To Q n The corresponding shared secrets are shown in the following table. Table 1 Shared secrets deployed by each terminal device

[0046] <![CDATA[Q 1 ]]> <![CDATA[Q 1 ]]> <![CDATA[Q 3 ]]> …… <![CDATA[Q i ]]> …… <![CDATA[Q n ]]> <![CDATA[T 1 ]]> <![CDATA[Q 1,1 ]]> <![CDATA[Q 2,1 ]]> <![CDATA[Q 3,1 ]]> …… <![CDATA[Q i,1 ]]> …… <![CDATA[Q n,1 ]]> <![CDATA[T 2 ]]> <![CDATA[Q 1,2 ]]> <![CDATA[Q 2,2 ]]> <![CDATA[Q 3,2 ]]> …… <![CDATA[Q i,2 ]]> …… <![CDATA[Q n,2 ]]> <![CDATA[T 3 ]]> <![CDATA[Q 1,3 ]]> <![CDATA[Q 2,3 ]]> <![CDATA[Q 3,3 ]]> …… <![CDATA[Q i,3 ]]> …… <![CDATA[Q n,3 ]]> …… …… …… …… …… …… …… …… <![CDATA[T j ]]> <![CDATA[Q 1,j ]]> <![CDATA[Q 2,j ]]> <![CDATA[Q 3,j ]]> …… <![CDATA[Q i,j ]]> …… <![CDATA[Q n,j ]]> …… …… …… …… …… …… …… …… <![CDATA[T n ]]> <![CDATA[Q 1,n ]]> <![CDATA[Q 2,n ]]> <![CDATA[Q 3,n ]]> …… <![CDATA[Q i,n ]]> …… <![CDATA[Q n,n ]]>

[0047] Thus, in this way, in the terminal device T1 to Tn respectively deploy the received digital value Q 1 To Q n The corresponding shared secret Q i,j , where Q i,j Indicates that at the jth terminal device T j The deployed terminal device T i The received digital value Q i Related shared secrets, n is a natural number greater than 1, i = 1 ~ n, j = 1 ~ n, and through the shared secret Q i,1 To Q i,n Can restore the i-th terminal device T i The received digital value Q i .

[0048] Specifically, Figure 4 The terminal device T 1 To T n A diagram of the digital values ​​deployed on the shared secret. Figure 4 As shown,

[0049] At the first terminal device T 1 In the deployment, the received digital value Q 1 , and the digital value Q 1 The corresponding shared secret Q 1,1 , and the digital value Q 2 The corresponding shared secret Q 2,1 , ..., and the digital value Q n The corresponding shared secret Q n,1 .

[0050] At the second terminal device T 2 In the deployment, the received digital value Q 2 , and the digital value Q 1 The corresponding shared secret Q 1,2 , and the digital value Q 2 The corresponding shared secret Q 2,2 , ..., and the digital value Q n The corresponding shared secret Q n,2 .

[0051] And so on, until the nth terminal device T n In the deployment, the received digital value Q n , and the digital value Q 1 The corresponding shared secret Q 1,n , and the digital value Q 2 The corresponding shared secret Q 2,n , ..., and the digital value Q n The corresponding shared secret Q n,n .

[0052] Then, the terminal device T 1 To each terminal device T in Tn i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and each terminal device T i The corresponding operation result Z i , wherein the calculation rule is used to calculate the digital value Q mastered by the n users i The calculation result Z of the secure multi-party computation is obtained (S306).

[0053] Specifically, Figure 5 A schematic diagram showing a secure multi-party computing system using a shared secret to calculate the final operation result Z.

[0054] First, the terminal device T 1 To T n Each terminal device T i , according to the deployed shared secret Q 1,i To Q n,i And the calculation rules of multi-party calculation, calculate the operation result Z corresponding to the terminal device Ti i .

[0055] For example, the terminal device T 1 According to the shared secret Q 1,1 To Q n,1 Calculate the corresponding operation result Z 1 ;

[0056] Terminal equipment 2 According to the shared secret Q 1,2 To Q n,2 Calculate the corresponding operation result Z 2 ;as well as

[0057] Until the terminal device T n According to the shared secret Q 1,n To Q n,n Calculate the corresponding operation result Z n .

[0058] Finally, reference Figure 5 As shown, the secure multi-party computing system will 1 To T n The corresponding operation result Z is calculated 1 To Z n , calculate the final operation result Z (S308).

[0059] Among them, each terminal device T1 To T n The result of the operation Z 1 To Z n All according to the value Q 1 To Q n The shared secret is calculated, and for each value Q i , after collecting the corresponding shared secret Q i,1 To Q i,n After that, the value Q can be restored i Therefore, after collecting the calculation results Z of all terminal devices 1 To Z n After that, based on the relationship between the shared secret and the corresponding value, only the operation result Z 1 To Z n Without restoring the corresponding value Q 1 To Q n , calculate the final operation result Z.

[0060] Thus, through the technical solution of this embodiment, secure multi-party computing is achieved by using secret sharing, so that each user P 1 To P n Under the premise that the acquired values ​​are not leaked, these values ​​can still be used for calculation and finally obtain the calculation results. In addition, in this way, it is no longer necessary to implement secure multi-party computing through encryption circuits, thereby solving the technical problem in the prior art that implementing secure multi-party computing through encryption circuits increases the cost of secure multi-party computing and reduces the efficiency and performance of secure multi-party computing.

[0061] Optionally, by passing the shared secret Q i,1 To Q i,n The sum can restore the i-th terminal device T i The received digital value Q i .

[0062] Specifically refer to Figure 4 As shown, for example, terminal device T 1 The digital value received is Q 1 , and according to the digital value Q 1 Generate the corresponding shared secret Q 1,1 To Q 1,n , and respectively by the terminal equipment T 1 To T n Each retains a share of the shared secret.

[0063] Among them, the shared secret Q 1,1 To Q 1,n Satisfied, Q 1,1 +Q 1,2+……+Q 1,n =Q 1 , that is, each terminal device T 1 The shared secret Q deployed to Tn 1,1 To Q 1,n Adding them together, we can get Q 1 The numerical value of .

[0064] Similarly, for other digital values ​​Q 2 To Qn, they satisfy:

[0065] Q 2,1 +Q 2,2 +……+Q 2,n =Q 2 ;

[0066] Q 3,1 +Q 3,2 +……+Q 3,n =Q 3 ;

[0067] …

[0068] Q n,1 +Q n,2 +……+Q n,n =Q n .

[0069] Specifically, the digital values ​​Q can be generated in the following way 1 To Q n The corresponding shared secret.

[0070] T 1 The received digital value Q 1 For example, when the terminal device T 1 Receive the digital value Q entered by the user 1 When the system will be the digital value Q 1 Assign a random number R 1 , and will be based on the random number R 1 Generate n-1 random numbers r corresponding to it 1,1 、r 1,2 ,……,r 1,n-1 . Among them, the following formula is satisfied:

[0071] R 1 =r 1,1 +r 1,2 +……+r 1,n-1 .

[0072] Then, determine the digital value Q according to the following formula 1 The corresponding shared secret Q 1,1 To Q 1 ,n:

[0073] Q 1,1 =Q 1 -R 1 ;

[0074] Q 1,2 =r 1,1 ;

[0075] Q 1,3 =r 1,2 ;

[0076] …

[0077] Q 1, n=r 1,n-1 .

[0078] Thus there is

[0079] Q 1,1 +Q 1,2 +Q 1,3 +……+Q 1,n

[0080] =Q 1 -R 1 +r 1,1 +r 1,2 +……+r 1,n-1

[0081] =Q 1 .

[0082] Similarly, when the terminal device T 2 Receive the digital value Q entered by the user 2 When the system will be the digital value Q 2 Assign a random number R 2 , and will be based on the random number R 2 Generate n-1 random numbers r corresponding to it 2,1 、r 2,2 、……、r 2,n-1 . Among them, the following formula is satisfied:

[0083] R 2 =r 2,1 +r 2,2 +……+r 2,n-1 .

[0084] Then, determine the digital value Q according to the following formula 2 The corresponding shared secret Q 2,1 To Q 2,n :

[0085] Q 2,1 =r 2,1 ;

[0086] Q 2,2 =Q 2 -R 2 ;

[0087] Q 2,3 =r 2,2 ;

[0088] …

[0089] Q 2,n =r 2,n-1 .

[0090] Thus there is

[0091] Q 2,1 +Q 2,2 +Q 2,3 +……+Q 2,n

[0092] =r 1,1 +Q 2 -R 2 +r 1,2 +……+r 1,n-1

[0093] =Q 2 .

[0094] And so on, that is, for each terminal device T i , when the terminal device T i Receive the digital value Q entered by the user i When the system will be the digital value Q i Assign a random number R i , and will be based on the random number R i Generate n-1 random numbers r corresponding to it i,1 、r i,2 ,……,r i,n-1 . Among them, the following formula is satisfied:

[0095] R i =r i,1 +r i,2 +……+r i,n-1 .

[0096] Then, at the terminal device T i Deploy Q i -R i As with Q i The corresponding shared secret share, and the other random number r i,1 、r i,2 ,……,r i,n-1 Distributed to other n-1 terminal devices respectively.

[0097] Thus, each terminal device T 1 The shared secret Q deployed to Tn i,1 To Q i,n The digital value Q can be obtained by summing i .

[0098] And, for the terminal device T i As for i,1 、r i,2 ,……,r i,n-1 They are distributed to the other n-1 terminal devices respectively, so even if these random numbers are leaked, people still cannot know the terminal device T i The received digital value is kept confidential.

[0099] The process of generating random numbers, such as the one that receives the digital value Q i Terminal equipment T i Alternatively, the server 100 may generate and send the data to the terminal device T. i .

[0100] In this way, there is a linear operational relationship between the shared secret deployed by each terminal device and the corresponding digital value, which facilitates subsequent secure multi-party computing.

[0101] Furthermore, the calculation rule of multi-party computing is to convert n digital values ​​Q 1 To Q n At least a portion of the digital values ​​in the linear operation. And through the terminal device T 1 To T n Each terminal device T i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and terminal device T i The corresponding operation result Z i , including: through each terminal device T i , using terminal device T i The shared secret corresponding to the at least part of the digital value is linearly operated to obtain the corresponding operation result Z i .

[0102] Furthermore, according to each terminal device T i The corresponding operation result Z i , and obtain the multi-party computing result Z, including: i The corresponding operation result Z i Perform a sum operation to obtain the multi-party calculation result Z.

[0103] Specifically, for example, the calculation rule of multi-party operation is to find (a*Q 1 +b*Q 2 +Q 3 ), where a and b are constants.

[0104] In order to obtain the result of multi-party operation, the following operations need to be performed on each terminal device:

[0105] Terminal equipment 1 :Z 1 =a*Q 1,1 +b*Q 2,1 +Q 3,1 ;

[0106] Terminal equipment 2 :Z 2 =a*Q 1,2 +b*Q 2,2 +Q 3,2 ;

[0107] …

[0108] Terminal equipment n :Z n =a*Q 1,n +b*Q 2,n +Q 3,n .

[0109] That is to say, each terminal device uses 1 , Q 2 and Q 3 The corresponding shared secret is subjected to corresponding linear operation according to the calculation rules of multi-party operation.

[0110] Since the operation result Z 1 , Z 2 ,……,Z n are calculated through the shared secret corresponding to each number, so even if the terminal device T 1 To T n The respective operation results Z 1 To Z n Announcement, Q 1 To Q 3 The digital value can still be kept well confidential and not disclosed.

[0111] Then, the multi-party computing system calculates the computing result Z 1 To Z n By performing a sum operation, we can get the final multi-party operation result Z.

[0112] Z=Z 1 +Z 2+……+Zn

[0113] =(a*Q 1,1 +b*Q 2,1 +Q 3,1 )+(a*Q 1,2 +b*Q 2,2 +Q 3,2 )+……+(a*Q 1,n +b*Q 2,n +Q 3,n )

[0114] =a*(Q 1,1 +Q 1,2 +……+Q 1,n )+b*(Q 2,1 +Q 2,2 +……+Q 2,n )+(Q 3,1 +Q 3,2 +……+Q 3,n )

[0115] =a*Q 1 +b*Q 2 +Q 3 .

[0116] Thus, in this way, each terminal device T can be 1 To T n The received digital value Q 1 To Q n In the case of , a linear operation between at least a portion of the digital values ​​is calculated.

[0117] In addition, optionally, the calculation rule of multi-party computing is to convert n digital values ​​Q 1 To Q n The two digital values ​​Q in x and Q y Perform multiplication operation, where 1≤x, y≤n, and x≠y. And through the terminal device T 1 To T n Each terminal device T i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and terminal device T i The corresponding operation result Z i ,include:

[0118] According to the generated random numbers A and B and the product C of A and B, the n terminal devices T 1 To T n Each terminal device T iDeploy the shared secret A corresponding to the random numbers A and B and the product C i , B i and C i ;

[0119] Through each terminal device T i Calculate (Q x,i -A i ) and (Q y,i -B i ), and in n terminal devices T 1 To T n Publish the respective calculations (Q x,i -A i ) and (Q y,i -B i ), and publish the shared secret C corresponding to the product C i , where Q x,i For the terminal device T i Deployed on the digital value Q x The corresponding shared secret, Q y,i For the terminal device T i Deployed on the digital value Q y The corresponding shared secret;

[0120] Through each terminal device T i Calculate the following formula to get the result Z i :

[0121]

[0122] Furthermore, according to each terminal device T i The corresponding operation result Z i , and obtain the multi-party computing result Z, including: i The corresponding operation result Z i A summation operation is performed, and a multi-party calculation result Z is obtained according to the result of the summation operation.

[0123] In order to facilitate the understanding of the multiplication operation in the technical solution of this embodiment, the following is a secure multi-party computing system including two terminal devices T 1 and T 2 However, those skilled in the art can extend the application of this embodiment to more terminal devices according to the description of this embodiment.

[0124] refer to Fig. 6A As shown, the terminal device T of the secure multi-party computing system 1 and T 2 The received digital value Q is deployed on 1 and Q 2and the digital value Q 1 and Q 2 The corresponding shared secret Q 1,1 , Q 2,1 , Q 1,2 and Q 2,2 .

[0125] And among them,

[0126] Q 1 =Q 1,1 +Q 1,2 ;as well as

[0127] Q 2 =Q 2,1 +Q 2,2 .

[0128] In this case, if we want to calculate the value Q 1 *Q 2 , for example, calculated by the following formula:

[0129] Q 1 *Q 2

[0130] =(Q 1,1 +Q 1,2 )*(Q 2,1 +Q 2,2 )

[0131] =Q 1,1 *Q 2,1 +Q 1,1 *Q 2,2 +Q 1,2 *Q 2,1 +Q 1,2 *Q 2,2

[0132] Among them, in the scheme of the secure multi-party computing system based on secret sharing in this embodiment, since the terminal device T 1 Only deploy Q 1,1 and Q 2,1 , terminal equipment T 2 Only deploy Q 1,2 and Q 2,2 Therefore, there is no way to pass the terminal device T 1 or T 2 Yes (Q 1,1 *Q 2,2 ) and (Q 1,2 *Q 2,1 ) is calculated, otherwise it will lead to Q 1 or Q 2 The value of is leaked.

[0133] In this case, the technical solution of this embodiment introduces the concept of triples, that is, random numbers A and B and the product C of random numbers A and B are introduced.

[0134] Among them, the values ​​of random numbers A and B are not announced. However, since the values ​​of random numbers A and B are not announced, the values ​​can be announced (Q 1 -A) and value (Q 2 -B). That is to say, even if the value (Q 1 -A) and value (Q 2 -B) In the case of random numbers A and B, the value Q can still be hidden because the random numbers A and B are not published. 1 and Q 2 Not disclosed.

[0135] Specifically, refer to Figure 6B As shown, in the terminal device T 1 A shared secret A about A can be deployed on 1 , about B's shared secret B 1 and a shared secret C about C 1 In the terminal device T 2 A shared secret A about A can be deployed on 2 , about B's shared secret B 2 and a shared secret C about C 2 .

[0136] Among them, A 1 +A 2 =A,B 1 +B 2 =B, and C 1 +C 2 =C

[0137] Then, T 1 Broadcast (Q 1,1 -A 1 ) and (Q 2,1 -B 1 ) and T 2 Broadcast (Q 1,2 -A 2 ) and (Q 2,2 -B 2 ) value. Thus T 1 and T 2 The value (Q 1 -A) and value (Q 2 -B):

[0138] (Q 1,1 -A 1 )+(Q 1,2 -A2 )=(Q 1,1 +Q 1,2 )-(A 1 +A 2 )=Q 1 -A;

[0139] (Q 2,1 -B 1 )+(Q 2,2 -B 2 )=(Q 2,1 +Q 2,2 )-(B 1 +B 2 )=Q 2 -B.

[0140] Then, T 1 and T 2 The calculation results Z can be calculated according to the following formula: i

[0141] Zi=-(1 / 2)*(Q 1 -A)*(Q 2 -B)+Q 1,i *(Q 2 -B)+Q 2,i *(Q 1 -A)+Ci.

[0142] That is, the terminal device T 1 The calculation results are:

[0143] Z 1 =-0.5*(Q 1 -A)*(Q 2 -B)+Q 1,1 *(Q 2 -B)+Q 2,1 *(Q 1 -A)+C 1 .

[0144] That is, the terminal device T 2 The calculation results are:

[0145] Z 2 =-0.5*(Q 1 -A)*(Q 2 -B)+Q 1,2 *(Q 2 -B)+Q 2,2 *(Q 1 -A)+C 2 .

[0146] Then, the terminal device T 1 and T 2The calculated result Z 1 and Z 2 Add them together to get Z 1 +Z 2 And according to the following formula, we can get Q 1 *Q 2 The expression is:

[0147] Z 1 +Z 2

[0148] =-0.5*(Q 1 -A)*(Q 2 -B)+Q 1,1 *(Q 2 -B)+Q 2,1 *(Q 1 -A)+C 1 -0.5*(Q 1 -A)*(Q 2 -B)+Q 1,2 *(Q 2 -B)+Q 2,2 *(Q 1 -A)+C 2

[0149] =(AQ 1 )*(Q 2 -B)+(Q 1,1 +Q 1,2 )*(Q 2 -B)+(Q 2,1 +Q 2,2 )*(Q 1 -A)+C 1 +C 2

[0150] =A*Q 2 -A*BQ 1 *Q 2 +Q 1 *B+Q 1 *Q 2 -Q 1 *B+Q 1 *Q 2 -A*Q 2 +C

[0151] =Q 1 *Q 2 =Z,

[0152] Thus, by changing T 1 and T 2 Add the calculated results to get Q 1 and Q 2The product of .

[0153] Therefore, Q can be calculated 1 and Q 2 The product between . Thus, the Q 1 and Q 2 Secure multi-party computation of the product of .

[0154] also, Figure 6C A schematic diagram showing a multiplication calculation in the case of secure multi-party computation performed by three terminal devices. Figure 6C As shown, in the terminal device T 1 A shared secret A about A can be deployed on 1 , about B's shared secret B 1 and a shared secret C about C 1 In the terminal device T 2 A shared secret A about A can be deployed on 2 , about B's shared secret B 2 and a shared secret C about C 2 In the terminal device T 3 A shared secret A about A can be deployed on 3 , about B's shared secret B 3 and a shared secret C about C 3 .

[0155] Among them, A 1 +A 2 +A 3 =A,B 1 +B 2 +B 3 =B, and C 1 +C 2 +C 3 =C.

[0156] For example, if you need to calculate Q 1 *Q 2 When T 1 Broadcast (Q 1,1 -A 1 ) and (Q 2,1 -B 1 ) and T 2 Broadcast (Q 1,2 -A 2 ) and (Q 2,2 -B 2 ), T 3 Broadcast (Q 1,3 -A 3 ) and (Q 2,3 -B 3 ) value. Thus T1 To T 3 The value (Q 1 -A) and value (Q 2 -B):

[0157] (Q 1,1 -A 1 )+(Q 1,2 -A 2 )+(Q 1,3 -A 3 )=(Q 1,1 +Q 1,2 +Q 1,3 )-(A 1 +A 2 +A 3 )=Q 1 -A;

[0158] (Q 2,1 -B 1 )+(Q 2,2 -B 2 )+(Q 2,3 -B 3 )=(Q 2,1 +Q 2,2 +Q 2,3 )-(B 1 +B 2 +B 3 )=Q 2 -B.

[0159] Then, T 1 To T 3 The calculation results Z can be calculated according to the following formula: i

[0160] Zi=-(1 / 3)*(Q 1 -A)*(Q 2 -B)+Q 1,i *(Q 2 -B)+Q 2,i *(Q 1 -A)+Ci.

[0161] That is, the terminal device T 1 The calculation results are:

[0162]

[0163] Terminal equipment 2 The calculation results are:

[0164]

[0165] Terminal equipment 3The calculation results are:

[0166]

[0167] Then, the terminal device T 1 To T 3 The calculated result Z 1 To Z 3 Add them together to get Z 1 +Z 2 +Z 3 And according to the following formula, we can get Q 1 *Q 2 The expression is:

[0168]

[0169] Thus, by changing T 1 To T 3 Add the calculated results to get Q 1 and Q 2 The product of .

[0170] Therefore, Q can be calculated 1 and Q 2 The product between . Thus, the Q 1 and Q 2 Secure multi-party computation of the product of .

[0171] In addition, before using triples for multiplication, the technical solution of this embodiment introduces a preprocessing stage, in which triples are generated and distributed by a server that only runs in the preprocessing stage. The server needs to generate a sufficient number of triples and distribute them to all users through secret sharing, which is called a triple list. After the preprocessing stage is over, the calculation can start, and at this time the server is disconnected from all users, thereby ensuring the security of the user terminal.

[0172] When the triplet is used, the user terminal device T 1 To T n Generate a random number R 1 To R n . And according to the generated random number R i (1≤i≤n) Select a triple in the existing triple list (select the triple with the corresponding sequence number using the random number) as the triple used this time. After that, the triple is discarded and the triple list is updated.

[0173] In this way, in the process of using triples for multiplication calculation, the confidentiality of the triples can be effectively guaranteed, thereby further enhancing the security of multi-party secure computing. In addition, the preprocessing process can deal with the secure multi-party computing scenario where the number of malicious users is greater than the number of honest users in a simple way, thereby avoiding the situation where the performance of secure multi-party computing is reduced in the process of dealing with the secure multi-party computing where the number of malicious users is greater than the number of honest users.

[0174] Optionally, the method further includes: respectively at the terminal device T i Deployment corresponding information check digit value M i , where i = 1 to n; in the terminal device T 1 To T n Deploy the information check digit value M 1 To M n The corresponding shared secret check digit value M i,j . Where M i,j Indicates that at the jth terminal device T j The deployed terminal device T i Deployed information check digit value M i The related shared secret check digital value, n is a natural number greater than 1, i = 1 ~ n, j = 1 ~ n, and through the shared secret check digital value M i,1 To M i,n Can restore the i-th terminal device T i The information check digit value M i ; and through the terminal device T 1 To T n Each terminal device T i , according to the shared secret check digit value M 1,i To M n,i And the calculation rules of multi-party calculation are used to calculate the calculation result verification value M corresponding to the calculation result Z.

[0175] refer to Figure 7 As shown, in this embodiment, in the terminal device T 1 To T n Deployment of digital value Q 1 To Q n When, for each digital value Q i and set with a corresponding information check digit value M i Then, each terminal device is equipped with a digital value M that matches the information verification value. i The corresponding shared secret check digit value M 1,i To M n,i Among them, the following Table 2 lists the shared secret check digit values ​​deployed by each terminal device:

[0176] Table 1 Shared secret check digit values ​​deployed by each terminal device

[0177] <![CDATA[M 1 ]]> <![CDATA[M 1 ]]> <![CDATA[M 3 ]]> …… <![CDATA[M i ]]> …… <![CDATA[M n ]]> <![CDATA[T 1 ]]> <![CDATA[M 1,1 ]]> <![CDATA[M 2,1 ]]> <![CDATA[M 3,1 ]]> …… <![CDATA[M i,1 ]]> …… <![CDATA[M n,1 ]]> <![CDATA[T 2 ]]> <![CDATA[M 1,2 ]]> <![CDATA[M 2,2 ]]> <![CDATA[M 3,2 ]]> …… <![CDATA[M i,2 ]]> …… <![CDATA[M n,2 ]]> <![CDATA[T 3 ]]> <![CDATA[M 1,3 ]]> <![CDATA[M 2,3 ]]> <![CDATA[M 3,3 ]]> …… <![CDATA[M i,3 ]]> …… <![CDATA[M n,3 ]]> …… …… …… …… …… …… …… …… <![CDATA[T j ]]> <![CDATA[M 1,j ]]> <![CDATA[M 2,j ]]> <![CDATA[M 3,j ]]> …… <![CDATA[M i,j ]]> …… <![CDATA[M n,j ]]> …… …… …… …… …… …… …… …… <![CDATA[T n ]]> <![CDATA[M 1,n ]]> <![CDATA[M 2,n ]]> <![CDATA[M 3,n ]]> …… <![CDATA[M i,n ]]> …… <![CDATA[M n,n ]]>

[0178] Among them, for example, the information check digit value M i The corresponding digital value Q i There can be a linear relationship between

[0179] M i =αQ i , and where for example the information check digit value M i For example, the following conditions may be met:

[0180]

[0181] Thus, through multiple terminals T j Using the shared secret Q ij In secure multi-party computation, the shared secret checksum value M is also used ij At the same time, the corresponding calculations are performed.

[0182] For example, when performing addition calculations, such as calculating Z = Q x +Q y (where Q x For terminal T x The digital value on Q y Terminal equipment y The final check value M is then z It should also meet the following requirements:

[0183] M z =M x +M y . Where M x For terminal T x The information check digit value on M y Terminal equipment y The information check digit value on the .

[0184] In addition, when performing secure multi-party computation of multiplication, the corresponding check value M can also be calculated according to the multiplication algorithm (for example, setting a triplet). z

[0185] In this way, the calculation results of the secure multi-party computation can be verified by using the information verification digital value set on the terminal device.

[0186] In addition, after the calculation is completed, all intermediate output values ​​such as QA and their corresponding check values ​​M(QA) need to be electronically signed and sent to the bulletin board for storage. The legitimacy of all calculated intermediate values ​​jointly guarantees the correctness of secure multi-party computing. These results will be used for auditing by non-participating users. In addition, this solution does not need to verify the process of secure multi-party computing at non-computing parties, which is conducive to improving the security and verifiability of secure multi-party computing.

[0187] In addition, reference Figure 2 As shown, according to the second aspect of this embodiment, a system for implementing secure multi-party computing based on secret sharing is provided, comprising: 1 To P n Corresponding terminal device T 1 To T n The system is configured to perform the following operations: 1 To P n Corresponding terminal device T 1 To T n , from their respective corresponding users P 1 To P n Receive the digital value Q of each corresponding user 1 To Q n ; In the terminal device T 1 To T n The received digital value Q is respectively deployed on 1 To Q n The corresponding shared secret Q i,j , where Q i,j Indicates that at the jth terminal device T j The deployed terminal device T i The received digital value Q i Related shared secrets, n is a natural number greater than 1, i = 1 ~ n, j = 1 ~ n, and through the shared secret Q i,1 To Q i,n Can restore the i-th terminal device T i The received digital value Q i ; Through terminal device T 1 To T n Each terminal device T i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and terminal device T i The corresponding operation result Z i , wherein the calculation rule is used to calculate the digital value Q mastered by the n users iGet the calculation result Z of the secure multi-party computation; and i The corresponding operation result Z i , calculate and obtain the operation result Z of the multi-party calculation.

[0188] Optionally, the shared secret Q i,j The following conditions are met: By passing the shared secret Q i,1 To Q i,n The sum can restore the i-th terminal device T i The received digital value Q i .

[0189] Optionally, the calculation rule of the multi-party calculation is to perform linear operation on at least a part of the n digital values ​​Q1 to Qn, and calculate the linear operation through the terminal device T 1 To T n Each terminal device T i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and terminal device T i The corresponding operation result Z i , including: through each terminal device T i , using the terminal device T i The shared secret corresponding to the at least part of the digital value is deployed, and the linear operation is performed to obtain the corresponding operation result Z i .

[0190] Optionally, according to each terminal device T i The corresponding operation result Z i , and obtain the multi-party computing result Z, including: i The corresponding operation result Z i Perform a sum operation to obtain the multi-party calculation result Z.

[0191] Optionally, the calculation rule of the multi-party calculation is to convert the n digital values ​​Q 1 To Q n The two digital values ​​Q in x and Qy, where 1≤x, y is less than or equal to n, and x≠y. And through the terminal device T 1 To T n Each terminal device T i , according to the shared secret Q 1,i To Q n,i And the calculation rules of multi-party computing, calculation and terminal device T i The corresponding operation result Z i, including: according to the generated random numbers A and B and the product C of A and B, respectively at the n terminal devices T 1 To T n Each terminal device T i Deploy a shared secret A corresponding to the random numbers A and B and the product C i , B i and C i ; Through each terminal device T i Calculate (Q x,i -A i ) and (Qy ,i -B i ), and in the n Terminal equipment T 1 To T n Publish the respective calculations (Q x,i -A i ) and (Qy ,i -B i ), and publish the shared secret C corresponding to the product C i , where Q x,i For the terminal device T i Deployed on the digital value Q x The corresponding shared secret, Q y,i For the terminal device T i The shared secret corresponding to the digital value Qy deployed on the network; through each terminal device T i Calculate the following formula to get the result Z i :

[0192]

[0193] Optionally, according to each terminal device T i The corresponding operation result Z i , and obtain the multi-party computing result Z, including: i The corresponding operation result Z i A summation operation is performed, and a multi-party calculation result Z is obtained according to the result of the summation operation.

[0194] In addition, the system is further configured to perform the following operations: respectively at the terminal device T i Deployment corresponding information check digit value M i , where i = 1 to n; in the terminal device T 1 To T n Deploy the information check digit value M 1 To M n The corresponding shared secret check digit value M i,j , where M i,jIndicates that at the jth terminal device T j The deployed terminal device T i Deployed information check digit value M i The related shared secret check digital value, n is a natural number greater than 1, i = 1 ~ n, j = 1 ~ n, and through the shared secret check digital value M i,1 To M i,n Can restore the i-th terminal device T i The information check digit value M i ; and through the terminal device T 1 To T n Each terminal device T i , according to the shared secret check digit value M 1,i To M n,i And the calculation rules of multi-party calculation are used to calculate the calculation result verification value M corresponding to the calculation result Z.

[0195] Therefore, according to this embodiment, secure multi-party computing is achieved by using secret sharing, so that each user P 1 To P n Under the premise that the obtained values ​​are not leaked, these values ​​can still be used for calculation and finally obtain the calculation results.

[0196] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0197] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0198] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0199] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0200] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0201] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0202] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Onyy Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0204] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for implementing secure multi-party computing based on secret sharing, characterized in that: include: Through respectively n Users P 1 to P n Corresponding terminal equipment T 1 to T n , from their respective users P 1 to P n Receive the corresponding numeric value of the user Q 1 to Q n ; In terminal equipment T 1 to T n The received digital value is deployed on Q 1 to Q n The corresponding shared secret Q i,j ,in Q i,j Indicated in j Terminal devices T j Deployed on i Terminal devices T i The received digital value Q i The associated shared secret, n is a natural number greater than 1, i = 1 ~ n , j = 1 ~ n , and by sharing a secret Q i,1 to Q i,n Can recover the i Terminal devices T i The received digital value Q i ; Via terminal device T 1 to T n Each terminal device in T i , according to the shared secret set Q 1,i to Q n,i And the calculation rules of multi-party computing, calculation and each terminal device T i The corresponding operation results Z i , wherein the calculation rule is used according to the n The digital value of the user Q i Get the calculation results of secure multi-party computation Z ; as well as According to each terminal device T i The corresponding operation results Z i , calculate the result of multi-party calculation Z ; The shared secret Q i,j The following conditions are met: By passing the shared secret Q i,1 to Q i,n The sum can recover the i Terminal devices T i The received digital value Q i; The calculation rule of the multi-party calculation is to convert the digital value Q 1 to Q n At least a portion of the digital value in the linear operation, and through the terminal device T 1 to T n Each terminal device in T i , according to the shared secret set Q 1,i to Q n,i And the calculation rules of multi-party computing, calculation and each terminal device T i The corresponding operation results Z i , include: Through the terminal device T i , using the terminal device T i The deployed shared secret corresponding to the at least part of the digital value is subjected to the linear operation to obtain the corresponding operation result Z i; According to each terminal device T i The corresponding operation results Z i , and get the result of multi-party computation Z ,include: Each terminal device T i The corresponding operation results Z i Perform sum operation to obtain the result of multi-party calculation Z; The calculation rule of the multi-party calculation is to convert the digital value Q 1 to Q n The two numeric values ​​in Q x and Q y Perform multiplication, where 1≤ x,y ≤ n , And through the terminal device T 1 to T n Each terminal device in T i , according to the shared secret set Q 1,i to Q n,i And the calculation rules of multi-party computing, calculation and each terminal device T i The corresponding operation results Z i ,include: Based on the random number generated A and B And the random number A and B The product of C , respectively in the terminal device T 1 to T n Each terminal device T i Deploy with the random number A and B and the product C The corresponding shared secret A i , B i as well as C i ; Through each terminal device T i calculate (Q x,i -A i ) as well as( Q y,i -B i ), and in the terminal device T 1 to T n Publish their respective calculations between Q x,i -A i )as well as( Q y,i -B i ),in Q x,i For terminal equipment T i Deployed with digital values Q x The corresponding shared secret is, Q y,i For terminal equipment T i Deployed with digital values Q y the corresponding shared secret; and Through each terminal device T i Calculate the following formula to get the result Z i : ; According to each terminal device T i The corresponding operation results Z i , and get the result of multi-party computation Z ,include: Each terminal device T i The corresponding operation results Z i Perform a sum operation and obtain the multi-party calculation result based on the result of the sum operation Z; Also includes: In the terminal equipment T i Deployment corresponding information verification digital value M i ,in i = 1 ~ n ; In terminal equipment T 1 to T n Deploy and check digital values ​​​​on M 1 to M n The corresponding shared secret check digit value M i,j ,in M i,j Indicated in j Terminal devices T j Deployed on i Terminal devices T i Deployment information check digit value M i The associated shared secret check digit value, n is a natural number greater than 1, i = 1 ~ n , j = 1 ~ n , and verify the digital value through a shared secret M i,1 to M i,n Can recover the i Terminal devices T i Information check digit value M i ;as well as Via terminal device T 1 to T n Each terminal device in T i , based on the shared secret check digit value set M 1,i to M n,i And the calculation rules of multi-party calculation, calculation and the calculation results Z Corresponding calculation result check value M .

2. A system for implementing secure multi-party computing based on secret sharing, comprising: n Users P 1 to P n Corresponding terminal equipment T 1 to T n , characterized in that, The system is configured to perform the following operations: Through respectively n Users P 1 to P n Corresponding terminal equipment T 1 to T n , from their respective users P 1 to P n Receive the corresponding numeric value of the user Q 1 to Q n ; In terminal equipment T 1 to T n The received digital value is deployed on Q 1 to Q n The corresponding shared secret Q i,j ,in Q i,j Indicated in j Terminal devices T j Deployed on i Terminal devices T i The received digital value Q i The associated shared secret, n is a natural number greater than 1, i =1~ n , j =1~ n , and by sharing a secret Q i,1 to Q i,n Can recover the i Terminal devices T i The received digital value Q i ; Via terminal device T 1 to T n Each terminal device in T i , according to the shared secret set Q 1,i to Q n,i And the calculation rules of multi-party computing, calculation and each terminal device T i The corresponding operation results Z i , wherein the calculation rule is used according to the n The digital value of the user Q i Get the calculation results of secure multi-party computation Z ; as well as According to each terminal device T i The corresponding operation results Z i , calculate the result of multi-party calculation Z ; The shared secret Q i,j The following conditions are met: By passing the shared secret Q i,1 to Q i,n The sum can recover the i Terminal devices T i The received digital value Q i ; The calculation rule of the multi-party calculation is to convert the digital value Q 1 to Q n At least a portion of the digital value in the linear operation, and through the terminal device T 1 to T n Each terminal device in T i , according to the shared secret set Q 1,i to Q n,i And the calculation rules of multi-party computing, calculation and each terminal device T i The corresponding operation results Z i , include: Through the terminal device T i , using the terminal device T i The deployed shared secret corresponding to the at least part of the digital value is subjected to the linear operation to obtain the corresponding operation result Z i; According to each terminal device T i The corresponding operation results Z i , and get the result of multi-party computation Z ,include: Each terminal device T i The corresponding operation results Z i Perform sum operation to obtain the result of multi-party calculation Z; The calculation rule of the multi-party calculation is to convert the digital value Q 1 to Q n The two numeric values ​​in Q x and Q y Perform multiplication, where 1≤ x,y ≤ n , And through the terminal device T 1 to T n Each terminal device in T i , according to the shared secret set Q 1,i to Q n,i And the calculation rules of multi-party computing, calculation and each terminal device T i The corresponding operation results Z i ,include: Based on the generated random number A and B And the random number A and B The product of C , respectively in the terminal device T 1 to T n Each terminal device T i Deploy with the random number A and B and the product C The corresponding shared secret A i , B i as well as C i ; Through each terminal device T i calculate (Q x,i -A i ) as well as( Q y,i -B i ), and in the terminal device T 1 to T n Publish their respective calculations between Q x,i -A i )as well as( Q y,i -B i ),in Q x,i For terminal equipment T i Deployed with digital values Q x The corresponding shared secret is, Q y,i For terminal equipment T i Deployed with digital values Q y the corresponding shared secret; and Through each terminal device T i Calculate the following formula to get the result Z i : ; According to each terminal device T i The corresponding operation results Z i , and get the result of multi-party computation Z ,include: Each terminal device T i The corresponding operation results Z i Perform a sum operation and obtain the multi-party calculation result based on the result of the sum operation Z; Also includes: In the terminal equipment T i Deployment corresponding information verification digital value M i ,in i = 1 ~ n ; In terminal equipment T 1 to T n Deploy and check digital values ​​​​on M 1 to M n The corresponding shared secret check digit value M i,j ,in M i,j Indicated in j Terminal devices T j Deployed on i Terminal devices T i Deployment information check digit value M i The associated shared secret check digit value, n is a natural number greater than 1, i = 1 ~ n , j = 1 ~ n , and verify the digital value through a shared secret M i,1 to M i,n Can recover the i Terminal devices T i Information check digit value M i ;as well as Via terminal device T 1 to T n Each terminal device in T i , based on the shared secret check digit value set M 1,i to M n,i And the calculation rules of multi-party calculation, calculation and the calculation results Z Corresponding calculation result check value M。