Resource processing method and device, computer equipment, storage medium and program product

By using smart contracts in the blockchain network to generate resource bridge indication data and generate bridge reception data, the problem of resource transfer between blockchain layer two networks requires third-party institutions, and safe and efficient resource cross-network transfer is achieved.

CN119854362APending Publication Date: 2025-04-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311349525.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-17
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

Currently, the blockchain layer 2 network needs to be bridged through third-party organizations to achieve resource transfer, resulting in the resource transfer process facing unsafe risks.

Method used

By obtaining the redirected resource transfer data sent by the sequencer node in the first secondary network, the smart contract in the main network is called to generate resource bridge indication data, and the resource bridge reception data is generated, and it is sent to the sequencer node in the second secondary network, so that it can transfer resources after the legality verification is passed.

Benefits of technology

The bridge between multiple layer two networks is realized through the main network, inheriting the security of each layer two network and the main network, avoiding the transfer of resources through third-party organizations, and improving the security and efficiency of resource transfer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854362A_ABST
    Figure CN119854362A_ABST
Patent Text Reader

Abstract

The invention relates to a resource processing method and device, computer equipment and a storage medium, which can be applied to various scenes such as cloud technology, artificial intelligence, intelligent traffic and auxiliary driving, and comprises the following steps: acquiring redirected resource transfer data sent by a first sequencer node in a first auxiliary network; calling a first smart contract deployed in the main network, and generating resource bridging indication data corresponding to the resource transfer data; according to the resource bridging indication data, generating resource bridging reception data corresponding to the resource transfer data; and sending the resource bridge receiving data to a second sequencer node in the second auxiliary network, the resource bridge receiving data being used for indicating the second sequencer node to determine corresponding resource bridging indication data according to the resource bridge receiving data, and when the validity verification of the determined resource bridging indication data is passed, sending the resource bridge receiving data to the second sequencer node in the second auxiliary network. And performing resource transfer-in in the resource transfer-in address. By adopting the method, the security of the resource transfer process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to resource processing methods, devices, computer equipment, storage media and computer program products. Background Art

[0002] With the development of computer technology, blockchain layer 2 network technology has emerged. Blockchain layer 2 network refers to an architectural mechanism of blockchain, where the first layer network is used as the main network to confirm the consensus in the traditional blockchain, and the second layer network is used as the auxiliary network to verify the input information and maintain the status. Blockchain layer 2 network is conducive to improving the scalability of blockchain network. The current blockchain layer 2 network technology can already realize the reliable and efficient transmission of resources between the first and second layer networks.

[0003] However, currently each Layer 2 network is isolated, and each Layer 2 network needs to be bridged by a third-party organization to achieve resource transfer. Once a third-party malicious incident occurs, the resource transfer process faces the risk of insecurity. Summary of the invention

[0004] Based on this, it is necessary to provide a resource processing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the security of resource transfer in response to the above technical problems.

[0005] In a first aspect, the present application provides a resource processing method. The method comprises:

[0006] Obtaining redirected resource transfer data sent by a first sequencer node in a first secondary network, wherein the resource transfer data is obtained by redirecting a resource transfer-in address indicated by initial resource transfer data to the primary network by the first sequencer node, wherein the initial resource transfer data is used to indicate that resources are transferred-in to the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network;

[0007] Calling a first smart contract deployed in the primary network to generate resource bridging indication data corresponding to the resource transfer data;

[0008] generating resource bridging reception data corresponding to the resource transfer data according to the resource bridging indication data;

[0009] The resource bridge reception data is sent to the second sequencer node in the second auxiliary network, and the resource bridge reception data is used to instruct the second sequencer node to determine the corresponding resource bridge indication data according to the resource bridge reception data, and when the legality of the determined resource bridge indication data is verified, the resource is transferred into the resource transfer address.

[0010] In a second aspect, the present application also provides a resource processing device. The device comprises:

[0011] a resource transfer data acquisition module, configured to acquire redirected resource transfer data sent by a first sequencer node in a first secondary network, wherein the resource transfer data is obtained by redirecting a resource transfer-in address indicated by initial resource transfer data to the primary network by the first sequencer node, wherein the initial resource transfer data is used to indicate that resources are transferred-in to the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network;

[0012] A smart contract calling module, used to call the first smart contract deployed in the main network and generate resource bridging indication data corresponding to the resource transfer data;

[0013] A bridge receiving data generating module, used for generating resource bridge receiving data corresponding to the resource transfer data according to the resource bridge indication data;

[0014] The bridge reception data sending module sends the resource bridge reception data to the second sequencer node in the second auxiliary network. The resource bridge reception data is used to instruct the second sequencer node to determine the corresponding resource bridge indication data according to the resource bridge reception data. When the legitimacy of the determined resource bridge indication data is verified, the resource is transferred into the resource transfer address.

[0015] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the resource processing method described in the first aspect are implemented.

[0016] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the resource processing method described in the first aspect are implemented.

[0017] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the resource processing method described in the first aspect are implemented.

[0018] The resource processing method, apparatus, computer equipment, storage medium and computer program product obtain redirected resource transfer data sent by the first sequencer node in the first auxiliary network, call the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, generate resource bridging receipt data corresponding to the resource transfer data according to the resource bridging indication data, and send the resource bridging receipt data to the second sequencer node in the second auxiliary network, so that the second sequencer node transfers resources into the resource transfer address after the legitimacy verification of the resource bridging indication data is passed, so that the sequencer nodes of multiple layer 2 networks can be bridged through the main network, so that the security of each layer 2 network and the main network can be inherited, and resources do not need to pass through a third-party organization, so the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridging indication data is automatically generated by the smart contract, which avoids the confirmation of the resource transfer process in the main network and improves the efficiency of resource transfer.

[0019] In a sixth aspect, the present application provides a resource processing method. The method comprises:

[0020] Acquire initial resource transfer data; the initial resource transfer data is used to indicate that resources are transferred into the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network;

[0021] Redirecting the resource transfer address to the primary network to obtain redirected resource transfer data;

[0022] The redirected resource transfer data is sent to the main network node in the main network, and the resource transfer data is used to instruct the main network node to call the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, and generate resource bridge receipt data corresponding to the resource transfer data according to the resource bridging indication data, and send the resource bridge receipt data to the second sequencer node in the second auxiliary network; the resource bridge receipt data is used to instruct the second sequencer node to determine the corresponding resource bridging indication data according to the resource bridge receipt data, and when the legitimacy of the determined resource bridging indication data is verified, the resource is transferred into the resource transfer address.

[0023] In a seventh aspect, the present application also provides a resource processing device. The device comprises:

[0024] A resource transfer data acquisition module, used to acquire initial resource transfer data; the initial resource transfer data is used to indicate that resources are transferred into the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network;

[0025] An address redirection module, used for redirecting the resource transfer address to the primary network to obtain redirected resource transfer data;

[0026] A resource transfer data sending module is used to send the redirected resource transfer data to the main network node in the main network, the resource transfer data is used to instruct the main network node to call the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, generate resource bridge receipt data corresponding to the resource transfer data according to the resource bridging indication data, and send the resource bridge receipt data to the second sequencer node in the second auxiliary network; the resource bridge receipt data is used to instruct the second sequencer node to determine the corresponding resource bridging indication data according to the resource bridge receipt data, and when the legitimacy of the determined resource bridging indication data is verified, the resource is transferred into the resource transfer address.

[0027] In an eighth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the resource processing method described in the sixth aspect are implemented.

[0028] In a ninth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the resource processing method described in the sixth aspect are implemented.

[0029] In a tenth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the resource processing method described in the sixth aspect are implemented.

[0030] The resource processing method, apparatus, computer equipment, storage medium and computer program product redirect the resource transfer address indicated by the initial resource transfer data to the main network, and send the redirected resource transfer data to the main network node in the main network, so that the main network node calls the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, generates resource bridge receipt data corresponding to the resource transfer data according to the resource bridging indication data, and sends the resource bridge receipt data to the second sequencer node in the second auxiliary network, so that the second sequencer node can transfer resources at the resource transfer address of the second auxiliary network after the legitimacy verification of the resource bridging indication data is passed, so that the sequencer nodes of multiple layer 2 networks can be bridged through the main network, so that the security of each layer 2 network and the main network can be inherited, and the resources do not need to pass through a third-party organization, so the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridging indication data is automatically generated by the smart contract, which avoids the confirmation of the resource transfer process in the main network, thereby improving the efficiency of resource transfer.

[0031] In an eleventh aspect, the present application provides a resource processing method. The method comprises:

[0032] Obtain resource bridge receipt data from the primary network; wherein the resource bridge receipt data is generated by a primary network node in the primary network according to resource bridge indication data, the resource bridge indication data is generated by the primary network node calling a first smart contract, the resource bridge indication data corresponds to redirected resource transfer data, and the resource transfer data is obtained by redirecting the resource transfer-in address indicated by the initial resource transfer data to the primary network by the first sequencer node, and is used to indicate that resources are transferred into the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network;

[0033] Determining corresponding resource bridging indication data according to the resource bridging reception data;

[0034] The determined resource bridging indication data is subjected to a legality verification, and when the verification result indicates that the verification is passed, the resource is transferred into the resource transfer address.

[0035] In a twelfth aspect, the present application further provides a resource processing device. The device comprises:

[0036] A bridge receiving data acquisition module, used to obtain resource bridge receiving data from the primary network; wherein the resource bridge receiving data is generated by the primary network node in the primary network according to resource bridge indication data, the resource bridge indication data is generated by the primary network node calling the first smart contract, the resource bridge indication data corresponds to the redirected resource transfer data, and the resource transfer data is obtained by redirecting the resource transfer-in address indicated by the initial resource transfer data to the primary network by the first sequencer node, and is used to indicate that resources are transferred into the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network;

[0037] A bridging indication data determining module, used to determine corresponding resource bridging indication data according to the resource bridging data;

[0038] The bridging indication data verification module verifies the legality of the determined resource bridging indication data, and when the verification result indicates that the verification is passed, the resource is transferred into the resource transfer address of the second auxiliary network.

[0039] In a thirteenth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the resource processing method described in the eleventh aspect are implemented.

[0040] In a fourteenth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the resource processing method described in the eleventh aspect are implemented.

[0041] In a fifteenth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the resource processing method described in the eleventh aspect are implemented.

[0042] The resource processing method, device, computer equipment, storage medium and computer program product, since the resource bridge receiving data is generated by the main network node in the main network according to the resource bridge indication data, the resource bridge indication data is generated by the main network node calling the first smart contract, and the resource bridge indication data corresponds to the redirected resource transfer data, the redirected resource transfer data is obtained by the first sequencer node redirecting the resource transfer address indicated by the initial resource transfer data to the main network, and is used to indicate that according to the transfer-out resources of the first auxiliary network, the resources are transferred into the resource transfer-in address of the second auxiliary network, so that according to the resource transfer-out resources of the first auxiliary network, the resource transfer-in address of the second auxiliary network can be transferred into the resource transfer-in address of the second auxiliary network. The source bridge receives the data, determines the corresponding resource bridging indication data, verifies the legitimacy of the determined resource bridging indication data, and when the verification result indicates that the verification is passed, the resource is transferred into the resource transfer address of the second auxiliary network, so that the sequencer nodes of multiple second-layer networks can be bridged through the main network, so the security of each second-layer network and the main network can be inherited, and the resources do not need to go through a third-party organization, so the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridging indication data is automatically generated through the smart contract, which avoids the confirmation of the resource transfer process in the main network and improves the efficiency of resource transfer. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A diagram of an application environment of a resource processing method in some embodiments;

