Blockchain networking method, device, equipment and storage medium

By generating and automatically deploying configuration files, the problems of high error rates and data leakage during the initialization process of the blockchain network are solved, improving efficiency and security.

CN116208477BActive Publication Date: 2024-08-27CHENGDU PRIME STARK TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310266044.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2024-08-27
Estimated Expiration
2043-03-20

AI Technical Summary

Technical Problem

There are high error rates and heavy workloads during the initialization process of the blockchain network, as well as the risk of private data leakage, which affects the efficiency and security of the network.

Method used

Provide a blockchain networking method that generates configuration files for the target organization and uses the management platform to automatically deploy the blockchain network, reducing human participation and ensuring data security.

Benefits of technology

It improves the efficiency and accuracy of blockchain network initialization, reduces the risk of human error and data leakage, and achieves a safer deployment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208477B
    Figure CN116208477B
Patent Text Reader

Abstract

The present invention belongs to the field of blockchain technology, solves the problem of how to improve the efficiency and data security of network initialization of institutions in blockchain networks in the prior art, and provides a blockchain networking method, device, equipment and storage medium. It includes inputting the target institution's institutional information on the target institution side and generating a configuration file required for deploying the blockchain, the configuration file is generated by a management platform for institutional deployment of blockchain for network initialization, the management platform is deployed on the target institution side, and then the configuration file is run to complete the blockchain deployment; the present invention can ensure that the configuration files required for blockchain deployment are all automatically completed by the software program on the target institution side, without the need for operation and maintenance personnel to participate in the configuration file production or data migration, improve the efficiency and accuracy of blockchain network initialization, and at the same time prevent the data leakage problem of the target institution caused by human factors.
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 blockchain networking method, device, equipment and storage medium. Background Art

[0002] Blockchain technology is built on a transmission network (also called a blockchain network). The distributed node devices in the transmission network (hereinafter referred to as nodes) run blockchain programs to generate block data based on preset consensus strategies, and use chain data structures to verify and store block data, ultimately realizing a data tamper-proof mechanism, providing a new, secure and reliable technical approach for business development.

[0003] At present, the alliance chain in the blockchain requires the deployment personnel to configure a lot of complex data during the network initialization process. Moreover, in actual business scenarios, the deployment organizations of the blockchain may be in different organization computer rooms. During the deployment process, the deployment personnel need to copy data from different organization computer rooms to build the network. This leads to a high error rate and a large workload in the network initialization process. At the same time, since the deployment personnel rely on manual initialization, the private data such as the secret key of the blockchain network is at risk of human leakage, which is contrary to the purpose of blockchain technology. Therefore, how to efficiently and securely complete the network initialization of each organization or node in the alliance chain is an urgent problem to be solved. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide a blockchain networking method, apparatus, device and storage medium to solve the problem of how to improve the efficiency and data security of network initialization of institutions in the blockchain network in the prior art.

[0005] The technical solution adopted by the present invention is:

[0006] On the one hand, the present invention provides a blockchain networking method, which sets up a management platform for an organization to deploy a blockchain, and the management platform is used for the organization to initialize the network, and the method includes:

[0007] In response to the organization information input by the target organization, obtaining the organization attributes of the target organization, wherein the organization attributes include creating a new blockchain and joining a specified blockchain;

[0008] Generating a configuration file of the target organization at the target organization side according to the organization information and the organization attributes, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes;

[0009] According to each of the configuration files, a blockchain network is deployed for the target institution.

[0010] Preferably, in response to the organization information input by the target organization, the organization attributes of the target organization are obtained, wherein the organization attributes include creating a new blockchain and joining a specified blockchain, including:

[0011] Entering the institution information into the management platform;

[0012] According to the organization information, the organization attributes corresponding to the target organization pre-stored in the management platform are retrieved.

[0013] Preferably, the management platform is deployed at the edge side where each of the target institutions is located, and / or the management platform is deployed at a trusted third-party institution.

[0014] Preferably, if the target organization is a newly-built blockchain, the configuration file of the target organization is generated on the target organization side according to the organization information and the organization attributes, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes and includes:

[0015] Get the first node number corresponding to the minimum number of nodes required to create a blockchain;

[0016] Generate N configuration files according to the organization information and the number of the first nodes;

[0017] Wherein, N≥the number of the first nodes, and N is a positive integer.

[0018] Preferably, deploying a blockchain network for the target institution on the target institution side according to each of the configuration files includes:

[0019] Generate a genesis file at the target institution side according to the institution attributes and the institution information;

[0020] Generate N configuration files according to the organization information;

[0021] Establishing a blockchain based on the target organization according to the genesis file and the N configuration files;

[0022] Among them, N ≥ the minimum number of nodes required to establish a blockchain, and N is a positive integer.

[0023] Preferably, generating N configuration files according to the organization information includes:

[0024] Obtain the number of third nodes corresponding to the institution information and the number of first nodes corresponding to the minimum number of nodes required to create a blockchain;

[0025] Based on the comparison result of the first number of nodes and the third number of nodes, and according to the organization information, generate N of the configuration files;

