A cross-chain digital signature algorithm update system and method

By designing a cross-chain digital signature algorithm update system, using smart contracts and blockchain networks to achieve rapid update and maintenance, the problems of difficulty and inconsistency in the existing technology are solved, and the update efficiency and consistency are improved.

CN116260586BActive Publication Date: 2025-05-02BEIHANG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211543567.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2025-05-02
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

The existing cross-chain digital signature algorithm update method is difficult to achieve rapid update and maintenance, resulting in inconsistency and forking of blockchain client software, and the update process takes a long time and is troublesome.

Method used

A cross-chain digital signature algorithm update system is designed, and the update information is converted into data blocks in preset format through the preprocessing module, written to the transaction order, and formed a smart contract, and uploaded to the blockchain. The online storage module stores smart contracts, updates the index module to record contract address and algorithm information, and the digital signature system obtains smart contracts based on the application information and updates the digital signature library.

Benefits of technology

It reduces the difficulty of updating the digital signature algorithm, simplifies the update and maintenance process, improves the update efficiency, and avoids inconsistency in blockchain client software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116260586B_ABST
    Figure CN116260586B_ABST
Patent Text Reader

Abstract

The present invention relates to a cross-chain digital signature algorithm update system and method, and relates to the field of blockchain. The system includes: a preprocessing module for converting the update information of the digital signature algorithm into a data block in a preset format, writing the data block into a transaction order, and uploading the smart contract formed by the transaction order to the blockchain; an online storage module for storing the smart contract generated each time according to the update information of the digital signature algorithm; an update index module for recording the contract address of the smart contract generated each time according to the update information of the digital signature system, and the algorithm name and algorithm version number corresponding to the contract address; a digital signature system for obtaining the smart contract from the online storage module through the update index module according to the digital signature algorithm application information, and updating the update information of the digital signature algorithm corresponding to the obtained smart contract to the digital signature library. The present invention reduces the difficulty of updating the cross-chain digital signature algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a cross-chain digital signature algorithm updating system and method. Background Art

[0002] In recent years, blockchain technology has flourished, and the number of assets on blockchain has continued to increase. Users' demand for asset operations is no longer limited to a single chain, and they hope to interoperate assets between blockchains. Since the blockchain system uses digital signature technology to ensure asset security, if you want to safely operate assets between different blockchains, you need to verify the digital signatures of different blockchains.

[0003] For the need to verify the digital signatures of other chains, the current solution is to publish the digital signature algorithm code in the form of a contract and call the contract for verification. This method is not only expensive, but also difficult to update and maintain the code after deployment. In previous studies, a cross-chain digital signature system and method was designed and implemented, which includes a variety of digital signature algorithms required for cross-chain, can meet the cross-chain digital signature needs, and will not incur excessive costs. However, the update of this system belongs to the update of the blockchain client software. Each update of the algorithm library requires the blockchain client software to be recompiled from the source code, which is still difficult to update and maintain.

[0004] Blockchain is a distributed system. There is no centralized organization that can force all nodes to update the blockchain software. Any user can propose an update plan, and then vote on it. The plan that is supported by most users will be passed. Finally, most users will update the client software according to the plan, and the system will complete the update. However, there will always be a small number of users who refuse to upgrade for various reasons, resulting in inconsistency in the client software, which is also called a fork. The fork update method takes a long time and is very troublesome to update. Summary of the invention

[0005] The purpose of the present invention is to provide a cross-chain digital signature algorithm update system and method, which reduces the difficulty of updating the cross-chain digital signature algorithm and facilitates the maintenance of the digital signature algorithm in the blockchain.

[0006] To achieve the above object, the present invention provides the following solutions:

[0007] A cross-chain digital signature algorithm update system, comprising a pre-processing module, an online storage module, an update index module and a digital signature system connected in sequence;

[0008] The preprocessing module is used to convert the update information of the digital signature algorithm into a data block in a preset format, write the data block into a transaction order, and upload the smart contract formed by the transaction order to the blockchain; the update information includes the update instruction and the update content;

