Adapter signature generation method and device

Through the SM2 linkable ring signature algorithm and ring signature algorithm, two participants collaborate to generate adapter signatures in the blockchain environment, solving the problem of low transaction efficiency in the blockchain due to the lack of trusted third party supervision and ensuring the authenticity of transactions. Integrity and immutability, and increased security.

CN118555077BActive Publication Date: 2024-10-15BEIJING INFOSEC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411026076.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-15
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

In the blockchain environment, without the supervision of a trusted third party, the existing adapter signature scheme needs to verify the pre-signature and the complete signature at the same time, resulting in low transaction efficiency and difficulty in ensuring the integrity and non-tamperability of the transaction.

Method used

Through the SM2 linkable ring signature algorithm, two parties collaborate to generate a pre-signature, and use the ring signature algorithm to protect the identity information of the signer, ensuring that only the target signature is verified to ensure the transaction without the supervision of a trusted third party. integrity and non-tamperability.

Benefits of technology

It ensures the integrity and non-tamperability of transactions without the need for third-party supervision in the blockchain environment, while improving transaction efficiency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555077B_ABST
    Figure CN118555077B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides an adapter signature generation method and device, the method comprising: generating a first sub-private key and a first sub-public key for signing; receiving a second sub-public key sent by a second participant, and generating a signature public key according to the first sub-private key and the second sub-public key; determining a ring public key corresponding to a ring member cluster according to the signature public key, and determining a first vector corresponding to the first participant according to the ring public key, the first sub-private key and the difficulty relationship instance; receiving a second vector sent by the second participant, and generating a first pre-signature according to the second vector and information to be signed; sending the first pre-signature to an adapter, so that the adapter obtains a target signature based on the difficulty relationship evidence, the first pre-signature and the second pre-signature, the second pre-signature is generated by the second participant according to the first vector and the information to be signed, and the two parties collaboratively generate pre-signatures, so that the method is applied to a blockchain scenario, and only the correctness of the target signature needs to be verified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information security data processing, and in particular to an adapter signature generation method and device. Background Art

[0002] Adapter signature is a cryptographic technique that allows a party to generate a partial signature (pre-signature) without exposing its private key, and then merge the partial signature with other parties into a complete signature. Adapter signature can be applied in multi-party collaboration and decentralized interaction, allowing verification and authorization operations between parties without exposing private keys. For example, the adapter signature scheme is applied in the field of blockchain and cryptocurrency.

[0003] In the blockchain environment, there is no trusted third-party supervision. Only when both the pre-signature and the full signature are verified can it be ensured that both parties of the transaction have completed the signature according to the agreed conditions, thereby ensuring the integrity and non-tamperability of the payment transaction. However, verifying the pre-signature and the full signature at the same time will not only distinguish the transaction from a normal payment transaction, but also reduce the verification efficiency. Therefore, there is an urgent need for an adapter signature scheme suitable for blockchain application scenarios. Summary of the invention

[0004] The embodiment of the present invention provides an adapter signature generation method and device, which are used to enable two participants to collaboratively generate a pre-signature. The adapter signature generated in this way is applied to a blockchain scenario without verifying the correctness of the pre-signature.

[0005] In a first aspect, an embodiment of the present invention provides an adapter signature generation method, which is applied to a first participant, wherein the first participant and a second participant collaborate to generate an adapter signature, and the method includes:

[0006] Generate a first sub-private key and a first sub-public key for signing, and send the first sub-public key to the second participant, so that the second participant verifies the first sub-public key and then sends the generated second sub-public key to the first participant;

[0007] Receive the second sub-public key sent by the second participant, and generate a signature public key according to the first sub-private key and the second sub-public key;

[0008] Determine, according to the signature public key, a ring public key corresponding to a ring member cluster, wherein the ring member cluster includes the first participant and the second participant, and the ring public key includes a public key corresponding to each ring member in the ring member cluster;

[0009] Determine a first vector corresponding to the first participant according to the ring public key, the first child private key, and a difficult relation instance, wherein the difficult relation instance is used to describe a discrete logarithm problem, and the difficult relation instance includes difficult relation evidence;

[0010] Sending the first vector to the second party, so that the second party verifies the first vector and then sends a generated second vector to the first party, where the second vector is obtained by the second party based on the ring public key, the generated second child private key, and the difficult relationship instance;

[0011] receiving the second vector sent by the second participant, and verifying the second vector, and if the verification passes, generating a first pre-signature according to the second vector and the information to be signed;

[0012] The first pre-signature is sent to the adapter, so that the adapter obtains a target signature based on the difficult relationship evidence, the first pre-signature, and a second pre-signature, where the second pre-signature is generated by the second participant according to the first vector and the information to be signed.

[0013] In a second aspect, an embodiment of the present invention provides an adapter signature device, which is applied to a first participant, and the first participant and a second participant collaborate to generate an adapter signature, and the device includes:

[0014] A generation module, used to generate a first sub-private key and a first sub-public key for signing, and send the first sub-public key to a second participant, so that the second participant verifies the first sub-public key and then sends the generated second sub-public key to the first participant, wherein the second participant is used to cooperate with the first participant to sign the adapter;

[0015] A first receiving module, configured to receive the second sub-public key sent by the second participant, and generate a signature public key according to the first sub-private key and the second sub-public key;

[0016] A first determining module, configured to determine, according to the signature public key, a ring public key corresponding to a ring member cluster, wherein the ring member cluster includes a first participant and a second participant, and the ring public key includes a public key corresponding to each ring member in the ring member cluster;

[0017] a second determining module, configured to determine a first vector corresponding to the first participant according to the ring public key, the first sub-private key, and a difficult relation instance, wherein the difficult relation instance is used to describe a discrete logarithm problem, and the difficult relation instance includes difficult relation evidence;

[0018] A first sending module, configured to send the first vector to the second participant, so that the second participant verifies the first vector and then sends a generated second vector to the first participant, where the second vector is obtained by the second participant based on the ring public key, the generated second child private key, and the difficult relationship instance;

[0019] a second receiving module, configured to receive the second vector sent by the second participant, and verify the second vector, and if the verification passes, generate a first pre-signature according to the second vector and the information to be signed;

[0020] The second sending module is used to send the pre-signature to the adapter, so that the adapter obtains the target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature, where the second pre-signature is generated by the second participant according to the first vector and the information to be signed.

[0021] In a third aspect, an embodiment of the present invention provides an electronic device, applied to a sender, comprising: a memory, a processor, and a communication interface; wherein an executable code is stored on the memory, and when the executable code is executed by the processor, the processor can at least implement the adapter signature generation method described in the first aspect.

[0022] In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor can at least implement the adapter signature generation method described in the first aspect.

[0023] In a fifth aspect, an embodiment of the present invention provides an adapter signature generation method, which is applied to a second participant who cooperates with a first participant to perform adapter signature, and the method includes:

[0024] Receiving the first sub-public key sent by the first participant, verifying the first sub-public key, and if the verification passes, generating a second sub-private key and a second sub-public key for signing;

[0025] Sending the second sub-public key to the first participant, so that the first participant generates a signature public key according to the second sub-public key, and determines the ring public key corresponding to the ring member cluster according to the signature public key;

[0026] Determine a second vector corresponding to the second participant according to the ring public key, the second sub-private key, and a difficult relation instance, wherein the difficult relation instance is used to describe a discrete logarithm problem, and the difficult relation instance includes a difficult relation evidence;

[0027] receiving a first vector sent by the first participant, and verifying the first vector, and if the verification passes, sending the second vector to the first participant, so that the first participant generates a first pre-signature according to the second vector and the information to be signed;

[0028] A second pre-signature is generated according to the first vector and the information to be signed, and the second pre-signature is sent to the adapter, so that the adapter obtains a target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature.

[0029] In a sixth aspect, an embodiment of the present invention provides an adapter signature generation device, which is applied to a second participant who cooperates with a first participant to perform adapter signature, and the device includes:

[0030] A receiving module, used to receive the first sub-public key sent by the first participant, verify the first sub-public key, and if the verification passes, generate a second sub-private key and a second sub-public key for signing;

[0031] a sending module, configured to send the second sub-public key to the first participant, so that the first participant generates a signature public key according to the second sub-public key, and determines a ring public key corresponding to the ring member cluster according to the signature public key;

[0032] a determination module, configured to determine a second vector corresponding to the second participant according to the ring public key, the second sub-private key, and a difficult relation instance, wherein the difficult relation instance is used to describe a discrete logarithm problem, and the difficult relation instance includes difficult relation evidence;

[0033] a verification module, configured to receive the first vector sent by the first participant, verify the first vector, and if the verification passes, send the second vector to the first participant, so that the first participant generates a first pre-signature according to the second vector and the information to be signed;

[0034] A generation module is used to generate a pre-signature according to the second vector and the information to be signed, and send the pre-signature to the adapter, so that the adapter obtains a target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature.

[0035] In the seventh aspect, an embodiment of the present invention provides an electronic device, applied to a sender, comprising: a memory, a processor, and a communication interface; wherein, an executable code is stored on the memory, and when the executable code is executed by the processor, the processor can at least implement the adapter signature generation method described in the fifth aspect.

[0036] In an eighth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor can at least implement the adapter signature generation method described in the fifth aspect.

