Data processing method and device based on block chain, equipment, medium and product

By adopting blockchain-based data processing methods in operation and maintenance management, we ensure the consistency of multiple devices when executing management instructions, solving the problems of low efficiency and poor consistency of operation and maintenance management in the existing technology, and achieving efficient and reliable operation and maintenance management.

CN119621167APending Publication Date: 2025-03-14TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311192390.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-14
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The prior art is difficult to achieve consistency of management instructions in the operation and maintenance management of multiple devices, and the operation and maintenance management efficiency is low, making it prone to misoperation and omissions.

Method used

Using blockchain-based data processing methods, management instructions are recorded and verified through the blockchain network, ensuring that all blockchain nodes execute the same management instructions in the same order, and automatically execute management instructions through the smart contract virtual machine call the plug-in adapter.

Benefits of technology

It realizes consistency between multiple devices when executing management instructions, improves operation and maintenance management efficiency, reduces manual operations and misoperation, and enhances the traceability and transparency of the management process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621167A_ABST
    Figure CN119621167A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device based on a block chain, equipment, a medium and a product, which can be applied to the fields or scenes of block chains, maps, vehicles, operation and maintenance management platforms and the like, and the method comprises the following steps: generating transaction data according to a management instruction, and sending the transaction data to an operation and maintenance block chain network, and sending the transaction data to the block outlet node, so that the block outlet node packages the transaction data into a target block and links the target block to a block chain. Each block chain node in the operation and maintenance block chain network can determine a target block from a block chain, then obtain transaction data from the target block, obtain a management instruction according to the transaction data, call a plug-in adapter through an intelligent contract virtual machine, select a target plug-in from a plurality of plug-ins according to the management instruction, and send the selected target plug-in to the operation and maintenance block chain network. Calling the target plug-in to execute the management instruction for the application program to obtain an execution result; the target plug-in is matched with the application program. According to the embodiment of the invention, the consistency of multiple devices during execution of the management instruction can be realized, and the operation and maintenance management efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based data processing method, a blockchain-based data processing device, a computer device, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the continuous development of the network, network systems have been used by all walks of life. In their daily work, operation and maintenance personnel often need to perform unified operation and maintenance management on multiple devices in the network system, such as standardized operation and maintenance operations, environmental parameter configuration, application installation, etc. At present, unified management instructions are manually issued to each device so that each device performs corresponding operation and maintenance management operations according to the management instructions. However, the above manual operation and maintenance management method is inefficient, and it is easy for operation and maintenance personnel to make mistakes and omissions when issuing management instructions, resulting in inconsistencies when each device executes the management instructions. Therefore, how to achieve consistency in the execution of management instructions by multiple devices and improve the efficiency of operation and maintenance management is a problem that needs to be solved urgently. Summary of the invention

[0003] The present application provides a blockchain-based data processing method, apparatus, equipment, medium and product, which can achieve consistency among multiple devices when executing management instructions and improve operation and maintenance management efficiency.

[0004] In a first aspect, the present application provides a data processing method based on blockchain, the method comprising:

[0005] Determine a target block from the blockchain; the target block includes transaction data, and the transaction data is generated according to the management instruction;

[0006] Acquire the transaction data from the target block, and acquire the management instruction according to the transaction data;

[0007] The plug-in adapter is called by the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and the target plug-in is called to execute the management instruction for the application to obtain an execution result; the target plug-in is adapted to the application.

[0008] In a second aspect, the present application provides another data processing method based on blockchain, the method comprising:

[0009] Obtaining a management instruction, where the management instruction is used to manage the application;

[0010] generating transaction data according to the management instruction;

[0011] The transaction data is sent to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the target block generated according to the transaction data on the blockchain, obtains the management instruction according to the target block, calls the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and calls the target plug-in to execute the management instruction for the application to obtain an execution result; the target plug-in is adapted to the application.

[0012] In a third aspect, the present application provides a data processing device based on blockchain, the device comprising:

[0013] A data acquisition module, used to determine a target block from the blockchain; the target block includes transaction data, and the transaction data is generated according to the management instruction;

[0014] The data acquisition module is further used to acquire the transaction data from the target block, and acquire the management instruction according to the transaction data;

[0015] A processing module is used to call a plug-in adapter through a smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and call the target plug-in to execute the management instruction for the application to obtain an execution result; the target plug-in is adapted to the application.

[0016] In a fourth aspect, the present application provides another data processing device based on blockchain, the device comprising:

[0017] A data acquisition module, used to acquire management instructions, wherein the management instructions are used to manage the application program;

[0018] A processing module, used for generating transaction data according to the management instruction;

[0019] The processing module is also used to send the transaction data to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the target block generated according to the transaction data on the blockchain, and obtains the management instruction according to the target block, selects a target plug-in from multiple plug-ins according to the management instruction through the smart contract virtual machine calling the plug-in adapter, and calls the target plug-in to execute the management instruction for the application to obtain an execution result; the target plug-in is adapted to the application.

[0020] The present application provides a computer device, including a processor, a memory and a network interface, wherein the processor, the memory and the network interface are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to implement the steps of the blockchain-based data processing method.

[0021] The present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and the program instructions are executed by a processor to implement the steps of the blockchain-based data processing method.

[0022] The present application provides a computer program product, which includes a computer program or computer instructions, and the computer program or computer instructions are executed by a processor to implement the steps of the above-mentioned blockchain-based data processing method.

[0023] The embodiment of the present application generates transaction data according to the management instruction, and sends the transaction data to the operation and maintenance blockchain network, so that the block node in the operation and maintenance blockchain network packages the transaction data into a target block, and links the target block to the blockchain. Each blockchain node in the operation and maintenance blockchain network can determine the target block from the blockchain, then obtain the transaction data from the target block, and obtain the management instruction according to the transaction data; since the smart contract virtual machine cannot directly call an external application, the smart contract virtual machine calls the plug-in adapter to select a target plug-in adapted to the application from multiple plug-ins according to the management instruction, and calls the target plug-in to execute the management instruction for the application, and obtain the execution result. The above method enables each blockchain node in the blockchain network to automatically execute a unified management instruction based on the target block on the blockchain. Compared with the manual operation and maintenance management method, it can achieve consistency in the execution of management instructions for multiple devices and improve the efficiency of operation and maintenance management. At the same time, the plug-in adapter includes a variety of different types of plug-ins to match management instructions for different applications, thereby improving the flexibility and compatibility of operation and maintenance management. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1A This is a schematic diagram of the architecture of a blockchain-based data processing system provided in an embodiment of the present application;

[0026] Figure 1BThis is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application;

[0027] Figure 1C It is a schematic diagram of a process of generating a new block provided by an embodiment of the present application;

[0028] Figure 2 It is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application;

[0029] Figure 3 It is a flowchart of another data processing method based on blockchain provided in an embodiment of the present application;

[0030] Figure 4 It is a flowchart of another data processing method based on blockchain provided in an embodiment of the present application;

[0031] Figure 5 This is a system architecture diagram of a blockchain-based operation and maintenance management system provided by this embodiment;

[0032] Figure 6 is a schematic block diagram of a data processing device based on blockchain provided by an embodiment of the present invention;

[0033] Figure 7 It is a schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The following will combine the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Figure 1A , is a schematic diagram of the architecture of a blockchain-based data processing system provided in an embodiment of the present application, the blockchain-based data processing system includes a blockchain network 10 and a client 102, wherein:

[0035] The blockchain network 10 refers to a network for sharing data between nodes. The blockchain network may include multiple nodes 101, wherein the multiple nodes 101 may include consensus nodes. Each node 101 can receive input information when performing normal work, and maintain the shared data (i.e., blockchain) in the blockchain network based on the received input information. Each node in the blockchain network stores an identical blockchain, which includes a series of blocks that are connected to each other in the order of their generation, such as Figure 1AAs shown in the block 1, block M, etc., once a new block is added to the blockchain, it will not be removed. The block records the record data submitted by the nodes in the blockchain network. In order to ensure the information exchange within the blockchain network, there can be an information connection between each node, and point-to-point communication can be achieved between any two nodes. Specifically, point-to-point communication can be achieved through wired communication links or wireless communication links. For example, when any node in the blockchain network receives input information, other nodes obtain the input information according to the consensus algorithm and store the input information as data in the shared data, so that the data stored on all nodes in the blockchain network are consistent.

[0036] The client 102 can access the blockchain network and communicate with nodes in the blockchain network, for example, sending transaction data to the nodes, etc. The terminal where the client 102 is located can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a car-mounted smart terminal, etc., which is not limited in the embodiments of the present application.

[0037] It should be noted that Figure 1A The number of nodes shown in the figure is only for illustration. Any number of nodes may be deployed according to actual needs. The node may refer to any form of computing device in the access network, such as a server or a user terminal, which may join and become a node.

[0038] Among them, for each node in the blockchain network, there is a node identifier corresponding to it, and each node in the blockchain network can store the node identifiers of other nodes in the blockchain network, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes. Each node can maintain a node identifier list as shown in the following table, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an Internet Protocol (IP) address and any other information that can be used to identify the node. The table only uses the IP address as an example for illustration.

[0039] Node Name Node ID Node 1 000.000.000.00a Node 2 000.000.000.00b … … Node N 000.000.000.00c

[0040] Each node in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 1BThe blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores the input information characteristic value, version number, timestamp and difficulty value, and the block body stores the input information; the next block of the genesis block takes the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information characteristic value of the current block, the block header characteristic value, version number, timestamp and difficulty value of the parent block, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.

[0041] Among them, when generating each block in the blockchain, see Figure 1C When the node where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, the input information is stored in the memory pool and the hash tree used to record the input information is updated. After that, the update timestamp is updated to the time when the input information is received, and different random numbers are tried to calculate the eigenvalue multiple times so that the calculated eigenvalue can satisfy the following formula:

[0042] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x)) <TARGET

[0043] Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, which can be determined based on nbits.

[0044] In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the blockchain network according to the node identification of other nodes in the blockchain network. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in them after the verification is completed.

[0045] Among them, smart contracts can be run on the nodes of the blockchain network, and various transactions can be realized by calling the smart contracts. Smart contracts are tamper-proof, automatically executed computer programs running on the blockchain. Smart contracts are code implementations that are executed when certain conditions are met. Developers can define the contract logic through programming languages ​​and publish it to the blockchain (smart contract registration). According to the logic of the contract terms, they call keys or other events to trigger execution and complete the contract logic. At the same time, they also provide the functions of upgrading and canceling smart contracts.

[0046] In some feasible implementations, any node 101 of the blockchain network can obtain the transaction data of the client, and the transaction data can carry the identity of the client, which can be determined according to the identity certificate of the client. The node 101 can query the identity certificate of the client from the smart contract according to the identity. If the identity certificate of the client is queried from the smart contract, and it is determined according to the identity certificate that the client has the authority to perform the transaction operation corresponding to the transaction data on the blockchain, then the node 101 can perform the transaction operation corresponding to the transaction data on the blockchain, and can use the mapping relationship between the identity carried by the transaction data and the identity certificate recorded in the smart contract to determine the identity certificate corresponding to the client, and perform the transaction operation according to the authority indicated in the identity certificate, thereby improving the security of data processing on the blockchain. Carrying only the identity in the transaction data can reduce the amount of transaction data while ensuring that the corresponding identity certificate can be obtained, compared with carrying a complete identity certificate in the transaction data, which is conducive to the rapid transmission of transaction data.

[0047] Usually, it is also necessary to generate transaction blocks for transaction data and upload the blocks to the chain (store the blocks on the blockchain). Since only the identity identifier is carried, the amount of transaction data can be reduced while ensuring that the corresponding identity certificate can be obtained, compared to carrying a complete identity certificate in the transaction data, so as to achieve a certain degree of data compression, which can reduce the consumption of blockchain storage resources.

[0048] It is understandable that in the specific implementation of the present application, when it involves target blocks, transaction data and other related data, when the embodiments of the present application apply the above data to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of the relevant regions.

[0049] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0050] See also Figure 2 , Figure 2It is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application. The data processing method in an embodiment of the present application is described on the side of a blockchain node (referring to any blockchain node in the operation and maintenance blockchain network), such as Figure 2 As shown, the blockchain-based data processing method may include:

[0051] S201. Determine the target block from the blockchain.

[0052] In the embodiment of the present application, the target block includes transaction data, which is generated according to management instructions, and the management instructions are used to instruct the application configured on the blockchain node to perform specific management operations. Since the target block is the data that has been on the blockchain and is tamper-proof, each blockchain node in the operation and maintenance blockchain network can obtain the accurate target block from the blockchain, and then perform unified operation and maintenance management operations based on the management instructions in the target block.

[0053] In one embodiment, the operation and maintenance blockchain network may refer to a blockchain network composed of multiple devices, each device (such as a cloud host) corresponds to a blockchain node, and the management server may perform unified operation and maintenance management on each blockchain node (i.e., each device) in the operation and maintenance blockchain network through management instructions. For example, the management instructions may be: installing applications (such as installing mailboxes, chat work, office software, etc.), configuring environmental parameters (such as configuring system time, firewalls, network access, etc.), installing applications in different environments (such as installing applications in test environments, development environments, production environments, etc.). In addition, the cloud service provider may perform batch patching operations, batch operation and maintenance management, etc. through the management server.

[0054] In one embodiment, the management server can assemble the management instructions into transaction data, send the transaction data to any one or more blockchain nodes in the operation and maintenance blockchain network, and the above-mentioned any one or more blockchain nodes broadcast the received transaction data to other blockchain nodes, and after the other blockchain nodes verify the transaction data, put the transaction data into the transaction pool. The operation and maintenance blockchain network elects a block node, and the block node obtains multiple transaction data from the transaction pool and packages them into a target block, and broadcasts the target block to the operation and maintenance blockchain network, so that other blockchain nodes can reach a consensus on the target block. Finally, after the consensus is passed, the block node adds the target block to the blockchain.

[0055] The above method assembles management instructions into transaction data and adds it to the blockchain, ensuring the non-tamperability of management instructions. In addition, the source, content and execution results of management instructions can be accurately recorded and verified, which ensures the traceability, transparency and credibility of the operation and maintenance management process. At the same time, operation and maintenance management no longer relies on a centralized management server, and management instructions can be broadcast and shared between various blockchain nodes in the form of transactions in the operation and maintenance blockchain network. In addition, by broadcasting transaction data to other blockchain nodes, multi-node verification of management instructions is achieved, ensuring the authenticity and accuracy of management instructions in transaction data, which can avoid misoperation and omissions of operation and maintenance personnel during operation and maintenance management, and ensure the consistency of multiple devices when executing management instructions.

[0056] S202: Acquire transaction data from the target block, and acquire management instructions according to the transaction data.

[0057] In the embodiment of the present application, after receiving the target block on the chain, the blockchain node extracts the transaction data from the target block and obtains the management instruction according to the transaction data. Since the target block is tamper-proof on the blockchain, the blockchain node obtains the management instruction through the above method, which can ensure the authenticity and accuracy of the management instruction, thereby ensuring that the blockchain node can correctly execute the management instruction for the application in the future.

