Threshold signature method and computing device
Through the distributed secret sharing algorithm and random value sharding technology, the threshold signature method of three rounds of interactions is realized, which solves the problem of high number of interactions in the existing technology and improves efficiency and robustness.
Patent Information
- Application Number
- CN202411038255.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-09-27
AI Technical Summary
The existing robust threshold signature scheme requires at least four rounds of interaction, consumes a lot of computing resources and communication resources, and cannot meet the demand for efficient interaction.
The private key shares and total public keys of the participants are generated through a distributed secret sharing algorithm, and a threshold signature method of three rounds of interaction is adopted, using the randomly generated first random value and the second random value sharding generated based on the secret sharing algorithm to achieve Threshold signature algorithm.
It reduces the number of interaction rounds, improves the efficiency of threshold signature, reduces the consumption of computing and communication resources, and achieves robust threshold signature.
Smart Images

Figure CN118713830A
Abstract
Description
Technical Field
[0001] The embodiments of this specification belong to the field of cryptography technology, and more particularly, to a threshold signature method and computing device. Background Art
[0002] In cryptography, public key cryptography, also known as asymmetric cryptography, is a cryptography that uses a pair of public and private keys (public key-private key is denoted as pk-sk, where pk stands for public key and sk stands for secret key), which corresponds to cryptography that uses only one private key. Public key cryptography includes encryption algorithms and digital signature algorithms. The public-private key cryptographic pair is the cornerstone of modern cryptographic security. Many applications are based on pk-sk, such as the https (Hypertext Transfer Protocol Secure) application layer encryption transmission protocol and blockchain.
[0003] A private key usually represents the identity of the party that owns the private key. It can only be held by the owner of the private key and cannot be made public, while the corresponding public key can be made public. Signing with a private key can indicate the private key owner's approval of certain information in the digital world. The signed information can also indicate a certain behavior of the private key owner in the protocol message. Generally, an owner has a private key alone. The owner can use his own private key to sign a certain information and send it to other parties. After receiving the signature, the recipient can use the corresponding public key to verify the signature. If the verification is successful, the recipient can confirm that the owner has signed the information and that the signed information has not been tampered with.
[0004] Sometimes, an account requires a flexible access control policy, especially in the case where multiple parties jointly control an account on a blockchain. Under some requirements, an account needs to be jointly controlled by n participating parties. In this way, for actions to control this account, such as transferring funds, the actions need to be approved by all n participating parties in order to control the account to execute the transfer action. Under other requirements, it is not necessary for all n participating parties to agree. Instead, when t + 1 of them (t < n, and t is also called the threshold) agree, the account can be controlled. This can be achieved through threshold signatures. In this type of threshold cryptography, the private key information is shared among multiple independent participating parties, and each calculation of the private key requires the agreement of multiple participating parties, thereby improving the security of the algorithm. Moreover, when a small number of participating parties fail or become unavailable, it does not affect the availability of the private key. A secure (t, n) threshold cryptography algorithm should satisfy: (1) Any number of participants more than t can calculate the final signature, exchanged key, or plaintext, while t or fewer participants cannot obtain any information about the above results; (2) No information about the private key and the private key shares of the participating parties is leaked during the execution of the algorithm.
[0005] The robustness of the threshold signature method means that in the case where the verification of the generated signature fails, it is possible to verify whether each participating party provides the correct signature share and exclude the cheating participating parties from the set of participating parties. Thus, in the presence of a sufficient number of honest parties, the correct total signature can still be generated based on the signature shares of other honest parties.
[0006] However, in the existing robust threshold signature schemes, at least four rounds of interaction are required to complete the threshold signature, which consumes a large amount of computing resources and communication resources. Summary of the Invention
[0007] The object of the present invention is to provide a threshold signature scheme with three rounds of interaction.
[0008] The first aspect of this specification provides a threshold signature method, which is executed by multiple participating parties included in a set of participating parties. Among them, the multiple participating parties respectively have their own private key shares and a total public key, and the private key shares and the total public key are generated by the multiple participating parties based on a distributed secret sharing algorithm. The set of participating parties includes at least t + 1 participating parties. The method includes:
[0009] Preprocessing stage: Each of the multiple participating parties generates a first random value, generates multiple second random value shards corresponding to the multiple participating parties respectively based on the secret sharing algorithm, homomorphically encrypts the first random value using its own public key to obtain a first random value ciphertext, broadcasts the first random value ciphertext, and homomorphically encrypts the corresponding second random value shards using the public keys of other participating parties and then broadcasts them to other participating parties;
[0010] Each participant generates a second random value share and a second random value share public key based on the second random value slice corresponding to itself received from other participants; for each other participant, generates a first intermediate value ciphertext based on its own first random value ciphertext, second random value share and first mask, and generates a second intermediate value ciphertext based on its own first random value ciphertext, private key share and second mask; broadcasts the first intermediate value ciphertext and the second intermediate value ciphertext to each other participant; decrypts multiple groups of received first intermediate value ciphertexts and second intermediate value ciphertexts to obtain multiple groups of first intermediate values and second intermediate values corresponding to each other participant;
[0011] Online stage: After obtaining the message to be signed, each participant of at least t+1 of the multiple participants generates a first signature for the message based on its own first random value, second random value share, private key share, and the first mask, first intermediate value, second mask and second intermediate value corresponding to each other participant.
[0012] The second aspect of the present specification provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method described in the first aspect.
[0013] A third aspect of the specification provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method described in the first aspect is implemented.
[0014] The fourth aspect of this specification provides a computer program product, including a computer program / instruction, which implements the steps of the method described in the first aspect when executed by a processor.
[0015] In the embodiment of the present specification, a threshold signature algorithm is participated in by sharding using a randomly generated first random value and a second random value generated based on a secret sharing algorithm. Since the first random value is eliminated in the process of calculating the total signature, even if the first random value of each participant is randomly generated, it will not affect the final generated total signature, thereby realizing the threshold signature algorithm with three rounds of interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1 is a schematic diagram of distributed threshold key generation in this embodiment;
[0018] Figure 2 is a schematic diagram of a distributed threshold signature in one embodiment;
[0019] Figure 3 is a flow chart of a preprocessing process in a threshold signature in one embodiment;
[0020] Figure 4 This is a flow chart of a method for generating a threshold signature key in an embodiment of this specification;
[0021] Figure 5 This is a flow chart of a threshold signature method in an embodiment of this specification;
[0022] Figure 6 This is a flow chart of a threshold signature method in another embodiment of this specification. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0024] In order to clearly illustrate the solution for batch verification of ciphertext in threshold signature provided by the embodiments of this specification, the relevant algorithms involved in threshold signature are first introduced below.
[0025] The DKG (Distributed Key Generation) protocol is a distributed protocol that generates a set of keys through collaboration among multiple parties participating in the protocol. The VSS (Verifiable Secret Sharing) protocol is an important theoretical basis for the DKG protocol.
[0026] VSS means that when a secret data is shared between multiple parties, the secret data can be split into multiple pieces without leaking the secret data itself, and each party can keep a piece. Later, when the secret data needs to be restored, all the pieces need to be collected to successfully restore the complete secret data.
[0027] The VSS protocol was first proposed by Shamir in 1979. It is a polynomial-based secret sharing protocol. The VSS protocol was developed from Shamir's Secret Sharing (SSS), so Shamir's Secret Sharing is introduced first.
[0028] Shamir secret sharing includes two stages: secret sharing (or secret distribution) and secret reconstruction. First, a Dealer needs to construct a polynomial:
[0029] f(x)=a 0 +a 1 x+a 2 x 2 +…+a n x n Polynomial(*)
[0030] Among them, a 0 The secret data to be shared.
[0031] This n-degree polynomial consists of a set of coefficients (a 0 , a 1 , a 2 , …, a n ) is uniquely determined, and this set of coefficients includes n+1 values. In this way, if it is known that the curve corresponding to the n-degree polynomial passes through n+1 different points on the plane, the coordinates of n+1 different points (x 1 ,y 1 ),(x 2 ,y 2 ),…,(x n ,y n ),(x n+1 ,y n+1 ), we can get a system of (n+1)-variable linear equations of n+1 equations, and from this system of equations we can determine the n+1 coefficients a 0 , a 1 , a 2 , …, a n The value of , and then determine the polynomial (*), and finally the secret data a can be obtained 0 The coordinates of the n+1 different points (x 1 ,y 1 ),(x 2 ,y 2 ),…,(x n ,y n ),(x n+1 ,y n+1 ) means n+1 secret shards.
[0032] The process of finding a curve that passes through a number of existing points is called polynomial interpolation. There are many ways to implement polynomial interpolation. The following is a common Lagrange interpolation method. Given an n-degree polynomial*, it is known that the corresponding curve of the polynomial passes through n+1 points (x 1 ,y 1 ),(x 2 ,y 2 ),…,(x n ,y n ),(x n+1 ,y n+1 ), then the polynomial of the n-th order curve can be obtained by Lagrange interpolation method as follows:
[0033]
[0034] Polynomial (**) and polynomial (*) are actually equivalent. In polynomial (*), if x = 0, then f(0) = a 0 , that is, the secret data a can be obtained 0 Therefore, if x=0 in the polynomial (**), the secret data a can also be obtained. 0 The value of f(0) = a 0 .
[0035] For n+1 points (x 1 ,y 1 ),…,(x n ,y n ),(x n+1 ,y n+1 ), the above polynomial (**) can also be expressed as:
[0036]
[0037] in, Similarly, for constant terms or secret values, we have
[0038] In summary, we can select any n+1 points on the polynomial and share them among n+1 participants, for example, each participant gets the coordinates of one point. Collecting any coordinates of less than n+1 points will not allow us to infer the original secret data a. 0 Only after obtaining all n+1 points can the secret data a be restored by reconstructing the polynomial coefficients 0 In addition, even if the coordinates of any points less than n+1 are collected, for example, the coordinates of n points, since there are countless n-degree curves passing through these n points, the secret data a will not be leaked in terms of probability. 0The value of . The degree n here is also called the degree of the polynomial.
[0039] On this basis, threshold Shamir secret sharing can be implemented. For example, t-of-n secret sharing is to share secrets among n participants, and stipulate that the threshold of the minimum number of secret shards required for recovery is greater than t, that is, greater than or equal to t+1. For example, in a transaction involving 4 parties, the agreed threshold is 3, that is, n=4, t=2, then the secret can only be restored when greater than or equal to t+1=3 participants provide their own secret shards, otherwise the secret cannot be restored. Specifically, a polynomial of degree t=2 can be constructed:
[0040] f(x)=a 0 +a 1 x+a 2 x 2 Polynomial(***)
[0041] It can be obtained that the curve corresponding to the 2-degree polynomial passes through 4 different points on the plane, that is, the coordinates of 4 different points (x 1 ,y 1 ),(x 2 ,y 2 ),(x 3 ,y 3 ),(x 4 ,y 4 ), and distribute the coordinates of the four points to one participant respectively during the secret sharing phase. The four participants are set as Party 1 ,Party 2 ,Party 3 ,Party 4 , so, assuming Party 1 With shards (x 1 ,y 1 ), Party 2 With shards (x 2 ,y 2 ), Party 3 With shards (x 3 ,y 3 ), Party 4 With shards (x 4 ,y 4 ). Since the polynomial (**) can be determined by any three points on the corresponding curve, Party i In (i∈{1,2,3,4}), when any three participants provide their own secret shards, the polynomial (***) can be restored in the secret reconstruction phase, so that the secret value a can be obtained 0When less than three parties provide their own secret shards, the polynomial (***) cannot be restored, and the secret value a cannot be obtained. 0 The above t is also called the threshold.
[0042] In 1999, Rabin et al. proposed an improved protocol called Joint-Feldman. The basic idea of this protocol is to execute n Feldman VSS protocols in parallel, in which each participant generates a random polynomial locally and then shares the randomly selected secret value among all participants. Since what is shared is a commitment to a secret rather than the secret itself, the secret cannot be recovered as long as there is no collusion and cheating by multiple people exceeding the threshold t. Such a distributed VSS protocol is also called the DVSS protocol (Distributed VSS).
[0043] Specifically, taking 4 participants as an example, assuming that the threshold is t=2, then the degree of the polynomial is also t=2, and the decentralized threshold secret sharing, that is, the implementation of Joint-Feldman, includes the following:
[0044] Each P i (Party i Abbreviated as P i , i∈{1,2,3,4}) sets the secret s to be shared i0 , and randomly choose other parameters to generate a t-1 degree polynomial:
[0045] Participant P 1 Generate a degree 2 polynomial:
[0046] f 1 (z) = a 10 +a 11 z+a 12 z 2 , where a 10 YesP 1 Setting secrets 1 ;
[0047] Participant P 2 Generate a degree 2 polynomial:
[0048] f 2 (z) = a 20 +a 21 z+a 22 z 2 , where a 20 YesP 2 Setting secrets 2 ;
[0049] Participant P 3 Generate a degree 2 polynomial:
[0050] f 3 (z) = a 30 +a 31 z+a 32 z 2 , where a 30 YesP 3 Setting secrets 3 ;
[0051] Participant P 4 Generate a degree 2 polynomial:
[0052] f 4 (z) = a 40 +a 41 z+a 42 z 2 , where a 40 YesP 4 Setting secrets 4 .
[0053] Next, each participant P i Generate n values on the curve corresponding to its own t-degree polynomial and distribute them. Here we still assume n=4, t=2, n=1,2,3,4, then:
[0054] Participant P 1 Generates 11 =f 1 (1)s 12 =f 1 (2) s 13 =f 1 (3)s 14 =f 1 (4) Keep s 11 , and encrypt and send s 12 To P 2 , encrypt and send 13 To P 3 , encrypt and send 14 To P 4 ;
[0055] Participant P 2 Generates 21 =f 2 (1)s 22 =f 2 (2) s 23 =f 2 (3)s 24 =f 2 (4) Keep s 22 , and encrypt and send s 21 To P 1 , encrypt and send 23 To P3 , encrypt and send 24 To P 4 ;
[0056] Participant P 3 Generates 31 =f 3 (1)s 32 =f 3 (2) s 33 =f 3 (3)s 34 =f 3 (4) Keep s 33 , and encrypt and send s 31 To P 1 , encrypt and send 32 To P 2 , encrypt and send 34 To P 4 ;
[0057] Participant P 4 Generates 41 =f 4 (1)s 42 =f 4 (2) s 43 =f 4 (3)s 44 =f 4 (4) Keep s 44 , and encrypt and send s 41 To P 1 , encrypt and send 42 To P 2 , encrypt and send 43 To P 3 .
[0058] In addition, each participant P i You can also generate the public verification parameter A corresponding to your own t-1 degree polynomial ik =g aik , where k = 0, 1, ..., t, and announced to each participant, specifically:
[0059] Participant P 1 Generate A 1k =g a1k , k=0,1,…,t, including A 10 =g a10 , A 11 =g a11 , A 12 =g a12 , broadcast {A 10 ,A 11 ,A 12} to P 2 , P 3 and P 4 ;
[0060] Participant P 2 Generate A 2k =g a2k , k=0,1,…,t, including A 20 =g a20 , A 21 =g a21 , A 22 =g a22 , broadcast {A 20 ,A 21 ,A 22} to P 1 , P 3 and P 4 ;
[0061] Participant P 3 Generate A 3k =g a3k , k=0,1,…,t, including A 30 =g a30 , A 31 =g a31 , A 32 =g a32 , broadcast {A 30 ,A 31 ,A 32} to P 1 , P 2 and P 4 ;
[0062] Participant P 4 Generate A 4k =g a4k , k=0,1,…,t, including A 40 =g a40 , A 41 =g a41 , A 42 =g a42 , broadcast {A 40 ,A 41 ,A 42} to P 1 , P 2 and P 3 .
[0063] In this way, P 1 Received 21 After that, you can use {A 20 ,A 21 ,A 22} to verify; 1 Received31 After that, you can use {A 30 ,A 31 ,A 32} to verify; 1 Received 41 After that, you can use {A 40 ,A 41 ,A 42} for verification; the verification method is similar to the above and will not be repeated here.
[0064] then:
[0065] Participant P 1 The secret share s can be calculated 1 For: 1 =s 11 +s 21 +s 31 +s 41 ;
[0066] Participant P 2 The secret share s can be calculated 2 For: 2 =s 12 +s 22 +s 32 +s 42 ;
[0067] Participant P 3 The secret share s can be calculated 3 For: 3 =s 13 +s 23 +s 33 +s 43 ;
[0068] Participant P 4 The secret share s can be calculated 4 For: 4 =s 14 +s 24 +s 34 +s 44 ;
[0069] Each participant P i can use the secret share s calculated by itself i Broadcast to other participants. Then each participant P i Collect all 1 ,s 2 ,s 3 ,s 4}, the secret s can be reconstructed after at least t+1 secret shares are obtained. 0 Here, for t = 2, each participant Pi After collecting at least t+1=2+1=3 secret shares, the secret s can be reconstructed. 0 .
[0070] This is because the sum of the curves of each participant can be summed up to get the total curve:
[0071] f(z)=f 1 (z)+f 2 (z)+f 3 (z)+f 4 (z)
[0072] f(z)=(a 10 +a 11 z+a 12 z 2 )+(a 20 +a 21 z+a 22 z 2 )+(a 30 +a 31 z+a 32 z 2 )
[0073] +(a 40 +a 41 z+a 42 z 2 )
[0074] f(z)=(a 10 +a 20 +a 30 +a 40 )+(a 11 +a 21 +a 31 +a 41 )z+(a 12 +a 22 +a 32 +a 42 ) 2
[0075] Polynomial (I)
[0076] so:
[0077] s 1 =s 11 +s 21 +s 31 +s 41 =f 1 (1)+f 2 (1)+f 3 (1)+f 4 (1);
[0078] s 2 =s 12 +s 22 +s 32 +s 42 =f 1 (2)+f 2 (2)+f 3 (2)+f 4 (2);
[0079] s 3 =s 13 +s 23 +s 33 +s 43 =f 1 (3)+f 2 (3)+f 3 (3)+f 4 (3);
[0080] s 4 =s 14 +s 24 +s 34 +s 44 =f 1 (4)+f 2 (4)+f 3 (4)+f 4 (4);
[0081] For the total curve f(z), there is a relationship:
[0082] s 1 =f 1 (1)+f 2 (1)+f 3 (1)+f 4 (1) = f(1);
[0083] s 2 =f 1 (2)+f 2 (2)+f 3 (2)+f 4 (2) = f(2);
[0084] s 3 =f 1 (3)+f 2 (3)+f 3 (3)+f 4 (3) = f(3);
[0085] s 4 =f 1 (4)+f 2 (4)+f 3 (4)+f4 (4) = f(4);
[0086] Secret for s 0 =a 10 +a 20 +a 30 +a 40 .
[0087] In this way, any participant P i Collect all secret shares 1 、s 2 、s 3 、s 4 After obtaining at least 3 of them, it is equivalent to obtaining at least 3 points on the curve corresponding to polynomial (I), that is, obtaining (x 1 =1,y 1 =s 1 ),(x 2 =2,y 2 =s 2 ),(x 3 =3,y 3 =s 3 ),(x 4 =4,y 4 =s 4 ) At least three of the four coordinates can be used to recover the overall curve f(z). Furthermore, f(0)=a can be calculated. 10 +a 20 +a 30 +a 40 =s 0 , so that the secret s can be obtained 0 .
[0088] Furthermore, by verifying the parameter {A 10 ,A 11 ,A 12}, {A 20 ,A 21 ,A 22}, {A 30 ,A 31 ,A 32}, {A 40 ,A 41 ,A 42} can also be used for secrets i The legitimacy of (0,s i ) is a point on the total curve. Specifically, the legality is determined by verifying whether the following equation holds:
[0089]
[0090] This is because the following relationship exists:
[0091]
[0092]
[0093] Usually, the right side of the polynomial (II) is assumed to be the public key share, denoted as pub i ,i=1,2,…,n, to verify the corresponding private key share.
[0094]
[0095] As mentioned above, we can generally take x i =i for each i=1,2,…,n. In this way, i can be used as the number of each participant.
[0096] For secrets 0 Verification, that is, x i =0, the above formula can be further deduced as follows:
[0097]
[0098] Definition 0 0 =1, and 0 k =0, k≠0, so the above formula can be further deduced:
[0099]
[0100] It can be seen that based on this polynomial (III), it can be verified that s 0 the legitimacy of.
[0101] Moreover, based on the derivation in the above polynomial (III), for verifying s 0 The legitimacy of can be further simplified as follows:
[0102]
[0103] It is also common to assume that the right side of the equal sign of polynomial (Ⅳ) is the total public key, denoted as pub.
[0104] The above-mentioned Joint-Feldman protocol can realize distributed secret sharing, that is, it completes the main content of DKG. The above-mentioned series of secret sharing implementation schemes, from Shamir to threshold Shamir, Feldman VSS protocol, and then to Joint-Feldman DVSS protocol, are actually a series of schemes. In fact, in addition to this series of schemes starting with Shamir secret sharing, there are also schemes based on additive secret sharing, SPDZ (an important protocol in multi-party secure computation, first proposed in 2012), or the Chinese remainder theorem, which can also eventually realize DKG. They are omitted here and will not be repeated.
[0105] Through the implementation of the above DKG protocol, the problem of single point failure resulting in overall unavailability caused by a single entity generating keys can be overcome, as well as the problem of needing to trust a single point of key generation. i Broadcast the generated secret share s ij ,i,j∈(1,2,…,n), n is the number of participants, and each participant P i can use the secret share s calculated by itself i Broadcast to other participants, so that each participant P i Collect all 1 ,s 2 ,s 3 ,s 4}, the secret s can be reconstructed after at least t+1 secret shares are obtained. 0 , thus, at least t+1 participants will obtain the final reconstructed secret s 0 , which will expose the secrets 0 , the total curve will also become unusable. If a new secret s is to be generated again next time 0 , the process of the DKG protocol needs to be repeated.
[0106] The properties of the DKG protocol in terms of threshold and secret commitment, combined with the threshold signature algorithm that matches it, can be used to construct a distributed threshold signature protocol. As a distributed system, blockchain uses a large number of signature algorithms. In this way, the nodes in the blockchain generate secret shares in a distributed manner through DKG, and at least t+1 blockchain nodes use secret shares as private key shares to sign and broadcast the signature information. Any blockchain node that has collected at least t+1 signature shares can restore the total signature, and can restore the total public key by the above method, and this restored total signature can be verified by the total public key, thereby realizing the threshold signature. Moreover, the advantage of this is that the secret shares held by each blockchain node do not need to be broadcast to other nodes, so that their own secret shares will not be exposed, and the private key will not be exposed. Therefore, the secret shares generated by DKG once can be reused multiple times, without having to perform a DKG protocol for each threshold signature.
[0107] The threshold signature may be, for example, a threshold signature based on the ECDSA signature algorithm. It is understood that the signature algorithm corresponding to the threshold signature in the embodiments of this specification is not limited to the ECDSA signature algorithm, but may be other signature algorithms, such as the SM2 signature algorithm, etc. The following description takes the ECDSA signature algorithm as an example.
[0108] The basic ECDSA signature algorithms include:
[0109] Alice, the signer, chooses an elliptic curve E q (a, b) and base point G, and share this information with the verifier Bob, where q is the modulus.
[0110] Alice in a finite field Select a private key x and generate a public key X = x G based on the private key;
[0111] Alice in a finite field Select a random number k and calculate R=k·G, calculate r=f(R), and r≠0; where f(R) can be the horizontal coordinate of R.
[0112] Alice calculates the digest value m of the message msg to be signed by hashing it, that is, m=hash(msg), and calculates:
[0113] σ=k -1 (m+x·r) mod q formula (a)
[0114] Alice generates a signature sig = (r, σ), and sends the message msg, signature sig, and public key X to the signature verifier Bob.
[0115] Bob verifies the following equation for the received message m and signature sig using the public key X:
[0116] r = f(σ -1 ·m·G + σ -1 ·r·X) Equation (b)
[0117] If Equation (b) holds, the signature is valid; otherwise, it is invalid. This is because, from Equation (a), we have: k = σ -1 (m + x·r) mod q, and then substituting R = k·G and k into r = f(R), we get:
[0118] r = f(R) = f(k·G) = f(σ -1 (m + x·r)·G) = f(σ -1 ·m·G + σ -1 ·x·r·G)
[0119] = f(σ -1 ·m·G + σ -1 ·r·X)
[0120] That is, according to the right side of Equation (b), Bob can use σ, r in the received signature, as well as the message m and public key X to perform calculations and verify whether the calculated result is equal to r in the signature.
[0121] The above basic ECDSA signature algorithm can be extended to a threshold signature algorithm. For example, after the above DKG process, n signers P 1 , P 2 , …, P n each have their own secret shares and a total public key, where the threshold value is t and t < n. After at least t + 1 signers among the n participants each use their own secret shares as private key shares to sign the same message to be signed and broadcast, any verifier who collects at least t + 1 signature shares can recover the total signature and can use the total public key to verify the total signature, thus achieving threshold signature.
[0122] In a distributed threshold signature method based on ECDSA, each signer can generate a threshold private key through a Dealer or Dealerless method such as the threshold Shamir, Feldman, or Joint - Feldman protocol, or through other DKG schemes. As a result of such DKG schemes, the participant P i (i ∈ n) has a private key share ω i , and any at least t + 1 private key shares correspond to a total private key ω. The result of this DKG can also generate a total public key X. There is a relationship between this total public key X and the total private key ω: ω·G = X.
[0123] In addition, after the n participants obtain their own private key shares based on DKG, they can use their own private key shares to sign the same message to generate signature shares. Any at least t+1 signature shares can be aggregated into a total signature, and the total signature can be verified by the total public key.
[0124] In a related technique, the above relationship can be expressed by Figure 1 Distributed threshold key generation and attachment Figure 2 The distributed threshold signature includes two parts: preprocessing stage and online signature stage.
[0125] The following first introduces the process of distributed threshold key generation protocol. In this process, it is assumed that there are n participants, namely P 1 , P 2 ,…,P n Through the distributed threshold key generation protocol, each participant P i (i={1,2,…,n}) can generate their own private key shares.
[0126] Specifically, each participant P i A t-degree polynomial f can be generated i (z) = a i0 +a i1 z+a i2 z 2 +…+a it z t , where a i0 YesP i Setting secrets i0 . The threshold here is t), so the degree of the polynomial is also t.
[0127] Furthermore, each participant P i You can generate n secret shares, keep one of them for yourself, and encrypt and send the rest to other participants. i Generate the coordinates of n points on the curve corresponding to its own polynomial as n secret shares, retain the coordinates of one of the points for itself, and encrypt and send the coordinates of the remaining points to other participants.
[0128] Next, each participant P i A secret share s can be kept by itself ii and from other participants P j The secret share s ji After aggregation, the private key shares are obtained. The aggregation method is, for example, summation. For example, if the participant P i Private key share
[0129] Moreover, each participant P i You can also generate the public verification parameter A corresponding to your own t-degree polynomial ik =a ik G, where k = 0, 1, …, t, and is published to each participant.
[0130] Each participant P i It can also be based on P j The public authentication parameters j0 ,A j1 ,…,A jt Verify P j Secret shares sent ji , for example, verified by the following formula:
[0131] s ji G=A j0 +iA j1 +…+i t A jt
[0132] On the other hand, each participant P i The total public key X can be calculated in a similar way as above, for example, using the following formula:
[0133]
[0134] As mentioned above, the total public key can be used to verify the total signature after subsequent aggregation.
[0135] In addition, in order to resist the attack of malicious adversaries, each participant P i A hash value of the public key corresponding to its own secret can be generated and broadcasted, so that the recipient can verify each participant P through the hash value i The sent secret corresponds to the correctness of the public key.
[0136] In addition, each participant P i You can generate your own public-private key pair for homomorphic encryption, such as the Paillier public-private key pair (N i ,sk i ), where sk i is the private key, N iis the corresponding public key. Homomorphic encryption technology can process plaintext data "homomorphically", that is, map the plaintext data to a new, confidential state, so that only the recipient with the key can obtain the plaintext data. Paillier homomorphic addition is a public key encryption system widely used in cryptography, proposed by Pascal Paillier in 1999. Its main feature is that it has additive homomorphic properties, which means that given two ciphertexts, the ciphertext of the sum of their corresponding plaintexts can be calculated without decryption. Specifically, suppose there are two plaintexts m1 and m2, and their Paillier encrypted ciphertexts are c1 and c2 respectively. Paillier's additive homomorphic property can realize the calculation of the product of c1 and c2 to obtain a new ciphertext c, which is exactly the ciphertext of the sum of m1 and m2. This homomorphic property can complete some forms of calculation on encrypted data without leaking the original data.
[0137] Each participant P i After generating a homomorphically encrypted public-private key pair, the public key can be sent to other parties.
[0138] In this way, each participant P i The local computer can store its own secrets, its own private key share, its own homomorphically encrypted private key, the total public key, and the homomorphically encrypted public key of each participant.
[0139] After the above distributed threshold key generation process, there is a total polynomial:
[0140] f(z)=f 1 (z)+f 2 (z)+f 3 (z)+f 4 (z)+f 5 (z)
[0141] =a 10 +a 11 z+a 12 z 2 +a 20 +a 21 z+a 22 z 2 +a 30 +a 31 z+a 32 z 2 +a 40 +a 41 z
[0142] +a 42 z 2 +a 50 +a 51 z+a52 z 2
[0143] =(a 10 +a 20 +a 30 +a 40 +a 50 )+(a 11 +a 21 +a 31 +a 41 +a 51 )
[0144] +(a 12 +a 22 +a 32 +a 42 +a 52 ) 2
[0145] As mentioned before, this polynomial corresponds to a total curve, and the following relationship exists:
[0146] s 1 =f 1 (1)+f 2 (1)+f 3 (1)+f 4 (1)+f 5 (1) = f(1);
[0147] s 2 =f 1 (2)+f 2 (2)+f 3 (2)+f 4 (2)+f 5 (2) = f(2);
[0148] s 3 =f 1 (3)+f 2 (3)+f 3 (3)+f 4 (3)+f 5 (3) = f(3);
[0149] s 4 =f 1 (4)+f 2 (4)+f 3 (4)+f 4 (4)+f 5 (4) = f(4);
[0150] s 5 =f 1 (5)+f 2 (5)+f3 (5)+f 4 (5)+f 5 (5) = f(5);
[0151] In the aforementioned DKG scheme, each participant P i can use the secret share s calculated by itself i Broadcast to other participants. Then each participant P i Collect all 1 ,s 2 ,s 3 ,s 4 ,s 5}, the secret s can be reconstructed after at least t+1 secret shares are obtained. 0 For example, for a threshold of 2, each participant P i After collecting at least 3 secret shares, the secret s can be reconstructed. 0 .
[0152] In this embodiment, the purpose is to achieve distributed threshold signature, so the secret share s is not i It is not sent to other participants, but as a private key share. In this way, no participant or other party can recover the total secret after obtaining at least t+1 secret shares, that is, the total private key will not be obtained, thereby ensuring that the private key shares obtained by multiple participants after a distributed threshold key generation protocol can be repeated for distributed threshold signatures in the future.
[0153] The following is an introduction to a distributed threshold signature process in the related art, which may include a preprocessing phase and an online signature phase. The above-mentioned distributed key generation process requires n participants to participate in the protocol process. The following distributed threshold signature process only requires at least t+1 participants to participate in the protocol process.
[0154] Preprocessing stage: At least t+1 participants generate their own first random value k i and a second random value γ i Each participant also uses a homomorphic encryption algorithm and obtains the coordinate component r and their own private key share component mask value χ through the preprocessing phase protocol i .
[0155] Figure 3 This is a flow chart of a preprocessing process in a threshold signature in an embodiment, which may specifically include:
[0156] Step S10, t+1 participants, each participant P i Calculate the Lagrange coefficient And calculate the private key share component x i =λ is i .
[0157] Step S11: Each of at least t+1 participants generates l groups of first random values and second random values, and corresponding first random value homomorphic ciphertexts and second random value public key hashes.
[0158] For example, participant P i ,i∈[1,t+1] generates the first random value k i and a second random value γ i ,and Among them, in elliptic curve cryptography (ECC), It usually refers to the set of integers modulo q, that is, the set consisting of all integers from 0 to q-1, in which operations (such as addition, multiplication, etc.) are performed modulo q. This modular operation ensures the closure and security of operations within a finite field, and is one of the key factors in ensuring encryption strength in elliptic curve cryptography. For example, the coefficients and results of point addition or scalar multiplication on an elliptic curve need to be processed modulo q to ensure that the result is still on a valid elliptic curve.
[0159] On this basis, the participant P i The first random value homomorphic ciphertext can be calculated, such as the Paillier ciphertext K i =E i (k i ), and calculate the second random value public key hash, such as g i =H 1 (γ i G), H 1 () is a hash algorithm, similar to the above.
[0160] Furthermore, for each of at least t+1 participants, P i The generated first random value homomorphic ciphertext can be sent to other participants.
[0161] The above set of first random value and second random value can be used to obtain a signature. Each of at least t+1 participants can generate l sets of first random value and second random value, and It can be used to generate l signatures for the same or different messages. i,ξ Generate homomorphic ciphertext K i,ξ , and K i,ξ Sent to each of the other participants among at least t+1 participants.
[0162] Step S12: The participant P receiving the broadcast i , for P j Sent by K i,ξ, for each K i,ξ , select two masks This means that the range of the subscript of the finite field is q to the fifth power, which is a proven range of values that is cryptographically secure. Generally available in Select a larger value in the range. i The intermediate ciphertext D can be calculated by homomorphic algorithm i,j,ξ and And send to P j :
[0163]
[0164] In the above two formulas, They represent homomorphic multiplication and homomorphic addition operations respectively. j () indicates the use of participant P j Homomorphic encryption is performed with the homomorphic public key of j∈[1,t+1],j≠i,ξ∈[1,l].
[0165] Step S13: Each participant P i Calculate the intermediate value δ i,ξ and the private key share component mask value χ i , and obtain l groups of preprocessing results.
[0166] Furthermore, each participant P i For the received l sets of intermediate ciphertext D j,i,ξ and Use the corresponding homomorphic encryption private key to decrypt and obtain l groups of plaintext α j,i,ξ , This is called the intermediate plaintext, where: α j,i,ξ =γ j,ξ ·k i,ξ -β j,i,ξ ,
[0167] Then for each ξ∈[1,l], we can i,ξ and a second random value γ i,ξ And the intermediate plaintext α j,i,ξ , Calculate the intermediate value δ i,ξ , and can be based on the private key share component x i and the first random value k i,ξ And the intermediate plaintext α j,i,ξ , Calculate the private key share component mask value X i :
[0168]
[0169] Here, there are two relations:
[0170]
[0171] In addition, each participant P i You can also calculate l second random values γ i,ξ The corresponding random number public key Γ i,ξ =γ i,ξ G, and lδ i,ξ and Γ i,ξ Broadcast to at least t+1 other participants. Each participant P i For each ξ, the above relationship 1 can be used to calculate:
[0172]
[0173] It can be seen that this is the same as the previous ECDSA form. i r can be calculated ξ =f(R ξ ), f(R ξ ) As before, we can take point R ξ The horizontal axis of .
[0174] Afterwards, participant P i Storage As a set of pre-processing results, or pre-signing results.
[0175] Online stage: The at least t+1 participants each select an unused set (r ξ ,k 1,ξ ,δ 1,ξ ,X 1,ξ ), where each participant uses the same set of preprocessing results corresponding to ξ and uses its own first random value k i,ξ , private key share component mask value χ i,ξ and the coordinate component r ξ Sign the same message and get at least t+1 signature shares σ i,ξ :
[0176] σ i,ξ =k i,ξ H(m)+X i,ξ r ξ
[0177] Where H(m) is the hash value of message m. Afterwards, each participant can broadcast σ to other participants. i,ξ .
[0178] In this way, after any party obtains at least t+1 signature shares, the at least t+1 signature shares can be aggregated into a total signature sig=(r ξ ,σ ξ ). And, the total public key X mentioned above can be used to verify the total signature σ ξ This is because the form of this formula is consistent with that in the aforementioned ECDSA.
[0179] First of all, it should be noted that the following relationship exists:
[0180]
[0181] In this way, at least t+1 signature shares are aggregated into the total signature σ ξ for:
[0182]
[0183] Here x=∑ i∈[1,t+1] x i =f(0), we can see that σ ξ =k ξ ·H(m)+k ξ ·x·r ξ , which is essentially the same as formula (a) in the aforementioned ECDSA signature algorithm. Therefore, it is obvious that the total public key X can be used for verification.
[0184] After obtaining the above total signature σ ξ Afterwards, the total signature σ can be generated by using the total public key X ξ Verification is performed to verify whether there is a cheating party among at least t+1 participants, that is, a participant who provides an incorrect signature share. However, after determining that there is an incorrect signature share, it is impossible to confirm which participant among the at least t+1 participants who participated in the signature is the cheating party in this scheme. Therefore, the signature shares calculated by other honest participants who participated in the signature calculation must also be discarded, and the total signature needs to be repeatedly generated until it is verified that the total signature is the correct signature. This leads to a denial of service (DoS) vulnerability in the system, especially in time-sensitive businesses, attackers may attack this vulnerability, causing serious consequences.
[0185] To this end, several robust threshold signature schemes have been proposed in the relevant technology. These schemes can verify whether each participant has provided the correct signature share when the total signature verification fails in the online stage. Therefore, when there are a sufficient number of honest parties, the correct total signature can still be generated based on the signature shares of other honest parties, thereby minimizing denial of service (DoS) interference and ensuring the generation of a valid signature.
[0186] Specifically, in a robust threshold signature scheme, a multiplication-to-addition (MtA) protocol is used to achieve robustness. The MtA protocol is a secure two-party computation, including: receiving inputs a and b from two parties (such as Alice and Bob), and securely calculating α for Alice and β for Bob, so that α+β=ab(mod q). At the same time, a consistency check mechanism is performed during the MtA calculation process. In this mechanism, Bob provides additional proofs to convince Alice (or all parties), for example, to prove that his input b is correct.
[0187] Based on linear homomorphic encryption (LHE), the MtA protocol can be implemented as follows:
[0188] (1) Alice uses her encryption key ek to encrypt a, generating ciphertext C a =E(ek,a), and send the ciphertext and its zero-knowledge proof to Bob;
[0189] (2) Bob selects a random β and generates a ciphertext The ciphertext C α Send to Alice;
[0190] (3) Alice decrypts C α , we obtain α=b·a-βmod q, where α and β known to Bob together constitute the additive share of b·a, that is, α+β=ab(mod q).
[0191] Assume that Bob's input b corresponds to a point X in the elliptic curve Bob = bG, the consistency check mechanism is divided into the following two methods:
[0192] Privacy Check: In step (2), Bob sends the ciphertext C α and B Bob =βG. Afterwards, only Alice can use her private inputs α and a to check whether the following formula holds:
[0193] αG+B Bob =aX Bob
[0194] That is, in the case where β is the correct additive share,
[0195] αG+B Bob =(b·a-β)G+βG=abG=aX Bob , that is, the above formula must be true. Therefore, when the above formula is verified to be true, it can be verified that β is the correct addition share.
[0196] Public inspection: Bob sends ciphertext C α And a zero-knowledge proof (ZKP) that proves b is X Bob The discrete logarithm of .
[0197] In threshold signature, if the participants perform consistency check based on private check, when the participant P 1 Determine the participant P 2 If the participant P is a cheater, 1 A cheater can be identified by disclosing his secret share, which can cause security issues in threshold signature schemes that require robustness. Therefore, in order to provide robustness, a public verification scheme is needed.
[0198] In order to carry out the MtA protocol, the k in the threshold signature process is i and γ i Each of the t threshold fragments is generated, which increases the number of interaction rounds in the threshold signature. Compared with the threshold signature scheme that does not provide robustness, the robust threshold signature scheme in the related art requires at least four rounds of interaction to complete the threshold signature, which consumes more computing resources and communication resources.
[0199] To this end, the present embodiment provides a robust threshold signature method, in which k i Generate t threshold shards, while each participant still uses the randomly generated γ i Participate in the threshold signature algorithm and consistency verification, that is, γ = ∑ j∈[t+1] γ j The value of is uncertain before generating the total signature. Since γ is eliminated in the process of calculating the total signature, the uncertainty of the γ value does not affect the final generated total signature. Therefore, compared with the existing solutions, the embodiment of this specification provides a threshold signature scheme with fewer interaction rounds.
[0200] The threshold signature scheme in the embodiment of this specification is described in detail below. The threshold signature scheme may include two parts: a pre-processing stage and an online stage.
[0201] Before executing the threshold signature scheme in the embodiment of this specification, similar to the above, n participants can generate their own private key shares x based on the threshold key generation protocol. i, and the total public key X. In the embodiments of this specification, the secret share can be homomorphically encrypted based on the linear homomorphic encryption algorithm (Linearly homomorphic encryption, LHE), and a zero-knowledge proof of the ciphertext can be generated, so that each participant can publicly verify the ciphertext. Among them, the above-mentioned LHE algorithm includes, for example, the CL algorithm, the Paillier algorithm, etc., and the CL algorithm is used as an example for description below.
[0202] Specifically, the CL algorithm includes the following algorithms:
[0203] Generate private key dk and public key
[0204] For plaintext m, generate ciphertext based on CL algorithm Among them, ρ is a random number, g and f are public parameters, and q is the modulus;
[0205] Decrypt the ciphertext (c1, c2) based on the private key dk to obtain the plaintext m;
[0206] Assume that the ciphertext of plaintext m′ is E(ek,m′,ρ′)=(c1′,c2′), then,
[0207] a⊙E(ek,m,ρ)=(c1 a ,c2 a ).
[0208] First, the key generation phase in the embodiments of this specification is described.
[0209] Figure 4 This is a flow chart of a method for generating a threshold signature key in an embodiment of this specification. The method is initially performed by n participants, and the participants who perform the method can be recorded as a participant set During the execution process, the cheating party among the participants can be verified based on zero-knowledge proof, which may reduce the number of participants. Participants in . Figure 4 The participant P in the participant set is shown in i and participant P j As an example, it can be understood that each participant in the participant set performs the same operation, that is, participant P j Also execute Figure 4 The participant P shown in i Operation, participant P i Also execute Figure 4 The participant P shown in j operation. Figure 4 The participant P is shown in i With the participant Pj For ease of description, the three-round interaction process between multiple parties is as follows: Figure 4 China-Israel Participants i Describe the perspective from which each round of interaction is initiated.
[0210] like Figure 4 As shown in FIG. 4 , in step S401, the participant P i Generate a public-private key pair and zero-knowledge proof τ for the homomorphic encryption algorithm i .
[0211] In the first round of interaction, each participant P among the n participants i Generate your own key for the CL algorithm (ek i ,dk i ), and generate a zero-knowledge proof τ i , τ i Used to prove the ek in the key i The effectiveness of τ i The specific algorithm can use the existing algorithm in the relevant technical field, which will not be described in detail here.
[0212] Among them, zero-knowledge proof (ZKP) refers to the ability of the prover to convince the verifier that a statement is correct without providing any useful information to the verifier. Specifically, the prover generates a proof of a statement using witness information that only he or she possesses. The verifier can verify the proof to determine that the prover has the witness for the statement, while being unable to obtain any information about the witness.
[0213] Then, in step S403, each participant P i Broadcast its ek to other participants i and τ i .
[0214] In step S405, each participant verifies the zero-knowledge proof.
[0215] For example, P j Upon receiving the participant P i Ek i and τ i Afterwards, verify the proof τ i
[0216] P i Upon receiving the participant P j Ek j and τ j Afterwards, verify the proof τ j If the verification is successful, ek j Add to public key collection Among them is the set of participants, otherwise Remove the participant P j .
[0217] In step S407, the participant P i In the pair collection The proofs of each participant in j After verification, based on the secret sharing algorithm, private key shards, private key shard ciphertexts, commitments and zero-knowledge proofs π are generated. ji .
[0218] In the second round of interaction, participant P i After verifying all other parties, as described above, a private key shard is generated based on the secret sharing algorithm. Based on the CL algorithm, each participant P j The public key ek j For the corresponding s ij Perform homomorphic encryption to obtain ciphertext At the same time, generate zero-knowledge proof π ji .in, is a Pedersen commitment, G and H are auxiliary parameters, and r is the participant P i The generated random value (r in the Pedersen commitment algorithm and the signature component r below are different parameters).
[0219] Among them, the participant P i Generate a zero-knowledge proof as follows:
[0220] Participant P i First, randomly generate s in the preset value range ij0 、r 0 and ρ 0 ,
[0221] calculate
[0222] Participant P i c′ 1 , c′ 2 and Sent to each other participant, from each other participant P υ Receive challenge value ch υ .
[0223] Then the participant P i The value of the following parameter can be calculated as zero-knowledge proof π ji :
[0224]
[0225] r * =r 0 +ch υ ·r
[0226] ρ * =ρ 0 +ch υ ·ρ
[0227] In step S409, each participant P i Broadcast the generated private key shard ciphertext, commitment and proof π to other participants ji .
[0228] In step S411, each participant receives the i Sent private key shard ciphertext, commitment and proof π ji Afterwards, verify the proof π ji .
[0229] Specifically, the participant P i C sij , And the zero-knowledge proof is sent to each other participant P υ , participant P υ The above zero-knowledge proof can be verified by verifying whether the following formula is true:
[0230]
[0231] After the above zero-knowledge proof is verified, it is proved that Yes ij The ciphertext of s is not disclosed to any other participants. ij In addition, π ji Can be used to prove and Use consistent ij Generate, and π ji in The corresponding values can be used to verify s ij Whether the value range of meets the preset range. j By using your own private key dk j Ciphertext Decryption can get the plaintext s ij .
[0232] In step S413, each participant P i In the proof π issued to it ij After the proof is passed, the ciphertext Decrypt and obtain the private key shard, obtain the private key share and public key share based on the private key shard, and generate zero-knowledge proof π iIn step S415, each participant P i Broadcast the public key share and proof π to other participants i .
[0233] Specifically, in the third round of interaction, each participant P i Upon receipt of the And zero-knowledge proof π ij After that, each zero-knowledge proof is verified separately, and each verified Decrypt and get the private key fragment s ji , based on each s ji Calculating as above, we can get the private key share x i and public key share X i , in is the set of participants excluding malicious or disconnected participants. i Generate public key share X i The corresponding zero-knowledge proof π i , broadcast the public key share X to other participants i And the corresponding zero-knowledge proof π i , which proves that π i To prove is x i The ciphertext of X i With x i correspond.
[0234] In step S417, each participant receives the public key share and the certificate π i Afterwards, verify π i , in the case of successful verification, the total public key is calculated based on the public key shares of each participant.
[0235] Participant P i Upon receiving, for example, a participant P j The public key share X j and π j Afterwards, based on the received ciphertext Computable Then based on X j and π j If the verification fails, you can Remove the participant P j , if the verification is successful, it can be based on the public key shares X of multiple verified participants v Calculate the total public key where λ v For each participant P v The Lagrange coefficient of
[0236] After generating private key shares, public key shares and the total public key as described above, multiple participants in the participant set can first perform the preprocessing stage of the threshold signature and prepare the data of the preprocessing stage, so that after receiving the message to be signed, they can quickly complete the online stage and generate a signature for the message.
[0237] Figure 5 The flowchart of a threshold signature method in the embodiment of this specification is shown in FIG. The method includes a preprocessing stage (also called an offline stage) and an online stage, wherein Figure 5 Steps S501 to S511 belong to the preprocessing stage, and steps S513 to S517 belong to the online stage.
[0238] like Figure 5 As shown, in step S501, each participant P in the participant set i Generate random values γ i 、Ciphertext prove Sharding Fragment Ciphertext promise And prove π ji In step S503, each participant P i Broadcast to other participants
[0239] Step S501 and step S503 are the first round of interaction in the preprocessing stage. In this first round of interaction, the set Each participant P i Do the following:
[0240] (a) Assumption set There are n' remaining participants, participant P i from Randomly select a random value γ i , based on the public key ek i Generate γ i The ciphertext And zero-knowledge proof prove To prove By using the public key ek i γ i Encrypted, proof For example, it can be generated as follows:
[0241] Participant P i First, randomly generate γ in the preset value range i0 and ρ 0 ,
[0242] calculate
[0243] Participant P i c′ 1 , c′ 2 Sent to each other participant, from each other participant P υ Receive challenge value ch.
[0244] Then the participant P i The values of the following parameters can be calculated as zero-knowledge proofs
[0245]
[0246] ρ * =ρ 0 +ch·ρ
[0247] (b) Party P i Call the above distributed secret sharing protocol to generate Based on the CL algorithm, each participant P j The public key ek j For the corresponding k ij Perform homomorphic encryption to obtain ciphertext And generate zero-knowledge proof π ji , thus obtaining in, The generation of can refer to the above in the key generation phase and generation The description of the related data will not be repeated here. ji Can be used to prove ciphertext The correctness of and Use a consistent k ij Generate, and π ji in The corresponding value can be used to verify k ij Whether the value range of meets the preset range.
[0248] (c)Participant P i To the collection Other participants in the broadcast the following data:
[0249] In step S505, each participant P j Upon receiving the broadcast from other participants Afterwards, verify and each π ji , if the verification is successful, you can use your own private key dk j For each Decryption, get kij , so that the random value share and the random value public key share can be calculated.
[0250] Specifically, the participant P j The above zero-knowledge proof can be verified by verifying whether the following formula is true
[0251]
[0252]
[0253] Participant P j π ji For the verification, please refer to the above description and will not be repeated here.
[0254] In step S507, each participant P i Calculate the random value share Calculate the random value share k i , random value public key share R i , generate the masked public key B i,j , Random value public key Γ i , the intermediate value ciphertext and And prove π′ i,j and In step S509, each participant P i Broadcast to other participants in,
[0255] Steps S507 and S509 are the second round of interaction in the preprocessing stage. Specifically, in the second round of interaction, the participant P i Do the following:
[0256] (a) Party P i Upon receipt from other parties Afterwards, we will prove zero-knowledge and π jv Verify, if verification fails, Remove the participants who failed the verification.
[0257] Afterwards, participant P i For each Decryption, get k ji ,in calculate Where R i =k i G,π i To prove R i The correctness of R i is with ki The corresponding point on the elliptic curve, and k i The homomorphic ciphertext of
[0258] (b) Party P i Based on the MtA protocol, for the collection Other participants P j Generate two masks respectively Calculate the masked public key B i,j =β i,j G, The first random value public key Γ i =γ i G, and then calculate the following intermediate value ciphertext:
[0259]
[0260]
[0261] (c)P i broadcast
[0262] in, π′ i,j For verification Zero-knowledge proof of the validity of For verification Zero-knowledge proof of the validity of .
[0263] Above The definition of and Can be constructed The elements in . Among them,
[0264]
[0265] Similarly, the above The definition of and Can be constructed The elements in .
[0266] Specifically, for the participant P j , participant P i Can be used for The zero-knowledge proof algorithm generates proof π′ as follows i,j :
[0267] Participant P i Generate γ 0 , α j,i0 and ρ 0 ,set up
[0268] calculate Γ 0 =γ 0 G,A j,i0 =α j,i0 G,
[0269] Participant P i c′ 1 , c′ 2 , Γ 0 , A j,i0 Sent to participant P j , participant P j Generate a random value ch and return it to participant P i .
[0270] Participant P i Generate the following parameter value as zero-knowledge proof π′ i,j :
[0271]
[0272]
[0273] ρ * =ρ 0 +ch·ρ
[0274] Participant P i The same algorithm as above can be used to generate and As I will not go into details here.
[0275] In step S511, each participant P j Verify π′ i,j and In the case of successful verification, the intermediate value α is obtained by decryption j,i and Generate the component r in the signature, and replace α j,i , and r are the outputs of the offline phase.
[0276] From the participant P i From the perspective of each participant P i Upon receiving Afterwards, for each participant P j , based on the received calculate Based on K j π j Verify that R j Is it the same as k j The corresponding point on the elliptic curve, and k j The homomorphic ciphertext of In the case of verification failure, Remove the participant P j .
[0277] After the above verification is passed, the participant P i For π′ j,i and Verify, if verification fails, Remove the participant P j , in the case of successful verification, Decrypt and get α i,j ,right Decrypt and get
[0278] Specifically, π′ j,i For example, suppose Participant P i We can verify whether the following equation holds true:
[0279]
[0280] Among them A i,j =α i,j G
[0281] (d)Participant P i exist When the number of participants in is greater than or equal to t+1, calculate
[0282]
[0283] r=R| x轴 As a pre-signature.
[0284] In step S513, each participant P i Generate the secret sharing δ of kγ i,j and (rx+m)γ secret sharing χ i,j , numerical public key D i 、F i , and prove that τ i,j In step S515, each participant P i broadcast
[0285] After the signature system inputs the message msg to be signed, the signature system enters the online phase. In the following, let m = H(msg), where H represents the hash function. In this phase, each participant P i With secret sharing Share with the public
[0286] In a round of interaction, each participant P i Do the following:
[0287] (a) Party P i Generate shards with a t threshold of 0 using the Shamir secret sharing algorithm:
[0288]
[0289]
[0290] That is, using 0 as a0 of the t-order polynomial, multiple secret shares are generated.
[0291] Then generate the t-threshold slices of m:
[0292]
[0293] (b) Party P i Calculate the secret sharing of kγ:
[0294] δ i,i =k i γ i +z i ,
[0295] {δ i,j =β i,j +α i,j +z j} j∈S\{i}
[0296] And the secret sharing to calculate (rx+m)γ:
[0297]
[0298] (c)Participant P i Calculate the numerical public key D i =γ i R,F i =γ i (mG+rX), and zero-knowledge proof τ i , where the numerical public key refers to the point xG on the elliptic curve corresponding to the numerical value x, that is, D i and F i are all points on the elliptic curve.
[0299] Above D i and F i The definition of D i and F i Can be constructed The elements in . Among them,
[0300]
[0301] That is, by i Considered as A in the equation, R is considered as In E, γ i Considered as a in the i Considered as C in the equation, (mG+rX) is considered as B in the game, participant P i Can be used for The zero-knowledge proof algorithm generates zero-knowledge proof τ as follows i,j :
[0302] Participant P i from Randomly select b from the equation and calculate D 0 = bR,F 0 =b(mG+rX), D 0 and F 0 Sent to participant P j , from the participant P j Receive the challenge value ch. Participant P i Calculate τ i,j =b+ch﹒ γ i .
[0303] (d)Participant P i broadcast
[0304] In step S517, each participant P j Based on δ i,j ,x i,j Calculate the signature component σ and verify τ if the signature verification fails i,j , in the case of τ i,j If the verification is passed, based on D i ,F i Verification i,j ,x i,j correctness.
[0305] Participant P i From the perspective of each participant P i Upon receipt of Afterwards, if If the number of participants in is greater than or equal to t+1, the σ in the signature sig can be calculated by the following formula:
[0306]
[0307] Then use the total signature X and msg to verify the signature (r,σ). If the verification passes, the signature (r,σ) can be output.
[0308] Specifically,
[0309]
[0310]
[0311] According to the formula (3) above, therefore,
[0312] Formula (6) can be converted into formula (7):
[0313]
[0314] According to the above formula (1), α j,v +β v,j =k v γ j , therefore, formula (7) can be transformed into formula (8):
[0315]
[0316]
[0317] According to formula (4), we can get Therefore, formula (9) can be transformed into formula (10):
[0318]
[0319] According to formula (2), we can get: Therefore, formula (10) can be converted into formula (11):
[0320] Based on formula (8) and formula (11), we can get:
[0321]
[0322] Formula (12) has the same definition as that of σ in the above formula (a). Therefore, if the signature verification is successful, it means that at least t+1 parties participating in the signature are honest parties.
[0323] In the case where the signature verification fails, the participant P i First, verify the above zero-knowledge proofs τ i,j .
[0324] Specifically, the participant P i For the participant Pj Verify whether the following equation holds true, thereby verifying D j and Γ j Based on the same γ j generate:
[0325] τ j,i R=D 0 +ch﹒ D j
[0326] τ j,i (mG+rX)=F 0 +ch﹒ F j
[0327] If the above verification is passed, the participant P i Verify that the following equations (13) and (14) hold true to verify that the participant P j of and Correctness:
[0328]
[0329] For equation (13), referring to the above formula (8), we can get:
[0330]
[0331] By multiplying both sides of formula (15) by G, we can get equation (13), that is, based on the existing B v,j , B j,v and the verified correct D j , in δ j,v If it is correct, equation (13) must hold, so we can verify whether equation (13) holds. j,v Is it correct.
[0332] For equation (14), referring to the above formula (11), we can get:
[0333]
[0334] By multiplying both sides of formula (16) by G, we can get equation (14), that is, based on the existing and the verified correct F j , in χ j,v If it is correct, equation (14) must hold, so we can verify whether equation (14) holds to verify χ j,v Is it correct.
[0335] In the above verification, if the zero-knowledge proof τ i,jIf the verification of is not passed, or the verification of equation (13) or (14) is not passed, then Remove the participant P j . In the case of participant P i After verifying all other parties, if If the number of remaining participants in t is greater than or equal to t+1, the σ in the signature sig can be calculated again by the following formula:
[0336]
[0337] In the above threshold signature scheme, a randomly generated first random value and a second random value generated based on a secret sharing algorithm are used to shard the threshold signature algorithm and verify consistency. Since the first random value is eliminated in the process of calculating the total signature, even if the first random value of each participant is randomly generated, it will not affect the final generated total signature, thereby realizing a robust threshold signature algorithm with three rounds of interaction.
[0338] Understandably, Figure 4 and Figure 5 The method shown is only an embodiment of the present invention and is not intended to limit the scope of the embodiments of the present invention. Figure 6 Another embodiment of the present specification provides a threshold signature method, which implements a threshold signature scheme through three rounds of interaction.
[0339] like Figure 6 As shown, in step S601, each participant P i Generate random values γ i , ciphertext Sharding Fragment Ciphertext
[0340] In step S603, each participant P i broadcast
[0341] In step S605, each participant P j based on Get k ij .
[0342] In step S607, each participant P i Calculate the random value share k i , random value public key share R i , the intermediate value ciphertext and
[0343] In step S609, each participant P i broadcast
[0344] In step S611, each participant P j Decryption to get the intermediate value α j,i and Generate the signature component r.
[0345] In step S613, each participant P i Generate the secret sharing δ of kγ i,j and (rx+m)γ secret sharing χ i,j .
[0346] In step S615, each participant P i broadcast
[0347] In step S617, each participant P j Compute the signature component σ.
[0348] For detailed description of steps S601 to S617, please refer to Figure 5 The relevant descriptions in the method shown will not be repeated here.
[0349] Among them, steps S601 to S612 constitute the preprocessing stage, and steps S613 to S617 constitute the online stage. It can be understood that Figure 6 Although the specific implementation steps S613 to S617 are shown in FIG. 1 , the embodiments of this specification are not limited thereto. For example, in another embodiment of this specification, the existing intermediate value α may be used to obtain the intermediate value α. j,i , The signature component σ is calculated in a different way from the signature component r.
[0350] Compared to Figure 5 The method shown in Figure 6 In the method shown, each participant does not calculate each zero-knowledge proof during the threshold signature process, and does not verify the zero-knowledge proof. In one embodiment, each participant can Figure 5 The proof τ is generated as shown in i,j , and in the event that the signature verification fails, as referenced Figure 5 Description, based on τ i,j Verify whether there is any cheating party among the participants, thereby providing a certain degree of robustness.
[0351] Figure 6The threshold signature scheme shown uses a randomly generated first random value and a second random value generated based on a secret sharing algorithm to shard the participation threshold signature algorithm. Since the first random value is eliminated in the process of calculating the total signature, even if the first random value of each participant is randomly generated, it will not affect the final generated total signature, thereby realizing the threshold signature algorithm with three rounds of interaction.
[0352] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0353] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0354] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a server system. Of course, the present application does not exclude that with the development of computer technology in the future, the computer that implements the functions of the above embodiments may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0355] Although one or more embodiments of the present specification provide method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent the only execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements. For example, if the words first, second, etc. are used to represent the name, they do not represent any specific order.
[0356] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing one or more of the present specification, the functions of each module can be implemented in the same or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units, etc. 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 devices or units, which can be electrical, mechanical or other forms.
[0357] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0358] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0359] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0360] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0361] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0362] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0363] It should be understood by those skilled in the art that one or more embodiments of the present specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of the present specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0364] One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0365] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.
[0366] The above description is only an example of one or more embodiments of this specification and is not intended to limit one or more embodiments of this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the scope of the claims.
Claims
1. A threshold signature method, performed by a plurality of participants included in a participant set, wherein: The multiple participants respectively have their own private key shares and total public keys, the private key shares and total public keys are generated by the multiple participants based on a distributed secret sharing algorithm, the participant set includes at least t+1 participants, and the method includes: Preprocessing stage: each of the multiple participants generates a first random value, generates multiple second random value fragments corresponding to the multiple participants based on a secret sharing algorithm, uses its own public key to homomorphically encrypt the first random value to obtain a first random value ciphertext, broadcasts the first random value ciphertext, uses the public keys of other participants to homomorphically encrypt the corresponding second random value fragments, and then broadcasts them to other participants; Each participant generates a second random value share and a second random value share public key based on the second random value slice corresponding to itself received from other participants; for each other participant, generates a first intermediate value ciphertext based on its own first random value ciphertext, second random value share and first mask, and generates a second intermediate value ciphertext based on its own first random value ciphertext, private key share and second mask; broadcasts the first intermediate value ciphertext and the second intermediate value ciphertext to each other participant; decrypts multiple groups of received first intermediate value ciphertexts and second intermediate value ciphertexts to obtain multiple groups of first intermediate values and second intermediate values corresponding to each other participant; Online stage: After obtaining the message to be signed, each participant of at least t+1 of the multiple participants generates a first signature for the message based on its own first random value, second random value share, private key share, and the first mask, first intermediate value, second mask and second intermediate value corresponding to each other participant.
2. The method according to claim 1, wherein generating a first signature for the message comprises: Each of the at least t+1 participants generates a first signature component based on the second random value public key share of each participant, generates at least t+1 first secret shares corresponding to the at least t+1 participants based on the first random value, the second random value share of the party, and the first mask and the first intermediate value corresponding to each of the other participants; generates at least t+1 second secret shares corresponding to the at least t+1 participants based on the message to be signed, the first random value, the first signature component, and the second mask and the second intermediate value corresponding to each of the other participants; broadcasting the at least t+1 first secret shares and the at least t+1 second secret shares; Each of the at least t+1 parties generates a second signature component based on the at least t+1 first secret shares and the at least t+1 second secret shares.
3. The method according to claim 2, wherein the online stage further comprises: Each participant generates a first zero-knowledge proof corresponding to other participants based on its own first random value, and broadcasts the first zero-knowledge proof; In the case where the verification of the first signature fails, each participant verifies the other participants based on the first zero-knowledge proof corresponding to the other participants, and in the case where the verification fails, removes the participant that fails the verification from the set of participants; When the number of remaining parties in the party set is greater than or equal to t+1, each party generates a second signature for the message based on its own first random value, second random value share, private key share, and the first mask, first intermediate value, second mask, and second intermediate value corresponding to each other party in the party set.
4. According to the method of claim 3, each participant generates a first zero-knowledge proof corresponding to other participants based on its own first random value, and broadcasting the first zero-knowledge proof comprises: Each participant performs the following operations: Generate a first numerical public key and a second numerical public key, wherein the first numerical public key is generated based on a first random value and a second random value public key, the second random value public key is generated based on a second random value share public key of each participant, and the second numerical public key is generated based on the first random value, a message to be signed, a first signature component, and a total public key; Generate a third random value, and generate a third numerical public key and a fourth numerical public key based on the third random value, wherein the third numerical public key is generated based on the third random value and the second random value public key, and the second numerical public key is generated based on the third random value, the message to be signed, the first signature component, and the total public key; Each participant sends the third numerical public key and the fourth numerical public key to other participants, receives a challenge value from the other participants, and generates the first zero-knowledge proof based on the third random value, the challenge value and the first random value; Broadcast the first numerical public key, the second numerical public key, and the first zero-knowledge proof.
5. The method according to claim 4, wherein the pre-processing stage further comprises: Each participant also broadcasts its first masked public key and second masked public key. Each participant verifies other participants based on the first zero-knowledge proof corresponding to the other participants, including: Verifying the first zero-knowledge proof to verify whether the first numerical public key and the second numerical public key both correspond to the first random number; In the case where the verification fails, the party that sent the first zero-knowledge proof is removed from the set of parties. If the verification is successful, verify whether the first preset equation holds true based on the first secret sharing, the first mask public key and the first numerical public key corresponding to each participant, so as to verify whether the first secret sharing of each participant is correct; Whether the second preset equation holds true is verified based on the second secret sharing, the second mask public key and the second numerical public key corresponding to each participant, so as to verify whether the second secret sharing of each participant is correct.
6. The method according to claim 5, wherein verifying the first zero-knowledge proof comprises: Based on the first zero-knowledge proof, the second random value public key, the third numerical public key, the challenge value and the first numerical public key, verify whether the preset third equation holds; based on the first zero-knowledge proof, the message, the first signature component, the total public key, the fourth numerical public key, the challenge value and the second numerical public key, verify whether the preset fourth equation holds.
7. The method according to claim 1, wherein the pre-processing stage further comprises: Each of the multiple parties also generates a second zero-knowledge proof corresponding to the first random value ciphertext, and the second zero-knowledge proof is used to verify the correctness of the first random value ciphertext. After receiving the first random value ciphertext and the second zero-knowledge proof, the other parties verify the second zero-knowledge proof. If the verification fails, the party that sent the second zero-knowledge proof is removed from the set of parties.
8. The method according to claim 1, wherein the pre-processing stage further comprises: Each of the multiple participants also generates a commitment corresponding to the second random value shard, and a third zero-knowledge proof corresponding to the homomorphic ciphertext of the second random value shard and the commitment, and broadcasts the commitment and the third zero-knowledge proof to other participants. After receiving the homomorphic ciphertext of the second random value shard, the commitment and the third zero-knowledge proof, the other participants verify the third zero-knowledge proof. If the verification fails, the party that sent the third zero-knowledge proof is removed from the set of participants.
9. The method according to claim 1, wherein the pre-processing stage further comprises: Each of the multiple participants generates a second random value share public key corresponding to the second random value share and a corresponding fourth zero-knowledge proof, broadcasts the second random value share public key and the fourth zero-knowledge proof, and after receiving the second random value share public key and the fourth zero-knowledge proof, each participant verifies the fourth zero-knowledge proof; if the verification fails, the party that sent the fourth zero-knowledge proof is removed from the set of participants.
10. According to the method of claim 1, the preprocessing stage also includes each participant generating a fifth zero-knowledge proof corresponding to the first intermediate value ciphertext and a sixth zero-knowledge proof corresponding to the second intermediate value ciphertext, broadcasting the fifth zero-knowledge proof and the sixth zero-knowledge proof, and each participant verifying the fifth zero-knowledge proof and the sixth zero-knowledge proof after receiving the first intermediate value ciphertext, the fifth zero-knowledge proof, the second intermediate value ciphertext and the sixth zero-knowledge proof, and if the verification fails, the participant sending the fifth zero-knowledge proof and the sixth zero-knowledge proof is removed from the participant set.
11. The method according to claim 1, further comprising: Each of the n participants generates a public key and a private key for homomorphic encryption, and a corresponding seventh zero-knowledge proof, and broadcasts the public key and the seventh zero-knowledge proof to other participants. After receiving the public key and the seventh zero-knowledge proof of other participants, each participant verifies the seventh zero-knowledge proof. If the verification fails, the party that sent the seventh zero-knowledge proof is removed from the set of participants, which initially includes n participants.
12. The method according to claim 11, further comprising: Each participant in the set of participants generates a private key shard corresponding to each participant, a private key shard ciphertext of each private key shard, and a corresponding eighth zero-knowledge proof based on a secret sharing algorithm, and broadcasts each of the private key shard ciphertexts and the corresponding eighth zero-knowledge proof. After receiving the private key shard ciphertext and the eighth zero-knowledge proof generated by other participants, each participant verifies the eighth zero-knowledge proof. If the verification fails, the participant that sent the eighth zero-knowledge proof will be removed from the set of participants.
13. The method according to claim 12, further comprising: Each participant in the set of participants generates a private key share, a private key share public key, and a ninth zero-knowledge proof corresponding to the private key share public key based on the private key shard ciphertext received from other participants, and broadcasts the private key share public key and the ninth zero-knowledge proof. After receiving the private key share public key and the ninth zero-knowledge proof, each participant verifies the ninth zero-knowledge proof. If the verification fails, the participant that sent the ninth zero-knowledge proof will be removed from the set of participants.
14. A computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 1 to 13 is implemented.