[0009] The online storage module is used to store the smart contract generated each time according to the update information of the digital signature algorithm;

[0010] The update index module is used to record the contract address of the smart contract generated each time according to the update information of the digital signature system, and the algorithm name and algorithm version number corresponding to the contract address;

[0011] The digital signature system is located in the client of each blockchain. The digital signature system is used to obtain the smart contract from the online storage module through the update index module according to the digital signature algorithm application information, and update the acquired update information of the digital signature algorithm corresponding to the smart contract to the digital signature library; the digital signature algorithm application information includes the algorithm name, the algorithm version number and the contract address; the digital signature library is used to store various digital signature algorithms.

[0012] Optionally, the process of the digital signature system acquiring the smart contract from the online storage module through the update index module includes:

[0013] The digital signature system sends digital signature algorithm application information to the update index module;

[0014] The update index module matches the algorithm name and the algorithm version number according to the digital signature algorithm application information. If the algorithm name and the algorithm version number in the digital signature algorithm application information exist in the update index module, the update index module obtains the smart contract from the online storage module according to the contract address corresponding to the algorithm name and the algorithm version number in the digital signature algorithm application information, and sends the smart contract to the digital signature system.

[0015] Optionally, the update instruction includes adding, modifying and deleting, and the update content includes the code and algorithm name corresponding to the update instruction.

[0016] Optionally, when the update instruction in the update information of the digital signature algorithm is addition, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module includes:

[0017] The preprocessing module calls a built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid;

[0018] If the digital signature algorithm corresponding to the update content is valid, the update index module searches whether the algorithm name corresponding to the update content already exists in the update index module;

[0019] If the algorithm name corresponding to the updated content does not exist, the preprocessing module converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into the transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

[0020] Optionally, when the update instruction in the update information of the digital signature algorithm is modification, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module includes:

[0021] The preprocessing module calls a built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid;

[0022] If the digital signature algorithm corresponding to the update content is valid, the update index module searches whether the algorithm name corresponding to the update content already exists in the update index module;

[0023] If the algorithm name corresponding to the updated content exists, the preprocessing module converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into a transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

[0024] Optionally, when the update instruction in the update information of the digital signature algorithm is deletion, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module includes:

[0025] The preprocessing module calls a built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid;

[0026] If the digital signature algorithm corresponding to the update content is valid, the update index module searches whether the algorithm name corresponding to the update content already exists in the update index module;

[0027] If the algorithm name corresponding to the updated content exists, the preprocessing module converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into a transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

[0028] Optionally, the preprocessing module includes an encoding unit and a smart contract generation unit;

[0029] The encoding unit is used to perform base64 encoding on the update information of the digital signature algorithm to generate the data block;

[0030] The smart contract generation unit is used to write the data block into the transaction order and upload the smart contract formed by the transaction order to the blockchain.

[0031] The present invention also discloses a cross-chain oriented digital signature algorithm updating method, comprising:

[0032] The update information of the digital signature algorithm is converted into a data block in a preset format through a preprocessing module, the data block is written into a transaction sheet, and the smart contract formed by the transaction sheet is uploaded to the blockchain; the update information includes update instructions and update content;

[0033] The smart contract generated each time according to the update information of the digital signature algorithm is stored through an online storage module;

[0034] Recording, through the update index module, the contract address of the smart contract generated each time according to the update information of the digital signature system, and the algorithm name and algorithm version number corresponding to the contract address;

[0035] According to the digital signature algorithm application information issued by the digital signature system, the smart contract is obtained from the online storage module through the update index module, and the update information of the digital signature algorithm corresponding to the smart contract is updated to the digital signature library; the digital signature algorithm application information includes the algorithm name, the algorithm version number and the contract address; the digital signature library is located in the digital signature system, the digital signature library is used to store various digital signature algorithms, and the digital signature system is located in the client of each blockchain.