[0044] Figure 2 A schematic diagram of a process flow of a resource processing method in some embodiments;

[0045] Figure 3 is an example schematic diagram of resource bridging in some embodiments;

[0046] Figure 4 A flowchart of steps for calling a smart contract in some embodiments;

[0047] Figure 5 Schematic diagram of a flow chart of a resource processing method in some other embodiments;

[0048] Figure 6 Schematic diagram of a flow chart of a resource processing method in some other embodiments;

[0049] Figure 7 is a timing diagram of a resource processing method in some embodiments;

[0050] Figure 8 A schematic diagram of a layer 2 network decentralized bridging architecture based on a homogeneous sequencer in some embodiments;

[0051] Fig. 9 A schematic diagram of sequencer verification for layer 2 network bridging transactions in some embodiments;

[0052] Fig.10 is a structural block diagram of a resource processing device in some embodiments;

[0053] Fig.11 is a structural block diagram of a resource processing device in some other embodiments;

[0054] Fig.12 is a structural block diagram of a resource processing device in some other embodiments;

[0055] Fig.13 is an internal structure diagram of a computer device in some embodiments;

[0056] Fig.14 1 is a diagram of the internal structure of a computer device in some embodiments. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0058] This application relates to blockchain technology. Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, platform product service layer and application service layer.

[0059] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network status monitoring, node equipment health status monitoring, etc.

[0060] The platform product service layer provides the basic capabilities and implementation framework of typical applications. Developers can superimpose business features based on these basic capabilities to complete the blockchain implementation of business logic. The application service layer provides application services based on blockchain solutions for business participants to use.

[0061] The resource processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the blockchain network includes a main network 100, a first auxiliary network 200 and a second auxiliary network 300. The main network 100 is a layer of the blockchain network, which is mainly responsible for consensus confirmation. The first auxiliary network 200 and the second auxiliary network 300 are the second-layer networks in the blockchain network, which are mainly responsible for the legality verification of the input information and the maintenance of the status. The first sequencer node 200a in the first auxiliary network 200 communicates with the main network node 100a in the main network 100 through a wired or network connection, and the main network node 100a communicates with the second sequencer node 300a in the second auxiliary network 300 through a wired or network connection. The sequencer node refers to a node that sequentially confirms, executes and submits the resource transfer data in the second-layer network to the first-layer network.

[0062] Specifically, the first sequencer node 200a can obtain the initial resource transfer data, redirect the resource transfer address indicated by the initial resource transfer data to the main network, obtain the redirected resource transfer data, and send the redirected resource transfer data to the main network node 100a in the main network. The main network node 100a calls the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, and generates resource bridge receipt data corresponding to the resource transfer data according to the resource bridging indication data, and sends the resource bridge receipt data to the second sequencer node 300a in the second auxiliary network. The second sequencer node 300a determines the corresponding resource bridging indication data according to the resource bridge receipt data, and verifies the legitimacy of the determined resource bridging indication data. When the verification result indicates that the verification is passed, the resource is transferred into the resource transfer address of the second auxiliary network.

[0063] Among them, the main network node 100a, the first sequencer node 200a, and the first sequencer node 300a can be a terminal or a server. The terminal can be, but is not limited to, various desktop computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0064] The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.

[0065] It should be noted that if Figure 1 The application environment shown is not intended to limit the present application. In some other embodiments, one or more common nodes may exist between the primary network and each secondary network. Multiple refers to at least two.

[0066] It should also be noted that, in actual applications, a blockchain network may include more than two second-layer networks, and this application does not limit the number of second-layer networks. The first auxiliary network and the second auxiliary network mentioned in the embodiment of this application may be any two of the multiple second-layer networks of the blockchain network.

[0067] In some embodiments, Figure 2 As shown, a resource processing method is provided, which is applied to Figure 1 Taking the master network node 100a in the example as an example, the following steps are included:

[0068] Step 202: Obtain redirected resource transfer data sent by a first sequencer node in a first secondary network.

[0069] Among them, resources refer to items or information that can be circulated through the network, and items include at least one of virtual items and physical items. Among them, virtual items can specifically include but are not limited to at least one of various types of virtual assets, funds, stocks, bonds, virtual image products, virtual recharge cards, game equipment, etc. Physical items can be any items with actual form that can be owned by users, and can specifically include but are not limited to electronic products, toys, handicrafts or signed photos, etc. Resource transfer can be transferring resources from one storage medium to another storage medium, or transferring the resource value corresponding to the resource from a certain address, or transferring the resource value corresponding to the resource to a certain address. Resource transfer data is data used to describe resource transfer. Resource transfer data may include information such as resource transfer-out address, resource transfer-in address, and value of transferred-out resources. Resource transfer-out address refers to the address of transferred-out resources, and resource transfer-in address refers to the address of transferred-in resources. The value of transferred-out resources is used to indicate the amount of transferred resources. Resource transfer data may specifically be transaction data. Taking asset transfer as an example, assuming that Zhang San initiates a transfer to Li Si with a transfer amount of 1,000, the resource transfer data may include Zhang San's asset account address, Li Si's asset account address, and a transfer amount of 1,000.

[0070] The resource transfer data is obtained by redirecting the resource transfer-in address indicated by the initial resource transfer data to the primary network by the first sequencer node. The initial resource transfer data is used to indicate that resources are transferred-in to the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network. The initial resource transfer data is the resource transfer data obtained by the first sequencer node, the resource transfer-out address indicated by the initial resource transfer data is an address in the first secondary network, and the resource transfer-in address indicated by the initial resource transfer data is an address in the second secondary network, that is, the resource transfer indicated by the initial resource transfer data is a resource transfer across the second-layer network.

[0071] In a specific application, the first auxiliary network and the second auxiliary network may have the same resources. According to the transferred-out resources of the first auxiliary network, resources are transferred-in to the resource transfer-in address of the second auxiliary network, that is, the resource value corresponding to the transferred-out resources is increased in the resource value of the resource transfer-in address of the second auxiliary network. For example, if the resource value of the transferred-out resources is 10, the resource value of the resource transfer-in address of the second auxiliary network is increased by 10. In some other embodiments, the first auxiliary network and the second auxiliary network may have different resources. According to the transferred-out resources of the first auxiliary network, resources are transferred-in to the resource transfer-in address of the second auxiliary network. It is necessary to convert the resource value corresponding to the transferred-out resources to obtain the converted value, and then increase the resource value of the resource transfer-in address of the second auxiliary network by the converted value. For example, assuming that the resource conversion ratio between the first auxiliary network and the second auxiliary network is 1:2, if the resource value of the transferred-out resources is 10, the converted value can be 20, and then the resource value of the resource transfer-in address of the second auxiliary network can be increased by 20.

[0072] Specifically, the first sequencer node in the first auxiliary network can obtain the initial resource transfer data, redirect the resource transfer address indicated by the initial resource transfer data to the primary network, and obtain the redirected resource transfer data, wherein the resource transfer direction in the redirected resource transfer data is pointed to the primary network by the resource transfer address indicated by the initial resource transfer data. The first sequencer node further sends the redirected resource transfer data to the primary network node in the primary network.

[0073] In a specific application, the first sequencer node can receive multiple resource transfer data submitted by the user, and perform legitimacy verification on these resource transfer data. For the resource transfer data that pass the legitimacy verification, the server can transfer out resources based on these resource transfer data. When a resource transfer data that passes the legitimacy verification contains the network identifier of the second auxiliary network, the resource transfer data can be determined as the initial resource transfer data. The first sequencer node can further redirect the resource transfer address in each initial resource transfer data to the main network to obtain redirected resource transfer data. The first sequencer node further sequences the redirected resource transfer data and other resource transfer data that pass the legitimacy verification, and packages them to generate a resource transfer data packet, and sends the resource transfer data packet to the main network node.

[0074] It is understandable that in order to ensure that the primary network node can correctly identify the redirected resource transfer data, the redirected resource transfer data may also carry the network identifier of the second secondary network and the resource transfer-in address indicated by the initial resource transfer data.

[0075] As a possible implementation method, according to the design of the second-layer network, the first sequencer node redirects the resource transfer-in address indicated by the initial resource transfer data to the main network, which can be by modifying the resource transfer-in address indicated by the initial resource transfer data to a null value. After being modified to a null value, the resource transfer data can also meet the conditions for being sent to the main network, thereby realizing the redirection of the resource transfer data.

[0076] Step 204: Call the first smart contract deployed in the main network to generate resource bridging indication data corresponding to the resource transfer data.

[0077] Among them, the first smart contract is deployed on the main network, and resource bridging indication data can be generated for the redirected resource transfer data. The resource bridging indication data is used to indicate the data for resource bridging. Resource bridging refers to the transfer of resources across networks between different networks so that resources can flow across networks. The resource bridging indication data corresponding to the redirected resource transfer data may include a resource transfer-in address, which is the resource transfer-in address of the initial resource transfer data corresponding to the redirected resource transfer data. The resource bridging indication data corresponding to the redirected resource transfer data may also include a resource value, which is used to indicate the resource value of the resource transferred in the resource transfer-in address. The resource bridging indication data corresponding to the redirected resource transfer data may also include a resource transfer-out address, which may be the first contract address of the first smart contract or a null value according to different business needs.

[0078] Specifically, a first smart contract is deployed in the primary network, and the primary network node can call the first smart contract to generate resource bridging indication data corresponding to the resource transfer data. Exemplarily, the execution condition of the first smart contract can be the detection of redirected resource transfer data, that is, the detection that the received resource transfer data contains the network identifier of the second secondary network.

[0079] For example, the resource transfer-in address in the redirected resource transfer data may be a null value, and the resource transfer-out address in the resource bridging indication data may also be a null value. Figure 3 , assuming that the initial resource transfer data is (add1, add2, 100, abc), where add1 is the resource transfer-out address, add2 is the resource transfer-in address, 100 is the resource value of the transferred-out resource, and abc is the network identifier of the second auxiliary network. The first sequencer node can redirect the initial resource transfer data, and the obtained redirected resource transfer data is (add1, / , 100, abc). When the redirected resource transfer data is detected, the main network node can generate bridge indication data ( / , add2, 100, abc) according to the resource transfer-in address add2 carried in the resource transfer data.

[0080] Step 206: Generate resource bridge receiving data corresponding to the resource transfer data according to the resource bridge indication data.

[0081] Specifically, the master network node can generate a resource bridge receipt according to the resource bridge indication data, and the resource bridge receipt is a receipt corresponding to the redirected resource transfer data, which is used to indicate that the resource bridge indication data for resource bridging has been generated for the redirected resource transfer data. The master network node can further store the resource bridge receipt for the second sequencer node to obtain and use.