[0037] In the adapter signature generation scheme provided in the embodiment of the present invention, two parties can cooperate to jointly generate a pre-signature, so that even in a blockchain environment, without trusted third-party supervision, only the pre-signature is verified, and the integrity and non-tamperability of the payment transaction can be ensured.

[0038] Specifically, when two participants sign the adapter, the first participant first generates a first sub-private key and a first sub-public key for signing, and sends the first sub-public key to the second participant. After the second participant verifies the first sub-public key, it generates a second sub-private key and a second sub-public key for signing, and sends the second sub-public key to the first participant. The first participant generates a signature key based on the second sub-public key and the first sub-private key. Then, the first participant determines the ring public key corresponding to the ring member cluster based on the signature public key. And the first participant can determine the first vector corresponding to the first participant based on the ring public key, the first sub-private key and the difficult relationship instance. The second participant determines the second vector corresponding to the second participant based on the ring public key, the second sub-private key and the difficult relationship instance. Among them, the difficult relationship instance is used to describe the discrete logarithm problem, and the difficult relationship instance includes difficult relationship evidence. Then, the first participant sends the first vector to the second participant. The second participant verifies the first vector, and sends the second vector to the first participant if the verification passes. The first participant verifies the second vector. If the verification is successful, a first pre-signature is generated based on the second vector and the information to be signed, and the first pre-signature is sent to the adapter. The second participant generates a second pre-signature based on the first vector and the information to be signed, and sends the second pre-signature to the adapter. The adapter receives the first pre-signature and the second pre-signature, and generates a target signature based on the first pre-signature, the second pre-signature, and the difficult relationship evidence.

[0039] In the above scheme, in the key generation phase, two parties holding their own sub-keys jointly generate a complete signature public key, and the two parties obtain the complete signature public key without leaking their own keys. In the pre-signature generation phase, the two parties use their own sub-private keys to jointly generate a pre-signature about the information to be signed, so that the adapter can directly convert the pre-signature jointly generated by the two parties into a complete target signature based on the difficult relationship evidence. In this way, even in the blockchain environment, without the supervision of a trusted third party, it is only necessary to verify the correctness of the target signature to ensure that the two parties have completed the signature according to the agreed conditions, thereby ensuring the integrity and non-tamperability of the transaction, and also improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] Figure 1 A schematic diagram of an adapter signature generation system provided by an embodiment of the present invention;

[0042] Figure 2 An interactive flow chart of an adapter signature generation method provided by an embodiment of the present invention;

[0043] Figure 3 A schematic diagram of a process for determining a first vector corresponding to a first participant provided by an embodiment of the present invention;

[0044] Figure 4 A schematic diagram of a process for determining a first vector corresponding to a second participant provided by an embodiment of the present invention;

[0045] Figure 5 A schematic diagram of a process for generating a first pre-signature provided in an embodiment of the present invention;

[0046] Figure 6 A schematic diagram of a process for generating a second pre-signature provided by an embodiment of the present invention;

[0047] Figure 7 A schematic diagram of the structure of an adapter signature generation device provided by an embodiment of the present invention;

[0048] Figure 8 For Figure 7 A schematic diagram of the structure of an electronic device corresponding to adapter signature generation provided by the illustrated embodiment;

[0049] Fig. 9 A schematic diagram of the structure of another adapter signature generation device provided by an embodiment of the present invention;

[0050] Fig.10 For Fig. 9 A schematic structural diagram of an electronic device corresponding to the adapter signature generation device provided in the illustrated embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the situation of including at least one. It should be understood that the term "and / or" used in this article is only an association relationship describing the associated objects, indicating that three relationships can exist, for example, A and / or B can be represented: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are a kind of "or" relationship. Depending on the context, the words "if" and "if" used herein can be interpreted as "at the time of..." or "when...".

[0053] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0054] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.

[0055] Adapter signatures can be used in multi-party collaboration and decentralized interactions, allowing participants to verify and authorize operations without exposing private keys. For example, adapter signature schemes are used in the field of blockchain and cryptocurrency. However, in the blockchain environment, there is no trusted third-party supervision. Only when both the pre-signature and the full signature are verified can it be ensured that both parties of the transaction have completed the signature in accordance with the agreed conditions, thereby ensuring the integrity and immutability of the payment transaction. However, verifying the pre-signature and the full signature at the same time will not only distinguish the transaction from a normal payment transaction, but also reduce the verification efficiency.

[0056] In order to solve the above technical problems, the embodiment of the present invention provides a new adapter signature generation scheme, which constructs a two-party adapter signature based on the SM2 linkable ring signature algorithm, so that the two parties can collaboratively generate a pre-signature to achieve multi-party collaboration to complete the signature and verification process, solving the problem of needing to verify the pre-signature and the complete target signature at the same time in blockchain transactions. In addition, the use of the ring signature algorithm to collaboratively generate adapter signatures can also protect the identity information of the signer from being leaked and prevent forged signatures, thereby improving the security of the application.

[0057] Figure 1 A schematic diagram of an adapter signature generation system provided by an embodiment of the present invention, such as Figure 1 As shown, the system may include a first participant, a second participant, and an adapter. The first participant and the second participant jointly generate a pre-signature, and the adapter is used to convert the pre-signature jointly generated by the first participant and the second participant into a complete target signature.

[0058] The first party and the second party can be any two users who need to sign together. For example, in a blockchain environment, payment often involves multiple parties, such as buyers, sellers, and intermediaries. The adapter is an intermediary role that can be a third party other than the two parties. It mainly obtains the information to be signed and the pre-signatures generated by each party from the two parties, and then performs a series of verification and adaptation operations to obtain the complete target signature.

[0059] In specific implementation, the generation of the adapter signature mainly includes three steps, namely, the generation of the signature key, the generation of the pre-signature, and the adaptation operation of the pre-signatures corresponding to multiple participants to generate a complete target signature. Among them, the two participants first generate a signature public key before generating the pre-signature. In order to ensure that the two participants do not leak their corresponding sub-private keys when obtaining the signature public key, in an embodiment of the present invention, in the signature key generation stage, the first participant and the second participant can first generate their corresponding key pairs, and then send their corresponding sub-public keys to each other, so that the first participant and the second participant can generate a signature public key based on their corresponding sub-private keys and the other party's sub-public key.

[0060] For example, in an optional embodiment, the first party generates a first sub-private key and a first sub-public key for signing, and the second party generates a second sub-private key and a second sub-public key for signing. The first party can generate a signature public key based on the first sub-private key and the second sub-public key. The second party can generate a signature public key based on the second sub-private key and the first sub-public key.

[0061] In addition, in the embodiment of the present invention, in order to improve the security, anonymity and linkability of the generated pre-signature, the two parties can optionally combine the SM2 algorithm and the ring signature algorithm to generate the pre-signature. Among them, the ring signature algorithm can not determine which of the ring members is the real signer as long as it signs the message using the ring public key corresponding to the ring member cluster.

[0062] In the embodiment of the present invention, multiple users can be arbitrarily selected together with the first participant and the second participant to form a ring member cluster, and the first participant and the second participant can be used as a ring member in the ring member cluster, and the signature public key jointly generated by the first participant and the second participant can be used as a public key corresponding to a ring member in the ring public key.

[0063] Then in actual application, after the first participant and the second participant generate the signature public key, the ring public key corresponding to the ring member set can be determined according to the signature public key, and the ring public key includes the public keys corresponding to each ring member in the ring member cluster. Among them, n-1 users can be selected as ring members, and these n-1 users and the first participant and the second participant form a ring member cluster including n ring members, that is, the ring public key includes n public keys.

[0064] Then, in the pre-signature generation stage, the first participant determines the first vector corresponding to the first participant according to the ring public key, the first sub-private key and the difficult relationship instance, the difficult relationship instance is used to describe the discrete logarithm problem, and the difficult relationship instance includes the difficult relationship evidence. Among them, the difficult relationship instance can be provided by the adapter or the system administrator. Similarly, the second participant can generate the second vector corresponding to the second participant according to the ring public key, the second sub-private key and the difficult relationship instance. Among them, the first vector mainly includes the signature secret share generated by the first participant, and the first sub-private key of the first participant is hidden in the signature secret share. Then, without leaking the sub-private key of the first participant, the second participant can generate the partial pre-signature (second pre-signature) corresponding to the second participant based on the signature secret share corresponding to the first participant. The second vector mainly includes the signature secret share generated by the second participant, and the first sub-private key of the second participant is hidden in the signature secret share. Then, without leaking the sub-private key of the second participant, the first participant can generate the partial pre-signature (first pre-signature) corresponding to the second participant based on the signature secret share corresponding to the second participant.

[0065] Specifically, after the first participant receives the second vector sent by the second participant, the first participant verifies the second vector. If the verification is successful, a first pre-signature is generated according to the second vector and the information to be signed. After the second participant receives the first vector sent by the first participant, the first participant verifies the first vector. If the verification is successful, a second pre-signature is generated according to the first vector and the information to be signed.

[0066] After the first participant generates the first pre-signature corresponding to the first participant, the first pre-signature is sent to the adapter. Similarly, after the second participant generates the second pre-signature corresponding to the second participant, the second pre-signature is sent to the adapter. Finally, the adapter generates the target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature.

[0067] The first presignature and the second presignature are partial presignatures generated by two parties respectively. In an optional embodiment, after the adapter receives the first presignature and the second presignature, it can first combine the first presignature and the second presignature to obtain a complete adapter presignature, and then use the difficult relationship evidence to convert the adapter presignature into a target signature.

