A signature method and system based on blockchain and SM9 algorithm

By saving organization ID and personal user ID on the blockchain and generating a signature private key using the SM9 algorithm, the complexity and inefficiency of the signature system in the existing technology in cross-system collaboration is solved, and the non-deniable Signature information transmission and verification ensure the transmission of trust value across systems.

CN115277009BActive Publication Date: 2024-11-05INSPUR SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210765176.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2024-11-05
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

The existing digital signature system based on the PKI certificate system is complex and inefficient in collaboration across departments, across businesses, across regions, and across different sovereign systems, and data deletion and tampering may occur in centralized systems.

Method used

Using the signature method based on blockchain and SM9 algorithm, by generating the signature main public key and the signature main private key, the organization ID and personal user ID are saved on the blockchain, and the SM9 algorithm is used to generate the signature private key for the signature. The object is signed, and the signature value and related information are saved on the blockchain to realize identity management and signature verification, ensuring that the signature information is not tampered, not deleted and not refuted.

Benefits of technology

It realizes the transfer of trust value across different PKI certificate systems and sovereign information systems, ensures the non-repudiation and traceability of signature information, and improves the efficiency of trust value transmission and mutual authentication between heterogeneous systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115277009B_ABST
    Figure CN115277009B_ABST
Patent Text Reader

Abstract

The present invention discloses a signature method and system based on blockchain and SM9 algorithm, belonging to the fields of information software system, Internet and blockchain technology, the method uses SM9 algorithm to generate signature master public key and signature master private key, and stores organization ID and the signature master public key on blockchain; stores organization ID and personal user identification on blockchain; uses the signature master private key and personal user identification as parameters, uses SM9 algorithm to generate personal user signature private key; uses signature master public key and personal user signature private key as parameters, uses SM9 signature algorithm to sign signature object, obtains signature value; stores personal user identification, signature object and signature value on blockchain. The present invention can realize trust value transfer and mutual authentication between heterogeneous systems through standard cryptographic algorithms and data formats.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of information software systems, the Internet and blockchain technology, and specifically to a signature method and system based on blockchain and SM9 algorithm. Background Art

[0002] In the fields of e-commerce and e-government, when it comes to business cooperation and inter-departmental collaboration, it is often necessary to sign legal documents to clarify the rights and obligations of both parties. The document needs to be signed and sealed by both parties to be legally binding in a strict sense. Signatures have evolved from the original paper handwritten signatures to digital signatures based on the PKI certificate system (public key infrastructure).

[0003] The PKI certificate system is a centralized authentication system that requires a centralized authority to issue certificates and authenticate identities. When information systems use certificates issued by different authorities to sign legal documents, it is difficult for the documents to be mutually authenticated and flow freely between different information systems. When legal documents need to collaborate across departments, businesses, levels, regions, and even across different sovereign systems, the signature system based on the PKI certificate system is complex and inefficient. In addition, centralized systems may delete or tamper with data. Summary of the invention

[0004] The technical task of the present invention is to address the above shortcomings and provide a signature method and system based on blockchain and SM9 algorithm, which can realize trust value transfer and mutual authentication between heterogeneous systems through standard cryptographic algorithms and data formats.

[0005] The technical solution adopted by the present invention to solve its technical problem is:

[0006] A signature method based on blockchain and SM9 algorithm, using SM9 algorithm to generate signature master public key and signature master private key,

[0007] The organization ID and the signature master public key are stored on the blockchain;

[0008] Store the organization ID and individual user ID on the blockchain;

[0009] The signature master private key and the personal user ID are used as parameters to generate a personal user signature private key using the SM9 algorithm;

[0010] Use the signature master public key and the personal user signature private key as parameters, use the SM9 signature algorithm to sign the signature object and obtain the signature value;

[0011] The personal user ID, signature object and signature value are stored on the blockchain.