[0036] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0037] The present invention implements the update of the digital signature system through the blockchain network, and uses the update code as data to enter the blockchain in the form of a transaction order, which reduces the time required for updating the digital signature algorithm in the digital signature system and makes update maintenance simpler and easier. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 This is a schematic diagram of the structure of a cross-chain digital signature algorithm update system of the present invention;

[0040] Figure 2 This is a schematic diagram of the application process of the digital signature algorithm of the present invention;

[0041] Figure 3 Add a flow chart for the digital signature algorithm of the present invention;

[0042] Figure 4 This is a schematic diagram of the modification process of the digital signature algorithm of the present invention;

[0043] Figure 5 This is a schematic diagram of the digital signature algorithm deletion process of the present invention;

[0044] Figure 6 The figure is a flow chart of a cross-chain digital signature algorithm update method of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0046] The purpose of the present invention is to provide a cross-chain digital signature algorithm update system and method, which reduces the difficulty of updating the cross-chain digital signature algorithm and facilitates the maintenance of the digital signature algorithm in the blockchain.

[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] Figure 1 This is a schematic diagram of the structure of a cross-chain digital signature algorithm update system of the present invention. Figure 1 As shown, a cross-chain digital signature algorithm update system includes a preprocessing module 101, an online storage module 102, an update index module 103 and a digital signature system 104 connected in sequence.

[0049] The preprocessing module 101 is used to convert the update information of the digital signature algorithm into a data block in a preset format, write the data block into a transaction order, and upload the smart contract formed by the transaction order to the blockchain; the update information includes update instructions and update content.

[0050] The preset format is a format that can be entered into the blockchain system.

[0051] The pre-processing module 101 is located at the publisher that updates the digital signature algorithm.

[0052] The online storage module 102 is used to store the smart contract generated each time according to the update information of the digital signature algorithm. The smart contract cannot be called and can only be used to view the encoded update instructions and update content stored therein.

[0053] The update index module 103 is used to record the contract address of the smart contract generated each time according to the update information of the digital signature system 104, as well as the algorithm name and algorithm version number corresponding to the contract address.

[0054] Figure 1 Contract A and Contract B both represent smart contracts.

[0055] As a specific implementation, the update index module 103 is located in the client software of all users, and the digital signature system 104 searches for the digital signature algorithm by querying the update index module 103. The update index module 103 has two functions: the first function is to record the contract address in the blockchain that is responsible for recording and storing each update; the second function is to obtain the corresponding update instructions and codes according to the address, and decode and compile them to complete the update of the digital signature system 104.

[0056] The digital signature system 104 is located in the client of each blockchain. The digital signature system 104 is used to obtain the smart contract from the online storage module 102 through the update index module 103 according to the digital signature algorithm application information, and update the update information of the digital signature algorithm corresponding to the acquired smart contract to the digital signature library; the digital signature algorithm application information includes the algorithm name, the algorithm version number and the contract address; the digital signature library is used to store various digital signature algorithms.

[0057] Digital signature algorithms include BLS signature algorithm, ECDSA signature algorithm and EdDSA signature mechanism.

[0058] like Figure 2 As shown, the process of the digital signature system 104 acquiring the smart contract from the online storage module 102 through the update index module 103 includes:

[0059] The digital signature system 104 sends digital signature algorithm application information to the update index module 103 .

[0060] The update index module 103 matches the algorithm name and algorithm version number according to the digital signature algorithm application information. If the algorithm name and algorithm version number in the digital signature algorithm application information exist in the update index module 103, the update index module 103 obtains the smart contract from the online storage module 102 according to the contract address corresponding to the algorithm name and algorithm version number in the digital signature algorithm application information, and sends the smart contract to the digital signature system 104.

[0061] like Figure 2 As shown, when the current digital signature system 104 calls the digital signature algorithm directly from the online storage module 102, it specifically includes: the virtual machine sends a request to the digital signature system 104 to apply for a certain signature algorithm, and passes the digital signature algorithm name (algorithm name), the digital signature algorithm version number (algorithm version number) and the contract address of the digital signature algorithm code as parameters in the form of a string to the digital signature system 104.

