Collaborative signature method, device, equipment and system

By locally completing the dot multiplication operation on the elliptic curve and the additive homomorphic encryption algorithm, each participant generates a signature public key and a private key, solving the problem of low signature efficiency in the existing technology and realizing an efficient multi-party signature process.

CN118573377APending Publication Date: 2024-08-30CHINA UNIONPAY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410675636.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, the signature process based on zero-knowledge proof requires each verifier to interact with the verifier multiple times, resulting in low signature efficiency.

Method used

The computing devices participating in the signature locally complete the dot multiplication operation on the elliptic curve, jointly calculate the signature public key, and generate their own signature private keys through the signature public key. Each participant jointly calculates based on the signature private key and the signature public key. , get the collaborative signature.

Benefits of technology

It improves the signature efficiency, realizes the efficient completion of multi-party joint signatures, and improves security and communication security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573377A
    Figure CN118573377A
Patent Text Reader

Abstract

The embodiment of the invention provides a collaborative signature method, device, equipment and system, and relates to the technical field of information security. The method comprises the following steps: determining a first parameter and a first secret value of ith computing equipment; the first parameter and the first secret value of the ith computing device are sent to the (i + 1) th computing device; receiving a signature public key sent by the (i + 1) th computing device and a second secret value of the (i + 1) th computing device; determining a signature private key and a second secret value of the ith computing device according to the second secret value of the (i + 1) th computing device; sending the second secret value of the ith computing device and the signature public key to the (i-1) th computing device; determining a first signature and a first signature parameter of the ith computing device according to the signature public key and a signature private key of the ith computing device; and sending the first signature and the first signature parameter of the ith computing device to the (i-1) th computing device. The method can improve the signature efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a collaborative signature method, device, equipment and system. Background Art

[0002] In the financial industry and other industries, when data sharing and joint computing are carried out, multiple parties are required to sign or encrypt a certain calculation request and calculation result at the same time to ensure that the corresponding calculation operation can be performed only with the mutual approval of multiple parties, so as to protect the security of each participant.

[0003] In the prior art, based on zero-knowledge proof between the verifier and the verified party, the private key of the signature is held by m verifiers, and the signing process requires the participation of m verifiers to obtain a complete signature.

[0004] However, in the above process, zero-knowledge proof requires multiple interactions between each verifier and the verified party, which is highly complex and will result in low signature efficiency. Summary of the invention

[0005] The embodiments of the present application provide a collaborative signature method, apparatus, device and system to solve the problem of low signature efficiency.

[0006] In a first aspect, the present application provides a collaborative signature method, which is applied to an i-th computing device among m computing devices, where m is a positive integer greater than or equal to 1; comprising:

[0007] Determine a first parameter and a first secret value of the i-th computing device; and send the first parameter and the first secret value of the i-th computing device to the i+1-th computing device; wherein the first parameter represents a point on a preset elliptic curve corresponding to the computing device; the i+1-th computing device is used to process the first parameter and the first secret value of the i-th computing device to obtain a signature public key and a second secret value of the i+1-th computing device;

[0008] Receive the signature public key sent by the i+1th computing device and the second secret value of the i+1th computing device; and determine the signature private key and the second secret value of the i+1th computing device according to the second secret value of the i+1th computing device;

[0009] Sending the second secret value and the signature public key of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the second secret value and the signature public key of the i-th computing device to obtain the second secret value and the signature private key of the i-1-th computing device;

[0010] Determine a first signature and a first signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device; wherein the first signature is the signature content of the first part of the collaborative signature; and the first signature parameter is the signature intermediate value corresponding to each computing device in the second part of the collaborative signature;

[0011] The first signature and the first signature parameter of the i-th computing device are sent to the i-1-th computing device; wherein the i-1-th computing device is used to process the first signature parameter of the i-th computing device and the first signature to obtain a collaborative signature; the collaborative signature is used for identity verification processing.

[0012] In one possible implementation, determining a first parameter and a first secret value of an i-th computing device includes:

[0013] Determine the initial private key of the i-th computing device; and receive the public key parameter sent by the i-1-th computing device, the first secret value of the i-1-th computing device, and the first parameter; wherein the first parameter represents the point corresponding to the computing device on the preset elliptic curve; the first secret value is obtained by encrypting the initial private key of the i-1-th computing device based on the public key parameter generated by the first computing device;

[0014] Determine a first parameter of the ith computing device according to an initial private key of the ith computing device and a first parameter of the (i-1)th computing device;

[0015] A first secret value of the i-th computing device is determined based on an initial private key of the i-th computing device and a first secret value of the (i-1)-th computing device.

[0016] In one possible implementation, the first parameter of the i-th computing device Among them, S i is the initial private key of the i-th computing device, Pk i-1 is the first parameter of the i-1th computing device, and G is the base point on the preset elliptic curve.

[0017] In one possible implementation, the first secret value of the i-th computing device Among them, S i is the first parameter of the i-th computing device, E i-1 is the first secret value of the i-1th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation.

[0018] In a possible implementation, determining the second secret value of the i-th computing device according to the second secret value of the i+1-th computing device includes:

[0019] Determine the signature private key of the i-th computing device;

[0020] The second secret value of the i-th computing device is determined according to the second secret value of the i+1-th computing device and the signature private key.

[0021] In one possible implementation, the second secret value of the i-th computing device Among them, E i+1 ' is the second secret value of the i+1th computing device, Sk i is the signature private key of the i-th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation; E i is the first secret value of the i-th computing device.

[0022] In a possible implementation, determining the first signature and the first signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device includes:

[0023] Determine a second signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device; wherein the second signature parameter represents a signature midpoint of the computing device corresponding to the preset elliptic curve;

[0024] Sending the second signature parameter of the i-th computing device to the i+1-th computing device; wherein the i+1-th computing device is used to process the second signature parameter of the i-th computing device to obtain the first signature and the first signature parameter of the i+1-th computing device;

[0025] Receiving a first signature sent by an i+1th computing device and a first signature parameter of an i+1th computing device;

[0026] A first signature parameter of the i-th computing device is determined according to the first signature and a first signature parameter of the (i+1)-th computing device.

[0027] In a possible implementation, determining a second signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device includes:

[0028] Determine a random number for the i-th computing device;

[0029] Determine a second parameter of the i-th computing device according to the signature public key, the random number of the i-th computing device, and the signature private key; wherein the second parameter represents a point on a preset elliptic curve corresponding to the computing device;

[0030] A second signature parameter of the i-th computing device is determined according to the second parameter of the i-th computing device.

[0031] In a possible implementation, the second parameter P of the i-th computing device i =[Sk i k i ](P+G); where Sk i is the signature private key of the i-th computing device; k i is the random number of the i-th computing device; P represents the point on the preset elliptic curve corresponding to the signature public key, and G is the base point on the preset elliptic curve.

