CN116032482A - Multi-channel cross-link linking method and device for alliance chains and electronic equipment - Google Patents

Multi-channel cross-link linking method and device for alliance chains and electronic equipment Download PDF

Info

Publication number
CN116032482A
CN116032482A CN202211234460.1A CN202211234460A CN116032482A CN 116032482 A CN116032482 A CN 116032482A CN 202211234460 A CN202211234460 A CN 202211234460A CN 116032482 A CN116032482 A CN 116032482A
Authority
CN
China
Prior art keywords
chain
external
target
blockchain
accessed
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.)
Pending
Application number
CN202211234460.1A
Other languages
Chinese (zh)
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.)
Beijing Octa Innovations Information Technology Co Ltd
Original Assignee
Beijing Octa Innovations Information Technology 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 Beijing Octa Innovations Information Technology Co Ltd filed Critical Beijing Octa Innovations Information Technology Co Ltd
Priority to CN202211234460.1A priority Critical patent/CN116032482A/en
Publication of CN116032482A publication Critical patent/CN116032482A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a multi-channel cross-link access method, a multi-channel cross-link access device and electronic equipment of a alliance chain, and in the technical scheme of the embodiment of the application, the unique identity of a plurality of external block chains to be accessed to a target alliance chain is determined, and the identity of each external block chain to be accessed to the target alliance chain is converted into the unique identity of a virtual internal block chain link point of the alliance chain according to a one-to-one correspondence relationship; according to the unique identity of the virtual internal blockchain node, enabling a plurality of external blockchains to be accessed into the target blockchain to form a blockchain subnet of the target blockchain; and creating a shared data channel for all external blockchains in the alliance chain sub-network, so that all external blockchains in the alliance chain sub-network perform on-chain data interaction with the target alliance chain based on the same shared data channel, and the block chain access outside the alliance chain is effectively realized.

Description