[0058] S203, calling the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and calling the target plug-in to execute the management instruction for the application to obtain the execution result.

[0059] Among them, the smart contract virtual machine is an environment for running smart contracts, which is used to provide methods for executing and verifying smart contracts on the blockchain. The plug-in adapter is a bridge connecting the smart contract virtual machine and multiple plug-ins. The plug-in adapter provides an interface that can be called by the smart contract virtual machine, so that the smart contract virtual machine can communicate and interact with different plug-ins by calling the interface. For example, the plug-in adapter passes the management instruction to the target plug-in, so that the target plug-in executes the operation and maintenance management operation corresponding to the management instruction.

[0060] The plug-in adapter corresponds to multiple plug-ins, the target plug-in is adapted to the application, and the target plug-in can be used to execute management instructions related to the application. Exemplarily, when the applications are mailboxes, chat tools, and office software, the corresponding target plug-ins can be management tools related to these applications, such as mail server management plug-ins, chat tool configuration plug-ins, office software installation plug-ins, etc. When executing management instructions, the plug-in adapter will use the smart contract virtual machine to call the target plug-in adapted to the application, thereby calling the target plug-in to execute management instructions for the application. The above method can help operation and maintenance personnel better control and manage different types of applications on blockchain nodes, improving the efficiency and flexibility of operation and maintenance management.

[0061] In the embodiment of the present application, since the smart contract virtual machine cannot directly call external applications, the smart contract virtual machine calls the plug-in adapter to select a target plug-in that is compatible with the application from multiple plug-ins according to the management instruction, and calls the target plug-in to execute the management instruction for the application and obtain the execution result. Through the above method, the blockchain node can execute the management instruction for the application through the smart contract virtual machine, realizing the automatic execution of the management instruction.

[0062] After the target block generated by the management instruction is added to the blockchain, since each blockchain node in the operation and maintenance blockchain network can execute the above steps S201-S203, each blockchain node can execute a unified management instruction based on the target block on the blockchain. Compared with the manual operation and maintenance management method, the consistency of multiple devices in executing management instructions can be achieved, and the operation and maintenance management efficiency can be improved. At the same time, different types of plug-ins can be added to the plug-in adapter, and different types of plug-ins can execute corresponding management instructions for different applications, thereby improving the flexibility of operation and maintenance management.

[0063] In the embodiment of the present application, the blockchain node determines the target block from the blockchain; obtains transaction data from the target block, and obtains management instructions based on the transaction data; because the smart contract virtual machine cannot directly call an external application, the smart contract virtual machine calls the plug-in adapter to select a target plug-in that is compatible with the application from multiple plug-ins according to the management instruction, and calls the target plug-in to execute the management instruction for the application and obtain the execution result. Each blockchain node in the blockchain network can execute unified management instructions based on the target block on the blockchain according to the above method. Compared with the manual operation and maintenance management method, it can achieve consistency in the execution of management instructions for multiple devices and improve the efficiency of operation and maintenance management. At the same time, the plug-in adapter includes a variety of different types of plug-ins to match management instructions for different applications, thereby improving the flexibility and compatibility of operation and maintenance management.

[0064] See also Figure 3 , Figure 3 is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application. The data processing method in an embodiment of the present application is described on the management server side, such as Figure 3 As shown, the blockchain-based data processing method may include:

[0065] S301: Obtain management instructions.

[0066] Among them, management instructions are used to manage applications. For example, management instructions can be: installing applications (such as installing mailboxes, chat work, office software, etc.), configuring environmental parameters (such as configuring system time, firewall, network access, etc.), installing applications in different environments (such as installing applications in test environments, development environments, production environments, etc.).

[0067] In one embodiment, the operation and maintenance personnel can fill in and submit management instructions in the visual interface provided by the blockchain operation and maintenance management platform, and the management server obtains the above management instructions from the blockchain-based operation and maintenance management platform.

[0068] S302: Generate transaction data according to the management instruction.

[0069] In one embodiment, the management server may assemble the management instructions into transaction data. Exemplarily, the management server may first parse the management instructions to determine the operations and related parameters required to execute the instructions. The management server generates transaction data based on the parsed management instructions. The transaction data includes information such as the sender address, receiver address, transaction type, and operation parameters of the transaction. These transaction data will be used to execute the operations corresponding to the management instructions on the blockchain nodes in the operation and maintenance blockchain network.

[0070] S303, sending the transaction data to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the target block generated according to the transaction data on the blockchain, obtains the management instruction according to the target block, calls the plug-in adapter through the smart contract virtual machine to select the target plug-in from multiple plug-ins according to the management instruction, and calls the target plug-in to execute the management instruction for the application to obtain the execution result.

[0071] The target plug-in is adapted to the application program. The implementation of the above steps S301-S303 can refer to the relevant description in the above embodiment, which will not be repeated here.

[0072] In an embodiment of the present application, after obtaining the management instruction, the management server generates transaction data according to the management instruction and sends the transaction data to the operation and maintenance blockchain network. Each blockchain node in the operation and maintenance blockchain network can determine the target block from the blockchain; obtain transaction data from the target block, and obtain management instructions based on the transaction data; since the smart contract virtual machine cannot directly call an external application, the smart contract virtual machine calls the plug-in adapter to select a target plug-in adapted to the application from multiple plug-ins according to the management instruction, and calls the target plug-in to execute the management instruction for the application, and obtain the execution result. The above method enables each blockchain node in the blockchain network to execute a unified management instruction based on the target block on the blockchain. Compared with the manual operation and maintenance management method, it can realize the automated management of the applications on each blockchain node, reduce manual operation and intervention, achieve consistency of multiple devices when executing management instructions, and improve the efficiency of operation and maintenance management. At the same time, different types of plug-ins can be added to the plug-in adapter, and management instructions can be executed by calling the corresponding plug-in, thereby improving the flexibility of operation and maintenance management.

[0073] In addition, due to the decentralized nature of the blockchain network, management instructions can be confirmed and verified by all nodes in the network. Transaction data and target blocks are stored on the blockchain, ensuring the data cannot be tampered with and reliable, and the execution results of each blockchain node can be uploaded to the chain, which ensures the traceability of the entire operation and maintenance management process, facilitating auditing and problem location.

[0074] See also Figure 4 , Figure 4 is a flowchart of a data processing method based on blockchain provided by an embodiment of the present application. The data processing method of the embodiment of the present application is described by the interaction process between the blockchain node and the management server in the blockchain network, such as Figure 4 As shown, the blockchain-based data processing method may include:

[0075] S401: The management server obtains a management instruction.

[0076] The management instructions are used to manage the application programs.

[0077] S402: The management server generates transaction data according to the management instruction.

[0078] S403. The management server sends the transaction data to the operation and maintenance blockchain network.

[0079] S404: The block-producing node packages the transaction data into a target block.

[0080] Among them, the block-producing node is a blockchain node in the operation and maintenance blockchain network.

[0081] S405. The block-producing node links the target block to the blockchain.

[0082] S406. The blockchain node determines the target block from the blockchain.

[0083] In one embodiment, the execution entity of steps S404-S406 may be each blockchain node in the operation and maintenance blockchain network.

[0084] S407. The blockchain node obtains transaction data from the target block and obtains management instructions based on the transaction data.

[0085] In one embodiment, the above steps S404-S406 can be implemented by the blockchain node determining the target block from the blockchain through the smart contract virtual machine, and the above step S407 can be implemented by the blockchain node obtaining transaction data from the target block through the smart contract virtual machine, and obtaining management instructions based on the transaction data through the smart contract virtual machine.

[0086] The implementation of the above steps S401-S407 can refer to the relevant description in the above embodiments, which will not be repeated here.