[0026] If the number of the first nodes is greater than the number of the third nodes, N is equal to the number of the first nodes; otherwise, N is equal to the number of the third nodes.

[0027] Preferably, if the target organization is to join a designated blockchain, the step of deploying a blockchain network for the target organization on the target organization side according to each of the configuration files includes:

[0028] Generate M configuration files according to the organization information;

[0029] Run M of the configuration files and deploy M blockchain nodes on the target institution side;

[0030] On the networking organization side, running the identity information file to load the identity information of the target organization into the blockchain;

[0031] Wherein, M≥1, and M is a positive integer.

[0032] On the other hand, the present invention also provides a blockchain networking device, which is used to set up a management platform for an organization to deploy a blockchain. The management platform is used for the organization to initialize the network, including:

[0033] Parameter acquisition module: used to obtain the institution attributes of the target institution in response to the institution information input by the target institution, wherein the institution attributes include creating a new blockchain and joining a specified blockchain;

[0034] A parameter processing module: used for generating a configuration file of the target organization at the target organization side according to the organization information and the organization attributes, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes;

[0035] Blockchain deployment module: used to deploy a blockchain network for the target organization on the target organization side according to each of the configuration files.

[0036] On the other hand, the present invention further provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, any of the above-mentioned methods is implemented.

[0037] On the other hand, the present invention further provides a medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, any of the above methods is implemented.

[0038] In summary, the beneficial effects of the present invention are as follows:

[0039] The blockchain networking method, device, equipment and storage medium provided by the present invention include inputting the target organization's organization information on the target organization side and generating a configuration file required for deploying the blockchain, the configuration file is generated by a management platform used for the organization to deploy the blockchain for network initialization, the management platform is deployed on the target organization side, or the computer of the target organization can remotely log in to the management platform through a designated interface, download the configuration file from the management platform and run the configuration file to complete the blockchain deployment; the present invention can ensure that the configuration files required for blockchain deployment are all automatically completed by the software program on the target organization side, without the need for operation and maintenance personnel to participate in the configuration file production or data migration, thereby improving the efficiency and accuracy of blockchain network initialization, and at the same time preventing data leakage problems of the target organization caused by human factors. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0041] Figure 1 A schematic diagram of the connection relationship between blocks in the blockchain;

[0042] Figure 2 This is a flow chart of a method for obtaining a blockchain network in Embodiment 1 of the present invention;

[0043] Figure 3 This is a schematic diagram of a process for obtaining the organization attributes of a target organization in Embodiment 1 of the present invention;

[0044] Figure 4 A schematic diagram of a process for obtaining and generating configuration files for N nodes in Embodiment 1 of the present invention;

[0045] Figure 5 This is a schematic diagram of a process for obtaining and generating configuration files for M nodes in Embodiment 1 of the present invention;

[0046] Figure 6 This is a schematic diagram of the process of obtaining and building a blockchain in Example 1 of the present invention;

[0047] Figure 7 This is a schematic diagram of the process of obtaining the target organization to join the blockchain in Example 1 of the present invention;

[0048] Figure 8 This is a schematic diagram of the structure of the blockchain networking device in Example 2 of the present invention;

[0049] Fig. 9 Schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the various features of the present invention and the embodiments can be combined with each other, all within the protection scope of the present invention.

[0051] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks (i.e. blocks or data blocks) generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0052] A blockchain network may include multiple nodes, and the multiple nodes may be the various clients that form the blockchain network. Each node may receive input information during normal operation, and maintain the shared data in the blockchain network based on the received input information. In order to ensure information intercommunication within the blockchain network, an information connection may exist between each node in the blockchain network, and information may be transmitted between nodes through the above information connection. For example, when any node in the blockchain network receives input information, other nodes in the blockchain network obtain the input information according to the consensus algorithm, and store the input information as shared data, so that the data stored on all nodes in the blockchain network are consistent.

[0053] Each node in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 1 As shown, the blockchain is composed of multiple blocks. The genesis block includes a block header and a block body. The block header stores input information feature values, version number, timestamp, and difficulty value, etc., and the block body stores input information. The next block of the genesis block takes the genesis block as the parent block. The next block also includes a block header and a block body. The block header stores the input information feature value of the current block, the block header feature value, version number, timestamp, and difficulty value of the parent block, and so on. The block data stored in each block in the blockchain is associated with the block data stored in the parent block, thereby ensuring the security of the input information in the block.

[0054] Each node in the blockchain network can be a server or a terminal device. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal device can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. Each node can be directly or indirectly connected by wired or wireless communication, and this application is not limited here.

[0055] Example 1

[0056] See also Figure 2 , Figure 2 The blockchain networking method in Embodiment 1 of the present invention is to set up a management platform for an organization to deploy a blockchain, and the management platform is used for the organization to initialize the network. The method includes:

[0057] S1: In response to the organization information input by the target organization, obtaining the organization attributes of the target organization, wherein the organization attributes include creating a new blockchain and joining a specified blockchain;