[0032] In a possible implementation, the second signature parameter of the i-th computing device is Among them, Q i-1 is the second signature parameter of the i-1th computing device, P i is the second parameter of the i-th computing device.

[0033] In a possible implementation, determining the first signature parameter of the i-th computing device according to the first signature and the first signature parameter of the (i+1)-th computing device includes:

[0034] If it is determined that the first signature is not zero, then determining the random number and signature private key of the i-th computing device;

[0035] The first signature parameter of the i-th computing device is determined according to the first signature, the first signature parameter of the (i+1)-th computing device, the random number of the i-th computing device, and the signature private key.

[0036] In a possible implementation, the first signature parameter of the i-th computing device Among them, Sk i is the signature private key of the i-th computing device, s i+1 is the first signature parameter of the i+1th computing device, k i is the random number of the i-th computing device; n is the order of the preset elliptic curve; mod() is the modulus operation.

[0037] In one possible implementation, the first signature r=(x+e)mod(n); wherein x is the horizontal coordinate of the midpoint of the signature represented by the signature parameter of the mth computing device; e represents the summary information of the message to be signed calculated by the mth computing device; n is the order of the preset elliptic curve; and mod() is a modulo operation.

[0038] In a possible implementation, the signature private key Sk1 of the first computing device = Dec sk (E2'); where sk is the private key parameter generated by the first computing device; E2' is the second secret value of the second computing device, Dec sk () is the preset decryption operation.

[0039] In a possible implementation, the m-th computing device is used to determine the first parameter of the m-th computing device as the signature public key.

[0040] In one possible implementation, the first computing device is used to concatenate the second signature and the first signature to obtain the collaborative signature when the second signature obtained after the first computing device calculates the first signature parameters of the second computing device is not zero.

[0041] In a second aspect, the present application provides a collaborative signature device, which is applied to the i-th computing device among m computing devices, where m is a positive integer greater than or equal to 1; comprising:

[0042] A first sending module is used to determine a first parameter and a first secret value of the i-th computing device; and send the first parameter and the first secret value of the i-th computing device to the i+1-th computing device; wherein the first parameter represents a point corresponding to the computing device on a preset elliptic curve; the i+1-th computing device is used to process the first parameter and the first secret value of the i-th computing device to obtain a signature public key and a second secret value of the i+1-th computing device;

[0043] A first determination module is configured to receive a signature public key sent by an i+1th computing device and a second secret value of an i+1th computing device; and determine a second secret value of an i-th computing device according to the second secret value of the i+1th computing device;

[0044] A second sending module, used to send the second secret value of the i-th computing device and the signature public key to the i-1-th computing device; wherein the i-1-th computing device is used to process the second secret value and the signature public key of the i-th computing device to obtain the signature private key of the i-1-th computing device;

[0045] A second determination module is used to determine a first signature and a first signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device; wherein the first signature is the signature content of the first part of the collaborative signature; and the first signature parameter is the signature intermediate value corresponding to each computing device in the second part of the collaborative signature;

[0046] The third sending module is used to send the first signature and the first signature parameter of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the first signature parameter of the i-th computing device and the first signature to obtain a collaborative signature; the collaborative signature is used for identity verification processing.

[0047] In a third aspect, the present application provides a computing device, including: a memory, a processor;

[0048] The memory stores computer-executable instructions;

[0049] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0050] In a fourth aspect, the present application provides a collaborative signature system, comprising: m computing devices, where m is a positive integer greater than or equal to 1; the computing devices are used to implement the first aspect and / or various possible implementations of the first aspect.

[0051] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0052] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0053] The collaborative signature method, apparatus, equipment and system provided in the embodiments of the present application have each computing device participating in the signature locally complete the required point multiplication operation on the elliptic curve according to its own parameters and secret values, jointly calculate the signature public key, and each computing device participating in the signature performs additive homomorphism based on the signature public key to generate its own signature private key. Each computing device participating in the signature jointly calculates based on the signature private key and the signature public key to obtain a collaborative signature; thereby, the joint signature process can be completed, thereby improving the signature efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0055] Figure 1 A schematic diagram of an application scenario provided for this application;

[0056] Figure 2 A flowchart of a collaborative signature method provided for this application;

[0057] Figure 3 A flowchart of another collaborative signature method provided for this application;

[0058] Figure 4 A schematic diagram of the structure of a collaborative signature device provided for this application;

[0059] Figure 5 A schematic diagram of the structure of a computing device provided in an embodiment of the present application.

[0060] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0061] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.

[0062] First, the terms involved in this application are explained:

[0063] Data signature technology: Data signature technology is an encryption technology used to verify data integrity and authenticate data sources. Through data signature, the sender of data can encrypt the data with its private key, generate a digital signature, and then send the data and digital signature together to the receiver. The receiver can use the sender's public key to decrypt and verify the digital signature, thereby confirming the integrity and authenticity of the data.

[0064] In the financial industry and other industries, when data sharing and joint computing are carried out, multiple parties are required to sign or encrypt a certain calculation request and calculation result at the same time to ensure that the corresponding calculation operation can be performed only with the mutual approval of multiple parties, so as to protect the security of each participant.

[0065] In one example, based on zero-knowledge proof between the verifier and the verified party, the private key of the signature is held by m verifiers, and the signing process requires the participation of m verifiers to obtain a complete signature.

[0066] However, in the above process, zero-knowledge proof requires multiple interactions between each verifier and the verified party, which is highly complex and will result in low signature efficiency.

[0067] In another example, the multi-party collaborative signature scheme is mainly designed based on signature algorithms such as DSA, ECDSA, and SM2. Its implementation steps are similar to those of various signature algorithms, and both include two main links, the key generation link and the signature link. Here, taking the scheme designed based on the SM2 algorithm as an example, for m participants, the general steps are as follows: in the key generation stage, each participant generates its own signature private key Ski, and each participant collaboratively calculates the signature public key Pk; in the signing stage, the first participant generates a random number k1, calculates the middle point of the elliptic curve R1=[k1]G and sends it to the second participant, the 2nd to m-1st participants generate a random number ki, and calculates the middle point of the elliptic curve Ri=[Ski]Ri-1+[ki]G based on their own signature private key Ski and sends it to the i+1th participant, the mth participant calculates the message digest e to be signed, and calculates the signature r based on the received elliptic curve middle point, from the mth participant to the second participant, each combines the signature private key Ski and the random number ki to generate the signature s intermediate value si, the first participant calculates the final signature value s to obtain the complete signature (r, s).