Multi-channel cross-link linking method and device for alliance chains and electronic equipment
Technical Field
The present invention relates to the technical field of federation chains, and in particular, to a method and an apparatus for multi-channel cross-link access of a federation chain, and an electronic device.
Background
Blockchains are widely used due to their unique traceability and non-tamperability, belonging to a popular platform for data storage sharing. The alliance chains in the blockchain have the advantages of high processing speed and low transaction cost because of fewer nodes. However, because the nodes of the alliance chain are fewer and congestion is easy to occur, the effect of capacity expansion is achieved by crossing the alliance chain and the external block chain, and the congestion is avoided.
However, how to access the block chain outside the federation chain becomes a technical problem to be solved.
Disclosure of Invention
Based on the above problems, the embodiments of the present application provide a multi-channel cross-link linking method and device for a coalition chain, and an electronic device.
The embodiment of the application discloses the following technical scheme:
1. a multi-channel cross-link linking method for a federated chain, comprising:
determining unique identity identifiers of a plurality of external blockchains to be accessed into a target alliance chain, and converting the identity identifier of each external blockchain to be accessed into the target alliance chain into a virtual internal blockchain link point unique identity identifier of the alliance chain according to a one-to-one correspondence;
According to the unique identity of the virtual internal blockchain node, enabling a plurality of external blockchains to be accessed into the target blockchain to form a blockchain subnet of the target blockchain;
creating a shared data channel for all external blockchains within the federated chain subnetwork such that all external blockchains within the federated chain subnetwork interact with the target federated chain on-chain data based on the same shared data channel.
2. The method for multi-channel cross-link access of a federation chain according to claim 1, wherein determining unique identities of a plurality of external blockchains to be accessed to a target federation chain and converting the identity of each external blockchain to be accessed to the target federation chain into a virtual internal blockchain node unique identity of the federation chain according to a one-to-one correspondence comprises: and determining unique identities of a plurality of external blockchains to be accessed to the target alliance chain, and converting the identity of each external blockchain to be accessed to the target alliance chain into the unique identity of the virtual internal blockchain point of the alliance chain in a account number mode according to a one-to-one correspondence relation.
3. The multi-channel cross-link access method of claim 2, wherein determining the unique identities of the plurality of external blockchains to be accessed to the target blockchain and converting the unique identity of each external blockchain to be accessed to the target blockchain into the unique identity of the virtual internal blockchain node of the blockchain in a one-to-one correspondence manner includes: abstracting an external blockchain of the target alliance chain to be accessed into an account in the alliance chain, and abstracting the alliance chain into a container; according to a one-to-one correspondence, the unique identity of each external blockchain to be accessed into a target alliance chain is converted into the unique identity of a virtual internal blockchain node of the alliance chain in a account number mode, and the unique identity of the virtual internal blockchain node is added into the container.
4. The method of claim 2, wherein creating a shared data channel for all external blockchains within the federated chain subnetwork to enable all external blockchains within the federated chain subnetwork to perform on-chain data interactions with the target federated chain based on the same shared data channel, comprises: creating a shared data channel for all external blockchains in the coalition chain subnetwork, and mapping the unique identity of the corresponding virtual internal blockchain point of all external blockchains in the coalition chain subnetwork to the shared data channel, so that all external blockchains in the coalition chain subnetwork perform on-chain data interaction with the target coalition chain based on the same shared data channel.
5. The method of claim 1, wherein creating a shared data channel for all external blockchains within the federated chain subnetwork such that all external blockchains within the federated chain subnetwork interact with the target federated chain for on-chain data based on the same shared data channel, comprises: and creating a shared data channel for all external blockchains in the alliance chain subnetwork, so that when any external blockchain in the alliance chain subnetwork performs on-chain data interaction with the target alliance chain based on the same shared data channel, the corresponding on-chain data is privately used, and the on-chain data aimed by the on-chain data interaction with the target alliance chain based on the same shared data channel is isolated from other external blockchains.
6. The method of claim 1, wherein creating a shared data channel for all external blockchains within the federated chain subnetwork such that all external blockchains within the federated chain subnetwork interact with the target federated chain for on-chain data based on the same shared data channel, comprises: and configuring the external blockchain of the target alliance chain to be accessed as a side chain, and configuring the alliance chain as a main chain, so that the blockchain outside the target alliance chain to be accessed and the alliance chain carry out cross-chain data transmission.
7. The coalition chain multichannel cross-link access method of claim 6, further comprising: and judging the real-time load of the alliance chain, and when the real-time load is overloaded, routing a service request from outside the alliance chain to an external blockchain of the target alliance chain to be accessed so as to carry out redundant response by the external blockchain of the target alliance chain to be accessed.
8. The multi-channel cross-link access method of claim 6, wherein the enabling cross-link data transmission between the blockchain external to the target coalition chain and the coalition chain comprises: generating a first random number by the external blockchain to be accessed to the target coalition chain in response to the coalition chain crossing request; carrying out hash operation on the first random number to obtain a first hash value; and performing locking processing on the coalition chain cross-chain request by using the first hash value, and setting a valid first time lock so as to enable cross-chain data transmission between the external blockchain of the target coalition chain to be accessed and the coalition chain.
9. The method of claim 8, wherein using the first hash value to lock the federated chain-crossing request and setting a valid first time lock to enable cross-chain data transfer between the external blockchain of the target federated chain to be accessed and the federated chain comprises: the method comprises the steps that a locking request obtained by locking a coalition chain crossing request by using a first hash value and a set effective first time lock are sent to a coalition chain, the coalition chain uses the first random number to lock target data pointed by the coalition chain crossing request to obtain locking data and a set effective second time lock, and the duration of the second time lock is not longer than that of the first time lock; the external blockchain of the target alliance chain to be accessed is enabled to access the locking data by using a locking request in the first time lock, and the alliance chain feeds back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock.
10. The method of claim 9, wherein the performing a locking process on the federated chain crossing request using the first hash value and setting a valid first time lock to enable cross-chain data transmission between the external blockchain of the target federated chain and the federated chain, further comprises: and enabling the external blockchain of the target alliance chain to be accessed to access the locking data without using a locking request in the first time lock, and/or enabling the alliance chain not to feed back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock, and terminating the cross-chain data transmission between the external blockchain of the target alliance chain to be accessed and the alliance chain.
11. A multi-channel cross-link linking apparatus for a federated chain, comprising:
the first program unit is used for determining unique identity identifiers of a plurality of external block chains to be accessed into a target alliance chain, and converting the identity identifier of each external block chain to be accessed into the target alliance chain into a virtual internal block chain link point unique identity identifier of the alliance chain according to a one-to-one correspondence relationship;
The second program unit is used for enabling a plurality of external blockchains to be accessed into the target alliance chain to form an alliance chain sub-network of the target alliance chain according to the unique identity mark of the virtual internal blockchain node;
and the third program unit is used for creating a shared data channel for all external blockchains in the alliance chain sub-network so that all external blockchains in the alliance chain sub-network can perform on-chain data interaction with the target alliance chain based on the same shared data channel.
12. The coalition chain multichannel cross-link access device of claim 11, wherein the first program unit is further to: and determining unique identities of a plurality of external blockchains to be accessed to the target alliance chain, and converting the identity of each external blockchain to be accessed to the target alliance chain into the unique identity of the virtual internal blockchain point of the alliance chain in a account number mode according to a one-to-one correspondence relation.
13. The coalition chain multichannel cross-link access device of claim 12, wherein the first program unit is further to: abstracting an external blockchain of the target alliance chain to be accessed into an account in the alliance chain, and abstracting the alliance chain into a container; according to a one-to-one correspondence, the unique identity of each external blockchain to be accessed into a target alliance chain is converted into the unique identity of a virtual internal blockchain node of the alliance chain in a account number mode, and the unique identity of the virtual internal blockchain node is added into the container.
14. The coalition chain multichannel cross-link access device of claim 12, wherein the third program unit is further configured to: creating a shared data channel for all external blockchains in the coalition chain subnetwork, and mapping the unique identity of the corresponding virtual internal blockchain point of all external blockchains in the coalition chain subnetwork to the shared data channel, so that all external blockchains in the coalition chain subnetwork perform on-chain data interaction with the target coalition chain based on the same shared data channel.
15. The coalition chain multichannel cross-link access device of claim 11, wherein the third program unit is further configured to: and creating a shared data channel for all external blockchains in the alliance chain subnetwork, so that when any external blockchain in the alliance chain subnetwork performs on-chain data interaction with the target alliance chain based on the same shared data channel, the corresponding on-chain data is privately used, and the on-chain data aimed by the on-chain data interaction with the target alliance chain based on the same shared data channel is isolated from other external blockchains.
16. The coalition chain multichannel cross-link access device of claim 11, wherein the third program unit is further configured to: and configuring the external blockchain of the target alliance chain to be accessed as a side chain, and configuring the alliance chain as a main chain, so that the blockchain outside the target alliance chain to be accessed and the alliance chain carry out cross-chain data transmission.
17. The coalition chain multichannel cross-link access device of claim 16, wherein the device further comprises: and the judging access unit is used for judging the real-time load of the alliance chain, and when the real-time load is overloaded, routing the service request from outside the alliance chain to the external blockchain of the target alliance chain to be accessed so as to carry out redundant response by the external blockchain of the target alliance chain to be accessed.
18. The coalition chain multichannel cross-link access device of claim 16, wherein the third program unit is further configured to: generating a first random number by the external blockchain to be accessed to the target coalition chain in response to the coalition chain crossing request; carrying out hash operation on the first random number to obtain a first hash value; and performing locking processing on the coalition chain cross-chain request by using the first hash value, and setting a valid first time lock so as to enable cross-chain data transmission between the external blockchain of the target coalition chain to be accessed and the coalition chain.
19. The coalition chain multichannel cross-link access device of claim 18, wherein the third program unit is further configured to: the method comprises the steps that a locking request obtained by locking a coalition chain crossing request by using a first hash value and a set effective first time lock are sent to a coalition chain, the coalition chain uses the first random number to lock target data pointed by the coalition chain crossing request to obtain locking data and a set effective second time lock, and the duration of the second time lock is not longer than that of the first time lock; the external blockchain of the target alliance chain to be accessed is enabled to access the locking data by using a locking request in the first time lock, and the alliance chain feeds back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock.
20. The coalition chain multichannel cross-link access device of claim 19, wherein the third program unit is further configured to: and enabling the external blockchain of the target alliance chain to be accessed to access the locking data without using a locking request in the first time lock, and/or enabling the alliance chain not to feed back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock, and terminating the cross-chain data transmission between the external blockchain of the target alliance chain to be accessed and the alliance chain.
21. An electronic device comprising a memory and a processor, the memory having stored thereon an executable program, the processor executing the executable program as follows:
determining unique identity identifiers of a plurality of external blockchains to be accessed into a target alliance chain, and converting the identity identifier of each external blockchain to be accessed into the target alliance chain into a virtual internal blockchain link point unique identity identifier of the alliance chain according to a one-to-one correspondence;
according to the unique identity of the virtual internal blockchain node, enabling a plurality of external blockchains to be accessed into the target blockchain to form a blockchain subnet of the target blockchain;
creating a shared data channel for all external blockchains within the federated chain subnetwork such that all external blockchains within the federated chain subnetwork interact with the target federated chain on-chain data based on the same shared data channel.
In the technical scheme of the embodiment of the application, the unique identity of a plurality of external blockchains to be accessed to a target alliance chain is determined, and the identity of each external blockchain to be accessed to the target alliance chain is converted into the unique identity of the virtual internal blockchain link point of the alliance chain according to a one-to-one correspondence; according to the unique identity of the virtual internal blockchain node, enabling a plurality of external blockchains to be accessed into the target blockchain to form a blockchain subnet of the target blockchain; and creating a shared data channel for all external blockchains in the alliance chain sub-network, so that all external blockchains in the alliance chain sub-network perform on-chain data interaction with the target alliance chain based on the same shared data channel, and the block chain access outside the alliance chain is effectively realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic flow chart of a multi-channel cross-link linking method of a federated chain according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a multi-channel cross-link linking device of a federated chain according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a multi-channel cross-link linking device of a federated chain according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the application.
Detailed Description
It is not necessary for any of the embodiments of the present application to be practiced with all of the advantages described above.
In order to make the present invention better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the technical scheme of the embodiment of the application, the unique identity of a plurality of external blockchains to be accessed to a target alliance chain is determined, and the identity of each external blockchain to be accessed to the target alliance chain is converted into the unique identity of the virtual internal blockchain link point of the alliance chain according to a one-to-one correspondence; according to the unique identity of the virtual internal blockchain node, enabling a plurality of external blockchains to be accessed into the target blockchain to form a blockchain subnet of the target blockchain; and creating a shared data channel for all external blockchains in the alliance chain sub-network, so that all external blockchains in the alliance chain sub-network perform on-chain data interaction with the target alliance chain based on the same shared data channel, and the block chain access outside the alliance chain is effectively realized.
FIG. 1 is a schematic flow chart of a multi-channel cross-link linking method of a federated chain according to an embodiment of the present application; as shown in fig. 1, it includes:
s101, determining unique identity identifiers of a plurality of external block chains to be accessed into a target alliance chain, and converting the identity identifier of each external block chain to be accessed into the target alliance chain into a virtual internal block chain link point unique identity identifier of the alliance chain according to a one-to-one correspondence relationship;
S102, according to the unique identity of the virtual internal blockchain node, enabling a plurality of external blockchains to be accessed into the target blockchain to form a blockchain subnet of the target blockchain;
s103, creating a shared data channel for all external blockchains in the alliance chain sub-network, so that all external blockchains in the alliance chain sub-network can perform on-chain data interaction with the target alliance chain based on the same shared data channel.
Optionally, the determining the unique identities of the plurality of external blockchains to be accessed to the target alliance chain, and converting the identity of each external blockchain to be accessed to the target alliance chain into the unique identity of the virtual internal blockchain node of the alliance chain according to a one-to-one correspondence relation includes: and determining unique identities of a plurality of external blockchains to be accessed to the target alliance chain, and converting the identity of each external blockchain to be accessed to the target alliance chain into the unique identity of the virtual internal blockchain point of the alliance chain in a account number mode according to a one-to-one correspondence relation.
In this embodiment, the identity of each external blockchain to be accessed to the target blockchain is converted into the unique identity of the virtual internal blockchain node of the blockchain in a account number manner, so as to effectively realize dynamic management of the virtual internal blockchain node, and ensure that a plurality of external blockchains to be accessed to the target blockchain are mapped to the inside of the target blockchain.
Optionally, the determining the unique identities of the plurality of external blockchains to be accessed to the target federation chain, and converting the unique identity of each external blockchain to be accessed to the target federation chain into the unique identity of the virtual internal blockchain node of the federation chain in a manner of account numbers according to a one-to-one correspondence relation includes: abstracting an external blockchain of the target alliance chain to be accessed into an account in the alliance chain, and abstracting the alliance chain into a container; according to a one-to-one correspondence, the unique identity of each external blockchain to be accessed into a target alliance chain is converted into the unique identity of a virtual internal blockchain node of the alliance chain in a account number mode, and the unique identity of the virtual internal blockchain node is added into the container.
In this embodiment, by abstracting the external blockchain to be accessed to the target blockchain into an account in the blockchain, mapping of multiple external blockchains to be accessed to the target blockchain into the target blockchain is simply and effectively achieved, and meanwhile management can be flexibly achieved further in an account number manner.
Optionally, the creating a shared data channel for all external blockchains in the coalition chain subnetwork, so that all external blockchains in the coalition chain subnetwork can perform on-chain data interaction with the target coalition chain based on the same shared data channel, including: creating a shared data channel for all external blockchains in the coalition chain subnetwork, and mapping the unique identity of the corresponding virtual internal blockchain point of all external blockchains in the coalition chain subnetwork to the shared data channel, so that all external blockchains in the coalition chain subnetwork perform on-chain data interaction with the target coalition chain based on the same shared data channel.
In this embodiment, by mapping the unique identities of the corresponding virtual internal block link points of all external block chains in the coalition chain subnetwork to the shared data channel, it is ensured that only one shared data channel is used when all external block chains communicate, and the complexity of the algorithm and the complexity of the communication are reduced.
Optionally, the creating a shared data channel for all external blockchains in the coalition chain subnetwork, so that all external blockchains in the coalition chain subnetwork can perform on-chain data interaction with the target coalition chain based on the same shared data channel, including: and creating a shared data channel for all external blockchains in the alliance chain subnetwork, so that when any external blockchain in the alliance chain subnetwork performs on-chain data interaction with the target alliance chain based on the same shared data channel, the corresponding on-chain data is privately used, and the on-chain data aimed by the on-chain data interaction with the target alliance chain based on the same shared data channel is isolated from other external blockchains.
In this embodiment, when the same external blockchain in the coalition chain subnetwork performs on-chain data interaction with the target coalition chain based on the same shared data channel, the corresponding on-chain data is privately used, so that data isolation between different external blockchains and the target coalition chain is protected when the different external blockchains perform on-chain data interaction with each other, data security is ensured, and data communication conflict is prevented.
Optionally, the creating a shared data channel for all external blockchains in the coalition chain subnetwork, so that all external blockchains in the coalition chain subnetwork can perform on-chain data interaction with the target coalition chain based on the same shared data channel, including: and configuring the external blockchain of the target alliance chain to be accessed as a side chain, and configuring the alliance chain as a main chain, so that the blockchain outside the target alliance chain to be accessed and the alliance chain carry out cross-chain data transmission.
In this embodiment, by means of the main chain-side chain, the communication efficiency of cross-chain data transmission between the blockchain to be accessed to the outside of the target alliance chain and the alliance chain is improved.
Optionally, the method further comprises: and judging the real-time load of the alliance chain, and when the real-time load is overloaded, routing a service request from outside the alliance chain to an external blockchain of the target alliance chain to be accessed so as to carry out redundant response by the external blockchain of the target alliance chain to be accessed.
In this embodiment, by determining the real-time load of the federation chain, dynamic adjustment of the load of the federation chain may be implemented in real time, and when the federation chain overload occurs, a service request from outside the federation chain is routed to the external blockchain of the target federation chain to be accessed, so that a redundant response is performed by the external blockchain of the target federation chain to be accessed, thereby ensuring that all service requests from outside the federation chain can be responded.
Optionally, the enabling the block chain outside the target alliance chain to be accessed to perform cross-chain data transmission with the alliance chain includes: generating a first random number by the external blockchain to be accessed to the target coalition chain in response to the coalition chain crossing request; carrying out hash operation on the first random number to obtain a first hash value; and performing locking processing on the coalition chain cross-chain request by using the first hash value, and setting a valid first time lock so as to enable cross-chain data transmission between the external blockchain of the target coalition chain to be accessed and the coalition chain.
In this embodiment, a first hash value is obtained by performing hash operation on the first random number, and the first hash value is used to perform locking processing on the coalition chain crossing request and set an effective first time lock, so that on one hand, the security of the coalition chain crossing request is ensured, and on the other hand, the timeliness of the coalition chain crossing request is ensured, and therefore the security of the coalition chain crossing request is enhanced. Particularly, when a plurality of alliance chain crossing requests need to respond, the time sequence of the whole response can be ensured, and communication conflicts are avoided.
Optionally, the locking processing is performed on the coalition chain cross-chain request by using the first hash value, and a valid first time lock is set, so that cross-chain data transmission is performed between the external blockchain of the target coalition chain to be accessed and the coalition chain, including: the method comprises the steps that a locking request obtained by locking a coalition chain crossing request by using a first hash value and a set effective first time lock are sent to a coalition chain, the coalition chain uses the first random number to lock target data pointed by the coalition chain crossing request to obtain locking data and a set effective second time lock, and the duration of the second time lock is not longer than that of the first time lock; the external blockchain of the target alliance chain to be accessed is enabled to access the locking data by using a locking request in the first time lock, and the alliance chain feeds back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock.
Optionally, the locking processing is performed on the coalition chain cross-chain request by using the first hash value, and a valid first time lock is set, so that cross-chain data transmission is performed between the external blockchain of the target coalition chain to be accessed and the coalition chain, and the method further includes: and enabling the external blockchain of the target alliance chain to be accessed to access the locking data without using a locking request in the first time lock, and/or enabling the alliance chain not to feed back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock, and terminating the cross-chain data transmission between the external blockchain of the target alliance chain to be accessed and the alliance chain.
In this implementation, if the first blockchain does not use the locking request to access the locking data in the first time lock, and/or the coalition chain does not feed the locking data back to the first blockchain in the second time lock, the transmission of the cross-link data between the first blockchain and the coalition chain is immediately terminated, so that the security of the data transmission is ensured, illegal theft is avoided, and meanwhile, the real-time response of the cross-link requests of other coalition chains is ensured, and communication conflicts and communication delays are avoided.
FIG. 2 is a schematic diagram of a multi-channel cross-link linking device of a federated chain according to an embodiment of the present application; as shown in fig. 2, it includes:
a first program unit 201, configured to determine unique identifiers of a plurality of external blockchains to be accessed to a target coalition chain, and convert, according to a one-to-one correspondence, an identifier of each external blockchain to be accessed to the target coalition chain into a unique identifier of a virtual internal blockchain link point of the coalition chain;
a second program unit 202, configured to enable, according to the unique identifier of the virtual internal blockchain node, a plurality of external blockchains to be accessed to the target blockchain to form a blockchain subnet of the target blockchain;
And a third program unit 203, configured to create a shared data channel for all external blockchains in the coalition chain subnetwork, so that all external blockchains in the coalition chain subnetwork perform on-chain data interaction with the target coalition chain based on the same shared data channel.
Optionally, the first program unit 201 is further configured to: and determining unique identities of a plurality of external blockchains to be accessed to the target alliance chain, and converting the identity of each external blockchain to be accessed to the target alliance chain into the unique identity of the virtual internal blockchain point of the alliance chain in a account number mode according to a one-to-one correspondence relation.
Optionally, the first program unit 201 is further configured to: abstracting an external blockchain of the target alliance chain to be accessed into an account in the alliance chain, and abstracting the alliance chain into a container; according to a one-to-one correspondence, the unique identity of each external blockchain to be accessed into a target alliance chain is converted into the unique identity of a virtual internal blockchain node of the alliance chain in a account number mode, and the unique identity of the virtual internal blockchain node is added into the container.
Optionally, the third program unit 203 is further configured to: creating a shared data channel for all external blockchains in the coalition chain subnetwork, and mapping the unique identity of the corresponding virtual internal blockchain point of all external blockchains in the coalition chain subnetwork to the shared data channel, so that all external blockchains in the coalition chain subnetwork perform on-chain data interaction with the target coalition chain based on the same shared data channel.
Optionally, the third program unit 203 is further configured to: and creating a shared data channel for all external blockchains in the alliance chain subnetwork, so that when any external blockchain in the alliance chain subnetwork performs on-chain data interaction with the target alliance chain based on the same shared data channel, the corresponding on-chain data is privately used, and the on-chain data aimed by the on-chain data interaction with the target alliance chain based on the same shared data channel is isolated from other external blockchains.
Optionally, the third program unit 203 is further configured to: and configuring the external blockchain of the target alliance chain to be accessed as a side chain, and configuring the alliance chain as a main chain, so that the blockchain outside the target alliance chain to be accessed and the alliance chain carry out cross-chain data transmission.
FIG. 3 is a schematic diagram of a multi-channel cross-link linking device of a federated chain according to an embodiment of the present application; as shown in fig. 3, on the basis of fig. 2, the multi-channel cross-link linking device of the coalition chain is characterized in that:
optionally, the apparatus further comprises: and the judging access unit 204 is configured to judge a real-time load of the federation chain, and route a service request from outside the federation chain to an external blockchain of the target federation chain to be accessed when the real-time load is overloaded, so as to make a redundant response by the external blockchain of the target federation chain to be accessed.
Optionally, the third program unit 203 is further configured to: generating a first random number by the external blockchain to be accessed to the target coalition chain in response to the coalition chain crossing request; carrying out hash operation on the first random number to obtain a first hash value; and performing locking processing on the coalition chain cross-chain request by using the first hash value, and setting a valid first time lock so as to enable cross-chain data transmission between the external blockchain of the target coalition chain to be accessed and the coalition chain.
Optionally, the third program unit 203 is further configured to: the method comprises the steps that a locking request obtained by locking a coalition chain crossing request by using a first hash value and a set effective first time lock are sent to a coalition chain, the coalition chain uses the first random number to lock target data pointed by the coalition chain crossing request to obtain locking data and a set effective second time lock, and the duration of the second time lock is not longer than that of the first time lock; the external blockchain of the target alliance chain to be accessed is enabled to access the locking data by using a locking request in the first time lock, and the alliance chain feeds back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock.
Optionally, the third program unit 203 is further configured to: and enabling the external blockchain of the target alliance chain to be accessed to access the locking data without using a locking request in the first time lock, and/or enabling the alliance chain not to feed back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock, and terminating the cross-chain data transmission between the external blockchain of the target alliance chain to be accessed and the alliance chain.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application; as shown in fig. 4, the device includes a memory 301 and a processor 302, where the memory stores an executable program, and the processor executes the following steps when running the executable program:
determining unique identity identifiers of a plurality of external blockchains to be accessed into a target alliance chain, and converting the identity identifier of each external blockchain to be accessed into the target alliance chain into a virtual internal blockchain link point unique identity identifier of the alliance chain according to a one-to-one correspondence;
according to the unique identity of the virtual internal blockchain node, enabling a plurality of external blockchains to be accessed into the target blockchain to form a blockchain subnet of the target blockchain;
Creating a shared data channel for all external blockchains within the federated chain subnetwork such that all external blockchains within the federated chain subnetwork interact with the target federated chain on-chain data based on the same shared data channel.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the present application; as shown in fig. 5, the hardware structure of the electronic device may include: the electronic device 400 comprises a computing unit 401 that may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 402 or a computer program loaded from a storage unit 406 into a Random Access Memory (RAM) 403. In RAM 403, various programs and data required for the operation of device 400 may also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Various components in electronic device 400 are connected to I/O interface 405, including: an input unit 406, an output unit 407, a storage unit 408, and a communication unit 409. The input unit 406 may be any type of device capable of inputting information to the electronic device 400, and the input unit 406 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. The output unit 407 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 404 may include, but is not limited to, magnetic disks, optical disks. The communication unit 409 allows the electronic device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth (TM) devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the respective methods and processes described above. For example, in some embodiments, the steps described above may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 40. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 400 via the ROM 402 and/or the communication unit 409. In some embodiments, the computing unit 401 may be configured to perform the above steps by any other suitable means (e.g., by means of firmware).
The electronic device of the embodiments of the present application exist in a variety of forms including, but not limited to:
(1) Mobile communication devices, which are characterized by mobile communication functionality and are aimed at providing voice, data communication. Such terminals include smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer equipment, which belongs to the category of personal computers, has the functions of calculation and processing and generally has the characteristic of mobile internet surfing. Such terminals include PDA, MID and UMPC devices, etc., such as iPad.
(3) Portable entertainment devices such devices can display and play multimedia content. Such devices include audio, video players (e.g., iPod), palm game consoles, electronic books, and smart toys and portable car navigation devices.
(4) The server, which is a device for providing computing services, is composed of a processor 410, a hard disk, a memory, a system bus, etc., and is similar to a general computer architecture, but is required to provide highly reliable services, and thus has high requirements in terms of processing capacity, stability, reliability, security, scalability, manageability, etc.
(5) Other electronic devices with data interaction function.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment is mainly described in a different point from other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, with reference to the description of the method embodiments in part. The above-described embodiments of the apparatus and system are merely illustrative, in which the modules illustrated as separate components may or may not be physically separate, and the components illustrated as modules may or may not be physical, i.e., may be located in one place, or may be distributed over multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely one specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A multi-channel cross-link linking method for a federated chain, comprising:
determining unique identity identifiers of a plurality of external blockchains to be accessed into a target alliance chain, and converting the identity identifier of each external blockchain to be accessed into the target alliance chain into a virtual internal blockchain link point unique identity identifier of the alliance chain according to a one-to-one correspondence;
according to the unique identity of the virtual internal blockchain node, enabling a plurality of external blockchains to be accessed into the target blockchain to form a blockchain subnet of the target blockchain;
creating a shared data channel for all external blockchains within the federated chain subnetwork such that all external blockchains within the federated chain subnetwork interact with the target federated chain on-chain data based on the same shared data channel.
2. The method for multi-channel cross-link access of a federation chain according to claim 1, wherein determining unique identities of a plurality of external blockchains to be accessed to a target federation chain and converting the identity of each external blockchain to be accessed to the target federation chain into a virtual internal blockchain node unique identity of the federation chain according to a one-to-one correspondence comprises: and determining unique identities of a plurality of external blockchains to be accessed to the target alliance chain, and converting the identity of each external blockchain to be accessed to the target alliance chain into the unique identity of the virtual internal blockchain point of the alliance chain in a account number mode according to a one-to-one correspondence relation.
3. The multi-channel cross-link access method of claim 2, wherein determining the unique identities of the plurality of external blockchains to be accessed to the target blockchain and converting the unique identity of each external blockchain to be accessed to the target blockchain into the unique identity of the virtual internal blockchain node of the blockchain in a one-to-one correspondence manner includes: abstracting an external blockchain of the target alliance chain to be accessed into an account in the alliance chain, and abstracting the alliance chain into a container; according to a one-to-one correspondence, the unique identity of each external blockchain to be accessed into a target alliance chain is converted into the unique identity of a virtual internal blockchain node of the alliance chain in a account number mode, and the unique identity of the virtual internal blockchain node is added into the container.
4. The method of claim 2, wherein creating a shared data channel for all external blockchains within the federated chain subnetwork to enable all external blockchains within the federated chain subnetwork to perform on-chain data interactions with the target federated chain based on the same shared data channel, comprises: creating a shared data channel for all external blockchains in the coalition chain subnetwork, and mapping the unique identity of the corresponding virtual internal blockchain point of all external blockchains in the coalition chain subnetwork to the shared data channel, so that all external blockchains in the coalition chain subnetwork perform on-chain data interaction with the target coalition chain based on the same shared data channel.
5. The method of claim 1, wherein creating a shared data channel for all external blockchains within the federated chain subnetwork such that all external blockchains within the federated chain subnetwork interact with the target federated chain for on-chain data based on the same shared data channel, comprises: and creating a shared data channel for all external blockchains in the alliance chain subnetwork, so that when any external blockchain in the alliance chain subnetwork performs on-chain data interaction with the target alliance chain based on the same shared data channel, the corresponding on-chain data is privately used, and the on-chain data aimed by the on-chain data interaction with the target alliance chain based on the same shared data channel is isolated from other external blockchains.
6. The method of claim 1, wherein creating a shared data channel for all external blockchains within the federated chain subnetwork such that all external blockchains within the federated chain subnetwork interact with the target federated chain for on-chain data based on the same shared data channel, comprises: and configuring the external blockchain of the target alliance chain to be accessed as a side chain, and configuring the alliance chain as a main chain, so that the blockchain outside the target alliance chain to be accessed and the alliance chain carry out cross-chain data transmission.
7. The coalition chain multichannel cross-link access method of claim 6, further comprising: and judging the real-time load of the alliance chain, and when the real-time load is overloaded, routing a service request from outside the alliance chain to an external blockchain of the target alliance chain to be accessed so as to carry out redundant response by the external blockchain of the target alliance chain to be accessed.
8. The multi-channel cross-link access method of claim 6, wherein the enabling cross-link data transmission between the blockchain external to the target coalition chain and the coalition chain comprises: generating a first random number by the external blockchain to be accessed to the target coalition chain in response to the coalition chain crossing request; carrying out hash operation on the first random number to obtain a first hash value; and performing locking processing on the coalition chain cross-chain request by using the first hash value, and setting a valid first time lock so as to enable cross-chain data transmission between the external blockchain of the target coalition chain to be accessed and the coalition chain.
9. The method of claim 8, wherein using the first hash value to lock the federated chain-crossing request and setting a valid first time lock to enable cross-chain data transfer between the external blockchain of the target federated chain to be accessed and the federated chain comprises: the method comprises the steps that a locking request obtained by locking a coalition chain crossing request by using a first hash value and a set effective first time lock are sent to a coalition chain, the coalition chain uses the first random number to lock target data pointed by the coalition chain crossing request to obtain locking data and a set effective second time lock, and the duration of the second time lock is not longer than that of the first time lock; the external blockchain of the target alliance chain to be accessed is enabled to access the locking data by using a locking request in the first time lock, and the alliance chain feeds back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock.
10. The method of claim 9, wherein the performing a locking process on the federated chain crossing request using the first hash value and setting a valid first time lock to enable cross-chain data transmission between the external blockchain of the target federated chain and the federated chain, further comprises: and enabling the external blockchain of the target alliance chain to be accessed to access the locking data without using a locking request in the first time lock, and/or enabling the alliance chain not to feed back the locking data to the external blockchain of the target alliance chain to be accessed in the second time lock, and terminating the cross-chain data transmission between the external blockchain of the target alliance chain to be accessed and the alliance chain.
CN202211234460.1A 2022-10-10 2022-10-10 Multi-channel cross-link linking method and device for alliance chains and electronic equipment Pending CN116032482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211234460.1A CN116032482A (en) 2022-10-10 2022-10-10 Multi-channel cross-link linking method and device for alliance chains and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211234460.1A CN116032482A (en) 2022-10-10 2022-10-10 Multi-channel cross-link linking method and device for alliance chains and electronic equipment