[0012] This method realizes identity management, signature management and signature verification management by constructing a signature management system based on blockchain; realizes the indelibility, tamperability, traceability and non-repudiation of signature information through the trusted technical characteristics of blockchain that cannot be tampered with, deleted or impersonated, thereby realizing the trust value transfer across different PKI certificate systems and different sovereign information systems; and realizes the trust value transfer and mutual authentication between heterogeneous systems through standard cryptographic algorithms and data formats.

[0013] Preferably, this method is implemented through a signature client and a signature smart contract.

[0014] The organization user generates a signature master public key and a signature master private key using the SM9 algorithm through the signature client. The signature client sends the organization ID and the signature master public key to the signature smart contract, and the signature smart contract saves the organization ID and the signature master public key on the blockchain.

[0015] The organization user sends the organization ID and personal user ID to the signature smart contract through the signature client, and the signature smart contract saves the organization ID and personal user ID on the blockchain;

[0016] The organization user uses the SM9 signature master private key and personal user ID as parameters, and uses the SM9 algorithm to generate the personal user signature private key; the signature client uses the signature master public key and personal user signature private key as parameters, and uses the SM9 algorithm to sign the signature object to obtain the signature value. The signature client sends the signature object, signature value and personal user ID to the signature smart contract; the signature smart contract saves the personal user ID, signature object and signature value on the blockchain.

[0017] Preferably, the signature smart contract stores the organization ID and the signature master public key on the blockchain.

[0018] The signature smart contract checks whether the organization ID exists in the blockchain ledger. If the organization ID does not exist in the blockchain ledger, the signature smart contract saves the organization ID and the signature master public key to the blockchain ledger.

[0019] Preferably, the signed smart contract stores the organization ID and individual user ID on the blockchain.

[0020] The signature smart contract checks whether the organization ID and personal user ID exist in the blockchain ledger. If the organization ID and personal user ID do not exist in the blockchain ledger, the signature smart contract saves the organization ID and personal user ID in the blockchain ledger.

[0021] Preferably, the signature smart contract stores the personal user ID, signature object and signature value on the blockchain.

[0022] The signature smart contract uses the personal user ID as the query condition and searches the blockchain ledger for the organization ID corresponding to the personal user ID.

[0023] If the organization ID corresponding to the personal user ID can be found on the blockchain, the signature smart contract uses the organization ID as a query condition to find the signature master public key corresponding to the organization ID from the blockchain ledger;

[0024] If the signature master public key corresponding to the organization ID can be found on the blockchain, the signature smart contract will use the signature master public key, personal user ID and signature object as parameters, and use the SM9 signature verification algorithm to verify the signature value;

[0025] If the signature value is verified, the signature smart contract will store the personal user ID, signature object and signature value in the blockchain ledger.

[0026] Furthermore, the verifier uses the personal user ID and the signature object as parameters to query the signature verification result from the signature smart contract through the signature client;

[0027] The signature smart contract uses the personal user ID and signature object as query conditions to query the signature verification result from the blockchain ledger. If the corresponding signature verification result is found, the signature smart contract returns the signature verification result to the signature client, and the signature client returns the signature verification result to the verifier.

[0028] The present invention also claims protection for a signature system based on blockchain and SM9 algorithm, which implements the above-mentioned signature method based on blockchain and SM9 algorithm.

[0029] Preferably, the system includes a signature client and a signature smart contract,

[0030] The signature client includes a master public key registration module, an identification registration module, a signature module and a check and verification module;

[0031] The signature smart contract includes a master public key management module, an identification library management module, a signature management module and a verification management module.

[0032] The method also claims protection for a signature device based on blockchain and SM9 algorithm, comprising: at least one memory and at least one processor;

[0033] The at least one memory is used to store a machine-readable program;

[0034] The at least one processor is used to call the machine-readable program to execute the above method.

[0035] The method also claims protection for a computer-readable medium having computer instructions stored thereon, and when the computer instructions are executed by a processor, the processor is caused to execute the above method.

[0036] Compared with the prior art, the signature method and system based on blockchain and SM9 algorithm of the present invention have the following beneficial effects:

[0037] This method writes the SM9 signature master public key, user ID, signature object and signature value into the blockchain account book through a smart contract, making it tamper-proof and non-deletable;

[0038] The verification results will be written into the blockchain account book through smart contracts, making the signature behavior tamper-proof and non-deletable, thus achieving a trustworthy effect that cannot be denied;

[0039] The method and system support re-verification and auditing of signature results at any time. Users can query the signature of a specific business through the signature client based on user identification, signature object and other conditions, thereby completing the tasks of re-verification, checking and auditing. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a diagram of the implementation architecture of the signature method based on blockchain and SM9 algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The embodiment of the present invention provides a signature method based on blockchain and SM9 algorithm, which uses SM9 algorithm to generate a signature master public key and a signature master private key.

[0042] The organization ID and the signature master public key are stored on the blockchain;

[0043] Store the organization ID and individual user ID on the blockchain;

[0044] The signature master private key and the personal user ID are used as parameters to generate a personal user signature private key using the SM9 algorithm;

[0045] Use the signature master public key and the personal user signature private key as parameters, use the SM9 signature algorithm to sign the signature object and obtain the signature value;

[0046] The personal user ID, signature object and signature value are stored on the blockchain.

[0047] This method is implemented through the signature client and the signature smart contract.

[0048] The organization user generates a signature master public key and a signature master private key using the SM9 algorithm through the signature client. The signature client sends the organization ID and the signature master public key to the signature smart contract, and the signature smart contract saves the organization ID and the signature master public key on the blockchain.

[0049] The organization user sends the organization ID and personal user ID to the signature smart contract through the signature client, and the signature smart contract saves the organization ID and personal user ID on the blockchain;

[0050] The organization user uses the SM9 signature master private key and personal user ID as parameters, and uses the SM9 algorithm to generate the personal user signature private key; the signature client uses the signature master public key and personal user signature private key as parameters, and uses the SM9 algorithm to sign the signature object to obtain the signature value. The signature client sends the signature object, signature value and personal user ID to the signature smart contract; the signature smart contract saves the personal user ID, signature object and signature value on the blockchain.

[0051] The signature smart contract stores the organization ID and signature master public key on the blockchain.

[0052] The signature smart contract checks whether the organization ID exists on the blockchain. If it is determined that the organization ID does not exist on the blockchain, the signature smart contract saves the organization ID and the signature master public key on the blockchain.

[0053] The signed smart contract stores the organization ID and individual user ID on the blockchain.

[0054] The signature smart contract checks whether the organization ID and personal user ID exist on the blockchain. If it is determined that the organization ID and personal user ID do not exist on the blockchain, the signature smart contract saves the organization ID and personal user ID on the blockchain.

[0055] The signature smart contract stores the personal user ID, signature object and signature value on the blockchain.

[0056] The signature smart contract uses the personal user ID as the search condition and searches for the organization ID corresponding to the personal user ID on the blockchain;

[0057] If the organization ID corresponding to the personal user ID can be found on the blockchain, the signature smart contract uses the organization ID as a search condition and queries the signature master public key corresponding to the organization ID from the blockchain;

[0058] If the signature master public key corresponding to the organization ID can be found on the blockchain, the signature smart contract will use the signature master public key, personal user ID and signature object as parameters, and use the SM9 signature verification algorithm to verify the signature value;

[0059] If the signature value is verified, the signature smart contract will store the personal user ID, signature object and signature value on the blockchain.

[0060] The verifier uses the personal user ID and signature object as parameters and queries the signature verification result from the signature smart contract through the signature client;

[0061] The signature smart contract uses the personal user ID and signature object as query conditions to query the signature verification result from the blockchain ledger. If the corresponding signature verification result is found, the signature smart contract returns the signature verification result to the signature client, and the signature client returns the signature verification result to the verifier.

