CN113452781B - Block chain cross-chain system and method - Google Patents
Block chain cross-chain system and method Download PDFInfo
- Publication number
- CN113452781B CN113452781B CN202110716723.1A CN202110716723A CN113452781B CN 113452781 B CN113452781 B CN 113452781B CN 202110716723 A CN202110716723 A CN 202110716723A CN 113452781 B CN113452781 B CN 113452781B
- Authority
- CN
- China
- Prior art keywords
- cross
- request
- chain
- link
- gateway
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Abstract
A blockchain cross-chain system includes a cross-chain gateway, a registry, and an adapter. The cross-link gateway is used for receiving the cross-link request and sending the cross-link request through a route; the registration center is used for acquiring connection configuration among different cross-link gateways; and the adapter is used for analyzing the cross-chain calling information, distributing the cross-chain calling request and returning the corresponding request of the cross-chain calling.
Description
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a block chain cross-chain system and a block chain cross-chain method.
Background
The blockchain technology has the advantages of decentralization, and can realize point-to-point transaction, coordination and cooperation based on decentralization credit in a distributed system with nodes not needing to trust each other through means such as data encryption, time stamping, distributed consensus, economic incentive and the like, thereby providing a solution for solving the problems of high cost, low efficiency, unsafe data storage and the like commonly existing in a centralization mechanism.
The block chain has been developed for more than ten years in a primary scale, a large number of public chains, private chains and alliance chains exist independently, most block chain networks are relatively independent networks, data information cannot be intercommunicated and interconnected, and the problem of information isolated island exists. The difficulty of cooperation between different blockchain networks is great, which greatly limits the development of blockchain applications.
How to realize inter-block chain cross-chain interoperation and multi-chain fusion becomes one of hot spots of research in the field of current block chains. The chain crossing technology is just a link for connecting each block chain, and the existence of the chain crossing technology can not only increase the expansibility of the block chain, but also solve the problem of data isolated island caused by difficult transaction among different chains. Through technical means, the information and the value on originally different and independent block chains are exchanged and circulated. If the isolated island of the block chain can be broken and the information on the block chain can be circulated in a wider world, the value of the information on the block chain can be increased in a wider range, and the rapid development of the block chain industry is promoted. The chain-crossing technology is just dedicated to building a trust bridge between chains, breaks the situation of one chain and one island, and realizes information interoperation between the chains so as to realize true win-win.
Disclosure of Invention
The invention provides a block chain cross-chain system, which aims to solve the problem of block chain island and realize information interoperation between block chains.
In one embodiment of the present invention, a blockchain information cross-chain system based on an adapter + gateway cross-chain architecture includes,
the adapter module is used for analyzing the cross-chain calling information, distributing a cross-chain calling request and returning a corresponding cross-chain calling request;
the cross-link gateway module is used for receiving a cross-link request from a user and sending the cross-link request to a corresponding gateway through a route;
and the registration center module is used for acquiring connection configuration among different cross-link gateways.
The adapter module encapsulates user calling information into a uniform calling request before sending the calling request to the gateway, then calls a target resource of a target application chain through a block chain client generated in the adapter, executes corresponding request calling by the application chain, and returns a corresponding result to the adapter.
The cross-chain gateway module adopts a direct connection mode, can be directly connected to other cross-chain gateways to transmit cross-chain transactions, and is a key access port capable of meeting the requirements of heterogeneous block chain access cross-chain system convenience and multi-level cross-chain system expansibility.
The registry module obtains connection configuration among different cross-link gateways through the registry, and communicates through network routing to enable cross-link calling.
The cross-chain architecture system based on the adapter and the gateway fully considers the characteristic of cross-chain interaction of the block chains, can realize information interaction among different block chains, and realizes the data value of the block chains. The system architecture comprises a cross-link adapter module, a cross-link adapter module and a cross-link adapter module, wherein the cross-link adapter module is used for abstracting and packaging information such as contracts, blocks, transactions, states and the like of a heterogeneous block chain into resources with a uniform format; the cross-link gateway module is used for opening a resource calling interface to the outside, analyzing and processing a cross-link request; and the cross-chain registry module is used for storing and managing the structural body information of the cross-chain system.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description, which proceeds with reference to the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 is a flow diagram of a cross-chain architecture according to one embodiment of the invention.
FIG. 2 is a functional framework diagram of a cross-chain architecture according to one embodiment of the invention.
Detailed Description
According to one or more embodiments, a blockchain cross-chain architecture system is provided, and a system architecture flow thereof is shown in fig. 1. The architecture system includesUserThe system comprises an adapter module, a cross-link gateway module and a registry module.
Adapter moduleBefore sending a calling request to the gateway, packaging user calling information into a uniform calling request, calling a target resource of a target application chain through a block chain client generated in the adapter, executing corresponding request calling by the application chain, and returning a corresponding result to the adapter.
Cross-chain gateway moduleThe direct connection mode is adopted, the system can be directly connected to other cross-chain gateways to transmit cross-chain transactions, and the key access port can meet the requirements of heterogeneous block chain access cross-chain system convenience and multi-level cross-chain system expansibility.
Registration center modulePassing between different inter-chain gatewaysRegistration centerThe connection configurations are obtained from each other and communicated through network routes to enable cross-link invocation.
In a system with a blockchain cross-chain architecture,adapter moduleThe method mainly realizes the linkage and resource encapsulation of the bottom layer block chain, and abstracts and encapsulates contract, block, transaction, state and other information of the heterogeneous block chain into resources with a uniform format. Different adapters are independent of each other, are responsible for the connection and encapsulation of respective block chains and are internally connectedOpen blockchain resource invocation services.
Cross-chain gateway moduleAnd the system is responsible for calling an interface, analyzing and processing a cross-link request for external open resources. After receiving the cross-link request, the gateway judges the network of the target link, if the network is a local network, the gateway directly sends the request to the local adapter, and if the network is a remote network, the gateway sends the request to the remote gateway. This enables the inter-network blockchain to implement data interconnection. In addition, the gateway is also responsible for synchronizing the blockchain information in the local network to the registry.
Registration center moduleThe main responsibility is to store the connection configuration of each gateway and the adapter for the gateway to use when the gateway performs cross-chain calling. In order to facilitate the use of upper-layer application, the registration center also provides the functions of saving and inquiring the resources of each block chain, the functions of each resource and the like, and saving and inquiring the cross-chain system call records and the like.
In this embodiment, the blockchain inter-chain system adopts a blockchain inter-chain technology of "adapter + gateway", and after a user submits an inter-chain request, the request is submitted to the gateway for analysis, and the registry checks whether the request is legal. And then judging whether the sub-request exists in the request by the gateway, if so, analyzing the sub-request, repeating the steps until the request is connected to the gateway corresponding to the application chain after being analyzed completely, and calling the adapter API by the gateway corresponding to the application chain for actual execution. When the adapter receives the request, the adapter automatically combines the request according to different requirements of different block chains, executes a calling method, acquires data, packages an analysis result into a uniform structure and returns the result. The results may be saved in the registry for use in invoking queries. And if the request belongs to the sub-requests, the result is sent back to the gateway for recombining the requests until all the sub-requests are analyzed, and the final result is returned.
In accordance with one or more embodiments, as shown in FIG. 2, a functional framework diagram of a cross-chain architecture system. Based on the technology of 'adapter + gateway', in the process of information data interaction of block chain interconnection and intercommunication, the whole cross-chain platform needs to ensure the consistency and the correctness on the chain.
The cross-chain adapter connects the bottom layer blockchain through SDKs and API interfaces provided by different blockchain authorities, packages cross-chain resources and opens the cross-chain resources to a cross-chain gateway through the interfaces, and cross-chain calling of the heterogeneous blockchain is achieved. The gateway proxies the resource calling services of all adapters in the same network and provides a uniform calling interface to the outside. The gateways acquire the connection configuration of the other side through the registration center, and route the cross-link requests mutually to realize the cross-link call of the block chain of the different network. And the cross-link browser realizes modules such as block link browsing, registration information browsing, online calling, calling record query and the like by calling the gateway interface and the registration center interface.
Bottom layer block chain: the system is based on different built application block chains, and realizes data interconnection of heterogeneous and different network block chains through technologies such as abstract resources, gPC communication and the like.
A cross-chain adapter: the cross-link adapter mainly realizes the link and resource encapsulation of the bottom layer block chain, abstracts and encapsulates information such as contracts, blocks, transactions, states and the like of the heterogeneous block chain into resources with a uniform format. The different adapters are independent of each other, are responsible for the connection and encapsulation of the respective block chains, and call services for the internal open block chain resources.
And (3) cross-chain gateway: the main responsibilities of the cross-link gateway are to open a resource call interface to the outside, analyze and process a cross-link request. After receiving the cross-link request, the gateway judges the network of the target link, if the network is a local network, the gateway directly sends the request to the local adapter, and if the network is a far-end network, the gateway sends the request to the far-end gateway. This enables the inter-network blockchain to implement data interconnection. In addition, the gateway is also responsible for synchronizing the blockchain information in the local network to the registry.
The registration center: the main responsibility of the registry is to store the connection configuration of each gateway and the adapter for the gateway to use when performing cross-chain call. In order to facilitate the use of upper-layer application, the registration center also provides the functions of saving and inquiring the resources of each block chain, the functions of each resource and the like, and saving and inquiring the cross-chain system call records and the like.
According to one or more embodiments, the cross-chain architecture based on the 'adapter + gateway' includes a blockchain adapter module, in the cross-chain system, the adapter plays a role in starting and ending in the cross-chain system, connects the gateway in the cross-chain system and an underlying application chain, and has the functions of analyzing cross-chain call information, distributing a cross-chain call request, and returning a cross-chain call response.
And the block chain adapter interface module opens a resource calling interface, a bottom-layer chain list interface, a chain state interface, a resource list interface, a block information query interface and a transaction information query interface to the gateway through an adapter of the cross-chain system.
And the cross-chain gateway module is responsible for receiving a cross-chain request from a user and sending the cross-chain request to the corresponding gateway through a route, so that the aim of calling different block chain resources is fulfilled, and the function of 'starting and stopping from the top' is achieved.
The cross-link registration center module is a center for cross-link system data intersection and storage, different cross-link gateways mutually acquire connection configuration through the cross-link registration center, and communicate through a network route to enable cross-link calling.
The adapter abstracts resources on the bottom layer block chain; calling a gateway API to acquire information of a target chain through a registration center; the information of the chain is registered to a registry. The adapter opens a resource calling interface, a bottom-layer chain list interface, a chain state interface, a resource list interface, a block information query interface and a transaction information query interface to the gateway. Some calling interfaces are opened across the chain gateway. The registry needs to provide an external interface.
Compared with the prior chain-crossing technical scheme, the invention has the following beneficial effects:
the cross-chain architecture system based on the adapter and the gateway can effectively solve the difficult problem of interconnection and intercommunication among heterogeneous block chains;
the adapter technology is adopted to ensure that the data format of the user request data is consistent when the user requests the data, the calling result is uniformly packaged and returned to the gateway sending the calling request, and a complete cross-link request is completed;
for the design of a cross-chain structure interface, rich information on a plurality of block chains can be acquired;
the functions of cross-link request calling, gateway updating, local link list acquisition, block acquisition according to range, block transaction acquisition according to transaction Hash and gateway query are realized;
and data interaction with a user and a gateway is realized.
It should be noted that while the foregoing has described the spirit and principles of the inventive subject matter with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in these aspects cannot be combined. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (2)
1. A blockchain cross-chain system is characterized in that the system comprises a cross-chain gateway, a registration center and an adapter,
the cross-link gateway is used for receiving the cross-link request and sending the cross-link request through a route;
the registration center is used for acquiring connection configuration among different cross-link gateways;
the adapter is used for analyzing the cross-chain calling information, distributing the cross-chain calling request, returning the corresponding request of the cross-chain calling,
the processing steps of the cross-chain system include,
after submitting the cross-link request, firstly analyzing by a cross-link gateway, and checking whether the cross-link request is legal or not in a registration center;
the cross-link gateway judges whether the sub-request exists in the cross-link request or not, and if the sub-request exists, the sub-request is analyzed;
after all the cross-link requests are analyzed, connecting the cross-link requests to a gateway corresponding to the application chain, and calling an adapter API by the gateway corresponding to the application chain to perform actual execution;
after receiving the request, the adapter automatically combines the request according to different requirements of different block chains, executes a calling method, packages the analysis result into a uniform structure after acquiring the data and returns the result, the returned result is stored in a registry to be used for calling and inquiring, if the request belongs to a sub-request, the returned result is sent back to the cross-chain gateway for carrying out a reorganization request until all sub-requests are analyzed, and the final result is returned.
2. A blockchain chaining method based on the blockchain chaining system of claim 1, the method comprising the steps of:
the cross-link gateway receives the cross-link request and sends the cross-link request through a route;
acquiring connection configuration among different cross-link gateways through a registration center;
the adapter analyzes the cross-chain calling information, distributes a cross-chain calling request and returns a corresponding cross-chain calling request;
after submitting the cross-link request, firstly analyzing by a cross-link gateway, and checking whether the cross-link request is legal or not in a registration center;
the cross-link gateway judges whether a sub-request exists in the cross-link request or not, and if the sub-request exists, the sub-request is analyzed;
after all the cross-link requests are analyzed, connecting the cross-link requests to a gateway corresponding to the application chain, and calling an adapter API by the gateway corresponding to the application chain to perform actual execution;
after receiving the request, the adapter automatically combines the request according to different requirements of different block chains, executes a calling method, packages the analysis result into a uniform structure after acquiring data and returns the result, the returned result is stored in a registration center to call and inquire, if the request belongs to a sub-request, the returned result is sent back to the cross-chain gateway for carrying out the reorganization request until all sub-requests are analyzed, and the final result is returned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110716723.1A CN113452781B (en) | 2021-06-28 | 2021-06-28 | Block chain cross-chain system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110716723.1A CN113452781B (en) | 2021-06-28 | 2021-06-28 | Block chain cross-chain system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113452781A CN113452781A (en) | 2021-09-28 |
CN113452781B true CN113452781B (en) | 2023-02-14 |
Family
ID=77813341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110716723.1A Active CN113452781B (en) | 2021-06-28 | 2021-06-28 | Block chain cross-chain system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113452781B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114579611B (en) * | 2022-05-05 | 2022-07-05 | 北京理工大学 | Data parallel query method and device of cross-link system |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7324222B2 (en) * | 2018-05-01 | 2023-08-09 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Computing system, method and computer program for managing blockchain |
CN108876370B (en) * | 2018-06-12 | 2021-12-17 | 北京航空航天大学 | System architecture for sharing open data by crossing block chains under heterogeneous multi-chain architecture |
US10901983B2 (en) * | 2019-03-01 | 2021-01-26 | Wanchain Ltd. | System and method for universal blockchain interoperability |
CN110751475A (en) * | 2019-10-24 | 2020-02-04 | 杭州趣链科技有限公司 | Cross-chain method, system, equipment and storage medium for blockchain transaction |
CN111741026B (en) * | 2020-08-07 | 2020-12-01 | 百度在线网络技术(北京)有限公司 | Cross-chain transaction request processing method, device, equipment and storage medium |
CN112733174B (en) * | 2020-10-29 | 2022-07-19 | 腾讯科技(深圳)有限公司 | Authentication management method and system of block chain system and electronic equipment |
CN112583917B (en) * | 2020-12-10 | 2022-09-06 | 浙商银行股份有限公司 | CSCP-based hybrid chain construction method |
CN112529577A (en) * | 2020-12-17 | 2021-03-19 | 上海万向区块链股份公司 | Block chain cross-chain system and method based on excitation treatment |
CN112632164B (en) * | 2020-12-21 | 2022-09-13 | 杭州云象网络技术有限公司 | Universal cross-chain programming interface method for realizing trusted authority access |
CN112926033A (en) * | 2021-03-18 | 2021-06-08 | 南京星链高科技发展有限公司 | Task process tracing system based on block chain cross-chain cooperation |
-
2021
- 2021-06-28 CN CN202110716723.1A patent/CN113452781B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113452781A (en) | 2021-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112330326B (en) | Business processing method and device applied to bank transaction blockchain system | |
CN108717861B (en) | Medical data sharing method based on block chain | |
CN103684963B (en) | Framework system and implementation method of middleware applied to car networking | |
CN110650189A (en) | Relay-based block chain interaction system and method | |
CN110365695A (en) | The block chain data interactive method and device of changeable common recognition algorithm | |
CN112688934B (en) | Contract calling method and system based on intelligent gateway and contract engine | |
CN113452781B (en) | Block chain cross-chain system and method | |
CN105656947B (en) | A kind of methods, devices and systems that transaction middleware is interacted with third party system | |
JP4565748B2 (en) | Exchange system and message processing method thereof | |
CN111083223B (en) | Block chain interconnection system for asset securitization processing sub-platform and interconnection data communication method thereof | |
WO2023040502A1 (en) | User service registration | |
CN110213304A (en) | A kind of block chain network interconnected method and system | |
CN110231980A (en) | Processing method, device and the transaction processor of distributed transaction | |
WO2023040498A1 (en) | User service utilization | |
WO2023040496A1 (en) | Virtual resource allocation based on blockchain | |
CN112291305A (en) | Code chain construction method and device based on unified identification | |
CN112926033A (en) | Task process tracing system based on block chain cross-chain cooperation | |
CN110099068B (en) | Method, device and equipment for interaction between open platforms based on block chains | |
CN113781216A (en) | Asynchronous cross-chain transaction query method and device based on callback contract mechanism | |
US6690781B2 (en) | Generic service component for telephony container server | |
WO2023040450A1 (en) | Blockchain service network establishment | |
US6694002B2 (en) | Generic service component for wireless services | |
CN106445562A (en) | Metadata-based OpenAPI implementing method and OpenAPI implementing device | |
CN111652727A (en) | Block chain infrastructure construction method for share platform in securities future industry | |
CN116155624B (en) | Cross-link method, device and system for heterogeneous alliance chains |
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 |