[0062] The digital signature system 104 first determines the legality of these parameters: if they are all legal and the code of the digital signature algorithm is locally stored, it will be directly run and the result will be returned; if the algorithm name does not exist or the version number is too high, the corresponding update information will be found through the update index module 103. If the update index module 103 finds the corresponding update information, it will obtain the corresponding smart contract, decode the database in the smart contract, obtain the update instructions and update content, and then update the update instructions and update content to the local digital signature library, and apply the corresponding digital signature algorithm to the digital signature system 104, and then call and return the result. If the corresponding update information is not found through the update index module 103, it is considered that the parameters are wrong and an error is reported.

[0063] The update instructions include adding, modifying and deleting, and the update content includes the code and algorithm name corresponding to the update instruction.

[0064] like Figure 3 As shown, when the update instruction in the update information of the digital signature algorithm is to add, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module 102 includes:

[0065] The publisher starts the adding operation and inputs the adding instruction, the adding algorithm name, and the adding algorithm code into the preprocessing module 101 .

[0066] The pre-processing module 101 calls the built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid, so as to determine whether it has the permission to add: if it is invalid, it ends and reports an error; if it is valid, it proceeds to the next step.

[0067] If the digital signature algorithm corresponding to the update content is valid, the update index module 103 searches whether the algorithm name corresponding to the update content already exists in the update index module 103 (checks whether the added digital signature algorithm name is repeated with an existing one).

[0068] If the algorithm name corresponding to the updated content already exists, the process ends and an error is reported.

[0069] If the algorithm name corresponding to the updated content does not exist, the preprocessing module 101 converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into the transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

[0070] The update index module 103 in the user's client records the adding operation information, and the adding is completed. The adding operation information includes the algorithm name, the algorithm version number and the code of the added digital signature algorithm.

[0071] like Figure 4 As shown, when the update instruction in the update information of the digital signature algorithm is modification, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module 102 includes:

[0072] The publisher starts the modification operation and inputs the modification instruction, the modified algorithm name, the modified algorithm version number and the modified digital signature algorithm code into the pre-processing module 101 .

[0073] The preprocessing module 101 calls a built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid.

[0074] If the digital signature algorithm corresponding to the update content is valid, the update index module 103 searches whether the algorithm name corresponding to the update content already exists in the update index module 103 .

[0075] If the algorithm name corresponding to the updated content exists, the preprocessing module 101 converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into the transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

[0076] The update index module 103 in the user's client records the modification operation information, and the modification operation is completed. The modification operation information includes the algorithm name, algorithm version number and the code of the modified digital signature algorithm.

[0077] like Figure 5 As shown, when the update instruction in the update information of the digital signature algorithm is deletion, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module 102 includes:

[0078] The publisher starts the deletion operation and inputs the deletion instruction, the name of the deleted algorithm, the version number of the deleted algorithm and the deleted digital signature algorithm code into the pre-processing module 101 .

[0079] The preprocessing module 101 calls a built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid.

[0080] If the digital signature algorithm corresponding to the update content is valid, the update index module 103 searches whether the algorithm name corresponding to the update content already exists in the update index module 103 .

[0081] If the algorithm name corresponding to the updated content exists, the preprocessing module 101 converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into the transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

[0082] The update index module 103 in the user's client records the deletion operation information, and the deletion operation ends. The deletion operation information includes the algorithm name, algorithm version number, and the code of the deleted digital signature algorithm.

[0083] The preprocessing module 101 includes an encoding unit and a smart contract generation unit.

[0084] The encoding unit is used to perform base64 encoding on the update information of the digital signature algorithm to generate the data block.

[0085] The smart contract generation unit is used to write the data block into the transaction order and upload the smart contract formed by the transaction order to the blockchain.

