Anti-quantum security cross-chain communication method and system, and electronic equipment

By introducing the bridge and anti -quantum signature algorithm in cross -chain communication, the problem of lack of security and interoperability in the existing technology in the existing technology in the quantum computing environment, and realized the classic blockchain and anti -quantum blocks. The security and compatible cross -chain communications between chains have improved the security and efficiency of transactions.

CN119363353APending Publication Date: 2025-01-24BUBI (BEIJING) NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411461824.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The existing cross-chain communication solutions are difficult to ensure security when facing the threat of quantum computing. Due to the interoperability problems between different blockchain systems, there are technical obstacles, resulting in increased system complexity and cost, transaction processing efficiency and security. Reduced sexuality.

Method used

Generate the key pair of the signature algorithm used by the bridge, and verify the registration information through the bridge connection device, associate the source chain account with the target chain public key, and use the target chain to support the signature algorithm (including anti -quantum signature algorithm) Sign a signature of cross -chain asset transfer transactions to ensure the security and compatibility of cross -chain transactions.

Benefits of technology

Achieve the security and compatible cross -chain communication between the classic blockchain and the anti -quantum blockchain, improve the security and reliability of cross -chain asset transfer, reduce the complexity and cost of the system, and improve the efficiency of transaction processing. Essence

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119363353A_ABST
    Figure CN119363353A_ABST
Patent Text Reader

Abstract

The invention provides an anti-quantum-security cross-chain communication method. The anti-quantum-security cross-chain communication method comprises the following steps: generating a key pair of a signature algorithm used by a target chain through a bridge; submitting the first public key in the key pair, the signature of the account on the source chain and the second public key information of the account to a bridge for registration; the bridge verifies the registration information and associates the source chain account with the first public key; signing the transaction by using a signature algorithm supported by the target chain; the bridge receives and uses the registered first public key to verify the signature of the transaction; wherein the bridge supports a plurality of signature algorithms, and the signature algorithms comprise an anti-quantum signature algorithm; the target chain comprises an anti-quantum block chain, and the source chain comprises a classic block chain. And reliable cross-chain communication with safe, compatible and anti-quantum characteristics is realized between the classic key block chain and the anti-quantum block chain. The system, the electronic equipment and the readable storage medium provided by the invention have corresponding advantages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and specifically relates to a quantum-resistant cross-chain communication method, system and corresponding electronic equipment. Background Art

[0002] With the rapid development of quantum computing technology, its powerful parallel computing capabilities pose a severe challenge to traditional information security systems. Classic blockchain, as a representative of distributed ledger technology, mainly relies on classic public key encryption algorithms such as RSA and ECC to ensure its security. However, these encryption algorithms are particularly vulnerable to quantum computing attacks, making the security of classic blockchain systems face unprecedented threats.

[0003] In order to meet the challenges of quantum computing, quantum-resistant blockchains have emerged. Quantum-resistant blockchains refer to blockchain systems that use cryptographic algorithms that can resist quantum attacks (such as lattice cryptography, multilinear mapping, hash functions, etc. in quantum-resistant cryptography) to ensure their security. These cryptographic algorithms are designed to overcome the ability of quantum computing to crack traditional cryptographic algorithms, thereby ensuring the security of blockchain systems in the quantum era. In the widespread application of blockchain technology, cross-chain communication has become the key to the flow of assets and information between different blockchain systems. Classic blockchains (such as Bitcoin and Ethereum) are still widely used and cannot be abandoned immediately. However, existing cross-chain solutions mainly focus on the interconnection between classic blockchain systems.

[0004] It is necessary to achieve secure, compatible, and quantum-resistant cross-chain communication between the classical key blockchain and the quantum-resistant blockchain. However, due to the limitations of existing technologies, there is still a lack of mature technical solutions for how to ensure the security of cross-chain communication under the threat of quantum computing. Specifically, many current blockchain systems often do not fully consider interoperability with other blockchains when designing, resulting in technical barriers to cross-chain communication. In particular, when it comes to different blockchains using different signature algorithms and encryption mechanisms, the interoperability problem is particularly prominent. Existing cross-chain solutions often need to be implemented through complex protocols and multiple intermediate steps, which not only increases the complexity and cost of the system, but also reduces the efficiency and security of transaction processing. If quantum computers become powerful enough in the future, existing encryption methods (such as RSA and ECC) will no longer be secure, which will pose a serious threat to the security of blockchain systems. In the process of cross-chain transactions, there is a risk of being attacked and tampered with because multiple blockchain systems and intermediate nodes need to be involved. Existing cross-chain solutions often have deficiencies in security and are difficult to resist various complex attack methods.

