A method and system for rapid deployment of blockchain nodes
Through the rapid deployment methods and systems of blockchain nodes, the collaboration of the contract management platform and the blockchain management platform is used to select consensus algorithms and smart contract templates, verify the identity and permissions of the nodes to be deployed, and certify and distribute them through the consensus mechanism of blockchain, solving the challenges of difficult deployment and maintenance of blockchain systems and the rapid network and chain building, achieving the effect of rapid deployment and efficient operation.
Patent Information
- Application Number
- CN202110726166.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2041-06-29
AI Technical Summary
It is difficult to deploy and maintain the blockchain system, which increases the threshold for blockchain use, and there are challenges in quickly building networks and chains while ensuring security and credibility.
Provide a method and system for rapid deployment of blockchain nodes. Through the collaborative work of the contract management platform, the node to be deployed and the blockchain management platform, the consensus algorithm and smart contract template are selected, the identity and permissions of the node to be deployed are verified and distributed through the consensus mechanism of the blockchain.
It realizes rapid deployment of blockchain nodes, reduces the difficulty of deployment operation and maintenance, ensures the security and trustworthiness of nodes, provides the selectivity and rapid deployment capabilities of smart contract templates, and improves blockchain deployment efficiency and security.
Smart Images

Figure CN113536339B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain, and particularly to a method and system for rapid deployment of blockchain nodes. Background Art
[0002] Considering the security brought by the immutability of the blockchain, all walks of life are actively exploring the implementation of their own businesses in the blockchain network. However, as a complex system integrating various technologies such as cryptographic algorithms, peer-to-peer networks, consensus mechanisms, and smart contracts, the system deployment and operation and maintenance are difficult, which raises the threshold for using the blockchain. According to the statistics of the 2020 Trusted Blockchain Evaluation, in order to reduce the difficulty of deployment and operation and maintenance, 89% of the manufacturers have realized the automated deployment and convenient operation and maintenance of the chain system by using technologies such as Docker and Kubernetes.
[0003] How to ensure the rapid network formation and chain building of the blockchain under the premise of security and trust is becoming an important research direction in the blockchain field. Summary of the Invention
[0004] Embodiments of the present invention provide a method and system for rapid deployment of blockchain nodes. The technical solutions are as follows:
[0005] On the one hand, a method for rapid deployment of blockchain nodes is provided. The method is implemented by a rapid deployment system for blockchain nodes, and the rapid deployment system for blockchain nodes includes a contract management platform, nodes to be deployed, and a blockchain management platform;
[0006] The method includes:
[0007] The blockchain management platform obtains various consensus algorithms and smart contract templates stored in the blockchain;
[0008] The blockchain management platform selects a first consensus algorithm from the various consensus algorithms, and publishes the smart contract template and access rights on the contract management platform through the first consensus algorithm;
[0009] The blockchain management platform selects a second consensus algorithm from the various consensus algorithms, and distributes deployment files to the nodes to be deployed through the second consensus algorithm;
[0010] The blockchain management platform obtains the identity information and the second consensus algorithm information of the nodes to be deployed, and sends the identity information and the second consensus algorithm information of the nodes to be deployed to the contract management platform;
[0011] The contract management platform verifies whether to include the nodes to be deployed in the blockchain based on the identity information of the nodes to be deployed, the second consensus algorithm information, the smart contract template, the access rights, and the second consensus algorithm;
[0012] If the verification is successful, the blockchain management platform incorporates the node to be deployed into the blockchain, completing the rapid deployment of the node.
[0013] Optionally, the blockchain management platform obtains various consensus algorithms and smart contract templates stored in the blockchain, including:
[0014] The blockchain management platform encapsulates various consensus algorithms, smart contract templates, shared ledgers, and security technologies of the blockchain to obtain interfaces corresponding to various consensus algorithms and interfaces corresponding to smart contract templates;
[0015] The step of publishing the smart contract template and access rights on the contract management platform through the first consensus algorithm includes:
[0016] Through the interface corresponding to the first consensus algorithm, the interface of the smart contract template and access rights are published on the contract management platform;
[0017] The step of verifying whether to incorporate the node to be deployed into the blockchain based on the smart contract template, access rights, and the second consensus algorithm includes
[0018] Based on the interface of the smart contract template, access rights, and the interface of the second consensus algorithm, verify whether to incorporate the node to be deployed into the blockchain.
[0019] Optionally, the blockchain is a blockchain template with default parameters pre-configured;
[0020] The method further includes:
[0021] When the blockchain management platform receives a template selection message sent by a user terminal, determine the corresponding blockchain template according to the template selection message, and create a blockchain according to the corresponding blockchain template.
[0022] Optionally, the various consensus algorithms include:
[0023] SOLO consensus mode algorithm, and / or Kafka high-speed consensus algorithm, and / or PBFT practical Byzantine fault tolerance consensus algorithm.
[0024] Optionally, the method further includes:
[0025] The contract management platform audits the execution logs of the smart contract.
[0026] On the other hand, a blockchain node rapid deployment system is provided. The system is used to implement a blockchain node rapid deployment method. The blockchain node rapid deployment system includes a contract management platform, a node to be deployed, and a blockchain management platform; wherein:
[0027] The blockchain management platform is used to obtain various consensus algorithms and smart contract templates stored in the blockchain; select a first consensus algorithm from the various consensus algorithms, and publish the smart contract template and access rights on the contract management platform through the first consensus algorithm; select a second consensus algorithm from the various consensus algorithms, and distribute deployment files to the nodes to be deployed through the second consensus algorithm; obtain the identity information of the nodes to be deployed and the second consensus algorithm information, and send the identity information of the nodes to be deployed and the second consensus algorithm information to the contract management platform; incorporate the nodes to be deployed into the blockchain;
[0028] The contract management platform is used to receive the smart contract template and access rights, receive the identity information of the nodes to be deployed and the second consensus algorithm information, and based on the identity information of the nodes to be deployed and the second consensus algorithm information, verify whether to incorporate the nodes to be deployed into the blockchain based on the smart contract template, access rights, and the second consensus algorithm.
[0029] Optionally, the blockchain management platform obtaining various consensus algorithms and smart contract templates stored in the blockchain includes:
[0030] The blockchain management platform encapsulates various consensus algorithms, smart contract templates, shared ledgers, and security technologies of the blockchain to obtain interfaces corresponding to various consensus algorithms and interfaces corresponding to smart contract templates;
[0031] The publishing of the smart contract template and access rights on the contract management platform through the first consensus algorithm includes:
[0032] Through the interface corresponding to the first consensus algorithm, publish the interface of the smart contract template and access rights on the contract management platform;
[0033] The verifying whether to incorporate the nodes to be deployed into the blockchain based on the smart contract template, access rights, and the second consensus algorithm includes
[0034] Verify whether to incorporate the nodes to be deployed into the blockchain based on the interface of the smart contract template, access rights, and the second consensus algorithm interface.
[0035] Optionally, the blockchain is a blockchain template with pre-configured default parameters;
[0036] The blockchain management platform is further used for:
[0037] When the blockchain management platform receives a template selection message sent by a user terminal, determine the corresponding blockchain template according to the template selection message, and create a blockchain according to the corresponding blockchain template.
[0038] Optionally, the multiple consensus algorithms include:
[0039] SOLO consensus mode algorithm, and / or Kafka high-speed consensus algorithm, and / or PBFT practical Byzantine fault tolerance consensus algorithm.
[0040] Optionally, the contract management platform is further configured to:
[0041] The contract management platform audits the execution logs of the smart contract.
[0042] The beneficial effects brought by the technical solutions provided in the embodiments of the present invention at least include:
[0043] In the above solution, based on the blockchain platform, the consensus algorithm, smart contract, and security management are comprehensively considered to provide a simple one-key deployment of the blockchain, provide fast network formation and chain building. First, it ensures the security and credibility of blockchain nodes. Second, it provides selectable consensus algorithms for the invocation of smart contract templates to ensure fast deployment and efficient operation in different scenarios. Third, it stores the smart contract templates on the chain and regulates the real-time distribution and use of smart contracts through the consensus mechanism of the blockchain, improving the deployment efficiency and security of the blockchain. Description of the Drawings
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0045] Figure 1 It is a flowchart of a method for quickly deploying blockchain nodes provided by an embodiment of the present invention;
[0046] Figure 2 It is a system block diagram of a quick deployment of blockchain nodes provided by an embodiment of the present invention. Detailed Embodiments
[0047] To make the technical problems, technical solutions, and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the drawings and specific embodiments.
[0048] The embodiments of the present invention provide a method for quickly deploying blockchain nodes. This method is implemented by a blockchain node quick deployment system, which includes a contract management platform, nodes to be deployed, and a blockchain management platform. As Figure 1 shown in the flowchart of the method for quickly deploying blockchain nodes, the processing flow of this method can include the following steps:
[0049] S1. The blockchain management platform obtains various consensus algorithms and smart contract templates stored in the blockchain.
[0050] In a feasible implementation, to ensure data security, the blockchain management platform can pre-encapsulate various consensus algorithms, smart contract templates, shared ledgers, and security technologies of the blockchain, and only expose the interfaces corresponding to various consensus algorithms and the interfaces corresponding to smart contracts for use. In this way, subsequent calls to the interfaces can be made when using consensus algorithms and smart contracts. Among them, the smart contract template is a set of templates pre-developed to implement the rules of the smart contract.
[0051] According to different usage scenarios, as well as different requirements such as security and performance, the blockchain provides a variety of selectable consensus algorithms, including but not limited to the SOLO consensus mode algorithm, and / or the Kafka high-speed consensus algorithm, and / or the PBFT practical Byzantine fault tolerance consensus algorithm. Among them:
[0052] (1) The SOLO formula mode algorithm only requires one consensus node, which is simple and fast, and can be used in the development and testing links to improve development efficiency and reduce development costs.
[0053] (2) The Kafka high-speed consensus algorithm: There is no specific requirement for the total number of nodes, and it can tolerate failures of less than half of the nodes. It is mostly used within a trusted alliance and requires a scenario with a high consensus efficiency.
[0054] (3) The PBFT practical Byzantine fault tolerance consensus algorithm: Uses 3f + 1 nodes and can tolerate up to 1 / 3 Byzantine faulty nodes. It is mostly used in untrusted multi-party transaction scenarios.
[0055] To balance the customizability and usability of the blockchain and enable more rapid and convenient creation of a blockchain that meets user needs, optionally, the blockchain can be a blockchain template with default parameters pre-configured. When a user creates a blockchain, they only need to select the corresponding predefined template according to their business scenario to quickly and conveniently create a blockchain that meets the requirements. When a user wants to modify the blockchain template according to different requirements, the user can input configuration parameters to the user terminal, and the user terminal sends the configuration parameters to the blockchain management platform. When the blockchain management platform receives the configuration parameters input by the user terminal, the blockchain management platform uses the configuration parameters to replace the default parameters to create a blockchain that meets user needs.
[0056] S2. The blockchain management platform selects a first consensus algorithm from among various consensus algorithms and publishes the smart contract template and access rights on the contract management platform through the first consensus algorithm.
[0057] In a feasible implementation manner, a more suitable consensus algorithm can be selected in different application scenarios. When publishing the interfaces and access permissions of the smart contract template on the contract management platform, the blockchain management platform selects a consensus algorithm (which can be called the first consensus algorithm), and completes the real-time distribution and use of the smart contract template through the first formula algorithm. In this way, the distribution and use of the smart contract template are uniformly managed through the consensus mechanism of the blockchain, realizing that the process cannot be cheated, automatically triggering when the conditions are met, independently verifying the execution results, and the smart contract template is encapsulated in the blockchain and cannot be tampered with, improving the security.
[0058] S3. The blockchain management platform selects a second consensus algorithm from multiple consensus algorithms and distributes the deployment file to the node to be deployed through the second consensus algorithm.
[0059] S4. The blockchain management platform obtains the identity information and the second consensus algorithm information of the node to be deployed, and sends the identity information and the second consensus algorithm information of the node to be deployed to the contract management platform.
[0060] S5. The contract management platform verifies whether to include the node to be deployed in the blockchain based on the identity information of the node to be deployed, the second consensus algorithm information, the smart contract template, the access permission, and the second consensus algorithm.
[0061] In a feasible implementation manner, the present invention realizes a series of functions such as contract development, contract release, deployment and instantiation, contract triggering and invocation, and contract maintenance, and stipulates and divides the business usage rules and access permissions for operations such as data storage, query, and invocation by customers in the form of code. After distributing the deployment file to the node to be deployed, the access permission of the node to be deployed is verified.
[0062] S6. If the verification is successful, the blockchain management platform includes the node to be deployed in the blockchain to complete the rapid deployment of the node.
[0063] In a feasible implementation manner, if the contract management platform successfully verifies the node to be deployed, it means that the node to be deployed has the permission to use functions such as data query, storage, and invocation of the relevant directory blockchain. The contract management platform sends a verification success notification to the blockchain management platform. After receiving the verification success notification, the blockchain management platform includes the node to be deployed in the blockchain.
[0064] In the above steps, in order to ensure the effectiveness of the smart contract, optionally, the contract management platform can perform the audit function on the execution log of the smart contract.
[0065] In the embodiments of the present invention, based on a blockchain platform, the consensus algorithm, smart contract, and security management are comprehensively considered to provide a simple one-click deployment of blockchain capabilities, enabling rapid network formation and chain building. Firstly, it ensures the security and credibility of blockchain nodes. Secondly, it provides selectable consensus algorithms for the invocation of smart contract templates to ensure rapid deployment and efficient operation in different scenarios. Thirdly, it stores the smart contract templates on the blockchain and regulates the real-time distribution and use of smart contracts through the consensus mechanism of the blockchain, thereby improving the deployment efficiency and security of the blockchain.
[0066] Embodiments of the present invention provide a system for rapid deployment of blockchain nodes, which is used to implement a method for rapid deployment of blockchain nodes. The system for rapid deployment of blockchain nodes includes a contract management platform, nodes to be deployed, and a blockchain management platform. As Figure 2 shown in the block diagram of the system for rapid deployment of blockchain nodes, where:
[0067] The blockchain management platform is used to obtain various consensus algorithms and smart contract templates stored in the blockchain; select a first consensus algorithm from the various consensus algorithms and publish the smart contract template and access rights on the contract management platform through the first consensus algorithm; select a second consensus algorithm from the various consensus algorithms and distribute deployment files to the nodes to be deployed through the second consensus algorithm; obtain the identity information and the second consensus algorithm information of the nodes to be deployed, and send the identity information and the second consensus algorithm information of the nodes to be deployed to the contract management platform; incorporate the nodes to be deployed into the blockchain;
[0068] The contract management platform is used to receive the smart contract template and access rights, receive the identity information and the second consensus algorithm information of the nodes to be deployed, and verify whether to incorporate the nodes to be deployed into the blockchain based on the identity information of the nodes to be deployed, the second consensus algorithm information, the smart contract template, the access rights, and the second consensus algorithm.
[0069] Optionally, the blockchain management platform obtaining various consensus algorithms and smart contract templates stored in the blockchain includes:
[0070] The blockchain management platform encapsulates various consensus algorithms, smart contract templates, shared ledgers, and security technologies of the blockchain to obtain interfaces corresponding to various consensus algorithms and interfaces corresponding to smart contract templates;
[0071] Publishing the smart contract template and access rights on the contract management platform through the first consensus algorithm includes:
[0072] Through the interface corresponding to the first consensus algorithm, publish the interface of the smart contract template and access rights on the contract management platform;
[0073] Verify whether the node to be deployed is incorporated into the blockchain based on the smart contract template, access rights, and the second consensus algorithm, including
[0074] Verify whether the node to be deployed is incorporated into the blockchain based on the interface of the smart contract template, access rights, and the second consensus algorithm interface.
[0075] Optionally, the blockchain is a blockchain template with pre-configured default parameters;
[0076] The blockchain management platform is also used for:
[0077] When the blockchain management platform receives a template selection message sent by a user terminal, determine the corresponding blockchain template according to the template selection message, and create a blockchain according to the corresponding blockchain template.
[0078] Optionally, the multiple consensus algorithms include:
[0079] SOLO consensus mode algorithm, and / or Kafka high-speed consensus algorithm, and / or PBFT practical Byzantine fault tolerance consensus algorithm.
[0080] Optionally, the contract management platform is also used for:
[0081] The contract management platform audits the execution logs of smart contracts.
[0082] In the embodiments of the present invention, by comprehensively considering the consensus algorithm, smart contract, and security management on the blockchain platform, the ability to simply deploy the blockchain with one key is provided, and fast network formation and chain building are provided. First, it ensures the security and credibility of blockchain nodes. Second, it provides selectable consensus algorithms for the invocation of smart contract templates to ensure fast deployment and efficient operation in different scenarios. Third, the smart contract template is stored on the chain for evidence, and the real-time distribution and use of smart contracts are standardized through the consensus mechanism of the blockchain, improving the deployment efficiency and security of the blockchain.
[0083] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by a program instructing related hardware. The program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a magnetic disk, or an optical disc, etc.
[0084] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for rapid deployment of blockchain nodes, characterized in that, The method is implemented by a blockchain node rapid deployment system, which includes a contract management platform, nodes to be deployed, and a blockchain management platform; The method includes: The blockchain management platform obtains various consensus algorithms and smart contract templates stored in the blockchain; The blockchain management platform selects a first consensus algorithm from the various consensus algorithms and publishes the smart contract template and access rights on the contract management platform through the first consensus algorithm; The blockchain management platform selects a second consensus algorithm from the various consensus algorithms and distributes deployment files to the nodes to be deployed through the second consensus algorithm; The blockchain management platform obtains the identity information of the nodes to be deployed and the second consensus algorithm information, and sends the identity information of the nodes to be deployed and the second consensus algorithm information to the contract management platform; The contract management platform verifies whether to include the nodes to be deployed in the blockchain based on the identity information of the nodes to be deployed and the second consensus algorithm information, the smart contract template, the access rights, and the second consensus algorithm; If the verification is successful, the blockchain management platform includes the nodes to be deployed in the blockchain and completes the rapid deployment of the nodes; Among them, the blockchain management platform pre-packages various consensus algorithms, smart contract templates, shared ledgers, and security technologies of the blockchain, and only discloses the interfaces corresponding to the various consensus algorithms and the interfaces corresponding to the smart contracts for use; Among them, the blockchain management platform obtains various consensus algorithms and smart contract templates stored in the blockchain, including: The blockchain management platform packages various consensus algorithms, smart contract templates, shared ledgers, and security technologies of the blockchain, and obtains the interfaces corresponding to the various consensus algorithms and the interfaces corresponding to the smart contract templates; Publishing the smart contract template and access rights on the contract management platform through the first consensus algorithm includes: Through the interface corresponding to the first consensus algorithm, publish the interface of the smart contract template and the access rights on the contract management platform; Verifying whether to include the nodes to be deployed in the blockchain based on the smart contract template, the access rights, and the second consensus algorithm includes: Based on the interface of the smart contract template, the access rights, and the second consensus algorithm interface, verify whether to include the nodes to be deployed in the blockchain.
2. The method according to claim 1, characterized in that, The blockchain is a blockchain template with default parameters pre-configured; The method further includes: When the blockchain management platform receives a template selection message sent by a user terminal, determine the corresponding blockchain template according to the template selection message, and create a blockchain according to the corresponding blockchain template.
3. The method according to claim 1, characterized in that, The various consensus algorithms include: SOLO consensus mode algorithm, and / or Kafka high-speed consensus algorithm, and / or PBFT practical Byzantine fault tolerance consensus algorithm.
4. The method according to claim 1, characterized in that, The method further includes: The contract management platform audits the execution logs of smart contracts.
5. A system for rapid deployment of blockchain nodes, characterized in that, The system is used to implement a blockchain node rapid deployment system, which includes a contract management platform, nodes to be deployed, and a blockchain management platform; among them: The blockchain management platform is used to obtain various consensus algorithms and smart contract templates stored in the blockchain; select a first consensus algorithm from the various consensus algorithms, and publish the smart contract template and access rights on the contract management platform through the first consensus algorithm; select a second consensus algorithm from the various consensus algorithms, and distribute deployment files to the nodes to be deployed through the second consensus algorithm; obtain the identity information of the nodes to be deployed and the second consensus algorithm information, and send the identity information of the nodes to be deployed and the second consensus algorithm information to the contract management platform; incorporate the nodes to be deployed into the blockchain; The contract management platform is used to receive the smart contract template and access rights, receive the identity information of the nodes to be deployed and the second consensus algorithm information, and based on the identity information of the nodes to be deployed and the second consensus algorithm information, verify whether to incorporate the nodes to be deployed into the blockchain based on the smart contract template, access rights, and the second consensus algorithm; Among them, the blockchain management platform pre-packages various consensus algorithms, smart contract templates, shared ledgers, and security technologies of the blockchain, and only publishes the interfaces corresponding to the various consensus algorithms and the interfaces corresponding to the smart contracts for use; Among them, the blockchain management platform obtaining various consensus algorithms and smart contract templates stored in the blockchain includes: The blockchain management platform packages various consensus algorithms, smart contract templates, shared ledgers, and security technologies of the blockchain, and obtains the interfaces corresponding to the various consensus algorithms and the interfaces corresponding to the smart contract templates; The publishing the smart contract template and access rights on the contract management platform through the first consensus algorithm includes: Through the interface corresponding to the first consensus algorithm, publish the interface of the smart contract template and access rights on the contract management platform; The verifying whether to incorporate the nodes to be deployed into the blockchain based on the smart contract template, access rights, and the second consensus algorithm includes: Based on the interface of the smart contract template, access rights, and the second consensus algorithm interface, verify whether to incorporate the nodes to be deployed into the blockchain.
6. The system according to claim 5, characterized in that, The blockchain is a blockchain template with default parameters pre-configured; The blockchain management platform is further used for: When the blockchain management platform receives a template selection message sent by the user terminal, determine the corresponding blockchain template according to the template selection message, and create a blockchain according to the corresponding blockchain template.
7. The system according to claim 5, wherein The various consensus algorithms include: SOLO consensus mode algorithm, and / or Kafka high-speed consensus algorithm, and / or PBFT practical Byzantine fault tolerance consensus algorithm.
8. The system according to claim 5, wherein The contract management platform is further used for: The contract management platform audits the execution logs of smart contracts.
Citation Information
Patent Citations
Node management method and device based on block chain
CN110855777A