A data processing method and device, electronic equipment and storage medium

By introducing a smart contract scheduling module to check and distribute transaction batches, the problem of insufficient smart contract processing capacity in the blockchain network is solved, and the stability and efficiency of transaction processing are improved.

CN117314440BActive Publication Date: 2026-11-27CHINA POST INFORMATION TECH (BEIJING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311218440.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2026-11-27
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

Under high-concurrency transaction conditions, the limited processing capacity of smart contracts in a blockchain network leads to difficulties in transaction processing, affecting network stability and throughput.

Method used

A smart contract scheduling module is introduced. It receives transaction batches sent by the consensus module, checks and verifies them, determines the list of schedulable environments, and distributes them to the transaction processing module for processing, thus ensuring the availability of the smart contract engine and the security of transactions.

Benefits of technology

It improves the stability and data processing efficiency of the blockchain network, solves the problem of transaction processing difficulties, and enables secure monitoring and effective processing of transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117314440B_ABST
    Figure CN117314440B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and device, electronic equipment and storage medium. The method comprises the following steps: receiving a transaction batch sent by a consensus module based on a smart contract scheduling module; checking the transaction batch based on a transaction checking scheduling module; when the checking result is consistent with the preset result, sending the transaction batch and a schedulable environment list to a transaction processing module based on the smart contract scheduling module; determining a target smart contract computing engine based on the transaction processing module and the schedulable environment list, processing the transaction batch based on the target smart contract computing engine, and obtaining target feedback data; and feeding back the target feedback data to the consensus module based on the smart contract scheduling module. The application solves the problem that the transaction task is directly sent to the smart contract engine running engine code to process the task in the prior art, and the data processing difficulty is solved, so that the smart contract resource availability is maintained, and the data processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of blockchain technology, and in particular to a data processing method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of blockchain technology, smart contracts are playing an increasingly important role in blockchain systems, characterized by automatic execution, decentralization, immutability, and programmability. Deploying smart contracts in a blockchain typically involves storing them as code on the blockchain. Nodes on the blockchain (computers within the blockchain network) then instantiate the smart contract code, enabling the smart contract to execute its tasks. The execution efficiency of smart contracts directly impacts the throughput of the blockchain system.

[0003] Currently, the typical way to execute tasks using smart contracts is as follows: nodes send the received transaction tasks directly to the smart contract engine, the engine code runs, and then outputs the processing results back to the node. However, due to the limited processing capabilities of blockchain and smart contracts, high-concurrency transactions may cause blockchain network failures, leading to difficulties in transaction processing. Summary of the Invention

[0004] This invention provides a data processing method, apparatus, electronic device, and storage medium to improve the stability of the blockchain network while maintaining the availability of smart contract resources, thereby achieving the technical effect of improving data processing efficiency.

[0005] According to one aspect of the present invention, a data processing method is provided, applied in a blockchain, the method comprising:

[0006] The smart contract scheduling module receives transaction batches sent by the consensus module and sends the transaction batches to the transaction inspection and scheduling module.

[0007] The transaction batch is inspected by the transaction inspection and scheduling module, and the inspection results are fed back to the smart contract scheduling module.

[0008] The smart contract scheduling module receives the inspection result and, when the inspection result matches the preset result, sends the transaction batch and the list of schedulable environments to the transaction processing module.

[0009] Based on the transaction processing module and the list of schedulable environments, a target smart contract computing engine is determined, and the transaction batch is processed based on the target smart contract computing engine to obtain target feedback data corresponding to the transaction batch. The target feedback data is then sent to the smart contract scheduling module.

[0010] The smart contract scheduling module receives the target feedback data and then feeds the target feedback data back to the consensus module.

[0011] According to another aspect of the present invention, a data processing apparatus is provided, configured in a blockchain, the apparatus comprising:

[0012] The smart contract scheduling module is used to receive transaction batches sent by the consensus module and send the transaction batches to the transaction inspection and scheduling module;

[0013] The transaction inspection and scheduling module is used to inspect the transaction batch and feed back the inspection results to the smart contract scheduling module.

[0014] The smart contract scheduling module is used to receive the inspection result and, when the inspection result is consistent with the preset result, send the transaction batch and the list of schedulable environments to the transaction processing module.

[0015] The transaction processing module is used to determine the target smart contract computing engine based on the list of schedulable environments, process the transaction batch based on the target smart contract computing engine, obtain target feedback data corresponding to the transaction batch, and send the target feedback data to the smart contract scheduling module.

[0016] The smart contract scheduling module is used to receive the target feedback data and feed the target feedback data back to the consensus module.

[0017] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0018] At least one processor; and