[0005] Therefore, there is an urgent need to develop a quantum-resistant cross-chain communication method, system and corresponding electronic equipment to improve security and compatibility, so as to promote the in-depth application of computer technology. Summary of the invention

[0006] The present invention is to solve all or part of the problems of the above-mentioned prior art. On the one hand, the present invention proposes a quantum-resistant cross-chain communication method, which can realize secure and compatible cross-chain communication between different blockchain systems, thereby further ensuring the security of cross-chain asset transfer. On the other hand, the system provided by the present invention has higher reliability of cross-chain communication and balances the complexity and cost of the system, meeting the urgent needs of the blockchain industry for efficient, secure and compatible cross-chain solutions. The present invention also provides corresponding electronic devices and readable storage media.

[0007] On one hand, the present invention provides a quantum-resistant cross-chain communication method, comprising: generating a key pair of a signature algorithm used by a target chain through a bridge; submitting a first public key in the key pair, a signature of an account on a source chain, and a second public key information of the account to the bridge for registration; the bridge verifies the registration information and associates the source chain account with the first public key; signing a transaction using a signature algorithm supported by the target chain; the bridge receives and uses the registered first public key to verify the signature of the transaction; wherein the bridge supports multiple signature algorithms, and the signature algorithm includes a quantum-resistant signature algorithm; the target chain includes a quantum-resistant blockchain, and the source chain includes a classical blockchain; the transaction includes a cross-chain asset transfer transaction.

[0008] The quantum-resistant and secure cross-chain communication method provided by the present invention generates a key pair of the signature algorithm used by the target chain through a bridge, ensuring that transactions on the target chain can be signed using the quantum-resistant signature algorithm; the registration information is verified through the bridge, and the source chain account is associated with the target chain public key, and the source chain account is correctly matched with the target chain public key; the cross-chain asset transfer transaction is signed using the signature algorithm (including the quantum-resistant signature algorithm) supported by the target chain to ensure the security of the cross-chain transaction. Cross-chain communication between the classic blockchain and the quantum-resistant blockchain is realized, solving the interoperability problem between different blockchain systems. At the same time, by introducing the quantum-resistant signature algorithm, the security of cross-chain communication in a quantum computing environment is ensured.

[0009] In some embodiments, the bridge includes a first bridge of the source chain; the process of the cross-chain asset transfer transaction includes: step S1. The user registers a signature account through the first bridge; step S2. The user initiates a cross-chain asset transfer request on the source chain to generate a first transaction; step S3. The first bridge receives and verifies the first transaction, and after the verification is passed, generates a second transaction; step S4. The node of the source chain receives the second transaction, calls the cross-chain contract after verification, and transfers the source account assets and locks them in the contract, and initiates a third transaction containing locked asset information to the target chain; step S5. The target chain receives the third transaction and calls the cross-chain contract for processing.

[0010] By introducing the first bridge of the source chain as an intermediary, convenient registration of user signature accounts is achieved, and the entire process from the user initiating a cross-chain asset transfer request to the target chain processing the request is optimized, including key steps such as transaction generation, verification, asset locking, and cross-chain contract calls, ensuring the efficient execution and security of cross-chain asset transfers, further enhancing the reliability and practicality of cross-chain communication, and helping to reduce the complexity and development costs of the system.

[0011] In some embodiments, the step S1 includes: S101. The first bridge generates a key pair of the quantum-resistant signature algorithm used by the target chain; S102. The first bridge receives a registration request; S103. The first bridge verifies and maintains a mapping table to associate the source chain account with the first public key; wherein the registration request includes the first public key, the signature of the account on the source chain, and the second public key information.

[0012] By generating and applying the key pair of the quantum-resistant signature algorithm through the first bridge, the security in cross-chain communication is enhanced to resist the potential threat of quantum computing. At the same time, by verifying and maintaining the mapping table, the user's classic blockchain account is associated with the quantum-resistant public key used on the quantum-resistant blockchain. The bridge maintains a mapping table, which associates the user's classic blockchain account with the quantum-resistant public key used on the quantum-resistant blockchain through the mapping relationship, ensuring that the user's identity and signature can be correctly verified during cross-chain transactions, realizing the effective management of account information and the unified authentication of cross-chain identities, and improving the accuracy and reliability of cross-chain asset transfers.

[0013] In some embodiments, in step S2, the user signs the first transaction using a quantum-resistant signature algorithm supported by the target chain.