[0058] Specifically, when an institution needs to deploy a blockchain, it enters its institutional information into the management platform, and the management platform generates the configuration file required for deploying the blockchain. The institutional attributes include networking categories and networking methods: networking categories include creating a new blockchain and joining a blockchain, and networking methods include single-institution networking and multi-institution networking; that is, a single-institution creating a new blockchain, multiple-institution creating a new blockchain, a single-institution joining a blockchain, and multiple-institution joining a blockchain. Among them, multiple-institution joining a blockchain specifically refers to when multiple institutions create a new blockchain, other institutions that do not deploy the genesis block join the blockchain, such as institution A, institution B, institution C, and institution D. According to business needs, a blockchain M is established. Institution A, institution B, institution C, and institution D agree that institution A, as the networking institution, deploys the genesis block, and institution B, institution C, and institution D simultaneously deploy their respective nodes. For different institutional attributes, the management platform executes the corresponding blockchain deployment program and generates corresponding configuration files.

[0059] For ease of understanding, the target organization of a newly created blockchain is recorded as the first organization, and the target organization that joins the blockchain is recorded as a non-first organization, that is, the networking organization of the blockchain is recorded as the first organization, and other organizations are non-first organizations. For example, organization A mentioned above is the first organization, and organizations B, C, and D are non-first organizations. If the target organization is the first organization of the blockchain, that is, a blockchain is created based on the target organization, then the number of nodes of the target organization cannot be less than the minimum number of nodes required to create the blockchain. If the target organization is a non-first organization of the blockchain, there is no limit on the number of nodes, and the number of nodes is set according to its business agreement or authority.

[0060] S2: generating a configuration file of the target organization at the target organization side according to the organization information and the organization attributes, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes;

[0061] Specifically, the configuration file includes a node configuration file and a networking file. The networking file is divided into a genesis file corresponding to a newly created blockchain and an identity information file corresponding to joining a specified blockchain according to the networking category; if the target organization belongs to a networking organization of a single organization or a multi-organization network (the above-mentioned organization A is a networking organization), the generated configuration file includes a node configuration file and a genesis file; if the target organization is a member organization of a single organization network (the above-mentioned organizations B, C and D are member organizations), the generated configuration file includes a node configuration file and an identity information file. The node configuration file is directly run after being downloaded on the member organization side, thereby completing the node deployment on the member organization side; the identity information file is sent directly or indirectly to the networking organization through a URL link, and the identity information file is run on the networking organization side to complete the loading of the blockchain information of the target organization.

[0062] S3: Deploy a blockchain network for the target organization based on each of the configuration files.

[0063] Specifically, a configuration file is generated on the edge side where the target organization is located, and the deployment personnel directly download the configuration file required for network initialization on the target organization side to deploy the blockchain of the target organization. This can prevent the deployment personnel from contacting the secret key and organization information of the target organization, reduce human participation in the network initialization process, avoid the leakage of organization information and generated configuration file information, and improve the security of organization data.

[0064] Among them, generating the configuration file required for blockchain deployment on the edge side where the target organization is located includes: the management platform is directly deployed on the edge side of the target organization, and / or the management platform is arranged in a third-party organization, and the management platform can be directly accessed in the target organization through the provided port.

[0065] In one embodiment, see Figure 3 , the S1 comprises:

[0066] S11: Entering the organization information into the management platform;

[0067] S12: According to the organization information, retrieve the organization attributes corresponding to the target organization pre-stored in the management platform.

[0068] Specifically, in order to improve the network initialization efficiency and security when the target organization creates a blockchain or joins a blockchain, the management platform is set up. When the target organization needs to form a blockchain network or join a specified blockchain network, the organization information of the target organization is entered into the management platform. The organization information includes basic information and node information. The basic information includes: the name of the organization, the unique code and the maximum number of nodes to be managed on the blockchain, etc. The node information includes: the link address, port and consensus port of the node, etc. After receiving the organization information of the blockchain deployment request of the target organization, the organization attributes selected by the target organization at the time of login or the organization attributes preset by the management platform are retrieved. In one embodiment, the management platform is deployed on the edge side where each of the target organizations is located.

[0069] Specifically, the management platform is used to assist organizations in initializing the network when they are established or join a blockchain. The management platform does not belong to the blockchain, that is, the management platform does not run any nodes of the blockchain; the functions of the management platform include: storing the address information of each blockchain organization, generating URL links, generating genesis files, node configuration files, and identity information files; setting the management platform on the edge side where the blockchain organization is located, and generating the configuration files required for network initialization by running the built-in program of the management platform. Deployers only need to download the files required for network initialization from the management platform on the organization side of the blockchain to be deployed to complete the blockchain deployment, reducing the human participation of deployment personnel in the files required for network initialization. For example, the key pair required for the organization to join the blockchain is directly generated and saved by the management platform on the organization side, completely isolating the risk of data leakage caused by the deployment personnel obtaining the secret keys, thereby improving data security.