[0082] Exemplarily, the master network node may deserialize the resource bridging indication data and use the deserialized byte sequence as the content of the receipt field.

[0083] It is understandable that, in order to distinguish the resource bridge receipt from other receipts in the blockchain, the resource transfer receipt may also include a bridge identifier for identifying that the resource bridge receipt is a receipt generated according to the resource bridge indication data.

[0084] Step 208, sending the resource bridge reception data to the second sequencer node in the second auxiliary network, the resource bridge reception data is used to instruct the second sequencer node to determine the corresponding resource bridge indication data according to the resource bridge reception data, when the legitimacy of the determined resource bridge indication data is verified, the resource is transferred into the resource transfer address of the second auxiliary network.

[0085] Specifically, the main network node can send the resource bridge reception data to the second sequencer node in the second auxiliary network. After obtaining the resource bridge reception data, the second sequencer node in the second auxiliary network can determine the corresponding resource bridge indication data based on the resource bridge reception data, and then can verify the legitimacy of the resource bridge indication data. If the legitimacy verification passes, the resource is transferred into the resource transfer address indicated by the resource bridge indication data.

[0086] Exemplarily, the second sequencer node may deserialize the content of a receipt field in the resource bridge receipt to determine the bridge indication data.

[0087] In the above resource processing method, the redirected resource transfer data sent by the first sequencer node in the first auxiliary network is obtained, the first smart contract is called to generate resource bridging indication data corresponding to the resource transfer data, and the resource bridge receipt data corresponding to the resource transfer data is generated according to the resource bridging indication data, and the resource bridge receipt data is sent to the second sequencer node in the second auxiliary network, so that the second sequencer node can transfer resources into the resource transfer address of the second auxiliary network after the legitimacy verification of the resource bridging indication data is passed, so that the sequencer nodes of multiple second-layer networks can be bridged through the main network, so that the security of each second-layer network and the main network can be inherited, and the resources do not need to pass through a third-party organization, and the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridging indication data is automatically generated by the smart contract, which avoids the confirmation of the resource transfer process in the main network and improves the efficiency of resource transfer.

[0088] The above embodiments introduce the process of bridging the layer 2 network through the main network in this application. According to the above embodiments, during the bridging process, it is necessary to call the first smart contract in the main network. In specific applications, different smart contracts can be designed according to business needs to implement the resource bridging of this application. In the following embodiments, several possible implementation methods will be introduced.

[0089] In some embodiments, the resource transfer data includes a resource transfer-in address and a resource value of a transferred-out resource indicated by the initial resource transfer data; a first contract address at which a first smart contract is deployed in the main network; and calling the first smart contract to generate resource bridging indication data corresponding to the resource transfer data includes: when a bridging resource corresponding to the transferred-in and transferred-out resources is detected in the first contract address, triggering a call to the first smart contract; and generating resource bridging indication data corresponding to the resource transfer data according to the first contract address, the resource transfer-in address and the resource value of the bridging resource through the called first smart contract.

[0090] The bridge resource refers to a resource in the main network corresponding to the transferred-out resource and used to implement resource bridging. In this embodiment, the execution condition for the first smart contract to generate resource bridging indication data may be: the presence of redirected resource transfer data is detected, and the bridge resource corresponding to the transferred-out resource is transferred into the first contract address.

[0091] Specifically, when the main network node detects that a bridge resource corresponding to the transferred-out resource has been transferred into the first contract address, the main network node can trigger a call to the first smart contract. By calling the first smart contract, the first contract address is used as the resource transfer-out address, and resource bridge indication data corresponding to the resource transfer data is generated based on the resource transfer-out address, the resource transfer-in address indicated by the initial resource transfer data and the resource value of the bridge resource carried in the redirected resource transfer data.

[0092] Exemplarily, the first smart contract can be a common contract of the first auxiliary network and the second auxiliary network, and the resource transfer-in address indicated by the initial resource transfer data is redirected to the first contract address where the first smart contract is deployed, that is, when the first sequencer node is redirected, the resource transfer-in address indicated by the initial resource transfer data can be modified to the address of the first smart contract. At this time, the resource transfer direction indicated by the redirected resource transfer data is from the resource transfer-out address of the first auxiliary network to the first contract address in the main network, so that after receiving the redirected resource transfer data, the main network node can transfer the bridge resource corresponding to the transfer-out resource in the first contract address according to the redirected resource transfer data. When the bridge resource is successfully transferred to the first contract address, the first smart contract is executed, so that resource bridging indication data can be generated, and the resource transfer-out address of the resource bridging indication data is the first contract address, and the resource transfer-in address is the resource transfer-in address carried in the redirected resource transfer data. By directly transferring resources from the first auxiliary network to the first contract address to trigger the call to the first smart contract, resource bridging indication data can be quickly generated, thereby improving the efficiency of cross-network resource transfer.

[0093] In some other embodiments, considering the security of resource transfer, in the main network, the first auxiliary network and the second auxiliary network are each deployed with different smart contracts, wherein the smart contract of the first auxiliary network is deployed at the second contract address, and the smart contract of the second auxiliary network is deployed at the first contract address. In order to distinguish the two smart contracts, in the following embodiments, the smart contract deployed at the second contract address is referred to as the second smart contract, and the smart contract deployed at the first contract address is referred to as the first smart contract. Figure 4 In this embodiment, calling the first smart contract to generate resource bridging indication data corresponding to the resource transfer data includes:

[0094] Step 402, when the bridge resources corresponding to the transferred-in and transferred-out resources in the second contract address are detected, the call to the second smart contract deployed at the second contract address is triggered.

[0095] Step 404: By calling the second smart contract, the bridge resources transferred into the second contract address are transferred out to the first contract address.

[0096] Specifically, the resource transfer-in address indicated by the initial resource transfer data is redirected to the second contract address where the second smart contract is deployed. That is, when the first sequencer node is redirecting, the resource transfer-in address indicated by the initial resource transfer data can be modified to the address of the second smart contract. At this time, the resource transfer direction indicated by the redirected resource transfer data is from the resource transfer-out address of the first auxiliary network to the second contract address in the main network. Therefore, after receiving the redirected resource transfer data, the main network node can transfer the bridge resource corresponding to the transfer-out resource into the second contract address according to the redirected resource transfer data. When the bridge resource is successfully transferred into the second contract address, the second smart contract is executed, so that the bridge resource transferred into the second contract address can be transferred out to the first contract address.

[0097] Step 406, when it is detected that the bridge resource corresponding to the transferred-in and transferred-out resources in the first contract address is transferred, the call to the first smart contract is triggered.

[0098] Step 408, by calling the first smart contract, generate resource bridging indication data corresponding to the resource transfer data according to the first contract address, the resource transfer address and the resource value of the bridge resource.

[0099] When the main network node detects that a bridge resource corresponding to the transferred-out resource has been transferred into the first contract address, the main network node can execute the first smart contract deployed at the first contract address, thereby generating resource bridge indication data corresponding to the resource transfer data based on the first contract address, the resource transfer-in address and the resource value of the bridge resource.

[0100] In the above embodiment, since the smart contract corresponding to the first auxiliary network and the smart contract corresponding to the second auxiliary network are respectively deployed in the main network, the resource transfer address of the redirected resource transfer data points to the smart contract corresponding to the first auxiliary network, so that the smart contract can transfer the bridging resources in the main network to the contract address deployed by the smart contract corresponding to the second auxiliary network, so that the smart contract corresponding to the second auxiliary network can generate resource bridging indication data, which can improve the resource transfer efficiency while ensuring the security of resource transfer.

[0101] In some embodiments, when the resources of the main network and the second auxiliary network are different, resource bridging indication data corresponding to the resource transfer data is generated according to the first contract address, the resource transfer-in address and the resource value of the bridge resource, including: converting the resource value of the bridge resource according to a preset resource conversion relationship to obtain a converted resource value; generating resource bridging indication data corresponding to the resource transfer data according to the first contract address, the resource transfer-in address and the converted resource value.

[0102] The preset conversion relationship refers to a preset resource conversion relationship between the primary network and the second secondary network. For example, the preset conversion relationship may be that the resource values ​​of the primary network and the resource values ​​of the second secondary network are converted in a ratio of 1:2.

[0103] Specifically, when the resources of the primary network and the second secondary network are different, when the second sequencer node of the second secondary network transfers resources in the resource transfer-in address, the resource value added by the resource transfer-in address is different from the resource value reduced by the first contract address in the primary network. When the first smart contract is executed, the resource value of the bridge resource can be converted according to the preset resource conversion relationship to obtain the converted resource value. For example, assuming that the resource value of the bridge resource is 1000, the preset conversion relationship is that the resource value of the primary network and the resource value of the second secondary network are converted at a ratio of 1:2, then the converted resource value is 2000. The second sequencer node can further generate resource bridging indication data corresponding to the resource transfer data according to the first contract address, the resource transfer-in address and the converted resource value, and the resource bridging indication data is used to indicate that the resource value of the bridge resource is subtracted from the first contract address, and the converted resource value is added to the resource transfer-in address.

[0104] In the above embodiment, the resource value of the bridge resource is converted according to a preset resource conversion relationship to obtain the converted resource value, and resource bridging indication data corresponding to the resource transfer data is generated according to the first contract address, the resource transfer-in address, the resource value of the bridge resource and the converted resource value. In this way, more accurate resource bridging indication data can be generated when the resources of the primary network and the second secondary network are different.

[0105] It should be noted that, in the specific implementation of the present application, the first sequencer node usually sequences the resource transfer data and packages it into a resource data packet and then sends it to the main network node. Then the main network node needs to correctly identify the redirected resource transfer data from the resource transfer data packet so that the subsequent bridging steps can be performed accurately. The following embodiment will illustrate an exemplary implementation method for the main network node to identify the redirected resource transfer data.

[0106] In some embodiments, obtaining redirected resource transfer data sent by a first sequencer node in a first auxiliary network includes: receiving a resource transfer data packet sent by a first sequencer node in the first auxiliary network, the resource transfer data packet including a plurality of resource transfer data arranged in sequence; determining, from the plurality of resource transfer data, resource transfer data including a network identifier of a second auxiliary network; and determining the resource transfer data including the network identifier of the second auxiliary network as redirected resource transfer data.

[0107] Among them, the network identifier of the second auxiliary network is used to uniquely identify the second auxiliary network in the blockchain network. The network identifier of the second auxiliary network can be, for example, the contract address of the smart contract corresponding to the second auxiliary network. Of course, as needed, the network identifier of the second auxiliary network can also be other pre-set identifiers as long as they can identify the second auxiliary network. For example, it can also be the network number of the second auxiliary network in the blockchain network. For example, there are 3 auxiliary networks in the blockchain network, and the numbers 1, 2, and 3 can be used to identify each auxiliary network. This application does not limit the specific implementation method of the network identifier of the second auxiliary network.