[0086] If the blockchain system needs to cross-chain verify the digital signatures generated by other chains, a digital signature system is deployed in it. Considering that cross-chain verification may use digital signature algorithms that were not previously available in the future, and not wanting to update the digital signature system by updating the blockchain software (updating the blockchain software will cause hard forks and consume a lot of resources), this software is deployed to achieve online updates of the digital signature system, thereby reducing update costs and improving update efficiency.

[0087] Figure 6 The following is a flow chart of a cross-chain digital signature algorithm update method of the present invention. Figure 6 As shown, a cross-chain digital signature algorithm update method includes the following steps:

[0088] Step 201: The update information of the digital signature algorithm is converted into a data block in a preset format through a pre-processing module, the data block is written into a transaction sheet, and the smart contract formed by the transaction sheet is uploaded to the blockchain; the update information includes update instructions and update content.

[0089] Step 202: The smart contract generated each time according to the update information of the digital signature algorithm is stored through an online storage module.

[0090] Step 203: Record the contract address of the smart contract generated each time according to the update information of the digital signature system, as well as the algorithm name and algorithm version number corresponding to the contract address through the update index module.

[0091] Step 204: According to the digital signature algorithm application information issued by the digital signature system, the smart contract is obtained from the online storage module through the update index module, and the update information of the digital signature algorithm corresponding to the smart contract is updated to the digital signature library; the digital signature algorithm application information includes the algorithm name, the algorithm version number and the contract address; the digital signature library is located in the digital signature system, the digital signature library is used to store various digital signature algorithms, and the digital signature system is located in the client of each blockchain.

[0092] The explanations of some professional terms in the present invention are as follows.

[0093] Smart contract: It is a piece of executable code that is deployed to the blockchain by publishing transactions. After deployment, it can be called by transactions to produce running results. Contract calls will incur certain costs depending on the complexity of the contract.

[0094] Virtual Machine: It is the operating environment of smart contracts, which is used to ensure that blockchain clients deployed in different environments can produce the same results when running smart contracts. The virtual machine mechanism was first used in Ethereum.

[0095] Digital signature algorithm: A cryptographic algorithm used to implement entity authentication. Digital signature algorithms usually include three sub-algorithms: key generation algorithm, signature generation algorithm, and signature verification algorithm. The key generation algorithm generates a random private key and calculates the corresponding public key based on the private key. The input of the signature generation algorithm is the private key and the message to be signed, and the output is the signature of the message. The input of the signature verification algorithm is the public key, the signed message, and the signature, and the output is the verification result of the legitimacy of the signature. The input of the above three algorithms is usually an element on the elliptic curve group or a finite field.

[0096] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. As for the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0097] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A cross-chain digital signature algorithm update system, characterized in that: It includes a pre-processing module, an online storage module, an update index module and a digital signature system connected in sequence; The preprocessing module is used to convert the update information of the digital signature algorithm into a data block in a preset format, write the data block into a transaction order, and upload the smart contract formed by the transaction order to the blockchain; the update information includes update instructions and update content; The online storage module is used to store the smart contract generated each time according to the update information of the digital signature algorithm; The update index module is used to record the contract address of the smart contract generated each time according to the update information of the digital signature system, and the algorithm name and algorithm version number corresponding to the contract address; The digital signature system is located in the client of each blockchain, and is used to obtain the smart contract from the online storage module through the update index module according to the digital signature algorithm application information, and update the update information of the digital signature algorithm corresponding to the acquired smart contract to the digital signature library; the digital signature algorithm application information includes the algorithm name, the algorithm version number and the contract address; The digital signature library is used to store various digital signature algorithms; The process of the digital signature system obtaining the smart contract from the online storage module through the update index module includes: The digital signature system sends digital signature algorithm application information to the update index module; The update index module matches the algorithm name and the algorithm version number according to the digital signature algorithm application information. If the algorithm name and the algorithm version number in the digital signature algorithm application information exist in the update index module, the update index module obtains the smart contract from the online storage module according to the contract address corresponding to the algorithm name and the algorithm version number in the digital signature algorithm application information, and sends the smart contract to the digital signature system.