[0019] A memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data processing method according to any embodiment of the present invention.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the data processing method described in any embodiment of the present invention.

[0022] The technical solution of this invention involves a smart contract scheduling module receiving transaction batches sent by a consensus module; a transaction inspection scheduling module inspecting the transaction batches; and, if the inspection result from the smart contract scheduling module matches a preset result, sending the transaction batch and a list of schedulable environments to a transaction processing module. The transaction processing module and the list of schedulable environments determine the target smart contract computing engine, and the target smart contract computing engine processes the transaction batches to obtain target feedback data. Finally, the smart contract scheduling module feeds the target feedback data back to the consensus module. This solves the problem in existing technologies where nodes directly send transaction tasks to the smart contract engine to run the engine code, leading to difficulties in transaction processing. The solution uses the smart contract scheduling module as an intermediate scheduling module to receive transaction batches sent by the consensus module, then sends the transaction batches to the transaction inspection scheduling module for inspection. The smart contract scheduling module checks whether the inspection result matches a preset result, and if they match, sends the transaction batch and a list of schedulable environments to the transaction processing module. This achieves secure monitoring of transactions while ensuring transaction validity. The transaction processing module determines the target smart contract computing engine based on the list of schedulable environments, ensuring the availability of the smart contract engine. Then, transaction batches are distributed to the target smart contract computing engine for processing to obtain target feedback data, thereby improving the stability of the blockchain network and achieving the technical effect of improving data processing efficiency.

[0023] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 This is a flowchart of a data processing method provided according to Embodiment 1 of the present invention;

[0026] Figure 2 This is a schematic diagram of a data processing method applicable according to Embodiment 1 of the present invention;

[0027] Figure 3 This is a schematic diagram of the structure of a data processing device according to Embodiment 2 of the present invention;

[0028] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the data processing method of the present invention. Detailed Implementation

[0029] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0031] Example 1

[0032] Figure 1 This is a flowchart of a data processing method according to Embodiment 1 of the present invention. This embodiment is applicable to transaction processing. The method can be executed by a data processing device, which can be implemented in hardware and / or software, and can be configured in a blockchain. Figure 1 As shown, the method includes:

[0033] S110: The smart contract scheduling module receives the transaction batches sent by the consensus module and sends the transaction batches to the transaction inspection and scheduling module.

[0034] It should be noted that the technical solution provided in this embodiment can be implemented by modules such as smart contract scheduling module, transaction inspection scheduling module and transaction processing module. It can be applied in the blockchain, but these modules do not have to be on the blockchain, such as being independent of the blockchain and not at the same level as the blockchain.

[0035] In this embodiment, a consensus algorithm is deployed in the consensus module to receive and record transactions (including transaction requests and results), and to ensure the consistency of each transaction across all accounting nodes. A node refers to a computer in the blockchain network, including mobile phones and servers. A transaction batch can contain multiple transaction requests.

[0036] See Figure 2 After receiving a batch of transaction requests, the consensus module can package the requests into a transaction batch and send it to the smart contract scheduling module. The smart contract scheduling module, acting as an intermediate scheduling module, sends the received transaction batch to the transaction inspection scheduling module for transaction inspection.

[0037] S120. The transaction batch is checked based on the transaction inspection and scheduling module, and the inspection results are fed back to the smart contract scheduling module.

[0038] In this embodiment, when the transaction inspection and scheduling module receives a batch of transactions sent by the transaction inspection and scheduling module, it can inspect the batch of transactions, such as parameter inspection, for example, checking whether the parameter length meets the requirements, and obtaining the inspection result; or signature verification, for example, signing transaction batch A, obtaining the signature, and checking whether the signature is correct, and obtaining the inspection result. See also... Figure 2 The transaction inspection and scheduling module can feed back the inspection results to the smart contract scheduling module, so that the smart contract scheduling module can determine whether the transaction batch is safe and orderly based on the inspection results, ensuring the security and legality of the transaction, and also facilitating the determination of the subsequent processing method for the transaction.

[0039] In practical applications, transaction batches contain a large number of transaction requests, so the resource requirements for checking transaction batches are relatively high. In order to improve data processing efficiency, appropriate computing resources can be dynamically allocated to transaction batches for checking and processing based on resource usage.

