Visual deployment method and system based on block chain network

By introducing a visual deployment system and graphical interface into the blockchain network, the problems of complex deployment of blockchain networks and low resource utilization in the existing technology are solved, simplified configuration and management processes and dynamic resource adjustments are realized, and the efficiency and user experience of the system are improved.

CN120010848APending Publication Date: 2025-05-16HUANENG LANCANG RIVER HYDROPOWER CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510119418.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The deployment and management process of existing blockchain networks is complex, the operation threshold is high, making it difficult for ordinary users to get started, and the deployment configuration cannot be dynamically adjusted according to the use of host resources, resulting in waste of resources or insufficient performance.

Method used

Provides visual deployment methods and systems based on blockchain networks, and integrates a unified graphical interface, including host management, organizational management, network deployment, smart contract management and operation and maintenance monitoring modules. Simplify configuration and management processes through a graphical interface, and realize automated deployment and dynamic resource adjustment.

Benefits of technology

It reduces the complexity and operational threshold of blockchain network deployment, improves user experience and system efficiency, reduces resource waste, and ensures efficient operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010848A_ABST
    Figure CN120010848A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of block chains, and discloses a visual deployment method and system based on a block chain network. A host management module is used for managing server resources; the organization management module is used for managing organization information of participants and creating new organizations; the network deployment module sets the number of organizations and the number of endorsement nodes, uploads deployment configuration, automatically generates deployment scripts and executes the deployment process; the intelligent contract management module is used for uploading, installing, upgrading and instantiating a contract; and the operation and maintenance monitoring module is used for monitoring operation indexes of the block chain network in real time and setting an alarm mechanism. According to the method, parameters input by a user are obtained, the use condition of host resources is analyzed, a code template is modified, deployment is automatically executed, and after deployment is completed, a system displays the running state of a network in an operation and maintenance monitoring module. By providing the graphical interface and the customized deployment method, the deployment and management process of the block chain network is simplified, the operation threshold is reduced, and the deployment efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a visualization deployment method and system based on a blockchain network. Background Art

[0002] With the rapid development of blockchain technology, more and more enterprises and organizations have begun to apply blockchain technology to build alliance chain networks to achieve data sharing and security management. Blockchain technology includes cryptography, distributed systems, consensus mechanisms, smart contracts, data structures, network technology, privacy protection technology, cross-chain technology and expansion technology.

[0003] However, the existing blockchain network deployment and management process is complex, involving multiple steps and technical details, especially for alliance chain networks based on complex architectures such as Hyperledger Fabric. The configuration and deployment requires professional technical knowledge, which is difficult for ordinary users to get started. Deploying an alliance chain network requires manually editing multiple configuration files, which is cumbersome and error-prone. In addition, the lack of a unified graphical interface makes it difficult for users to intuitively manage and monitor the blockchain network. The existing deployment method fails to dynamically adjust the configuration according to the actual host resource situation, resulting in low resource utilization. Summary of the invention

[0004] The purpose of the present invention is to provide a visual deployment method and system based on a blockchain network to address the above-mentioned problems, in order to improve: the existing blockchain network deployment process is complicated, and the operation threshold is high, making it difficult for ordinary users to get started; the network deployment configuration fails to be dynamically adjusted according to the host resource usage, resulting in resource waste or insufficient performance.

[0005] The technical solution adopted by the present invention is as follows: a visual deployment system based on a blockchain network, the system integrates a unified graphical interface, and includes the following modules: a host management module, which manages server resources and is provided with an editing function, and a user can add, delete and configure server resources through a graphical interface; an organization management module, which manages the organization information of the participants and creates a new organization; a network deployment module, which sets the number of organizations and the number of endorsement nodes, uploads the deployment configuration and automatically generates a deployment script, and executes the deployment process; a smart contract management module, which is used to upload, install, upgrade and instantiate contracts; an operation and maintenance monitoring module, which is used to monitor the operation indicators of the blockchain network in real time and set an alarm mechanism, including network status, node performance and transaction throughput; wherein the host management module provides the underlying server resources for the organization management module, and the network deployment module deploys the blockchain network on the server provided by the host module; the organization management module provides the network deployment module with organization information, and the user inputs the deployment parameters in the network deployment module; the network deployment module receives the deployment parameters input by the user, and provides the blockchain network for the smart contract management module, and provides the network deployment information for the operation and maintenance monitoring module; the operation and maintenance monitoring module monitors the operation status of the smart contract provided by the server, blockchain node and transaction smart contract management module in real time.