[0108] Specifically, what the first sequencer node sends to the main network node is a resource transfer data packet, which includes multiple resource transfer data, including redirected resource transfer data and other normal resource transfer data. The resource transfer address of the normal resource transfer data is the address in the main network, that is, the normal resource transfer data is pointed to the resource transfer address of the main network by the resource transfer address of the first auxiliary network, and does not involve the second auxiliary network. Therefore, when the user submits the resource transfer data, the resource transfer data that needs to be redirected and the normal resource transfer data can be distinguished by adding the network identifier of the second auxiliary network. The resource transfer data that needs to be redirected also includes the network identifier of the second auxiliary network in the redirected resource transfer data obtained after the redirection. Therefore, after receiving the resource transfer data packet, the main network node can traverse these resource transfer data to determine whether each resource transfer data contains the network identifier of the second auxiliary network. If it does, it is determined that the resource transfer data is redirected resource transfer data.

[0109] In the above embodiment, by adding the network identifier of the second auxiliary network to the resource transfer data, the primary network node can quickly determine the redirected resource transfer data from the resource data packet, thereby improving resource processing efficiency.

[0110] It is understandable that for the received resource transfer data packet, the main network node can generate a block and then broadcast it in the consensus node of the blockchain network. When the consensus node passes the consensus on the block, the generated block can be put on the chain. Optionally, for the resource bridge receipt corresponding to the resource transfer data in each resource transfer data packet, the main network node can also package it into a block to ensure the security of the resource bridge receipt. Of course, in some other embodiments, the resource bridge receipt may not be stored in the block, and this application does not limit the storage method of the resource transfer receipt.

[0111] In some embodiments, sending resource bridge reception data to a second sequencer node in a second auxiliary network includes: determining a sorting position of resource transfer data corresponding to the resource bridge reception data in a resource transfer data packet; reading an encryption key corresponding to the sorting position from a pre-established key data table; encrypting the resource bridge reception data based on the encryption key corresponding to the sorting position; sending the encrypted resource bridge reception data and the sorting position to a second sequencer node in the second auxiliary network; the sorting position is used to instruct the second sequencer node to determine a decryption key according to the sorting position, and decrypt the encrypted resource bridge reception data based on the decryption key.

[0112] Among them, the pre-established key data table stores the correspondence between different sorting positions and keys. For example, multiple keys can be set for sorting positions 1 to 100 respectively, and each key corresponds to one or more sorting positions. The key data table can be stored in both the primary network and the secondary network, so that the resource bridge received data can be encrypted and decrypted according to the key data table.

[0113] Specifically, for the generated resource bridge reception data, the main network node can determine the sorting position of the resource transfer data corresponding to the resource bridge reception data in the resource transfer data packet, and then can query the corresponding encryption key from the pre-established key data table according to the sorting position, encrypt the resource bridge reception data based on the queried encryption key, and then the main network node can send the encrypted resource bridge reception data and the sorting position to the second sequencer node. After receiving the encrypted resource bridge reception data and the sorting position, the second sequencer node can query the corresponding decryption key from the key data table according to the sorting position, and then can decode the encrypted resource bridge reception data based on the decryption key to obtain the decrypted resource bridge reception data. Optionally, the encryption key and decryption key corresponding to each sorting position can be the same key, that is, encryption and decryption can be performed in a symmetric encryption manner. In other embodiments, the encryption key and decryption key corresponding to each sorting position can also be different keys, that is, encryption and decryption can be performed in an asymmetric encryption manner. The present application does not limit the encryption and decryption method. By setting multiple key data tables, the key used for encrypting the resource bridge reception data can be dynamically determined according to the sorting position, avoiding the cracking or tampering of a single key, thereby improving the security of the resource bridge reception data transmission process.

[0114] In some embodiments, a resource bridge receipt corresponding to the resource transfer data is generated based on the resource bridging indication data, including: serializing the resource bridging indication data to obtain the receipt field content corresponding to the resource transfer data; obtaining a preset bridging identifier, and generating a resource bridge receipt corresponding to the resource transfer data based on the receipt field content and the preset bridging identifier.

[0115] The preset bridge identifier is used to distinguish the resource bridge data of the redirected resource transfer data from other normal resource transfer data, because only the redirected resource transfer data needs to be bridged, and other normal resource transfer data does not need to be bridged. Exemplarily, the preset bridge identifier can be obtained by calculating the hash value of "bridge".

[0116] Specifically, the main network node can serialize the resource bridging indication data to obtain the receipt field content corresponding to the resource transfer data. The main network node further obtains a preset bridging identifier and writes the bridging identifier into the identification field corresponding to the receipt automatic content, thereby generating a resource bridging receipt corresponding to the resource transfer data.

[0117] Optionally, the main network node can further obtain the hash value of the resource transfer data packet to which the redirected resource transfer data belongs, and use the hash value as the identifier of the resource transfer data packet, and also write it into the identification field corresponding to the automatic content of the receipt. The obtained resource bridge receipt can include the receipt field content, the bridge identifier, and the identifier of the resource transfer data packet obtained by serializing the resource bridge indication data, so that the second sequencer node can better verify the legitimacy of the resource bridge indication data.

[0118] In some embodiments, the resource transfer data is one of a plurality of redirected resource transfer data; the resource transfer data includes a network identifier of a second auxiliary network; the method further includes: for the resource bridge reception data corresponding to each redirected resource transfer data, grouping and storing them according to the network identifier in the corresponding resource transfer data; when a bridge reception data acquisition request sent by the second sequencer node is received, querying the corresponding resource bridge reception data group according to the network identifier carried in the bridge reception data acquisition request; when the resource bridge reception data group is successfully sent to the second sequencer node, deleting the sent resource bridge reception data group.

[0119] In this embodiment, the secondary network in the blockchain network includes more than two, and the multiple resource transfer data sequenced and packaged by the first sequencer node in the first secondary network include redirected resource transfer data corresponding to different second secondary networks, that is, the resource transfer addresses indicated by the initial resource transfer data corresponding to these redirected resource transfer data are addresses in different secondary networks. After the main network node receives the resource transfer data packet and generates resource bridge reception data for each redirected resource transfer data in the resource transfer data packet, it can be grouped and stored according to the network identifier in the corresponding resource transfer data, so that when receiving the bridge reception data acquisition request sent by the second sequencer node, the corresponding resource bridge reception data group can be queried according to the network identifier carried in the bridge reception data acquisition request, and the queried resource bridge reception data group is returned, so that the resource bridge reception data can be quickly returned to the second sequencer node. It can be understood that in order to avoid repeated transmission, after the resource bridge reception data group is successfully sent, the main network node can also update the status of the resource bridge reception data group. Exemplarily, the resource bridge reception data group can be marked as sent.

[0120] In the above embodiment, resource processing efficiency can be improved by grouping and storing the resource bridge received data according to the network identifier in the corresponding resource transfer data.

[0121] In some embodiments, Figure 5 As shown, a resource processing method is provided, which is applied to Figure 1 Taking the first sequencer node 200a in FIG. 1 as an example, the method includes the following steps:

[0122] Step 502, obtaining initial resource transfer data; the initial resource transfer data is used to indicate that resources are transferred into the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network.

[0123] Step 504: redirect the resource transfer address to the primary network to obtain redirected resource transfer data.

[0124] Step 506, the redirected resource transfer data is sent to the main network node in the main network, the resource transfer data is used to instruct the main network node to call the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, and generate resource bridge receipt data corresponding to the resource transfer data according to the resource bridging indication data, and send the resource bridge receipt data to the second sequencer node in the second auxiliary network; the resource bridge receipt data is used to instruct the second sequencer node to determine the corresponding resource bridging indication data according to the resource bridge receipt data, and when the legitimacy of the determined resource bridging indication data is verified, the resource is transferred into the resource transfer address.

[0125] For the explanation of this embodiment, please refer to the above embodiment and will not be repeated here.

[0126] The above-mentioned resource processing method redirects the resource transfer address indicated by the initial resource transfer data to the main network, and sends the resource transfer data obtained by the redirection to the main network node in the main network, so that the main network node calls the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, generates resource bridge receiving data corresponding to the resource transfer data according to the resource bridging indication data, and sends the resource bridge receiving data to the second sequencer node in the second auxiliary network, so that the second sequencer node can transfer resources in the resource transfer address of the second auxiliary network after the legitimacy verification of the resource bridging indication data is passed, so that the sequencer nodes of multiple second-layer networks can be bridged through the main network, so that the security of each second-layer network and the main network can be inherited, and the resources do not need to pass through a third-party organization, and the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridging indication data is automatically generated by the smart contract, which avoids the confirmation of the resource transfer process in the main network, thereby improving the efficiency of resource transfer.

[0127] In some embodiments, the resource transfer-in address indicated by the initial resource transfer data is redirected to the main network to obtain the redirected resource transfer data, including: obtaining the second contract address; the second contract address is the address of the second smart contract deployed in the main network, and the second smart contract corresponds to the first auxiliary network; redirecting the resource transfer-in address indicated by the initial resource transfer data to the second contract address in the main network; the resource transfer data is also used to instruct the main network node to call the second smart contract, transfer the bridge resources transferred into the second contract address to the first contract address, call the first smart contract, and generate resource bridging indication data corresponding to the resource transfer data according to the first contract address, the resource transfer-in address and the resource value of the bridge resource. For the explanation of this embodiment, please refer to the above embodiment, which will not be repeated here.

[0128] It is understandable that the first sequencer node sends the redirected resource transfer data to the main network node in the main network by: sequencing and packaging multiple resource transfer data, including the redirected resource transfer data and other normal resource transfer data into a resource transfer data packet, and then sending the resource transfer data packet to the main network node. When sending the resource transfer data packet to the main network node, the first sequencer node can also sign the resource transfer data packet. Exemplarily, the first sequencer can use its own private key to encrypt the hash value of the resource transfer data packet, thereby obtaining the digital signature of the resource transfer data packet.

[0129] In order to further improve the security of the resource transfer data packet, other signature methods can also be used for signing. Based on this, in some embodiments, the redirected resource transfer data is sent to the main network node in the main network, including: generating a resource transfer data packet based on the redirected resource transfer data and other resource transfer data; obtaining the digital signature corresponding to each resource transfer data in the resource transfer data packet, the digital signature is obtained by signing the resource transfer data packet using the private key corresponding to the corresponding resource transfer data; aggregating the signatures corresponding to each resource transfer data to obtain an aggregate signature; and sending the aggregate signature and the resource transfer data packet to the main network node in the main network.

[0130] Among them, other resource transfer data, namely the normal resource transfer data mentioned above, is used to indicate the transfer of resources in the first auxiliary network to the primary network, that is, the resource transfer address indicated by these resource transfer data is itself an address in the primary network.

[0131] Specifically, when the first sequencer node signs the resource transfer data packet, it can send the resource transfer data packet to the submitter of each resource transfer data in the resource transfer data packet, so that each submitter uses its own private key to encrypt the hash value of the resource transfer data packet, obtains its own corresponding digital signature, and then submits it to the first sequencer node. The first sequencer node can then aggregate these digital signatures, and can compress multiple digital signatures by aggregating them. After the aggregation is completed, the aggregated signature is obtained, and then the aggregated signature and the resource transfer data packet are sent to the main network node in the main network. Exemplarily, the digital signatures can be aggregated using the BLS (Boneh–Lynn–Shacham) signature method.