[0087] S408. The blockchain node calls the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and calls the target plug-in to execute the management instruction for the application to obtain the execution result.

[0088] In one embodiment, the blockchain node selects a target plug-in from multiple plug-ins according to a management instruction by calling a plug-in adapter through a smart contract virtual machine, which can be implemented according to the following steps:

[0089] (1) The blockchain node calls the plug-in adapter through the smart contract virtual machine to determine the plug-in selection reference information according to the management instructions.

[0090] The plug-in selection reference information is the indication information for determining the target plug-in, and the plug-in selection reference information includes one or more of the plug-in type identifier carried in the management instruction and the instruction type of the management instruction. The blockchain node can select a matching target plug-in from multiple plug-ins based on the plug-in selection reference information.

[0091] The plug-in type identifier can identify the type of plug-in that needs to be managed, such as a shell plug-in, a python plug-in, a database plug-in, a security plug-in, etc. Each plug-in type identifier corresponds to a type of plug-in, such as plug-in type identifier 1 corresponds to a shell plug-in, and plug-in type identifier 2 corresponds to a python plug-in.

[0092] The instruction type of the management instruction can also identify the type of plug-in that needs to be managed, such as application update, system configuration upgrade, etc. Each instruction type of management instruction corresponds to a type of plug-in, such as the instruction type of system configuration upgrade corresponds to the shell plug-in, and the instruction type of application update corresponds to the python plug-in.

[0093] (2) The blockchain node selects a target plug-in from multiple configured plug-ins based on the plug-in selection reference information.

[0094] In the embodiment of the present application, the target plug-in is selected from multiple configured plug-ins through plug-in selection reference information, which improves the accuracy of plug-in selection and ensures the correct execution of management instructions.

[0095] In one embodiment, the plug-in selection reference information may include the instruction type of the management instruction. The instruction type of the management instruction may refer to the instruction data type of the management instruction, such as the instruction data type may include a shell data type, a python data type, etc. Management instructions of different instruction data types correspond to different plug-ins, such as a management instruction of a shell data type corresponds to a shell type plug-in, and a management instruction of a python data type corresponds to a python type plug-in. The blockchain node can automatically and accurately select a target plug-in that matches the management instruction from multiple plug-ins according to the instruction data type corresponding to the management instruction. It should be noted that the setting of the instruction data type of the above management instruction is only exemplary. According to actual conditions, more types of instruction types can be set, such as java type plug-ins, etc.

[0096] The instruction type of a management instruction may also refer to the instruction function type of the management instruction, such as the instruction function type may include system operation and maintenance management functions, operation and maintenance management functions of installed applications, etc. Management instructions of different instruction function types correspond to different plug-ins, such as management instructions of system operation and maintenance management functions correspond to shell type plug-ins, and management instructions of operation and maintenance management functions of installed applications correspond to python type plug-ins. Blockchain nodes can automatically and accurately select a target plug-in that matches the management instruction from multiple plug-ins according to the instruction function type corresponding to the management instruction. It should be noted that the setting of the instruction function type of the above management instruction is only exemplary. According to actual conditions, more fine-grained instruction types can be set, such as installing plug-ins corresponding to different applications.

[0097] It should be noted that the blockchain node can also determine the target plug-in in combination with the plug-in type identifier carried in the management instruction and the instruction type of the management instruction, thereby ensuring the diversity of the plug-in selection reference information. By determining the target plug-in through multi-dimensional plug-in selection reference information, the accuracy of the target plug-in selection can be improved, thereby ensuring the stability of calling the target plug-in to execute management instructions for the application.

[0098] S409. The blockchain node returns the execution result.

[0099] Among them, the blockchain node can return the execution result to the management server, such as execution success or execution failure.

[0100] In one embodiment, there are multiple transaction data, and the target block includes multiple transaction data and sequence identifiers of each transaction data. The sequence identifier is determined according to the execution order of the corresponding management instructions. Based on this, the above step S407 can be implemented according to the following steps:

[0101] (1) The blockchain node obtains multiple transaction data and the sequence identifier of each transaction data from the target block.

[0102] In the embodiment of the present application, the sequence identifier is determined according to the execution order of the corresponding management instructions, and is used to identify the sequential position of the transaction data in the target block. The blockchain node obtains multiple transaction data and the sequence identifier of each transaction data from the target block to ensure that each management instruction in each transaction data is executed in the order corresponding to the sequence identifier.

[0103] (2) The blockchain node obtains multiple management instructions based on multiple transaction data, and determines the execution order of the multiple management instructions based on the sequence identifiers of each transaction data.

[0104] In the embodiment of the present application, the blockchain node parses each transaction data to obtain the corresponding management instruction according to the extracted multiple transaction data. According to the sequence identifier of each transaction data, the execution order of multiple management instructions is determined so that these management instructions can be executed in the correct order later, which ensures that multiple management operations for the application are executed in the correct order, improving the accuracy and reliability of the management operation.

[0105] Based on this, the above step S408 can be implemented according to the following steps: the blockchain node calls the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to multiple management instructions, and calls the target plug-in to execute multiple management instructions for the application in the execution order.

[0106] In an embodiment of the present application, each blockchain node in the operation and maintenance blockchain network calls the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to multiple management instructions, and executes the management instructions in sequence according to the execution order, thereby ensuring the consistency and correctness of management operations on multiple nodes.

[0107] In one embodiment, multiple management instructions may correspond to the same target plug-in, so the blockchain node may call the target plug-in to execute the multiple management instructions for the application in the execution order; in addition, multiple management instructions may also correspond to different target plug-ins, so the blockchain node may call the corresponding target plug-in for each management instruction in the execution order to execute the management instructions for the application, which improves the flexibility of operation and maintenance management.

[0108] For example, the operation and maintenance personnel want to perform the following three operation and maintenance management on each blockchain node: install mailbox, configure system time, and update chat tools, and the three operation and maintenance management have a certain order. Then, the operation and maintenance personnel will submit three management instructions corresponding to the three operation and maintenance management:

[0109] Management instruction 1: Install mailbox.

[0110] Management instruction 2: Configure system time.

[0111] Management Directive 3: Update chat tools.

[0112] After receiving the three management instructions, the management server will assemble them into three transaction data, namely: transaction data 1, transaction data 2, and transaction data 3, and send the three transaction data to the operation and maintenance blockchain network. The blockchain nodes in the operation and maintenance blockchain network will store the target blocks generated according to the three transaction data on the blockchain.

[0113] In the target block, the three transaction data will include sequence identifiers corresponding to the execution order of the management instructions. For example, the sequence identifiers of the three transaction data can be 1, 2 and 3 respectively, indicating that transaction data 1 is executed first, transaction data 2 is executed second, and transaction data 3 is executed third.

[0114] In this way, each blockchain node can identify the transaction data in the target block in sequence to ensure the orderly execution of management instructions, thereby ensuring the consistency of operation and maintenance management on each blockchain node.

[0115] In one embodiment, the management server may further perform the following steps:

[0116] (1) Obtain the execution results of each blockchain node in the operation and maintenance blockchain network for management instructions.

[0117] Among them, the execution results of each blockchain node for the management instruction may include: execution success or execution failure.

[0118] It should be noted that the execution results of each blockchain node for management instructions can be other execution results in addition to successful execution and failed execution, such as being executed, insufficient authority, repeated operations, instruction errors, execution timeouts, etc. The type of execution result can be preset, and the embodiments of the present application do not limit it. By customizing multiple types of execution results, the execution process and results of management instructions can be more comprehensively recorded and displayed in the blockchain network, which helps operation and maintenance personnel solve various problems in operation and maintenance management based on the execution results, thereby improving management efficiency and bringing good operating experience to operation and maintenance personnel. In the embodiments of the present application, the execution results including successful execution and failed execution will be used as an example for explanation, and will not be repeated in subsequent embodiments.