[0062] Identity-based cryptography is an emerging and rapidly developing branch of public key cryptography. Its design concept was first proposed by Adi Shamir, an Israeli cryptographer and one of the inventors of the RSA algorithm, in 1984. Its original intention was to simplify the complex communication process and cumbersome key management process in the traditional PKI / CA certificate system. The design goal of this cryptographic algorithm is to ensure the security of information exchange and verify each other's signatures without the need to exchange public and private key information, without the need for infrastructure such as directory services to store keys, and without the need to use third parties to provide authentication services.

[0063] Blockchain uses a decentralized consensus mechanism to make information immutable, non-repudiable and trustworthy. Blockchain, especially data on public blockchain, is open and transparent. Decentralized blockchain technology provides a new solution to the problem of mutual trust between different sovereign information systems.

[0064] This method combines the technical characteristics of blockchain and identification cryptographic algorithm, and proposes a signature method based on blockchain and SM9 algorithm. The credibility and provability of key-related information are guaranteed by the immutability, publicity and transparency of blockchain information, and the efficiency of digital signature and verification is improved by the national secret identification cryptographic algorithm (SM9).

[0065] An embodiment of the present invention also provides a signature system based on blockchain and SM9 algorithm, which implements the above-mentioned signature method based on blockchain and SM9 algorithm.

[0066] The system includes a signature client and a signature smart contract.

[0067] The signature client includes a master public key registration module, an identification registration module, a signature module and a check and verification module;

[0068] The signature smart contract includes a master public key management module, an identification library management module, a signature management module and a verification management module.

[0069] refer to Figure 1 As shown, the process of implementing the signature method based on blockchain and SM9 algorithm in this system is as follows:

[0070] 1) The organization user uses the SM9 algorithm to generate the signature master public key and signature master private key through the signature client. The signature client sends the organization ID and signature master public key to the signature smart contract; the signature smart contract checks whether the organization ID exists in the blockchain ledger. If the organization ID does not exist in the blockchain ledger, the signature smart contract saves the organization ID and signature master public key to the blockchain ledger; the organization user saves the SM9 signature master private key by himself.

[0071] 2) The organization user sends the organization ID and user ID to the signature smart contract through the signature client; the signature smart contract checks whether the organization ID and user ID exist in the blockchain ledger. If the organization ID and user ID do not exist in the blockchain ledger, the signature smart contract saves the organization ID and user ID in the blockchain ledger.

[0072] 3) The organization user uses the SM9 signature master private key and personal user ID as parameters, and uses the SM9 algorithm to generate the personal user signature private key.

[0073] 4) The signing client uses the signature master public key and the personal user signature private key as parameters, and uses the SM9 algorithm to sign the signature object to obtain the signature value; the signing client sends the signature object, signature value and user ID to the signature smart contract.

[0074] 5) The signature smart contract uses the user ID as a query condition to find the organization ID corresponding to the user from the blockchain account book; then uses the organization ID as a query condition to find the signature master public key corresponding to the organization ID from the blockchain account book; then the signature smart contract uses the signature master public key, user ID and signature object as parameters, and uses the SM9 signature verification algorithm to verify the signature value. If the verification passes, the signature smart contract stores the user ID, signature object and signature value in the blockchain account book.

[0075] 6) The verifier uses the user ID and signature object as parameters to query the signature verification result from the signature smart contract through the signature client. The signature smart contract uses the user ID and signature object as query conditions to query the signature verification result from the blockchain ledger. If the corresponding signature verification result is found, the signature smart contract returns the signature verification result to the signature client, and the signature client returns the signature verification result to the verifier.

[0076] The embodiment of the present invention also provides a signature device based on blockchain and SM9 algorithm, comprising: at least one memory and at least one processor;

[0077] The at least one memory is used to store a machine-readable program;

[0078] The at least one processor is used to call the machine-readable program to execute the signature method based on blockchain and SM9 algorithm described in the above embodiment.

