The invention provides a secure two-party
collaboration SM2 signature method consisting of steps of
system initialization, negotiation generation of a signature public key, collaborative signature andoutput of a complete signature. According to the secure two-party
collaboration SM2 signature method provided by the invention, prior to the negotiation of the signature public key and the collaborative signature, the both communication parties authenticate the identity of the opposite party by using the
zero knowledge proof technology, the
correctness of outputting the complete signature is ensured by using the promise technology, it is ensured that the first communication party does not need to decrypt a received
ciphertext by using the
homomorphic encryption technology, the operation of the corresponding
ciphertext can be realized, and a
timestamp mechanism is added to ensure that the both communication parties can output the complete signature only when the identity of the first communication party, the
current time and the position information of the first communication party are consistent, so that the security of the
system is greatly improved, the loss caused by the leakage ofa signature private key is reduced, and the man-in-the-middle
attack can be prevented. The secure two-party
collaboration SM2 signature method provided by the invention has higher security and can beused in an environment in which a
communication channel is not safe.