Main-side chain data interaction system, method, device and medium based on cloud-edge collaboration
Through the main-side chain data interaction system based on cloud-edge collaboration, the data interaction between the edge-side blockchain and the cloud main chain is realized, which solves the problem that network communication cannot be opened in the existing technology and improves the speed and credibility of data analysis. .
Patent Information
- Application Number
- CN202211056883.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-08-31
AI Technical Summary
In the existing technology, the communication between the edge-side blockchain and the cloud main chain network cannot be opened up, resulting in low data interaction efficiency and unable to meet the enterprise's demand for data analysis speed.
A main-side chain data interaction system based on cloud-edge collaboration is adopted. Through the collaborative work of cloud units and edge units, the edge blockchain application container image is distributed and deployed automatically using the cloud-edge network channel to realize edge blockchain nodes. The chain is run, and edge data information is uploaded to the main chain of the blockchain in real time through the MQTT service module and the chain management module.
It realizes data interaction between the edge-side blockchain and the cloud main chain, ensuring the credibility and real-time nature of the data, solving network communication problems, and improving the speed of data analysis.
Smart Images

Figure CN115460280B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and specifically relates to a main-side chain data interaction system, method, device and readable storage medium based on cloud-edge collaboration. Background Art
[0002] In recent years, most companies expect to deploy industrial Internet of Things applications in the cloud or at the edge. Cloud-based Internet of Things solutions and edge-based Internet of Things solutions are gradually unable to meet the growing demand. More and more companies are turning their attention to the combination of the two, that is, edge-cloud collaborative solutions, to speed up data analysis and facilitate companies to make faster and better decisions. However, there is a problem in the existing technology that the edge-side blockchain and the cloud-based main chain network cannot communicate. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art, and provides a main-side chain data interaction system, method, device and readable storage medium based on cloud-edge collaboration, which can solve the problem that the edge-side blockchain and the cloud-side main chain network communication cannot be established.
[0004] In the first aspect, an embodiment of the present invention provides a main-side chain data interaction system based on cloud-edge collaboration, including a cloud unit and at least one edge unit; the cloud unit includes a cloud communication interface module, a cloud-edge collaboration module, a message subscription module, an on-chain management module and a blockchain main chain; each of the edge units includes an edge communication interface module, an edge core service module, an edge data extraction module and an MQTT service module; the cloud communication interface module and the edge communication interface module are connected through a cloud-edge network channel; wherein,
[0005] The cloud-edge collaboration module is used to send the edge blockchain application container image to the edge core service module through the cloud-edge network channel;
[0006] The edge core service module is used to automatically deploy the edge blockchain application container image issued by the cloud-edge collaboration module to realize the chain operation of the edge blockchain node;
[0007] The edge data extraction module is used to parse the on-chain scheme of the edge blockchain node according to the cloud-on-cloud strategy of the edge blockchain, and push the on-chain scheme to the MQTT service module in real time, wherein the on-chain scheme contains edge data information;
[0008] The message subscription module is used to subscribe to the uplink scheme of the MQTT service module and forward the uplink scheme to the uplink management module;
[0009] The on-chain management module uploads the edge data information to the blockchain main chain for storage based on the acquired on-chain solution.
[0010] Optionally, the cloud-edge collaboration module is also used to package the edge blockchain application based on containerization technology to generate an edge blockchain application container image.
[0011] Optionally, the MQTT service module includes an MQTT client and an MQTT proxy server, the MQTT client is used to publish information that other clients may subscribe to, subscribe to messages published by other clients, unsubscribe or delete application messages, and disconnect from the MQTT proxy server; the MQTT proxy server is used to accept network connections from MQTT clients, accept application information published by MQTT clients, process subscription and unsubscription requests from MQTT clients, and forward application messages to subscribed MQTT clients.
[0012] Optionally, the information exchange between the cloud unit and the edge unit is carried out in a publish and subscribe manner, and the subscription and publication are based on topics.
[0013] Optionally, the main-side chain data interaction system further includes an uplink service module; wherein,
[0014] The uplink service module is used to call the uplink solution in the edge data extraction module and send the uplink solution to the uplink management module;
[0015] The on-chain management module generates an on-chain request carrying the on-chain solution, and sends the on-chain request to the blockchain main chain;
[0016] The blockchain main chain verifies the signature of the data to be uploaded to the chain carried by the upload request. If the signature verification passes, a block is generated according to the data to be uploaded to the chain, and the block is added to the blockchain main chain.
[0017] In a second aspect, an embodiment of the present invention provides a main-side chain data interaction method based on cloud-edge collaboration, including:
[0018] The cloud-edge collaboration module sends the edge blockchain application container image to the edge core service module through the cloud-edge network channel;
[0019] The edge core service module automatically deploys the edge blockchain application container image issued by the cloud-edge collaboration module to realize the chain operation of edge blockchain nodes;
[0020] The edge data extraction module parses the on-chain scheme of the edge blockchain node according to the cloud-on-cloud strategy of the edge blockchain, and pushes the on-chain scheme to the MQTT service module in real time, wherein the on-chain scheme contains edge data information;
[0021] The message subscription module subscribes to the uplink scheme of the MQTT service module and forwards the uplink scheme to the uplink management module;
[0022] The on-chain management module uploads the edge data information to the blockchain main chain for storage based on the acquired on-chain solution.
[0023] Optionally, the cloud-edge collaboration module is also used to package the edge blockchain application based on containerization technology to generate an edge blockchain application container image.
[0024] Optionally, the main chain and side chain data interaction method further includes:
[0025] The uplink service module calls the uplink solution in the edge data extraction module and sends the uplink solution to the uplink management module;
[0026] The on-chain management module generates an on-chain request carrying the on-chain solution, and sends the on-chain request to the blockchain main chain;
[0027] The blockchain main chain verifies the signature of the data to be uploaded to the chain carried by the upload request. If the signature verification passes, a block is generated according to the data to be uploaded to the chain, and the block is added to the blockchain main chain.
[0028] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0029] at least one processor; and
[0030] a memory communicatively connected to the at least one processor; wherein,
[0031] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 6 to 8.
[0032] In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the above method. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the structure of a main-side chain data interaction system based on cloud-edge collaboration provided by an embodiment of the present invention is shown;
[0034] Figure 2 A schematic diagram of the structure of another main-side chain data interaction system based on cloud-edge collaboration provided by an embodiment of the present invention is shown;
[0035] Figure 3 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present invention is shown. DETAILED DESCRIPTION
[0036] Embodiments of the present invention will be described more fully below with reference to the accompanying drawings, but the embodiments shown may be embodied in different forms and should not be construed as being limited to the embodiments set forth in the present invention. On the contrary, the purpose of providing these embodiments is to make the present invention thorough and complete and to enable those skilled in the art to fully understand the scope of the present invention.
[0037] The accompanying drawings of the embodiments of the present invention are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. The above and other features and advantages will become more apparent to those skilled in the art by describing the detailed exemplary embodiments with reference to the accompanying drawings.
[0038] Embodiments of the present invention may be described with reference to plan views and / or cross-sectional views by way of ideal schematic views of the present invention. Therefore, the exemplary illustrations may be modified according to manufacturing techniques and / or tolerances.
[0039] In the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other. Unless otherwise defined, the technical terms or scientific terms used in the present invention should be the common meanings understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "include" mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0040] Unless otherwise defined, all terms (including technical and scientific terms) used in the present invention have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present invention, and will not be interpreted as having an idealized or overly formal meaning unless the present invention clearly defines it as such.
[0041] The embodiments of the present invention are not limited to the embodiments shown in the drawings, but include modifications of the configurations formed based on the manufacturing process. Therefore, the regions illustrated in the drawings have schematic properties, and the shapes of the regions shown in the drawings illustrate the specific shapes of the regions of the elements, but are not intended to be limiting.
[0042] In recent years, most companies expect to deploy industrial Internet of Things applications in the cloud or at the edge. Cloud-based Internet of Things solutions and edge-based Internet of Things solutions are gradually unable to meet the growing demand. More and more companies are turning their attention to the combination of the two, that is, edge-cloud collaborative solutions, to speed up data analysis and facilitate companies to make faster and better decisions. However, there is a problem in the existing technology that the edge-side blockchain and the cloud-based main chain network cannot communicate.
[0043] In order to solve at least one of the above technical problems, an embodiment of the present invention provides a main-side chain data interaction system, method, device and readable storage medium based on cloud-edge collaboration. The main-side chain data interaction system, method, device and readable storage medium based on cloud-edge collaboration provided by the embodiment of the present invention are further described in detail below in combination with the accompanying drawings and specific implementation methods.
[0044] Figure 1 A schematic diagram of the structure of a main-side chain data interaction system based on cloud-edge collaboration provided for the implementation of the present invention is as follows: Figure 1 As shown, the main-side chain data interaction system based on cloud-edge collaboration includes a cloud unit 10 and an edge unit 20. The cloud unit 10 includes a cloud communication interface module 11, a cloud-edge collaboration module 12, a message subscription module 13, an on-chain management module 14 and a blockchain main chain 15. The edge unit 20 includes an edge communication interface module 21, an edge core service module 22, an edge data extraction module 23 and an MQTT service module 24. The cloud communication interface module 11 and the edge communication interface module 21 are connected through a cloud-edge network channel.
[0045] Specifically, the cloud-edge collaboration module 12 is used to send the edge blockchain application container image to the edge core service module 22 through the cloud-edge network channel. The edge core service module 22 is used to automatically deploy the edge blockchain application container image sent by the cloud-edge collaboration module 12 to realize the chain operation of the edge blockchain node. The edge data extraction module 23 is used to parse the chain scheme of the edge blockchain node according to the cloud strategy of the edge blockchain, and push the chain scheme to the MQTT service module 24 in real time, wherein the chain scheme contains edge data information. The message subscription module 13 is used to subscribe to the chain scheme of the MQTT service module 24, and forward the chain scheme to the chain management module 14. Based on the acquired chain scheme, the chain management module uploads the edge data information to the blockchain main chain 15 for storage.
[0046] In some embodiments, the cloud-edge collaboration module 12 is used to send the edge blockchain application container image to the edge core service module 22 through the cloud-edge network channel. The cloud-edge collaboration module 12 is also used to package the edge blockchain application based on containerization technology to generate an edge blockchain application container image.
[0047] The number of edge end units may be one or more, which is not specifically limited here. This embodiment is described by taking the case where the number of edge end units is one as an example.
[0048] It should be noted that the embodiment of the present invention does not specifically limit the system architecture adopted by the cloud-edge collaboration module 12, and can be set according to actual needs. Optionally, the following description is based on the example of the cloud-edge collaboration module 12 adopting the Kubernetes architecture.
[0049] In addition, the embodiment of the present invention does not specifically limit the type of container, and can be set according to actual needs. For the convenience of description, the following description is based on the example of Docker as the type of container. Among them, Docker is an open source application container engine that allows developers to package their applications and dependent packages into a portable image, and then publish them to any popular Linux or Windows machine, and can also achieve virtualization. Different containers share the underlying operating system and hardware resources, but applications are isolated from each other, with low performance overhead and good cross-platform characteristics, truly achieving "compile once, run everywhere", greatly improving the portability of business application deployment.
[0050] In this embodiment, the edge data extraction module 23 is used to parse the on-chain scheme of the edge blockchain node according to the cloud strategy of the edge blockchain, and push the on-chain scheme to the MQTT service module 24 in real time, wherein the on-chain scheme includes edge data information. The message subscription module 13 is used to subscribe to the on-chain scheme of the MQTT service module 24, and forward the on-chain scheme to the on-chain management module 14. Based on the acquired on-chain scheme, the on-chain management module uploads the edge data information to the blockchain main chain 15 for storage, thereby solving the problem that the edge-side blockchain and the cloud-side main chain network communication cannot be established, realizing the main-side chain data interaction between the edge-side blockchain and the cloud-side main chain, and ensuring the credibility of the data.
[0051] In some embodiments, the MQTT service module includes an MQTT client and an MQTT proxy server, wherein the MQTT client is used to publish information that other clients may subscribe to, subscribe to messages published by other clients, unsubscribe or delete application messages, and disconnect from the MQTT proxy server. The MQTT proxy server is used to accept network connections from MQTT clients, accept application information published by MQTT clients, process subscription and unsubscription requests from MQTT clients, and forward application messages to subscribed MQTT clients.
[0052] Optionally, MQTT Broker can act as an MQTT proxy server to receive edge devices on the station side to subscribe to and publish messages to it; MQTT Broker can also act as an MQTT client to initiate subscriptions to edge devices.
[0053] In this embodiment, the MQTT communication protocol runs through the entire communication network. The MQTT communication protocol uses the publish and subscribe mechanism to complete information interaction and realize one-to-many information release. All business nodes in the entire network are equal, interconnected, and non-hierarchical. Ultimately, all low-voltage distribution network terminal business equipment is visible to the entire network.
[0054] In some embodiments, information exchange between the cloud unit and the edge unit is carried out in a publish and subscribe manner, and subscription and publication are based on topics.
[0055] For example, the topic includes but is not limited to: / topic version / edge device or end device ID / message execution category / message action.
[0056] Figure 2 A structural diagram of another main-side chain data interaction system provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the main chain and side chain data interaction system includes Figure 1 In addition to the various modules, the main-side chain data interaction system also includes an uplink service module 25.
[0057] Among them, the on-chain service module 25 is used to call the on-chain solution in the edge data extraction module 23, and send the on-chain solution to the on-chain management module 14; the on-chain management module 14 generates an on-chain request carrying the on-chain solution, and sends the on-chain request to the blockchain main chain 15. The blockchain main chain 15 verifies the signature of the data to be on-chain carried by the on-chain request. If the signature verification is passed, a block is generated according to the data to be on-chain, and the block is added to the blockchain main chain 15.
[0058] In this embodiment, since the on-chain service module 25 is used to call the on-chain plan in the edge data extraction module 23 and send the on-chain plan to the on-chain management module 14; the on-chain management module 14 generates an on-chain request carrying the on-chain plan, and sends the on-chain request to the blockchain main chain 15, the edge side chain can actively call the cloud main chain service to realize real-time calling operations of data from the edge side chain to the cloud main chain.
[0059] The embodiment of the present invention also provides a main-side chain data interaction method based on cloud-edge collaboration, including:
[0060] In the first step, the cloud-edge collaboration module sends the edge blockchain application container image to the edge core service module through the cloud-edge network channel.
[0061] In the second step, the edge core service module automatically deploys the edge blockchain application container image issued by the cloud-edge collaboration module to realize the chain operation of the edge blockchain nodes.
[0062] In the third step, the edge data extraction module parses the on-chain solution of the edge blockchain node according to the cloud-based strategy of the edge blockchain, and pushes the on-chain solution to the MQTT service module in real time, where the on-chain solution contains edge data information.
[0063] Step 4: The message subscription module subscribes to the uplink plan of the MQTT service module and forwards the uplink plan to the uplink management module.
[0064] Step 5: The on-chain management module uploads the edge data information to the blockchain main chain for storage based on the acquired on-chain solution.
[0065] In some embodiments, the cloud-edge collaboration module is also used to package the edge blockchain application based on containerization technology to generate an edge blockchain application container image.
[0066] In some embodiments, the main chain and side chain data interaction method further includes:
[0067] The uplink service module calls the uplink solution in the edge data extraction module and sends the uplink solution to the uplink management module;
[0068] The on-chain management module generates an on-chain request carrying the on-chain solution, and sends the on-chain request to the blockchain main chain;
[0069] The blockchain main chain verifies the signature of the data to be uploaded to the chain carried by the upload request. If the signature verification passes, a block is generated according to the data to be uploaded to the chain, and the block is added to the blockchain main chain.
[0070] An embodiment of the present invention further provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the above method. Figure 3 A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0071] like Figure 3 As shown, the device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0072] A number of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0073] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as a main-side chain data interaction method based on cloud-edge collaboration. For example, in some embodiments, the main-side chain data interaction method based on cloud-edge collaboration may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via ROM 302 and / or communication unit 309. When the computer program is loaded into RAM 303 and executed by the computing unit 301, one or more steps of the main-side chain data interaction method based on cloud-edge collaboration described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to execute the main-side chain data interaction method based on cloud-edge collaboration in any other appropriate manner (for example, by means of firmware).
[0074] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0075] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0076] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0077] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0078] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0079] Cloud computing refers to a technology system that uses the network to access a shared pool of physical or virtual resources that is elastic and scalable. Resources may include servers, operating systems, networks, software, applications, or storage devices, and can be deployed and managed in an on-demand, self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for the application of technologies such as artificial intelligence and blockchain, as well as model training.
[0080] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0081] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0082] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A main-side chain data interaction system based on cloud-edge collaboration, characterized in that: It includes a cloud unit and at least one edge unit; the cloud unit includes a cloud communication interface module, a cloud-edge collaboration module, a message subscription module, an on-chain management module and a blockchain main chain; each edge unit includes an edge communication interface module, an edge core service module, an edge data extraction module and an MQTT service module; the cloud communication interface module and the edge communication interface module are connected through a cloud-edge network channel; wherein, The cloud-edge collaboration module is used to send the edge blockchain application container image to the edge core service module through the cloud-edge network channel; The edge core service module is used to automatically deploy the edge blockchain application container image issued by the cloud-edge collaboration module to realize the chain operation of the edge blockchain node; The edge data extraction module is used to parse the on-chain scheme of the edge blockchain node according to the cloud-on-cloud strategy of the edge blockchain, and push the on-chain scheme to the MQTT service module in real time, wherein the on-chain scheme contains edge data information; The message subscription module is used to subscribe to the uplink scheme of the MQTT service module and forward the uplink scheme to the uplink management module; The on-chain management module uploads the edge data information to the blockchain main chain for storage based on the acquired on-chain solution; The main-side chain data interaction system also includes an uplink service module; wherein, The uplink service module is used to call the uplink solution in the edge data extraction module and send the uplink solution to the uplink management module; The on-chain management module generates an on-chain request carrying the on-chain solution, and sends the on-chain request to the blockchain main chain; The blockchain main chain verifies the signature of the data to be uploaded to the chain carried by the upload request. If the signature verification passes, a block is generated according to the data to be uploaded to the chain, and the block is added to the blockchain main chain.
2. The main-side chain data interaction system based on cloud-edge collaboration according to claim 1 is characterized in that: The cloud-edge collaboration module is also used to package the edge blockchain application based on containerization technology to generate an edge blockchain application container image.
3. The main-side chain data interaction system based on cloud-edge collaboration according to claim 2 is characterized in that: The MQTT service module includes an MQTT client and an MQTT proxy server. The MQTT client is used to publish information that other clients may subscribe to, subscribe to messages published by other clients, unsubscribe or delete application messages, and disconnect from the MQTT proxy server; the MQTT proxy server is used to accept network connections from MQTT clients, accept application information published by MQTT clients, process subscription and unsubscription requests from MQTT clients, and forward application messages to subscribed MQTT clients.
4. The main-side chain data interaction system based on cloud-edge collaboration according to claim 1 is characterized in that: The information exchange between the cloud unit and the edge unit is carried out in a publish and subscribe manner, and subscription and publishing are based on topics.
5. A main-side chain data interaction method based on cloud-edge collaboration, characterized in that: include: The cloud-edge collaboration module sends the edge blockchain application container image to the edge core service module through the cloud-edge network channel; The edge core service module automatically deploys the edge blockchain application container image issued by the cloud-edge collaboration module to realize the chain operation of edge blockchain nodes; The edge data extraction module parses the on-chain scheme of the edge blockchain node according to the cloud-on-cloud strategy of the edge blockchain, and pushes the on-chain scheme to the MQTT service module in real time, wherein the on-chain scheme contains edge data information; The message subscription module subscribes to the uplink scheme of the MQTT service module and forwards the uplink scheme to the uplink management module; The on-chain management module uploads the edge data information to the blockchain main chain for storage based on the acquired on-chain solution; the main-side chain data interaction method also includes: The uplink service module calls the uplink solution in the edge data extraction module and sends the uplink solution to the uplink management module; The on-chain management module generates an on-chain request carrying the on-chain solution, and sends the on-chain request to the blockchain main chain; The blockchain main chain verifies the signature of the data to be uploaded to the chain carried by the upload request. If the signature verification passes, a block is generated according to the data to be uploaded to the chain, and the block is added to the blockchain main chain.
6. The main-side chain data interaction method based on cloud-edge collaboration according to claim 5 is characterized in that: The cloud-edge collaboration module is also used to package the edge blockchain application based on containerization technology to generate an edge blockchain application container image.
7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 5 to 6.
8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 5 to 6.