[0068] However, in the above process, since the intermediate point Ri-1 is transmitted to the current participant after being calculated by the previous participant, the calculation of [Ski]Ri-1 cannot be performed in advance, and its time loss will directly affect the overall signature efficiency, resulting in low signature efficiency.

[0069] The collaborative signature method provided by this application is that each participating signing party completes the required point multiplication operation on the elliptic curve locally, jointly calculates the signature public key, and each participating party performs addition homomorphism based on the signature public key to generate their own signature private key. Each participating party jointly calculates based on the signature private key and the signature public key to obtain a collaborative signature. In turn, the technical problem of low signature efficiency is solved.

[0070] Figure 1 A schematic diagram of an application scenario provided for this application, such as Figure 1As shown, the specific application scenario of the present application includes m computing devices, wherein, based on the i-th computing device 101 among the m computing devices, the first parameter and the first secret value of the i-th computing device 101 are sent to the i+1-th computing device 101 to obtain a signature public key and a second secret value of the i+1-th computing device, and continue to complete the required point multiplication operation on the elliptic curve locally to generate a signature private key of the i-th computing device 101, and each computing device 101 jointly calculates based on the signature private key and the signature public key to obtain a collaborative signature.

[0071] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0072] Figure 2 A flowchart of a collaborative signature method provided for this application is shown in FIG. Figure 2 As shown, the method is applied to the i-th computing device among m computing devices, where m is a positive integer greater than or equal to 1, and the method includes:

[0073] 201. Determine a first parameter and a first secret value of the ith computing device; and send the first parameter and the first secret value of the ith computing device to the (i+1)th computing device; wherein the first parameter represents a point on a preset elliptic curve corresponding to the computing device; the (i+1)th computing device is used to process the first parameter and the first secret value of the ith computing device to obtain a signature public key and a second secret value of the (i+1)th computing device.

[0074] Exemplarily, the execution subject of this implementation is the i-th computing device among the m computing devices, and the i-th computing device may be a physical device or a virtual device for collaborative signing.

[0075] The i-th computing device first generates the first parameter of the i-th computing device based on the locally preset elliptic curve algorithm. The first parameter represents the point on the preset elliptic curve corresponding to the i-th computing device. The i-th computing device applies the additive homomorphic cryptographic algorithm to perform encryption calculations to obtain the secret value of the i-th computing device, namely, the first secret value. The i-th computing device sends the first parameter and the first secret value of the i-th computing device to the i+1-th computing device. After the i+1-th computing device receives the first parameter and the first secret value of the i-th computing device, it processes the first parameter and the first secret value of the i-th computing device based on the locally preset elliptic curve algorithm to obtain the first parameter and the first secret value of the i+1-th computing device. Then the i+1-th computing device sends the obtained first parameter and the first secret value to the i+2-th computing device, and so on, until the m-th computing device obtains. The m-1th computing device obtains the first parameter and the first secret value of the m-1th computing device, and the m-th computing device calculates and processes the first parameter and the first secret value of the m-1th computing device to obtain a signature public key; the m-th computing device calculates and processes the signature public key to obtain a second secret value of the m-1th computing device, and the m-th computing device sends the signature public key and the second secret value of the m-1th computing device to the m-1th computing device for calculation to obtain the second secret value of the m-1th computing device, and so on, to obtain the second secret value of the i+1th computing device.

[0076] 202. Receive the signature public key sent by the i+1th computing device and the second secret value of the i+1th computing device; and determine the signature private key and the second secret value of the i+1th computing device based on the second secret value of the i+1th computing device.

[0077] Exemplarily, the i+1th computing device sends the obtained signature public key and the second secret value of the i+1th computing device to the i+1th computing device, the i+1th computing device receives the signature public key and the second secret value of the i+1th computing device sent by the i+1th computing device, and based on a preset encryption algorithm, calculates the second secret value of the i+1th computing device to obtain the signature private key and second secret value of the i+1th computing device.

[0078] 203. Send the second secret value and signature public key of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the second secret value and signature public key of the i-th computing device to obtain the signature private key of the i-1-th computing device.

[0079] Exemplarily, the i-th computing device sends the obtained second secret value and signature public key of the i-th computing device to the i-1-th computing device, the i-1-th computing device receives the second secret value and signature public key of the i-th computing device, and processes the second secret value and signature public key of the i-th computing device using a preset encryption algorithm to obtain the second secret value and signature private key of the i-1-th computing device, the i-1-th computing device sends the second secret value and signature public key of the i-1-th computing device to the i-2-th computing device, and so on, until the first computing device obtains the second secret value and signature private key of the first computing device, and then each computing device obtains its own second secret value and signature private key to be processed.

[0080] 204. Determine a first signature and a first signature parameter of the i-th computing device based on the signature public key and the signature private key of the i-th computing device; wherein the first signature is the signature content of the first part of the collaborative signature; and the first signature parameter is the intermediate value corresponding to each computing device in the second part of the collaborative signature.

[0081] Exemplarily, for the i-th computing device, based on the preset SM2 signature algorithm, the obtained signature public key and the signature private key of the i-th computing device are processed to obtain a first signature and a first signature parameter of the i-th computing device, wherein the first signature parameter is the signature content of the first part of the collaborative signature, and the second signature is the signature intermediate value corresponding to the i-th computing device in the second part of the collaborative signature.

[0082] 205. Send the first signature and the first signature parameter of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the first signature parameter and the first signature of the i-th computing device to obtain a collaborative signature; the collaborative signature is used to perform identity verification processing.

[0083] Exemplarily, the i-th computing device sends the obtained first signature and the first signature parameter of the i-th computing device to the i-1-th computing device. After receiving the first signature and the first signature parameter of the i-th computing device, the i-1-th computing device processes the first signature parameter and the first signature of the i-th computing device to obtain the first signature parameter of the i-1-th computing device, and so on to obtain the first signature parameter of the first computing device. Then, a collaborative signature can be obtained according to the first signature parameter and the first signature of the first computing device. The collaborative signature is used for identity verification processing, such as ensuring that the sender of the message is legitimate and the message has not been tampered with during transmission. By verifying the signature, the recipient can confirm the integrity and authenticity of the message, thereby ensuring the security of communication.

[0084] The collaborative signature method provided in the embodiment of the present application has each computing device participating in the signature locally complete the required point multiplication operation on the elliptic curve according to its own parameters and secret value, jointly calculate the signature public key, and each computing device participating in the signature performs additive homomorphism based on the signature public key to generate its own signature private key. Each computing device participating in the signature jointly calculates based on the signature private key and the signature public key to obtain a collaborative signature; thereby, the joint signature process can be completed, thereby improving the signature efficiency.

[0085] Figure 3 A flowchart of another collaborative signature method provided for this application is shown in FIG. Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, the collaborative signature method is described in detail, and the method includes:

[0086] 301. Determine the initial private key of the i-th computing device; and receive the public key parameters sent by the i-1-th computing device, the first secret value of the i-1-th computing device, and the first parameter; wherein the first parameter represents the point corresponding to the computing device on the preset elliptic curve; and the first secret value is obtained by encrypting the initial private key of the i-1-th computing device based on the public key parameters generated by the first computing device.

[0087] Exemplarily, for each participant, a secret initial private key Si∈[1,n-1] is generated, that is, the initial private key of the i-th computing device is determined. The first computing device generates a public-private key pair (pk, sk) of the additive homomorphic cryptographic algorithm. For the i-1-th computing device, the i-1-th computing device generates the initial private key of the i-1-th computing device, and based on the first computing device, the generated public key parameters are calculated by the elliptic curve algorithm to obtain the first parameter of the first computing device to characterize the computing device corresponding to the point on the preset elliptic curve, and the additive homomorphic cryptographic algorithm is applied to calculate the first parameter of the first computing device to obtain the first secret value of the first computing device. The first computing device calculates the obtained public key parameters and the first secret value of the first computing device. The secret value and the first parameter are sent to the second computing device, the second computing device performs calculations to obtain the first secret value and the first parameter of the second computing device, and sends the public key parameter, the first secret value and the first parameter of the second computing device to the third computing device, and so on. The i-1th computing device sends the public key parameter, the first secret value of the first secret value of the i-1th computing device, and the first parameter to the i-th computing device, and the i-th computing device receives the public key parameter, the first secret value and the first parameter sent by the i-1th computing device for processing.

[0088] 302. Determine a first parameter of the ith computing device according to an initial private key of the ith computing device and a first parameter of the (i-1)th computing device.

[0089] In one example, the first parameter of the i-th computing device is Among them, S i is the initial private key of the i-th computing device, Pk i-1 is the first parameter of the i-1th computing device, and G is the base point on the preset elliptic curve.

[0090] In one example, the mth computing device is used to determine the first parameter of the mth computing device as a signature public key.

[0091] Exemplarily, the i-th computing device calculates the initial private key of the i-th computing device and the first parameter of the i-1-th computing device based on a preset algorithm, thereby obtaining the first parameter of the i-th computing device; wherein, according to the formula Calculate the first parameter of the i-th computing device; where S i is the initial private key of the i-th computing device, Pk i-1 is the first parameter of the i-1th computing device, and G is the base point on the preset elliptic curve. When the mth computing device calculates the first parameter of the mth computing device, the first parameter of the mth computing device is determined as the signature public key.

[0092] For example, the first computing device A1 generates a public-private key pair (pk, sk) of an additive homomorphic cryptographic algorithm, and A1 calculates the point Pk1 on the elliptic curve = [S1 -1 ]G, obtain the first parameter Pk1 of the first computing device, send the first parameter Pk1 to the second computing device, and calculate Pk for the i-th computing device Ai, i=2,…,m-1 i =[S i -1 ]Pk i-1 , get the first parameter of the i-th computing device, and calculate Pk for the m-th computing device Am m =[S m -1 ]Pk m-1 -G, get the first parameter Pk of the i-th computing device m ; For the mth computing device Am, according to the formula [S i -1 ]Pk i-1 -G, calculate the first parameter Pk of the mth computing device m .

[0093] 303. Determine a first secret value of the ith computing device according to the initial private key of the ith computing device and the first secret value of the (i-1)th computing device.

[0094] In one example, the first secret value of the i-th computing device is Among them, S i is the first parameter of the i-th computing device, E i-1 is the first secret value of the i-1th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation.

[0095] Exemplarily, the i-th computing device performs encryption calculation processing on the initial private key of the i-th computing device and the first secret value of the i-1-th computing device based on the application of the additive homomorphic cryptographic algorithm, and then the first secret value of the i-th computing device can be calculated according to the formula Calculate the first secret value of the i-th computing device; where S i is the first parameter of the i-th computing device, E i-1 is the first secret value of the i-1th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation.

[0096] For example, the first computing device A1 generates a secret initial private key S1, applies the additive homomorphic cryptographic algorithm to encrypt S1, and calculates E1 = Enc pk (S1), obtain the first secret value of the first computing device, and apply the additive homomorphic cryptographic algorithm to the i-th computing device Ai, i=2,…,m, that is, according to the formula The first secret value E of the i-th computing device can be calculated i . Thus, each computing device can obtain the first secret value. Furthermore, each participant jointly completes the required point multiplication operation on the elliptic curve locally, and jointly calculates the signature public key for generating the signature, thereby improving the signature efficiency.

[0097] 304. Send the first parameter and the first secret value of the i-th computing device to the i+1-th computing device; wherein the first parameter represents the point on the preset elliptic curve corresponding to the computing device; the i+1-th computing device is used to process the first parameter and the first secret value of the i-th computing device to obtain the signature public key and the second secret value of the i+1-th computing device.

[0098] Exemplarily, the content of this step may refer to step 201 and will not be repeated here.

[0099] 305. Receive the signature public key sent by the (i+1)th computing device and the second secret value of the (i+1)th computing device.

[0100] Exemplarily, the content of this step may refer to step 202 and will not be repeated here.

[0101] 306. Determine the signature private key of the i-th computing device.

[0102] Exemplarily, for each computing device, its own signature private key can be randomly generated based on a preset random encryption algorithm.

[0103] 307. Determine the second secret value of the i-th computing device according to the second secret value of the i+1-th computing device and the signature private key.

[0104] In one example, the second secret value of the i-th computing device is Among them, E i+1 ' is the second secret value of the i+1th computing device, Sk i is the signature private key of the i-th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation; E i is the first secret value of the i-th computing device.

[0105] In one example, the signature private key Sk1 of the first computing device = Dec sk (E2'); where sk is the private key parameter generated by the first computing device; E2' is the second secret value of the second computing device, Dec sk () is the preset decryption operation.

[0106] Exemplarily, for the ith computing device, after obtaining the signature private key of the ith computing device, based on a preset algorithm, the second secret value of the i+1th computing device and the signature private key of the ith computing device are calculated and processed to obtain the second secret value of the ith computing device; the second secret value of the ith computing device can be obtained according to the formula Calculate the second secret value E of the i-th computing device i ', where E i+1 ' is the second secret value of the i+1th computing device, Sk i is the signature private key of the i-th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation; E i is the first secret value of the i-th computing device. When the first computing device receives the second secret value of the second computing device, according to the formula Dec sk(E2'), calculate and obtain the signature private key Sk1 of the first computing device, where sk is the private key parameter generated by the first computing device; E2' is the second secret value of the second computing device, Dec sk () is the preset decryption operation. It is worth noting that in order to make the private keys of each party satisfy Sk1+…+Sk m =Sk1…Sk m , while ensuring confidentiality, using additive homomorphic encryption to implement E i The calculation of the private key multiplication S1, ..., S m The secret value of each party first generates its own private key Sk i , for E i The operation finally obtains S1…S m -Sk m -…-Sk i The secret value of is decrypted by A1, E2', and Sk1 is obtained.

[0107] For example, for the mth computing device Am, randomly generate its own signature private key Sk m , calculate E i ·Enc pk (Sk i ), that is, generate the second secret value E of the mth computing device m ', E m ', the signature public key Pk is sent to the m-1th computing device Am-1, for Ai, i = m-1, ..., 2, it randomly generates its own signature private key Sk i , calculate E i+1 '·Enc pk (Sk i ), and obtain the second secret value E of the i-th computing device i ', and E i ', Pk is sent to the i-1th computing device Ai-1, and for the first computing device A1, decrypts E2', that is, according to Sk1=Dec sk (E2'), and obtain the signature private key Sk1 of the first computing device. So far, each participant has generated its own signature private key. Furthermore, it can meet the requirement that any participating signing party cannot obtain the complete signature private key during the key generation stage, and cannot reversely calculate the signature private key from the intermediate result and the final generated signature during the signing process, thus ensuring the security of the signature.

[0108] 308. Send the second secret value and signature public key of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the second secret value and signature public key of the i-th computing device to obtain the second secret value and signature private key of the i-1-th computing device.

[0109] Exemplarily, the content of this step may refer to step 203 and will not be repeated here.

[0110] 309. Determine a second signature parameter of the ith computing device according to the signature public key and the signature private key of the ith computing device; wherein the second signature parameter represents a signature midpoint of the computing device corresponding to the preset elliptic curve.

[0111] Exemplarily, based on the i-th computing device, that is, each computing device, according to a preset signature algorithm, the obtained signature public key and the signature private key of the i-th computing device are calculated and processed to obtain the second signature parameter of the i-th computing device; the second signature parameter represents the signature midpoint of the computing device corresponding to the preset elliptic curve.

[0112] In one example, step 309 includes:

[0113] Step 1: Determine the random number of the i-th computing device.

[0114] Step 2: Determine the second parameter of the ith computing device based on the signature public key, the random number of the ith computing device, and the signature private key; wherein the second parameter represents the point on the preset elliptic curve corresponding to the computing device.

[0115] Step three: determine the second signature parameter of the ith computing device according to the second parameter of the ith computing device.

[0116] In one example, the second parameter P of the i-th computing device is i =[Sk i k i ](P+G); where Sk i is the signature private key of the i-th computing device; k i is the random number of the i-th computing device; P represents the point on the preset elliptic curve corresponding to the signature public key, and G is the base point on the preset elliptic curve.

[0117] In one example, the signature parameters of the i-th computing device are Among them, Q i-1 is the signature parameter of the i-1th computing device, P i is the second parameter of the i-th computing device.

[0118] Exemplarily, for the i-th computing device, based on the preset algorithm, a random number of the i-th computing device is generated, and combined with its own signature private key, the signature public key and the random number of the i-th computing device are multiplied on the elliptic curve to calculate the second parameter of the i-th computing device, that is, the computing device corresponds to the point P on the preset elliptic curve. i, and calculate the second parameter of the i-th computing device to obtain the second signature parameter of the i-th computing device. i k i ](P+G), calculate the second parameter P of the i-th computing device i , where Sk i is the signature private key of the i-th computing device; k i is the random number of the i-th computing device; P represents the point on the preset elliptic curve corresponding to the signature public key, and G is the base point on the preset elliptic curve. The first computing device can determine P i , is the second signature parameter Q1 of the first computing device; when 2≤i≤m, the i-th computing device can use Q i-1 +P i , calculate the second signature parameter Q of the i-th computing device i , where Q i-1 is the second signature parameter of the i-1th computing device, P i is the second parameter of the i-th computing device.

[0119] For example, each party generates a secret random number k i ∈[1,n-1], and combined with its own signature private key Sk i Perform a point multiplication operation on the elliptic curve and calculate the point P on the elliptic curve i =[Sk i k i ](P+G), Party A1 sends Q1=P1 as the signature intermediate point to Party A2, Party A i (i=2,…,m-1), from A i-1 Get Q i-1 , calculate the point Q on the elliptic curve i =Q i-1 +P i , and Q i Sent to A as a signature intermediate point i+1 , participant Am from A m-1 Get Q m-1 , calculate the point Q on the elliptic curve m =Q m-1 +P m If the distribution of participants in the actual application scenario is similar to a server and multiple clients, and the server has higher computing resources and network communication resources, the server is denoted as participant Am, then participant A i (i=1, ..., m-1) the locally calculated P i Sent to Am; Am receives all participants P i After the information is obtained, the point Q on the elliptic curve is calculated. m=P1+…+P m , which can further improve the efficiency of signature generation.

[0120] 310. Send the second signature parameter of the i-th computing device to the i+1-th computing device; wherein the i+1-th computing device is used to process the second signature parameter of the i-th computing device to obtain the first signature and the first signature parameter of the i+1-th computing device.

[0121] In one example, the first signature r=(x+e)mod(n); wherein x is the horizontal coordinate of the midpoint of the signature represented by the signature parameter of the mth computing device; e represents the summary information of the message to be signed calculated by the mth computing device; n is the order of the preset elliptic curve; and mod() is a modulus operation.

[0122] Exemplarily, for each computing device, i.e., the i-th computing device, the second signature parameter of the i-th computing device is sent to the i+1-th computing device, the i+1-th computing device processes the second signature parameter of the i-th computing device based on a preset signature algorithm to obtain the second signature parameter of the i+1-th computing device, the i+1-th computing device sends the second signature parameter of the i+1-th computing device to the i+2-th computing device, and so on, until the m-th computing device calculates the second signature parameter of the m-th computing device, the m-th computing device uses the SM2 signature algorithm to calculate and process the second signature parameter of the m-th computing device to obtain a first signature, such as the first signature r can be calculated according to the formula r=(x+e)mod(n), where x is the horizontal coordinate of the middle point of the signature represented by the signature parameter of the m-th computing device; e represents the summary information of the message to be signed calculated by the m-th computing device; n is the order of the preset elliptic curve; mod() is a modulus operation. Among them, the mth computing device Am calculates the summary information e=Hash(Z||M) of the message to be signed according to the requirements of the SM2 signature algorithm, wherein e=Hash(Z||M) represents the result obtained by connecting message Z and message M together and then performing a hash operation, || represents a connection operation, and Hash represents a hash function, which is usually used to map input data to output data of a fixed length. Message Z and message M are connected together to form a new message string, and then a hash operation is performed on the new message string to obtain the output result e. This method can be used in application scenarios such as data integrity verification and digital signatures. The message summary can be generated through the hash operation to verify the integrity and authenticity of the message. Then, the mth computing device calculates the intermediate result of the signature s part to obtain the first signature parameter of the mth computing device, and sends the first signature and the first signature parameter of the mth computing device to the m-1th computing device Am-1. Then, by analogy, the first signature parameter of the i+1th computing device can be obtained.

[0123] 311. Receive a first signature sent by an (i+1)th computing device and a first signature parameter of an (i+1)th computing device.

[0124] Exemplarily, the i+1th computing device sends the obtained first signature and the first signature parameter of the i+1th computing device to the i-th computing device, and the i-th computing device receives the first signature and the first signature parameter of the i+1th computing device sent by the i+1th computing device.

[0125] 312. Determine a first signature parameter of the i-th computing device according to the first signature and the first signature parameter of the (i+1)-th computing device.

[0126] Exemplarily, the i-th computing device calculates and processes the obtained first signature and the first signature parameter of the i+1-th computing device according to the preset signature algorithm to obtain the first signature parameter of the i-th computing device. Furthermore, each participating signing party completes the required point multiplication operation on the elliptic curve locally, and only performs addition operations on the elliptic curve and other auxiliary operations on the finite field in the online stage to complete the joint signature process, thereby improving the signature efficiency.

[0127] In one example, step 312 includes:

[0128] Step 1: If it is determined that the first signature is not zero, determine the random number and signature private key of the i-th computing device.

[0129] Step 2: Determine the first signature parameter of the i-th computing device based on the first signature, the first signature parameter of the i+1-th computing device, the random number of the i-th computing device, and the signature private key.

[0130] In one example, the first signature parameter of the i-th computing device is Among them, Sk i is the signature private key of the i-th computing device, s i+1 is the first signature parameter of the i+1th computing device, k i is the random number of the i-th computing device; n is the order of the preset elliptic curve; mod() is the modulus operation.

[0131] Exemplarily, after the mth computing device obtains the first signature, if the mth computing device determines that the first signature is not zero, it sends the first signature to the m-1th computing device, or directly sends the first signature to the m-1th computing device. Then, when the ith computing device receives the first signature sent by the i+1th computing device, if the ith computing device determines that the first signature is not zero, it obtains the random number and signature private key pre-generated by the ith computing device, and based on the preset signature algorithm, calculates and processes the first signature, the first signature parameter of the i+1th computing device, the random number of the ith computing device, and the signature private key to obtain the first signature parameter of the ith computing device. It can be calculated according to the formula Calculate the first signature parameter s of the i-th computing device i , where Sk i is the signature private key of the i-th computing device, s i+1 is the first signature parameter of the i+1th computing device, k i is the random number of the i-th computing device; n is the order of the preset elliptic curve; mod() is the modulus operation.

[0132] For example, the mth computing device Am calculates the intermediate result s of the signature s part m =Sk i (r+k i )mod(n), and the first part of the signature r and s m Sent to the mth computing device A m-1 , for the i-th computing device A of the participant i (i=m-1,…,2), from A i+1 Get the intermediate result s of signature r and signature s i+1 , calculate s i =(Sk i (r+k i )+s i+1 ) mod (n), and send it to A together with r i-1 ; The first computing device A1 of the participant obtains r and s2 from the participant A2, calculates s1=(Sk1(r+k1)+s2-r)mod(n), and obtains the first signature parameter of the i-th computing device.

[0133] 313. Send the first signature and the first signature parameter of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the first signature parameter and the first signature of the i-th computing device to obtain a collaborative signature; the collaborative signature is used to perform identity verification processing.

[0134] In one example, the first computing device is used to concatenate the second signature and the first signature to obtain a collaborative signature when the second signature obtained after the first computing device calculates the first signature parameters of the second computing device is not zero.

[0135] Exemplarily, the i-th computing device sends the obtained first signature and the first signature parameter of the i-th computing device to the i-1-th computing device. After receiving the first signature and the first signature parameter of the i-th computing device, the i-1-th computing device processes the first signature parameter and the first signature of the i-th computing device to obtain the first signature parameter of the i-1-th computing device, until the first computing device calculates and processes the first signature parameter of the second computing device to obtain the second signature. If the first computing device determines that the second signature is not zero, it concatenates the second signature s and the first signature r to obtain a collaborative signature (r, s); the collaborative signature is used for identity verification, such as directly applying the signature verification process of the SM2 algorithm, which can be used to ensure that the sender of the message is legitimate and the message has not been tampered with during transmission. By verifying the signature, the recipient can confirm the integrity and authenticity of the message, thereby ensuring the security of communication.

[0136] The collaborative signature method provided in the embodiment of the present application is such that no one participating in the signing process can obtain the complete signature private key during the key generation stage, and the signature private key cannot be reversely calculated from the intermediate results and the final generated signature during the signing process, thereby ensuring the security of the signature.

[0137] Figure 4 A schematic diagram of the structure of a collaborative signature device provided for this application, such as Figure 4 As shown, the collaborative signature apparatus provided in this embodiment is applied to the i-th computing device among m computing devices, where m is a positive integer greater than or equal to 1; including:

[0138] The first sending module 401 is used to determine the first parameter and the first secret value of the i-th computing device; and send the first parameter and the first secret value of the i-th computing device to the i+1-th computing device; wherein the first parameter represents the point corresponding to the computing device on the preset elliptic curve; the i+1-th computing device is used to process the first parameter and the first secret value of the i-th computing device to obtain a signature public key and a second secret value of the i+1-th computing device.

[0139] The first determination module 402 is used to receive the signature public key sent by the i+1th computing device and the second secret value of the i+1th computing device; and determine the second secret value of the i-th computing device based on the second secret value of the i+1th computing device.

[0140] The second sending module 403 is used to send the second secret value and signature public key of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the second secret value and signature public key of the i-th computing device to obtain the signature private key of the i-1-th computing device.

[0141] The second determination module 404 is used to determine the first signature and the first signature parameter of the i-th computing device based on the signature public key and the signature private key of the i-th computing device; wherein the first signature is the signature content of the first part of the collaborative signature; and the first signature parameter is the signature intermediate value corresponding to each computing device in the second part of the collaborative signature.

[0142] The third sending module 405 is used to send the first signature and the first signature parameter of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the first signature parameter and the first signature of the i-th computing device to obtain a collaborative signature; the collaborative signature is used for identity verification processing.

[0143] In one possible implementation, the first sending module 401 is specifically used to: determine the initial private key of the i-th computing device; and receive the public key parameters, the first secret value and the first parameter of the i-1-th computing device sent by the i-1-th computing device; wherein the first parameter represents the point corresponding to the computing device on the preset elliptic curve; the first secret value is obtained by encrypting the initial private key of the i-1-th computing device based on the public key parameters generated by the first computing device; determine the first parameter of the i-th computing device based on the initial private key of the i-th computing device and the first parameter of the i-1-th computing device; determine the first secret value of the i-th computing device based on the initial private key of the i-th computing device and the first secret value of the i-1-th computing device.

[0144] In one possible implementation, the first parameter of the i-th computing device Among them, S i is the initial private key of the i-th computing device, Pk i-1 is the first parameter of the i-1th computing device, and G is the base point on the preset elliptic curve.

[0145] In one possible implementation, the first secret value of the i-th computing device Among them, S i is the first parameter of the i-th computing device, E i-1 is the first secret value of the i-1th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation.

[0146] In a possible implementation, the first determination module 402 is specifically used to: determine the signature private key of the i-th computing device; and determine the second secret value of the i-th computing device based on the second secret value and the signature private key of the i+1-th computing device.

[0147] In one possible implementation, the second secret value of the i-th computing device Among them, E i+1 ' is the second secret value of the i+1th computing device, Sk i is the signature private key of the i-th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation; E i is the first secret value of the i-th computing device.

[0148] In one possible implementation, the second determination module 404 is specifically used to: determine the second signature parameter of the i-th computing device based on the signature public key and the signature private key of the i-th computing device; wherein the second signature parameter represents the signature midpoint of the computing device corresponding to the preset elliptic curve; send the second signature parameter of the i-th computing device to the i+1-th computing device; wherein the i+1-th computing device is used to process the second signature parameter of the i-th computing device to obtain the first signature and the first signature parameter of the i+1-th computing device; receive the first signature sent by the i+1-th computing device and the first signature parameter of the i+1-th computing device; determine the first signature parameter of the i-th computing device based on the first signature and the first signature parameter of the i+1-th computing device.

[0149] In a possible implementation, the second determination module 404 is further specifically used to: determine the random number of the i-th computing device; determine the second parameter of the i-th computing device based on the signature public key, the random number of the i-th computing device and the signature private key; wherein the second parameter represents the point corresponding to the computing device on the preset elliptic curve; determine the second signature parameter of the i-th computing device based on the second parameter of the i-th computing device.

[0150] In a possible implementation, the second parameter P of the i-th computing device i =[Sk i k i ](P+G); where Sk i is the signature private key of the i-th computing device; k i is the random number of the i-th computing device; P represents the point on the preset elliptic curve corresponding to the signature public key, and G is the base point on the preset elliptic curve.

[0151] In a possible implementation, the second signature parameter of the i-th computing device is Among them, Q i-1 is the second signature parameter of the i-1th computing device, P i is the second parameter of the i-th computing device.

[0152] In a possible implementation, the second determination module 404 is further specifically used to: if it is determined that the first signature is not zero, determine the random number and signature private key of the i-th computing device; determine the first signature parameter of the i-th computing device based on the first signature, the first signature parameter of the i+1-th computing device, the random number and signature private key of the i-th computing device.

[0153] In a possible implementation, the first signature parameter of the i-th computing device Among them, Sk i is the signature private key of the i-th computing device, s i+1 is the first signature parameter of the i+1th computing device, k i is the random number of the i-th computing device; n is the order of the preset elliptic curve; mod() is the modulus operation.

[0154] In one possible implementation, the first signature r=(x+e)mod(n); wherein x is the horizontal coordinate of the midpoint of the signature represented by the signature parameter of the mth computing device; e represents the summary information of the message to be signed of the mth computing device; n is the order of the preset elliptic curve; and mod() is a modulo operation.

[0155] In a possible implementation, the signature private key Sk1 of the first computing device = Dec sk (E2'); where sk is the private key parameter generated by the first computing device; E2' is the second secret value of the second computing device, Dec sk () is the preset decryption operation.

[0156] In a possible implementation, the m-th computing device is used to determine the first parameter of the m-th computing device as a signature public key.

[0157] In a possible implementation, the first computing device is used to concatenate the second signature of the first computing device and the first signature to obtain a collaborative signature when the second signature based on the first computing device is not zero.

[0158] The (device subject) provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be described in detail here.

[0159] Figure 5 A schematic diagram of a computing device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the computing device includes: a memory 501, a processor 502; the memory 501; and a memory for storing instructions executable by the processor 502.

[0160] The processor 502 is configured to execute the method provided in the above embodiment.

[0161] The computing device further includes a receiver 503 and a transmitter 504. The receiver 503 is used to receive instructions and data sent by other devices, and the transmitter 504 is used to send instructions and data to external devices.

[0162] The specific implementation process of the processor 502 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0163] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.

[0164] The memory may include a high-speed memory (Ramdom Access Memory, RAM), and may also include a non-volatile memory (Mom-volatile Memory, MVM), such as at least one disk memory.

[0165] The bus may be an Industrial Standard Architecture (ISA) bus, a Peripheral Compomemt (PCI) bus, or an Extended Industrial Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0166] The present application provides a collaborative signature system, including: m computing devices, where m is a positive integer greater than or equal to 1; each computing device stores computer execution instructions, and when a processor executes the computer execution instructions, the above method is implemented.

[0167] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0168] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0169] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0170] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0171] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as 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 an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

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