[0014] In some embodiments, the step S3 includes: S301. The user sends the signed first transaction to the first bridge; S302. The first bridge verifies the first transaction according to the mapping table; S303. If the verification passes, the first bridge signs the second transaction using the signature algorithm supported by the source chain used.

[0015] The user sends the signed first transaction to the first bridge and verifies it using the mapping table to ensure the legitimacy and validity of the transaction. At the same time, the first bridge uses the signature algorithm supported by the source chain to sign the second transaction, which not only enhances the security of the transaction, but also ensures the compatibility and consistency of the signature algorithm during the cross-chain transaction process, further improving the efficiency and reliability of cross-chain asset transfer.

[0016] In some embodiments, in step S4, the cross-chain contract records the signature of the first transaction.

[0017] By recording the signature of the first transaction in the cross-chain contract, the traceability and immutability of transaction data are achieved, the transparency and security of the cross-chain asset transfer process are enhanced, and it helps to provide conclusive evidence in the event of disputes and ensure the fairness and legality of cross-chain transactions.

[0018] In some embodiments, the bridge includes a second bridge of the target chain; the step S5 includes: S501. The cross-chain contract queries the signature of the first transaction from the source chain and verifies it using the signature algorithm supported by the target chain; S502. After the verification is passed, the target chain issues assets to the target chain account according to the transaction parameters of the third transaction; S503. The second bridge signs the confirmed transaction using the signature algorithm supported by the source chain and sends it to the source chain.

[0019] By introducing the second bridge of the target chain and verifying the signature of the first transaction of the source chain in the cross-chain contract, the consistency and legitimacy of the cross-chain transaction are ensured. At the same time, the target chain issues assets to the target chain account according to the parameters of the third transaction, realizing the accurate transfer of assets. The second bridge uses the signature algorithm supported by the source chain to sign the confirmed transaction and send it back to the source chain, which not only enhances the security of the transaction, but also realizes the closed loop of the cross-chain transaction process, and improves the integrity and reliability of cross-chain asset transfer.

[0020] In some embodiments, the step S5 further includes: S504. If the target chain does not confirm the transaction within a preset time, the source chain automatically unlocks and returns the locked assets to the source account.

[0021] By introducing a transaction confirmation mechanism within a preset time, if the target chain fails to confirm the transaction within the specified time, the source chain will automatically unlock and return the locked assets to the source account. The introduction of a timeout mechanism ensures that assets can be safely rolled back when a failure occurs during the cross-chain process, effectively preventing asset losses caused by cross-chain transaction failures or delays, improving the security and user experience of cross-chain asset transfers, and also enhancing the robustness and fault tolerance of the cross-chain transaction system.

[0022] On the other hand, the present invention provides a quantum-resistant cross-chain communication system for executing the quantum-resistant cross-chain communication method provided in one aspect of the present invention; the system includes: a bridge unit, a source chain unit, a cross-chain contract unit, and a target chain unit; the bridge unit includes a first bridge deployed on the source chain unit; the first bridge is configured to register a signature account, receive and verify the first transaction, and generate a second transaction after the verification; the source chain unit is configured to receive the second transaction, call the cross-chain contract unit after verification, and transfer and lock the source account assets in the contract, and initiate a third transaction containing locked asset information to the target chain unit; the target chain unit is configured to receive the third transaction and call the cross-chain contract unit for processing.

[0023] The whole system realizes quantum-resistant cross-chain asset transfer through close collaboration between various units. Through the coordination of the bridge unit between the source chain and the target chain, quantum-resistant signature account and transaction verification technology are adopted to effectively resist the risk of quantum computing attacks and ensure the security and immutability of cross-chain transactions. In addition, the application of cross-chain contract units makes the transfer of assets between the source chain and the target chain more automated and intelligent, improving the overall performance and user experience of the system. The system supports multiple signature algorithms and is compatible with different types of users and transaction requirements, improving the scalability and compatibility of the system. As the middleware connecting different blockchain networks, the bridge enables the system to easily adapt to the cross-chain transaction requirements between different blockchain networks. The process of cross-chain asset transfer has been optimized, the complexity and cost of the system have been reduced, and the efficiency and security of transaction processing have been improved.

[0024] In some embodiments, the bridge unit includes a second bridge deployed on the target chain unit; the second bridge is configured to: sign the confirmed transaction using the signature algorithm supported by the source chain unit, and send it to the source chain unit; if the transaction is not confirmed within a preset time, a timeout rollback notification is sent to the source chain unit, and the source chain unit automatically unlocks and returns the locked assets to the source account.