[0132] In the above embodiments, on the one hand, by obtaining the digital signatures corresponding to each resource transfer data, the resource transfer data packet can be multi-signed to improve the security of the resource transfer data packet. On the other hand, since multiple digital signatures are aggregated, the multiple digital signatures can be effectively compressed, thereby improving the throughput (Transactions Per Second, TPS) of the blockchain network for resource transfer data packets.

[0133] In some embodiments, Figure 6 As shown, a resource processing method is provided, which is applied to Figure 1 Taking the second sequencer node 300a in FIG. 1 as an example, the method includes the following steps:

[0134] Step 602, obtaining resource bridge receipt from the main network; wherein the resource bridge receipt is generated by the main network node in the main network according to the resource bridge indication data, the resource bridge indication data is generated by the main network node calling the first smart contract, the resource bridge indication data corresponds to the redirected resource transfer data, and the resource transfer data is obtained by redirecting the resource transfer-in address indicated by the initial resource transfer data to the main network by the first sequencer node, and is used to indicate that resources are transferred into the resource transfer-in address of the second auxiliary network according to the transferred-out resources of the first auxiliary network.

[0135] Step 604: Determine corresponding resource bridging indication data according to the resource bridge receiving data.

[0136] Step 606, verify the legitimacy of the determined resource bridging indication data, and when the verification result indicates that the verification is passed, transfer the resource into the resource transfer address.

[0137] For the explanation of this embodiment, please refer to the above embodiment and will not be repeated here.

[0138] In the above-mentioned resource processing method, since the resource bridge receipt is generated by the main network node in the main network according to the resource bridge indication data, the resource bridge indication data is generated by the main network node calling the first smart contract, and the resource bridge indication data corresponds to the redirected resource transfer data, the redirected resource transfer data is obtained by the first sequencer node redirecting the resource transfer-in address indicated by the initial resource transfer data to the main network, and is used to indicate that according to the transferred-out resources of the first auxiliary network, the resource is transferred into the resource transfer-in address of the second auxiliary network, so that the corresponding resource bridge indication data can be determined according to the resource bridge receipt, and the legality of the determined resource bridge indication data is verified. When the verification result indicates that the verification is passed, the resource is transferred into the resource transfer-in address of the second auxiliary network, so that the sequencer nodes of multiple second-layer networks can be bridged through the main network, so that the security of each second-layer network and the main network can be inherited, and the resources do not need to pass through a third-party organization, and the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridge indication data is automatically generated by the smart contract, and the confirmation of the resource transfer process in the main network is avoided, thereby improving the efficiency of resource transfer.

[0139] In some embodiments, the resource transfer data is data in a resource transfer data packet sent by a first sequencer node, and the determined resource bridging indication data is verified for legitimacy, including: obtaining a digital signature corresponding to each resource transfer data packet from the main network; the digital signature is obtained by the first sequencer node encrypting a hash value of the corresponding resource transfer data packet using a private key; based on a public key provided by the first sequencer node, decrypting the digital signature corresponding to each resource transfer data packet to obtain a decryption result; from the hash values ​​corresponding to each resource transfer data packet, screening a hash value consistent with the corresponding decryption result; when the hash value contained in the determined resource bridging indication data is consistent with any of the screened hash values, a verification result indicating that the verification is passed is obtained.

[0140] The resource transfer data is the data in the resource transfer data packet sent by the first sequencer node. When the master network node generates resource bridging indication data for the redirected resource transfer data contained in the resource transfer data packet, the hash value obtained by performing hash calculation on the resource transfer data packet can also be written into the resource transfer data packet, and the hash value can be used in the legitimacy verification process of the second sequencer node.

[0141] Specifically, when the first sequencer node signs the resource transfer data packet, it is implemented by encrypting the hash value of the resource transfer data packet using its own private key. The obtained digital signature is sent to the main network together with the resource transfer data packet, so that when the second director node verifies the legitimacy of the resource bridging indication data, it can obtain the digital signature corresponding to each resource transfer data packet from the main network, and then decrypt the digital signature corresponding to each resource transfer data packet based on the public key provided by the first sequencer node to obtain the decryption result corresponding to each resource transfer data packet. The second director node can further compare the decryption result corresponding to each resource transfer data packet with the respective hash value. If the decryption result corresponding to a resource transfer data packet is consistent with the hash value of the resource transfer data packet, it means that the resource transfer data packet is a data packet that is qualified to generate legal bridging indication data. Through comparison, the second director node can filter out the hash values ​​of all data packets that are qualified to generate legal bridging indication data, and then determine whether the hash value contained in the determined resource bridging indication data is consistent with the filtered hash value. When the hash value contained in the determined resource bridging indication data is consistent with any filtered hash value, a verification result indicating that the verification is passed can be obtained.

[0142] In the above embodiment, since the digital signature can be decrypted by the private key provided by the first sequencer node, the hash value of the resource transfer data packet that can generate legal resource bridging indication data is screened according to the decryption result, and then the legality of the resource bridging indication data can be verified according to the screened hash value, thereby improving the verification efficiency.

[0143] In some embodiments, the resource transfer data is data in a resource transfer data packet sent by a first sequencer node, and the determined resource bridging indication data is verified for legitimacy, including: obtaining a hash value corresponding to the resource transfer data packet from the determined resource bridging indication data; obtaining an aggregate signature corresponding to the resource transfer data packet from the main network based on the hash value; the aggregate signature is obtained by aggregating the digital signatures corresponding to each resource transfer data in the resource transfer data packet; obtaining the public key corresponding to each resource transfer data in the resource transfer data packet, aggregating the public keys corresponding to each resource transfer data, and obtaining an aggregate public key; and verifying the legitimacy of the aggregate signature of the resource transfer data packet based on the aggregate public key, and when the legitimacy verification of the aggregate signature passes, obtaining a verification result indicating that the verification has passed.

[0144] In this embodiment, when the first sequencer node sends a resource transfer data packet to the main network node, it sends an aggregate signature of the resource transfer data packet. The aggregate signature is obtained by aggregating the digital signatures corresponding to each resource transfer data in the resource transfer data packet. For details, please refer to the above embodiment.

[0145] The resource bridging indication data includes a hash value corresponding to the resource transfer data packet, which is obtained by performing a hash calculation on the resource transfer data packet. The second sequencer node can obtain the aggregate signature corresponding to the resource transfer data packet from the main network based on the hash value. When verifying the aggregate signature, the public key corresponding to each resource transfer data in the resource transfer data packet can be obtained, and the public keys corresponding to each resource transfer data are aggregated to obtain the aggregate public key. The aggregate signature of the resource transfer data packet is verified for legitimacy based on the aggregate public key. If the verification passes, it means that the resource transfer data packet is legal, and the resource transfer data in the resource transfer data packet is also legal, so that the resource bridging indication data generated based on the resource transfer data therein is also legal, so that a verification result indicating that the verification passed can be obtained.

[0146] In the above embodiment, the public keys corresponding to the resource transfer data in the resource transfer data packet are aggregated to obtain an aggregate public key, so that the aggregate signature can be verified according to the aggregate public key, and the aggregate signature can be verified more accurately.

[0147] In some specific embodiments, a resource processing method is provided, referring to Figure 7 , is a timing diagram of the resource processing method, which specifically includes the following steps:

[0148] Step 702: A first sequencer node obtains a plurality of resource transfer data.

[0149] Step 704: Verify and package the resource transfer data to obtain a resource transfer data packet.

[0150] Step 706: Sign the resource transfer data packet and send it.

[0151] The first sequencer node verifies the multiple resource transfer data, packages the verified resource transfer data, obtains the resource transfer data packet, signs the resource transfer data packet and sends it to the main network node.

[0152] If the verified resource transfer data contains the network identifier of the second auxiliary network, the first sequencer node redirects the resource transfer address of the resource transfer data to the second contract address in the main network, and then packages the redirected resource transfer data with other resource transfer data to obtain a resource transfer data packet, and sends the resource transfer data packet to the main network node. The second contract address is deployed with the smart contract corresponding to the first auxiliary network.

[0153] Step 708, calling the smart contract to generate resource bridging indication data.

[0154] The main network node detects the resource transfer data in the resource transfer data packet. When it is detected that the resource transfer data contains the network identifier of the second auxiliary network, and the second contract address of the first auxiliary network transfers the bridge resource corresponding to the transfer-out resource of the resource transfer data, the call of the second smart contract deployed at the second contract address is triggered. Through the called second smart contract, the bridge resource transferred into the second contract address is transferred out to the first contract address. When it is detected that the bridge resource corresponding to the transfer-out resource is transferred into the first contract address, the call of the first smart contract is triggered. Through the called first smart contract, the resource bridge indication data corresponding to the resource transfer data is generated according to the first contract address, the resource transfer-in address and the resource value of the bridge resource. Among them, the first contract address is deployed with the smart contract corresponding to the second auxiliary network.

[0155] Step 710: Generate resource bridge receiving data according to the resource bridge indication data, and send it to the second sequencer node.

[0156] Specifically, the master network node generates resource bridge reception data according to the resource bridge indication data, and when the second sequencer node requests to obtain the resource bridge reception data, the master network node sends the resource bridge reception data to the second sequencer node.

[0157] Step 712: Determine corresponding resource bridging indication data according to the resource bridge receiving data.

[0158] Step 714, verifying the signature of the resource transfer data packet.

[0159] Step 716: The resource bridging indication data is packaged and submitted to the main network node.

[0160] Specifically, after determining the resource bridging indication data, the second sequencing node can determine the corresponding resource transfer data packet based on the hash value in the resource bridging indication data, and perform signature verification on the resource transfer data packet. After the verification is passed, the resource bridging indication data and other resource transfer data of the second sequencer node can be sequenced together and packaged and submitted to the main network node.

[0161] In some specific embodiments, the present application also provides an application scenario, in which resources refer to virtual assets, resource transfer data is transaction data, and the resource processing method of the present application is used to realize asset bridging between multiple second-layer networks of a blockchain network, so that assets can flow across networks between second-layer networks.

[0162] The technical description in this embodiment is divided into two parts. One part is the decentralized bridging architecture of the second-layer network based on the isomorphic sequencer, and the other part is the sequencer verification technology for the second-layer network bridging transaction. These two parts together constitute the technical solution of the resource processing method of this application.

[0163] It should be noted that, in this embodiment, the layer 2 network where the asset transfer-out address is located is called the source layer 2 network, and the layer 2 network where the asset transfer-in address is located is called the target layer 2 network. The source layer 2 network is the first auxiliary network in the above embodiment, and the target layer 2 network is the second auxiliary network in the above text.

[0164] It should also be noted that the isomorphic sequencer referred to in this application refers to a sequencer that can verify signatures with each other. Since signatures can be verified with each other, the signature of the source sequencer of the source Layer 2 network can be verified in the target sequencer of the target Layer 2 network, thereby realizing asset transfer across the Layer 2 network.

[0165] The following describes each part separately:

[0166] 1. Layer 2 network decentralized bridging architecture based on homogeneous sequencer

[0167] In this embodiment, reference Figure 8 , is a two-layer network decentralized bridging architecture based on isomorphic sequencers and its main working process. The blockchain network is divided into two levels, one of which is the main network responsible for the final consensus of the transaction, and the second-layer network is responsible for the execution of the transaction and the maintenance of the status. Therefore, each module is explained as follows:

[0168] Mainnet block: a block generated in the original blockchain network, which is consensus-based in the mainnet nodes and connected into a chain in a hashing manner.

[0169] Second-layer network contracts A and B: smart contracts that run on the first-layer network and record second-layer network transactions. It should be noted that the resource processing method of this embodiment can be used for bridging multiple second-layer networks, but for ease of representation, only two second-layer networks are involved in the following description, and their second-layer network contracts are correspondingly recorded as second-layer network contract A and second-layer network contract B.

[0170] Source sequencer: the sequencer of the source layer 2 network from which the user's assets need to be transferred. For example, if the user needs to transfer from layer 2 network A, the sequencer of layer 2 network A is the source sequencer.

[0171] Target sequencer: the sequencer of the target layer 2 network to which the user's assets need to be transferred. For example, if the user needs to transfer from layer 2 network B, the sequencer of layer 2 network B is the target sequencer.

[0172] Second-layer network transactions: blockchain transactions that occur on the state of the second-layer network.

[0173] Based on the above modules, such as Figure 8 The various steps of the decentralized bridging process of the second-layer network based on the isomorphic sequencer are described in detail as follows:

[0174] 1. Submit source transaction:

[0175] The user submits a source transaction to the sequencer of the source layer 2 network. Unlike ordinary layer 2 network transactions, this transaction needs to specify the target layer 2 network to be bridged, as follows:

[0176] SrcTX=<From,To,Value,TargetRollup>

[0177] Among them, the source transaction record is SrcTX. Taking asset transfer as an example, the source transaction contains the address From where the asset is transferred out, the address To where the asset is transferred in, and the amount Value of the asset. From, To, and Value are the components of traditional blockchain layer 2 network transactions. In this embodiment, the source transaction also needs to be accompanied by a TargetRollup field, which is used to indicate the layer 2 network that the source transaction needs to be transferred to when it is specifically executed. In the specific implementation, the TargetRollup field can be expressed as the contract address of the target layer 2 network, or the unique identifier of other target layer 2 networks, depending on the main network situation. The design of the source layer 2 network contract can also be expressed in the Data field of traditional blockchain transactions.

[0178] 2. Execute sequence chaining:

[0179] The sequencer executes the source transaction together with other transactions and sequences them on the chain. The second-layer network transactions submitted to the main network at the same time include both source transactions that require bridging and ordinary second-layer network transactions that do not require bridging.

[0180] However, during the execution process, if a transaction is found whose TargetRollup is not empty, the specific transaction needs to be modified during the actual execution, as follows:

[0181] EexcTX=<SrcTX.From,SrcRollup,SrcTX.Value>

[0182] That is, ExecTX is the transaction actually executed in the source layer 2 network, and its From, To, and Value are respectively composed of From, SrcRollup, and Value of the source transaction. That is, the asset Value that should have been transferred to To is redirected to the source layer 2 network contract address of SrcRollup.

[0183] 3. Generate bridge transaction:

[0184] After the sequence is submitted to the main network, during the execution of the second-layer network contract on the main network, if a transaction with a non-empty TargetRollup is detected, two bridge transactions are generated for the transaction, as follows:

[0185] First, call the Layer 2 network contract A corresponding to the source Layer 2 network to generate the first bridge transaction, which is a transaction from the source Layer 2 network contract address to the target Layer 2 network contract address:

[0186] L1TX=<SrcRollup,SrcTX.TargetRollup,SrcTX.Value>

[0187] This bridge transaction is called L1TX, which means that it can be directly executed by the main network node as an internal transaction in the first layer network, transferring assets from the source second layer network contract to the target second layer network contract.

[0188] After that, the second-layer network contract B corresponding to the target second-layer network contract is called, and a second bridge transaction is generated, which is:

[0189] BridgeTX=<SrcTX.TargetRollup,SrcTX.To,SrcTX.Value>

[0190] The transaction is BridgeTX, which needs to be executed in the target layer 2 network. Its From, To, and Value are the target layer 2 network contract address (can also be set to null depending on the layer 2 network design) and the To and Value of the source transaction. The transaction is not specifically executed, but is output to the receipt of the block for later retrieval.

[0191] 4. Obtain bridge transaction

[0192] The target sequencer obtains the corresponding bridge transaction from the receipt synchronization of the main network block, which will be explained in detail in (II).

[0193] 5. Execute the bridge and confirm

[0194] After the target sequencer executes the bridge transaction, the entire bridge process is completed. At this time, the user can request the target sequencer or accept the message notification from the target sequencer to confirm that its bridge transaction has transferred the assets from the source layer 2 network to the target layer 2 network.

[0195] It can be seen that in the above process, the transfer of assets in various networks is as follows:

[0196] Source Layer 2 network: From->SrcRollup

[0197] Mainnet: SrcRollup->TargetRollup

[0198] Target Layer 2 network: TargetRollup->To

[0199] Among them, SrcRollup and TargetRollup in a and c can be replaced with null values ​​according to the design of the sequencer and the main network. This can also ensure that assets do not increase or decrease in the second-layer network bridge, which is more secure than the solutions of third-party exchanges.

[0200] 2. Sequencer Verification for Layer 2 Network Bridging Transactions

[0201] From the above, we can see that after generating the second-layer network bridge transaction, the target sequencer needs to obtain and actually execute it. This part needs to be verified, otherwise there will be a risk of asset issuance. In order to solve this problem, Fig. 9 The main process of the sequencer verification technology for layer 2 network bridging transactions is shown.

[0202] Compared to Figure 8 , Fig. 9 The main addition is the mainnet receipt module, which records the transaction receipt that is unidirectionally output by the mainnet node and can be read by the outside world after the mainnet block is executed. Fig. 9 The steps of the sequencer verification technology for layer 2 network bridging transactions are described in detail as follows

[0203] 1. Analysis of mainnet transaction receipts:

[0204] When a mainnet transaction is generated, the bridge transaction identifier is included in Topics[0] according to the Topics field in the receipt. Therefore, for the following receipt:

[0205] Receipts={Receipt1, Receipt2,..., ReceiptN}

[0206] The target sequencer obtains the Receipts and judges them one by one, judging the following Boolean expression:

[0207] Receipti.Topics[0]==Bridge_FLAG

[0208] Among them, Brdige_FLAG can be expressed as a 256-bit hash value of a field agreed upon by the protocol, such as the hash value of "BRIDGE", to reduce the possibility of hash collision with other normal transaction receipts.

[0209] After that, through the receipts where the above expression is True, the corresponding BridgeTX can be constructed from the Data field, such as:

[0210] InitBridgeTX = LOADS(Receipt i .Data)

[0211] Among them, LOADS() is a function that deserializes the Data field in the transaction receipt into From, To, and Value, and BridgeTX can be obtained from the Receipt receipt.

[0212] Therefore, after parsing by the target sequencer, the initial bridge transaction set InitBridgeTXs can be obtained.

[0213] 2. Verify the source sequencer signature:

[0214] Since the source sequencer and the target sequencer are isomorphic, the signature of the source sequencer can be used to verify the legitimacy of the bridge transaction in the target sequencer. Specifically, in the main network block, the target sequencer can obtain the summary signature SrcSig of the second-layer transaction submitted by the source sequencer.

[0215] By verifying the signature, the mainnet transaction that is eligible to generate a bridge transaction can be verified. The mainnet transaction is the transaction data packet that is sequenced by the source sequencer node and submitted to the mainnet:

[0216] ValidTX={TX|Valid(TX.Hash, TX.SrcSequencer, TX.SrcSig)}

[0217] Valid is used to verify whether the transaction hash Hash in the mainnet transaction TX is the result of decrypting the signature SrcSig with the public key provided by the source layer 2 sequencer. If it is consistent, the mainnet transaction is a legal mainnet transaction and can be used to generate bridge transactions.

[0218] After that, each InitBridgeTX in InitBridgeTXs is traversed to filter out transactions that meet the following conditions:

[0219] InitBridgeTX.txhash==ValidTX.hash

[0220] Among them, InitBridgeTX.txhash is the transaction hash value of the transaction receipt corresponding to the bridge transaction InitBridgeTX. By judging whether it is equal to the hash value of the legal transaction, it can be concluded whether the transaction is a legal bridge transaction. After screening, a legal bridge transaction set BridgeTXs can be obtained.

[0221] 3. Insert the chain batch:

[0222] The target sequencer inserts BrigeTXs into each transaction that needs to be packaged and put on the chain:

[0223] BatchTXs=<BridgeTXs|TXs>

[0224] Among them, BatchTXs are the second-layer network transactions that need to be submitted to the main network in this submission cycle, and TXs are traditional second-layer network transactions when bridging transactions are not included.

[0225] In terms of the order of insertion, BridgeTX and TX follow the principle of first-come-first-insertion.

[0226] 4. Execute and submit to the mainnet:

[0227] The target sequencer executes BatchTXs and completes the state transition as follows:

[0228] STATE i =EXEC(STATE i-1 , (BridgeTXs|TXs))

[0229] Among them, STATE is the state of the target layer 2 network. According to the characteristics of the layer 2 network, generally speaking, when the corresponding BridgeTX is executed, a receipt for the bridge can be generated to the user and the user can be notified that the bridge has been completed without waiting for the complete block to be submitted.

[0230] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0231] Based on the same inventive concept, the embodiment of the present application also provides a resource processing device for implementing the resource processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more resource processing device embodiments provided below can refer to the limitations on the resource processing method above, and will not be repeated here.

[0232] In some embodiments, Fig.10 As shown, a resource processing device 1000 is provided, comprising:

[0233] The resource transfer data acquisition module 1002 is used to acquire redirected resource transfer data sent by the first sequencer node in the first secondary network, the resource transfer data is obtained by the first sequencer node redirecting the resource transfer-in address indicated by the initial resource transfer data to the primary network, and the initial resource transfer data is used to indicate that resources are transferred-in at the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network;

[0234] A smart contract calling module 1004, used to call the first smart contract deployed in the main network and generate resource bridging indication data corresponding to the resource transfer data;

[0235] A bridge receiving data generating module 1006, configured to generate resource bridge receiving data corresponding to the resource transfer data according to the resource bridge indication data;

[0236] The bridge reception data sending module 1008 sends the resource bridge reception data to the second sequencer node in the second auxiliary network. The resource bridge reception data is used to instruct the second sequencer node to determine the corresponding resource bridge indication data according to the resource bridge reception data. When the legitimacy of the determined resource bridge indication data is verified, the resource is transferred into the resource transfer address.

[0237] The resource processing device obtains the redirected resource transfer data sent by the first sequencer node in the first auxiliary network, calls the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, generates resource bridging receipt data corresponding to the resource transfer data according to the resource bridging indication data, and sends the resource bridging receipt data to the second sequencer node in the second auxiliary network, so that the second sequencer node transfers resources into the resource transfer address after the legitimacy verification of the resource bridging indication data is passed, so that the sequencer nodes of multiple layer-2 networks can be bridged through the main network, so that the security of each layer-2 network and the main network can be inherited, and resources do not need to pass through a third-party organization, so the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridging indication data is automatically generated by the smart contract, which avoids the confirmation of the resource transfer process in the main network and improves the efficiency of resource transfer.