[0040] In this embodiment, the transaction batch is checked based on the transaction check scheduling module, including: determining the computing resource environment corresponding to the transaction batch based on the transaction check module, and checking the transaction batch in the computing resource environment according to the corresponding signature verification rules and parameter check rules.

[0041] The transaction inspection and scheduling module can also be used to maintain multiple environments with high-performance computing resources, monitor these environments in real time to ensure their availability, and support the dynamic addition and deletion of environments. These environments include, but are not limited to, physical machines, virtual machines, cloud services, and specialized hardware. Signature verification rules and parameter checking rules can be pre-configured. Signature verification rules are rules used to verify whether a signature meets preset requirements, such as ensuring the information before and after signing is consistent, or that the information before and after signing meets preset logic. Parameter checking rules are rules used to detect whether parameters meet preset conditions, such as limiting parameter length, ensuring the parameter type matches the specified type, ensuring the parameter is within the specified range, ensuring no parameters are missing, and ensuring the parameter format conforms to regulations, etc.

[0042] Specifically, the transaction inspection and scheduling module can allocate appropriate computing resource environments to transaction batches based on real-time resource environment conditions (e.g., resource usage status, processable data volume, throughput, concurrency, memory size, etc.) combined with the quantity attributes of the transaction batches (e.g., data volume, data type, transaction priority, etc.). The number of computing resource environments can be one or more. If there is only one, it can be used to perform parameter verification and transaction signature verification operations on each transaction in the batch according to signature verification rules and parameter checking rules. If there are multiple environments, the transaction batches can be grouped and distributed to different computing resource environments. In each environment, the basic parameters of the transaction are checked according to parameter checking rules, and signature verification is performed according to signature verification rules. Furthermore, the transaction inspection and scheduling module can summarize all the inspection results and feed them back to the smart contract processing and scheduling module. For example, all the inspection results can be packaged and fed back to the smart contract processing and scheduling module. Alternatively, all the inspection results can be integrated into a single result that represents the overall inspection of the transaction batch (for example, if one of the inspection results is an invalid transaction, then the overall inspection result of the transaction batch is considered invalid; that is, if one inspection result is invalid, the overall inspection result is considered invalid).

[0043] For example, suppose there is a transaction request: register user B on platform A. This transaction request includes parameter fields such as platform A name, platform A ID, user B name, user type, and registration. By checking these parameters using parameter checking rules, if a missing parameter is detected, the transaction is confirmed as invalid. Alternatively, these parameters can be signed; for example, if the signature is C, and C does not conform to the signature verification rules, the transaction is also confirmed as invalid.

[0044] S130. The smart contract scheduling module receives the inspection results and, when the inspection results are consistent with the preset results, sends the transaction batch and the list of schedulable environments to the transaction processing module.

[0045] The list of schedulable environments includes execution environments that can be scheduled and used. These environments include, but are not limited to, physical machines, virtual machines, cloud services, and specialized hardware. The default result is either a valid transaction or a successful transaction check.

[0046] In this embodiment, the smart contract scheduling module receives the inspection results of the transaction batch from the transaction inspection scheduling module. If the inspection results include inspection results for multiple transaction requests, each inspection result may contain results consistent with the preset results or inconsistent results. The inconsistency may be due to the transaction request corresponding to the inspection result being leaked or tampered with. Based on this, the inspection results can be compared with the preset results. If there are inconsistencies between the inspection results and the preset results, such as one or more inconsistent inspection results, the smart contract scheduling module feeds the inspection results back to the consensus module, enabling the consensus module to make a security response based on the invalid transaction inspection results, thereby improving security. If all inspection results are consistent with the preset results, the transaction is confirmed to be valid. Then, based on the usage of each execution environment, the available execution environments are determined to generate a list of schedulable environments. The valid and secure transaction batch and the list of schedulable environments are sent to the transaction processing module, so that the transaction processing module distributes the transactions in the transaction batch to the smart contract engine running in the execution environment for data processing.

[0047] For example, see [link to previous article] Figure 2 After receiving the inspection results, if the inspection results show that the transaction inspection failed, the smart contract processing and scheduling module will directly send the inspection results to the consensus module; if the inspection results show that all transactions were successfully inspected, the module will send the transaction batch and the list of schedulable environments to the transaction processing module.

[0048] To ensure that the smart contract engine can run normally in the execution environment and that transactions can be processed effectively, the execution environments in which the smart contract engine can run can be monitored in real time. From these environments, an execution environment that meets the requirements of the smart contract engine and is available can be selected, thereby ensuring that the smart contract engine runs normally in its execution environment.

[0049] In this embodiment, the smart contract scheduling module is also used to maintain the execution environment for at least one smart contract engine and the configuration information for deploying at least one smart contract, so as to determine a list of schedulable environments based on the execution environment and configuration information. The smart contract engine includes, but is not limited to, EVM, JVM, WSAM, etc. The configuration information includes, but is not limited to, the smart contract language, development framework, specific execution engine, and the execution environment in which the smart contract will be deployed.

[0050] Specifically, the smart contract scheduling module can use a heartbeat mechanism (such as connecting at regular intervals) to detect the execution environment of each smart contract engine, thereby monitoring the execution environment and ensuring machine availability. When determining the list of schedulable environments, it can identify available execution environments that meet the smart contract's operational requirements based on the monitored availability of the execution environments and the execution environments where the smart contracts will be deployed, generating a list of schedulable environments. This ensures both environment availability and smart contract engine availability, guaranteeing the stability of transaction processing. For example, if environment 1 is running normally and smart contract A is running in environment 1; environment 2 is running normally and smart contract B is running in environment 2; and environment 3 is running normally and smart contract C is running in environment 3, then environments 1, 2, and 3 can be included in the list of schedulable environments.

[0051] S140. Based on the transaction processing module and the list of schedulable environments, determine the target smart contract computing engine, process the transaction batch based on the target smart contract computing engine, obtain the target feedback data corresponding to the transaction batch, and send the target feedback data to the smart contract scheduling module.

[0052] In this embodiment, the transaction processing module can select a suitable smart contract engine as the target smart contract computing engine from the list of schedulable environments. It should be noted that different smart contracts may perform different tasks, such as currency exchange, identity verification, and digital identity creation. To ensure effective transaction processing, in determining the target smart contract computing engine based on the list of schedulable environments and the transaction batch, the transaction processing module can determine the target smart contract computing engine based on the list of schedulable environments and the transaction batch.

[0053] In practical applications, transaction requests within the same transaction batch need to be processed using the same smart contract engine. The required smart contract engine information for this batch can be carried on the transaction batch itself, sent to the transaction processing module along with the batch, or determined based on the transaction attributes of the batch. Specifically, the transaction processing module can select a suitable target smart contract computing engine from the list of schedulable environments by considering the smart contract engine type corresponding to the transaction batch and its own transaction attributes (e.g., data volume). For example, if transaction batch 1 requires EVM processing, EVM-1 and EVM-2 from the list of schedulable environments can be used as target smart contract computing engines to meet the transaction processing requirements.

[0054] Furthermore, after determining the target smart contract computing engine, the target smart contract computing engine can be used to process the transaction batch to obtain the result of the transaction batch processing as target feedback data. The target feedback data is then sent to the smart contract scheduling module so that the smart contract scheduling module can feed back the target feedback data to the consensus module.

[0055] It should be noted that a transaction batch may contain related transactions; for example, processing transaction 2 requires the result of processing transaction 1. This type of transaction needs to be executed serially to ensure the accuracy of transaction processing. Therefore, before the target smart contract computation engine processes the transaction batch, it can be preprocessed by the transaction processing module to obtain at least one set of data to be processed, which can then be processed by the target smart contract computation engine.

[0056] At least one set of data to be processed corresponds to a different group identifier. The group identifier can be used to reflect the processing attributes of this set of data to be processed. For example, if the group identifier is associated, it indicates that there is an association between the data to be processed and that the data to be processed needs to be processed serially; if the group identifier is not associated, it indicates that there is no association between the data to be processed and that the data to be processed can be processed serially or in parallel.

[0057] Specifically, if there are related transactions in a transaction batch, these related transactions can be grouped together as a set of data to be processed. This results in different groups of data to be processed; for example, group 1 might contain transactions 1 and 2, and group 2 might contain transactions 3 and 4. The grouping identifier for these groups could be "related." Alternatively, transactions without a relationship can be grouped together as a set of data to be processed; for example, group 3 might contain transactions 5 and 6. The grouping identifier for these groups could be "unrelated." Furthermore, each group of data to be processed can be distributed to the execution environment running the target smart contract's computation engine, where the engine will process the corresponding data.

[0058] For example, transactions are grouped according to their relationships within a batch, and then distributed to schedulable environments that run the target smart contract computing engine. Within each environment, transactions are executed sequentially and in parallel, ensuring accuracy while saving processing time. The transaction processing results are then aggregated and fed back to the smart contract scheduling module as target feedback data.