[0025] On the other hand, the present invention provides an electronic device, comprising a memory, a processor, and one or more computer programs, wherein the computer program is stored in the memory and is configured to be executed by several of the processors to execute the quantum-resistant cross-chain communication method provided on the one hand of the present invention.

[0026] The present invention also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the quantum-resistant cross-chain communication method provided in one aspect of the present invention are implemented.

[0027] Compared with the prior art, the main beneficial effects of the present invention are:

[0028] 1. The quantum-resistant cross-chain communication method provided by the present invention fully realizes the safe and reliable cross-chain asset transfer between the classical blockchain and the quantum-resistant blockchain, effectively improves the quantum attack resistance of the cross-chain communication, and ensures the security and integrity of the cross-chain transaction data.

[0029] 2. The present invention provides a system that realizes quantum-resistant cross-chain communication through the collaborative work of a bridge unit, a source chain unit, a cross-chain contract unit, and a target chain unit, ensuring the safe and reliable transfer of assets between different blockchains. At the same time, the system compatibility and scalability are further improved, and efficient transaction processing can be achieved with low system complexity and low development cost.

[0030] 3. The electronic device and readable storage medium provided by the present invention can be used to automatically implement the quantum-resistant cross-chain communication method of the present invention, have corresponding advantages, and are conducive to further promotion in practical applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 Schematic diagram of a quantum-resistant and secure cross-chain communication method according to an embodiment of the present invention.

[0032] Figure 2 This is a schematic diagram of the process of quantum-resistant cross-chain transactions according to an embodiment of the present invention.

[0033] Figure 3 Schematic diagram of the system architecture of an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The technical solutions in the specific embodiments of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.

[0035] The present invention illustrates the invention through the following embodiments, which is a quantum-resistant cross-chain communication method, system and electronic device, which are widely applicable to various scenarios that require asset transfer, data sharing or smart contract interoperation across blockchain networks. For example, in the field of decentralized finance (DeFi), funds can be seamlessly transferred on different blockchain platforms, participating in diversified financial applications, and optimizing asset configuration. At the same time, for users holding digital assets on different blockchains, a safe and convenient cross-chain asset exchange method is provided, which reduces transaction costs and risks. In addition, in the field of blockchain games, cross-chain transfer of game assets can be supported, enhancing the interactivity of games and the game experience of players. For enterprises or institutions that need to share data across chains but protect privacy, it can be used as a secure data transmission mechanism to ensure the integrity and confidentiality of data during transmission. The quantum-resistant cross-chain communication method, system and electronic device provided in the embodiments realize efficient, safe and reliable cross-chain communication capabilities, providing strong support for interoperability, asset liquidity and system security between blockchain ecosystems.

[0036] The quantum-resistant and secure cross-chain communication method provided in this embodiment can be implemented by the electronic device of this embodiment. The exemplary electronic device includes a memory, a processor, and one or more computer programs, wherein the computer program is stored in the memory and is configured to be executed by one or more processors. The specific quantum-resistant and secure cross-chain communication method provided in this embodiment.

[0037] like Figure 1 As shown, the quantum-resistant and secure cross-chain communication method provided in this embodiment includes: generating a key pair of a signature algorithm used by a target chain through a bridge; submitting the first public key in the key pair, the signature of an account on a source chain, and the second public key information of the account to the bridge for registration; the bridge verifies the registration information and associates the source chain account with the first public key; signing the transaction using the signature algorithm supported by the target chain; the bridge receives and uses the registered first public key to verify the signature of the transaction; wherein the bridge supports multiple signature algorithms, including a quantum-resistant signature algorithm; the target chain includes a quantum-resistant blockchain, and the source chain includes a classical blockchain; the transaction includes a cross-chain asset transfer transaction.

[0038] In the example, the first public key is a public key associated with an account or address on the target chain, which is used as a key basis for verifying the legitimacy and integrity of transactions during cross-chain communication, especially in the signature verification phase of cross-chain transactions. The first public key is generated on the target chain or associated with the target chain account. During the initialization phase of cross-chain communication, the public key will be submitted to the bridge for registration so that the bridge can associate it with the source chain account and verify the signature of the transaction in subsequent cross-chain transactions. The second public key is a public key associated with an account or address on the source chain, which is mainly used as part of the source chain account identity authentication during the registration phase of cross-chain communication to ensure that both parties in the cross-chain communication are legal and credible. The second public key is generated on the source chain and is usually stored and managed together with the source chain account. During the initialization phase of cross-chain communication, the second public key information will be extracted and submitted to the bridge for registration together with the first public key and the signature of the source chain account.