[0006] Furthermore, the network deployment module configures the blockchain network according to the organizational information provided by the organization management module, and then deploys the blockchain network nodes on the server provided by the host management module, so that when the blockchain network is deployed, the smart contract can be correctly installed and configured, and the network deployment module provides the network deployment information to the operation and maintenance monitoring module to monitor the network status in real time.

[0007] Furthermore, a visual deployment method based on a blockchain network includes the following steps: obtaining user input parameters: the user inputs deployment parameters through the network deployment module interface form, wherein the deployment parameters include the organizations participating in the network and the number of endorsement nodes; analyzing host resource usage: the system automatically detects the resource usage of the current host in real time, including: CPU usage: used to measure the current load of the host processor; memory usage: used to display the amount of used and available memory; storage space: evaluate the remaining space of the hard disk or solid-state drive; modifying the code: according to the parameters input by the user and the host resource situation analyzed by the system, the system dynamically modifies the deployment code template and generates a deployment configuration file to ensure efficient use of resources; automatically executes deployment: after the user completes all configurations through the graphical interface, the system automatically generates and executes the deployment script to complete the construction of the blockchain network; operation monitoring and alarming: after the deployment is completed, the system displays the operation status of the network in the operation and maintenance monitoring module.

[0008] Furthermore, the obtaining of user input parameters specifically includes: on the network management page, the user first clicks to create a network, and then a form appears, and the user enters parameters as needed, including but not limited to the network name and network description, and selects the organizations participating in the network through the multi-select drop-down box. The number of endorsement nodes defaults to two, and the user changes it as needed; wherein, the organizations participating in the network in the multi-select drop-down box have been added in the organization management page.

[0009] Furthermore, the analysis of host resource usage specifically includes: after the user fills out the form and submits it, the server queries the available hosts of each organization based on the participating organizations to obtain a host list, and then allocates a specified number of endorsement nodes of each organization to the appropriate host of its own organization according to the pre-specified strategy of the platform.

[0010] It should be noted that the host list includes the usage of hardware resources such as CPU, memory, and hard disk of each host; allocation is achieved by modifying the template file, and the nodes are deployed using Docker containers. DockerCompose is used to facilitate the orchestration of containers. The so-called template file is also a Docker Compose file, in which the container name, IP address, port, MSP, etc. are default, and the container name is the name of the corresponding node.

[0011] Furthermore, the system modification code first generates corresponding configuration files according to the number of organizations and the number of endorsement nodes, and uses these configuration files to define the structure and node configuration of the network; then dynamically adjusts the resource quota of each node according to the host resource situation.

[0012] It is important to note that there are resource quotas such as CPU and memory limits.

[0013] Furthermore, the deployment script in the execution deployment includes: starting the container, starting the blockchain node and service; establishing a network connection, configuring communication between nodes, so that data can be transmitted in the network; initializing the blockchain, creating a genesis block, starting the consensus mechanism, and putting the network into an operational state; by building the physical architecture of the blockchain network, laying the foundation for subsequent transactions and data processing.

[0014] Furthermore, the operating status of the network includes: node status, which displays the online and offline status of each node, as well as potential errors or warnings; transaction throughput, which monitors the speed and efficiency of the network in processing transactions; resource utilization, which continuously tracks the usage of CPU, memory and storage to ensure stable network performance.

[0015] Furthermore, the method also includes a security and permission management mechanism, which uses the transport layer security protocol TLS to encrypt and transmit data, and provides protection for the communication security and access control of the blockchain network through JWT authentication and RBAC permission management.

