Decentralized dynamic optimization method and system for permissioned blockchain, and device and medium

By building optimized nodes, optimization frameworks, and optimization chains, and using blockchain configuration optimization algorithms to generate optimized blocks and perform consensus verification, the decentralized dynamic optimization problem of the blockchain system is solved, the system's throughput and security are improved, making it suitable for multi-tasking scenarios while maintaining decentralized characteristics.

WO2025208656A1PCT designated stage Publication Date: 2025-10-09SOUTHERN UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/086599
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-03
Filing Date
2024-04-08
Publication Date
2025-10-09

AI Technical Summary

Technical Problem

In existing technologies, the dynamic optimization of blockchain systems cannot be decentralized and is easily controlled by malicious or damaged centralized optimization services, which affects the performance and security of the blockchain system.

Method used

By building optimized nodes, optimization frameworks, and optimization chains, and using blockchain configuration optimization algorithms to generate optimized blocks, and through consensus verification and optimized chain storage, the blockchain system configuration can be dynamically adjusted to ensure a decentralized optimization process.

Benefits of technology

It achieves dynamic adjustment and optimization of the blockchain system, improves throughput and security, while maintaining the key attribute of decentralization, is suitable for multi-tasking scenarios, and has the robustness and traceability of optimized blocks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024086599_09102025_PF_FP_ABST
    Figure CN2024086599_09102025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a decentralized dynamic optimization method and system for a permissioned blockchain, and a device and a medium. The method comprises: acquiring a system state of a permissioned blockchain; constructing optimization nodes, an optimization framework and an optimization chain, wherein the optimization framework comprises a blockchain configuration optimization algorithm, and each optimization node comprises an instance provided by the optimization framework; inputting the system state into the instance to generate a corresponding optimization block, wherein the optimization block comprises optimization system configuration information obtained by means of the blockchain configuration optimization algorithm; performing consensus verification on the optimization block by means of the corresponding optimization node to obtain a consensus proof result of the optimization block; storing the optimization block to the optimization chain on the basis of the consensus proof result; and performing configuration optimization on the permissioned blockchain on the basis of the optimization chain in which the optimization block has been stored. The present invention can implement decentralized dynamic optimization of a permissioned blockchain by constructing optimization nodes, an optimization framework and an optimization chain, thereby improving the throughput and security of blockchains.
Need to check novelty before this filing date? Find Prior Art

Description

Decentralized dynamic optimization method, system, device and medium for permissioned blockchain Technical Field

[0001] The present invention relates to the field of blockchain optimization technology, and in particular to a decentralized dynamic optimization method, system, device and medium for permissioned blockchain. Background Art

[0002] Currently, the number of methods for dynamic blockchain optimization is increasing year by year. Blockchains are complex dynamic systems whose performance characteristics are affected by the underlying system state. Therefore, these methods aim to dynamically adjust the configuration of blockchain systems to maximize performance under various system states.

[0003] However, the fundamental principle of blockchain is that no single entity can control the state of a blockchain system. System participants must collectively agree on any actions that affect the system state. Therefore, dynamic blockchain optimization cannot be handled by a single authority. This is because, with a single point of control, a malicious or compromised centralized optimization service could enforce vulnerable configurations, attempt to control the blockchain system, or add malicious transactions to the blockchain. Therefore, a decentralized approach to dynamic blockchain optimization is urgently needed.

[0004] Summary of the Invention

[0005] The present invention aims to address at least one of the technical problems existing in the prior art. To this end, the present invention proposes a decentralized dynamic optimization method, system, device, and medium for permissioned blockchains. These methods, through the construction of optimization nodes, an optimization framework, and an optimization chain, enable decentralized dynamic optimization of permissioned blockchains, improving both throughput and security.

[0006] In a first aspect, an embodiment of the present invention provides a decentralized dynamic optimization method for a permissioned blockchain, comprising:

[0007] Get the system status of the permissioned blockchain;

[0008] Constructing an optimization node, an optimization framework, and an optimization chain; wherein the optimization framework includes a blockchain configuration optimization algorithm; and each optimization node includes an instance provided by the optimization framework;