[0059] S150: The smart contract scheduling module receives target feedback data and feeds the target feedback data back to the consensus module.

[0060] See also Figure 2 The smart contract scheduling module receives the target feedback data from the transaction processing module and can transmit the target feedback data to the consensus module, enabling the consensus module to reach a transaction consensus based on the target feedback data.

[0061] The technical solution of this embodiment receives transaction batches sent by the consensus module through a smart contract scheduling module; checks the transaction batches based on a transaction inspection scheduling module; when the smart contract scheduling module detects that the inspection result is consistent with the preset result, it sends the transaction batch and a list of schedulable environments to the transaction processing module; it determines the target smart contract computing engine based on the transaction processing module and the list of schedulable environments, processes the transaction batches based on the target smart contract computing engine, and obtains target feedback data; and it feeds back the target feedback data to the consensus module based on the smart contract scheduling module. This solves the problem in the prior art where nodes directly send transaction tasks to the smart contract engine to run the engine code for task processing, leading to difficulties in transaction processing. It achieves secure monitoring of transactions while ensuring transaction validity by having the smart contract scheduling module, an intermediate scheduling module, receive transaction batches sent by the consensus module, and then send the transaction batches to the transaction inspection scheduling module for inspection. The smart contract scheduling module checks whether the inspection result is consistent with the preset result, and when consistent, sends the transaction batch and a list of schedulable environments to the transaction processing module. The transaction processing module determines the target smart contract computing engine based on the list of schedulable environments, ensuring the availability of the smart contract engine. Then, transaction batches are distributed to the target smart contract computing engine for processing to obtain target feedback data, thereby improving the stability of the blockchain network and achieving the technical effect of improving data processing efficiency.

[0062] Example 2

[0063] Figure 3 This is a schematic diagram of the structure of a data processing device according to Embodiment 2 of the present invention. Figure 3 As shown, the device includes: a smart contract scheduling module 210, a transaction inspection and scheduling module 220, and a transaction processing module 230.

[0064] The system includes the following components: a smart contract scheduling module 210, which receives transaction batches from the consensus module and sends them to a transaction inspection and scheduling module; a transaction inspection and scheduling module 220, which inspects the transaction batches and feeds back the inspection results to the smart contract scheduling module; a smart contract scheduling module 210, which receives the inspection results and, when the inspection results match a preset result, sends the transaction batches and a list of schedulable environments to a transaction processing module 230; a transaction processing module 230, which determines a target smart contract computing engine based on the list of schedulable environments, processes the transaction batches based on the target smart contract computing engine to obtain target feedback data corresponding to the transaction batches, and sends the target feedback data to the smart contract scheduling module; and a smart contract scheduling module 210, which receives the target feedback data and feeds it back to the consensus module.

[0065] The technical solution of this embodiment receives transaction batches sent by the consensus module through a smart contract scheduling module; checks the transaction batches based on a transaction inspection scheduling module; when the smart contract scheduling module detects that the inspection result is consistent with the preset result, it sends the transaction batch and a list of schedulable environments to the transaction processing module; it determines the target smart contract computing engine based on the transaction processing module and the list of schedulable environments, processes the transaction batches based on the target smart contract computing engine, and obtains target feedback data; and it feeds back the target feedback data to the consensus module based on the smart contract scheduling module. This solves the problem in the prior art where nodes directly send transaction tasks to the smart contract engine to run the engine code for task processing, leading to difficulties in transaction processing. It achieves secure monitoring of transactions while ensuring transaction validity by having the smart contract scheduling module, an intermediate scheduling module, receive transaction batches sent by the consensus module, and then send the transaction batches to the transaction inspection scheduling module for inspection. The smart contract scheduling module checks whether the inspection result is consistent with the preset result, and when consistent, sends the transaction batch and a list of schedulable environments to the transaction processing module. The transaction processing module determines the target smart contract computing engine based on the list of schedulable environments, ensuring the availability of the smart contract engine. Then, transaction batches are distributed to the target smart contract computing engine for processing to obtain target feedback data, thereby improving the stability of the blockchain network and achieving the technical effect of improving data processing efficiency.

[0066] Optionally, based on the above-mentioned device, the smart contract scheduling module 210 is further configured to maintain the execution environment for at least one smart contract engine and the configuration information for at least one smart contract deployment, so as to determine the list of schedulable environments based on the execution environment and the configuration information.