[0173] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

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

[0175] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0176] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A collaborative signature method, characterized in that: The method is applied to the i-th computing device among m computing devices, where m is a positive integer greater than or equal to 1; the method comprises: Determine a first parameter and a first secret value of the i-th computing device; and send the first parameter and the first secret value of the i-th computing device to the i+1-th computing device; wherein the first parameter represents a point on a preset elliptic curve corresponding to the computing device; the i+1-th computing device is used to process the first parameter and the first secret value of the i-th computing device to obtain a signature public key and a second secret value of the i+1-th computing device; Receive the signature public key sent by the i+1th computing device and the second secret value of the i+1th computing device; and determine the signature private key and the second secret value of the i+1th computing device according to the second secret value of the i+1th computing device; Sending the second secret value and the signature public key of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the second secret value and the signature public key of the i-th computing device to obtain the second secret value and the signature private key of the i-1-th computing device; Determine a first signature and a first signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device; wherein the first signature is the signature content of the first part of the collaborative signature; and the first signature parameter is the signature intermediate value corresponding to each computing device in the second part of the collaborative signature; The first signature and the first signature parameter of the i-th computing device are sent to the i-1-th computing device; wherein the i-1-th computing device is used to process the first signature parameter of the i-th computing device and the first signature to obtain a collaborative signature; the collaborative signature is used for identity verification processing.