[0068] In order to ensure the correctness of the target signature, after obtaining the adapter pre-signature, the adapter signature can be verified first. After the verification is passed, the adapter signature can be adapted to generate the target signature. In addition, in practical applications, users who have the target signature, adapter signature, and difficult relationship status at the same time can extract difficult relationship evidence, ensuring the security and reliability of the signing process.

[0069] In an embodiment of the present invention, a first pre-signature corresponding to the first participant and a second pre-signature corresponding to the second participant are used to collaboratively generate an adapter pre-signature, so that the adapter can directly convert the pre-signature collaboratively generated by the two parties into a complete target signature based on the difficult relationship evidence. In this way, even in a blockchain environment, without trusted third-party supervision, it is only necessary to verify the correctness of the target signature to ensure that the two parties have completed the signature in accordance with the agreed conditions, thereby ensuring the integrity and non-tamperability of the transaction, and improving work efficiency.

[0070] In order to facilitate understanding of the interactive process of the first participant and the second participant cooperating to generate the pre-signature and the adapter performing the adaptation operation to generate the complete target signature, Figure 2 The adapter signature generation interaction process is illustrated in an exemplary manner.

[0071] Figure 2 An interactive flow chart of an adapter signature generation method provided by an embodiment of the present invention, such as Figure 2 As shown, the following steps may be included:

[0072] 201. The first party generates a first sub-private key and a first sub-public key for signing.

[0073] 202. The first party sends the first sub-public key to the second party.

[0074] 203. The second party verifies the first sub-public key. If the verification is successful, a second sub-private key and a second sub-public key for signing are generated.

[0075] 204. The second party sends the second sub-public key to the first party.

[0076] 205. The first party generates a signature public key according to the first private key and the second sub-public key, determines a ring public key corresponding to the ring member cluster according to the signature public key, and determines a first vector corresponding to the first party according to the ring public key, the first sub-private key and the difficult relationship instance.

[0077] 206. The first participant sends the first vector to the second participant.

[0078] 207. The second participant determines a second vector corresponding to the second participant according to the ring public key, the second child private key, and the difficult relationship instance.

[0079] 208. The second participant verifies the first vector, and if the verification is successful, sends the second vector to the first participant.

[0080] 209. The second party generates a second pre-signature according to the first vector and the information to be signed.

[0081] 2010. The second party sends the second pre-signature to the adapter.

[0082] 2011. The first party generates a first pre-signature according to the second vector and the information to be signed.

[0083] 2012. The first party sends the first pre-signature to the adapter.

[0084] 2013. The adapter obtains the target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature.

[0085] The adapter signature generation method provided in this embodiment can be implemented by a ring signature algorithm. This embodiment takes the SM2 linkable ring signature algorithm as an example to illustrate the adapter signature generation method of this embodiment, but is not limited thereto.

[0086] In specific implementation, the system administrator may first run the system initialization algorithm to generate system parameters. For example, a security parameter λ is selected and input into the system initialization algorithm using the security parameter λ as input to output the system parameters. .in, is a large prime number finite field of ; yes The elliptic curve on yes The order of the midpoint is The additive cyclic group of The base point is ; and are two secure hash functions; It's a group The difficult relationship between , Difficult relationship status, Evidence of Difficult Relationship. After obtaining the system parameters, these parameters can be distributed to the first party and the second party, the adapter.

[0087] Next, the first and second parties may generate a signature key before cooperating to generate the adapter pre-signature. In order to ensure that the two parties do not leak their respective corresponding sub-private keys when cooperating to generate the signature public key, the signature key may be generated based on the sub-public key that hides the sub-private key.

[0088] Specifically, the first party generates a first child private key and a first child public key for signing. Optionally, the first party selects a random number as the first child private key, and generates the first child public key based on the first child private key and the elliptic curve base point. For example, assuming that the first child private key is , , the base point of the elliptic curve is , the first sub-public key generated is The first sub-public key is sent to the second participant. In order to ensure the correctness of the generated signature public key and the pre-signature, the second participant can verify the first sub-public key after receiving it. If the verification is successful, a second sub-private key and a second sub-public key for signing are generated, and the second sub-public key is sent to the first participant.

[0089] The second party can randomly select a random number as the second child private key, and generate the second child public key based on the second child private key and the elliptic curve base point. ,and . And use it as the second child private key, the elliptic curve base point is , the generated second sub-public key is .

[0090] It should be noted that: the implementation process of the second party generating the second sub-private key and the second sub-public key here can be to generate the corresponding second sub-private key and the second sub-public key after verifying the first sub-public key, or to generate the second sub-public key and the second sub-public key for signing before verifying the first sub-public key, and store the first sub-public key and the second sub-private key in a preset area. When it is necessary to collaboratively generate a signature public key with the first party, the second sub-private key and the second sub-public key can be obtained from the preset area. There is no specific limitation on this, and it can be set according to actual usage.

[0091] In the embodiment of the present invention, optionally, the zero-knowledge proof technology can also be used to verify the first sub-public key and the second sub-public key. Then, in practical applications, after the first participant generates the first sub-public key, the zero-knowledge proof corresponding to the first sub-public key can also be generated to prove to the second participant that the first sub-public key is generated by the first sub-private key. Similarly, after the second participant generates the second sub-public key, the zero-knowledge proof corresponding to the second sub-public key can also be generated to prove to the first participant that the second sub-public key is generated by the second sub-private key.

[0092] Specifically, in an optional embodiment, the first zero-knowledge proof of the first sub-public key can be generated by using zero-knowledge proof technology. ,Right now .in, is a zero-knowledge proof algorithm. Similarly, using zero-knowledge proof technology, a second zero-knowledge proof of the second child public key is generated ,Right now .

[0093] Following the above example, when the first participant sends the first sub-public key to the second participant, the first zero-knowledge proof can also be sent to the second participant, so that the second participant can verify the first sub-public key based on the first zero-knowledge proof. Similarly, when the second participant sends the second sub-public key to the first participant, the second zero-knowledge proof can also be sent to the first participant, so that the first participant can verify the second sub-public key based on the second zero-knowledge proof. The first zero-knowledge proof and the second zero-knowledge proof can be verified by calling the zero-knowledge verification algorithm.

[0094] For example, in an optional embodiment, after the second party receives the first sub-public key and the first zero-knowledge proof sent by the first party, the second party calls the zero-knowledge proof algorithm. , the verification fails and the subsequent operations are terminated; if , it indicates that the verification is successful, and the subsequent operations are continued to generate the second child private key and the second child public key. Similarly, after the first participant receives the second child public key and the second zero-knowledge proof sent by the second participant, it calls the zero-knowledge proof algorithm. , the verification fails and the subsequent operations are terminated; if , it indicates that the verification is successful, and the subsequent operations are continued to generate a signature public key based on the second sub-public key.

[0095] After the first participant verifies the second sub-public key, a signature public key can be generated according to the first sub-private key and the second sub-public key. In an optional embodiment, the specific implementation method of generating the signature public key according to the first private key and the second sub-public key can be: verifying the second sub-public key, if the verification is successful, obtaining the first product value of the first sub-private key and the second sub-public key; determining the first difference between the first product value and the base point of the elliptic curve; and determining the first difference as the signature public key.

[0096] Continuing with the above example, the first child private key is , the second child public key is , the base point of the elliptic curve is First, the first product of the first child private key and the second child public key is obtained as Then, determine the first difference between the first product value and the elliptic curve base point as , and determine the first difference as the signature public key ,Right now .because , then the signature public key .

[0097] The second party may also generate a signature public key based on the second child private key and the first child public key. Specifically, in an optional embodiment, the product value of the second child private key and the first child public key is obtained; the difference between the product value and the elliptic curve base point is determined, and the difference is determined as the signature public key. For example, following the above example, the second child private key is , the first child public key is , the base point of the elliptic curve is First, get the product of the second child private key and the first child public key. Then, determine the difference between the product value and the elliptic curve base point as , and determine the difference as the signature public key ,Right now .because , then the signature public key .

[0098] It can be seen from the above description that the first participant and the second participant can both generate the same signature public key. When subsequently generating a pre-signature, the corresponding pre-signature is directly generated based on the signature public key generated by each party. In addition, the second participant can also obtain the signature public key by receiving the signature public key sent by the first participant, and there is no limitation on this.

[0099] In addition, in order to ensure that the generated pre-signature is anonymous and unforgeable, the pre-signature can be constructed based on the SM2 linkable ring signature algorithm. Then, before the first party and the second party jointly generate the pre-signature, the ring public key can be determined first.

[0100] Specifically, the first participant can determine the ring public key corresponding to the ring member cluster based on the signature public key. In specific implementation, the public key and signature public key of n-1 users can be arbitrarily selected. , forming a ring public key It should be noted that the process of determining the ring public key may also be performed by the second participant or the adapter, and this is not limited. After the ring public key is determined, the ring public key may be made public.

[0101] In addition, the adapter can provide the first party and the second party with difficult relationship examples. and The third party can provide the first party and the second party with ,in , The private key and public key corresponding to any user in the ring cluster except the first participant and the second participant The first party and the second party utilize a difficult relationship state in a difficult relationship instance , ring public key and , generate the information to be signed Pre-signed.

[0102] Specifically, in the process of generating the adapter pre-signature, the first participant may first determine the first vector corresponding to the first participant according to the ring public key, the first child private key, and the difficult relationship instance. The second participant may first determine the second vector corresponding to the second participant according to the ring public key, the second child private key, and the difficult relationship instance.