[0016] It should be noted that JSON Web Token (JWT) is a token-based authentication and authorization mechanism. JWT itself contains all the information required for identity authentication, so the server does not need to store Session information. RBAC is role-based permission management.

[0017] Furthermore, in the deployment process, nodes are deployed using Docker containers. When the system assigns nodes to hosts, the server generates Docker Compose files for each node based on the IP, port, and domain name information of each organization of each host, and then starts each node container using these Docker Compose files. After the node container is started, it is necessary to join the channel and set the anchor node through a shell script. By specifying different parameters for the script, each node is added to the channel and an anchor node is set for each organization.

[0018] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0019] The present invention provides a unified graphical interface including modules such as host management, organization management, network deployment, smart contract management, authorization management and operation and maintenance monitoring by setting up a unified graphical interface, which simplifies the configuration and management process of the blockchain network, thereby lowering the operating threshold of the system and improving the user experience.

[0020] The present invention greatly shortens the time to build a blockchain network by setting up an automated deployment process and a one-click deployment function, improves the overall efficiency of the system, and dynamically adjusts the deployment configuration according to the host resource usage to reduce resource waste, thereby ensuring the efficient operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a system architecture diagram of the present invention;

[0022] Figure 2 It is a schematic diagram of the system interface of the present invention;

[0023] Among them, (a) is a schematic diagram of the interface of the host management module; (b) is a schematic diagram of the interface of the organization management module; (c) is a schematic diagram of the interface of the network deployment module; (d) is a schematic diagram of the interface of the smart contract management module; (e) is a schematic diagram of the interface of the operation and maintenance monitoring module;

[0024] Figure 3 The present invention is a flow chart of the method. DETAILED DESCRIPTION

[0025] The present invention will be described in detail below in conjunction with the accompanying drawings.

[0026] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0027] The present invention is applicable to the graphical deployment and management of consortium chain networks based on Hyperledger Fabric 1.4, aiming to simplify the configuration and deployment process of blockchain networks, improve the convenience of user operations and the scalability of the system.

[0028] like Figure 1 As shown, the present invention proposes a visual deployment system based on a blockchain network, which is provided with a host management module, an organization management module, a network deployment module, a smart contract management module and an operation and maintenance monitoring module, wherein the host management module is used to manage server resources, and users can add, delete and configure resources through the host management module;

[0029] The host management module depends on the organization management module, which manages the participating organizations;

[0030] The organization management module depends on the network deployment module. The network deployment module sets the number of organizations and endorsement nodes, uploads the deployment configuration, automatically generates the deployment script, and executes the deployment process.

[0031] The network deployment module relies on the smart contract management module and the operation and maintenance monitoring module. The smart contract management module is used to upload, install, upgrade and instantiate contracts; the operation and maintenance monitoring module is used to monitor the operating indicators of the blockchain network in real time and set up alarm mechanisms, including network status, node performance and transaction throughput information.

[0032] The unified graphical interface makes system management and monitoring more intuitive, simplifies the configuration and deployment process of the blockchain network, and improves the convenience of user operations and the scalability of the system.

[0033] like Figure 2 As shown, the system integrates a unified graphical interface. A unified architecture module of the system is set on the left side of the interface. Users can switch between various interface modules on the left side of the interface, making the operation more convenient; and each interface is equipped with corresponding operation buttons, the screen is simple, and users can quickly select and operate according to their needs.

[0034] like Figure 2 As shown in (a), the host management module has the relevant information of the host. The user can click the details and edit buttons to view and modify the host information; and the user can add the information of other hosts. The operation is simple.

[0035] like Figure 2As shown in (b), the organization management module displays the relevant information of the organization. Similarly, the details and edit buttons can be clicked to view and modify the organization information; and users can create organizations.

[0036] like Figure 2 As shown in (c), the network deployment module can create a network and set the number of organizations and the number of endorsement nodes.

[0037] like Figure 2 As shown in (d), the smart contract management module displays contract information, and users can upload, install, upgrade and instantiate contracts.

[0038] like Figure 2 As shown in (e), the operation and maintenance monitoring module is a visual display interface used to monitor the operation indicators of the blockchain network in real time and set alarm mechanisms, including network status, node performance, and transaction throughput information. The operation and maintenance monitoring module can be used to understand the detailed operation information of the blockchain network.

[0039] like Figure 3 As shown in the figure, the visual deployment method based on the blockchain network automatically adjusts the deployment configuration according to the user input parameters and the host resource usage, dynamically modifies the code template, and generates the optimal deployment plan. This mechanism can reduce resource waste and ensure the efficient operation of the blockchain network. Existing deployment methods are usually unable to dynamically adjust the configuration according to the host resources, resulting in low resource utilization.

[0040] Specifically, on the network management page, after the user clicks Create Network, a form appears and the user needs to enter some necessary parameters, including network name and description, and select the organizations participating in the network through the multi-select drop-down box (which have been added on the organization management page). The number of endorsement nodes defaults to two and can be modified as needed.

[0041] After confirming and successfully submitting the form, the server queries the available hosts of each organization based on the participating organizations (hosts are added on the host management page, and the association between organizations and hosts is established on the organization management page) to obtain a host list, which includes the usage of hardware resources such as CPU, memory, and hard disk of each host. Then, according to the pre-established strategy of the platform, the server allocates the specified number of endorsement nodes of each organization to the appropriate hosts of its own organization.

[0042] The allocation described here is achieved by modifying the template file. The nodes are deployed using Docker containers. Docker Compose is used to facilitate the orchestration of containers. The so-called template file is also a Docker Compose file, in which the container name (corresponding to the node name), IP address, port, MSP, etc. are default. In the automatic deployment process, after weighing how to allocate nodes to each host, the server will generate a Docker Compose file for each node based on the IP, port, etc. of each host, the domain name, MSP, etc. of each organization, and then use these files to start each node container through SSH or other methods.

[0043] After the node container is started, it is also necessary to join the channel and set the anchor node. These processes are implemented through shell scripts. The platform specifies different parameters for the script, adds each node to the channel, and sets the anchor node for each organization.

[0044] The automated deployment process and one-click deployment function greatly shorten the time to build the blockchain network and improve the overall efficiency. At the same time, the deployment configuration is dynamically adjusted according to the host resource usage to reduce resource waste and ensure the efficient operation of the system.

[0045] In order to enhance the security of the system, the system takes the following measures to ensure the security of the blockchain network:

[0046] (1) TLS encrypted transmission: All network communications are encrypted using the TLS protocol to prevent data from being stolen or tampered with during transmission;

[0047] (2) JWT authentication mechanism: Users need to perform JWT authentication when accessing the system to ensure that only authorized users can access system resources and prevent blockchain network information from being modified at will;

[0048] (3) Role-based access control (RBAC): The system assigns different permissions based on user roles, restricting users’ access to and operations on system resources, thereby improving system security.

[0049] Through TLS encryption and RBAC permission management, the security of blockchain network is improved and the security of data transmission and access is guaranteed.

[0050] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A visual deployment system based on blockchain network, characterized by: The system integrates a unified graphical interface, including the following modules: The host management module manages server resources and has an editing function. Users can add, delete and configure server resources through a graphical interface. Organization management module, manages the organizational information of participants and creates new organizations; The network deployment module sets the number of organizations and endorsement nodes, uploads the deployment configuration, automatically generates the deployment script, and executes the deployment process; Smart contract management module, used to upload, install, upgrade and instantiate contracts; Operation and maintenance monitoring module, which is used to monitor the operation indicators of the blockchain network in real time and set alarm mechanisms, including network status, node performance and transaction throughput; Among them, the host management module provides the underlying server resources for the organization management module, and the network deployment module deploys the blockchain network on the server provided by the host module; The organization management module provides organization information to the network deployment module, and the user inputs deployment parameters in the network deployment module; the network deployment module receives the deployment parameters input by the user, and provides the blockchain network to the smart contract management module, and provides network deployment information to the operation and maintenance monitoring module; the operation and maintenance monitoring module monitors the server, blockchain node, and transaction status in real time.