[0067] Optionally, based on the above-mentioned device, the transaction inspection and scheduling module 220 includes a transaction inspection module; the transaction inspection module is used to determine the computing resource environment corresponding to the transaction batch, and to inspect the transaction batch in the computing resource environment according to the corresponding signature verification rules and parameter inspection rules.

[0068] Optionally, based on the above-mentioned device, the transaction processing module 230 is further configured to preprocess the transaction batch to obtain at least one set of data to be processed, so as to process the at least one set of data to be processed based on the target smart contract computing engine.

[0069] The at least one set of data to be processed corresponds to different group identifiers.

[0070] Optionally, based on the above-described apparatus, the transaction processing module 230 is used to determine the target smart contract computing engine based on the list of schedulable environments and the transaction batch.

[0071] Based on the above-mentioned device, optionally, the smart contract scheduling module 210 is further configured to feed back the inspection result to the consensus module if there is a situation in the inspection result that is inconsistent with the preset result.

[0072] The data processing apparatus provided in the embodiments of the present invention can execute the data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0073] Example 3

[0074] Figure 4 This is a schematic diagram of the structure of an electronic device implementing the data processing method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0075] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0076] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0077] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as data processing methods.

[0078] In some embodiments, the data processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the data processing method by any other suitable means (e.g., by means of firmware).

[0079] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0080] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0081] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0082] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0083] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0084] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0085] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0086] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A data processing method, characterized in that, When applied to blockchain, the method includes: The smart contract scheduling module receives transaction batches sent by the consensus module and sends the transaction batches to the transaction inspection and scheduling module. The transaction batch is inspected by the transaction inspection and scheduling module, and the inspection results are fed back to the smart contract scheduling module. The smart contract scheduling module receives the inspection result and, when the inspection result matches the preset result, sends the transaction batch and the list of schedulable environments to the transaction processing module. Based on the transaction processing module and the list of schedulable environments, a target smart contract computing engine is determined, and the transaction batch is processed based on the target smart contract computing engine to obtain target feedback data corresponding to the transaction batch. The target feedback data is then sent to the smart contract scheduling module. The smart contract scheduling module receives the target feedback data and then feeds the target feedback data back to the consensus module.

2. The method according to claim 1, characterized in that, The smart contract scheduling module is also used to maintain the execution environment for at least one smart contract engine and the configuration information for at least one smart contract deployment, so as to determine the list of schedulable environments based on the execution environment and the configuration information.

3. The method according to claim 1, characterized in that, The transaction inspection and scheduling module includes a transaction inspection module; The process of checking the transaction batch based on the transaction check and scheduling module includes: The transaction inspection module determines the computing resource environment corresponding to the transaction batch and inspects the transaction batch in the computing resource environment according to the corresponding signature verification rules and parameter inspection rules.

4. The method according to claim 1, characterized in that, Also includes: The transaction processing module preprocesses the transaction batch to obtain at least one set of data to be processed, and then processes the at least one set of data to be processed based on the target smart contract computing engine. The at least one set of data to be processed corresponds to different group identifiers.

5. The method according to claim 1, characterized in that, The step of determining the target smart contract computing engine based on the transaction processing module and the list of schedulable environments includes: The transaction processing module determines the target smart contract computing engine based on the list of schedulable environments and the transaction batch.

6. The method according to claim 1, characterized in that, Also includes: If the inspection results are inconsistent with the preset results, the inspection results will be fed back to the consensus module based on the smart contract scheduling module.

7. A data processing apparatus, characterized in that, Configured in a blockchain, the device includes: The smart contract scheduling module is used to receive transaction batches sent by the consensus module and send the transaction batches to the transaction inspection and scheduling module; The transaction inspection and scheduling module is used to inspect the transaction batch and feed back the inspection results to the smart contract scheduling module. The smart contract scheduling module is used to receive the inspection result and, when the inspection result is consistent with the preset result, send the transaction batch and the list of schedulable environments to the transaction processing module. The transaction processing module is used to determine the target smart contract computing engine based on the list of schedulable environments, process the transaction batch based on the target smart contract computing engine, obtain target feedback data corresponding to the transaction batch, and send the target feedback data to the smart contract scheduling module. The smart contract scheduling module is used to receive the target feedback data and feed the target feedback data back to the consensus module.

8. The apparatus according to claim 7, characterized in that, The smart contract scheduling module is also used to maintain the execution environment for at least one smart contract engine and the configuration information for at least one smart contract deployment, so as to determine the list of schedulable environments based on the execution environment and the configuration information.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data processing method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the data processing method according to any one of claims 1-6.