[0103] In an optional embodiment, the specific implementation process of the first party determining the first vector corresponding to the first party based on the ring public key, the first sub-private key and the difficult relationship instance may include: performing a hash operation on the ring public key to obtain a first hash value corresponding to the ring public key; generating n-1 first random numbers and a second random number; determining a first elliptic curve point based on the second random number and the elliptic curve base point; determining a second elliptic curve point based on the second random number and the first hash value; determining the first vector corresponding to the first party based on the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first sub-private key and the difficult relationship instance.

[0104] In an optional embodiment, the specific implementation process of the second party determining the second vector corresponding to the second party based on the ring public key, the second sub-private key and the difficult relationship instance may include: performing a hash operation on the ring public key to obtain a first hash value corresponding to the ring public key; generating a fifth random number; determining a third elliptic curve point based on the fifth random number and the elliptic curve base point; determining a fourth elliptic curve point based on the fifth random number and the first hash value; determining a fifth elliptic curve point based on the second sub-private key and the elliptic curve base point; determining the second vector corresponding to the second party based on the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the second sub-private key and the difficult relationship instance.

[0105] Next, the first participant sends the first vector to the second participant. After receiving the first vector, the second participant verifies the first vector, and if the verification is successful, sends the second vector to the first participant. In addition, the second participant can generate a second pre-signature based on the first vector and the information to be signed, and send the second pre-signature to the adapter. After receiving the second vector, the first participant generates a first pre-signature based on the second vector and the information to be signed, and sends the first pre-signature to the adapter.

[0106] In order to facilitate the second participant to verify the first vector, in an optional embodiment, after generating the first vector, the method may further include: generating a commitment value and release commitment information corresponding to the first vector. For example, calling the commitment technology to generate the commitment value and release commitment information of the first vector ,in, is the first vector commitment value, is the release commitment information corresponding to the first vector, Wherein, in order to ensure that the commitment value will not change after receiving the information of the second participant, when the second participant receives the first vector paramA, it can verify that the original value has not changed, mainly to detect malicious behavior of the first participant.

[0107] In a specific implementation, after the first participant generates the commitment value corresponding to the first vector, the first participant may first send the commitment value corresponding to the first vector to the second participant. After receiving the commitment value corresponding to the second vector sent by the second participant, the first vector and the release commitment information corresponding to the first vector are sent to the second participant. Then, the second participant verifies the commitment value corresponding to the first vector based on the release commitment information. If the verification is successful, the second pre-signature is generated according to the first vector, the second sub-private key and the information to be signed. The first participant generates the first pre-signature according to the second vector, the first sub-private key and the information to be signed.

[0108] The first pre-signature is generated by the first party through interaction with the second party to obtain the second vector of the second party. In order to avoid tampering with the second vector during transmission or by the second party to affect the correctness of the first pre-signature finally generated, in an optional embodiment, after receiving the second vector, the first party may verify the second vector first, and after the verification is passed, generate the first pre-signature according to the second vector and the information to be signed.

[0109] Similarly, in order for the first participant to verify the second vector, the second participant can simultaneously generate a commitment value and a release commitment message corresponding to the second vector after generating the second vector, and first send the commitment value corresponding to the second vector to the first participant. When the first participant successfully verifies the commitment value, the release commitment message and the second vector are sent to the first participant. After receiving the release commitment message and the second vector, the first participant calls the commitment verification algorithm to verify the commitment value corresponding to the second vector. After the verification is passed, the first pre-signature is generated according to the second vector, the first sub-private key, and the information to be signed.

[0110] The adapter receives the first pre-signature sent by the first participant and the second pre-signature sent by the second participant, and generates a target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature. Since the first pre-signature and the second pre-signature are both partial pre-signatures, after receiving the first pre-signature and the second pre-signature, the adapter can first combine the first pre-signature and the second pre-signature to generate a complete adapter signature, and then use the difficult relationship evidence to convert the adapter signature into a target signature. Among them, the target signature is the complete signature in the adapter signature.

[0111] For example, in an optional embodiment, assuming that the first pre-signature is , the second pre-signature is , the evidence of difficult relationship is . Then the combined adapter signature is Using the difficult relation evidence, the target signature is obtained after conversion: .

[0112] In the embodiment of the present invention, during the key generation phase, two parties holding their own sub-keys jointly generate a complete signature public key, and both parties can obtain the complete signature public key without leaking their own keys. During the pre-signature generation phase, the two parties use their own sub-private keys to collaboratively generate a pre-signature about the information to be signed, so that the adapter can directly convert the pre-signature collaboratively generated by the two parties into a complete target signature based on the difficult relationship evidence. In this way, even in a blockchain environment, without trusted third-party supervision, it is only necessary to verify the correctness of the target signature to ensure that the two parties have completed the signature in accordance with the agreed conditions, thereby ensuring the integrity and non-tamperability of the transaction, and improving work efficiency.

[0113] The above embodiment introduces an implementation process in which the first participant determines the first vector corresponding to the first participant according to the ring public key, the first sub-private key and the difficult relationship instance, and the second participant determines the second vector corresponding to the second participant according to the ring public key, the second sub-private key and the difficult relationship instance. In order to facilitate understanding of the specific implementation process of determining the first vector and the second vector, the specific implementation process of determining the first vector and the specific implementation process of determining the second vector are exemplarily described in combination with the following embodiments.

[0114] Figure 3 A schematic diagram of a process for determining a first vector corresponding to a first participant provided by an embodiment of the present invention; Figure 3 As shown, the method provides a specific implementation method for determining the first vector corresponding to the first participant according to the ring public key, the first sub-private key and the difficult relationship instance, which may include the following steps:

[0115] 301. Perform a hash operation on the ring public key to obtain a first hash value corresponding to the ring public key.

[0116] 302. Generate n-1 first random numbers and second random numbers.

[0117] 303. Determine a first elliptic curve point according to the second random number and the elliptic curve base point.

[0118] 304. Determine a second elliptic curve point according to the second random number and the first Hash value.

[0119] 305. Determine a first vector corresponding to the first party according to n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first sub-private key, and the difficult relationship instance.

[0120] When generating the first vector, the ring public key may be hashed to obtain a first hash value corresponding to the ring public key. Then, n-1 first random numbers and second random numbers are generated. For example, a secure hash function is used. , hash the ring public key and get the first hash value ,Right now The first n-1 random numbers generated are , the second random number .

[0121] Next, the first elliptic curve point is determined according to the second random number and the elliptic curve base point. In an optional embodiment, the specific implementation process of determining the first elliptic curve point according to the second random number and the elliptic curve base point can be: determining the second product value of the second random number and the elliptic curve base point as the first elliptic curve point; and determining the third product value of the second random number and the first hash value as the second elliptic curve point.

[0122] Following the above example, the second random number is , the base point of the elliptic curve is , the first hash value is The second product value of the second random number and the elliptic curve base point is , the second product value is determined as the first elliptic curve point ,Right now The third product value of the second random number and the first hash value is , the third product value is determined as the second elliptic curve point ,Right now .

[0123] Finally, the first vector corresponding to the first participant is determined according to the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first sub-private key, and the difficult relationship instance. In an optional embodiment, the specific implementation method of determining the first vector corresponding to the first participant according to the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first sub-private key, and the difficult relationship instance can be: determining the first signature secret share according to the first sub-private key and the first hash value; generating a third random number, and determining the second signature secret share according to the third random number and the elliptic curve base point; determining the third signature secret share according to the third random number and the first signature secret share; determining the fourth signature secret share according to the difficult relationship evidence in the difficult relationship instance, the first hash value, and the first sub-private key; determining the first vector corresponding to the first participant according to the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first signature secret share, the second signature secret share, the third signature secret share, and the fourth signature secret share.

[0124] In an optional embodiment, the specific implementation method of determining the first signature secret share according to the first child private key and the first hash value is: obtaining the product value of the first child private key and the first hash value, and determining the product value as the first signature secret share. For example, in an optional embodiment, assuming that the first child private key is , the first hash value is The product of the first child private key and the first hash value is , and determine the product value as the first signature secret share ,Right now .

[0125] Among them, in an optional embodiment, the specific implementation process of determining the second signature secret share according to the third random number and the elliptic curve base point can be: obtaining the sum of the public key corresponding to the third party in the ring cluster and the elliptic curve base point, and determining the product value of the sum and the third random number, and finally determining the product value as the second signature secret share. For example, the generated third random number is , the base point of the elliptic curve is , the public key corresponding to the third party in the ring cluster except the first and second participants . Get the sum of the public key and elliptic curve base point corresponding to the third party in the ring cluster as , determine the product of the sum and the third random number to be , and the product value is determined as the second signature secret share ,Right now .

[0126] In an optional embodiment, the specific implementation method of determining the third signature secret share according to the third random number and the first signature secret share may be: obtaining the product value of the third random number and the first signature secret share, and determining the product value as the third signature secret share. For example, the product value of the third random number and the first signature secret share is , and the product value is determined as the third signature secret share ,Right now .

[0127] In an optional embodiment, according to the difficult relationship evidence, the first hash value, and the first child private key in the difficult relationship instance, the specific implementation method of determining the fourth signature secret share may be: obtaining the product value of the difficult relationship evidence and the first hash value, and determining the target product value of the product value and the first child private key, and determining the target product value as the fourth signature secret share. For example, the product value of the obtained difficult relationship evidence and the first hash value is , determine the target product value of this product value and the first sub-private key is , the target product value is determined as the fourth signature secret share ,Right now .

