Reconfigurable cross-chain connection method and system, storage medium and device
Through the reconstructible cross-chain connection method, the problems of multi-chain interconnection and cross-chain protocol adaptation are solved, dynamic adaptation and efficient data access of cross-chain resources are realized, data call security is ensured, regulatory interface is provided, and cross-chain performance is improved.
Patent Information
- Application Number
- CN202310438495.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2025-08-01
AI Technical Summary
The existing technology is difficult to achieve multi-chain interconnection, there are difficulties in adapting cross-chain protocols, and there is a lack of data call security and regulatory means.
Reconfigurable cross-chain connection methods are adopted, including resource adaptation-oriented virtual machine resource scheduling interface, prefix trees and inverted document components, dual-channel wedged contract transaction exception handling, cross-chain data interface for domain-specific languages and regulatory department-specific computing interfaces to build a reconfigurable cross-chain model to ensure data security and supervision.
It realizes dynamic adaptation and efficient data access of cross-chain resources, improves cross-chain performance, supports multi-chain protocol adaptation, ensures data call security, and provides data supervision interfaces for regulatory departments.
Smart Images

Figure CN120407670A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of cross-chain interfaces, and specifically relates to a reconfigurable cross-chain connection method, system, storage medium and device. Background Art
[0002] For blockchain networks to achieve an interconnected platform like the Internet, cross-chain technology must be relied upon to form an ecosystem of interconnection and coexistence of multiple chains. Currently, to achieve the interconnection of multiple chains, breakthroughs are mainly made from two directions: active compatibility and passive compatibility, to solve the problem of multi-chain protocol adaptation. Active compatibility is to develop a low-level cross-chain mechanism on the basis of existing heterogeneous blockchain systems, that is, to develop cross-chain technologies applicable to different scenarios from the actual applications of blockchains, so as to realize cross-scenario asset circulation and value transfer. Passive compatibility starts from the underlying platform, first builds a cross-chain platform, and then develops blockchain systems on this basis. At the same time, it can also provide interfaces to access more blockchain systems and share the system convenience of the cross-chain platform. Whether it is active compatibility or passive compatibility, from the perspective of the chain's own technology, each chain has an interface for external access, otherwise the interface is designed and extended. In cross-chain scenarios, it is necessary to connect architectures, data, etc. from different blockchains.
[0003] Therefore, to meet the current cross-chain requirements between blockchains, a reconfigurable cross-chain connection method is urgently needed. Summary of the Invention
[0004] Based on the above background and the problems existing in the prior art, the present invention intends to design a reconfigurable cross-chain connection method, which can adapt to the dynamic allocation of computing resources for cross-chain transaction processing, realize a reconfigurable cross-chain model, provide an interface for regulatory authorities to conduct data supervision, and ensure the security of data calls at the same time.
[0005] To achieve these objects and other advantages of the present invention, the present invention adopts a reconfigurable cross-chain connection method, including:
[0006] Setting a virtual machine resource scheduling connection interface for resource adaptation, and setting three parts of interfaces including a monitor, a scheduler, and an executor to adapt to the dynamic allocation of computing resources for cross-chain transaction processing, and realizing a reconfigurable cross-chain module;
[0007] Introducing a prefix tree and an inverted document component to realize the data of the data provider and the user subscription scenario that can be quickly accessed during the cross-chain process, and then developing a data exchange standard interface to improve the data parsing speed, so as to cope with the transaction exceptions that occur during the cross-chain smart contract call;
[0008] Combined with the contract transaction exception handling of dual-channel wedging, an asset status locking method based on dynamic member multi-signature is adopted to construct a side-chain firewall. After the firewall is constructed, even if there is a defect that causes asset loss on a certain chain, this defect will not cause asset loss on any other chain. In this way, when a catastrophic problem occurs in a side chain, the main chain will not be affected;
[0009] Based on the cross-chain on-chain data interface of the domain-specific language, the smart contract is called when handling the transaction exception of asset status locking that connects and processes the domain-specific language;
[0010] Set a reconfigurable cross-chain model for ciphertext calculation, provide a resource status transfer connection interface for calling, and implement the interface security connection process for specific operations;
[0011] Provide a connection interface for specific operations for the regulatory department. When the regulatory department conducts data supervision, it obtains supervision data through the connection interface for specific operations, while ensuring data connection security.
[0012] Preferably, among them, the virtual machine resource scheduling interface for resource allocation, the virtual machine resource scheduling connection interface for resource allocation, and the set of customizable, pluggable, and componentized interfaces include a general programming interface library or general contract components that support the rapid construction of cross-chain contracts, an atomic contract call interface, and a programmable and secondary-developable general interface. Each cross-chain application can be quickly accessed, capable of supporting multi-domain cross-chain services and meeting the cross-chain interaction requirements of heterogeneous multi-blockchains.
[0013] Furthermore, the virtual machine resource scheduling interface for resource allocation sets a reconfigurable and extensible cross-chain external access interface, standardizes various chain external access interfaces, connects the interface protocols for cross-chain access for each chain, and adaptively selects the cross-chain adaptation protocol for connecting the corresponding interface according to the cross-chain application requirements of different application chains.
[0014] Furthermore, in the reconfigurable cross-chain model, the monitor is used to monitor the resource usage of the virtual machine nodes for resource adaptation, including CPU, memory, network traffic, etc., and record the relationship between the scale of the virtual machine nodes for resource adaptation and the cross-chain performance. The scheduler can make scheduling decisions using various scheduling algorithms according to the requirements of the cross-chain network for various resources such as the computing network, realize dynamic resource allocation, and ensure cross-chain performance. The executor performs scheduling execution according to the scheduling decision results, and dynamically turns on or off the corresponding virtual machines in real time to adapt to cross-chain needs. In addition, in specific scenarios, the number of nodes of the virtual machine resource scheduling connection interface for resource adaptation can be dynamically expanded or more computing resources can be allocated to enhance the cross-chain ability and improve the cross-chain performance, such as TPS performance.
[0015] Furthermore, the prefix tree and the inverted document component introduce a publishing and registration framework. The prefix tree, also known as the word search tree, Trie tree, or dictionary tree, can maximize the reuse of the common prefixes of each string and efficiently implement the storage and search of strings. It is often used for counting and sorting a large number of strings. The reconfigurable cross-chain database is set to include at least one forward document and one inverted document. The forward document is a collection of documents formed by arranging all the records of the database in ascending order of the record numbers, which constitutes the main content of the database. In the inverted document, the characteristic identifiers of the records are used as the basis for arrangement, and the record numbers containing this identifier are listed afterwards. Using the inverted document can greatly improve the retrieval efficiency. Therefore, the data fast access technology in the cross-chain scenario can be realized through the prefix tree and the inverted document component, and the data exchange standard interface can be developed and the data parsing speed can be improved.
[0016] Furthermore, the specific implementation steps of the specific operation include:
[0017] Perform ciphertext calculation on the reconfigurable cross-chain module and provide a resource status transfer interface for calling. After the user obtains the ciphertext, request the local decryption service to decrypt the ciphertext CT A’ , so as to obtain the plaintext. When the obtained result satisfies the relationship:
[0018] A * B = A', where * represents the specific operation, A represents the user, B represents the chain, and the specific operation A' is the ciphertext calculation performed by the resource status transfer connection interface.
[0019] Furthermore, when the regulatory department obtains regulatory data, it also includes realizing the visualization of on-chain data supervision, providing a unified human-machine interface for the regulatory department, including data display and control access; the data display displays one or several of the basic data of the blockchain system, business intelligent contracts, and abnormal detection results through visualization methods; and integrates the remote call interface of the trusted supervision component to support emergency response in abnormal situations.
[0020] On the other hand, the present invention proposes a reconfigurable cross-chain connection system, and the specific composition includes:
[0021] Reconfigurable cross-chain module: used to set the virtual machine resource scheduling interface for resource allocation, and set three parts of interfaces including a monitor, a scheduler, and an executor to adapt to the dynamic allocation of computing resources for cross-chain transaction processing; used to perform ciphertext calculation, provide a rest api interface for calling, and implement the technical interface for performing specific operations;
[0022] Prefix tree and inverted document component: used to provide data for the data provider and the user subscription scenario for fast access during the cross-chain process;
[0023] Dual-channel wedging contract transaction exception handling module: used to build a sidechain firewall using an asset status locking method based on dynamic member multi-party signatures;
[0024] Domain-specific language cross-chain on-chain data interface: used to handle smart contract calls during transaction exception handling of asset status locks in domain-specific languages;
[0025] The regulatory department's specific operation interface is used for regulatory departments to call regulatory data, implement data supervision, and ensure data call security.
[0026] In a third aspect, the present invention proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above methods and steps can be implemented.
[0027] In a fourth aspect, the present invention proposes a reconfigurable cross-chain connection device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, any one of the above methods and steps can be implemented.
[0028] Based on the above description and technical implementation process, the present invention includes at least the following beneficial effects: In order to solve the problem of cross-chain resource adaptation, the present invention provides a virtual machine resource scheduling connection interface for resource adaptation, realizes a reconfigurable cross-chain model, realizes heterogeneous compatibility with multiple chains through a multi-chain protocol adaptation mechanism, and realizes resource adaptation to complex and changing needs through dynamic allocation of virtual resources. A multi-chain protocol adaptation mechanism and a smart contract call interface based on active compatibility are proposed to realize inter-chain asset circulation and contract calls compatible with multiple isomorphic / heterogeneous chains. On this basis, the cross-chain transparent use of virtualized resources and the cross-chain dynamic adjustment of interface calls are realized, prefix trees and inverted document components are introduced, and contract transaction exception handling with dual-channel wedging is combined. A cross-chain on-chain data interface based on a domain-specific language is used to realize efficient connection and coordination of cross-chain operations. At the same time, it can provide an interface for regulatory authorities to conduct data supervision, realize data supervision, and ensure the security of call connections. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings of the present invention are embodiments of the present invention and fall within the scope of protection of the present invention.
[0030] Figure 1 This is a flow chart of the reconfigurable cross-chain connection method of the present invention;
[0031] Figure 2 This is the architecture diagram of the virtual machine resource scheduling connection interface for resource adaptation of the present invention;
[0032] Figure 3 This is the diagram of the reconfigurable cross-chain connection device of the present invention. Detailed implementation manners
[0033] In order to clearly elaborate the present invention and make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the following combines the accompanying drawings in the embodiments of the present invention and describes the technical solutions in the embodiments of the present invention clearly and completely, so that those skilled in the art can implement according to the description in the specification. The following will elaborate on the technology of the present invention in combination with the specific implementation manners with reference to the accompanying drawings.
[0034] The present invention realizes a reconfigurable cross-chain connection method. As Figure 1 shown in the flowchart of the method of the present invention, a prefix tree and an inverted document component are introduced, combined with the contract transaction exception handling of double-channel wedging, and a cross-chain on-chain data interface based on a domain-specific language is set up, and a virtual machine resource scheduling interface for resource allocation is set up to realize a reconfigurable cross-chain model. The specific implementation steps include:
[0035] Step1: Set up a virtual machine resource scheduling connection interface for resource adaptation, and set up three parts of interfaces including a monitor, a scheduler, and an executor to adapt to cross-chain transaction processing and dynamically allocate computing resources, so as to realize a reconfigurable cross-chain model;
[0036] Among them, the virtual machine resource scheduling connection interface for resource adaptation is set up with customizable, pluggable, and componentized interfaces, including developing a general programming interface library or general contract components and atomic contract call interfaces that support the rapid construction of cross-chain contracts, realizing programmable and secondary-developable general interfaces, and each cross-chain application can be quickly accessed, which can support multi-domain cross-chain services and meet the cross-chain interaction requirements of heterogeneous multi-blockchains.
[0037] In addition, each chain has an interface for external access. Otherwise, design and expand this interface. Standardize the external access interfaces of each chain, design an interface protocol for cross-chain access for each chain, and according to the cross-chain application requirements of different application chains, adaptively select the corresponding cross-chain adaptation protocol.
[0038] In a reconfigurable cross-chain model, a monitor is used to monitor the resource usage of virtual machine nodes adapted to resources, including CPU, memory, network traffic, etc., and record the relationship between the scale of virtual machine nodes adapted to resources and cross-chain performance. The scheduler can make scheduling decisions using various scheduling algorithms according to the demands of the cross-chain network for various resources such as the computing network, achieve dynamic resource allocation, and ensure cross-chain performance. The executor performs scheduling execution according to the scheduling decision results, and dynamically turns on or off the corresponding virtual machines in real time to meet the cross-chain needs. In addition, in specific scenarios, the number of nodes of the dynamic expansion connection interface of the virtual machine resources adapted to resources can be increased or more computing resources can be allocated to enhance the cross-chain ability and improve cross-chain performance, such as TPS performance.
[0039] Step2: Introduce a prefix tree and an inverted document component to achieve fast access to data in the scenarios of data providers and user subscriptions during the cross-chain process. Taking the cross-chain between Chain A and Chain B as an example, implement the fast access technology for data in the scenario where the publisher of Chain A provides data and the user of Chain B subscribes, and then develop a data exchange standard interface to improve the data parsing speed, so as to handle transaction exceptions that occur during cross-chain smart contract calls;
[0040] Introduce a publishing registration framework. A prefix tree, also known as a word search tree, a Trie tree, or a dictionary tree, can reuse the common prefixes of each string to the greatest extent, efficiently implement the storage and search of strings, and is often used for counting and sorting a large number of strings. A database includes at least one sequential document and one inverted document. The sequential document is a collection of all records in the database arranged in ascending order of record numbers, which constitutes the main content of the database. In the inverted document, the characteristic identifiers of the records are used as the sorting basis, and then the record numbers containing this identifier are listed. Using the inverted document can greatly improve the retrieval efficiency. Therefore, we can implement the fast access technology for data in the scenario where the publisher of Chain A provides data and the user of Chain B subscribes through the prefix tree and the inverted document component, develop a data exchange standard interface, and improve the data parsing speed.
[0041] Step3: Combine the contract transaction exception handling of dual-channel wedging, adopt an asset status locking method based on dynamic member multi-signature, and build a side-chain firewall. After building the firewall, even if there is a defect that causes asset loss on a certain chain, this defect will not cause asset loss on any other chain. In this way, when a side-chain has a catastrophic problem, the main chain will not be affected;
[0042] Step4: Based on the cross-chain on-chain data interface of domain-specific language, handle the smart contract calls during the transaction exception handling of asset status locking of domain-specific language.
[0043] Step5: Set up a reconfigurable cross-chain model for ciphertext calculation, provide a resource status transfer connection (rest API) interface for invocation, and implement an interface for specific operations.
[0044] Among them, the specific implementation steps of the specific operation include:
[0045] Perform ciphertext calculation on the cloud platform and provide a restAPI interface for invocation. After user A obtains the ciphertext, request the local decryption service to decrypt the ciphertext CT A’ , so as to obtain the plaintext. When the obtained result satisfies the relationship:
[0046] A * B = A', where * represents a specific operation, A represents the user, B represents the chain, and both A and B can be understood as two chains. The specific operation A' is the ciphertext calculation performed by the resource status transfer connection interface.
[0047] Step6: Set up a reconfigurable cross-chain model for ciphertext calculation, provide a rest api interface for invocation, and implement an interface for specific operations.
[0048] Visualization of on-chain data supervision: Provide a unified human-machine interface for the supervision department, including two major parts: data display and control access. Among them, the data display shows information such as the basic data of the blockchain system, business contracts, and abnormal detection results through visualization methods; and integrates the remote call interface of the trusted supervision component to support emergency response in abnormal situations.
[0049] In another embodiment, the present invention also provides a reconfigurable cross-chain connection system, and its specific composition includes:
[0050] Reconfigurable cross-chain module: Used to set up a virtual machine resource scheduling interface for resource allocation, and set up three parts of interfaces including a monitor, a scheduler, and an executor to adapt to dynamic allocation of computing resources for cross-chain transaction processing; used to perform ciphertext calculation, provide a rest api interface for invocation, and implement a technical interface for specific operations;
[0051] Prefix tree and inverted document components: Used to quickly access data in the scenarios of data providers and user subscriptions during cross-chain;
[0052] Dual-channel wedged contract transaction exception handling module: Used to construct a side-chain firewall by adopting an asset status locking method based on dynamic member multi-signature;
[0053] Domain-specific language cross-chain on-chain data interface: Used to handle the intelligent contract call during the transaction exception handling of asset status locking in domain-specific languages;
[0054] Supervision department specific operation interface, used for the supervision department to call supervision data, realize data supervision, and ensure data call security at the same time.
[0055] The number of modules and the processing scale described here are used to simplify the description of the present invention. Applications, modifications, and variations of the storage system of the present invention will be apparent to those skilled in the art.
[0056] Another embodiment of the present invention provides a computer-readable storage medium storing a computer program, which when executed by a processor can implement the same or similar steps as those in the method embodiment, and will not be described in detail here.
[0057] Another embodiment of the present invention provides a reconfigurable cross-chain connection device, which can be a server or a mobile terminal. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database is used for all data of the computer device. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements a reconfigurable cross-chain connection method.
[0058] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For related parts, refer to the partial description of the method embodiment.
[0059] The above description of the embodiments is to enable those of ordinary skill in the art to understand and apply the present invention. It is obvious that those skilled in the art can easily make various modifications to the above embodiments and apply the general principles described herein to other embodiments without creative efforts. Therefore, the present invention is not limited to the above embodiments, and all improvements and modifications made by those skilled in the art based on the disclosure of the present invention should be within the protection scope of the present invention.
Claims
1. A reconfigurable cross-chain connection system, characterized in that, It includes an interface setting module, a prefix tree and an inverted document component, a dual-channel wedging contract transaction exception handling module, a domain-specific language cross-chain on-chain data interface, and a regulatory department-specific operation interface: The interface setting module: is used to set a virtual machine resource scheduling connection interface for resource adaptation, adapt to dynamic allocation of computing resources for cross-chain transaction processing, and implement a reconfigurable cross-chain module. Among them, the connection interface includes at least one or several of a monitor interface, a scheduler interface, and an executor interface; The prefix tree and inverted document component: are used to quickly access data of data providers and user subscription scenarios during cross-chain; The dual-channel wedging contract transaction exception handling module: is used to construct a side-chain firewall by using an asset status locking method based on dynamic member multi-signature; The domain-specific language cross-chain on-chain data interface: is used to connect and call a smart contract when handling a transaction exception of asset status locking in a domain-specific language; The regulatory department-specific operation interface is used to receive or feedback regulatory data to the regulatory department, implement data supervision, and ensure the security of regulatory data connection at the same time.
2. A reconfigurable cross-chain connection method, characterized in that, It includes the following steps: Set a virtual machine resource scheduling connection interface for resource adaptation, adapt to dynamic allocation of computing resources for cross-chain transaction processing, and implement a reconfigurable cross-chain module. Among them, the connection interface includes at least one or several of a monitor interface, a scheduler interface, and an executor interface; Set a prefix tree and an inverted document component to quickly access data of data providers and user subscription scenarios during cross-chain, and then develop a data exchange standard connection interface to improve data parsing speed, so as to handle transaction exceptions that occur during cross-chain smart contract calls; Based on the dual-channel wedging contract transaction exception handling, construct a side-chain firewall by using an asset status locking method based on dynamic member multi-signature; Through the domain-specific language cross-chain on-chain data interface, call a smart contract that handles a transaction exception of asset status locking in a domain-specific language; Based on the connection interface provided by the regulatory department for specific operations, receive or feedback regulatory data to the regulatory department, implement data supervision, and ensure the security of regulatory data connection at the same time.
3. The reconfigurable cross-chain connection method according to claim 2, wherein The virtual machine resource scheduling connection interface for resource adaptation is set with customizable, pluggable, and componentized interfaces, including a general programming interface library or a general contract component that supports rapid construction of cross-chain contracts, an atomic contract call interface, and a programmable and secondary-developable general interface, to meet the cross-chain interaction requirements of heterogeneous multi-blockchains.
4. The reconfigurable cross-chain connection method according to claim 2 or 3, characterized in that The virtual machine resource scheduling connection interface for resource adaptation is set with a reconfigurable and extensible cross-chain external access interface, standardizes various chain external access interfaces, defines an interface protocol for each chain to connect to cross-chain access, and adaptively selects a cross-chain adaptation protocol for connecting to the corresponding interface according to the cross-chain application requirements of different application chains.
5. The reconfigurable cross-chain connection method according to claim 2, characterized in that: In the reconfigurable cross-chain module, it further includes: The monitor monitors the resource usage of virtual machine nodes for resource adaptation, including one or several of CPU, memory, and network traffic, and records the relationship between the scale of resource-adapted virtual machine nodes and network performance; The scheduler makes scheduling decisions based on the requirements of the cross-chain network for various resources in the computing network using a scheduling algorithm to obtain scheduling decision results, achieving dynamic resource allocation and ensuring cross-chain performance; The executor performs scheduling execution according to the scheduling decision results, dynamically turning on or off the corresponding virtual machines in real time to meet the needs of cross-chain resource scheduling connections; Dynamically expand the scale of the number of nodes of the virtual machine resource scheduling connection interface for resource adaptation or allocate more computing resources to enhance the connection ability and improve cross-chain connection performance.
6. The reconfigurable cross-chain connection method according to claim 2, characterized in that: The prefix tree and inverted document components introduce a publishing and registration framework to set up a reconfigurable cross-chain database that includes at least one sequential document and one inverted document. Among them, the sequential document is a collection of documents formed by arranging all the records of the database in ascending order of record numbers, constituting the main content of the database; In the inverted document, the characteristic identifiers of the records are used as the basis for arrangement, and the record numbers containing this identifier are listed afterwards to improve the retrieval efficiency.
7. The reconfigurable cross-chain connection method according to claim 2, characterized in that: It also includes the following steps: Perform ciphertext calculations and provide a resource status transfer connection interface for calling connections to implement the interface security connection process for specific operations; In response to the user's decryption request for the ciphertext CT A' , the plaintext is obtained and satisfies a specific operation relationship: A * B = A', where * represents a specific operation, A represents the A chain, B represents the B chain, and the specific operation A' is the ciphertext calculation for the connection of the resource status transfer connection interface.
8. The reconfigurable cross-chain connection method according to claim 2, wherein The regulatory department obtains regulatory data, and also includes realizing the visualization of on-chain data supervision, providing a unified human-machine interface for the regulatory department, including data display and control access; The data display shows one or several types of information among the basic data of the blockchain system, business intelligent contracts, and anomaly detection results through visualization methods; and integrates the remote call interface of the trusted supervision component to support emergency responses in abnormal situations.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method steps described in any one of claims 2 to 8.
10. A reconfigurable cross-chain connection device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method steps described in any one of claims 2 to 8.