[0070] Among them, the genesis file is used when the target organization deploys the blockchain as a new blockchain, and the target organization runs the genesis file to generate the genesis block of the blockchain. The identity configuration parameters are used when the target organization deploys the blockchain to join the specified blockchain, and the target organization sends the identity configuration parameters to the networking organization for identity authentication and storage, so that the target organization can conduct transactions through the blockchain (that is, the target organization is determined to have successfully joined the blockchain only after passing the identity authentication and storing the identity configuration parameters on the blockchain). The node configuration file is used for the organization to create a blockchain node; the node configuration parameters include: identity key, identity certificate, key type, data storage path, genesis block path, log path, service port, node name, organization ID, node type, encryption key, link address, TLS private key, TLS certificate, same-identity address, same-identity node address, seed node address; identity configuration parameters include: identity certificate, key type, node name, organization ID, node type, link address, TLS certificate, same-identity address, same-identity node address, seed node address.

[0071] In one embodiment, the management platform may also be deployed on the side of a trusted third-party organization.

[0072] Specifically, the management platform can also be deployed on the edge side where the trusted third-party organization is located, including: the first deployment method and the second deployment method. The first deployment method is to deploy the management platform only in the third-party organization. The second deployment method is to deploy the management platform in all blockchain organizations and also in the third-party organization. If it is the first deployment method, the deployment personnel enter the organization information by remotely logging into the management platform to obtain the files required for network initialization. At the same time, using a third party to store the address information of each organization can avoid the exposure of the address of the networking organization or the inviting organization. For example, if organization A invites organization B to join the blockchain, if organization A directly sends the URL of organization A to organization B, then organization B will be able to know the exact location of organization A. If organization There is no corresponding URL in the invitation information sent by A to organization B. Instead, when applying to join the blockchain, organization B submits an application to a third-party management platform. The management platform verifies the application information and sends a URL link to organization B if it is approved. The URL link can be the location link of organization A or the location link of other institutions already on the blockchain, so as to hide the address of the inviting institution or the networking institution, thereby avoiding data security issues caused by the transaction data being reversely inferred by other institutions when the blockchain institution conducts transactions. If it is the second deployment method, the target institution generates the configuration file required to deploy the blockchain on its own deployed management platform. The third-party institution is only used to store the address information of each institution and provide a URL link to the institution newly joining the blockchain.

[0073] In one embodiment, see Figure 4 If the target organization is a newly built blockchain, S2 includes:

[0074] S21: Obtain the first node number corresponding to the minimum number of nodes required to create a blockchain;

[0075] S22: Generate N configuration files according to the organization information and the number of the first nodes;

[0076] Wherein, N≥the number of the first nodes, and N is a positive integer.

[0077] Specifically, when the target organization's organization information is entered into the management platform, the organization attributes of the target organization are confirmed to determine whether the target organization is the first organization of the blockchain. If it is the first organization, the process of creating the blockchain is entered. First, the node quantity information in the organization information is determined. If the number of nodes to be configured by the organization is less than the minimum number of nodes required to create a blockchain, the management platform outputs a configuration file for the first number of nodes for the target organization, and the number of nodes used for configuration is the first number of nodes; if the number of nodes N to be configured by the organization is greater than or equal to the first number of nodes, the management platform outputs N configuration files to configure N nodes in the target organization.

[0078] Among them, the method of confirming whether the target organization is the first organization of the blockchain includes: setting the organization attribute option on the login page of the management platform, the deployment personnel deploying the management platform to the computer room of the target organization, the technical personnel of the target organization entering the organization information into the management platform, and selecting the organization attributes; dividing the management platform into a first type of platform for blockchain creation and a second type of platform for joining the blockchain according to the organization attributes; the deployment personnel directly deploy the corresponding management platform to the computer room of the target organization according to the organization attributes of the target organization, and then the technical personnel of the target organization enter the organization information of the target organization.

[0079] In one embodiment, see Figure 5 If the target organization is to join a designated blockchain, S2 includes:

[0080] S23: Obtain the number of second nodes corresponding to the authority information of the target organization;

[0081] S24: Generate M configuration files according to the organization information and the number of the second nodes;

[0082] Wherein, M is equal to the number of the second nodes, and is a positive integer ≥1.

[0083] Specifically, if the blockchain that the target organization needs to deploy is an existing blockchain, the number of nodes M that the target organization is allowed to manage is determined based on the target organization's organizational information and the target organization's authority information, and then M configuration files are generated based on the management platform.

[0084] In one embodiment, see Figure 6 If the target organization is a newly built blockchain, S3 includes:

[0085] S31: Generate a genesis block on the target institution side according to the institution attributes and the institution information;

[0086] S32: Generate N configuration files according to the organization information;

[0087] S33: Establishing a blockchain based on the target organization according to the genesis block and the N configuration files;

[0088] Among them, N ≥ the minimum number of nodes required to establish a blockchain, and N is a positive integer.

[0089] Specifically, if the blockchain deployed by the target organization is a newly built blockchain, the blockchain deployment of the target organization includes node deployment and creation of the genesis block; that is, the management platform outputs the genesis file and the node configuration file based on the organization information entered by the target organization, and the deployer downloads the node configuration file and the genesis file and then completes the creation of the blockchain in the computer room of the target organization.

[0090] In one embodiment, the S31 includes:

[0091] S311: Retrieve the creation strategy of the genesis block according to the mechanism attribute;

[0092] S312: Generate a creation file according to the creation strategy and the organization information;

[0093] S313: Download and run the genesis file to generate the genesis block on the target institution side.

[0094] Specifically, when the target organization is the first organization, the creation strategy of the handed-down file configuration is selected, and the preset program corresponding to the creation strategy is run. The management platform generates the TLS root certificate, CV certificate, and certificate root certificate of the target organization according to the organization information, and then generates a genesis file (configuration file of the genesis block); the deployment personnel downloads and runs the genesis file to complete the establishment of the genesis block of the blockchain deployment; it should be noted that downloading the genesis file means that the deployment personnel downloads it from the management platform deployed in the target organization to realize the edge-end manufacturing and application of the blockchain genesis file.

[0095] In one embodiment, the S32 includes:

[0096] S321: Obtain the number of third nodes corresponding to the institution information and the number of first nodes corresponding to the minimum number of nodes required to create a blockchain;

[0097] S322: Based on the comparison result of the first number of nodes and the third number of nodes, generate N configuration files according to the organization information;

[0098] If the number of the first nodes is greater than the number of the third nodes, N is equal to the number of the first nodes; otherwise, N is equal to the number of the third nodes.

[0099] Specifically, when the management platform configures a node configuration file for the target organization, it compares the third node number requested in the entered organization information with the first node number. If the third node number is less than the first node number, a node configuration file for the first node number is generated; if the third node number is greater than the first node number, a node configuration file for the third node number is generated. The number of nodes configured for the first node number is a fixed value, that is, under the same blockchain creation strategy, the first node number is a fixed value, such as: 3 nodes, 4 nodes; the number of nodes configured for the third node number is adapted to the authority of the target organization, that is, within the maximum number of nodes that the organization can create as allowed by the blockchain creation strategy, the organization can configure any number of nodes according to its own needs.

[0100] In one embodiment, see Figure 7If the target organization is to join a specific blockchain, S3 includes:

[0101] S34: Generate M configuration files according to the organization information;

[0102] S35: Run M of the configuration files and deploy M blockchain nodes on the target institution side;

[0103] S36: On the networking organization side, running the identity information file to load the identity information of the target organization into the blockchain;

[0104] Wherein, M≥1, and M is a positive integer.

[0105] Specifically, when the target organization's organizational attribute is not the first organization, the target organization is added to the corresponding blockchain, and M configuration files corresponding to the number of nodes are generated according to the entered organizational information. The networking organization adds the target organization's node information to the blockchain according to the configuration files. The deployment personnel runs the M configuration files, configures M nodes in the target organization, and completes the blockchain deployment of the target organization.

[0106] In one embodiment, the S35 includes:

[0107] S351: Generate N node configuration files for deploying blockchain nodes of the target organization according to the organization information;

[0108] S352: Download the node configuration file on the target institution side to complete the blockchain node deployment on the target institution side.

[0109] In one embodiment, the S36 includes:

[0110] S361: Desensitize the sensitive data of the node configuration file to generate an identity information file for the target organization's networking request;

[0111] S362: Send the identity configuration information to the networking organization to complete the blockchain network deployment of the target organization.

[0112] Specifically, the management platform generates N node configuration files based on the entered organization information, and after desensitizing the sensitive data in the node configuration files, generates corresponding identity information files, and transmits the identity information files to the networking organization. At the same time, the deployment personnel download the node configuration files from the management platform for node deployment; after receiving the identity configuration information, the networking organization enters it into the blockchain, thereby completing the blockchain deployment of the target organization.

[0113] In one embodiment, the S362 includes:

[0114] S3621: Obtain invitation information of the target organization to join the blockchain, wherein the invitation information includes a URL link required for blockchain networking;

[0115] S3622: Send the identity information file to the networking organization through the URL link of the invitation information;

[0116] S3623: Based on the identity information file, the identity information file is written into the blockchain in the networking organization.

[0117] Specifically, the target organization needs to be invited by an existing organization to join the blockchain, which improves the security of the blockchain network and reduces the risk of malicious attacks on the blockchain. The invitation information includes a URL link for the target organization to send identity configuration information to the networking organization.

[0118] In one embodiment, if the target organization is a subordinate organization of an existing blockchain organization, sending the identity information file to the networking organization includes:

[0119] Constructing a URL link between the target organization and its superior organization according to the pre-stored address information of the superior organization of the target organization;

[0120] According to the constructed URL link, the identity information file is sent to the networking organization through the superior organization.

[0121] Specifically, the URL link in the invitation information can be an already determined network link or the address information of the target organization to create the URL link; for example, if the target organization's superior organization already exists in the blockchain to be joined by the target organization, then a URL link between the target organization and its superior organization is directly created, and then the identity information file is sent to the superior organization, which then sends the identity information file to the blockchain's networking organization. This method can prevent the invitation organization's network address from being leaked and reduce the amount of data processing in the blockchain. If the target organization's superior organization exists in the blockchain, then the superior organization is preferably used as the invitation organization of the target organization.

[0122] In one embodiment, if the target organization is not a subordinate organization of an existing blockchain organization, sending the identity information file to the networking organization includes:

[0123] Sending a networking request of the target organization to the first management platform;

[0124] According to the networking request, construct a URL link and send it to the second management platform;

[0125] According to the URL link, sending the identity information file to the networking organization;

[0126] Among them, the first management platform is set on the side of the trusted third-party organization, and is a management platform for maintaining the basic information of the organization in the blockchain network, and the second management platform is the management platform on the side of the target organization.

[0127] Specifically, if the target organization is not a subordinate organization of any organization on the blockchain, the URL link included in the invitation information is a network link created by the second management platform for receiving the identity information file of the target organization; when the target organization needs to join the blockchain, the inviting organization sends a networking request for the new organization to join to the first management platform, or the management platform of the target organization sends a networking request for the target organization to the first management platform; the first management platform calls the stored address information of an existing organization and establishes a URL link for receiving the identity information file of the organization requesting the networking. The receiving organization corresponding to the URL link can be the inviting organization or other organizations. Other organizations are preferably used as the receiving organizations, thereby avoiding exposure of the address of the inviting organization and improving the data security of the inviting organization in blockchain transactions.

[0128] If the inviting organization sends a networking request for a new organization to join to the first management platform, the URL link created by the first management platform is added to the invitation information and sent to the target organization; if the management platform of the target organization sends a networking request for the target organization to the first management platform, the established URL link is directly returned to the management platform of the target organization; by having the URL link created by the first management platform, the risk of exposing the address information of the inviting organization can be reduced, thereby improving the security of blockchain transactions.

[0129] The blockchain networking method provided by the present invention includes inputting the organization information of the target organization on the target organization side and generating a configuration file required for deploying the blockchain, the configuration file is generated by a management platform used for the organization to deploy the blockchain for network initialization, the management platform is deployed on the target organization side, or the computer of the target organization can remotely log in to the management platform through a designated interface, download the configuration file from the management platform and run the configuration file to complete the blockchain deployment; the present invention can ensure that the configuration files required for blockchain deployment are all automatically completed by the software program on the target organization side, without the need for operation and maintenance personnel to participate in the configuration file production or data migration, thereby improving the efficiency and accuracy of blockchain network initialization, and at the same time preventing data leakage problems of the target organization caused by human factors.

[0130] Example 2

[0131] See also Figure 8 The present invention further provides a blockchain networking device based on the blockchain networking method of embodiment 1, the device comprising:

[0132] Parameter acquisition module: used to obtain the institution attribute of the target institution in response to the institution information input by the target institution, wherein the institution attribute is whether the target institution is the first institution of the blockchain;

[0133] A parameter processing module: used for generating a configuration file of the target organization at the target organization side according to the organization information and the organization attributes, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes;

[0134] Blockchain deployment module: used to deploy a blockchain network for the target organization on the target organization side according to each of the configuration files.

[0135] The blockchain networking method provided by the present invention includes inputting the organization information of the target organization on the target organization side, and directly generating a configuration file required for deploying the blockchain on the target structure side. The configuration file can be a corresponding management platform deployed on the computer of the target organization, and an application for generating the configuration file is installed in the management platform, or a port for communicating with the management platform is provided on the computer of the target organization. The management platform remotely generates the configuration file required for the target organization to deploy the blockchain, and the configuration file is downloaded from the management platform on the computer of the target organization, and then the configuration file is run to complete the blockchain deployment. In this way, it can be ensured that the generation of the configuration file is completed by the machine without the participation of operation and maintenance personnel, thereby improving the efficiency and accuracy of the initialization of the blockchain network, and at the same time preventing the problem of data leakage of the target organization caused by human factors.

[0136] In one embodiment, a management platform is set up for each organization to deploy blockchain, and the management platform is used for the organization to initialize the network. The parameter acquisition module includes:

[0137] Information input unit: input the organization information into the management platform;

[0138] Information analysis unit: according to the organization information, retrieves the organization attributes corresponding to the target organization pre-stored in the management platform.

[0139] In one embodiment, the first program deployment unit is used to deploy the management platform at the edge side where each of the target institutions is located.

[0140] In one embodiment, the second program deployment unit: used for the management platform can also be deployed on the side of a trusted third-party organization.

[0141] In one embodiment, if the target organization is a newly-built blockchain, the parameter processing module includes:

[0142] First parameter unit: obtain the first node number corresponding to the minimum number of nodes required to create a blockchain;

[0143] A first processing unit: generating N configuration files according to the organization information and the number of the first nodes;

[0144] Wherein, N≥the number of the first nodes, and N is a positive integer.

[0145] In one embodiment, if the target organization is to join a specified blockchain, the parameter processing module includes:

[0146] Second parameter unit: obtaining the second node quantity corresponding to the authority information of the target organization;

[0147] A second processing unit: generating M configuration files according to the organization information and the number of the second nodes;

[0148] Wherein, M is equal to the number of the second nodes, and is a positive integer ≥1.

[0149] In one embodiment, if the target organization is a newly built blockchain, the blockchain deployment module includes:

[0150] A first creation unit: generating a genesis block at the target institution side according to the institution attributes and the institution information;