[0128] In addition, in order to ensure the correctness of the first signature secret share, the second signature secret share, the third signature secret share, and the fourth signature secret share in practical applications, zero-knowledge proofs of the first signature secret share, the second signature secret share, the third signature secret share, and the fourth signature secret share can also be generated at the same time. For example, the generated zero-knowledge proof is and At the same time, the generated zero-knowledge proof can also be sent to the second participant as the first vector, so that the second participant can verify the correctness of the first signature secret share, the second signature secret share, the third signature secret share, and the fourth signature secret share, and then generate a second pre-signature based on the first vector.

[0129] Then in an optional embodiment, the first vector may include n-1 first random numbers, a first elliptic curve point, a second elliptic curve point, a first signature secret share, a second signature secret share, a third signature secret share, a fourth signature secret share, and zero-knowledge proofs of the first signature secret share, the second signature secret share, the third signature secret share, and the fourth signature secret share. For example, the first vector is .

[0130] In an embodiment of the present invention, a first hash value corresponding to the ring public key is obtained by performing a hash operation on the ring public key, n-1 first random numbers and second random numbers are generated, a first elliptic curve point is determined according to the second random number and the elliptic curve base point, a second elliptic curve point is determined according to the second random number and the first hash value, and a first vector corresponding to the first participant is determined according to the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first sub-private key, and the difficult relationship instance. In this way, information such as the first sub-private key and the difficult relationship instance of the first participant can be hidden in the first vector, so that the second participant can generate a second pre-signature based on the information in the first vector without leaking the privacy information of the first participant, thereby improving the security of pre-signature generation.

[0131] Figure 4 A schematic diagram of a process for determining a first vector corresponding to a second participant provided by an embodiment of the present invention; Figure 4 As shown, the method provides a specific implementation method for determining the second vector corresponding to the second participant according to the ring public key, the second sub-private key and the difficult relationship instance, which may include the following steps:

[0132] 401. Perform a hash operation on the ring public key to obtain a first hash value corresponding to the ring public key.

[0133] 402. Generate a fifth random number.

[0134] 403. Determine a third elliptic curve point according to the fifth random number and the elliptic curve base point.

[0135] 404. Determine a fourth elliptic curve point according to the fifth random number and the first Hash value.

[0136] 405. Determine a fifth elliptic curve point according to the second sub-private key and the elliptic curve base point.

[0137] 406. Determine a second vector corresponding to the second party according to the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the second child private key, and the difficult relationship instance.

[0138] When generating the second vector, the ring public key may be hashed to obtain the first hash value corresponding to the ring public key. It should be noted that when the second party performs the hash operation on the ring public key, the same hash function as the first party uses to perform the hash operation on the ring public key is used, so that the first party and the second party obtain the same hash value. For example, the first hash value obtained is .

[0139] Next, a fifth random number is generated, and a third elliptic curve point is determined based on the fifth random number and the elliptic curve base point. In an optional embodiment, a specific implementation method for determining the third elliptic curve point based on the fifth random number and the elliptic curve base point may be: a fourth product value of the fifth random number and the elliptic curve base point is determined as the third elliptic curve point. For example, the generated fifth random number is , the fourth product value of the fifth random number and the elliptic curve base point is , the fourth product value is determined as the third elliptic curve point ,Right now .

[0140] Then, according to the fifth random number and the first Hash value, a fourth elliptic curve point is determined. In an optional embodiment, according to the fifth random number and the first Hash value, a specific implementation method for determining the fourth elliptic curve point may be: determining the fifth product value of the fifth random number and the first Hash value as the fourth elliptic curve point. For example, the fourth elliptic curve point determined is for .

[0141] Next, the fifth elliptic curve point is determined according to the second sub-private key and the elliptic curve base point. In an optional embodiment, the specific implementation method of determining the fifth elliptic curve point according to the second sub-private key and the elliptic curve base point can be: the product value of the second sub-private key and the elliptic curve base point is determined as the fifth elliptic curve point. For example, the determined fifth elliptic curve point is .

[0142] Finally, the second vector corresponding to the second party is determined according to the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the second child private key, and the difficult relationship instance. In an optional embodiment, the fifth signature secret share can be determined according to the second child private key and the first hash value; the sixth signature secret share can be determined according to the second child private key, the first hash value, and the difficult relationship evidence in the difficult relationship instance; the seventh signature secret share can be determined according to the fourth random number and the elliptic curve base point; the eighth signature secret share can be determined according to the fourth random number and the fifth signature secret share; the second vector corresponding to the second party is determined according to the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the fifth signature secret share, the sixth signature secret share, the seventh signature secret share, and the eighth signature secret share.

[0143] In an optional embodiment, the specific implementation method of determining the fifth signature secret share according to the second sub-private key and the first hash value may be: determining the product value of the second sub-private key and the first hash value as the fifth signature secret share. for .

[0144] Among them, in an optional embodiment, according to the second child private key, the first hash value and the difficult relationship evidence in the difficult relationship instance, the specific implementation method of determining the sixth signature secret share can be: obtaining the product value of the difficult relationship evidence and the first hash value, and determining the product value of the product value and the second child private key as the sixth signature secret share. For example, the determined sixth signature secret share is .in, .

[0145] Among them, in an optional embodiment, the specific implementation method of determining the seventh signature secret share according to the fourth random number and the elliptic curve base point can be: obtaining the sum of the difficult relationship evidence and the public key corresponding to the third party, determining the product value of the sum and the second child private key, and determining the product value as the seventh signature secret share. For example, the determined seventh signature secret share is .

[0146] In an optional embodiment, the specific implementation method of determining the eighth signature secret share according to the fourth random number and the fifth signature secret share may be: determining the product value of the fourth random number and the fifth signature secret share as the eighth signature secret share. For example, the generated fourth random number is , the determined eighth signature secret share is .

[0147] In order to ensure the correctness of the fifth, sixth, seventh and eighth signature secret shares during the transmission process, after the fifth, sixth, seventh and eighth signature secret shares are determined, zero-knowledge proofs of the fifth, sixth, seventh and eighth signature secret shares are generated. For example, the generated zero-knowledge proof is and .

[0148] Then, the second vector corresponding to the second participant can be determined based on the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the fifth signature secret share, the sixth signature secret share, the seventh signature secret share, the eighth signature secret share, and the zero-knowledge proof of the fifth signature secret share, the sixth signature secret share, the seventh signature secret share, and the eighth signature secret share. For example, the second vector corresponding to the second participant is .

[0149] In an embodiment of the present invention, a first hash value corresponding to the ring public key is obtained by performing a hash operation on the ring public key, a fifth random number is generated, a third elliptic curve point is determined according to the fifth random number and the elliptic curve base point, a fourth elliptic curve point is determined according to the fifth random number and the first hash value, a fifth elliptic curve point is determined according to the second sub-private key and the elliptic curve base point, and a second vector corresponding to the second participant is determined according to the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the second sub-private key, and the difficult relationship instance. In this way, the second sub-private key, the difficult relationship instance, and other information of the second participant can be hidden in the second vector, so that the first participant can generate a first pre-signature based on the information in the second vector without leaking the privacy information of the second participant, thereby improving the security of pre-signature generation.

[0150] The above embodiment introduces the implementation process in which the first party generates the first pre-signature according to the second vector and the information to be signed, and the second party generates the second pre-signature according to the first vector and the information to be signed. In order to facilitate understanding of the specific implementation process of generating the first pre-signature and the second pre-signature, the specific implementation process of generating the first pre-signature and the specific implementation process of generating the second pre-signature are exemplarily described in combination with the following embodiments.

[0151] Figure 5 A schematic diagram of a process for generating a first pre-signature provided by an embodiment of the present invention; Figure 5As shown, the method provides a specific implementation manner of generating a first pre-signature according to a second vector and information to be signed, wherein the first vector includes n-1 first random numbers, a first elliptic curve point, a second elliptic curve point, a first signature secret share, a second signature secret share, a third signature secret share, and a fourth signature secret share, and the second vector includes a third elliptic curve point, a fourth elliptic curve point, a fifth elliptic curve point, a fifth signature secret share, and a sixth signature secret share, and may include the following steps:

[0152] 501. Determine a first signature component according to the first sub-private key, the fifth signature secret share, and the first hash value.

[0153] 502. Determine a second signature component according to the third elliptic curve point, the second random number, and the fifth elliptic curve point.

[0154] 503. Determine a third signature component according to the fourth elliptic curve point, the second random number, and the fifth signature secret share.

[0155] 504. Determine a fourth signature component according to the first sub-private key and the sixth signature secret share.

[0156] 505. Generate a first pre-signature according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, n-1 first random numbers, and the third random number.

[0157] When generating the first pre-signature, the first signature component may be determined according to the first sub-private key, the fifth signature secret share and the first hash value. Optionally, the specific implementation process of determining the first signature component according to the first sub-private key, the fifth signature secret share and the first hash value may be: obtaining the product value of the first sub-private key and the fifth signature secret share, determining the difference between the product value and the first hash value, and determining the difference as the first signature component. For example, following the above example, the determined first signature component is .

