CN111163129B - Resource processing method and device based on cross-link network - Google Patents

Resource processing method and device based on cross-link network Download PDF

Info

Publication number
CN111163129B
CN111163129B CN201911236666.6A CN201911236666A CN111163129B CN 111163129 B CN111163129 B CN 111163129B CN 201911236666 A CN201911236666 A CN 201911236666A CN 111163129 B CN111163129 B CN 111163129B
Authority
CN
China
Prior art keywords
resource
cross
calling
chain
called
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911236666.6A
Other languages
Chinese (zh)
Other versions
CN111163129A (en
Inventor
莫楠
贺双洪
石翔
李辉忠
张开翔
范瑞彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201911236666.6A priority Critical patent/CN111163129B/en
Publication of CN111163129A publication Critical patent/CN111163129A/en
Priority to PCT/CN2020/121949 priority patent/WO2021109735A1/en
Application granted granted Critical
Publication of CN111163129B publication Critical patent/CN111163129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1059Inter-group management mechanisms, e.g. splitting, merging or interconnection of groups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The embodiment of the invention discloses a resource processing method and device based on a cross-chain network. In the embodiment of the invention, the proxy node is arranged to manage the cross-chain resources in the cross-chain network, so that the client can call the cross-chain resources in the cross-chain network by directly sending the resource calling request to the proxy node, and the method can call different resources of different block chain networks by adopting the same calling mode without one-to-one adaptation of each block chain network, thereby having better flexibility and higher user experience.

Description

Resource processing method and device based on cross-link network
Technical Field
The invention relates to the technical field of financial technology (Fintech), in particular to a resource processing method and device based on a cross-chain network.
Background
With the development of computer technology, more and more technologies are applied in the financial field, the traditional financial industry is gradually changing to financial technology (Fintech), and the blockchain technology is no exception, but the financial technology also puts higher requirements on the blockchain technology due to the requirements of security and real-time performance of the financial industry.
The Hash locking technology is a commonly used cross-chain technology in the prior art, wherein two parties of cross-chain transaction lock assets in accounts of the two parties on the basis of an intelligent contract, then a Hash original value is input, and if the two parties input correct Hash original values within limited time, the cross-chain asset processing can be completed. However, this method requires that both parties participating in the cross-chain transaction respectively adapt the blockchain network performing the cross-chain transaction, so as to process the cross-chain assets in the blockchain network, thereby having a technical problem of poor flexibility.
In summary, there is a need for a resource processing method based on a cross-link network, so as to solve the technical problem of poor flexibility caused by the prior art that the resource needs to be adapted to the blockchain network where the resource is located when the resource in the cross-link network is called.
Disclosure of Invention
The embodiment of the invention provides a resource processing method and device based on a cross-link network, which are used for solving the technical problem of poor flexibility caused by the fact that a block chain network where resources are located needs to be adapted when the resources in the cross-link network are called in the prior art.
In a first aspect, an embodiment of the present invention provides a resource processing method based on a cross-link network, where the method includes:
the method comprises the steps that a proxy node receives a resource calling request sent by a user side, determines a block chain network corresponding to an identifier of a resource to be called according to the corresponding relation between the identifier of a cross-chain resource and the block chain network, and calls the resource to be called from the block chain network corresponding to the resource to be called to obtain a calling result; and the resource calling request comprises the identifier of the resource to be called.
In the embodiment of the invention, the proxy node is arranged to manage the cross-chain resources in the cross-chain network, so that the client can call the cross-chain resources in the cross-chain network by directly sending the resource calling request to the proxy node, and the method can call different resources of different block chain networks by adopting the same calling mode without one-to-one adaptation of each block chain network, thereby having better flexibility and higher user experience.
In a possible implementation manner, the proxy node is packaged with management units corresponding to the block chain networks one by one; before the agent node receives a resource calling request sent by a user side, the agent node also receives a deployment request sent by the user side; the deployment request comprises each cross-chain resource to be deployed and the identification of the block chain network required to be deployed by each cross-chain resource; further, the agent node determines, for any cross-chain resource, a management unit corresponding to the cross-chain resource according to an identifier of a blockchain network to be deployed for the cross-chain resource in the deployment request, and distributes the cross-chain resource to the management unit corresponding to the cross-chain resource, so that the management unit deploys the cross-chain resource to the blockchain network managed by the management unit, obtains a deployment result of each cross-chain resource by each management unit, and generates a corresponding relationship between the identifier of the cross-chain resource and the blockchain network according to the deployment result.
In the implementation manner, by encapsulating a plurality of management nodes in the proxy node, placing the management work of the cross-link resources at the proxy node for execution, and placing the call work of the cross-link resources in each blockchain network at the management unit corresponding to each blockchain network for execution, on one hand, the management and the call of the cross-link resources can be decoupled, so that the flexibility of resource processing is improved, and on the other hand, the pressure and the performance loss of the proxy node can be reduced.
In a possible implementation manner, the invoking, by the proxy node, the resource to be invoked from the block chain network corresponding to the resource to be invoked to obtain an invoking result, including: the proxy node determines a target management unit corresponding to the resource to be called according to the block chain network corresponding to the identifier of the resource to be called, and acquires identifiers of all cross-link resources in the block chain network managed by the target management unit; further, the proxy node generates a call instruction according to the identifier of the resource to be called and sends the call instruction to the target management unit if determining that the resource to be called is included in all the cross-link resources according to the identifiers of all the cross-link resources in the block link network managed by the target management unit; the calling instruction is used for the target management unit to call the resource to be called in the blockchain network.
In the implementation manner, whether the resource to be called belongs to the cross-chain resource managed by the management unit is judged before the calling operation is executed, so that the management unit can accurately call the cross-chain resource managed by the management unit, unnecessary calling operation is avoided, and the calling efficiency is improved.
In a possible implementation manner, the resource calling request further includes a calling interface, and the calling interface is any one or more of general interfaces of each cross-chain resource; the proxy node generates a calling instruction according to the identifier of the resource to be called, and the method comprises the following steps: and the proxy node generates the calling instruction according to the identifier of the resource to be called and the calling interface, wherein the calling instruction is used for the target management unit to call the resource to be called in the blockchain network by using the calling interface.
In one possible implementation, the identifier of the calling resource is a contract address of the intelligent contract; in a specific implementation, the step of generating, by the proxy node, the call instruction according to the identifier of the resource to be called and the call interface includes: the agent node generates the calling instruction according to the contract address of the intelligent contract and the calling interface, the calling instruction is used for the target management unit to generate a contract object according to the contract address of the intelligent contract, and the calling interface of the contract object is called to acquire or update contract data of the intelligent contract.
In a possible implementation manner, the identifier of the calling resource is a table name of a data table; in a specific implementation, the step of generating, by the proxy node, the call instruction according to the identifier of the resource to be called and the call interface includes: and the proxy node generates the calling instruction according to the table name of the data table and the calling interface, wherein the calling instruction is used for the target management unit to acquire the data table according to the table name of the data table and to inquire or modify data in the data table according to the calling interface.
In the implementation mode, the same calling interface is set for various cross-chain resources, so that a user can call each calling resource based on the same input mode without adapting to each calling resource, the calling complexity can be reduced, and the calling efficiency can be improved.
In a possible implementation manner, the correspondence between the identifier of the cross-chain resource and the blockchain network is set according to the cross-chain network, the blockchain network included in the cross-chain network, and the hierarchical relationship between the cross-chain resources deployed in the blockchain network.
In the implementation manner, the corresponding relationship between the cross-link resources and the block link network is set according to the hierarchical form of the cross-link resources deployed in each cross-link network, the block link network in each cross-link network and the block link network managed by the proxy node, so that the proxy node can flexibly manage the cross-link resources in each cross-link network, and therefore the proxy node can quickly determine the block link network corresponding to the cross-link resources based on the corresponding relationship, and the efficiency of cross-link resource calling is improved.
In a second aspect, an embodiment of the present invention provides a resource processing apparatus based on a cross-link network, where the apparatus includes:
the system comprises a receiving and sending module, a processing module and a processing module, wherein the receiving and sending module is used for receiving a resource calling request sent by a user side, and the resource calling request comprises an identifier of a resource to be called;
the determining module is used for determining the block chain network corresponding to the identifier of the resource to be called according to the corresponding relation between the identifier of the cross-chain resource and the block chain network;
and the calling module is used for calling the resource to be called from the block chain network corresponding to the resource to be called to obtain a calling result.
In a possible implementation manner, the device is packaged with management units corresponding to the block chain networks one by one; the apparatus also includes a deployment module; in specific implementation, before receiving a resource calling request sent by a user side, the transceiver module is further configured to receive a deployment request sent by the user side; the deployment request comprises each cross-chain resource to be deployed and the identification of the block chain network required to be deployed by each cross-chain resource; correspondingly, the deployment module is configured to determine, for any cross-chain resource, a management unit corresponding to the cross-chain resource according to an identifier of a blockchain network to be deployed for the cross-chain resource in the deployment request, and distribute the cross-chain resource to the management unit corresponding to the cross-chain resource, so that the management unit deploys the cross-chain resource to the blockchain network managed by the management unit; and acquiring the deployment result of each management unit to each cross-chain resource, and generating the corresponding relation between the identification of the cross-chain resource and the block chain network according to the deployment result.
In a possible implementation manner, the invoking module is specifically configured to: determining a target management unit corresponding to the resource to be called according to the block chain network corresponding to the identifier of the resource to be called, and acquiring identifiers of all cross-chain resources in the block chain network managed by the target management unit; further, according to the identifiers of all cross-link resources in the block chain network managed by the target management unit, if it is determined that all cross-link resources include the resource to be called, a calling instruction is generated according to the identifier of the resource to be called, and the calling instruction is sent to the target management unit; the calling instruction is used for the target management unit to call the resource to be called in the blockchain network.
In a possible implementation manner, the resource calling request further includes a calling interface, and the calling interface is any one or more of general interfaces of each cross-chain resource; in a specific implementation, the calling module is specifically configured to: and generating the calling instruction according to the identifier of the resource to be called and the calling interface, wherein the calling instruction is used for the target management unit to call the resource to be called in the blockchain network by using the calling interface.
In one possible implementation, the identifier of the calling resource is a contract address of the intelligent contract; in a specific implementation, the calling module is specifically configured to: and generating the calling instruction according to the contract address of the intelligent contract and the calling interface, wherein the calling instruction is used for generating a contract object by the target management unit according to the contract address of the intelligent contract and calling the calling interface of the contract object to acquire or update contract data of the intelligent contract.
In a possible implementation manner, the identifier of the calling resource is a table name of a data table; in a specific implementation, the calling module is specifically configured to: and generating the calling instruction according to the table name of the data table and the calling interface, wherein the calling instruction is used for the target management unit to acquire the data table according to the table name of the data table and to inquire or modify data in the data table according to the calling interface.
In a possible implementation manner, the correspondence between the identifier of the cross-chain resource and the blockchain network is set according to the cross-chain network, the blockchain network included in the cross-chain network, and the hierarchical relationship between the cross-chain resources deployed in the blockchain network.
In a third aspect, an embodiment of the present invention provides a computing device, including at least one processor and at least one memory, where the memory stores a computer program, and when the program is executed by the processor, the processor is caused to execute the resource processing method based on the cross-chain network according to any of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by a computing device, and when the program runs on the computing device, the computer program causes the computing device to execute the resource processing method based on the cross-chain network according to any of the first aspect.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a system architecture of a cross-link network according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a possible system architecture according to an embodiment of the present invention;
fig. 3 is a schematic flowchart corresponding to a resource processing method based on a cross-link network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a resource processing apparatus based on a cross-link network according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computing device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic system architecture diagram of a cross-link network according to an embodiment of the present invention, as shown in fig. 1, at least two (two or more) blockchain networks, such as a blockchain network 101, a blockchain network 102, and a blockchain network 103, may be disposed in a cross-link network 10; at least two block chain networks can be connected according to a set requirement, and the connection mode can be wired connection or wireless connection, which is not limited.
In the embodiment of the present invention, each blockchain network may include one or more nodes, for example, the blockchain network 101 includes a node 1011, a node 1012, a node 1013, and a node 1014, and any two nodes of the nodes 1011 to the node 1014 may be communicatively connected, so as to jointly maintain the blockchain system. The nodes in the blockchain network may have multiple functions, such as a routing function, a transaction function, a blockchain function, a consensus function, and the like, for example, the nodes in the blockchain network may transmit information, such as transaction data transmitted from other nodes, to more nodes to implement communication between the nodes; alternatively, nodes in the blockchain network may be used to support a user in conducting transactions; alternatively, nodes in the blockchain network may be used to record all transactions historically; alternatively, a node in the blockchain network may generate a new block in the blockchain network by verifying and recording the transaction. In practical applications, the routing function is a function that each node in the blockchain network must have, and other functions can be set by those skilled in the art according to practical needs.
It should be noted that, a node in the blockchain network may be on a physical machine (server), and a node may specifically refer to a process or a series of processes running in the server. For example, the node 1011 may be a process running on a server, or may refer to a server, which is not limited in particular.
In the embodiment of the present invention, any blockchain network may be deployed with a dedicated chain resource and a cross-chain resource, where the dedicated chain resource is a resource required by the blockchain network to execute internal transactions, and the cross-chain resource is a resource required by the blockchain network to execute external transactions with other blockchain networks. For example, when the blockchain network 101 is a transaction chain network, the blockchain network 102 is a settlement chain network, and the blockchain network 103 is an integration chain network, the interlink network 10 may form an interlink payment network, transaction interlink resources are deployed on the transaction chain network, settlement interlink resources are deployed on the settlement chain network, and integration interlink resources are deployed on the integration chain network, and the transaction chain network may call the settlement interlink resources of the settlement chain network to perform asset settlement when executing a transaction using the transaction interlink resources, and may call the integration chain network to update the integration according to an asset settlement result of the settlement chain network and a transaction type of the transaction chain network.
It should be noted that the above is only an exemplary and simple description, and the number of the block networks and the number of the nodes in the block networks are only for convenience of description and do not constitute a limitation to the scheme, in a specific implementation, the number of the block networks included in the inter-chain network may be greater than 3, for example, 4 or more than 4, and correspondingly, the number of the nodes included in each block network may be greater than 4, for example, 5 or more than 5, and is not limited.
Fig. 2 is a schematic diagram of a possible system architecture provided by an embodiment of the present invention, as shown in fig. 2, the system architecture is provided with a proxy node 130 and at least one inter-link network, such as an inter-link network 10, an inter-link network 11, and an inter-link network 12; the inter-link network 10 includes a blockchain network 101, a blockchain network 102, and a blockchain network 103, the inter-link network 11 includes a blockchain network 111 and a blockchain network 112, and the inter-link network 12 includes a blockchain network 121 and a blockchain network 122, and each blockchain network in each inter-link network may be set according to the method illustrated in fig. 1.
As shown in fig. 2, the system architecture is provided with a user end 140, the user end 140 may be any terminal device arranged at a developer side, such as a laptop, an Ipad, a mobile phone, and the like, and the developer may participate in a development process of a cross-link network through the user end 140.
In the embodiment of the present invention, the proxy node 130 may be connected to the user end 140 and each of the blockchain networks, for example, the connection may be in a limited manner, or may be connected in a wireless manner, which is not limited in particular.
Based on the system architectures illustrated in fig. 1 and fig. 2, fig. 3 is a schematic flowchart of a resource processing method provided in an embodiment of the present invention, where the method is applied to the proxy node 130, and the method includes:
step 301, receiving a resource calling request sent by a user side, where the resource calling request includes an identifier of a resource to be called.
In the embodiment of the present invention, a cross-chain resource is deployed in each blockchain network of a cross-chain network by a developer in a development phase, where the cross-chain resource may refer to any type of resource, for example, may be an intelligent contract deployed on the blockchain network, or may also be data or assets stored in a database of the blockchain network, or may also be data stored in the intelligent contract; the storage form of the data may be a data table, or may also be other types, such as a stack, a graph, and the like, without limitation.
In one example, the identifier of the resource to be called may be composed of an address of the resource to be called, an identifier of a blockchain network deployed by the resource to be called, and an identifier of a cross-chain network in which the blockchain network deployed by the resource to be called is located. For example, if the resource to be invoked is a smart contract of 0X1 deployed on the blockchain network 112, the identity of the resource to be invoked may be "Cross-chain network 11. blockchain network 112.0X 1".
In the embodiment of the present invention, when a developer needs to call a cross-link resource in any cross-link network, an identifier of the resource to be called may be input on a call interface of the user terminal 140, and accordingly, after the user terminal 140 receives the identifier of the resource to be called input by the developer, an Internet Protocol (IP) address of the proxy node 130 and a port number used for a cross-link service in the proxy node 130 may be obtained, and then a resource call request is generated based on the identifier of the resource to be called, the IP address of the proxy node 130, and the port number used for the cross-link service. The IP address of the proxy node 130 and the port number for the cross-link service are obtained by the user end 140 and the proxy node 130 in advance through interaction, and the user end 140 and the proxy node 130 can update in real time through interaction.
In one example, the resource invocation request may be a URL address constructed based on the identification of the resource to be invoked, the IP address of the proxy node 130, and the port number for the cross-chain service, such as if the IP address of the proxy node 130 is IP:127.0.0.1, the port number for the cross-chain service in the proxy node 130 is 8080, and the identification of the resource to be invoked is "cross-chain network 11. blockchain network 112.0X 1", the resource invocation request may be "http:// 127.0.0.1/8080. cross-chain network 11/blockchain network 112/0X 1".
Step 302, determining the block chain network corresponding to the identifier of the resource to be called according to the corresponding relationship between the resource identifier and the block chain network.
In a possible implementation manner, the proxy node 130 may encapsulate management units corresponding to the respective blockchain networks, and the proxy node may be indirectly connected to the respective blockchain networks through the respective management units. For example, as shown in fig. 2, the management unit 1 corresponding to the blockchain network 101, the management unit 2 corresponding to the blockchain network 102, the management unit 3 corresponding to the blockchain network 103, the management unit 4 corresponding to the blockchain network 111, the management unit 5 corresponding to the blockchain network 112, the management unit 6 corresponding to the blockchain network 121, and the management unit 7 corresponding to the blockchain network 122 may be respectively packaged in the proxy node 130, and the proxy node 130 may respectively realize connections with the blockchain network 101 to the blockchain network 103, the blockchain network 111 and the blockchain network 112, the blockchain network 121 and the blockchain network 122 through the management units 1 to 7.
The encapsulation has various meanings, for example, the management unit may be a Software Development Kit (SDK) component deployed inside the proxy node 130, or may be a device independent of the proxy node 130, and the communication with the proxy node 130 is realized through a Remote Procedure Call (RPC) protocol; and, although the management unit is encapsulated in the proxy node 130, the application running on the management unit is independent of the application running on the proxy node 130, the application running on the management unit is used to manage the nodes and resources in the connected blockchain network, and the application running on the proxy node 130 is used to manage the management unit.
In this embodiment of the present invention, the management unit may be communicatively connected to each node in the corresponding blockchain network, for example, by wired connection or wireless connection with each node, or may also deploy an SDK component on each node, and implement communicative connection with each node through the SDK component on each node, which is not limited.
In one example, based on this implementation, a developer may deploy cross-chain resources by:
in step a, the developer sends the configuration information of each cross-chain resource to be deployed to the agent node 130 through the user terminal 140.
The configuration information of each cross-chain resource may include an identifier of a blockchain network that the cross-chain resource needs to be deployed, an identifier of a cross-chain network where the blockchain network that needs to be deployed is located, and a cross-chain resource, where types of the cross-chain resource are different, and the cross-chain resource is also different, for example, if the cross-chain resource is an intelligent contract, the cross-chain resource may include implementation logic (or implementation logic and initial data) of the intelligent contract, and if the cross-chain resource is an asset, data of the cross-chain resource may include an asset type of each account and a value corresponding to the asset type.
In a specific implementation, the proxy node 130 may open a registration interface to each user side in advance, and if the user side 140 has a registration authority, the user side 140 may input configuration information of the cross-link resource in the registration interface of the proxy node 130, so as to send the configuration information of the cross-link resource to the proxy node 130.
Step b, the agent node 130 determines the management unit corresponding to each cross-chain resource to be deployed according to the configuration information of each cross-chain resource to be deployed, and distributes each cross-chain resource to be deployed to the corresponding management unit.
In a specific implementation, for any cross-chain resource to be deployed, the agent node 130 may determine the management unit corresponding to the cross-chain resource according to the identifier of the block chain network to be deployed of the cross-chain resource and the cross-chain network in which the block chain network to be deployed is located, and then distribute the data of the cross-chain resource to the corresponding management unit. For example, as shown in fig. 2, if a certain cross-link resource is an intelligent contract, and the blockchain network to be deployed by the intelligent contract is the blockchain network 112 in the cross-link system 11, since the management unit 5 is used to manage each node in the blockchain network 112, the blockchain network corresponding to the intelligent contract is the management unit 5, and the agent node 130 may send the intelligent contract to the management unit 5.
And c, after receiving the cross-chain resources to be deployed, the management unit deploys the cross-chain resources in the block chain network managed by the management unit.
For example, if the management unit 5 receives the smart contract sent by the proxy node 130, the management unit 5 may send the smart contract to any node (or all nodes) in the blockchain network 112 through the SDK component deployed on the node, so that each node in the blockchain network 112 deploys the execution contract into the blockchain network 112; if the deployment is successful, any node may send the address of the intelligent contract deployed in the blockchain network 112 to the management unit 5, if the deployment fails, each node may retry for multiple times, and if the deployment still fails after retrying for a preset number of times, a response message of the failure in deployment may be sent to the management unit 5.
In step d, the management unit sends the deployment result of each cross-chain resource to be deployed to the agent node 130.
When the deployment is successful, if the cross-link resource is an intelligent contract, the deployment result of the cross-link resource may be an address of the intelligent contract in the blockchain network, if the cross-link resource is data in the data table, the deployment result of the cross-link resource may be a table name of the data table, and if the cross-link resource is an asset, the deployment result of the cross-link resource may be an asset account name.
Step e, the agent node 130 sends the deployment result of each management unit to the user terminal 140.
In an example, the agent node 130 may further generate a correspondence between the cross-chain resource and the blockchain network according to a deployment result of each management unit, where the correspondence between the cross-chain resource and the blockchain network is used to indicate a correspondence between each deployed cross-chain resource and the belonged blockchain network, and the correspondence may be stored in a form of a table, or may also be stored in a form of a graph, which is not limited.
For example, taking the system architecture illustrated in fig. 2 as an example, table 1 is a schematic table of a correspondence relationship between cross-chain resources and a blockchain network according to an embodiment of the present invention.
Table 1: indication of corresponding relation between cross-chain resources and block chain network
Figure BDA0002305074800000121
As shown in table 1, the correspondence relationship between the cross-link resource and the blockchain network may include a resource deployment situation on each cross-link network managed by the agent node 130, and the resource deployment situation on each cross-link network may include a cross-link resource deployed on each blockchain network in the cross-link network and a management unit corresponding to each blockchain network, for example, the cross-link network 11 includes a blockchain network 111 and a blockchain network 112, the blockchain network 111 corresponds to the management unit 4, the blockchain network 111 has an intelligent contract 0X3 and a data table 2, the blockchain network 112 corresponds to the management unit 5, and the blockchain network 112 has a data table 3.
In the embodiment of the invention, the corresponding relation between the cross-chain resources and the block chain network is set according to the hierarchical form of the cross-chain resources deployed in each cross-chain network, the block chain network in each cross-chain network and the block chain network managed by the proxy node, so that the proxy node can flexibly manage the cross-chain resources in each cross-chain network, and the proxy node can quickly determine the block chain network corresponding to the cross-chain resources based on the corresponding relation, thereby improving the efficiency of cross-chain resource calling.
In a specific implementation, after receiving the resource calling request, the proxy node 130 may first obtain the identifier of the resource to be called by parsing from the resource calling request, and then query the correspondence between the resource identifier and the blockchain network according to the identifier of the resource to be called, to determine the blockchain network corresponding to the identifier of the resource to be called.
Step 303, calling the resource to be called from the block chain system corresponding to the resource to be called to obtain a calling result.
In the embodiment of the present invention, the proxy node 130 may also be directly connected to each node in each managed inter-link network, so that, after determining the blockchain network corresponding to the identifier of the resource to be called, the proxy node 130 may directly send the call request corresponding to the resource to be called to any node of the blockchain network, so that each node in the blockchain network calls the resource to be called to perform a call operation. However, in this way, the proxy node 130 not only needs to manage the cross-link resources of each cross-link network, but also needs to perform a call operation of the cross-link resources, so that the pressure of the proxy node 130 is large, and the performance loss is severe.
To solve the above problem, in one possible implementation, the proxy node 130 is indirectly connected to nodes in each of the inter-chain networks through each management unit, each managing one of the blockchain networks, and thus, after the identifier of the resource to be called is obtained by parsing from the call request, the proxy node 130 may first obtain each blockchain network in the cross-chain network and the management unit corresponding to each blockchain network according to the identifier lookup table 1 of the cross-chain network in the identifier of the resource to be called, further, according to the identifier of the blockchain network in the identifier of the resource to be called, the management unit corresponding to the blockchain network in the identifier of the resource to be called is determined and is used as the management unit corresponding to the resource to be called, and then sending the calling request of the resource to be called to a management unit corresponding to the resource to be called.
For example, if the resource invocation request is "http:// 127.0.0.1/8080. inter-link network 11/blockchain network 111/0X 3", the proxy node 130 may restore the identifier of the resource to be invoked "inter-link network 11. blockchain network 111.0X 3" from "http:// 127.0.1/8080. inter-link network 11/blockchain network 111/0X 3", and then pull all the management units under the inter-link network 11, i.e., the management unit 4 and the management unit 5, from table 1 according to the identifier of the inter-link network in the identifier of the resource to be invoked "inter-link network 11", where the management unit 4 is used for managing the blockchain network 111 and the management unit 5 is used for managing the blockchain network 112; further, the agent node 130 may determine the management unit of the management blockchain network 111, that is, the management unit 4, from all the management units under the cross-chain network 11 according to the identifier "blockchain network 111" of the blockchain network in the identifier of the resource to be called, and thus, the agent node 130 may generate a call instruction according to the identifier of the cross-chain resource intelligent contract 0X3 to be called, and send the call instruction to the management unit 4.
In the implementation manner, management work of the cross-chain resources is placed at the proxy node for execution, and call work of the cross-chain resources in each blockchain network is placed at the management unit corresponding to each blockchain network for execution, so that on one hand, management and call of the cross-chain resources can be decoupled, flexibility of resource processing is improved, and on the other hand, pressure and performance loss of the proxy node can be reduced.
In an example, the resource invocation request may further include an invocation interface, the invocation interface may be one or more of various common interfaces of the cross-chain resource, and after determining the management unit corresponding to the cross-chain resource to be invoked, the proxy node 130 may further generate an invocation instruction according to the identifier of the cross-chain resource to be invoked and the invocation interface, and send the invocation instruction to the corresponding management unit.
The common interfaces of the various cross-chain resources are set based on resource access requirements of the various cross-chain resources, and may be set by a person skilled in the art according to experience, which is not limited specifically.
In the embodiment of the present invention, the cross-chain resource may have the following general interfaces:
a getData () interface for obtaining data or assets in a data table or database deployed in the blockchain network;
a setData () interface for updating data or assets in a data table or database deployed in the blockchain network, the updating operation being addition, deletion or modification;
a call () interface for calling logic of an intelligent contract deployed in a blockchain network to obtain data in the intelligent contract;
a sendtransmission () interface for invoking logic of an intelligent contract deployed in a blockchain network to operate on data in the intelligent contract;
the system comprises a register EventHandler () interface, a block chain network and a block chain network, wherein the register EventHandler () interface is used for registering a buried point event on the block chain network, and when the buried point event on the block chain network is triggered, the register EventHandler () interface can actively push the triggered information of the buried point event to a set address.
The call () interface is only used for acquiring data in the intelligent contract and not executing transaction, so that the data in the intelligent contract can not be updated, and correspondingly, the data in the block chain network can not be updated; while the sendtransmission () interface is used to perform operations using the data in the intelligent contract, it will update the data in the intelligent contract and correspondingly also in the blockchain network.
In the embodiment of the present invention, the getData () interface and setData () interface are generally used for operating on a data table, and the call () interface and sendtransmission () interface are generally used for operating on an intelligent contract.
For ease of understanding, for example, if the cross-link resource is smart contract 0X3 (i.e., the address of the cross-link resource identified as a smart contract 0X03), then after the smart contract 0X3 is deployed to the blockchain network 111, the blockchain network 111 will store the above-mentioned 5 call interfaces of the smart contract 0X3 and the contract data of the smart contract 0X3 at the address of the smart contract 0X 3; thus, if the management unit 4 receives a call instruction of "smart contract 0X3, call () interface", the management unit 4 may first create a contract object of the smart contract 0X3 based on the address of the smart contract 0X3, and then call the call () interface of the contract object of the smart contract 0X3 to obtain contract data in the smart contract 0X3, that is, contract data stored at the address of the smart contract 0X3, and obtain a call result.
For another example, if the inter-link resource is a data Table (that is, the identifier of the inter-link resource is a Table name Table of the data Table), after the data Table is deployed to the blockchain network, the blockchain network stores the 5 call interfaces of the data Table and data of the data Table at the address of the data Table; thus, if the management unit receives a call instruction of the "data Table, setData () interface", the management unit may open the data Table according to the Table name of the data Table, create a contract object of the first contract in the opening process, then call the setData () interface of the contract object of the first contract to update the data in the data Table, and obtain a call result. The first contract is a contract which is pre-deployed in the blockchain network, and the first contract is used for operating data in the data table.
It should be noted that the above is only an exemplary description, and does not constitute a limitation on the present solution; it can be understood that the call operation in the embodiment of the present invention may be a call operation in a single blockchain network, or may also be an interactive call operation in multiple blockchain networks, which is not limited.
In the embodiment of the invention, the same calling interface is set for various calling resources, so that a user can call the calling resources based on the same input mode without adapting to each calling resource, thereby reducing the development complexity and improving the development efficiency.
In one example, the management unit may also be provided with the following interfaces:
getResource () interface for acquiring all resources managed by the management unit;
and the getBlockHeader () interface is used for acquiring the block header information of the block chain network managed by the management unit.
In a specific implementation, after receiving the call instruction, the management unit may first use a getResource () interface to pull all resources managed by the management unit, and determine whether all managed resources include a resource to be called in the call instruction, if not, may send a response message indicating that the call is failed to the proxy node 130, and if so, may execute the call operation.
In the above example, by determining whether the resource to be called belongs to the cross-chain resource managed by the management unit before the call operation is executed, the management unit can accurately call the cross-chain resource managed by the management unit, avoid unnecessary call operation, and improve the call efficiency.
In the embodiment of the present invention, after receiving the call result sent by the blockchain network, the management unit may also send the call result of the resource to be called back to the user terminal 140 via the proxy node 130, so that after obtaining the call result through the user terminal 140, a developer may execute subsequent operations according to the call result, such as determining whether each cross-chain resource deployed on the cross-chain network is accurate, whether a service is performed on the cross-chain network, and the like.
In the above embodiment of the present invention, after receiving a resource calling request sent by a user, a proxy node determines, according to a correspondence between an identifier of a cross-link resource and a block chain network, a block chain network corresponding to the identifier of a resource to be called, and calls the resource to be called from the block chain network corresponding to the resource to be called, to obtain a calling result; and the resource calling request comprises the identifier of the resource to be called. In the embodiment of the invention, the proxy node is arranged to manage the cross-chain resources in the cross-chain network, so that the client can call the cross-chain resources in the cross-chain network by directly sending the resource calling request to the proxy node, and the method can call different resources of different block chain networks by adopting the same calling mode without one-to-one adaptation of each block chain network, thereby having better flexibility and higher user experience.
For the above method flow, an embodiment of the present invention further provides a resource processing device based on a cross-link network, and specific contents of the device may be implemented with reference to the above method.
Fig. 4 is a resource processing apparatus based on a cross-link network according to an embodiment of the present invention, where the apparatus includes:
a transceiver module 401, configured to receive a resource calling request sent by a user side, where the resource calling request includes an identifier of a resource to be called;
a determining module 402, configured to determine, according to a correspondence between an identifier of a cross-link resource and a block chain network, a block chain network corresponding to the identifier of the resource to be called;
the invoking module 403 is configured to invoke the resource to be invoked from the block chain network corresponding to the resource to be invoked, so as to obtain an invoking result.
Optionally, the device is packaged with management units corresponding to the respective blockchain networks one to one;
the apparatus further comprises a deployment module 404;
before the transceiver module 401 receives a resource calling request sent by a user side, it is further configured to receive a deployment request sent by the user side; the deployment request comprises each cross-chain resource to be deployed and the identification of the block chain network required to be deployed by each cross-chain resource;
the deployment module 404 is configured to determine, for any cross-chain resource, a management unit corresponding to the cross-chain resource according to an identifier of a blockchain network to be deployed for the cross-chain resource in the deployment request, and distribute the cross-chain resource to the management unit corresponding to the cross-chain resource, so that the management unit deploys the cross-chain resource to the blockchain network managed by the management unit; and acquiring the deployment result of each management unit to each cross-chain resource, and generating the corresponding relation between the identification of the cross-chain resource and the block chain network according to the deployment result.
Optionally, the invoking module 403 is specifically configured to:
determining a target management unit corresponding to the resource to be called according to the block chain network corresponding to the identifier of the resource to be called;
acquiring identifiers of all cross-link resources in a block chain network managed by the target management unit;
according to the identification of all cross-link resources in the block chain network managed by the target management unit, if the fact that all cross-link resources comprise the resource to be called is determined, a calling instruction is generated according to the identification of the resource to be called, and the calling instruction is sent to the target management unit; the calling instruction is used for the target management unit to call the resource to be called in the blockchain network.
Optionally, the resource calling request further includes a calling interface, and the calling interface is any one or more of general interfaces of each cross-chain resource;
the calling module 403 is specifically configured to:
and generating the calling instruction according to the identifier of the resource to be called and the calling interface, wherein the calling instruction is used for the target management unit to call the resource to be called in the blockchain network by using the calling interface.
Optionally, the identification of the calling resource is a contract address of the intelligent contract;
the calling module 403 is specifically configured to:
and generating the calling instruction according to the contract address of the intelligent contract and the calling interface, wherein the calling instruction is used for generating a contract object by the target management unit according to the contract address of the intelligent contract and calling the calling interface of the contract object to acquire or update contract data of the intelligent contract.
Optionally, the identifier of the calling resource is a table name of a data table;
the calling module 403 is specifically configured to:
and generating the calling instruction according to the table name of the data table and the calling interface, wherein the calling instruction is used for the target management unit to acquire the data table according to the table name of the data table and to inquire or modify data in the data table according to the calling interface.
Optionally, the correspondence between the identifier of the cross-chain resource and the blockchain network is set according to the cross-chain network, the blockchain network included in the cross-chain network, and the hierarchical relationship between the cross-chain resources deployed in the blockchain network.
From the above, it can be seen that: in the above embodiment of the present invention, after receiving a resource calling request sent by a user, a proxy node determines, according to a correspondence between an identifier of a cross-link resource and a block chain network, a block chain network corresponding to the identifier of a resource to be called, and calls the resource to be called from the block chain network corresponding to the resource to be called, to obtain a calling result; and the resource calling request comprises the identifier of the resource to be called. In the embodiment of the invention, the proxy node is arranged to manage the cross-chain resources in the cross-chain network, so that the client can call the cross-chain resources in the cross-chain network by directly sending the resource calling request to the proxy node, and the method can call different resources of different block chain networks by adopting the same calling mode without one-to-one adaptation of each block chain network, thereby having better flexibility and higher user experience.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, as shown in fig. 5, including at least one processor 501 and a memory 502 connected to the at least one processor, where a specific connection medium between the processor 501 and the memory 502 is not limited in the embodiment of the present invention, and the processor 501 and the memory 502 are connected through a bus in fig. 5 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present invention, the memory 502 stores instructions executable by the at least one processor 501, and the at least one processor 501 may execute the steps included in the resource processing method based on the cross-chain network by executing the instructions stored in the memory 502.
The processor 501 is a control center of the computing device, and may be connected to various parts of the computing device through various interfaces and lines, and implement data processing by executing or executing instructions stored in the memory 502 and calling data stored in the memory 502. Optionally, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes an issued instruction. It will be appreciated that the modem processor described above may not be integrated into the processor 501. In some embodiments, processor 501 and memory 502 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 501 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the disclosed method in connection with resource handling embodiments over a cross-linked network may be embodied directly in a hardware processor, or in a combination of hardware and software modules within the processor.
Memory 502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 502 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 502 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 502 of embodiments of the present invention may also be circuitry or any other device capable of performing a storage function to store program instructions and/or data.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable storage medium storing a computer program executable by a computing device, wherein when the program runs on the computing device, the computing device is caused to execute the resource processing method based on the cross-chain network as described in any of the above fig. 3.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (14)

1. A resource processing method based on a cross-link network is characterized by comprising the following steps:
the method comprises the steps that an agent node receives a deployment request sent by a user side; the deployment request comprises each cross-chain resource to be deployed and the identification of the block chain network required to be deployed by each cross-chain resource; the agent nodes are encapsulated with management units which are in one-to-one correspondence with the block chain networks, and are connected with nodes in each cross-chain network through the management units;
for any cross-chain resource, the agent node determines a management unit corresponding to the cross-chain resource according to the identifier of the blockchain network to be deployed for the cross-chain resource in the deployment request, and distributes the cross-chain resource to the management unit corresponding to the cross-chain resource, so that the management unit deploys the cross-chain resource to the blockchain network managed by the management unit;
the agent node acquires the deployment result of each management unit on each cross-chain resource, and generates the corresponding relation between the identification of the cross-chain resource and the block chain network according to the deployment result;
the method comprises the steps that a proxy node receives a resource calling request sent by a user side, wherein the resource calling request comprises an identifier of a resource to be called; the identifier of the resource to be called is composed of an address of the resource to be called, an identifier of a block chain network deployed by the resource to be called and an identifier of a cross-chain network in which the block chain network deployed by the resource to be called is located;
the proxy node determines the block chain network corresponding to the identifier of the resource to be called according to the corresponding relation between the identifier of the cross-chain resource and the block chain network;
and the proxy node calls the resource to be called from the block chain network corresponding to the resource to be called to obtain a calling result.
2. The method according to claim 1, wherein the proxy node calls the resource to be called from a block chain network corresponding to the resource to be called to obtain a call result, and the method comprises:
the proxy node determines a target management unit corresponding to the resource to be called according to the block chain network corresponding to the identifier of the resource to be called;
the proxy node acquires the identification of all cross-link resources in the block chain network managed by the target management unit;
the proxy node generates a calling instruction according to the identifier of the resource to be called and sends the calling instruction to the target management unit if the proxy node determines that all the cross-link resources comprise the resource to be called according to the identifier of all the cross-link resources in the block link network managed by the target management unit; the calling instruction is used for the target management unit to call the resource to be called in the blockchain network.
3. The method according to claim 2, wherein the resource calling request further includes a calling interface, and the calling interface is any one or more of universal interfaces of each cross-chain resource;
the proxy node generates a calling instruction according to the identifier of the resource to be called, and the method comprises the following steps:
and the proxy node generates the calling instruction according to the identifier of the resource to be called and the calling interface, wherein the calling instruction is used for the target management unit to call the resource to be called in the blockchain network by using the calling interface.
4. The method of claim 3, wherein the identification of the calling resource is a contract address of an intelligent contract;
the proxy node generates the call instruction according to the identifier of the resource to be called and the call interface, and the method comprises the following steps:
the agent node generates the calling instruction according to the contract address of the intelligent contract and the calling interface, the calling instruction is used for the target management unit to generate a contract object according to the contract address of the intelligent contract, and the calling interface of the contract object is called to acquire or update contract data of the intelligent contract.
5. The method of claim 3, wherein the identification of the calling resource is a table name of a data table;
the proxy node generates the call instruction according to the identifier of the resource to be called and the call interface, and the method comprises the following steps:
and the proxy node generates the calling instruction according to the table name of the data table and the calling interface, wherein the calling instruction is used for the target management unit to acquire the data table according to the table name of the data table and to inquire or modify data in the data table according to the calling interface.
6. The method according to any one of claims 1 to 5, wherein the correspondence between the identification of the cross-chain resource and the blockchain network is set according to a hierarchical relationship between the cross-chain network, the blockchain network included in the cross-chain network, and the cross-chain resource deployed in the blockchain network.
7. An apparatus for resource processing based on a cross-chain network, the apparatus comprising:
the receiving and sending module is used for receiving a deployment request sent by a user side; the deployment request comprises each cross-chain resource to be deployed and the identification of the block chain network required to be deployed by each cross-chain resource; the device is provided with management units which are in one-to-one correspondence with each block chain network, and is connected with nodes in each cross-chain network through each management unit;
a deployment module, configured to determine, for any cross-chain resource, a management unit corresponding to the cross-chain resource according to an identifier of a blockchain network to be deployed for the cross-chain resource in the deployment request, and distribute the cross-chain resource to the management unit corresponding to the cross-chain resource, so that the management unit deploys the cross-chain resource to the blockchain network managed by the management unit; acquiring a deployment result of each management unit to each cross-chain resource, and generating a corresponding relation between an identifier of the cross-chain resource and a block chain network according to the deployment result;
the receiving and sending module is used for receiving a resource calling request sent by a user side, wherein the resource calling request comprises an identifier of a resource to be called; the identifier of the resource to be called is composed of an address of the resource to be called, an identifier of a block chain network deployed by the resource to be called and an identifier of a cross-chain network in which the block chain network deployed by the resource to be called is located;
the determining module is used for determining the block chain network corresponding to the identifier of the resource to be called according to the corresponding relation between the identifier of the cross-chain resource and the block chain network;
and the calling module is used for calling the resource to be called from the block chain network corresponding to the resource to be called to obtain a calling result.
8. The apparatus of claim 7, wherein the invoking module is specifically configured to:
determining a target management unit corresponding to the resource to be called according to the block chain network corresponding to the identifier of the resource to be called;
acquiring identifiers of all cross-link resources in a block chain network managed by the target management unit;
according to the identification of all cross-link resources in the block chain network managed by the target management unit, if the fact that all cross-link resources comprise the resource to be called is determined, a calling instruction is generated according to the identification of the resource to be called, and the calling instruction is sent to the target management unit; the calling instruction is used for the target management unit to call the resource to be called in the blockchain network.
9. The apparatus according to claim 8, wherein the resource call request further includes a call interface, and the call interface is any one or more of common interfaces of each cross-chain resource;
the calling module is specifically configured to:
and generating the calling instruction according to the identifier of the resource to be called and the calling interface, wherein the calling instruction is used for the target management unit to call the resource to be called in the blockchain network by using the calling interface.
10. The apparatus of claim 9, wherein the identification of the invoking resource is a contract address of an intelligent contract;
the calling module is specifically configured to:
and generating the calling instruction according to the contract address of the intelligent contract and the calling interface, wherein the calling instruction is used for generating a contract object by the target management unit according to the contract address of the intelligent contract and calling the calling interface of the contract object to acquire or update contract data of the intelligent contract.
11. The apparatus of claim 9, wherein the identification of the calling resource is a table name of a data table;
the calling module is specifically configured to:
and generating the calling instruction according to the table name of the data table and the calling interface, wherein the calling instruction is used for the target management unit to acquire the data table according to the table name of the data table and to inquire or modify data in the data table according to the calling interface.
12. The apparatus according to any one of claims 7 to 11, wherein the correspondence between the identification of the cross-chain resource and the blockchain network is set according to a hierarchical relationship between the cross-chain network, the blockchain network included in the cross-chain network, and the cross-chain resource deployed in the blockchain network.
13. A computing device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method of any of claims 1 to 6.
14. A computer-readable storage medium storing a computer program executable by a computing device, the program, when run on the computing device, causing the computing device to perform the method of any of claims 1 to 6.
CN201911236666.6A 2019-12-05 2019-12-05 Resource processing method and device based on cross-link network Active CN111163129B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911236666.6A CN111163129B (en) 2019-12-05 2019-12-05 Resource processing method and device based on cross-link network
PCT/CN2020/121949 WO2021109735A1 (en) 2019-12-05 2020-10-19 Cross-chain-network-based resource processing method, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911236666.6A CN111163129B (en) 2019-12-05 2019-12-05 Resource processing method and device based on cross-link network

Publications (2)

Publication Number Publication Date
CN111163129A CN111163129A (en) 2020-05-15
CN111163129B true CN111163129B (en) 2021-12-14

Family

ID=70556407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911236666.6A Active CN111163129B (en) 2019-12-05 2019-12-05 Resource processing method and device based on cross-link network

Country Status (2)

Country Link
CN (1) CN111163129B (en)
WO (1) WO2021109735A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163129B (en) * 2019-12-05 2021-12-14 深圳前海微众银行股份有限公司 Resource processing method and device based on cross-link network
CN113691569A (en) * 2020-05-18 2021-11-23 顺丰科技有限公司 Dynamic extended billing method and device based on alliance chain
CN111652728A (en) * 2020-06-17 2020-09-11 深圳前海微众银行股份有限公司 Transaction processing method and device
CN111770102B (en) * 2020-07-01 2022-07-19 中国建设银行股份有限公司 Block chain cross-chain method and device, computer equipment and storage medium
CN111931215B (en) * 2020-09-11 2021-01-05 腾讯科技(深圳)有限公司 Data management method and device and storage medium
CN112508703B (en) * 2020-12-10 2024-04-05 浙商银行股份有限公司 Isomorphic public-private chain value exchange method
CN113242317B (en) * 2021-06-11 2022-08-19 广东浪潮智慧计算技术有限公司 Addressing route synchronization method and related device for alliance chain supervision system
CN113467888B (en) * 2021-06-29 2024-02-23 网易(杭州)网络有限公司 Cross-chain calling method and device of intelligent contract, electronic equipment and storage medium
CN113507480B (en) * 2021-07-23 2023-10-27 北京众享比特科技有限公司 Network equipment, gateway equipment and system and inter-network data transmission and reporting method
CN113781216A (en) * 2021-08-27 2021-12-10 浙商银行股份有限公司 Asynchronous cross-chain transaction query method and device based on callback contract mechanism
CN113535690B (en) * 2021-09-15 2021-12-21 支付宝(杭州)信息技术有限公司 Block chain service network establishing method and device
CN114531305B (en) * 2022-04-23 2022-07-19 东南大学 Block chain cross-chain supervision method for chain management
CN114793235B (en) * 2022-04-29 2024-03-29 蚂蚁区块链科技(上海)有限公司 System and method for cross-blockchain interactions
CN115314375B (en) * 2022-07-22 2024-02-06 京东科技信息技术有限公司 Blockchain network cross-domain networking method, equipment, storage medium and program product
CN116016523B (en) * 2023-03-22 2023-07-14 浪潮电子信息产业股份有限公司 Data access method, device, system and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616578A (en) * 2018-04-09 2018-10-02 上海点融信息科技有限责任公司 Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain
CN108876618A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network
CN109145205A (en) * 2018-07-27 2019-01-04 阿里巴巴集团控股有限公司 A kind of across chain data manipulation method and device based on block chain
CN110020860A (en) * 2019-04-09 2019-07-16 湖南天河国云科技有限公司 Across the chain assets transfer method of one kind, system and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426949B (en) * 2017-08-29 2021-02-09 华为技术有限公司 Cross-chain transaction method and device
US11194837B2 (en) * 2018-05-01 2021-12-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN109035012B (en) * 2018-06-11 2020-11-17 西安纸贵互联网科技有限公司 Cross-chain processing method of block chain system and computer readable storage medium
CN109347955B (en) * 2018-10-19 2021-03-02 北京奇艺世纪科技有限公司 Block chain network system and information processing method
CN110597925B (en) * 2019-08-15 2021-09-14 腾讯科技(深圳)有限公司 Cross-chain data processing method and device based on block chain
CN111163129B (en) * 2019-12-05 2021-12-14 深圳前海微众银行股份有限公司 Resource processing method and device based on cross-link network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616578A (en) * 2018-04-09 2018-10-02 上海点融信息科技有限责任公司 Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain
CN108876618A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network
CN109145205A (en) * 2018-07-27 2019-01-04 阿里巴巴集团控股有限公司 A kind of across chain data manipulation method and device based on block chain
CN110020860A (en) * 2019-04-09 2019-07-16 湖南天河国云科技有限公司 Across the chain assets transfer method of one kind, system and computer readable storage medium

Also Published As

Publication number Publication date
CN111163129A (en) 2020-05-15
WO2021109735A1 (en) 2021-06-10

Similar Documents

Publication Publication Date Title
CN111163129B (en) Resource processing method and device based on cross-link network
CN112003703B (en) Method and device for transmitting authenticatable message across chains
WO2020258846A1 (en) Method and apparatus for sending certifiable messages across chains
US11343103B2 (en) Sending cross-chain authenticatable messages
WO2020258847A1 (en) Method and apparatus for cross-chain transmission of authenticable message based on processing module
CN108572986B (en) Data updating method and node equipment
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN111988418B (en) Data processing method, device, equipment and computer readable storage medium
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
WO2020258849A1 (en) Method and apparatus for sending authenticable message in cross-chain manner
CN115390939B (en) Service processing method and system
CN111124631A (en) Task processing method and device based on block chain network
CN110022332B (en) Hypertext transfer security protocol proxy method, device, equipment and medium
CN112579212A (en) Cross-language calling method, calling party device and called party device
WO2023005500A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
CN112738181B (en) Method, device and server for cluster external IP access
CN113986955B (en) Service chain determining method and device, electronic equipment and medium
CN112748981B (en) Processing method and device for software mirror image of virtual network function
US20230351374A1 (en) System for accelerated distributed ledger and for digital wallet deployment
CN112862612B (en) Method and device for transmitting resources across chains
CN115423629A (en) Transaction processing method and device
CN116126554A (en) Cross-chain calling method and device for intelligent contracts
CN115599829A (en) Service processing method, device, equipment and storage medium
CN114035979A (en) Transaction request processing method and device
CN112667247A (en) Service management method, system, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant