A method for building a blockchain network
By selecting resource servers and node servers in the blockchain network, installing infrastructure server and client software, and automating certificate creation and network startup through software instructions, the complexities of blockchain network setup and the cumbersome configuration of new nodes are solved, enabling rapid deployment and efficient management.
Patent Information
- Application Number
- CN202310004343.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-03
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2043-01-03
AI Technical Summary
The networking process of blockchain networks is complex, the process of adding new nodes is cumbersome, and it requires high technical capabilities, making it difficult to achieve rapid deployment and management.
Select one node as the blockchain resource server, install the infrastructure server and create the organization's identity and certificate. Other nodes, as node servers, install the infrastructure client and register. The resource server sends network commands through the software, and the node servers create certificates and start the network according to the commands, simplifying the certificate creation and network discovery process.
It enables rapid deployment and management of blockchain networks, reduces technical requirements, improves networking efficiency, and simplifies certificate creation and network configuration processes.
Smart Images

Figure CN116170190B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for building a blockchain network, belonging to the field of blockchain networking technology. Background Technology
[0002] Blockchain is essentially a decentralized database, or a distributed shared ledger technology. Currently, based on the access control mechanism of blockchain network nodes, blockchains are divided into public blockchains and permissioned blockchains; based on whether the entity with control over the blockchain is centralized, permissioned blockchains are further divided into consortium blockchains and private blockchains. In the process of building a consortium blockchain network, two problems are often encountered: First, the consortium blockchain needs to set up the basic blockchain environment, create identities and certificates, and configure node access for different organizations and their various node resources. This process is complex, requires highly skilled network administrators, and is prone to errors. Second, after the blockchain network is built, a series of configuration operations are required for adding new nodes, which is inconvenient for management. Summary of the Invention
[0003] The purpose of this invention is to provide a method for building a blockchain network, which solves the problems of complex blockchain network building processes and overly cumbersome configuration processes for adding new nodes.
[0004] To achieve the above objectives, the present invention includes:
[0005] The present invention provides a method for setting up a blockchain network, comprising the following steps:
[0006] 1) Select one node from the nodes to be networked as the blockchain resource server, and the remaining nodes as blockchain node servers;
[0007] 2) Install the blockchain infrastructure server on the blockchain resource server, store the tested blockchain software, and create the identity and certificate of the organization to which the blockchain node server belongs;
[0008] 3) Install the blockchain infrastructure client and blockchain software on the blockchain node server, and use the blockchain software to register your identity;
[0009] 4) After obtaining the registration information of the blockchain node server from the blockchain software, the resource server sends a network formation command;
[0010] 5) The blockchain node server receives the networking instructions, creates its own node certificate and network communication certificate according to the received networking instructions, starts the blockchain network, and completes the blockchain network networking.
[0011] This invention first selects one node from the nodes to be networked as a resource server, installs and deploys the blockchain infrastructure server, stores the blockchain software, and creates the identity and certificate of the organization to which the blockchain node server belongs. Other nodes act as node servers, install the blockchain infrastructure client, install the blockchain software, and register. The server, based on the client's registration information, begins sending network formation commands. Upon receiving these commands, the node servers create their own certificates, start the blockchain network, and complete the network formation. The network formation process is conducted through the blockchain software, and the node servers can automatically register the blockchain software. The process is simple, convenient, and fast, requiring no highly skilled personnel to quickly deploy an initial blockchain network, greatly improving the efficiency of blockchain network installation.
[0012] Furthermore, step 2) also includes storing the created organization's identity and certificate in the platform database.
[0013] Furthermore, the blockchain node server needs to obtain the certificate of its affiliated organization from the platform database when creating its own node certificate.
[0014] This invention stores the created organization identity and certificate in the platform database for easy management. It also makes it convenient for node servers to obtain the organization certificate when creating their own node certificates. The node server can automatically create certificates based on the organization certificate. The process is simple and easy to implement, and it is less likely to encounter certificate creation errors.
[0015] Furthermore, in step 2), after installing the blockchain infrastructure server and storing the tested blockchain software, the blockchain listening port is opened.
[0016] Furthermore, after installing the blockchain infrastructure client and registering the blockchain software, the blockchain listening port is opened.
[0017] In this invention, the infrastructure server opens a blockchain listening port to monitor the networks of each node server and its own network, enabling automatic discovery of node server networks, which is more convenient than existing technologies. The infrastructure client also opens its blockchain listening port after registering the blockchain software, allowing it to automatically discover the network after the resource server sends a network formation command, thus improving network formation efficiency.
[0018] Furthermore, the registration information in step 4) includes the customer identifier, organization name, and number of node servers.
[0019] Furthermore, when a new node needs to join the blockchain network, a client is installed on the server of the node to be joined to pull the blockchain software to complete the registration, and the network is formed according to steps 4) and 5).
[0020] When a new node joins the blockchain network, the client server installs and retrieves the blockchain software to complete registration. The resource server automatically discovers the registration information of the node server and sends a network formation command. The node server receives the network formation command and creates its own node certificate and network communication certificate based on the received command, then starts the blockchain network and successfully joins the network. Compared to existing technologies, adding a new node to the network can be achieved through blockchain software, and creating its own node certificate does not require a series of configuration operations. This also simplifies subsequent management by network administrators. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of the blockchain network setup process in an embodiment of the invention. Detailed Implementation
[0022] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0023] A specific embodiment of a blockchain network topology method:
[0024] From the nodes to be networked, one node is selected as the blockchain resource server, and the other nodes are designated as blockchain node servers. A blockchain infrastructure server is deployed on the resource server, and an organizational certificate is created. A blockchain infrastructure client is installed on the node resource server, and the blockchain software is retrieved. The node servers register using the installed infrastructure client and blockchain software. The resource server obtains the node server's registration information through the installed server and blockchain software, and sends network formation commands and parameters to the corresponding node servers based on the registration information. The node servers manage their organizational certificates according to the received commands and parameters, create their own node certificates, and start the blockchain network, thus achieving network formation.
[0025] In this invention, the number of nodes to be networked is at least four. It can be multiple nodes across multiple organizations, or a single node within a single organization. The following example uses four nodes for illustration. Figure 1 As shown:
[0026] 1. Select the blockchain resource server and the blockchain node server;
[0027] For a set of blank server resources to be networked (server resources: can be physical machines, virtual machines, or cloud servers), select one as a blockchain resource server and the other three as blockchain node servers. The three blockchain node servers are named blockchain node server 1, blockchain node server 2, and blockchain node server 3, respectively. Blockchain node server 1 is the node of organization 1, and blockchain node server 2 and blockchain node server 3 are nodes on organization 2, respectively called node 1 of organization 2 and node of organization 2.
[0028] 2. Deploy the blockchain infrastructure server on the resource server, store the blockchain software, and complete the registration service for the resource server;
[0029] First, the resource server checks the blockchain infrastructure environment to see if it meets the installation requirements. If it does, the tested blockchain software is stored on the resource server. The identity and certificate of the organization are created. The blockchain software obtains information such as the organization's name, domain name, and affiliated institution, and creates an organization certificate using a certificate service suite. There can be one or more organizations; in this embodiment, two organizations are described. Therefore, the identity and certificate of organization 1 and organization 2 need to be created, and the relevant data, such as the organization's identity and certificate, are pushed to the platform database. Then, the resource server configures the blockchain infrastructure service port, starts the service, and installs the blockchain infrastructure server on the resource server. The server completes the node's information registration. After registration, the resource server opens the blockchain network listening port to monitor its own network status. If the basic environment requirements are not met, the blockchain infrastructure server cannot be installed.
[0030] The blockchain infrastructure server is an HTTP protocol service that interacts with resource servers to obtain basic information about the resource services and complete registration. This basic information about the resource servers is then stored in the database of the blockchain software platform.
[0031] 3. Install the blockchain infrastructure client on the node server, pull the blockchain software, and register the service;
[0032] Each node server needs to install a blockchain infrastructure client, which is responsible for communicating with the blockchain infrastructure server and monitoring the blockchain network status of the node server. The process of installing the blockchain infrastructure client is the same for each node server. During installation, the system first checks if the blockchain infrastructure environment exists (i.e., whether the client can be installed). If the blockchain infrastructure environment exists, it pulls the blockchain resource software from the server, the node server accesses the blockchain infrastructure access port to ensure smooth network connectivity, installs the blockchain infrastructure client on the node server, and completes the node information registration. After registration, the node server opens its blockchain network listening port to monitor the network status of its own network server. If the infrastructure environment does not exist, the blockchain infrastructure client cannot be installed.
[0033] 4. The resource server obtains the registration information of the node server through the installed server-side and blockchain software, and sends network configuration instructions and parameters to the corresponding node server according to the registration information;
[0034] In this invention, the blockchain infrastructure server of the resource server receives the registration information of three node servers through the blockchain software, automatically discovers the blockchain node service, and identifies each node server based on three parameters: user identifier, organization name, and number of node servers when registering the platform software. Then, it sends networking instructions and customer identifier and organization parameters to each node server in sequence.
[0035] 5. The node server receives the networking instructions and parameters from the server, configures them, manages certificates, and starts the blockchain network to complete the blockchain networking;
[0036] Each node server configures its own parameters and manages and creates certificates based on the network formation instructions and parameters such as customer identifier, organization name, and identifiers of other node servers under the organization sent by the server. Each node server starts the blockchain network, the infrastructure server detects the network, and the blockchain network formation task is completed.
[0037] In this embodiment, the blockchain node server 1 configures, manages, and views the identity and certificate of the organization 1 based on the networking instructions, customer identifier, and organization 1 parameters sent by the infrastructure server. Based on the identity and certificate of the organization 1, it generates its own node server identity and certificate and creates a TLS (Transport Layer Security) network communication certificate through the certificate service suite. The TLS network communication certificate is used to verify the identity of the server in the HTTPS protocol and is issued by an authority CA (Certificate Authority). Blockchain node server 2 configures, manages, and views the identity and certificate of organization 2 based on the network configuration instructions, customer identifier, organization 2, and parameters of blockchain node server 3 under organization 2 sent by the infrastructure server. Based on the identity and certificate of organization 2, it generates its own node 1's identity and certificate and creates a TLS network communication certificate through the certificate service suite. Blockchain node server 3 configures, manages, and views the identity and certificate of organization 2 based on the network configuration instructions, customer identifier, organization 2, and parameters of node server 2 under organization 2 sent by the infrastructure server. Based on the identity and certificate of organization 2, it generates its own node 2's identity and certificate and creates a TLS network communication certificate through the certificate suite. All three node servers start the blockchain network, the infrastructure server detects the network, and the blockchain network configuration task is completed.
[0038] For the case of adding new nodes, it is only necessary to install the client on the new node server to pull the blockchain software and complete the registration. After the server obtains the registration information, it sends the network formation command and organizational parameters. After receiving the command, the new node server manages the organizational certificate and creates its own node certificate, and then starts the blockchain network to complete the blockchain network formation.
[0039] Based on the above process, the network setup process is simplified for different nodes of different organizations. This invention can automatically create certificates based on parameters and push relevant data to the platform, eliminating the complex steps of certificate creation. This invention completes the networking of resource servers and node servers through blockchain software, which can quickly deploy an initial blockchain network without requiring highly skilled installers, thus improving the efficiency of blockchain networking.
Claims
1. A method for forming a blockchain network, characterized in that, Includes the following steps: 1) Select one node from the nodes to be networked as the blockchain resource server, and the remaining nodes as blockchain node servers; 2) The blockchain resource server detects whether the blockchain infrastructure environment meets the installation requirements. If it does, the tested blockchain software is stored on the blockchain resource server. The identity and certificate of the organization to which each blockchain node server belongs are created and pushed to the platform database. The blockchain resource server configures the blockchain infrastructure service port, starts the service, installs the blockchain infrastructure server on the blockchain resource server, and completes the information registration of the blockchain resource server through the server. After registration, the blockchain resource server opens the blockchain network listening port to listen to the network status of its own server. 3) Detect whether the blockchain infrastructure environment exists. If it exists, pull the blockchain resource software from the server. The blockchain node server accesses the access port of the blockchain infrastructure to ensure smooth basic network communication. Install the blockchain infrastructure client on the blockchain node server and complete the node information registration of the client. After registration, the blockchain node server opens the blockchain network listening port to listen to the network status of its own network server. 4) After obtaining the registration information of the blockchain node server from the blockchain software, the resource server sends networking instructions, customer identifiers, and organizational parameters; 5) The blockchain node server receives the network formation instructions, customer identifiers and organizational parameters, and configures its own parameters and creates its own node certificate and network communication certificate according to the received network formation instructions, customer identifiers and organizational parameters, starts the blockchain network, and completes the blockchain network formation.
2. The blockchain network formation method according to claim 1, characterized in that, When creating its own node certificate, the blockchain node server retrieves the certificate of its affiliated organization from the platform database and generates its own node certificate and network communication certificate based on the certificate of its affiliated organization.
3. The blockchain network formation method according to claim 1, characterized in that, Organizational parameters include the organization name and the identification information of each node server under the organization.
4. The blockchain network formation method according to claim 1, characterized in that, The registration information in step 4) includes the customer identifier, organization name, and number of node servers.
5. The blockchain network formation method according to claim 1, characterized in that, When a new node needs to join the blockchain network, a client is installed on the server of the node to be joined to pull the blockchain software to complete the registration, and the network is formed according to steps 4) and 5).
Citation Information
Patent Citations
Method and device for deploying blockchain network and computer storage medium
CN108305072A
Block chain network deployment control method and device, equipment and medium
CN110516007A