[0009] Inputting the system state into the instance to generate a corresponding optimization block; the optimization block includes optimized system configuration information obtained by the blockchain configuration optimization algorithm;

[0010] Performing consensus verification on the optimization block by each optimization node to obtain a consensus proof result of the optimization block;

[0011] Storing the optimized block in the optimized chain according to the consensus proof result;

[0012] The permissioned blockchain is configured and optimized according to the optimized chain storing the optimized block.

[0013] The method according to the embodiment of the present invention has at least the following beneficial effects:

[0014] First, by constructing optimization nodes, an optimization framework, and an optimization chain corresponding to the system state of the permissioned blockchain, a good dynamic adjustment architecture is implemented. This architecture can be adjusted in real time according to the system state of the permissioned blockchain, is applicable to more task scenarios, and is easy to migrate. Secondly, corresponding optimization blocks are generated through instances. Since instances are provided by the optimization framework, the corresponding instances can also be adjusted through the optimization framework. Through instances, different permissioned blockchain configuration optimization algorithms can be implemented to obtain optimization blocks, improving the robustness of optimization block generation. Then, the optimization blocks are verified by consensus through each optimization node, and each optimization node makes optimization block decisions to achieve decentralization. The optimization blocks are then stored through the optimization chain, making it convenient for the permissioned blockchain to retrieve the configuration information in the optimization blocks. At the same time, the optimization chain can also achieve encryption of the optimization blocks and optimization traceability. Finally, the permissioned blockchain is configured and optimized based on the optimization chain of the stored optimization blocks, combining the advantages of achieving dynamic permissioned blockchain optimization capabilities while maintaining the key attribute of decentralization.

[0015] According to some embodiments of the present invention, inputting the system state into the instance to generate a corresponding optimization block includes the following steps:

[0016] Selecting a proposer node from all the optimization nodes using a preset proposer selection algorithm;

[0017] The system state is input into the instance corresponding to the proposer node, and the optimization block is obtained by calculation.

[0018] According to some embodiments of the present invention, performing consensus verification on the optimized block by each of the optimized nodes to obtain a consensus proof result of the optimized block includes the following steps:

[0019] Initiate a consensus process through the proposer node; the consensus process uses a preset consensus protocol;

[0020] Using the optimization nodes other than the proposer node as validator nodes of the consensus process;

[0021] If the verifier node receives the optimization block and verifies that the optimization block is valid for the permission blockchain optimization, the consensus proof result is modified to pass consensus verification; if the verifier node does not receive the optimization block within the time threshold or the verifier node verifies that the optimization block is invalid for the permission blockchain optimization, the consensus proof result is modified to fail consensus verification.

[0022] According to some embodiments of the present invention, verifying, by the validator node, that the optimization block is valid or invalid for the permissioned blockchain optimization comprises the following steps:

[0023] Verifying the signature of the proposer node and the block structure of the optimized block based on the system state of the permissioned blockchain; if the signature of the proposer node matches and the block structure of the optimized block is correct, performing configuration optimization using the optimized block by the validator node to obtain an optimization result;

[0024] The optimization result and the optimization block of the proposer node are compared. If the optimization result and the optimization block are consistent, the optimization block is valid for the blockchain optimization; otherwise, the optimization block is invalid for the blockchain optimization.

[0025] According to some embodiments of the present invention, storing the optimized block in the optimized chain according to the consensus proof result includes the following steps:

[0026] Testing the consensus proof result;

[0027] If the consensus proof result passes the consensus verification, the optimization block corresponding to the consensus proof result is stored in the optimization chain.

[0028] According to some embodiments of the present invention, the performing configuration optimization on the permissioned blockchain according to the optimization chain storing the optimization block comprises the following steps:

[0029] Obtaining the latest optimized block in the optimization chain in which the optimized blocks are stored;

[0030] Comparing the latest optimized block with the current configuration of the permission blockchain, if the latest optimized block and the current configuration of the permission blockchain are different, updating the permission blockchain with the latest optimized block.