[0039] Classic blockchains (such as Bitcoin and Ethereum) usually use elliptic curve-based signature algorithms (such as ECDSA), while quantum-resistant blockchains use signature algorithms that can resist quantum computing attacks (such as signature algorithms using lattice cryptography). In order to achieve interoperability between the two blockchains, the bridge needs to be able to support different signature algorithms to ensure the validity and security of transactions when performing operations such as asset transfer and data exchange.

[0040] The transaction verification mechanisms between different blockchain systems are often different, which makes cross-chain transaction verification complex and error-prone. The bridge mechanism supports multiple signature algorithms, which enables fast and accurate verification of cross-chain transactions and solves the transaction verification problem; the bridge mechanism supports multiple signature algorithms, which enables compatibility between classic blockchains and quantum-resistant blockchains. In the example quantum-resistant secure cross-chain communication method, key generation and registration, key verification and transaction processing support quantum-resistant signature algorithms, ensuring compatibility and security between classic blockchains and quantum-resistant blockchains.

[0041] In this embodiment, the bridge mechanism not only realizes the interoperability between different blockchain systems, but also improves the compatibility and security of cross-chain communication by supporting multiple signature algorithms (including quantum-resistant signature algorithms), which can effectively solve the compatibility problems in existing cross-chain solutions, making the transfer of assets and information between different blockchain systems smoother and safer. By integrating quantum-resistant encryption technology, the key management problem is overcome, ensuring the security of keys in quantum computing environments. By supporting multiple signature algorithms through the bridge mechanism, fast and accurate verification of cross-chain transactions is achieved, solving the problem of transaction verification.

[0042] In some embodiments, the bridge comprises a first bridge of the source chain. Figure 2 As shown, the process of cross-chain asset transfer transaction includes: step S1. The user registers a signature account through the first bridge; step S2. The user initiates a cross-chain asset transfer request on the source chain to generate a first transaction; step S3. The first bridge receives and verifies the first transaction, and after the verification is passed, a second transaction is generated; step S4. The node of the source chain receives the second transaction, calls the cross-chain contract after verification, and transfers the source account assets and locks them in the contract, and initiates a third transaction containing locked asset information to the target chain; step S5. The target chain receives the third transaction and calls the cross-chain contract for processing.

[0043] A cross-chain asset transfer method provided by the embodiment is intended to solve the compatibility and security issues between classic blockchains and quantum-resistant blockchains. By registering multiple signature algorithms in the bridge mechanism, it supports the verification and transaction processing of multiple signature methods including quantum-resistant signatures, ensuring the security of cross-chain operations. The example cross-chain asset transfer transaction method effectively solves the compatibility and quantum-resistant security issues of different blockchain signature algorithms.

[0044] In some embodiments, step S1 includes: S101. The first bridge generates a key pair of the quantum-resistant signature algorithm used by the target chain; S102. The first bridge receives a registration request; S103. The first bridge verifies and maintains a mapping table to associate the source chain account with the first public key; wherein the registration request includes the first public key, the signature of the account on the source chain, and the second public key information.

[0045] In some embodiments, in step S2, the user signs the first transaction using a quantum-resistant signature algorithm supported by the target chain.

[0046] In some embodiments, step S3 includes: 301. The user sends the signed first transaction to the first bridge; 302. The first bridge verifies the first transaction according to the mapping table; 303. If the verification passes, the first bridge signs the second transaction using the signature algorithm supported by the source chain used.

[0047] In some embodiments, in step S4, the cross-chain contract records the signature of the first transaction.

[0048] In some embodiments, the bridge includes a second bridge of the target chain; step S5 includes: S501. The cross-chain contract queries the signature of the first transaction from the source chain and verifies it using the signature algorithm supported by the target chain; S502. After the verification is passed, the target chain issues assets to the target chain account according to the transaction parameters of the third transaction; S503. The second bridge signs the confirmed transaction using the signature algorithm supported by the source chain and sends it to the source chain.

[0049] In some embodiments, step S5 also includes: S504. If the target chain does not confirm the transaction within a preset time, the source chain automatically unlocks and returns the locked assets to the source account.

[0050] The example quantum-resistant and secure cross-chain communication method uses a bridge mechanism to support quantum-resistant signature algorithms, and ensures compatibility and security between classic blockchains and quantum-resistant blockchains through specific cross-chain transaction processing procedures and timeout mechanisms. It overcomes multiple technical difficulties in key management, transaction verification, and compatibility of existing cross-chain solutions. The cross-chain asset transfer transaction in this embodiment is used as an example for illustrative purposes, but is not limiting.