2. The cross-chain digital signature algorithm update system according to claim 1 is characterized in that: The update instructions include adding, modifying and deleting, and the update content includes the code and algorithm name corresponding to the update instruction.

3. The cross-chain digital signature algorithm update system according to claim 2 is characterized in that: When the update instruction in the update information of the digital signature algorithm is to add, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module includes: The preprocessing module calls a built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid; If the digital signature algorithm corresponding to the update content is valid, the update index module searches whether the algorithm name corresponding to the update content already exists in the update index module; If the algorithm name corresponding to the updated content does not exist, the preprocessing module converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into the transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

4. The cross-chain digital signature algorithm update system according to claim 2 is characterized in that: When the update instruction in the update information of the digital signature algorithm is modification, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module includes: The preprocessing module calls a built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid; If the digital signature algorithm corresponding to the update content is valid, the update index module searches whether the algorithm name corresponding to the update content already exists in the update index module; If the algorithm name corresponding to the updated content exists, the preprocessing module converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into a transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

5. The cross-chain digital signature algorithm update system according to claim 2 is characterized in that: When the update instruction in the update information of the digital signature algorithm is deletion, the process of generating a smart contract from the update information of the digital signature algorithm and storing it in the online storage module includes: The preprocessing module calls a built-in multi-signature verification algorithm to detect whether the digital signature algorithm corresponding to the update content is valid; If the digital signature algorithm corresponding to the update content is valid, the update index module searches whether the algorithm name corresponding to the update content already exists in the update index module; If the algorithm name corresponding to the updated content exists, the preprocessing module converts the updated information of the digital signature algorithm into a data block in a preset format, writes the data block into a transaction order, and uploads the smart contract formed by the transaction order to the blockchain.

6. The cross-chain digital signature algorithm update system according to claim 1 is characterized in that: The preprocessing module includes an encoding unit and a smart contract generation unit; The encoding unit is used to perform base64 encoding on the update information of the digital signature algorithm to generate the data block; The smart contract generation unit is used to write the data block into the transaction order and upload the smart contract formed by the transaction order to the blockchain.

7. A cross-chain digital signature algorithm update method, characterized in that: include: The update information of the digital signature algorithm is converted into a data block in a preset format through a preprocessing module, the data block is written into a transaction sheet, and the smart contract formed by the transaction sheet is uploaded to the blockchain; the update information includes update instructions and update content; The smart contract generated each time according to the update information of the digital signature algorithm is stored through an online storage module; Recording the contract address of the smart contract generated each time according to the update information of the digital signature system, and the algorithm name and algorithm version number corresponding to the contract address through the update index module; According to the digital signature algorithm application information issued by the digital signature system, the smart contract is obtained from the online storage module through the update index module, and the update information of the digital signature algorithm corresponding to the smart contract is updated to the digital signature library; the digital signature algorithm application information includes the algorithm name, the algorithm version number and the contract address; the digital signature library is located in the digital signature system, the digital signature library is used to store various digital signature algorithms, and the digital signature system is located in the client of each blockchain; The process of the digital signature system obtaining the smart contract from the online storage module through the update index module includes: The digital signature system sends digital signature algorithm application information to the update index module; The update index module matches the algorithm name and the algorithm version number according to the digital signature algorithm application information. If the algorithm name and the algorithm version number in the digital signature algorithm application information exist in the update index module, the update index module obtains the smart contract from the online storage module according to the contract address corresponding to the algorithm name and the algorithm version number in the digital signature algorithm application information, and sends the smart contract to the digital signature system.

Citation Information

Patent Citations

  • Block chain-based data processing method, apparatus, storage medium, and electronic device

    CN108235772A

  • Fabric block chain configuration method and system based on intelligent contract

    CN110058878A