[0031] According to some embodiments of the present invention, the proposer selection algorithm includes a round-robin algorithm and a sticky-proposer algorithm.

[0032] In a second aspect, an embodiment of the present invention provides a decentralized dynamic optimization system for a permissioned blockchain, comprising:

[0033] Blockchain system module, used to obtain the system status of the permissioned blockchain;

[0034] A decentralized dynamic optimization module, configured to construct optimization nodes, an optimization framework, and an optimization chain; wherein the optimization framework includes a blockchain configuration optimization algorithm; and each optimization node includes an instance of the optimization framework.

[0035] An optimization block generation module, configured to input the system state into the instance to generate a corresponding optimization block; the optimization block includes optimized system configuration information obtained by the blockchain configuration optimization algorithm;

[0036] A consensus verification module, configured to perform consensus verification on the optimization block through each optimization node to obtain a consensus proof result of the optimization block;

[0037] An optimization chain storage module, configured to store the optimization block in the optimization chain according to the consensus proof result;

[0038] A blockchain configuration optimization module is used to optimize the configuration of the permissioned blockchain according to the optimization chain.

[0039] In a third aspect, an embodiment of the present invention provides an electronic device comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to perform the decentralized dynamic optimization method of the permissioned blockchain as described in the first aspect.

[0040] In a fourth aspect, an embodiment of the present invention provides a computer storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the decentralized dynamic optimization method of the permissioned blockchain as described in the first aspect.

[0041] It should be noted that the beneficial effects of the second to fourth aspects of the present invention compared with the prior art are the same as the beneficial effects of the decentralized dynamic optimization method of the permission blockchain of the first aspect, and will not be described in detail here.

[0042] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments with reference to the following drawings, in which:

[0044] FIG1 is a schematic diagram of a general architecture of a permissioned blockchain system according to an embodiment of the present invention;

[0045] FIG2 is a schematic diagram of a scenario of a decentralized dynamic optimization method for a permissioned blockchain provided by an embodiment of the present invention;

[0046] FIG3 is a flowchart of a decentralized dynamic optimization method for a permissioned blockchain according to an embodiment of the present invention;

[0047] FIG4 is a flow chart of generating a corresponding optimization block from a system state input instance according to an embodiment of the present invention;

[0048] FIG5 is a flow chart of obtaining a consensus proof result of an optimization block by performing consensus verification on the optimization block by each optimization node according to an embodiment of the present invention;

[0049] FIG6 is a flowchart of verifying whether an optimization block is effective or not for a permissioned blockchain optimization by a validator node according to an embodiment of the present invention;

[0050] FIG7 is a flowchart of storing an optimized block into an optimized chain according to a consensus proof result provided by one embodiment of the present invention;

[0051] FIG8 is a flowchart of optimizing the configuration of a permissioned blockchain based on an optimized chain of stored optimized blocks, according to an embodiment of the present invention;

[0052] FIG9 is a schematic diagram illustrating an example of a blockchain configuration optimization algorithm in an optimization framework provided by an embodiment of the present invention;

[0053] FIG10 is a structural diagram of a decentralized dynamic optimization system for a permissioned blockchain according to an embodiment of the present invention;

[0054] FIG11 is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following describes embodiments of the present invention in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended only to explain the present invention and are not to be construed as limiting the present invention.

[0056] In the description of the present invention, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0057] In the description of the present invention, it should be understood that descriptions involving orientation, such as the orientation or positional relationship indicated by up, down, etc., are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention 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 on the present invention.

[0058] In the description of the present invention, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0059] The technical solutions of the present invention will be described clearly and completely below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of the present invention, not all embodiments.

[0060] Before further describing the embodiments of the present application in detail, the scenarios involved in the embodiments of the present application are described. The application scenarios of the embodiments of the present application are illustrated with some actual examples below.