[0238] In some embodiments, the resource transfer data includes a resource transfer-in address and a resource value of a transferred-out resource indicated by the initial resource transfer data; a first contract address at which a first smart contract is deployed in the main network; a smart contract calling module, which is used to trigger a call to the first smart contract when a bridge resource corresponding to the transferred-in and transferred-out resources in the first contract address is detected; and by calling the first smart contract, resource bridging indication data corresponding to the resource transfer data is generated according to the first contract address, the resource transfer-in address and the resource value of the bridge resource.

[0239] In some embodiments, the first smart contract corresponds to the second auxiliary network, and a second smart contract corresponding to the first auxiliary network is also deployed in the main network; when the resource transfer address indicated by the initial resource transfer data is redirected to the second contract address where the second smart contract is deployed, the smart contract calling module is also used to trigger the call to the second smart contract deployed at the second contract address when the bridging resources corresponding to the transferred-in and transferred-out resources in the second contract address are detected; through the called second smart contract, the bridging resources transferred into the second contract address are transferred out to the first contract address.

[0240] In some embodiments, when the resources of the main network and the second auxiliary network are different, the smart contract calling module is also used to convert the resource values ​​of the bridging resources according to a preset resource conversion relationship to obtain the converted resource values; based on the first contract address, the resource transfer address, the resource values ​​of the bridging resources and the converted resource values, generate resource bridging indication data corresponding to the resource transfer data.

[0241] In some embodiments, a resource transfer data acquisition module is used to receive a resource transfer data packet sent by a first sequencer node in a first auxiliary network, wherein the resource transfer data packet includes a plurality of resource transfer data arranged in sequence; determine, from the plurality of resource transfer data, resource transfer data including a network identifier of a second auxiliary network; and determine the resource transfer data including the network identifier of the second auxiliary network as redirected resource transfer data.

[0242] In some embodiments, a bridge data transmission module is used to determine the sorting position of resource transfer data corresponding to resource bridge data in a resource transfer data packet; read an encryption key corresponding to the sorting position from a pre-established key data table; encrypt the resource bridge data based on the encryption key corresponding to the sorting position; send the encrypted resource bridge data and the sorting position to a second sequencer node in a second auxiliary network; the sorting position is used to instruct the second sequencer node to determine a decryption key according to the sorting position, and decrypt the encrypted resource bridge data based on the decryption key.

[0243] In some embodiments, a bridge receipt generation module is used to serialize the resource bridging indication data to obtain the receipt field content corresponding to the resource transfer data; obtain a preset bridging identifier, and generate a resource bridging receipt corresponding to the resource transfer data based on the receipt field content and the preset bridging identifier.

[0244] In some embodiments, the resource transfer data is one of a plurality of redirected resource transfer data; the resource transfer data includes a network identifier of a second auxiliary network; the resource processing device further includes: a bridge data grouping module, which is used to group and store the resource bridge data corresponding to each redirected resource transfer data according to the network identifier in the corresponding resource transfer data; when a bridge data acquisition request sent by a second sequencer node is received, the corresponding resource bridge data group is queried according to the network identifier carried in the bridge data acquisition request; when the resource bridge data group is successfully sent to the second sequencer node, the status of the sent resource bridge data group is updated.

[0245] In some embodiments, Fig.11 As shown, a resource processing device 1100 is provided, including:

[0246] The resource transfer data acquisition module 1102 is used to acquire initial resource transfer data; the initial resource transfer data is used to indicate that resources are transferred in the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network;

[0247] An address redirection module 1104 is used to redirect the resource transfer address to the primary network and obtain redirected resource transfer data;

[0248] The resource transfer data sending module 1106 is used to send the redirected resource transfer data to the main network node in the main network. The resource transfer data is used to instruct the main network node to call the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, and generate resource bridge receipt data corresponding to the resource transfer data according to the resource bridging indication data, and send the resource bridge receipt data to the second sequencer node in the second auxiliary network; the resource bridge receipt data is used to instruct the second sequencer node to determine the corresponding resource bridging indication data according to the resource bridge receipt data, and when the legitimacy of the determined resource bridging indication data is verified, the resource is transferred into the resource transfer address.

[0249] In some embodiments, the address redirection module is also used to obtain a second contract address; the second contract address is the address of a second smart contract deployed in the main network, and the second smart contract corresponds to the first auxiliary network; the resource transfer address indicated by the initial resource transfer data is redirected to the second contract address in the main network; the resource transfer data is also used to instruct the main network node to call the second smart contract, transfer the bridging resources transferred into the second contract address to the first contract address, call the first smart contract, and generate resource bridging indication data corresponding to the resource transfer data according to the first contract address, the resource transfer address and the resource value of the bridging resource.

[0250] In some embodiments, a resource transfer data sending module is used to generate a resource transfer data packet based on redirected resource transfer data and other resource transfer data; the other resource transfer data is used to indicate that resources in the first auxiliary network are transferred to the main network; the digital signature corresponding to each resource transfer data in the resource transfer data packet is obtained, and the digital signature is obtained by signing the resource transfer data packet using the private key corresponding to the corresponding resource transfer data; the digital signatures corresponding to each resource transfer data are aggregated to obtain an aggregate signature; the aggregate signature and the resource transfer data packet are sent to the main network node in the main network.

[0251] The resource processing device redirects the resource transfer address indicated by the initial resource transfer data to the main network, and sends the resource transfer data obtained by the redirection to the main network node in the main network, so that the main network node calls the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, generates resource bridge receiving data corresponding to the resource transfer data according to the resource bridging indication data, and sends the resource bridge receiving data to the second sequencer node in the second auxiliary network, so that the second sequencer node can transfer resources into the resource transfer address of the second auxiliary network after the legitimacy verification of the resource bridging indication data is passed, so that the sequencer nodes of multiple second-layer networks can be bridged through the main network, so that the security of each second-layer network and the main network can be inherited, and the resources do not need to pass through a third-party organization, so the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridging indication data is automatically generated by the smart contract, which avoids the confirmation of the resource transfer process in the main network and improves the efficiency of resource transfer.

[0252] In some embodiments, Fig.12 As shown, a resource processing device 1200 is provided, including:

[0253] The bridge receiving data acquisition module 1202 is used to obtain resource bridge receiving data from the main network; wherein the resource bridge receiving data is generated by the main network node in the main network according to the resource bridge indication data, the resource bridge indication data is generated by the main network node calling the first smart contract, the resource bridge indication data corresponds to the redirected resource transfer data, and the resource transfer data is obtained by redirecting the resource transfer-in address indicated by the initial resource transfer data to the main network by the first sequencer node, and is used to indicate that the resource is transferred into the resource transfer-in address of the second auxiliary network according to the transferred-out resources of the first auxiliary network;

[0254] The bridging indication data determining module 1204 is used to determine the corresponding resource bridging indication data according to the resource bridging data;

[0255] The bridging indication data verification module 1206 is used to verify the legality of the determined resource bridging indication data, and when the verification result indicates that the verification is passed, the resource is transferred into the resource transfer address of the second auxiliary network.

[0256] In some embodiments, the resource transfer data is data in a resource transfer data packet sent by a first sequencer node, and the bridging indication data verification module is used to: obtain a digital signature corresponding to each resource transfer data packet from the main network; the digital signature is obtained by encrypting the hash value of the corresponding resource transfer data packet using a private key by the first sequencer node; based on the public key provided by the first sequencer node, the digital signature corresponding to each resource transfer data packet is decrypted to obtain a decryption result; from the hash values ​​corresponding to each resource transfer data packet, a hash value consistent with the corresponding decryption result is screened; when the hash value contained in the determined resource bridging indication data is consistent with any of the screened hash values, a verification result indicating that the verification is passed is obtained.

[0257] In some embodiments, the resource transfer data is data in a resource transfer data packet sent by a first sequencer node, and the bridging indication data verification module is used to obtain a hash value corresponding to the resource transfer data packet from the determined resource bridging indication data; based on the hash value, obtain an aggregate signature corresponding to the resource transfer data packet from the main network; the aggregate signature is obtained by aggregating the digital signatures corresponding to each resource transfer data in the resource transfer data packet; obtain the public key corresponding to each resource transfer data in the resource transfer data packet, aggregate the public keys corresponding to each resource transfer data, and obtain an aggregate public key; perform legitimacy verification on the aggregate signature of the resource transfer data packet based on the aggregate public key, and when the legitimacy verification of the aggregate signature passes, obtain a verification result indicating that the verification has passed.

[0258] In the resource processing device, since the resource bridge reception data is generated by the main network node in the main network according to the resource bridge indication data, the resource bridge indication data is generated by the main network node calling the first smart contract, and the resource bridge indication data corresponds to the redirected resource transfer data, the redirected resource transfer data is obtained by the first sequencer node redirecting the resource transfer-in address indicated by the initial resource transfer data to the main network, and is used to indicate that according to the transferred-out resources of the first auxiliary network, the resource is transferred into the resource transfer-in address of the second auxiliary network, so that the corresponding resource bridge indication data can be determined according to the resource bridge reception data, and the legality of the determined resource bridge indication data is verified. When the verification result indicates that the verification is passed, the resource is transferred into the resource transfer-in address of the second auxiliary network, so that the sequencer nodes of multiple layer-2 networks can be bridged through the main network, so that the security of each layer-2 network and the main network can be inherited, and the resources do not need to pass through a third-party organization, and the security is relatively high. In addition, since the smart contract is deployed in the main network, the resource bridge indication data is automatically generated by the smart contract, and the confirmation of the resource transfer process in the main network is avoided, thereby improving the efficiency of resource transfer.

[0259] Each module in the resource processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0260] In some embodiments, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data in the blockchain network. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource processing method is implemented.

[0261] In some embodiments, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.14As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a resource processing method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0262] Those skilled in the art will understand that Fig.13 , Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0263] In some embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the resource processing method in any of the above embodiments are implemented.

[0264] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the resource processing method in any of the above embodiments are implemented.

[0265] In some embodiments, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the resource processing method in any of the above embodiments.

[0266] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0267] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0268] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0269] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A resource processing method, applied to a main network node in a main network of a blockchain network, wherein the blockchain network also includes multiple auxiliary networks, characterized in that: The method comprises: Obtaining redirected resource transfer data sent by a first sequencer node in a first secondary network, wherein the resource transfer data is obtained by redirecting a resource transfer-in address indicated by initial resource transfer data to the primary network by the first sequencer node, wherein the initial resource transfer data is used to indicate that resources are transferred-in at the resource transfer-in address of a second secondary network according to the transferred-out resources of the first secondary network; Calling a first smart contract deployed in the primary network to generate resource bridging indication data corresponding to the resource transfer data; generating resource bridging reception data corresponding to the resource transfer data according to the resource bridging indication data; The resource bridge reception data is sent to the second sequencer node in the second auxiliary network, and the resource bridge reception data is used to instruct the second sequencer node to determine the corresponding resource bridge indication data according to the resource bridge reception data, and when the legality of the determined resource bridge indication data is verified, the resource is transferred into the resource transfer address.