[0158] Next, the second signature component is determined according to the third elliptic curve point, the second random number and the fifth elliptic curve point. Optionally, the specific implementation process of determining the second signature component according to the third elliptic curve point, the second random number and the fifth elliptic curve point may be: determining the product value of the second random number and the fifth elliptic curve point, obtaining the sum of the product value and the third elliptic curve point, and determining the sum as the second signature component. Continuing with the above example, the determined second signature component is .

[0159] Next, the third signature component is determined according to the fourth elliptic curve point, the second random number and the fifth signature secret share. Optionally, the specific implementation process of determining the third signature component according to the fourth elliptic curve point, the second random number and the fifth signature secret share may be: determining the product value of the second random number and the fifth signature secret share, determining the sum of the product value and the fourth elliptic curve point, and determining the sum as the third signature component. Continuing with the above example, the determined third signature component is .

[0160] Next, the fourth signature component is determined according to the first sub-private key and the sixth signature secret share. Optionally, the specific implementation process of determining the fourth signature component according to the first sub-private key and the sixth signature secret share may be: the product value of the first sub-private key and the sixth signature secret share is determined as the fourth signature component. Continuing with the above example, the fourth signature component determined is .

[0161] Then, a first pre-signature is generated according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, n-1 first random numbers and the third random number. Optionally, a hash operation is performed on the ring public key, the first signature component, the second signature component, the third signature component and the information to be signed to obtain a second hash value corresponding to the information to be signed; a first signature value corresponding to the first participant is generated according to the first signature component, the fourth signature component, the second hash value, n-1 first random numbers and the third random number; and the first signature value is determined as the first pre-signature.

[0162] For example, in an optional embodiment, the second hash value determined is .when season , and .for , perform the following calculations in sequence:

[0163] , Next, the first party generates a homomorphic key pair , and the corresponding zero-knowledge proof of the homomorphic key pair The homomorphic public key and the zero-knowledge proof are sent to the second participant, so that the second participant performs homomorphic encryption on the fifth random number and the second hash value based on the homomorphic public key to obtain the first encrypted ciphertext. For example, the generated first encrypted ciphertext is The second participant uses the same calculation method as the first participant. , among which, when season The first party receives the first encrypted ciphertext and calculates the first encrypted ciphertext to obtain the second encrypted ciphertext , and use the homomorphic private key to decrypt the second encrypted ciphertext to obtain Next, calculate ,in, = , and the plaintext obtained after decryption Finally, the first signature value corresponding to the first participant is generated based on the first signature component, the fourth signature component, the second hash value, n-1 first random numbers, the third random number and the plaintext. and determines the first signature value as the first pre-signature.

[0164] Figure 6 A schematic diagram of a process for generating a second pre-signature provided by an embodiment of the present invention; Figure 6 As shown, the method provides a specific implementation of generating a second pre-signature according to a first vector and information to be signed, wherein the first vector includes n-1 first random numbers, a first elliptic curve point, a second elliptic curve point, a first signature secret share, and a fourth signature secret share, and may include the following steps:

[0165] 601. Determine a first signature component according to a first sub-private key, a first signature secret share, and a first hash value.

[0166] 602. Determine a second signature component according to the first elliptic curve point, the second sub-private key, and the third elliptic curve point.

[0167] 603. Determine a third signature component according to the fourth elliptic curve point, the second sub-private key, and the second elliptic curve point.

[0168] 604. Determine a fourth signature component according to the second sub-private key and the fourth signature secret share.

[0169] 605. Generate a second pre-signature according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, n-1 first random numbers, and the fourth random number.

[0170] When generating the second pre-signature, the first signature component is first determined according to the first sub-private key, the first signature secret share and the first hash value. It should be noted that the first signature component here is the same value as the first signature component generated by the first participant in the above embodiment. Similarly, the second signature component, the third signature component and the fourth signature component are all the same value as the second signature component, the third signature component and the fourth signature component of the first participant.

[0171] Optionally, according to the first sub-private key, the first signature secret share and the first hash value, the specific implementation method of determining the first signature component may be: obtaining the product value of the first sub-private key and the first signature secret share, determining the difference between the product value and the first hash value, and determining the difference as the first signature component. For example, continuing the above example, the determined first signature component is .

[0172] Next, the second signature component is determined according to the first elliptic curve point, the second sub-private key and the third elliptic curve point. Optionally, the specific implementation process of determining the second signature component according to the first elliptic curve point, the second sub-private key and the third elliptic curve point can be: determining the product value of the second sub-private key and the first elliptic curve point, obtaining the sum of the product value and the third elliptic curve point, and determining the sum as the second signature component. Continuing with the above example, the determined second signature component is .

[0173] Next, the third signature component is determined according to the fourth elliptic curve point, the second child private key and the second elliptic curve point. Optionally, the specific implementation process of determining the third signature component according to the fourth elliptic curve point, the second child private key and the second elliptic curve point can be: determining the product value of the second child private key and the second elliptic curve point, determining the sum of the product value and the fourth elliptic curve point, and determining the sum as the third signature component. Continuing with the above example, the determined third signature component is .

[0174] Next, the fourth signature component is determined according to the second child private key and the fourth signature secret share. Optionally, the specific implementation process of determining the fourth signature component according to the second child private key and the fourth signature secret share may be: the product value of the second child private key and the fourth signature secret share is determined as the fourth signature component. Continuing with the above example, the fourth signature component determined is .

[0175] Then, a second pre-signature is generated according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, n-1 first random numbers and the fourth random number. Optionally, a hash operation is performed on the ring public key, the first signature component, the second signature component, the third signature component and the information to be signed to obtain a second hash value corresponding to the information to be signed; a second signature value corresponding to the second participant is generated according to the first signature component, the fourth signature component, the second hash value, n-1 first random numbers and the fourth random number; and the second signature value is determined as the second pre-signature.

[0176] For example, in an optional embodiment, the second participant calculates the same calculation method as the first participant. , among which, when season . Select , using the homomorphic public key to calculate the first encrypted ciphertext The first encrypted ciphertext is sent to the first participant so that the first participant calculates the first encrypted ciphertext to obtain the second encrypted ciphertext , and use the homomorphic private key to decrypt the second encrypted ciphertext to obtain Next, calculate ,in, = , and the plaintext obtained after decryption The second party generates a second signature value based on the first signature component, the fourth signature component, the second hash value, n-1 first random numbers, the fourth random number, and the plaintext. and determines the second signature value as the second pre-signature.

[0177] In order to facilitate the understanding of the above implementation process, we will explain it in combination with a specific application scenario. In specific application, it is assumed that users Alice and Bob want to jointly generate a pre-signature. The specific implementation process may include the following steps:

[0178] Step 1: Initialize the system to generate system parameters.

[0179] Specifically, the system initialization algorithm is used to generate system parameters. is the input and output system parameters .in is a large prime number finite field of ; yes The elliptic curve on yes The order of the midpoint is The additive cyclic group of The base point is ; and are two secure hash functions; It's a group The difficult relationship between . Difficult relationship status, Evidence of difficult relationships.

[0180] Step 2: Generate a signing key.

[0181] Specifically, n-1 users Random Selection As the private key, let the public key be , to generate n-1 public keys. Among them, the first user uses Calculated , and generate a zero-knowledge proof , then make it public and . Assuming the use of Public Key Signed by the private key and Alice and Bob generate interactively.

[0182] First, Alice generates a random number ,calculate And generate a zero-knowledge proof . Then generate the Paillier homomorphic encryption public and private key pair Zero-knowledge proof of Finally, send To Bob. Bob receives the Then call the zero-knowledge proof verification algorithm. If or , then terminate; otherwise, calculate the signature public key. First generate a random number ,calculate And generate a zero-knowledge proof Then calculate Finally, send and To Alice. Alice uses the zero-knowledge proof verification algorithm to verify Calculate after validity .

[0183] Step 3: Generate the first pre-signature and the second pre-signature.

[0184] Specifically, first based on the selected The user's public key and Together they form a ring public key There are three users who jointly participate in the calculation of the pre-signature, among which Alice provides and 、Bob provided and and a third party provides and Alice and Bob take advantage of difficult relationship status , ring public key and Generate the message by following the steps below Pre-signed.

[0185] First, Alice calculates the first hash value corresponding to the ring public key , and order . Pick a random number ,produce and random numbers .calculate , , Signature Secret Share , , and And generate zero-knowledge proof and ,make , calculate the commitment value and release of commitment information .

[0186] At the same time, Bob can calculate the first hash value corresponding to the ring public key , and order . Pick a random number , generate random numbers ;calculate , , , Signature Secret Share , , and And generate zero-knowledge proof and .make , calculate commitment value and release commitment information ;

[0187] Next, Alice sends To Bob. Bob sends To Alice, after receiving the commitment value sent by Bob, Sent to Bob. Bob receives the After calling the commitment verification algorithm, if , then terminate; otherwise, continue to call the zero-knowledge proof verification algorithm. or , then terminate; otherwise, continue to send To Alice. Bob calculates the signature tag , , and .

[0188] Alice receives a message from Bob. After calling the commitment verification algorithm, if , then terminate; otherwise, continue to call the zero-knowledge proof verification algorithm. or , then terminate; otherwise, continue to calculate to get the signature tag , , and .

[0189] Alice Calculation ; ring public key, Signature tag, m refers to the message. , perform the following calculations in sequence:

[0190] , Among them, when season , and Bob calculates in the same way as Alice Among them, when season Bob chooses , using the Paillier addition homomorphic encryption algorithm to calculate the ciphertext , and then sent to Alice.

[0191] Then, Alice receives the ciphertext from Bob and calculates And decrypted using the homomorphic encryption private key , and calculate ,Will Send to Bob. Alice outputs the message About Difficult Relationship Examples The first signature value . Bob receives the Then output the second signature value .

[0192] Finally, the adapter pre-signature is generated based on the first signature value and the second signature value. .

[0193] Step 4: Verify the adapter pre-signature.

[0194] Specifically, the verifier receives the message and pre-signed value Then, using the ring public key , Difficult Relationship Status and public information Perform the following steps to verify the pre-signature: Is it in If it is not satisfied, the verification fails, otherwise proceed to the next step; calculate , and .

[0195] for , calculate successively , , .test Is it established? If established, then ;otherwise, ;verify ; Return verification result If all verifications are successful, the adapter pre-signature can be adapted to generate a complete target signature.

[0196] Step 5. Convert the adapter pre-signature to a complete target signature.

[0197] Among them, the adapter uses evidence of difficult relationships Target signature available ,for From 1 to , Through For input The operations form a ring structure.

[0198] Step 6: Extract evidence of difficult relationships.

[0199] Among them, it also has a signature value , pre-signed value and difficult relationship status After that, calculate .verify Is it true? If true, return ; Otherwise, return .

[0200] In addition, this method can also be used for two sets of the same ring public key The signature value on and All are verified through the linkable ring signature verification algorithm. If the verification result is , then output 1, indicating that the two signature values ​​are generated by the same person in the ring, ensuring that a signer cannot generate two signature values ​​with different link labels; otherwise, output 0, indicating that the two signature values ​​are not generated by the same person in the ring.

[0201] In the embodiment of the present invention, a new two-party adapter signature scheme is designed based on the SM2 linkable ring signature algorithm. The pre-signature is jointly generated by two parties, and the process satisfies the fairness of signature generation. In addition, the scheme also meets the security definition of adapter signature. It can be used to build off-chain payment applications, including universal payment channels, payment channel networks, atomic swaps, etc., and can also be adopted by actual blockchain protocols, such as Lightning Network, Raiden Network, etc.

[0202] The following will describe in detail the adapter signature generation device of one or more embodiments of the present invention. Those skilled in the art will appreciate that these devices can be configured using commercially available hardware components through the steps taught in this solution.

[0203] Figure 7 A schematic diagram of the structure of an adapter signature generation device provided by an embodiment of the present invention, which is applied to a first participant, such as Figure 7 As shown, the device includes: a generating module 11, a first receiving module 12, a first determining module 13, a second determining module 14, a first sending module 15, a second receiving module 16, and a second sending module 17.

[0204] A generating module 11, used to generate a first sub-private key and a first sub-public key for signing, and send the first sub-public key to a second participant, so that the second participant verifies the first sub-public key and then sends the generated second sub-public key to the first participant, wherein the second participant is used to cooperate with the first participant to sign the adapter;

[0205] A first receiving module 12 is used to receive the second sub-public key sent by the second participant, and generate a signature public key according to the first sub-private key and the second sub-public key;

[0206] A first determining module 13 is used to determine a ring public key corresponding to a ring member cluster according to the signature public key, the ring member cluster includes the first participant and the second participant, and the ring public key includes a public key corresponding to each ring member in the ring member cluster;

[0207] A second determination module 14 is used to determine a first vector corresponding to the first participant according to the ring public key, the first child private key and a difficult relationship instance, wherein the difficult relationship instance is used to describe a discrete logarithm problem, and the difficult relationship instance includes difficult relationship evidence;

[0208] A first sending module 15 is used to send the first vector to the second participant, so that the second participant verifies the first vector and then sends a generated second vector to the first participant, where the second vector is obtained by the second participant based on the ring public key, the generated second child private key and the difficult relationship instance;

[0209] A second receiving module 16 is used to receive the second vector sent by the second participant, and verify the second vector. If the verification is successful, a first pre-signature is generated according to the second vector and the information to be signed;

[0210] The second sending module 17 is used to send the pre-signature to the adapter, so that the adapter obtains the target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature, where the second pre-signature is generated by the second participant according to the first vector and the information to be signed.

[0211] Optionally, the device also includes a zero-knowledge proof generation module, which is used to: generate a first zero-knowledge proof of the first sub-public key, the first zero-knowledge proof is used to prove to the second participant that the first sub-public key is generated based on the first sub-private key; send the first zero-knowledge proof to the second participant, so that the second party can verify the first sub-public key based on the first zero-knowledge proof.

[0212] Optionally, the generation module 11 is specifically used to: verify the second sub-public key, and if the verification passes, obtain a first product value of the first sub-private key and the second sub-public key; determine a first difference between the first product value and an elliptic curve base point; and determine the first difference as a signature public key.

[0213] Optionally, the second determination module 14 is specifically used to: perform a hash operation on the ring public key to obtain a first hash value corresponding to the ring public key; generate n-1 first random numbers and second random numbers; determine a first elliptic curve point based on the second random number and the elliptic curve base point; determine a second elliptic curve point based on the second random number and the first hash value; determine a first vector corresponding to the first participant based on the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first sub-private key, and the difficult relationship instance.

[0214] Optionally, the second determination module 14 is further used to: determine a first signature secret share according to the first sub-private key and the first hash value; generate a third random number, and determine a second signature secret share according to the third random number and the elliptic curve base point; determine a third signature secret share according to the third random number and the first signature secret share; determine a fourth signature secret share according to the difficult relationship evidence in the difficult relationship instance, the first hash value and the first sub-private key; determine a first vector corresponding to the first participant according to the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first signature secret share, the second signature secret share, the third signature secret share and the fourth signature secret share.

[0215] Optionally, the first vector includes the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first signature secret share, the second signature secret share, the third signature secret share and the fourth signature secret share, the second vector includes the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the fifth signature secret share and the sixth signature secret share, and the second receiving module 16 is specifically used to: verify the second vector, and if the verification passes, determine the first signature component according to the first child private key, the fifth signature secret share and the first hash value; determine the second signature component according to the third elliptic curve point, the second random number and the fifth elliptic curve point; determine the third signature component according to the fourth elliptic curve point, the second random number and the fifth signature secret share; determine the fourth signature component according to the first child private key and the sixth signature secret share; and generate a first pre-signature according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, the n-1 first random numbers and the third random number.

[0216] Optionally, the second receiving module 16 is further used to: perform a hash operation on the ring public key, the first signature component, the second signature component, the third signature component and the information to be signed to obtain a second hash value corresponding to the information to be signed; generate a first signature value corresponding to the first party according to the first signature component, the fourth signature component, the second hash value, the n-1 first random numbers and the third random number; and determine the first signature value as the first pre-signature.

[0217] Figure 7 The device shown can execute the steps introduced in the aforementioned embodiments. For detailed execution process and technical effects, please refer to the description in the aforementioned embodiments, which will not be repeated here.

[0218] In one possible design, the above Figure 7 The structure of the adapter signature generating device shown can be implemented as an electronic device, such as Figure 8 As shown, the electronic device may include: a memory 21, a processor 22, and a communication interface 23. The memory 21 stores executable codes, and when the executable codes are executed by the processor 22, the processor 22 can at least implement the adapter signature generation method provided in the above embodiment.

[0219] Fig. 9 A schematic diagram of a structure of an adapter signature generation device provided by an embodiment of the present invention is applied to a second participant who cooperates with a first participant to generate an adapter signature, such as Fig. 9 As shown, the device includes: a receiving module 31, a sending module 32, a determining module 33, a verifying module 34, and a generating module 35.

[0220] The receiving module 31 is used to receive the first sub-public key sent by the first participant, verify the first sub-public key, and if the verification is successful, generate a second sub-private key and a second sub-public key for signing;

[0221] A sending module 32, configured to send the second sub-public key to the first participant, so that the first participant generates a signature public key according to the second sub-public key, and determines the ring public key corresponding to the ring member cluster according to the signature public key;

[0222] A determination module 33, configured to determine a second vector corresponding to the second participant according to the ring public key, the second sub-private key, and a difficult relation instance, wherein the difficult relation instance is used to describe a discrete logarithm problem, and the difficult relation instance includes difficult relation evidence;

[0223] A verification module 34 is used to receive the first vector sent by the first participant, verify the first vector, and if the verification passes, send the second vector to the first participant, so that the first participant generates a first pre-signature according to the second vector and the information to be signed;

[0224] The generating module 35 is used to generate a pre-signature according to the second vector and the information to be signed, and send the pre-signature to the adapter, so that the adapter obtains the target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature.

[0225] Optionally, the determination module 33 is specifically used to: perform a hash operation on the ring public key to obtain a first hash value corresponding to the ring public key; generate a fifth random number; determine a third elliptic curve point based on the fifth random number and the elliptic curve base point; determine a fourth elliptic curve point based on the fifth random number and the first hash value; determine a fifth elliptic curve point based on the second sub-private key and the elliptic curve base point; determine a second vector corresponding to the second participant based on the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the second sub-private key, and the difficult relationship instance.