[0061] Referring to Figure 1, it depicts the general architecture of a permissioned blockchain system, including a centralized optimization service 100, nodes 101, a blockchain 102, a transaction processing pool 103, a consensus protocol (data) 104, block producer nodes 105, and a peer-to-peer network 106. This general architecture relies on the centralized optimization service to achieve dynamic reconfiguration. In this permissioned blockchain system, node 101 generates and broadcasts transactions to the blockchain system. These broadcast transactions are captured by block producer nodes 105, granting node 101 the right to participate in the consensus process and obtain consensus protocol 104. Before being included in a data block, transactions are considered unconfirmed and stored in the node's transaction processing pool 103, awaiting inclusion. To achieve reconfiguration, the system relies on the centralized optimization service 100, which regularly observes the system state, calculates optimization decisions based on the latest state, and provides them to the centralized optimization service 100. A permissioned blockchain is a blockchain system that operates through a permissioned network. Compared to permissionless blockchain systems, where anyone can participate anonymously, permissioned blockchain systems require that nodes' identities be verified by an authentication service before they can participate. The decentralized dynamic optimization method for permissioned blockchains of the present invention is applicable to permissioned blockchain systems. Therefore, in the embodiments of this application, the blockchains are all assumed to be permissioned blockchains.

[0062] 2 , which describes how the decentralized dynamic optimization method for a permissioned blockchain of the present invention is applied to a permissioned blockchain system. Compared to the general architecture of a permissioned blockchain system, an optimization chain 200, a consensus protocol (optimization) 201, an optimization framework 202, and an optimization node 203 are added. The embodiments of the present application may all be applied to the scenario described in FIG. 2 .

[0063] 3 , in some embodiments of the present invention, a decentralized dynamic optimization method for a permissioned blockchain is provided, comprising:

[0064] Step S100: Obtain the system status of the permission blockchain.

[0065] Step S200: construct an optimization node, an optimization framework, and an optimization chain; wherein the optimization framework includes a blockchain configuration optimization algorithm; and each optimization node includes an instance provided by the optimization framework.

[0066] It's important to note that the optimization framework is a black box, capable of being a complete blockchain optimization solution. The core of this blockchain optimization solution lies in the blockchain configuration optimization algorithm. For example, an optimization algorithm based on Deep Q Learning (DQL) can optimize block producers, consensus algorithms, block sizes, and block intervals through this protocol. Dynamic adjustments improve the scalability of the underlying blockchain without compromising decentralization, latency, or security. When integrated, each optimization node will contain an instance of the blockchain configuration optimization algorithm. There is no restriction on whether each optimization node uses the same blockchain configuration optimization algorithm. Referring to Figure 9, blockchain configuration optimization algorithms can also include those described in "Performance Optimization for Blockchain-Enabled Industrial Internet of Things (IIoT) Systems: A Deep Reinforcement Learning Approach," "Digital twin for dynamic management of blockchain systems," and "PBRL-TChain: A performance-enhanced permissioned blockchain for time-critical applications based on reinforcement learning." Different blockchain configuration optimization algorithms may have different input and output data types, resulting in different block structures for the corresponding optimization blocks. The block structure of the optimization block here will be adjusted accordingly, but no restrictions are imposed on the block structure. "Performance Optimization for Blockchain-Enabled Industrial Internet of Things (IIoT) Systems: A Deep Reinforcement Learning Approach," published in the IEEE Transactions on Industrial Informatics, proposes a deep Q-learning-based optimization protocol that optimizes block producers, consensus algorithms, block size, and block intervals. Dynamic adjustments improve the scalability of the underlying blockchain while maintaining system decentralization, latency, and security. "Digital twin for dynamic management of blockchain systems" refers to a dynamic management system for blockchain systems based on digital twins, and related algorithms are included in arXiv."PBRL-TChain: A performance-enhanced permissioned blockchain for time-critical applications based on reinforcement learning" describes a performance-enhanced permissioned blockchain for time-critical applications based on reinforcement learning. It is commonly used in underlying public blockchain protocols like TChain. Since the example algorithms are all published in English journals, the inputs and outputs are also expressed using the variables described in the English journals.

[0067] Step S300: Input the system state into the instance to generate a corresponding optimization block; the optimization block includes the optimized system configuration information obtained through the blockchain configuration optimization algorithm.