[0151] A second creation unit: generating N configuration files according to the organization information;

[0152] A first deployment unit: establishing a blockchain based on the target organization according to the genesis block and the N configuration files;

[0153] Among them, N ≥ the minimum number of nodes required to establish a blockchain, and N is a positive integer.

[0154] In one embodiment, the first creating unit includes:

[0155] Data calling unit: calling the creation strategy of the genesis block according to the mechanism attributes;

[0156] A file generating unit: generating a creation file according to the creation strategy and the organization information;

[0157] File deployment unit: downloads and runs the genesis file, and generates the genesis block on the target institution side.

[0158] In one embodiment, the second creating unit includes:

[0159] Node information unit: obtain the third node number corresponding to the institution information and the first node number corresponding to the minimum number of nodes required to create a blockchain;

[0160] A quantity comparison unit: based on the comparison result of the first node quantity and the third node quantity, generating N configuration files according to the organization information;

[0161] If the number of the first nodes is greater than the number of the third nodes, N is equal to the number of the first nodes; otherwise, N is equal to the number of the third nodes.

[0162] In one embodiment, if the target organization is to join a specified blockchain, the blockchain deployment module includes:

[0163] First file unit: generating M configuration files according to the organization information;

[0164] File application unit: deploy blockchain nodes on the target organization side and deploy the node information of the target organization on the networking organization side according to the M configuration files, to complete the blockchain deployment of the target organization.

[0165] In one embodiment, the file application unit includes:

[0166] Node file unit: generating N node configuration files for deploying blockchain nodes of the target organization according to the organization information;

[0167] Identity file unit: desensitizes the sensitive data of the node configuration file to generate the identity information file of the target organization's networking request;

[0168] Institutional networking unit: sending the identity configuration information to the networking institution to complete the blockchain network deployment of the target institution;

[0169] Node deployment unit: downloads the node configuration file on the target institution side to complete the blockchain node deployment on the target institution side.

[0170] In one embodiment, the organization networking unit includes:

[0171] Invitation information unit: obtains the invitation information of the target organization to join the blockchain, wherein the invitation information includes the URL link required for blockchain networking;

[0172] Information transmission unit: sending the identity information file to the networking organization through the URL link of the invitation information;

[0173] Information loading unit: according to the identity information file, writes the identity information file into the blockchain in the networking organization.

[0174] In one embodiment, if the target organization is a subordinate organization of an existing blockchain organization, sending the identity information file to the networking organization includes:

[0175] URL construction unit: constructs a URL link between the target organization and its superior organization according to the pre-stored address information of the superior organization of the target organization;

[0176] Information transmission unit: according to the constructed URL link, the identity information file is sent to the networking organization through the superior organization.

[0177] In one embodiment, if the target organization is not a subordinate organization of an existing blockchain organization, sending the identity information file to the networking organization includes:

[0178] Networking request unit: sending a networking request of the target organization to the first management platform;

[0179] URL link unit: constructs a URL link according to the networking request and sends it to the second management platform;

[0180] An identity information sending unit: sending the identity information file to the networking organization according to the URL link;

[0181] Among them, the first management platform is set on the side of the trusted third-party organization, and is a management platform for maintaining the basic information of the organization in the blockchain network, and the second management platform is the management platform on the side of the target organization.

[0182] A blockchain networking device provided by the present invention includes inputting the organization information of the target organization on the target organization side and generating a configuration file required for deploying the blockchain, the configuration file is generated by a management platform used for the organization to deploy the blockchain for network initialization, the management platform is deployed on the target organization side, or the computer of the target organization can remotely log in to the management platform through a designated interface, download the configuration file from the management platform and run the configuration file to complete the blockchain deployment; the present invention can ensure that the configuration files required for blockchain deployment are all automatically completed by the software program on the target organization side, without the need for operation and maintenance personnel to participate in the configuration file production or data migration, thereby improving the efficiency and accuracy of blockchain network initialization, and at the same time preventing data leakage problems of the target organization caused by human factors.

[0183] Example 3

[0184] The present invention provides an electronic device and a storage medium, see Fig. 9 , comprising at least one processor, at least one memory and computer program instructions stored in the memory.

[0185] Specifically, the above-mentioned processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of an embodiment of the present invention, and the electronic device includes at least one of the following: a computer, a mobile terminal, a PC, a tablet computer, etc.

[0186] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0187] The processor implements any one of the blockchain networking methods in the above-mentioned embodiment mode 1 by reading and executing computer program instructions stored in the memory.

[0188] In one example, the electronic device may further include a communication interface and a bus, wherein the processor, the memory, and the communication interface are connected via the bus and communicate with each other.

[0189] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.