2. The method according to claim 1, characterized in that Determining a first parameter and a first secret value of an i-th computing device includes: Determine the initial private key of the i-th computing device; and receive the public key parameter sent by the i-1-th computing device, the first secret value of the i-1-th computing device, and the first parameter; wherein the first parameter represents the point corresponding to the computing device on the preset elliptic curve; the first secret value is obtained by encrypting the initial private key of the i-1-th computing device based on the public key parameter generated by the first computing device; Determine a first parameter of the ith computing device according to an initial private key of the ith computing device and a first parameter of the (i-1)th computing device; A first secret value of the i-th computing device is determined based on an initial private key of the i-th computing device and a first secret value of the (i-1)-th computing device.

3. The method according to claim 2, characterized in that The first parameter of the i-th computing device Among them, S i is the initial private key of the i-th computing device, Pk i-1 is the first parameter of the i-1th computing device, and G is the base point on the preset elliptic curve.

4. The method according to claim 2, characterized in that: The first secret value of the i-th computing device Among them, S i is the first parameter of the i-th computing device, E i-1 is the first secret value of the i-1th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation.

5. The method according to claim 1, characterized in that Determining the second secret value of the i-th computing device according to the second secret value of the i+1-th computing device includes: Determine the signature private key of the i-th computing device; The second secret value of the i-th computing device is determined according to the second secret value of the i+1-th computing device and the signature private key.