2. The visual deployment system based on blockchain network according to claim 1 is characterized in that: The network deployment module configures the blockchain network according to the organizational information provided by the organization management module, and then deploys the blockchain network nodes on the server provided by the host management module, so that when the blockchain network is deployed, the smart contract can be correctly installed and configured. The network deployment module provides the network deployment information to the operation and maintenance monitoring module to monitor the network status in real time.

3. A visual deployment method based on a blockchain network, using a visual deployment system based on a blockchain network as described in any one of claims 1-2, characterized in that: The method comprises the following steps: Obtaining user input parameters: The user inputs deployment parameters through the network deployment module interface form, wherein the deployment parameters include the organizations participating in the network and the number of endorsement nodes; Analyze host resource usage: The system automatically detects the current host resource usage in real time, including: CPU usage: used to measure the current load of the host processor; Memory usage: used to display the amount of used and available memory; Storage space: evaluate the remaining space of the hard disk or solid-state drive; Modify code: Based on the parameters input by the user and the host resource situation analyzed by the system, the system dynamically modifies the deployment code template and generates a deployment configuration file; Automatic deployment: After the user completes all configurations through the graphical interface, the system automatically generates and executes the deployment script to complete the construction of the blockchain network; Operation monitoring and alarm: After deployment is completed, the system displays the operation status of the network in the operation and maintenance monitoring module.

4. The visual deployment method based on blockchain network according to claim 3 is characterized in that: The obtaining of user input parameters specifically includes: on the network management page, the user first clicks to create a network, and then a form appears, and the user enters parameters as needed, including but not limited to the network name and network description, and selects the organization participating in the network through the multi-select drop-down box. The number of endorsement nodes defaults to two, and the user can change it as needed; Among them, the organizations participating in the network in the multi-select drop-down box have been added in the organization management page.

5. The visual deployment method based on blockchain network according to claim 3 is characterized in that: The analysis of host resource usage specifically includes: after the user fills out the form and submits it, the server queries the available hosts of each organization based on the participating organizations to obtain a host list, and then allocates the number of endorsement nodes specified by each organization to the appropriate host of the organization according to the pre-specified strategy of the platform.

6. The visual deployment method based on blockchain network according to claim 3 is characterized in that: The system modification code first generates corresponding configuration files according to the number of organizations and the number of endorsement nodes, and uses these configuration files to define the structure and node configuration of the network; then dynamically adjusts the resource quota of each node according to the host resource situation.

7. The visual deployment method based on blockchain network according to claim 3 is characterized in that: The deployment script in the execution deployment includes: Start the container, start the blockchain node and services; Establish network connections and configure communication between nodes so that data can be transmitted in the network; Initialize the blockchain, create the genesis block, start the consensus mechanism, and put the network into an operational state; By building the physical architecture of the blockchain network, we can lay the foundation for subsequent transactions and data processing.

8. The visual deployment method based on blockchain network according to claim 3 is characterized in that: The operation status of the network includes: Node status, showing the online and offline status of each node, as well as potential errors or warnings; Transaction throughput, which monitors how quickly and efficiently the network processes transactions; Resource utilization, continuously tracking CPU, memory and storage usage to ensure stable network performance.

9. The visual deployment method based on blockchain network according to claim 3 is characterized in that: The method also includes a security and authority management mechanism, which uses the transport layer security protocol TLS to encrypt and transmit data, and provides protection for the communication security and access control of the blockchain network through JWT authentication and RBAC authority management.

10. The visual deployment method based on blockchain network according to claim 7 is characterized in that: In the deployment process, nodes are deployed using Docker containers. After the system assigns nodes to hosts, the server generates Docker Compose files for each node based on the IP, port, and domain name information of each organization of each host, and then starts each node container by using these Docker Compose files. After the node container is started, you need to use the shell script to join the channel and set the anchor node. By specifying different parameters for the script, each node is added to the channel and the anchor node is set for each organization.