[0068] Step S400: Consensus verification is performed on the optimization block by each optimization node to obtain a consensus proof result of the optimization block.

[0069] Step S500: Store the optimized block in the optimized chain according to the consensus proof result.

[0070] Step S600: Optimize the configuration of the permissioned blockchain according to the optimized chain of the stored optimized blocks.

[0071] This method first constructs optimization nodes, an optimization framework, and an optimization chain based on the system state of a permissioned blockchain, achieving a well-designed dynamic adjustment architecture that can adjust in real time based on the permissioned blockchain's system state. This architecture is also applicable to a wider range of task scenarios and easily migrated. Secondly, corresponding optimization blocks are generated through instances. Since instances are provided by the optimization framework, they can also be adjusted through the optimization framework. Through instances, different permissioned blockchain configuration optimization algorithms can be implemented to generate optimization blocks, improving the robustness of optimization block generation. Each optimization node then performs consensus verification on the optimization block, making each optimization node's optimization block decision-making decentralized. The optimization block is then stored through the optimization chain, making it easy for the permissioned blockchain to retrieve the configuration information in the optimization block. The optimization chain also allows for encryption and optimization traceability. Finally, the permissioned blockchain is configured and optimized based on the optimization chain of the stored optimization block, combining the advantages of achieving dynamic permissioned blockchain optimization capabilities while maintaining the key property of decentralization.

[0072] 4 , in some embodiments of the present invention, generating a corresponding optimization block from a system state input instance includes the following steps:

[0073] Step S310: A proposer node is selected from all optimized nodes using a preset proposer selection algorithm.

[0074] It should be noted that the proposer node is selected from all optimization nodes. Polling of each optimization node may be required, and a threshold limit may be set for the number of times the optimization node has been selected. No specific restrictions are set here.

[0075] Step S320: Input the system state into the instance corresponding to the proposer node, and calculate to obtain the optimized block.

[0076] It should be noted that by calculating the blockchain configuration optimization algorithm through an example, the optimized configuration information will be obtained and stored in the optimized block.

[0077] The proposer selection algorithm selects the proposer node, achieving a decentralized effect. At the same time, different proposer selection algorithms can adapt to more blockchain task scenarios and different precision requirements, improving the security and efficiency of optimized block generation.

[0078] 5 , in some embodiments of the present invention, each optimization node performs consensus verification on the optimization block to obtain a consensus proof result of the optimization block, including the following steps:

[0079] Step S410: Initiate a consensus process through the proposer node; the consensus process uses a preset consensus protocol.

[0080] It should be noted that the consensus protocol in this embodiment is a consensus protocol for optimized blocks, namely, consensus protocol (optimization) 201.

[0081] Step S420: Use other optimized nodes except the proposer node as validator nodes of the consensus process.

[0082] Step S430: If the validator node receives the optimization block and verifies that the optimization block is valid for the permission blockchain optimization, the consensus proof result is modified to pass the consensus verification; if the validator node does not receive the optimization block within the time threshold or the validator node verifies that the optimization block is invalid for the permission blockchain optimization, the consensus proof result is modified to fail the consensus verification.

[0083] Through the preset consensus protocol, the proposer node and other optimization nodes are all consensus-driven to ensure the implementation of decentralization. At the same time, the effectiveness of the optimization block on the permissioned blockchain is simulated and verified by the validator node to further ensure the optimization effect of the optimization block.

[0084] 6 , in some embodiments of the present invention, verifying by a validator node whether an optimization block is valid or invalid for a permissioned blockchain optimization includes the following steps:

[0085] Step S431: Verify the signature of the proposer node based on the system state of the permissioned blockchain and verify the block structure of the optimized block. If the signature of the proposer node matches and the block structure of the optimized block is correct, the optimization result is obtained by performing configuration optimization using the optimized block through the validator node.

[0086] It should be noted that before becoming a proposer node, as an optimization node, it already has its own signature. After becoming a proposer node, only some timestamp information changes, while the hash data of the signature does not change. Therefore, the identity verification result of the proposer node can be obtained by verifying whether the signature of the proposer node matches. At the same time, the optimization block is calculated by the blockchain configuration optimization algorithm through an instance. Therefore, the information of the optimization block is determined by the configuration owned by the permissioned blockchain. Therefore, the block structure of the optimization block is also related to the configuration owned by the permissioned blockchain. Therefore, the identity verification result of the optimization block can be obtained by optimizing the block structure of the optimization block. Finally, after the identity verification results of the proposer node and the optimization block are both passed, the optimization result is obtained by the verifier node using the optimization block to perform configuration optimization. The configuration optimization of the verifier node using the optimization block can be achieved by simulating the verifier, and no specific restrictions are made here.

[0087] Step S432: Compare the optimization result and the optimization block of the proposer node. If the optimization result and the optimization block are consistent, the optimization block is valid for the blockchain optimization; otherwise, the optimization block is invalid for the blockchain optimization.

[0088] It should be noted that the optimization result is equivalent to the simulation result, and the optimization block stores the optimization configuration information obtained through the optimization block theory. If the optimization result and the optimization configuration information of the optimization block are inconsistent, it is very likely that the optimization block has been maliciously tampered with during transmission. Therefore, in this step, the optimization result and the optimization block need to be compared.

[0089] The security and validity of the optimization block are further guaranteed through multiple verifications of the proposer node’s authentication results, the optimization block’s authentication results, and the optimization results.

[0090] 7 , in some embodiments of the present invention, storing the optimized block in the optimized chain according to the consensus proof result includes the following steps:

[0091] Step S510: Detect the consensus proof result.

[0092] Step S520: If the consensus proof result passes the consensus verification, the optimization block corresponding to the consensus proof result is stored in the optimization chain.

[0093] Judging whether to store the optimized block based on the consensus proof results can save a certain amount of computing power resources, while also avoiding the optimization of invalid optimized blocks in the permissioned blockchain, which wastes a lot of computing power resources.

[0094] 8 , in some embodiments of the present invention, performing configuration optimization on a permissioned blockchain according to an optimized chain of stored optimized blocks includes the following steps:

[0095] Step S610: Obtain the latest optimized block in the optimization chain of stored optimized blocks.

[0096] Step S620: Compare the latest optimized block with the current configuration of the permission blockchain. If the latest optimized block and the current configuration of the permission blockchain are different, update the permission blockchain using the latest optimized block.

[0097] It should be noted that the latest optimized block in the optimized chain can be obtained before each transaction on the permissioned blockchain or after each transaction on the permissioned blockchain, and a time period can also be set, which is not specifically limited here.

[0098] By real-time monitoring of the latest optimized block of the optimization chain and the current configuration of the permissioned blockchain, the current configuration of the permissioned blockchain is guaranteed to be the latest optimized block, thereby improving the throughput of the permissioned blockchain.

[0099] In some embodiments of the present invention, the proposer selection algorithm includes a round-robin algorithm and a sticky-proposer algorithm.

[0100] It should be noted that when the proposer selection algorithm is round-robin, the proposer node is updated after each optimization block is generated, so that every optimization node will traverse and become the proposer node. When the proposer selection algorithm is sticky-proposer, a single proposer node generates all optimization blocks, unless the remaining optimization nodes detect an error or malicious node, in which case a proposer node change vote is initiated, and the optimization node designated by the voting result is used as the new proposer node.

[0101] According to the round-robin algorithm and the sticky-proposer algorithm, a variety of proposer selection methods can be realized. At the same time, the round-robin algorithm and the sticky-proposer algorithm are mainstream selection algorithms, which can provide a stable and fair election method.

[0102] 10 , an embodiment of the present invention further provides a decentralized dynamic optimization system for a permissioned blockchain, including a blockchain system module 1001, a decentralized dynamic optimization module 1002, an optimized block generation module 1003, a consensus verification module 1004, an optimized chain storage module 1005, and a blockchain configuration optimization module 1006, wherein:

[0103] The blockchain system module 1001 is used to obtain the system status of the permissioned blockchain.

[0104] The decentralized dynamic optimization module 1002 is used to construct an optimization node, an optimization framework, and an optimization chain; wherein the optimization framework includes a blockchain configuration optimization algorithm; and each optimization node includes an instance provided by the optimization framework.

[0105] The optimization block generation module 1003 is used to input the system state into the instance to generate the corresponding optimization block; the optimization block includes the optimized system configuration information obtained by the blockchain configuration optimization algorithm.

[0106] The consensus verification module 1004 is used to perform consensus verification on the optimization block through each optimization node to obtain a consensus proof result of the optimization block.

[0107] The optimization chain storage module 1005 is used to store the optimization block into the optimization chain according to the consensus proof result.

[0108] The blockchain configuration optimization module 1006 is configured to optimize the configuration of the permissioned blockchain according to the optimization chain of the stored optimization blocks.

[0109] It should be noted that since the decentralized dynamic optimization system of a permissioned blockchain in this embodiment and the decentralized dynamic optimization method of a permissioned blockchain described above are based on the same inventive concept, the corresponding contents in the method embodiment are also applicable to the present device embodiment and will not be described in detail here.

[0110] 11 , another embodiment of the present invention further provides an electronic device, wherein the electronic device 6000 may be any type of smart terminal, such as a mobile phone, a tablet computer, a personal computer, and the like.

[0111] Specifically, the electronic device 6000 includes: one or more control processors 6001 and a memory 6002. Figure 11 takes one control processor 6001 and one memory 6002 as an example. The control processor 6001 and the memory 6002 can be connected via a bus or other means. Figure 11 takes the connection via a bus as an example.

[0112] The memory 6002 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions / modules corresponding to an electronic device in an embodiment of the present invention;

[0113] The control processor 6001 executes various functional applications and data processing of a decentralized dynamic optimization method for a permissioned blockchain by running the non-transient software programs, instructions, and modules stored in the memory 6002, thereby implementing a decentralized dynamic optimization method for a permissioned blockchain of the above-mentioned method embodiment.

[0114] The memory 6002 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created using a decentralized dynamic optimization method for a permissioned blockchain, etc. Furthermore, the memory 6002 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 6002 may optionally include a memory remotely located relative to the control processor 6001, and such remote memory may be connected to the electronic device 6000 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0115] One or more modules are stored in the memory 6002. When executed by the one or more control processors 6001, a decentralized dynamic optimization method of a permissioned blockchain in the above method embodiment is performed, for example, the method steps of Figures 3 to 8 described above are executed.

[0116] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0117] It should be noted that since the electronic device in this embodiment and the decentralized dynamic optimization method of the above-mentioned permission blockchain are based on the same inventive concept, the corresponding content in the method embodiment is also applicable to the device embodiment and will not be described in detail here.

[0118] One embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute: the decentralized dynamic optimization method of the permissioned blockchain as described in the above embodiment.

[0119] It should be noted that since the computer-readable storage medium in this embodiment and the decentralized dynamic optimization method of the above-mentioned permission blockchain are based on the same inventive concept, the corresponding content in the method embodiment is also applicable to the device embodiment and will not be described in detail here.

[0120] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing data (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage, or other magnetic storage devices, or any other medium that can be used to store desired data and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any data delivery media.

[0121] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, illustrative uses of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0122] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.

Claims

1. A decentralized dynamic optimization method for a permissioned blockchain, characterized in that: The decentralized dynamic optimization method of the permissioned blockchain includes: Get the system status of the permissioned blockchain; Constructing an optimization node, an optimization framework, and an optimization chain; wherein the optimization framework includes a blockchain configuration optimization algorithm; and each optimization node includes an instance provided by the optimization framework; Inputting the system state into the instance to generate a corresponding optimization block; the optimization block includes optimized system configuration information obtained by the blockchain configuration optimization algorithm; Performing consensus verification on the optimization block by each optimization node to obtain a consensus proof result of the optimization block; Storing the optimized block in the optimized chain according to the consensus proof result; The permissioned blockchain is configured and optimized according to the optimized chain storing the optimized block.