6. The method according to claim 5, characterized in that The second secret value of the i-th computing device Among them, E i+1 ' is the second secret value of the i+1th computing device, Sk i is the signature private key of the i-th computing device; pk is the public key parameter generated by the first computing device; Enc pk () is the preset encryption operation; E i is the first secret value of the i-th computing device.

7. The method according to claim 1, characterized in that Determining a first signature and a first signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device includes: Determine a second signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device; wherein the second signature parameter represents a signature midpoint of the computing device corresponding to the preset elliptic curve; Sending the second signature parameter of the i-th computing device to the i+1-th computing device; wherein the i+1-th computing device is used to process the second signature parameter of the i-th computing device to obtain the first signature and the first signature parameter of the i+1-th computing device; Receiving a first signature sent by an i+1th computing device and a first signature parameter of an i+1th computing device; A first signature parameter of the i-th computing device is determined according to the first signature and a first signature parameter of the (i+1)-th computing device.

8. The method according to claim 7, characterized in that Determining a second signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device includes: Determine a random number for the i-th computing device; Determine a second parameter of the i-th computing device according to the signature public key, the random number of the i-th computing device, and the signature private key; wherein the second parameter represents a point on a preset elliptic curve corresponding to the computing device; A second signature parameter of the i-th computing device is determined according to the second parameter of the i-th computing device.

9. The method according to claim 8, characterized in that The second parameter P of the i-th computing device i =[Sk i k i ](P+G); Among them, Sk i is the signature private key of the i-th computing device; k i is the random number of the i-th computing device; P represents the point on the preset elliptic curve corresponding to the signature public key, and G is the base point on the preset elliptic curve.

10. The method according to claim 8, characterized in that The second signature parameter of the i-th computing device Among them, Q i-1 is the second signature parameter of the i-1th computing device, P i is the second parameter of the i-th computing device.

11. The method according to claim 7, characterized in that Determining a first signature parameter of the i-th computing device according to the first signature and a first signature parameter of the i+1-th computing device includes: If it is determined that the first signature is not zero, then determining the random number and signature private key of the i-th computing device; The first signature parameter of the i-th computing device is determined according to the first signature, the first signature parameter of the (i+1)-th computing device, the random number of the i-th computing device, and the signature private key.

12. The method according to claim 11, characterized in that The first signature parameter of the i-th computing device Among them, Sk i is the signature private key of the i-th computing device, s i+1 is the first signature parameter of the i+1th computing device, k i is the random number of the i-th computing device; n is the order of the preset elliptic curve; mod() is the modulus operation.

13. The method according to claim 7, characterized in that The first signature r=(x+e)mod(n); wherein x is the horizontal coordinate of the middle point of the signature represented by the signature parameter of the mth computing device; e represents the summary information of the message to be signed calculated by the mth computing device; n is the order of the preset elliptic curve; and mod() is a modulo operation.

14. The method according to claim 1, characterized in that The signature private key of the first computing device Sk1=Dec sk (E2'); where sk is the private key parameter generated by the first computing device; E2' is the second secret value of the second computing device, Dec sk () is the preset decryption operation.

15. The method according to claim 1, characterized in that The m-th computing device is used to determine the first parameter of the m-th computing device as the signature public key.

16. The method according to any one of claims 1 to 15, characterized in that The first computing device is used to concatenate the second signature and the first signature to obtain the collaborative signature when the second signature obtained after the first computing device calculates the first signature parameter of the second computing device is not zero.

17. A collaborative signature device, characterized in that: The device is applied to the i-th computing device among m computing devices, where m is a positive integer greater than or equal to 1; the device comprises: A first sending module is used to determine a first parameter and a first secret value of the i-th computing device; and send the first parameter and the first secret value of the i-th computing device to the i+1-th computing device; wherein the first parameter represents a point corresponding to the computing device on a preset elliptic curve; the i+1-th computing device is used to process the first parameter and the first secret value of the i-th computing device to obtain a signature public key and a second secret value of the i+1-th computing device; A first determination module is configured to receive a signature public key sent by an i+1th computing device and a second secret value of an i+1th computing device; and determine a second secret value of an i-th computing device according to the second secret value of the i+1th computing device; A second sending module, used to send the second secret value of the i-th computing device and the signature public key to the i-1-th computing device; wherein the i-1-th computing device is used to process the second secret value and the signature public key of the i-th computing device to obtain the signature private key of the i-1-th computing device; A second determination module is used to determine a first signature and a first signature parameter of the i-th computing device according to the signature public key and the signature private key of the i-th computing device; wherein the first signature is the signature content of the first part of the collaborative signature; and the first signature parameter is the signature intermediate value corresponding to each computing device in the second part of the collaborative signature; The third sending module is used to send the first signature and the first signature parameter of the i-th computing device to the i-1-th computing device; wherein the i-1-th computing device is used to process the first signature parameter of the i-th computing device and the first signature to obtain a collaborative signature; the collaborative signature is used for identity verification processing.

18. A computing device, characterized in that include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 16.

19. A collaborative signature system, characterized in that: include: m computing devices, where m is a positive integer greater than or equal to 1; the computing devices are used to implement the method according to any one of claims 1 to 16.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 16.

21. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.

Citation Information

Cited By

  • Collaborative signature method, apparatus and system, and device

    WO2025246324A1