[0079] The embodiment of the present invention further provides a computer-readable medium, on which computer instructions are stored, and when the computer instructions are executed by the processor, the processor executes the signature based on the blockchain and SM9 algorithm described in the above embodiment. Specifically, a system or device equipped with a storage medium can be provided, on which the software program code that implements the functions of any of the above embodiments is stored, and the computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0080] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0081] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0082] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0083] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0084] The present invention is shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review methods in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.

Claims

1. A signature method based on blockchain and SM9 algorithm, characterized in that Use the SM9 algorithm to generate the signature master public key and signature master private key. The organization ID and the signature master public key are stored on the blockchain; Store the organization ID and individual user ID on the blockchain; The signature master private key and the personal user ID are used as parameters to generate a personal user signature private key using the SM9 algorithm; Use the signature master public key and the personal user signature private key as parameters, use the SM9 signature algorithm to sign the signature object and obtain the signature value; Store personal user ID, signature object and signature value on the blockchain; This method is implemented through the signature client and the signature smart contract. The organization user generates a signature master public key and a signature master private key using the SM9 algorithm through the signature client. The signature client sends the organization ID and the signature master public key to the signature smart contract, and the signature smart contract saves the organization ID and the signature master public key on the blockchain. The organization user sends the organization ID and personal user ID to the signature smart contract through the signature client, and the signature smart contract saves the organization ID and personal user ID on the blockchain; The signature client uses the signature master public key and the personal user signature private key as parameters, and uses the SM9 algorithm to sign the signature object to obtain the signature value. The signature client sends the signature object, signature value and personal user ID to the signature smart contract; the signature smart contract saves the personal user ID, signature object and signature value on the blockchain; The signature smart contract uses the personal user ID as the query condition and searches the blockchain ledger for the organization ID corresponding to the personal user ID. If the organization ID corresponding to the personal user ID can be found on the blockchain, the signature smart contract uses the organization ID as a query condition to find the signature master public key corresponding to the organization ID from the blockchain ledger; If the signature master public key corresponding to the organization ID can be found on the blockchain, the signature smart contract will use the signature master public key, personal user ID and signature object as parameters, and use the SM9 signature verification algorithm to verify the signature value; If the signature value is verified, the signature smart contract stores the personal user ID, signature object and signature value in the blockchain account book; The verifier uses the personal user ID and signature object as parameters to query the signature verification result from the signature smart contract through the signature client; the signature smart contract uses the personal user ID and signature object as query conditions to query the signature verification result from the blockchain ledger. If the corresponding signature verification result is found, the signature smart contract returns the signature verification result to the signature client, and the signature client returns the signature verification result to the verifier.

2. A signature method based on blockchain and SM9 algorithm according to claim 1, characterized in that: The signature smart contract saves the organization ID and signature master public key on the blockchain. The signature smart contract checks whether the organization ID exists in the blockchain ledger. If the organization ID does not exist in the blockchain ledger, the signature smart contract saves the organization ID and the signature master public key to the blockchain ledger.

3. According to a signature method based on blockchain and SM9 algorithm according to claim 1, it is characterized in that: The signed smart contract stores the organization ID and individual user ID on the blockchain. The signature smart contract checks whether the organization ID and personal user ID exist in the blockchain ledger. If the organization ID and personal user ID do not exist in the blockchain ledger, the signature smart contract saves the organization ID and personal user ID in the blockchain ledger.

4. A signature system based on blockchain and SM9 algorithm, characterized in that: The system implements the signature method based on blockchain and SM9 algorithm as described in any one of claims 1 to 3.

5. A signature system based on blockchain and SM9 algorithm according to claim 4, characterized in that: Including signature client and signature smart contract, The signature client includes a master public key registration module, an identification registration module, a signature module and a check and verification module; The signature smart contract includes a master public key management module, an identification library management module, a signature management module and a verification management module.

6. A signature device based on blockchain and SM9 algorithm, characterized in that include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is configured to call the machine-readable program to execute the method according to any one of claims 1 to 3.

7. A computer-readable medium, characterized in that The computer readable medium stores computer instructions, which, when executed by a processor, enable the processor to execute any one of the methods of claims 1 to 3.