[0119] (2) According to the execution results of each blockchain node for the management instruction, the proportion of the first blockchain node is determined, and the execution result of the first blockchain node for the management instruction is successful.

[0120] (3) If the proportion of the first blockchain node is greater than the proportion threshold, the second blockchain node is removed from the operation and maintenance blockchain network, and the execution result of the second blockchain node for the management instruction is execution failure.

[0121] In the above steps (1)-(3), the management server calculates the proportion of the first blockchain nodes that have been successfully executed to the total number of blockchain nodes based on the execution results of each blockchain node for the same management instruction. If the proportion is greater than the preset threshold, it means that most of the blockchain nodes in the operation and maintenance blockchain network can implement the corresponding operation and maintenance management operations. In this case, the first blockchain node is regarded as a blockchain node with normal functions. The second blockchain node that failed to execute is regarded as a blockchain node with abnormal functions. The management server removes the second blockchain node from the operation and maintenance blockchain network, which can improve the robustness and stability of the operation and maintenance blockchain network.

[0122] In one embodiment, the management server may store the execution results of each blockchain node on the blockchain. At the same time, the management server may determine the overall execution result corresponding to the management instruction according to the execution results of each blockchain node for the management instruction. For example, when the proportion of the first blockchain node is greater than the proportion threshold, the execution success is taken as the overall execution result. When the proportion of the first blockchain node is less than or equal to the proportion threshold, the execution failure is taken as the overall execution result. The management server may store one or more of the execution results of each blockchain node for the management instruction and the overall execution result on the blockchain, thereby ensuring the traceability of the operation and maintenance management process and results.

[0123] In one embodiment, if the proportion of the first blockchain node is less than or equal to the proportion threshold, it means that most of the blockchain nodes in the operation and maintenance blockchain network cannot implement the corresponding operation and maintenance management operation, then the management server can perform fault detection to improve the success rate of subsequent management instructions and enhance the reliability and stability of the operation and maintenance blockchain network. Exemplarily, fault detection may include the following operations:

[0124] 1. Check management instructions: The management server can check whether the parameters in the management instructions are correct to avoid the failure of most blockchain nodes in the operation and maintenance blockchain network due to incorrect management instructions.

[0125] 2. Node detection: The management server can check the communication connection between each blockchain node, the configuration of the application, the network environment, etc., and improve the execution success rate of management instructions by repairing faults.

[0126] 3. Application compatibility detection: If there is an incompatible version of the application on the blockchain node, you can consider updating the application version to resolve the compatibility issue.

[0127] In one embodiment, the management server may further perform the following steps:

[0128] (1) If the management instruction does not carry a node identifier, the step of generating transaction data according to the management instruction and subsequent steps are executed.

[0129] (2) If the management instruction carries a node identifier, the management instruction is sent to the blockchain node corresponding to the node identifier in the operation and maintenance blockchain network, so that the blockchain node corresponding to the node identifier executes the management instruction for the application.

[0130] In the above steps (1)-(2), the management server first determines whether the management instruction carries a node identifier. If the management instruction does not carry a node identifier, the management instruction needs to be executed on each blockchain node. If the management instruction carries a node identifier, the management instruction needs to be executed on the blockchain node specified by the node identifier. In this case, the management server does not need to encapsulate the management instruction as transaction data, but directly sends the management instruction to the blockchain node corresponding to the node identifier in the operation and maintenance blockchain network, so that the blockchain node corresponding to the node identifier executes the management instruction for the application. The above method can accurately specify which node performs the management operation and flexibly schedule the resources of each node. In this way, the management server can quickly determine the sending method of the management instruction by detecting whether the management instruction carries a node identifier. At the same time, the management server can adapt to the operation and maintenance management needs in various situations, thereby improving the flexibility of operation and maintenance management.

[0131] In one embodiment, the management server may further perform the following steps:

[0132] (1) Determine the plug-in adjustment information.

[0133] The plug-in adjustment information provides specific requirements for adjusting or managing the plug-in. For example, the plug-in adjustment information may be content related to operations such as adding a plug-in, modifying or deleting a function, and the like.

[0134] (2) Generate plug-in adjustment transaction data based on the plug-in adjustment information.

[0135] Among them, the management server can assemble the plug-in adjustment information into plug-in adjustment transaction data, which is used to send the parameters, instructions, etc. corresponding to the plug-in adjustment information to the operation and maintenance blockchain network in the form of transactions, which ensures the traceability of the plug-in adjustment operation on the plug-in adapter.

[0136] (3) Send the plug-in adjustment transaction data to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the plug-in adjustment block generated according to the plug-in adjustment transaction data on the blockchain, obtains the plug-in adjustment information according to the plug-in adjustment block, calls the plug-in adapter through the smart contract virtual machine to select an adjustment plug-in from multiple plug-ins according to the plug-in adjustment information, and calls the adjustment plug-in to adjust the plug-in according to the plug-in adjustment information.

[0137] The adjustment plug-in is a plug-in specifically used for plug-in adjustment, such as the adjustment plug-in can be a shell plug-in, a python plug-in, etc. Exemplarily, a shell plug-in can be used for a shell application, and a python plug-in can be used for a python application.

[0138] Each blockchain node in the operation and maintenance blockchain network can receive the plug-in adjustment block, and select the corresponding adjustment plug-in to perform the plug-in adjustment operation according to the plug-in adjustment information in the plug-in adjustment block, so that the plug-in can be adjusted and managed accurately. The above method can expand the function of the plug-in adapter by adding plug-ins without rebuilding the plug-in adapter, making the plug-in adapter highly scalable. By customizing different types of plug-ins, more external applications can be supported and data type conversion can be completed.

[0139] In one embodiment, the blockchain node may further perform the following steps:

[0140] (1) Determine the plug-in adjustment block from the blockchain.

[0141] The plug-in adjustment block includes plug-in adjustment transaction data, and the plug-in adjustment transaction data is generated according to the plug-in adjustment information.

[0142] (2) Obtain the plug-in adjustment transaction data from the plug-in adjustment block, and obtain the plug-in adjustment information according to the plug-in adjustment transaction data.

[0143] (3) Calling the plug-in adapter through the smart contract virtual machine selects an adjustment plug-in from multiple plug-ins according to the plug-in adjustment information, and calling the adjustment plug-in to adjust the plug-in according to the plug-in adjustment information.

[0144] The implementation of the above steps S401-S407 can refer to the relevant description in the above embodiments, which will not be repeated here.

[0145] In one embodiment, the management server can adjust the plug-in in the plug-in adapter backed up in the management server in response to the plug-in adjustment request (such as plug-in addition, plug-in deletion, plug-in update), and obtain the adjusted plug-in adapter; the adjusted plug-in adapter is configured to each blockchain node in the operation and maintenance blockchain network, so that the blockchain node in the operation and maintenance blockchain network calls the adjusted plug-in adapter through the smart contract virtual machine to execute the management instructions in the subsequent received block for the application. The management server can choose the appropriate method from the two methods of adjusting the plug-in through this method and adjusting the plug-in by sending it to the operation and maintenance blockchain network in the form of transaction data in the aforementioned embodiment, thereby improving the flexibility of plug-in adjustment.

[0146] The data processing system (i.e., blockchain-based operation and maintenance management system) in the embodiment of the present application is described below:

[0147] The target users of the data processing system may include: enterprise operation and maintenance personnel, cloud service providers. The target users need to perform unified operation and maintenance management on multiple machines in their daily work, as follows:

[0148] Enterprise operation and maintenance personnel can perform the following tasks based on the data processing system:

[0149] a. Standardized operation and maintenance of enterprise machines, such as mailbox, chat work, office software installation, and application testing.

[0150] b. Environmental parameter configuration, such as system time configuration, firewall configuration, and network access settings.

[0151] c. Applications developed by the company are installed in different environments, such as test environment, development environment, and production environment.

[0152] At the same time, cloud service providers can also perform operations such as batch patching and batch operation and maintenance based on data processing systems.

[0153] The core needs of target users are as follows:

[0154] 1. Execute the same management instructions in the same order on all nodes.

[0155] 2. Ensure that the execution results of most nodes are consistent.

[0156] 3. Realize the sending of management instructions and the traceability of management processes and results.

[0157] The system architecture of the blockchain-based operation and maintenance management system in the embodiment of the present application is as follows: Figure 5 As shown, it mainly includes an operation and maintenance management platform (such as a management platform corresponding to a management server) and an operation and maintenance blockchain network.

[0158] The operation and maintenance management platform mainly includes the following functions:

[0159] 1. Allow users to fill in management instructions through the blockchain operation and maintenance management platform. This function is implemented by the front-end visual interface provided by the operation and maintenance management platform.

[0160] 2. Assemble management instructions into transaction data. This function is implemented by the blockchain transaction generator.

[0161] 3. Display the execution status of transaction data in each node. This function is realized by the blockchain transaction browser.

[0162] 4. Send transaction data to the operation and maintenance blockchain network. This function is implemented by the blockchain transaction sender.

[0163] 5. Send management instructions to specific nodes in the operation and maintenance blockchain network. This function is implemented by the instruction sender.

[0164] The operation and maintenance blockchain network includes multiple cloud hosts with blockchain servers, such as cloud host A, cloud host B, and cloud host C. Each cloud host corresponds to a blockchain node. The smart contract virtual machine in the blockchain node is connected to the plug-in adapter through an interface, so that the smart contract virtual machine can call the plug-in adapter to select a target plug-in from multiple plug-ins according to management instructions, and call the target plug-in to execute management instructions for the application.

[0165] In the operation and maintenance of blockchain networks, private chains and RAFT consensus mechanisms can be used. In addition, smart contracts need to call applications configured on the cloud host where the blockchain nodes are located (such as python applications, Shell applications, etc.). At the same time, the needs of each blockchain node need to be saved in the smart contract.

[0166] Since the smart contract virtual machine cannot directly call external applications, it is necessary to transform the smart contract virtual machine so that the transformed smart contract virtual machine can call the plug-in adapter. The plug-in adapter provides an interface that implements the calling of plug-ins and returns the execution results to the smart contract virtual machine. The architecture of the above plug-in adapter allows the smart contract virtual machine to only connect to one interface, reducing the difficulty of transformation. At the same time, by adding plug-ins in the plug-in adapter to expand the function of the adapter without restarting the adapter, the scalability is extremely high, and more external applications can be supported by customizing plug-ins. The plug-in adapter automatically selects the corresponding plug-in to execute the management instruction according to the management instruction and completes the data type conversion.

[0167] During the transaction data execution process, each blockchain node will execute in sequence according to the order of each transaction data on the blockchain. If the execution results of most blockchain nodes are consistent, the execution result will be recognized and stored in the smart contract. Blockchain nodes that cannot maintain the latest status (such as blockchain nodes corresponding to execution failures) will be eliminated and can be rejoined to the chain after repairing and synchronizing the blockchain nodes. At the same time, the newly added blockchain nodes can quickly synchronize the pre-existing blockchain data and execute each management instruction in sequence according to the order of each transaction data on the blockchain.

[0168] Based on the above embodiments, the beneficial effects of the present application are:

[0169] 1. Improved consistency and traceability of operation and maintenance management: Blockchain technology is used to record and disseminate management instructions, ensuring that all blockchain nodes execute the same management instructions in the same order, and at the same time ensuring that the execution results of most blockchain nodes are consistent, which helps to improve the reliability and accuracy of operation and maintenance management, thereby reducing errors and failures caused by human factors. In addition, the execution process and results of management instructions are stored on the chain, which facilitates auditing and realizes the traceability of the operation and maintenance management process.

[0170] 2. Improved system security and reliability: Through decentralized design, single point failure risks are avoided, achieving higher availability and security. In addition, due to the immutability and traceability of blockchain technology, the data security and integrity of the system can be better protected, thereby improving the reliability of the system.

[0171] 3. Improved the scalability and maintainability of the entire system: The private chain and RAFT consensus mechanism based on blockchain technology can ensure security, high performance, high scalability and high maintainability, which helps to reduce the maintenance and upgrade costs of the system, thereby improving the maintainability and scalability of the system.

[0172] In summary, the embodiments of the present application provide an efficient and reliable operation and maintenance management solution that can achieve command consistency and traceability on most blockchain nodes, and has the advantages of high performance, scalability, and maintainability. This helps to improve the efficiency and reliability of enterprise operation and maintenance management, thereby bringing more business value and competitive advantages to enterprises and cloud service providers.

[0173] See also Figure 6 , is a schematic diagram of a data processing device based on blockchain provided in an embodiment of the present application. The data processing device described in this embodiment can be applied to an embodiment, and the data processing device includes:

[0174] The data acquisition module 601 is used to determine a target block from the blockchain; the target block includes transaction data, and the transaction data is generated according to the management instruction;

[0175] The data acquisition module 601 is further used to acquire the transaction data from the target block, and acquire the management instruction according to the transaction data;

[0176] Processing module 602 is used to call the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the above management instructions, and call the above target plug-in to execute the above management instructions for the application to obtain an execution result; the above target plug-in is adapted to the above application.

[0177] Optionally, the processing module 602, when used to select a target plug-in from multiple plug-ins according to the management instruction by calling the plug-in adapter through the smart contract virtual machine, is specifically used to:

[0178] Determine the plug-in selection reference information according to the above management instruction by calling the plug-in adapter through the smart contract virtual machine; the above plug-in selection reference information includes one or more of the plug-in type identifier carried in the above management instruction and the instruction type of the above management instruction;

[0179] A target plug-in is selected from multiple configured plug-ins according to the plug-in selection reference information.

[0180] Optionally, the processing module 602 is further configured to:

[0181] Determine a plug-in adjustment block from the blockchain; the plug-in adjustment block includes plug-in adjustment transaction data, and the plug-in adjustment transaction data is generated according to the plug-in adjustment information;

[0182] Obtaining the plug-in adjustment transaction data from the plug-in adjustment block, and obtaining the plug-in adjustment information according to the plug-in adjustment transaction data;

[0183] The above-mentioned plug-in adapter is called by the above-mentioned smart contract virtual machine to select an adjustment plug-in from multiple plug-ins according to the above-mentioned plug-in adjustment information, and the above-mentioned adjustment plug-in is called to adjust the plug-in according to the above-mentioned plug-in adjustment information.

[0184] Optionally, there are multiple pieces of transaction data, and the target block includes multiple pieces of transaction data and sequence identifiers of each piece of transaction data, and the sequence identifier is determined according to the execution order of the corresponding management instruction;

[0185] The data acquisition module 601, when used to acquire the transaction data from the target block and acquire the management instruction according to the transaction data, is specifically used to:

[0186] Obtaining the plurality of transaction data and sequence identifiers of the transaction data from the target block;

[0187] Acquire multiple management instructions according to the multiple transaction data, and determine the execution order of the multiple management instructions according to the sequence identifiers of the multiple transaction data;

[0188] The processing module 602, when used to call the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and call the target plug-in to execute the management instruction for the application, is specifically used to:

[0189] The plug-in adapter is called through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the above multiple management instructions, and the above target plug-in is called to execute the above multiple management instructions for the application in the above execution order.

[0190] The data processing device described in this embodiment may be applied to another embodiment, and the data processing device includes:

[0191] The data acquisition module 601 is used to acquire management instructions, and the management instructions are used to manage the application program;

[0192] Processing module 602, used to generate transaction data according to the above management instructions;

[0193] The above-mentioned processing module 602 is also used to send the above-mentioned transaction data to the operation and maintenance blockchain network, so that each blockchain node in the above-mentioned operation and maintenance blockchain network will store the target block generated according to the above-mentioned transaction data on the blockchain, and obtain the above-mentioned management instruction according to the above-mentioned target block, and select the target plug-in from multiple plug-ins according to the above-mentioned management instruction through the smart contract virtual machine calling the plug-in adapter, and call the above-mentioned target plug-in to execute the above-mentioned management instruction for the application to obtain the execution result; the above-mentioned target plug-in is adapted to the above-mentioned application.

[0194] Optionally, the processing module 602 is further configured to:

[0195] Obtain the execution results of the above management instructions by each blockchain node in the above operation and maintenance blockchain network;

[0196] According to the execution results of the above-mentioned each blockchain node for the above-mentioned management instruction, the proportion of the first blockchain node is determined, and the execution result of the above-mentioned first blockchain node for the above-mentioned management instruction is successful;

[0197] If the proportion of the above-mentioned first blockchain node is greater than the proportion threshold, the second blockchain node will be removed from the above-mentioned operation and maintenance blockchain network, and the execution result of the above-mentioned second blockchain node for the above-mentioned management instruction will be execution failure.

[0198] Optionally, the processing module 602 is further configured to:

[0199] If the management instruction does not carry a node identifier, the step of generating transaction data according to the management instruction and subsequent steps are executed;

[0200] If the above-mentioned management instruction carries the above-mentioned node identifier, the above-mentioned management instruction will be sent to the blockchain node corresponding to the above-mentioned node identifier in the above-mentioned operation and maintenance blockchain network, so that the blockchain node corresponding to the above-mentioned node identifier executes the above-mentioned management instruction for the above-mentioned application.

[0201] Optionally, the processing module 602 is further configured to:

[0202] Determine plugin adjustment information;

[0203] Generate plug-in adjustment transaction data according to the above plug-in adjustment information;

[0204] The plug-in adjustment transaction data is sent to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the plug-in adjustment block generated according to the plug-in adjustment transaction data on the blockchain, obtains the plug-in adjustment information according to the plug-in adjustment block, calls the plug-in adapter through the smart contract virtual machine to select an adjustment plug-in from multiple plug-ins according to the plug-in adjustment information, and calls the adjustment plug-in to perform plug-in adjustment according to the plug-in adjustment information.

[0205] It should be noted that the functions of each functional module of the data processing device in the embodiment of the present application can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0206] In a feasible embodiment, the blockchain-based data processing device provided in the embodiment of the present application can be implemented in software. The blockchain-based data processing device can be stored in a memory. It can be software in the form of programs and plug-ins, and includes a series of units, including a processing unit and a communication unit; wherein the processing unit and the communication unit are used to implement the blockchain-based data processing method provided in the embodiment of the present application.

[0207] In other feasible embodiments, the blockchain-based data processing device provided in the embodiments of the present application may also be implemented in a combination of software and hardware. As an example, the blockchain-based data processing device provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the blockchain-based data processing method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor may adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0208] See also Figure 7 , is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device described in this embodiment includes: a processor 701, a memory 702, and a network interface 703. The processor 701, the memory 702, and the network interface 703 can exchange data. For example, they are connected through one or more communication buses, and the communication buses are used to realize the communication connection between these components.

[0209] The processor 701 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0210] The memory 702 may include a read-only memory and a random access memory, and provide program instructions and data to the processor 701. The memory 702 may include a volatile memory, such as a random access memory (RAM); the memory 702 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the memory 702 may also include a combination of the above-mentioned types of memory. In a feasible embodiment, the computer device may be applied to an embodiment, and the processor 701 is used to perform the following operations when calling the above-mentioned program instructions:

[0211] Determine a target block from the blockchain; the target block includes transaction data, and the transaction data is generated according to the management instruction;

[0212] Obtaining the transaction data from the target block, and obtaining the management instruction according to the transaction data;

[0213] The plug-in adapter is called by the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the above management instructions, and the above target plug-in is called to execute the above management instructions for the application to obtain the execution result; the above target plug-in is adapted to the above application.

[0214] Optionally, the processor 701, when used to call the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, is specifically used to:

[0215] Determine the plug-in selection reference information according to the above management instruction by calling the plug-in adapter through the smart contract virtual machine; the above plug-in selection reference information includes one or more of the plug-in type identifier carried in the above management instruction and the instruction type of the above management instruction;

[0216] A target plug-in is selected from the configured multiple plug-ins according to the plug-in selection reference information.

[0217] Optionally, the processor 701 is further configured to:

[0218] Determine a plug-in adjustment block from the blockchain; the plug-in adjustment block includes plug-in adjustment transaction data, and the plug-in adjustment transaction data is generated according to the plug-in adjustment information;

[0219] Obtaining the plug-in adjustment transaction data from the plug-in adjustment block, and obtaining the plug-in adjustment information according to the plug-in adjustment transaction data;

[0220] The above-mentioned plug-in adapter is called by the above-mentioned smart contract virtual machine to select an adjustment plug-in from multiple plug-ins according to the above-mentioned plug-in adjustment information, and the above-mentioned adjustment plug-in is called to adjust the plug-in according to the above-mentioned plug-in adjustment information.

[0221] Optionally, there are multiple pieces of transaction data, and the target block includes multiple pieces of transaction data and sequence identifiers of each piece of transaction data, and the sequence identifier is determined according to the execution order of the corresponding management instruction;

[0222] The processor 701, when used to obtain the transaction data from the target block and obtain the management instruction according to the transaction data, is specifically used to:

[0223] Obtaining the plurality of transaction data and sequence identifiers of the transaction data from the target block;

[0224] Acquire multiple management instructions according to the multiple transaction data, and determine the execution order of the multiple management instructions according to the sequence identifiers of the multiple transaction data;

[0225] The processor 701, when used to call the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and call the target plug-in to execute the management instruction for the application, is specifically used to:

[0226] The plug-in adapter is called through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the above multiple management instructions, and the above target plug-in is called to execute the above multiple management instructions for the application in the above execution order.

[0227] In a feasible embodiment, the computer device may be applied to another embodiment, and the processor 701 is used to perform the following operations when calling the program instructions:

[0228] Obtaining management instructions, where the management instructions are used to manage the application;

[0229] Generate transaction data according to the above management instructions;

[0230] The transaction data is sent to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the target block generated according to the transaction data on the blockchain, obtains the management instruction according to the target block, selects a target plug-in from multiple plug-ins according to the management instruction through the smart contract virtual machine calling the plug-in adapter, and calls the target plug-in to execute the management instruction for the application to obtain the execution result; the target plug-in is adapted to the application.

[0231] Optionally, the processor 701 is further configured to:

[0232] Obtain the execution results of the above management instructions by each blockchain node in the above operation and maintenance blockchain network;

[0233] According to the execution results of the above-mentioned each blockchain node for the above-mentioned management instruction, the proportion of the first blockchain node is determined, and the execution result of the above-mentioned first blockchain node for the above-mentioned management instruction is successful;

[0234] If the proportion of the above-mentioned first blockchain node is greater than the proportion threshold, the second blockchain node will be removed from the above-mentioned operation and maintenance blockchain network, and the execution result of the above-mentioned second blockchain node for the above-mentioned management instruction will be execution failure.