[0226] Optionally, the determination module 33 is further used to: determine a fifth signature secret share based on the second sub-private key and the first hash value; determine a sixth signature secret share based on the second sub-private key, the first hash value and the difficult relationship evidence in the difficult relationship instance; determine a seventh signature secret share based on a fourth random number and an elliptic curve base point; determine an eighth signature secret share based on the fourth random number and the fifth signature secret share; determine a second vector corresponding to the second participant based on the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the fifth signature secret share, the sixth signature secret share, the seventh signature secret share and the eighth signature secret share.

[0227] Optionally, the first vector includes n-1 first random numbers, a first elliptic curve point, a second elliptic curve point, a first signature secret share, and a fourth signature secret share, and the generation module 35 is specifically used to: determine a first signature component according to the first sub-private key, the first signature secret share, and the first hash value; determine a second signature component according to the first elliptic curve point, the second sub-private key, and the third elliptic curve point; determine a third signature component according to the fourth elliptic curve point, the second sub-private key, and the second elliptic curve point; determine a fourth signature component according to the second sub-private key and the fourth signature secret share; generate a second pre-signature according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, the n-1 first random numbers, and the fourth random number.

[0228] Optionally, the generation module 35 is further used to: perform a hash operation on the ring public key, the first signature component, the second signature component, the third signature component and the information to be signed to obtain a second hash value corresponding to the information to be signed; generate a second signature value corresponding to the second party according to the first signature component, the fourth signature component, the second hash value, the n-1 first random numbers and the fourth random number; and determine the second signature value as the second pre-signature.

[0229] Fig. 9 The device shown can execute the steps introduced in the aforementioned embodiments. For detailed execution process and technical effects, please refer to the description in the aforementioned embodiments, which will not be repeated here.

[0230] In one possible design, the above Fig. 9 The structure of the adapter signature generating device shown can be implemented as an electronic device, such as Fig.10 As shown, the electronic device may include: a memory 41, a processor 42, and a communication interface 43. The memory 41 stores executable codes, and when the executable codes are executed by the processor 42, the processor 42 can at least implement the adapter signature generation method provided in the above embodiments.

[0231] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the adapter signature generation method provided in the aforementioned embodiment.

[0232] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.

[0233] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a computer product, and the present invention can be implemented in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0234] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating an adapter signature, characterized in that: Applied to a first participant, the first participant and a second participant jointly generate an adapter signature, the method comprising: Generate a first sub-private key and a first sub-public key for signing, and generate a first zero-knowledge proof of the first sub-public key, where the first zero-knowledge proof is used to prove to the second participant that the first sub-public key is generated based on the first sub-private key; Sending the first zero-knowledge proof to the second participant so that the second participant verifies the first sub-public key based on the first zero-knowledge proof, and sending the first sub-public key to the second participant so that the second participant verifies the first sub-public key and then sends the generated second sub-public key to the first participant; Receiving the second sub-public key sent by the second participant, and verifying the second sub-public key, and if the verification passes, obtaining a first product value of the first sub-private key and the second sub-public key; Determine a first difference between the first product value and an elliptic curve base point, and determine the first difference as a signature public key; Determine, according to the signature public key, a ring public key corresponding to a ring member cluster, wherein the ring member cluster includes the first participant and the second participant, and the ring public key includes a public key corresponding to each ring member in the ring member cluster; Performing a hash operation on the ring public key to obtain a first hash value corresponding to the ring public key; Generate n-1 first random numbers and second random numbers; Determine a first elliptic curve point according to the second random number and the elliptic curve base point; Determine a second elliptic curve point according to the second random number and the first hash value; Determine a first vector corresponding to the first party according to the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first sub-private key, and a difficult relation instance, wherein the difficult relation instance is used to describe a discrete logarithm problem and the difficult relation instance includes a difficult relation evidence; Sending the first vector to the second party, so that the second party verifies the first vector and then sends a generated second vector to the first party, where the second vector is obtained by the second party based on the ring public key, the generated second child private key, and the difficult relationship instance; receiving the second vector sent by the second participant, and generating a first pre-signature according to the second vector and the information to be signed; The first pre-signature is sent to the adapter, so that the adapter obtains a target signature based on the difficult relationship evidence, the first pre-signature, and a second pre-signature, where the second pre-signature is generated by the second participant according to the first vector and the information to be signed.

2. The method according to claim 1, characterized in that The determining, according to the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first child private key, and the difficult relationship instance, a first vector corresponding to the first participant includes: Determine a first signature secret share according to the first sub-private key and the first hash value; Generate a third random number, and determine a second signature secret share according to the third random number and the elliptic curve base point; Determine a third signature secret share according to the third random number and the first signature secret share; Determine a fourth signature secret share according to the difficult relationship evidence in the difficult relationship instance, the first hash value, and the first child private key; Determine a first vector corresponding to the first party based on the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first signature secret share, the second signature secret share, the third signature secret share, and the fourth signature secret share.

3. The method according to claim 2, characterized in that The first vector includes the n-1 first random numbers, the first elliptic curve point, the second elliptic curve point, the first signature secret share, the second signature secret share, the third signature secret share, and the fourth signature secret share, the second vector includes the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the fifth signature secret share, and the sixth signature secret share, and generating a first pre-signature according to the second vector and the information to be signed includes: Verifying the second vector, and if the verification passes, determining a first signature component according to the first sub-private key, the fifth signature secret share, and the first hash value; determining a second signature component according to the third elliptic curve point, the second random number, and the fifth elliptic curve point; determining a third signature component according to the fourth elliptic curve point, the second random number, and the fifth signature secret share; Determine a fourth signature component according to the first sub-private key and the sixth signature secret share; Generate a first pre-signature according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, the n-1 first random numbers and the third random number.

4. The method according to claim 3, characterized in that: The generating a first pre-signature according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, the n-1 first random numbers and the third random number comprises: Performing a hash operation on the ring public key, the first signature component, the second signature component, the third signature component, and the information to be signed to obtain a second hash value corresponding to the information to be signed; Generate a first signature value corresponding to the first party according to the first signature component, the fourth signature component, the second hash value, the n-1 first random numbers, and the third random number; The first signature value is determined as the first pre-signature.

5. A method for generating an adapter signature, characterized in that: Applied to a second party cooperating with a first party to perform adapter signing, the method comprises: Receiving the first sub-public key sent by the first participant, verifying the first sub-public key, and if the verification passes, generating a second sub-private key and a second sub-public key for signing; Sending the second sub-public key to the first participant, so that the first participant generates a signature public key according to the second sub-public key, and determines the ring public key corresponding to the ring member cluster according to the signature public key; Performing a hash operation on the ring public key to obtain a first hash value corresponding to the ring public key; generating a fifth random number; Determine a third elliptic curve point according to the fifth random number and the elliptic curve base point; Determine a fourth elliptic curve point according to the fifth random number and the first Hash value; Determine a fifth elliptic curve point according to the second sub-private key and the elliptic curve base point; Determine a second vector corresponding to the second party according to the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the second sub-private key, and a difficult relation instance, wherein the difficult relation instance is used to describe a discrete logarithm problem and the difficult relation instance includes a difficult relation evidence; receiving a first vector sent by the first participant, verifying the first vector, and if the verification passes, sending the second vector to the first participant, so that the first participant generates a first pre-signature according to the second vector and the information to be signed; A second pre-signature is generated according to the first vector and the information to be signed, and the second pre-signature is sent to the adapter, so that the adapter obtains a target signature based on the difficult relationship evidence, the first pre-signature and the second pre-signature.

6. The method according to claim 5, characterized in that The determining, according to the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the second sub-private key, and the difficult relationship instance, a second vector corresponding to the second participant includes: Determine a fifth signature secret share according to the second sub-private key and the first hash value; determining a sixth signature secret share according to the second sub-private key, the first hash value, and the difficult relationship evidence in the difficult relationship instance; Determine a seventh signature secret share according to the fourth random number and the elliptic curve base point; Determine an eighth signature secret share according to the fourth random number and the fifth signature secret share; A second vector corresponding to the second party is determined based on the third elliptic curve point, the fourth elliptic curve point, the fifth elliptic curve point, the fifth signature secret share, the sixth signature secret share, the seventh signature secret share, and the eighth signature secret share.

7. The method according to claim 6, characterized in that The first vector includes n-1 first random numbers, a first elliptic curve point, a second elliptic curve point, a first signature secret share, and a fourth signature secret share. Generating a second pre-signature according to the first vector and the information to be signed includes: Determine a first signature component according to the second sub-private key, the first signature secret share, and the first hash value; Determine a second signature component according to the first elliptic curve point, the second sub-private key, and the third elliptic curve point; determining a third signature component according to the fourth elliptic curve point, the second sub-private key, and the second elliptic curve point; Determine a fourth signature component according to the second sub-private key and the fourth signature secret share; Generate a second pre-signature according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, the n-1 first random numbers and the fourth random number.

8. The method according to claim 7, characterized in that The generating a second pre-signature according to the first signature component, the second signature component, the third signature component, the fourth signature component, the information to be signed, the n-1 first random numbers and the fourth random number comprises: Performing a hash operation on the ring public key, the first signature component, the second signature component, the third signature component, and the information to be signed to obtain a second hash value corresponding to the information to be signed; Generate a second signature value corresponding to the second party according to the first signature component, the fourth signature component, the second hash value, the n-1 first random numbers and the fourth random number; The second signature value is determined as the second pre-signature.

9. An electronic device, characterized in that: include: A memory, a processor, and a communication interface; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the adapter signature generation method as described in any one of claims 1 to 4 or 5 to 8.