[0051] refer to Figure 3 As shown, an illustrative quantum-resistant cross-chain communication system in an embodiment of the present invention is used to execute the quantum-resistant cross-chain communication method provided in an embodiment of the present invention. The system includes: a user unit 1, a bridge unit 2, a source chain unit 3A, a target chain unit 3B, and a cross-chain contract unit 4. The user unit 1 is configured to perform user registration and initiation of transaction requests; the bridge unit 2 includes a first bridge 2A deployed in the source chain unit; the first bridge 2A is configured to register a signature account, receive and verify the first transaction, and generate a second transaction after verification; the source chain unit 3 is configured to receive the second transaction, call the cross-chain contract unit 4 after verification, and transfer the source account assets and lock them in the contract, and initiate a third transaction containing locked asset information to the target chain unit 3B; the target chain unit 3B is configured to receive the third transaction and call the cross-chain contract unit for processing. The illustrative cross-chain contract unit 4 is deployed on the source chain and the target chain respectively, and contracts 4A and 4B are used to implement the locking and release logic of assets.

[0052] In some embodiments, the bridge unit 2 also includes a second bridge 2B deployed on the target chain unit. The second bridge 2B is configured to: use the signature algorithm supported by the source chain unit 3A to sign the confirmed transaction and send it to the source chain unit 3A; if the transaction is not confirmed within the preset time, a timeout rollback notification is sent to the source chain unit 3A, and the source chain unit 3A automatically unlocks and returns the locked assets to the source account. The timeout mechanism ensures that assets can be safely rolled back when encountering a failure during the cross-chain process.

[0053] The following combination Figure 2 and Figure 3, the process of users conducting cross-chain transactions is specifically explained. In the example cross-chain transaction, by integrating quantum-resistant encryption technology in cross-chain communication, it is a solution that can resist quantum computing attacks and ensure the security of cross-chain asset transfers. The example cross-chain asset transfer process is as follows: Step S10: The user registers a signature account through the bridge. Step S20: The user sends a cross-chain asset transfer transaction (first transaction) to the bridge. Step S30: The bridge verifies the user identity and cross-chain transaction and generates a second transaction. Step S40: The source chain processes the second transaction. Step S50: The target chain processes the third transaction. In the example case, there are two types of blockchains, namely the classical blockchain and the quantum-resistant blockchain. Figure 3 As shown, the source chain unit 3A and the target chain unit 3B respectively verify the classic signature, verify the asset transfer transaction, mint assets, etc.

[0054] In step S10 of the example, the user registers and obtains a quantum-resistant signature account through the user registration module, and the user uses the signature account to initiate a cross-chain transaction request from the source chain through the transaction initiation module. Specifically: 1. Key generation. The user generates a public-private key pair of the quantum-resistant signature algorithm used by the target chain through the bridge of the source chain. This key pair will be used for future cross-chain transaction signatures to ensure quantum-resistant security. 2. Initiate registration to the bridge. The user submits a registration request to the first bridge 2A. The request contains the generated quantum-resistant public key, the classic signature of the user's account on the source chain, and the public key information of the account. 3. The bridge verifies the registration information and updates the mapping table. After receiving the registration request, the first bridge 2A first verifies whether the user's classic signature matches the source chain account information to confirm the user's identity. After the verification is passed, the bridge will maintain a mapping table locally to associate the user's source chain account with the quantum-resistant signature public key. The example mapping table supports multiple signature algorithms, allowing users to use multiple signature algorithms for transactions in the future.

[0055] In the example step S20, the user sends a cross-chain asset transfer transaction (first transaction) to the bridge. Specifically: 1. The user initiates a cross-chain asset transfer request on the source chain and decides to transfer assets from the classic chain to the target chain (anti-quantum chain). The user generates the first transaction, which is a cross-chain asset transfer transaction. The source account of the first transaction is the user's account address on the source chain, and the target account is the cross-chain contract 4A account address, and also includes the target chain of the asset transfer, the receiving account address, the asset amount, and the asset type parameters. These parameters are used by the source chain to identify the target of the asset transfer. 2. The user signs the cross-chain transaction request using the anti-quantum signature algorithm supported by the target chain. The anti-quantum signature ensures the integrity and anti-quantum security of the transaction request.