2. The decentralized dynamic optimization method for permissioned blockchain according to claim 1, characterized in that: The step of inputting the system state into the instance to generate a corresponding optimization block comprises the following steps: Selecting a proposer node from all the optimization nodes using a preset proposer selection algorithm; The system state is input into the instance corresponding to the proposer node, and the optimization block is obtained by calculation.

3. The decentralized dynamic optimization method for permissioned blockchain according to claim 2, characterized in that: The process of performing consensus verification on the optimized block by each optimized node to obtain a consensus proof result of the optimized block includes the following steps: Initiate a consensus process through the proposer node; the consensus process uses a preset consensus protocol; Using the optimization nodes other than the proposer node as validator nodes of the consensus process; If the verifier node receives the optimization block and verifies that the optimization block is valid for the permission blockchain optimization, the consensus proof result is modified to pass consensus verification; if the verifier node does not receive the optimization block within the time threshold or the verifier node verifies that the optimization block is invalid for the permission blockchain optimization, the consensus proof result is modified to fail consensus verification.

4. The decentralized dynamic optimization method for permissioned blockchain according to claim 3, characterized in that: Verifying, by the validator node, that the optimization block is valid or invalid for the permissioned blockchain optimization, comprises the following steps: Verifying the signature of the proposer node and the block structure of the optimized block based on the system state of the permissioned blockchain; if the signature of the proposer node matches and the block structure of the optimized block is correct, performing configuration optimization using the optimized block by the validator node to obtain an optimization result; Compare the optimization result and the optimization block of the proposer node. If the block is consistent, the optimization block is effective for the blockchain optimization; otherwise, the optimization block is invalid for the blockchain optimization.

5. The decentralized dynamic optimization method for permissioned blockchain according to claim 3, characterized in that: Storing the optimized block in the optimized chain according to the consensus proof result includes the following steps: Testing the consensus proof result; If the consensus proof result passes the consensus verification, the optimization block corresponding to the consensus proof result is stored in the optimization chain.

6. The decentralized dynamic optimization method for permissioned blockchain according to claim 5, characterized in that: The step of optimizing the configuration of the permissioned blockchain according to the optimized chain storing the optimized block comprises the following steps: Obtaining the latest optimized block in the optimization chain in which the optimized blocks are stored; Comparing the latest optimized block with the current configuration of the permission blockchain, if the latest optimized block and the current configuration of the permission blockchain are different, updating the permission blockchain with the latest optimized block.

7. The decentralized dynamic optimization method for permissioned blockchain according to claim 2, characterized in that: The proposer selection algorithm includes a round-robin algorithm and a sticky-proposer algorithm.

8. A decentralized dynamic optimization system for a permissioned blockchain, characterized in that: The decentralized dynamic optimization system of the permissioned blockchain includes: Blockchain system module, used to obtain the system status of the permissioned blockchain; A decentralized dynamic optimization module, configured to construct optimization nodes, an optimization framework, and an optimization chain; wherein the optimization framework includes a blockchain configuration optimization algorithm; and each optimization node includes an instance of the optimization framework. An optimization block generation module, configured to input the system state into the instance to generate a corresponding optimization block; the optimization block includes optimized system configuration information obtained by the blockchain configuration optimization algorithm; A consensus verification module, configured to perform consensus verification on the optimization block through each optimization node to obtain a consensus proof result of the optimization block; An optimization chain storage module, configured to store the optimization block in the optimization chain according to the consensus proof result; A blockchain configuration optimization module is configured to optimize the configuration of the permissioned blockchain according to the optimization chain in which the optimization block is stored.

9. An electronic device, characterized in that: The method comprises at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to perform the decentralized dynamic optimization method of the permissioned blockchain according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the decentralized dynamic optimization method of the permissioned blockchain according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Blockchain light weight processing method, blockchain node and storage medium

    CN109391643A

  • A performance optimization method and device for a block chain system

    CN109947740A

  • Block chain consensus system and control method thereof

    CN115423472A

  • System and method to manage large data in blockchain

    US20220417044A1