A privacy-enhanced ECDSA collaborative signature method and device
By adopting the privacy-enhanced ECDSA collaborative signature method in the elliptic curve digital signature algorithm, splitting the private key and generating a signature without leaking the digest of the message to be signed, the problem of private key leakage and user privacy leakage in the elliptic curve digital signature algorithm is solved. problem, improving the security of information transmission.
Patent Information
- Application Number
- CN202111383583.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-22
AI Technical Summary
The existing elliptic curve digital signature algorithm has the risk of private key leakage during the signature process, and the message to be signed or its summary information in the collaborative signature scheme is leaked, resulting in the leakage of user privacy.
The privacy-enhanced ECDSA collaborative signature method is adopted to ensure security during the signature process by determining the base point of the target elliptic curve and the random number generation result, splitting the private key and generating a complete signature without sending the digest of the message to be signed.
It effectively avoids privacy leakage during the signature process, improves security during information transmission, and ensures the security of private keys and the protection of user privacy.
Smart Images

Figure CN114117548B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security technology, and in particular to a privacy-enhanced ECDSA collaborative signature method and device. Background Art
[0002] The Elliptic Curve Digital Signature Algorithm (ECDSA) is a simulation of the Digital Signature Algorithm (DSA) using the Elliptic Curve Cryptography (ECC). Its security is based on the difficulty of the Elliptic Curve Discrete Logarithm Problem (ECDLP). The Elliptic Curve Digital Signature Algorithm can ensure the integrity and non-repudiation of information during transmission. The existing Elliptic Curve Digital Signature Algorithm is an independent signature by an entity. If the private key is only kept by one party, there is often a certain risk of leakage. Once an attacker successfully invades the private key owner, the attacker can forge a signature at will.
[0003] The above technical problems can be solved by using collaborative signature technology. Collaborative signature technology is to split the private key and store it. Multiple entities have sub-private keys to generate sub-signature parts. Multiple sub-signatures are combined into a complete signature information. During the entire signing process, the user's complete private key is not exposed, which can ensure the security of the signature private key. There are currently many collaborative signature schemes, but in these schemes, the plaintext information of the message to be signed or its summary information will be leaked to the collaborative signer, which puts the user's privacy at risk of leakage. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present application is to provide a privacy-enhanced ECDSA collaborative signature method, which is capable of not sending the message to be signed and the message digest of the message to be signed to the co-signing party, thereby solving the problem of privacy leakage in the signing process existing in the prior art and improving the security of the information transmission process.
[0005] In a first aspect, an embodiment of the present application provides a privacy-enhanced ECDSA collaborative signature method, which is applied to a first communication party, and the collaborative signature method includes:
[0006] Determine a first result of a base point of a target elliptic curve under a first random number and a second result under a second random number; the first result is the product of the base point of the target elliptic curve and the first random number; the second result is the product of the base point of the target elliptic curve and the second random number.
[0007] The first result and the second result are sent to a second communication party.
[0008] Receive the third result and private key component result sent by the second communication party; the third result is obtained by the second communication party based on the generated third random number and the target elliptic curve base point; the private key component result is obtained by the second communication party based on the generated third random number, the first result, the second result and the preset second private key component.
[0009] A complete signature is generated based on the third result, the private key component result and the message digest; the message digest is obtained by performing a hash operation on the message to be signed.
[0010] Optionally, generating a complete signature based on the third result, the private key component result and a preset message digest includes:
[0011] Determine a first parameter result of the third result under the first random number, where the first parameter result is the product of the third result and the first random number;
[0012] Determine a hash value of the first parameter result;
[0013] Obtaining coordinates of a first target point on a target elliptic curve based on a hash value of the first parameter result and the second result; the coordinates of the first target point include a horizontal coordinate value and a vertical coordinate value of the first target point in a rectangular coordinate system;
[0014] determining the abscissa value of the first target point as a first partial signature for obtaining a complete signature of the message to be signed;
[0015] Obtaining a second partial signature of the complete signature of the message to be signed based on the second random number, the hash value of the first parameter result, the message digest, the first private key component, and the private key component result;
[0016] A full signature is generated based on the first partial signature and the second partial signature.
[0017] Optionally, before determining a first result of a base point of the target elliptic curve under a first random number and a second result under a second random number, the method further includes:
[0018] Get the original private key.
[0019] The original private key is split into a first private key component and a second private key component.
[0020] The first private key component is sent to a first communication party; and the second private key component is sent to a second communication party.
[0021] Optionally, before determining a first result of a base point of the target elliptic curve under a first random number and a second result under a second random number, the method further includes:
[0022] Get the message to be signed.
[0023] A hash operation is performed on the message to be signed to determine a message digest.
[0024] In a second aspect, an embodiment of the present application provides a privacy-enhanced ECDSA collaborative signature method, which is applied to a second communication party. The ECDSA collaborative signature method includes:
[0025] A first result and a second result sent by a first communication party are received; the first result is the product of a base point of a target elliptic curve and a first random number; and the second result is the product of a base point of the target elliptic curve and a second random number.
[0026] Determine a third result of the base point of the target elliptic curve under the third random number; the third result is the product of the base point of the target elliptic curve and the third random number.
[0027] A private key component result is generated based on the first result, the second result, the third random number, and the second private key component.
[0028] The third result and the private key component result are sent to a first communication party, so that the first communication party can generate a first partial signature based on the third result and generate a second partial signature based on the private key component result.
[0029] Optionally, generating a private key component result based on the first result, the second result, the third random number, and a preset second private key component includes:
[0030] determining a second parameter result based on a product of the first result and the third random number;
[0031] Determine a hash value of the second parameter result;
[0032] Obtaining coordinates of a second target point on the target elliptic curve based on the hash value of the second result and the second parameter result; the coordinates of the second target point include a horizontal coordinate value and a vertical coordinate value of the second target point in a rectangular coordinate system;
[0033] A private key component result is determined based on the hash value of the second parameter result, the abscissa value of the second target point, and the second private key component.
[0034] In a third aspect, an embodiment of the present application provides a privacy-enhanced ECDSA collaborative signature device, the ECDSA collaborative signature device comprising:
[0035] A result determination module is used to determine a first result of a base point of a target elliptic curve under a first random number and a second result under a second random number; the first result is the product of the base point of the target elliptic curve and the first random number; the second result is the product of the base point of the target elliptic curve and the second random number.
[0036] The first sending module is configured to send the first result and the second result to a second communication party.
[0037] The first receiving module is used to receive the third result and the private key component result sent by the second communication party; the third result is obtained by the second communication party based on the generated third random number and the target elliptic curve base point; the private key component result is obtained by the second communication party based on the generated third random number, the first result, the second result and the preset second private key component.
[0038] A signature generation module is used to generate a complete signature based on the third result, the private key component result and a message digest; the message digest is obtained by performing a hash operation on the message to be signed.
[0039] In a fourth aspect, an embodiment of the present application provides a privacy-enhanced ECDSA collaborative signature device, the ECDSA collaborative signature device comprising:
[0040] The second receiving module is used to receive the first result and the second result sent by the first communication party; the first result is the product of the base point of the target elliptic curve and the first random number; the second result is the product of the base point of the target elliptic curve and the second random number.
[0041] The third result determination module is used to determine a third result of the base point of the target elliptic curve under a third random number; the third result is the product of the base point of the target elliptic curve and the third random number.
[0042] A private key component result generation module is used to generate a private key component result based on the first result, the second result, the third random number and a preset second private key component.
[0043] The second sending module is used to send the third result and the private key component result to the first communication party, so that the first communication party can generate a first partial signature based on the third result and generate a second partial signature based on the private key component result.
[0044] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory through the bus, and the processor executes the machine-readable instructions to perform the steps of the ECDSA collaborative signature method described in any one of the first aspect or the steps of the ECDSA collaborative signature method described in any one of the second aspect.
[0045] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the ECDSA collaborative signature method described in any one of the first aspect or the steps of the ECDSA collaborative signature method described in any one of the second aspect are executed.
[0046] The privacy-enhanced ECDSA collaborative signature method and device provided in the embodiments of the present application do not need to send the message to be signed and the message digest of the message to be signed to the collaborative signatory, compared with the ECDSA-based collaborative signature method in the prior art which requires sending the message to be signed and the message digest to the collaborative signatory, thereby solving the problem of privacy leakage in the signing process in the prior art and improving the security of the information transmission process.
[0047] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A flowchart of interaction between two parties in a privacy-enhanced ECDSA collaborative signature method provided in an embodiment of the present application is shown;
[0050] Figure 2 A flowchart of determining a private key component result in a privacy-enhanced ECDSA collaborative signature method provided in an embodiment of the present application is shown;
[0051] Figure 3 A flowchart of determining a complete signature in a privacy-enhanced ECDSA collaborative signature method provided in an embodiment of the present application is shown;
[0052] Figure 4A schematic diagram of the structure of a privacy-enhanced ECDSA collaborative signature device provided in an embodiment of the present application is shown;
[0053] Figure 5 A schematic diagram of the structure of another privacy-enhanced ECDSA collaborative signature device provided in an embodiment of the present application is shown;
[0054] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0055] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0056] At present, the elliptic curve digital signature algorithm can ensure the integrity and non-repudiation of information during transmission. The existing elliptic curve digital signature algorithm is an independent signature by an entity. If the private key is only kept by one party, there is often a certain risk of leakage. Once an attacker successfully invades the private key owner, the attacker can forge the signature at will.
[0057] The above technical problems can be solved by using collaborative signature technology. Collaborative signature technology is to split the private key and store it. Multiple entities have sub-private keys to generate sub-signature parts. Multiple sub-signatures are combined into a complete signature information. During the entire signing process, the user's complete private key is not exposed, which can ensure the security of the signature private key. There are currently many collaborative signature schemes, but in these schemes, the plaintext information of the message to be signed or its summary information will be leaked to the collaborative signer, which puts the user's privacy at risk of leakage.
[0058] Based on the above problems, the embodiments of the present application provide a privacy-enhanced ECDSA collaborative signature method and device, which can avoid sending relevant information to be signed to the server, thereby solving the problem of privacy leakage in the signing process in the prior art and improving the security of information transmission.
[0059] The technical solutions in the present application will be clearly and completely described below in conjunction with the drawings in the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0060] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0061] See also Figure 1 , Figure 1 A flowchart of the interaction between two parties of a privacy-enhanced ECDSA collaborative signature method provided in an embodiment of the present application. Figure 1 As shown, a privacy-enhanced ECDSA collaborative signature method provided in an embodiment of the present application includes the following steps:
[0062] S101. The first communicating party determines a first result of a base point of a target elliptic curve under a first random number and a second result under a second random number.
[0063] As an example, the first communication party may be a client or a server.
[0064] Here, in step S101, the base point of the target elliptic curve is an arbitrarily selected point on the target elliptic curve.
[0065] The first random number and the second random number are generated by a random number generator or a random number generation function.
[0066] Specifically, in an exemplary embodiment, a first random number and a second random number may be generated by a random number generator, and then a first result may be calculated based on the product of the first random number and the base point of the target elliptic curve. For example, the first result may be calculated using the following formula:
[0067] H 1 =K 1 G;
[0068] Among them, K 1 is the first random number; G is the base point of the target elliptic curve; H 1 is the first result.
[0069] Further, the first result is calculated according to the product of the second random number and the base point of the target elliptic curve:
[0070] H 2 =K 2 G;
[0071] Among them, K 2 is the second random number; G is the base point of the target elliptic curve; H 2 For the second result.
[0072] In addition, before step S101, the following steps are also included:
[0073] S001. The first communication party obtains an original private key.
[0074] Here, the original private key d is stored in the first communicating party.
[0075] S002. The first communication party splits the original private key into a first private key component and a second private key component.
[0076] Here, in order to ensure the security of storage and use of the original private key, the original private key d needs to be split into two private key components, namely the first private key component d c and the second private key component d s .
[0077] Among them, the second private key component d s is based on the first private key component d c The product of the reciprocal of and the original private key d is obtained.
[0078] S003. The first communication party sends the first private key component to the first communication party; and sends the second private key component to the second communication party.
[0079] Here, in order to ensure the security of private key storage and use, the second communication party and the first communication party are used to perform collaborative signing.
[0080] Specifically, the original private key d is split into the first private key component d c and the second private key component d s Afterwards, the first private key component d c The first private key component is sent to the first communication party, and the first private key component is stored in the first communication party; the second private key component d s The second private key component is sent to the second communication party, and the second private key component is stored at the second communication party.
[0081] In addition, before step S101, the following steps are also included:
[0082] S004. The first communication party obtains the message to be signed.
[0083] Here, the message to be signed needs to be signed to ensure the security of the message to be signed.
[0084] S005. The first communication party performs a hash operation on the message to be signed to determine a message digest.
[0085] Here, the first communication party performs a hash operation on the message to be signed to determine the message digest e. This algorithm is a prior art and will not be described in detail.
[0086] It should be noted that after the first communication party determines the message digest, the message digest is stored in the first communication party and is not sent to the second communication party.
[0087] Given that in existing collaborative signature methods based on elliptic curves, the message to be signed or the message digest obtained based on the message to be signed will be sent to the collaborative signing party, user privacy will be at risk of being leaked in existing collaborative signature methods.
[0088] In order to overcome the shortcomings of the prior art, during the communication between a first communication party and a second communication party, the first communication party will not send the message to be signed or the message digest to the second communication party, thereby avoiding the risk of user privacy leakage.
[0089] S102: The first communication party sends the first result and the second result to the second communication party.
[0090] S103: The second communication party receives the first result and the second result sent by the first communication party.
[0091] Here, the second communication party may be a client or a server. When the first communication party is a client, the second communication party is a server; when the first communication party is a server, the second communication party is a client.
[0092] S104. The second communication party determines a third result of a base point of the target elliptic curve under a third random number; the third result is a product of the base point of the target elliptic curve and the third random number.
[0093] Specifically, the second communication party generates a third random number through a random number generator or a random number generation function in response to the first result and the second result sent by the first communication party.
[0094] Regarding step S104, specifically, the third result is calculated based on the product of the third random number and the base point of the target elliptic curve:
[0095] H 3 =K 3 G;
[0096] Among them, K3 is the third random number; G is the base point of the target elliptic curve; H 3 For the third result.
[0097] S105. The second communication party generates a private key component result based on the first result, the second result, the third random number and the second private key component.
[0098] For details, please refer to Figure 2 , Figure 2 The flowchart of determining the private key component result in a privacy-enhanced ECDSA collaborative signature method provided by an embodiment of the present application is shown. Figure 2 As shown, in this step, the following steps are included:
[0099] S1051. Determine a second parameter result based on the product of the first result and the third random number.
[0100] The calculation formula for the second parameter result is:
[0101] R 2 =K 3 H 1 ;
[0102] Among them, K 3 is the third random number; H 1 is the first result; R 2 The second parameter result.
[0103] S1052: Determine a hash value of the second parameter result.
[0104] The specific calculation formula for the second hash value of the second parameter result is:
[0105]
[0106] Among them, Hash() is a hash function; The hash value of the result of the second parameter.
[0107] S1053. Obtain the coordinates of a second target point on the target elliptic curve based on the hash value of the first result, the second result and the second parameter result; the coordinates of the second target point include the horizontal coordinate value and the vertical coordinate value of the second target point in a rectangular coordinate system.
[0108] The specific calculation process of the second target point is:
[0109]
[0110] in, It is the inverse of the hash value of the second parameter result; H 2 is the second result; P2 It is the second target point.
[0111] Here, P2 can be expressed as:
[0112] P 2 =(X 2 , Y 2 );
[0113] Among them, X 2 is the horizontal coordinate value of the second target point; Y 2 is the ordinate value of the second target point.
[0114] S1054: Determine a private key component result based on the hash value of the second parameter result, the horizontal coordinate value of the second target point, and the second private key component.
[0115] The calculation formula for the private key component result is:
[0116] F=K R2 X 0 d s ;
[0117] Among them, K R2 The hash value of the second parameter result; X 0 is the horizontal coordinate value of the second target point; d s is the second private key component stored in the second communication party; F is the private key component result.
[0118] S106. The second communication party sends the third result and the private key component result to the first communication party, so that the first communication party can generate a first partial signature based on the third result and generate a second partial signature based on the private key component result.
[0119] In this step, the second communication party sends the third result obtained in step S104 and the private key component result obtained in step S105 to the first communication party.
[0120] S107. The first communication party receives the third result and the private key component result sent by the second communication party.
[0121] S108. The first communication party generates a complete signature based on the third result, the private key component result and the message digest.
[0122] See also Figure 3 , Figure 3 FIG. 1 shows a flowchart of determining a complete signature in a privacy-enhanced ECDSA collaborative signature method provided in an embodiment of the present application. Figure 3 As shown, in this step, the following steps are specifically included:
[0123] S1081. Determine a first parameter result of the third result under the first random number, where the first parameter result is the product of the third result and the first random number.
[0124] The calculation formula for the first parameter result is:
[0125] R 1 =H 3 K 1 ;
[0126] Among them, H 3 is the third result; K 1 is the first random number; R 1 The result of the first parameter.
[0127] S1082. Determine a hash value of the first parameter result.
[0128] The calculation formula for the first hash value of the first parameter result is:
[0129]
[0130] Among them, Hash() is a hash function; The hash value of the result of the first parameter.
[0131] S1083. Obtain coordinates of a first target point on the target elliptic curve based on the hash value of the first parameter result and the second result; the coordinates of the first target point include a horizontal coordinate value and a vertical coordinate value of the first target point in a rectangular coordinate system.
[0132] The calculation formula for the first target point is:
[0133]
[0134] in, H is the inverse of the hash value of the first parameter result; 2 is the second result; P 1 is the first target point.
[0135] Here, P 1 It can be expressed as:
[0136] P 1 =(X 1 , Y 1 );
[0137] Among them, X 1 is the horizontal coordinate value of the first target point; Y 1 is the ordinate value of the first target point.
[0138] S1084. Determine the horizontal coordinate value of the first target point as the first partial signature for obtaining a complete signature of the message to be signed.
[0139] Here, since the first target point is on the elliptic curve, the point can be represented by its abscissa value and ordinate value.
[0140] Here, the complete signature consists of two parts, and the complete signature formula can be expressed as:
[0141] (r, s);
[0142] Among them, r is the first part of the complete signature; s is the second part of the complete signature.
[0143] Specifically, regarding step S1084, the horizontal coordinate value of the first target point is used as the first part of the complete signature.
[0144] S1085. Obtain a second partial signature of the complete signature of the message to be signed based on the second random number, the hash value of the first parameter result, the message digest, the first private key component and the private key component result.
[0145] Here, the message digest is always stored in the first communication party and is used to generate the second partial signature in this step.
[0146] Specifically, the calculation formula for the second part of the signature is:
[0147]
[0148] in, is the reciprocal of the second random number; is the hash value of the result of the first parameter; e is the summary of the message to be signed pre-stored in the first communication party; d c is the first private key component stored in the first communication party; F is the private key component result; S is the second part signature.
[0149] S1086. Generate a complete signature based on the first partial signature and the second partial signature.
[0150] In this step, the first part of the signature value obtained in step S1084 and the second part of the signature value obtained in step S1085 are substituted into the complete signature formula to generate a complete signature.
[0151] The privacy-enhanced ECDSA collaborative signature method provided in the embodiment of the present application stores the message digest of the message to be signed in advance at the first communication party. During the collaborative signature process between the first communication party and the second communication party, the first communication party does not send the message digest to the second communication party. The second communication party only sends the parameters used to generate the first part of the signature and the second part of the signature to the first communication party, thereby avoiding the problem of privacy leakage in the collaborative signature process and improving the security of information transmission.
[0152] Based on the same inventive concept, an embodiment of the present application also provides a privacy-enhanced ECDSA collaborative signature device corresponding to the above-mentioned privacy-enhanced ECDSA collaborative signature method.
[0153] See also Figure 4 As shown, Figure 4 A schematic diagram of the structure of a privacy-enhanced ECDSA collaborative signature device provided in an embodiment of the present application, the collaborative signature device 400 includes:
[0154] The result determination module 410 is used to determine a first result of a base point of a target elliptic curve under a first random number and a second result under a second random number; the first result is the product of the base point of the target elliptic curve and the first random number; the second result is the product of the base point of the target elliptic curve and the second random number.
[0155] The first sending module 420 is configured to send the first result and the second result to a second communication party.
[0156] The first receiving module 430 is used to receive the third result and the private key component result sent by the second communication party; the third result is obtained by the second communication party based on the generated third random number and the target elliptic curve base point; the private key component result is obtained by the second communication party based on the generated third random number, the first result, the second result and the second private key component.
[0157] The signature generation module 440 is used to generate a complete signature based on the third result and the private key component result.
[0158] In a possible implementation, the signature generation module 440 is specifically configured to:
[0159] A first parameter result of the third result under the first random number is determined, where the first parameter result is a product of the third result and the first random number.
[0160] Determine a hash value of the first parameter result.
[0161] The coordinates of a first target point on the target elliptic curve are obtained based on the hash value of the first parameter result and the second result; the coordinates of the first target point include a horizontal coordinate value and a vertical coordinate value of the first target point in a rectangular coordinate system.
[0162] The abscissa value of the first target point is determined as a first partial signature for obtaining a complete signature of the message to be signed.
[0163] A second partial signature of the complete signature of the message to be signed is obtained based on the second random number, the hash value of the first parameter result, the message digest, the first private key component and the private key component result.
[0164] A full signature is generated based on the first partial signature and the second partial signature.
[0165] Based on the same inventive concept, an embodiment of the present application also provides another privacy-enhanced ECDSA collaborative signature device corresponding to the above-mentioned privacy-enhanced ECDSA collaborative signature method.
[0166] See also Figure 5 As shown, Figure 5 A schematic diagram of the structure of another privacy-enhanced ECDSA collaborative signature device provided in an embodiment of the present application, wherein the collaborative signature device 500 includes:
[0167] The second receiving module 510 is used to receive the first result and the second result sent by the first communication party; the first result is the product of the base point of the target elliptic curve and the first random number; the second result is the product of the base point of the target elliptic curve and the second random number.
[0168] The third result determination module 520 is used to determine a third result of the base point of the target elliptic curve under a third random number; the third result is the product of the base point of the target elliptic curve and the third random number.
[0169] The private key component result generation module 530 is used to generate a private key component result based on the first result, the second result, the third random number and a preset second private key component.
[0170] The second sending module 540 is used to send the third result and the private key component result to the first communication party, so that the first communication party can generate a first partial signature based on the third result and generate a second partial signature based on the private key component result.
[0171] In a possible implementation manner, the private key component result generation module 530 is specifically used to:
[0172] A second parameter result is determined based on a product of the first result and the third random number.
[0173] Determine a hash value of the second parameter result.
[0174] A second product point on the target elliptic curve is obtained based on the hash value of the second result and the second parameter result; the second product point includes a second abscissa value and a second ordinate value.
[0175] A private key component result is determined based on the hash value of the second parameter result, the second abscissa value, and the second private key component.
[0176] See also Figure 6 As shown, Figure 6 A schematic diagram of an electronic device provided in an embodiment of the present application, the electronic device 600 includes: a processor 610, a memory 620 and a bus 630, the memory 620 stores machine-readable instructions executable by the processor 610, when the electronic device is running, the processor 610 communicates with the memory 620 through the bus 630, and the processor 610 executes the machine-readable instructions to perform the steps of the privacy-enhanced ECDSA collaborative signature method as described above.
[0177] Specifically, the above-mentioned memory 620 and processor 610 can be general-purpose memories and processors, which are not specifically limited here. When the processor 610 runs the computer program stored in the memory 620, the above-mentioned privacy-enhanced ECDSA collaborative signature method can be executed.
[0178] Corresponding to the above-mentioned privacy-enhanced ECDSA collaborative signature method, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned privacy-enhanced ECDSA collaborative signature method are executed.
[0179] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules 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 communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0180] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0181] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0182] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including 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 method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0183] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A privacy-enhanced ECDSA collaborative signature method, characterized in that: Applied to the first communication party, the ECDSA collaborative signature method includes: Determine a first result of a base point of a target elliptic curve under a first random number and a second result under a second random number; the first result is the product of the base point of the target elliptic curve and the first random number; the second result is the product of the base point of the target elliptic curve and the second random number; Sending the first result and the second result to a second communication party; receiving a third result and a private key component result sent by the second communication party; the third result is obtained by the second communication party based on a third random number generated and a target elliptic curve base point; the private key component result is obtained by the second communication party based on the third random number generated, the first result, the second result, and the second private key component; Generate a complete signature based on the third result, the private key component result and a message digest; the message digest is obtained by performing a hash operation on the message to be signed; The generating a complete signature based on the third result, the private key component result and the message digest comprises: Determine a first parameter result of the third result under the first random number, where the first parameter result is the product of the third result and the first random number; Determine a hash value of the first parameter result; Obtaining coordinates of a first target point on a target elliptic curve based on a hash value of the first parameter result and the second result; the coordinates of the first target point include a horizontal coordinate value and a vertical coordinate value of the first target point in a rectangular coordinate system; determining the abscissa value of the first target point as a first partial signature for obtaining a complete signature of the message to be signed; Obtaining a second partial signature of the complete signature of the message to be signed based on the second random number, the hash value of the first parameter result, the message digest, the first private key component, and the private key component result; A full signature is generated based on the first partial signature and the second partial signature.
2. The ECDSA collaborative signature method according to claim 1, characterized in that: Before determining a first result of a base point of the target elliptic curve under the first random number and a second result under the second random number, the method further includes: Get the original private key; Splitting the original private key into a first private key component and a second private key component; The first private key component is sent to a first communication party; and the second private key component is sent to a second communication party.
3. The ECDSA collaborative signature method according to claim 1, characterized in that: Before determining a first result of a base point of the target elliptic curve under the first random number and a second result under the second random number, the method further includes: Get the message to be signed; The message to be signed is hashed to determine the message digest.
4. A privacy-enhanced ECDSA collaborative signature method, characterized in that: Applied to the second communication party, the ECDSA collaborative signature method includes: Receiving a first result and a second result sent by a first communication party; the first result is the product of a base point of a target elliptic curve and a first random number; the second result is the product of a base point of the target elliptic curve and a second random number; Determine a third result of the base point of the target elliptic curve under the third random number; the third result is the product of the base point of the target elliptic curve and the third random number; Generate a private key component result based on the first result, the second result, the third random number, and the second private key component; Sending the third result and the private key component result to a first communication party, so that the first communication party generates a first partial signature based on the third result and generates a second partial signature based on the private key component result; Generating a private key component result based on the first result, the second result, the third random number, and the second private key component includes: determining a second parameter result based on a product of the first result and the third random number; Determine a hash value of the second parameter result; Obtaining coordinates of a second target point on the target elliptic curve based on the hash value of the second result and the second parameter result; the coordinates of the second target point include a horizontal coordinate value and a vertical coordinate value of the second target point in a rectangular coordinate system; A private key component result is determined based on the hash value of the second parameter result, the abscissa value of the second target point, and the second private key component.
5. A privacy-enhanced ECDSA collaborative signature device, characterized in that: The ECDSA collaborative signature device comprises: A result determination module, used to determine a first result of a base point of a target elliptic curve under a first random number and a second result under a second random number; the first result is the product of the base point of the target elliptic curve and the first random number; the second result is the product of the base point of the target elliptic curve and the second random number; A first sending module, used for sending the first result and the second result to a second communication party; A first receiving module is used to receive a third result and a private key component result sent by the second communication party; the third result is obtained by the second communication party based on a third random number generated and a target elliptic curve base point; the private key component result is obtained by the second communication party based on the third random number generated, the first result, the second result, and the second private key component; A signature generation module, configured to generate a complete signature based on the third result, the private key component result and a message digest; the message digest is obtained by performing a hash operation on the message to be signed; The signature generation module is specifically used for: Determine a first parameter result of the third result under the first random number, where the first parameter result is the product of the third result and the first random number; Determine a hash value of the first parameter result; Obtaining coordinates of a first target point on a target elliptic curve based on a hash value of the first parameter result and the second result; the coordinates of the first target point include a horizontal coordinate value and a vertical coordinate value of the first target point in a rectangular coordinate system; determining the abscissa value of the first target point as a first partial signature for obtaining a complete signature of the message to be signed; Obtaining a second partial signature of the complete signature of the message to be signed based on the second random number, the hash value of the first parameter result, the message digest, the first private key component, and the private key component result; A full signature is generated based on the first partial signature and the second partial signature.
6. A privacy-enhanced ECDSA collaborative signature device, characterized in that: The ECDSA collaborative signature device comprises: A second receiving module is used to receive a first result and a second result sent by a first communication party; the first result is the product of a base point of a target elliptic curve and a first random number; the second result is the product of a base point of the target elliptic curve and a second random number; A third result determination module, used to determine a third result of the base point of the target elliptic curve under a third random number; the third result is the product of the base point of the target elliptic curve and the third random number; A private key component result generating module, configured to generate a private key component result based on the first result, the second result, the third random number and the second private key component; A second sending module, used to send the third result and the private key component result to a first communication party, so that the first communication party generates a first partial signature based on the third result and generates a second partial signature based on the private key component result; The private key component result generation module is specifically used for: determining a second parameter result based on a product of the first result and the third random number; Determine a hash value of the second parameter result; Obtaining coordinates of a second target point on the target elliptic curve based on the hash value of the second result and the second parameter result; the coordinates of the second target point include a horizontal coordinate value and a vertical coordinate value of the second target point in a rectangular coordinate system; A private key component result is determined based on the hash value of the second parameter result, the abscissa value of the second target point, and the second private key component.
7. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the privacy-enhanced ECDSA collaborative signature method as described in any one of claims 1 to 3 and / or the steps of the ECDSA collaborative signature method as described in claim 4.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the privacy-enhanced ECDSA collaborative signature method according to any one of claims 1 to 3 and / or the privacy-enhanced ECDSA collaborative signature method according to claim 4 are executed.
Citation Information
Patent Citations
Threshold SM2 digital signature method and apparatus, electronic device and storage medium
CN111064583A