[0056] In the example step S30, the bridge verifies the user identity and cross-chain transaction and generates a second transaction. Specifically: 1. The user sends the signed transaction data to the bridge of the source chain. The bridge verifies the validity of the transaction. 2. The bridge searches for the mapping relationship of the address in the locally stored registration information according to the source account address of the transaction to confirm whether the signature public key of the first transaction belongs to the quantum-resistant account registered by the account. The bridge uses the registered quantum-resistant public key to verify the signature of the first transaction. The bridge queries the ledger information from the source chain to check the validity of the content of the first transaction, including whether the user has enough assets and the validity of the asset transfer transaction. Check whether the signature algorithm of the target chain in the transaction parameters is consistent with the signature algorithm of the first transaction. 3. Generate the second transaction. After the first transaction is verified, the bridge signs the transaction using the signature algorithm of the source chain to generate the second transaction. The source account of the second transaction is the account address of the bridge, the target account is the cross-chain contract account, and the transaction parameters contain the cross-chain asset transfer parameters of the first transaction and the user's account address and other information.

[0057] In step S40 of the example, the source chain processes the second transaction. Specifically: 1. Receive and verify the second transaction. The node of the source chain receives the second transaction generated by the bridge. The blockchain node verifies whether the classic signature of the second transaction is valid. If the verification is successful, the node calls the cross-chain contract. 2. Asset lock. The cross-chain contract transfers the assets of the source account and locks them inside the contract, while recording the quantum-resistant signature of the first transaction for subsequent verification. 3. Initiate an asset transfer transaction. The source chain will initiate an asset transfer transaction, i.e., the third transaction, to the target chain. The third transaction contains information about the locked assets and relevant data of the cross-chain contract. 4. The source chain node sends the third transaction to the target chain. In the example transaction process, the bridge not only receives and verifies the validity of the transaction, but also generates a new transaction using the signature algorithm of the source chain. The risk of transaction tampering or forgery is further reduced through the double verification mechanism.

[0058] In the example step S50, the target chain (target chain) processes the third transaction. Specifically: 1. Receive and call the contract. After the target link receives the third transaction, it calls the cross-chain contract for processing. The cross-chain contract of the target chain performs corresponding operations according to the third transaction sent by the source chain. 2. Verify the signature. The cross-chain contract queries the signature of the first transaction from the source chain, and then uses the signature algorithm of the target chain to verify the anti-quantum signature of the first transaction. 3. The target chain issues assets. After the verification is passed, the target chain issues the assets to the target account of the asset transfer according to the asset type, asset amount and other information in the third transaction parameters, completing the asset reception process. 4. Send transaction confirmation. The target chain sends the signature of the transaction confirmation to the source chain through the second bridge 2B to complete the cross-chain asset transfer process. In this process, the bridge will use the signature algorithm of the source chain to sign the confirmed transaction. 5. Confirmation timeout. If the target chain fails to confirm the transaction within the specified time, the source chain will automatically unlock and return the previously locked assets to the source account, indicating that the cross-chain asset transfer transaction has failed.

[0059] In the example case, during the registration process, the bridge receives and stores the first public key associated with the source chain account (the public key corresponds to the target chain signature algorithm). The bridge can identify and verify transactions signed using the signature algorithm corresponding to the public key. When verifying the transaction signature, the bridge will determine the validity of the signature based on the public key information stored during registration. Since the bridge can support multiple signature algorithms, it can verify transactions signed using different algorithms, thereby ensuring the compatibility and security of cross-chain communication. In the example case, both the bridge and the target chain will keep records of transactions for query and audit when necessary.

[0060] It can be seen from the above embodiments that the quantum-resistant cross-chain communication method and system shown in the examples have high security, strong compatibility, easy scalability, and rigorous registration and verification mechanisms. Specifically:

[0061] 1. Provides higher security against quantum computing attacks by adopting quantum-resistant cryptographic techniques, such as lattice cryptography.

[0062] 2. Support multiple signature algorithms, including quantum-resistant signature algorithms, through the bridge mechanism, achieving compatibility between classic blockchains and quantum-resistant blockchains. It can better support the interconnection between different blockchain systems.

[0063] 3. Through a simplified cross-chain asset transfer process and timeout mechanism, the security and reliability of cross-chain operations are ensured. This makes it more efficient to process cross-chain transactions and information interactions, especially to ensure that assets can be safely rolled back when encountering failures during the cross-chain process.

[0064] In order to facilitate the description, some common English nouns or letters and concepts used in the present invention are only used for exemplary reference rather than restrictive interpretation or specific usage, and the protection scope of the present invention should not be limited by their Chinese translation or specific letters.

[0065] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solutions provided in the embodiments of the present invention are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0066] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features applied herein.

Claims