[0190] Bus includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, bus may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0191] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0192] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0193] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A blockchain networking method, characterized in that: A management platform is set up for an organization to deploy a blockchain, the management platform is used for the organization to initialize the network, and the method includes: In response to the organization information input by the target organization, the organization attributes of the target organization are obtained, wherein the organization attributes include creating a new blockchain and joining a specified blockchain; the organization information includes basic information and node information, the basic information includes: organization name, unique code and maximum number of nodes to be managed on the blockchain, and the node information includes: link address, port and consensus port of the node; According to the organization information and the organization attributes, a configuration file of the target organization is generated on the target organization side, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes; the configuration file includes a node configuration file and a networking file, and the networking file is divided into a genesis file corresponding to a newly created blockchain and an identity information file corresponding to joining a specified blockchain according to the networking category; if the target organization belongs to a networking organization of a single organization or a multi-organization network, the generated configuration file includes a node configuration file and a genesis file; if the target organization is a member organization of a single organization network, the generated configuration file includes a node configuration file and an identity information file, and the node configuration file is directly run after being downloaded on the member organization side, thereby completing the node deployment on the member organization side; If the blockchain deployed by the target organization is a newly built blockchain, generating a configuration file of the target organization on the target organization side according to the organization information and the organization attributes, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes and includes: obtaining the first number of nodes corresponding to the minimum number of nodes required to create a blockchain; generating N node configuration files according to the organization information and the first number of nodes; wherein N≥the first number of nodes, and N is a positive integer; According to each of the configuration files, a blockchain network is deployed on the target institution side, including: Generate a genesis file at the target institution side according to the institution attributes and the institution information; Generate N node configuration files according to the organization information; Establishing a blockchain based on the target organization according to the genesis file and N node configuration files; Among them, N ≥ the minimum number of nodes required to establish a blockchain, and N is a positive integer.

2. The blockchain networking method according to claim 1, characterized in that: The step of obtaining the target organization's organization attributes in response to the organization information input by the target organization, wherein the organization attributes include creating a new blockchain and joining a specified blockchain, including: Entering the institution information into the management platform; According to the organization information, the organization attributes corresponding to the target organization pre-stored in the management platform are retrieved.

3. The blockchain networking method according to claim 2, characterized in that: The management platform is deployed at the edge side where each of the target institutions is located, and / or the management platform is deployed at a trusted third-party institution.

4. The blockchain networking method according to claim 1, characterized in that: The generating N node configuration files according to the organization information includes: Obtain the number of third nodes corresponding to the institution information and the number of first nodes corresponding to the minimum number of nodes required to create a blockchain; Based on the comparison result of the first number of nodes and the third number of nodes, and according to the organization information, generate N node configuration files; If the number of the first nodes is greater than the number of the third nodes, N is equal to the number of the first nodes; otherwise, N is equal to the number of the third nodes.

5. The blockchain networking method according to any one of claims 1 to 4, characterized in that: If the target organization is to join a designated blockchain, deploying a blockchain network for the target organization according to each of the configuration files includes: Generate M configuration files according to the organization information; Run M of the configuration files and deploy M blockchain nodes on the target institution side; On the networking organization side, running the identity information file to load the identity information of the target organization into the blockchain; Wherein, M≥1, and M is a positive integer.

6. A blockchain networking device, characterized in that: Set up a management platform for institutional blockchain deployment, which is used by the institution to initialize the network, including: Parameter acquisition module: used to respond to the organization information input by the target organization, and obtain the organization attributes of the target organization, wherein the organization attributes include creating a new blockchain and joining a specified blockchain; the organization information includes basic information and node information, the basic information includes: organization name, unique code and the maximum number of nodes to be managed on the blockchain, and the node information includes: the link address, port and consensus port of the node; Parameter processing module: used to generate a configuration file of the target organization on the target organization side according to the organization information and the organization attributes, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes; the configuration file includes a node configuration file and a networking file, and the networking file is divided into a genesis file corresponding to a newly created blockchain and an identity information file corresponding to joining a specified blockchain according to the networking category; if the target organization belongs to a networking organization of a single organization or a multi-organization network, the generated configuration file includes a node configuration file and a genesis file; if the target organization is a member organization of a single organization network, the generated configuration file includes a node configuration file and an identity information file, and the node configuration file is directly run after being downloaded on the member organization side, thereby completing the node deployment on the member organization side; if the blockchain deployed by the target organization is a newly created blockchain, the configuration file of the target organization is generated on the target organization side according to the organization information and the organization attributes, wherein the number of the configuration files corresponding to the target organization corresponds to the organization attributes, including: obtaining the first node number corresponding to the minimum number of nodes required to create a blockchain; generating N node configuration files according to the organization information and the first node number; wherein N≥the first node number, and N is a positive integer; Blockchain deployment module: used to deploy a blockchain network for the target institution on the side of the target institution according to each of the configuration files, including: generating a genesis file on the side of the target institution according to the institution attributes and the institution information; generating N node configuration files according to the institution information; establishing a blockchain based on the target institution according to the genesis file and the N node configuration files; wherein N ≥ the minimum number of nodes required to establish a blockchain, and N is a positive integer.

7. An electronic device, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 5.

8. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Block chain deployment method and system

    CN109889386A

  • Data processing method and device based on blockchain nodes

    CN110601896A

  • Alliance chain management method, device and system

    CN111897795A

  • Method and device for automatically deploying blockchain nodes, computer equipment and storage medium

    CN113987534A

  • Intelligent service method of trusted electronic file platform based on block chain

    CN115766795A