[0235] Optionally, the processor 701 is further configured to:

[0236] If the management instruction does not carry a node identifier, the step of generating transaction data according to the management instruction and subsequent steps are executed;

[0237] If the above-mentioned management instruction carries the above-mentioned node identifier, the above-mentioned management instruction will be sent to the blockchain node corresponding to the above-mentioned node identifier in the above-mentioned operation and maintenance blockchain network, so that the blockchain node corresponding to the above-mentioned node identifier executes the above-mentioned management instruction for the above-mentioned application.

[0238] Optionally, the processor 701 is further configured to:

[0239] Determine plugin adjustment information;

[0240] Generate plug-in adjustment transaction data according to the above plug-in adjustment information;

[0241] The plug-in adjustment transaction data is sent to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the plug-in adjustment block generated according to the plug-in adjustment transaction data on the blockchain, obtains the plug-in adjustment information according to the plug-in adjustment block, calls the plug-in adapter through the smart contract virtual machine to select an adjustment plug-in from multiple plug-ins according to the plug-in adjustment information, and calls the adjustment plug-in to perform plug-in adjustment according to the plug-in adjustment information.

[0242] In a specific implementation, the processor 701, the memory 702, and the network interface 703 described in the embodiments of the present application can execute the embodiments of the present application. Figure 2 , Figure 3 or Figure 4 The implementation method described in the relevant embodiments of the data processing method provided can also be implemented in the embodiments of the present application Figure 6 The implementation methods described in the relevant embodiments of the provided data processing device will not be repeated here.

[0243] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0244] The present application also provides a computer-readable storage medium in which program instructions are stored. When the program is executed, it may include: Figure 2 , Figure 3 or Figure 4 Part or all of the steps of the blockchain-based data processing method in the corresponding embodiment.

[0245] It should be noted that, for the aforementioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application. At the same time, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0246] It should be noted that the descriptions of "first", "second", etc. involved in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0247] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0248] The embodiment of the present application also provides a computer program product, which includes a computer program or a computer instruction, and the computer program or the computer instruction is stored in a computer-readable storage medium. The processor of the server reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the server executes the steps performed in the above-mentioned method embodiments.

[0249] The above is a detailed introduction to a blockchain-based data processing method, device, equipment and medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technicians in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data processing method based on blockchain, characterized in that: The method comprises: Determine a target block from the blockchain; the target block includes transaction data, and the transaction data is generated according to the management instruction; Acquire the transaction data from the target block, and acquire the management instruction according to the transaction data; The plug-in adapter is called by the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and the target plug-in is called to execute the management instruction for the application to obtain an execution result; the target plug-in is adapted to the application.

2. The method according to claim 1, characterized in that The step of calling the plug-in adapter through the smart contract virtual machine to select a target plug-in from a plurality of plug-ins according to the management instruction includes: Determine the plug-in selection reference information according to the management instruction by calling the plug-in adapter through the smart contract virtual machine; the plug-in selection reference information includes one or more of the plug-in type identifier carried in the management instruction and the instruction type of the management instruction; A target plug-in is selected from the configured multiple plug-ins according to the plug-in selection reference information.

3. The method according to claim 1, characterized in that The method further comprises: Determine a plug-in adjustment block from the blockchain; the plug-in adjustment block includes plug-in adjustment transaction data, and the plug-in adjustment transaction data is generated according to the plug-in adjustment information; Acquire the plug-in adjustment transaction data from the plug-in adjustment block, and acquire the plug-in adjustment information according to the plug-in adjustment transaction data; The smart contract virtual machine calls the plug-in adapter to select an adjustment plug-in from multiple plug-ins according to the plug-in adjustment information, and calls the adjustment plug-in to adjust the plug-in according to the plug-in adjustment information.

4. The method according to any one of claims 1 to 3, characterized in that The number of the transaction data is multiple, and the target block includes the multiple transaction data and sequence identifiers of the transaction data, and the sequence identifiers are determined according to the execution order of the corresponding management instructions; The acquiring the transaction data from the target block and acquiring the management instruction according to the transaction data includes: Acquire the plurality of transaction data and sequence identifiers of the respective transaction data from the target block; Acquire multiple management instructions according to the multiple transaction data, and determine the execution order of the multiple management instructions according to the sequence identifiers of the respective transaction data; The method of calling the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and calling the target plug-in to execute the management instruction for the application program includes: The plug-in adapter is called by the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the multiple management instructions, and the target plug-in is called to execute the multiple management instructions according to the execution order for the application.

5. A data processing method based on blockchain, characterized in that: The method comprises: Obtaining a management instruction, where the management instruction is used to manage the application; generating transaction data according to the management instruction; The transaction data is sent to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the target block generated according to the transaction data on the blockchain, obtains the management instruction according to the target block, calls the plug-in adapter through the smart contract virtual machine to select a target plug-in from multiple plug-ins according to the management instruction, and calls the target plug-in to execute the management instruction for the application to obtain an execution result; the target plug-in is adapted to the application.

6. The method according to claim 5, characterized in that The method further comprises: Obtaining the execution results of each blockchain node in the operation and maintenance blockchain network for the management instruction; Determine the proportion of the first blockchain node according to the execution results of each blockchain node for the management instruction, and the execution result of the first blockchain node for the management instruction is successful execution; If the proportion of the first blockchain node is greater than the proportion threshold, the second blockchain node is removed from the operation and maintenance blockchain network, and the execution result of the second blockchain node for the management instruction is execution failure.

7. The method according to any one of claims 5 or 6, characterized in that The method further comprises: If the management instruction does not carry a node identifier, executing the step of generating transaction data according to the management instruction and subsequent steps; If the management instruction carries the node identifier, the management instruction is sent to the blockchain node corresponding to the node identifier in the operation and maintenance blockchain network, so that the blockchain node corresponding to the node identifier executes the management instruction for the application.

8. The method according to any one of claims 5 or 6, characterized in that The method further comprises: Determine plugin adjustment information; Generate plug-in adjustment transaction data according to the plug-in adjustment information; The plug-in adjustment transaction data is sent to the operation and maintenance blockchain network, so that each blockchain node in the operation and maintenance blockchain network stores the plug-in adjustment block generated according to the plug-in adjustment transaction data on the blockchain, obtains the plug-in adjustment information according to the plug-in adjustment block, calls the plug-in adapter through the smart contract virtual machine to select an adjustment plug-in from multiple plug-ins according to the plug-in adjustment information, and calls the adjustment plug-in to perform plug-in adjustment according to the plug-in adjustment information.

9. A data processing device based on blockchain, characterized in that: The method comprises a module for implementing the data processing method based on blockchain as described in any one of claims 1 to 4, or comprises a module for implementing the data processing method based on blockchain as described in any one of claims 5 to 8.

10. A computer device, characterized in that: The invention comprises a processor, a memory and a network interface, wherein the processor, the memory and the network interface are interconnected, wherein the memory is used to store a computer program, and the computer program comprises program instructions, and the processor is configured to call the program instructions to implement the data processing method based on blockchain as described in any one of claims 1 to 4, or to implement the data processing method based on blockchain as described in any one of claims 5 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, a computer device having the processor implements the blockchain-based data processing method as described in any one of claims 1 to 4, or implements the blockchain-based data processing method as described in any one of claims 5 to 8.

12. A computer program product, characterized in that The computer program product includes a computer program or computer instructions. When the computer program or computer instructions are executed by a processor, the blockchain-based data processing method as described in any one of claims 1 to 4 is implemented, or the blockchain-based data processing method as described in any one of claims 5 to 8 is implemented.