1. A quantum-resistant cross-chain communication method, characterized in that: include: Generate a key pair of the signature algorithm used by the target chain through the bridge; Submitting the first public key in the key pair, the signature of the account on the source chain, and the second public key information of the account to the bridge for registration; The bridge verifies the registration information and associates the source chain account with the first public key; Sign the transaction using the signature algorithm supported by the target chain; The bridge receives and verifies the signature of the transaction using the registered first public key; Among them, the bridge supports multiple signature algorithms, the signature algorithm includes a quantum-resistant signature algorithm; the target chain includes a quantum-resistant blockchain, the source chain includes a classical blockchain; and the transaction includes a cross-chain asset transfer transaction.

2. The quantum-resistant cross-chain communication method according to claim 1, characterized in that: The bridge includes the first bridge of the source chain; the process of the cross-chain asset transfer transaction includes: Step S1. The user registers a signing account through the first bridge; Step S2. The user initiates a cross-chain asset transfer request on the source chain to generate a first transaction; Step S3. The first bridge receives and verifies the first transaction, and after verification, generates a second transaction; Step S4. The node of the source chain receives the second transaction, calls the cross-chain contract after verification, transfers the source account assets and locks them in the contract, and initiates a third transaction containing locked asset information to the target chain; Step S5. The target chain receives the third transaction and calls the cross-chain contract for processing.

3. The quantum-resistant cross-chain communication method according to claim 2, characterized in that: The step S1 comprises: S101. The first bridge generates a key pair of a quantum-resistant signature algorithm used by the target chain; S102. The first bridge receives a registration request; S103. The first bridge verifies and maintains a mapping table, and associates the source chain account with the first public key; The registration request includes the first public key, the signature of the account on the source chain, and the second public key information.

4. The quantum-resistant cross-chain communication method according to claim 2, characterized in that: In step S2, the user signs the first transaction using the quantum-resistant signature algorithm supported by the target chain.

5. The quantum-resistant cross-chain communication method according to claim 2, characterized in that: The step S3 comprises: S301. The user sends the signed first transaction to the first bridge; S302. The first bridge verifies the first transaction according to the mapping table; S303. If the verification is successful, the first bridge signs the second transaction using a signature algorithm supported by the source chain.

6. The quantum-resistant cross-chain communication method according to claim 2, characterized in that: In step S4, the cross-chain contract records the signature of the first transaction.

7. The quantum-resistant cross-chain communication method according to any one of claims 2 to 6, characterized in that: The bridge includes a second bridge of the target chain; the step S5 includes: S501. The cross-chain contract queries the signature of the first transaction from the source chain and verifies it using the signature algorithm supported by the target chain; S502. After verification, the target chain issues assets to the target chain account according to the transaction parameters of the third transaction; S503. The second bridge uses the signature algorithm supported by the source chain to sign the confirmation transaction and sends it to the source chain.

8. The quantum-resistant cross-chain communication method according to claim 7, characterized in that: The step S5 also includes: S504. If the target chain does not confirm the transaction within the preset time, the source chain automatically unlocks and returns the locked assets to the source account.

9. A quantum-resistant cross-chain communication system, characterized in that: Used to perform the quantum-resistant cross-chain communication method according to any one of claims 1 to 8; The system includes: a bridge unit, a source chain unit, a cross-chain contract unit, and a target chain unit; The bridge unit includes a first bridge deployed on the source chain unit; the first bridge is configured to register a signature account, receive and verify the first transaction, and generate a second transaction after the verification is passed; The source chain unit is configured to receive the second transaction, call the cross-chain contract unit after verification, transfer the source account assets and lock them in the contract, and initiate a third transaction containing locked asset information to the target chain unit; The target chain unit is configured to receive the third transaction and call the cross-chain contract unit for processing.

10. The quantum-resistant cross-chain communication system according to claim 9, characterized in that: The bridge unit includes a second bridge deployed on the target chain unit; The second bridge is configured to: sign the confirmed transaction using the signature algorithm supported by the source chain unit and send it to the source chain unit; if the transaction is not confirmed within a preset time, send a timeout rollback notification to the source chain unit, and the source chain unit automatically unlocks and returns the locked assets to the source account.

11. An electronic device, characterized in that: It comprises a memory, a processor, and a plurality of computer programs, wherein the computer programs are stored in the memory and are configured to be executed by the plurality of processors to execute the quantum-resistant cross-chain communication method according to any one of claims 1 to 8.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the quantum-resistant cross-chain communication method as claimed in any one of claims 1 to 8 are implemented.