2. The method according to claim 1, characterized in that: The resource transfer data includes the resource transfer-in address indicated by the initial resource transfer data and the resource value of the transferred-out resource; the first smart contract is deployed at the first contract address in the main network; The calling of the first smart contract deployed in the primary network to generate resource bridging indication data corresponding to the resource transfer data includes: When detecting that a bridge resource corresponding to the transferred-out resource is transferred into the first contract address, triggering a call to the first smart contract; By calling the first smart contract, resource bridging indication data corresponding to the resource transfer data is generated according to the first contract address, the resource transfer address and the resource value of the bridge resource.

3. The method according to claim 2, characterized in that The first smart contract corresponds to the second auxiliary network, and the second smart contract corresponding to the first auxiliary network is also deployed in the main network; When the resource transfer address indicated by the initial resource transfer data is redirected to the second contract address where the second smart contract is deployed, the method further includes: When detecting that a bridge resource corresponding to the transferred-out resource is transferred into the second contract address, triggering a call to a second smart contract deployed at the second contract address; By calling the second smart contract, the bridge resources transferred into the second contract address are transferred out to the first contract address.

4. The method according to claim 2, characterized in that: When the resources of the primary network and the second secondary network are different, generating resource bridging indication data corresponding to the resource transfer data according to the first contract address, the resource transfer address and the resource value of the bridge resource includes: Converting the resource value of the bridge resource according to a preset resource conversion relationship to obtain a converted resource value; Resource bridging indication data corresponding to the resource transfer data is generated according to the first contract address, the resource transfer-in address, the resource value of the bridge resource and the converted resource value.

5. The method according to claim 1, characterized in that The obtaining of redirected resource transfer data sent by the first sequencer node in the first auxiliary network includes: receiving a resource transfer data packet sent by a first sequencer node in the first auxiliary network, wherein the resource transfer data packet includes a plurality of resource transfer data arranged in sequence; Determining, from the plurality of sequentially arranged resource transfer data, resource transfer data including the network identifier of the second secondary network; The resource transfer data including the network identifier of the second secondary network is determined as redirected resource transfer data.

6. The method according to claim 5, characterized in that The sending the resource bridge received data to the second sequencer node in the second auxiliary network includes: Determine the sorting position of the resource transfer data corresponding to the resource bridge received data in the resource transfer data packet; Reading the encryption key corresponding to the sorting position from a pre-established key data table; Encrypting the resource bridge received data based on the encryption key corresponding to the sorting position; The encrypted resource bridge received data and the sorting position are sent to the second sequencer node in the second auxiliary network; the sorting position is used to instruct the second sequencer node to determine a decryption key according to the sorting position, and decrypt the encrypted resource bridge received data based on the decryption key.

7. The method according to any one of claims 1 to 6, characterized in that: The step of generating resource bridging data corresponding to the resource transfer data according to the resource bridging indication data comprises: Serializing the resource bridging indication data to obtain receipt field content corresponding to the resource transfer data; A preset bridge identifier is obtained, and a resource bridge receipt corresponding to the resource transfer data is generated according to the receipt field content and the preset bridge identifier.

8. The method according to any one of claims 1 to 6, characterized in that: The resource transfer data is one of a plurality of redirected resource transfer data; the resource transfer data includes a network identifier of the second secondary network; the method further includes: The resource bridge data corresponding to each redirected resource transfer data are grouped and stored according to the network identifier in the corresponding resource transfer data; When receiving the bridge data acquisition request sent by the second sequencer node, querying the corresponding resource bridge data group according to the network identifier carried in the bridge data acquisition request; When the resource bridge received data group is successfully sent to the second sequencer node, the status of the sent resource bridge received data group is updated.

9. A resource processing method, applied to a first sequencer node in a first auxiliary network of a blockchain network, wherein the blockchain network also includes a second auxiliary network and a main network, characterized in that: The method comprises: Acquire initial resource transfer data; the initial resource transfer data is used to indicate that resources are transferred into the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network; Redirecting the resource transfer address to the primary network to obtain redirected resource transfer data; The redirected resource transfer data is sent to the main network node in the main network, and the resource transfer data is used to instruct the main network node to call the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, and generate resource bridge receipt data corresponding to the resource transfer data according to the resource bridging indication data, and send the resource bridge receipt data to the second sequencer node in the second auxiliary network; the resource bridge receipt data is used to instruct the second sequencer node to determine the corresponding resource bridging indication data according to the resource bridge receipt data, and when the legitimacy of the determined resource bridging indication data is verified, the resource is transferred into the resource transfer address.

10. The method according to claim 9, characterized in that The step of redirecting the resource transfer address indicated by the initial resource transfer data to the primary network to obtain the redirected resource transfer data includes: Obtain a second contract address; the second contract address is the address of a second smart contract deployed in the primary network, and the second smart contract corresponds to the first secondary network; Redirecting the resource transfer address indicated by the initial resource transfer data to the second contract address in the main network; The resource transfer data is also used to instruct the main network node to call the second smart contract, transfer the bridging resources transferred into the second contract address to the first contract address, call the first smart contract, and generate resource bridging indication data corresponding to the resource transfer data according to the first contract address, the resource transfer address and the resource value of the bridging resource.

11. The method according to claim 9, characterized in that The step of sending the redirected resource transfer data to the primary network node in the primary network includes: generating a resource transfer data packet according to the redirected resource transfer data and other resource transfer data; the other resource transfer data is used to instruct to transfer resources in the first auxiliary network to the primary network; Obtaining a digital signature corresponding to each resource transfer data in the resource transfer data packet, wherein the digital signature is obtained by signing the resource transfer data packet using a private key corresponding to the corresponding resource transfer data; Aggregate the digital signatures corresponding to each resource transfer data to obtain an aggregate signature; The aggregate signature and the resource transfer data packet are sent to a primary network node in the primary network.

12. A resource processing method, applied to a second sequencer node in a second auxiliary network of a blockchain network, wherein the blockchain network also includes a first auxiliary network and a main network, characterized in that: The method comprises: Obtain resource bridge receipt data from the primary network; wherein the resource bridge receipt data is generated by a primary network node in the primary network according to resource bridge indication data, the resource bridge indication data is generated by the primary network node calling a first smart contract, the resource bridge indication data corresponds to redirected resource transfer data, and the resource transfer data is obtained by redirecting the resource transfer-in address indicated by the initial resource transfer data to the primary network by the first sequencer node, and is used to indicate that resources are transferred into the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network; Determining corresponding resource bridging indication data according to the resource bridging reception data; The determined resource bridging indication data is subjected to a legality verification, and when the verification result indicates that the verification is passed, the resource is transferred into the resource transfer address.

13. The method according to claim 12, characterized in that The resource transfer data is data in a resource transfer data packet sent by the first sequencer node, and the legitimacy verification of the determined resource bridging indication data includes: Obtaining digital signatures corresponding to respective resource transfer data packets from the main network; the digital signatures are obtained by encrypting the hash value of the corresponding resource transfer data packet by the first sequencer node using a private key; Decrypting the digital signatures corresponding to the resource transfer data packets based on the public key provided by the first sequencer node to obtain a decryption result; Selecting a hash value that is consistent with the corresponding decryption result from the hash values ​​corresponding to each resource transfer data packet; When the hash value included in the determined resource bridge indication data is consistent with any of the filtered hash values, a verification result indicating that the verification is passed is obtained.

14. The method according to claim 12, characterized in that The resource transfer data is data in a resource transfer data packet sent by the first sequencer node, and the legitimacy verification of the determined resource bridging indication data includes: Obtaining a hash value corresponding to the resource transfer data packet from the determined resource bridging indication data; According to the hash value, obtaining an aggregate signature corresponding to the resource transfer data packet from the primary network; the aggregate signature is obtained by aggregating digital signatures corresponding to respective resource transfer data in the resource transfer data packet; Obtaining the public keys corresponding to the resource transfer data in the resource transfer data packet, and aggregating the public keys corresponding to the resource transfer data to obtain an aggregated public key; The aggregate signature of the resource transfer data packet is subjected to a legitimacy verification based on the aggregate public key, and when the legitimacy verification of the aggregate signature passes, a verification result indicating that the verification has passed is obtained.

15. A resource processing device, characterized in that: The device comprises: a resource transfer data acquisition module, configured to acquire redirected resource transfer data sent by a first sequencer node in a first secondary network, wherein the resource transfer data is obtained by redirecting a resource transfer-in address indicated by initial resource transfer data to a primary network by the first sequencer node, wherein the initial resource transfer data is used to indicate that resources are transferred-in at the resource transfer-in address of a second secondary network according to the transferred-out resources of the first secondary network; A smart contract calling module, used to call the first smart contract deployed in the main network and generate resource bridging indication data corresponding to the resource transfer data; A bridge receiving data generating module, used for generating resource bridge receiving data corresponding to the resource transfer data according to the resource bridge indication data; A bridge reception data sending module is used to send the resource bridge reception data to the second sequencer node in the second auxiliary network, and the resource bridge reception data is used to instruct the second sequencer node to determine the corresponding resource bridge indication data according to the resource bridge reception data. When the legitimacy of the determined resource bridge indication data is verified, the resource is transferred into the resource transfer address.

16. A resource processing device, characterized in that: The device comprises: A resource transfer data acquisition module, used to acquire initial resource transfer data; the initial resource transfer data is used to indicate that resources are transferred in at a resource transfer-in address of a second secondary network according to the transferred-out resources of the first secondary network; An address redirection module, used for redirecting the resource transfer address to the main network to obtain redirected resource transfer data; A resource transfer data sending module is used to send the redirected resource transfer data to the main network node in the main network, the resource transfer data is used to instruct the main network node to call the first smart contract to generate resource bridging indication data corresponding to the resource transfer data, generate resource bridge receipt data corresponding to the resource transfer data according to the resource bridging indication data, and send the resource bridge receipt data to the second sequencer node in the second auxiliary network; the resource bridge receipt data is used to instruct the second sequencer node to determine the corresponding resource bridging indication data according to the resource bridge receipt data, and when the legitimacy of the determined resource bridging indication data is verified, the resource is transferred into the resource transfer address.

17. A resource processing device, characterized in that: The device comprises: A bridge receiving data acquisition module, used to obtain resource bridge receiving data from the main network; wherein the resource bridge receiving data is generated by the main network node in the main network according to the resource bridge indication data, the resource bridge indication data is generated by the main network node calling the first smart contract, the resource bridge indication data corresponds to the redirected resource transfer data, and the resource transfer data is obtained by redirecting the resource transfer-in address indicated by the initial resource transfer data to the main network by the first sequencer node, and is used to indicate that resources are transferred into the resource transfer-in address of the second secondary network according to the transferred-out resources of the first secondary network; A bridging indication data determining module, used to determine corresponding resource bridging indication data according to the resource bridging data; The bridging indication data verification module is used to verify the legality of the determined resource bridging indication data, and when the verification result indicates that the verification is passed, the resource is transferred into the resource transfer address of the second auxiliary network.

18. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 14 are implemented.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.

20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.