Publications (1)

Publication Number Publication Date
CN116032482A true CN116032482A (en) 2023-04-28

Family

ID=86072920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211234460.1A Pending CN116032482A (en) 2022-10-10 2022-10-10 Multi-channel cross-link linking method and device for alliance chains and electronic equipment

Country Status (1)

Country Link
CN (1) CN116032482A (en)

Similar Documents

Publication Publication Date Title
CN108306819A (en) Instant communicating system implementation method, medium and computing device based on block chain
CN112965824A (en) Message forwarding method and device, storage medium and electronic equipment
CN111338806B (en) Service control method and device
CN109981751A (en) A kind of document transmission method and system, computer equipment and storage medium
CN110034944A (en) Network splitting and disposing method and device thereof
CN115426312A (en) Method and device for managing, optimizing and forwarding identifiers in large-scale multi-modal network
Li et al. A novel genetic service function deployment management platform for edge computing
CN116032482A (en) Multi-channel cross-link linking method and device for alliance chains and electronic equipment
CN102238089A (en) Service interaction method, device and system
CN115270161A (en) Encryption method and device based on encryption plug-in and related product
CN115269056A (en) Encryption module plug-in method and device based on class loader and related product
CN108683586A (en) Data processing method, device, medium in instant communicating system and computing device
CN115630394A (en) League chain cross-link method and device and electronic equipment
CN115617907A (en) Channel allocation method and device for league chain cross-chain and electronic equipment
CN113676471A (en) Cross-node communication method, system, medium and electronic device based on container cloud platform
CN113609349A (en) Rental vehicle inventory detection method, apparatus and medium
CN107707383B (en) Put-through processing method and device, first network element and second network element
CN113992757B (en) Storage resource sharing management method and device in heterogeneous network and related products
CN106161152B (en) A kind of control method and equipment of smart home
CN106230956A (en) Network communication method based on P2P and device
KR101589680B1 (en) Ip multimedia subsystem platform management device for m2m traffic
CN103442094A (en) Server address allocating method and relative devices and systems
CN117499318B (en) Cloud computing virtual network system, and use method, device, equipment and medium thereof
CN115632788A (en) Dynamic access method and device for nodes in alliance chain and electronic equipment
CN116647843B (en) Method and system for zero-trust dynamic access authentication

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