Data processing method and apparatus, and computation device

By using a trusted execution environment in the cloud blockchain system to verify the model inference results of the external server of the blockchain network, it solves the problem of blockchain nodes processing complex tasks and off-chain computing security, and realizes the integration of blockchain and artificial intelligence. Integrated development and data protection.

WO2024183439A1PCT designated stage expired Publication Date: 2024-09-12HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD +1

Patent Information

Application Number
PCT/CN2024/070415
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-20
Filing Date
2024-01-03
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing mainstream smart contracts lack complex computing capabilities, resulting in blockchain nodes being unable to handle complex tasks, limiting the scope and development of blockchain-based artificial intelligence applications, and the security and credibility of off-chain computing cannot be guaranteed.

Method used

By introducing a Trusted Execution Environment (TEE) into the cloud blockchain system, task information is sent to an external server for inference calculations, and the results are verified in the TEE to ensure the credibility of the inference results, which are then processed by the blockchain node. Chain storage realizes the protection of artificial intelligence inference data.

Benefits of technology

It improves the credibility of off-chain computing, promotes the integration and development of blockchain technology and artificial intelligence technology, and ensures the security and credibility of inference data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024070415_12092024_PF_FP_ABST
    Figure CN2024070415_12092024_PF_FP_ABST
Patent Text Reader

Abstract

A data processing method and apparatus, and a computation device. The method comprises: a first blockchain node receives task information and sends the task information to a task execution device, wherein the task execution device is used for performing inference computation on a first model according to the task information to obtain an inference result for the first model; the task execution device sends the inference result to a trusted execution environment (TEE) for verification to obtain a verified inference result; and the node in a blockchain system performs on-chain storage on the inference result verified by the TEE. The method can improve the credibility of off-chain computation, and promote the convergence and development of the blockchain technology and the artificial intelligence technology.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, device and computing equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 9, 2023, with application number 202310226446.5 and application name “Method and computing device for smart contract computing based on a trusted execution environment”, and the Chinese patent application filed with the State Intellectual Property Office of China on April 20, 2023, with application number 202310432135.4 and application name “Method, device and computing device for data processing”, all of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of cloud computing, and more specifically, to a data processing method, apparatus, and computing device. Background Art

[0003] Since its inception, blockchain technology has undergone years of rapid development and has been widely adopted in various industries, including finance, supply chain, and e-government. It has become a core technology driving the transformation of the information internet into the value internet, attracting widespread attention worldwide and currently a focus of research and attention worldwide. Due to the immutable and transparent nature of blockchain technology, blockchain-based artificial intelligence (BC-AI) is expected to further advance the training and reasoning of trusted distributed AI. For example, using blockchain technology to protect the data of neural network (NN) models from tampering has become a new research hotspot, promoting the integration of blockchain and AI technologies. However, due to the lack of complex computing capabilities of existing mainstream smart contracts, blockchain nodes are unable to handle complex tasks. Consequently, reasoning of neural network models (such as deep neural network (DNN) models) cannot currently be directly executed within blockchain networks through smart contracts, limiting the application and further development of blockchain-based AI.

[0004] In related technical solutions, because blockchain nodes are unable to handle complex tasks, the model inference process is offloaded from the blockchain network to nearby edge servers, which then use their powerful hardware to perform the model inference calculations. This technology cannot guarantee the security and reliability of off-chain computing. The external platform performing off-chain model inference is untrusted, and the credibility of the returned inference results cannot be guaranteed.

[0005] Therefore, how to improve the credibility of off-chain computing and promote the integrated development of blockchain technology and artificial intelligence technology has become a technical problem that needs to be solved urgently.

[0006] Summary of the Invention

[0007] This application provides a data processing method, apparatus, and computing device, which can improve the credibility of off-chain computing and promote the integrated development of blockchain technology and artificial intelligence technology.

[0008] In a first aspect, a method for data processing is provided, which is applied to a cloud blockchain system, wherein the cloud blockchain system includes multiple blockchain nodes, a cloud computing platform deploys the cloud blockchain system on the cloud computing resources it manages, and the cloud computing platform deploys blockchain services on the cloud computing resources. The method includes: a first blockchain node receives task information, and the first blockchain node is a node in the cloud blockchain system; the first blockchain node sends the task information to a task execution device, which is a server outside the cloud blockchain system, and the task execution device is used to perform inference calculation on a first model based on the task information to obtain an inference result of the first model, and the input of the first model includes the task information; the task execution device sends the inference result to a trusted execution environment TEE for verification to obtain a verified inference result; the first blockchain node obtains the verified inference result from the TEE and stores it on the chain; other nodes in the cloud blockchain system re-verify the verified inference result through their respective corresponding TEEs, and store the re-verified inference result on the chain.

[0009] In the above technical solution, the results of model inference performed on servers outside the blockchain network are verified through TEE, and the verified results are stored on the chain through blockchain nodes. In this way, blockchain technology can be used to protect the reasoning data of artificial intelligence from being tampered with, thereby promoting the integrated development of blockchain technology and artificial intelligence technology.

[0010] In combination with the first aspect, in certain implementations of the first aspect, the task execution device is a first server, which communicates with the first blockchain node. The first server is used to perform inference calculations on the first model based on the task information to obtain an inference result of the first model, and the first server sends the inference result to the TEE for verification.

[0011] In combination with the first aspect, in certain implementations of the first aspect, the task execution device is the TEE, and the TEE communicates with the first server. The method also includes: the first server receives the task information sent by the first blockchain node; the first server sends the task information to the TEE, and the TEE is used to perform inference calculation on the first model based on the task information to obtain the inference result of the first model, and verify the inference result to obtain the verified inference result.

[0012] In combination with the first aspect, in certain implementations of the first aspect, the task execution device is an edge server, and the method further includes: the first server or the TEE sends the task information to the edge server, and the edge server performs inference calculation on the first model based on the task information to obtain the inference result of the first model; the edge server sends the inference result to the TEE for verification.

[0013] In combination with the first aspect, in certain implementations of the first aspect, the TEE is deployed on the first blockchain node.

[0014] In a second aspect, a data processing method is provided, including: a first blockchain node receives task information, the first blockchain node being a node in the blockchain system; the first blockchain node sends the task information to a task execution device, the task execution device being a server outside the blockchain system, the task execution device being used to perform inference calculations on a first model based on the task information to obtain an inference result of the first model, the input of the first model including the task information; the task execution device sends the inference result to a trusted execution environment TEE for verification to obtain a verified inference result; the first blockchain node obtains the verified inference result from the TEE and stores it on the chain; other nodes in the blockchain system re-verify the verified inference result through their respective corresponding TEEs, and store the re-verified inference result on the chain.

[0015] In combination with the second aspect, in certain implementations of the second aspect, the task execution device is a first server, which communicates with the first blockchain node. The first server is used to perform inference calculations on the first model based on the task information to obtain an inference result of the first model, and the first server sends the inference result to the TEE for verification.

[0016] In combination with the second aspect, in certain implementations of the second aspect, the task execution device is the TEE, and the TEE communicates with the first server. The method also includes: the first server receives the task information sent by the first blockchain node; the first server sends the task information to the TEE, and the TEE is used to perform inference calculation on the first model based on the task information to obtain the inference result of the first model, and verify the inference result to obtain the verified inference result.

[0017] In combination with the second aspect, in certain implementations of the second aspect, the task execution device is an edge server, and the method further includes: the first server or the TEE sends the task information to the edge server, and the edge server performs inference calculation on the first model based on the task information to obtain the inference result of the first model; the edge server sends the inference result to the TEE for verification.

[0018] In combination with the second aspect, in certain implementations of the second aspect, the TEE is deployed on the first blockchain node.

[0019] In a third aspect, a data processing system is provided, which includes a cloud blockchain system, a task execution device, and a trusted execution environment TEE. The cloud blockchain system includes multiple blockchain nodes, including a first blockchain node. The cloud computing platform deploys the cloud blockchain system in the cloud computing resources it manages, and the cloud computing platform deploys storage services on the cloud computing resources. The system includes: the first blockchain node, which is used to receive task information and send the task information to the task execution device, which is a server outside the cloud blockchain system. The task execution device is used to perform inference calculation on a first model based on the task information to obtain an inference result of the first model, and the input of the first model includes the task information; the task execution device is used to send the inference result to the trusted execution environment TEE; the TEE is used to verify the inference result to obtain a verified inference result; the first blockchain node is used to obtain the verified inference result from the TEE and store it on the chain; other nodes in the cloud blockchain system are used to re-verify the verified inference result through their respective corresponding TEEs, and store the re-verified inference result on the chain.

[0020] In combination with the third aspect, in certain implementations of the third aspect, the task execution device is a first server, which communicates with the first blockchain node. The first server is used to perform inference calculations on the first model based on the task information to obtain an inference result of the first model. The first server is specifically used to send the inference result to the TEE for verification.

[0021] In combination with the third aspect, in certain implementations of the third aspect, the task execution device is the TEE, which communicates with the first server. The first server is used to receive the task information sent by the first blockchain node and send the task information to the TEE. The TEE is used to perform inference calculation on the first model based on the task information to obtain the inference result of the first model, and verify the inference result to obtain the verified inference result.

[0022] In combination with the third aspect, in certain implementations of the third aspect, the task execution device is an edge server, and the first server or the TEE is used to send the task information to the edge server; the edge server is used to perform inference calculations on the first model based on the task information, obtain the inference result of the first model, and send the inference result to the TEE for verification.

[0023] In combination with the third aspect, in certain implementations of the third aspect, the TEE is deployed on the first blockchain node.

[0024] In a fourth aspect, a computing device is provided, comprising a processor and a memory, and optionally, an input / output interface. The processor is configured to control the input / output interface to send and receive information, the memory is configured to store a computer program, and the processor is configured to retrieve and execute the computer program from the memory, so that the computer program performs the method of the first aspect or any possible implementation of the first aspect, or performs the method of the second aspect or any possible implementation of the second aspect.

[0025] Optionally, the processor may be a general-purpose processor, which may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated into the processor or located independently of the processor.

[0026] In a fifth aspect, a computing device cluster is provided, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect, or executes the method in the second aspect or any possible implementation of the second aspect.

[0027] In a sixth aspect, a chip is provided, which obtains instructions and executes the instructions to implement the method in the above-mentioned first aspect and any implementation of the first aspect, or executes the method in the second aspect or any possible implementation of the second aspect.

[0028] Optionally, as an implementation, the chip includes a processor and a data interface, and the processor reads instructions stored in the memory through the data interface to execute the method in the above-mentioned first aspect and any implementation of the first aspect.

[0029] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored on the memory. When the instructions are executed, the processor is used to execute the method in the first aspect and any one of the implementation methods of the first aspect.

[0030] In the seventh aspect, a computer program product comprising instructions is provided, which, when executed by a computing device, causes the computing device to execute the method of the first aspect and any one of the implementations of the first aspect, or to execute the method of the second aspect or any one of the possible implementations of the second aspect.

[0031] In an eighth aspect, a computer program product comprising instructions is provided, which, when executed by a computing device cluster, enables the computing device cluster to execute the method in the first aspect and any one of the implementations of the first aspect, or to execute the method in the second aspect or any one of the possible implementations of the second aspect.

[0032] In the ninth aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a computing device, the computing device executes the method in the first aspect and any one of the implementations of the first aspect, or executes the method in the second aspect or any one of the possible implementations of the second aspect.

[0033] By way of example, these computer-readable storages include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), Flash memory, electrically EPROM (EEPROM), and a hard drive.

[0034] Optionally, as an implementation manner, the above-mentioned storage medium may specifically be a non-volatile storage medium.

[0035] In the tenth aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method in the first aspect and any one of the implementations of the first aspect, or executes the method in the second aspect or any one of the possible implementations of the second aspect.

[0036] By way of example, these computer-readable storages include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), Flash memory, electrically EPROM (EEPROM), and a hard drive.

[0037] Optionally, as an implementation manner, the above-mentioned storage medium may specifically be a non-volatile storage medium. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] FIG1 is a schematic block diagram of a cloud scenario applicable to an embodiment of the present application.

[0039] FIG2 is a schematic flow chart of a data processing method applicable to an embodiment of the present application.

[0040] FIG3 is a schematic block diagram of a relay server performing task scheduling provided in an embodiment of the present application.

[0041] FIG4 is a schematic block diagram of a data processing device 400 provided in an embodiment of the present application.

[0042] FIG5 is a schematic diagram of the architecture of a computing device 1500 provided in an embodiment of the present application.

[0043] FIG6 is a schematic diagram of the architecture of a computing device cluster provided in an embodiment of the present application.

[0044] FIG7 is a schematic diagram of a network connection between computing devices 1500A and 1500B provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solution in this application will be described below with reference to the accompanying drawings.

[0046] This application will present various aspects, embodiments, or features around systems including multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. Furthermore, combinations of these aspects may also be used.

[0047] Additionally, in the embodiments of this application, words such as "exemplary" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner.

[0048] In the embodiments of the present application, “corresponding” and “relevant” may sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are consistent.

[0049] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person skilled in the art will appreciate that, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0050] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0051] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0052] To facilitate understanding, the following first introduces relevant terms and concepts that may be involved in the embodiments of this application.

[0053] 1. Blockchain

[0054] Blockchain technology is a decentralized architecture and computing paradigm that uses a block-chain data structure to verify and store data, a distributed node consensus algorithm to generate and update data, cryptography to ensure the security of data transmission and access, and smart contracts composed of automated script code to program and manipulate data. Blockchain is a relatively special distributed database with no central point; information is stored across all nodes participating in the blockchain network.

[0055] 2. Blockchain Node

[0056] A node in a blockchain network is called a blockchain node. This node can be a server, laptop, or mobile phone. Each blockchain node stores information in the form of a blockchain. The information stored on all nodes in the blockchain network is consistent and synchronized. If one or two nodes fail, the information is not lost and can still be viewed on other nodes.

[0057] 3. Trusted execution environment (TEE)

[0058] A system is deployed on a mobile device, which includes a trusted execution environment (TEE). A TEE is an independent, isolated, and secure operating environment within the mobile device (e.g., a smartphone, tablet, or smart TV). Because the TEE provides an isolated environment to store the user's sensitive information (e.g., user code and data), it provides a more secure space for code and data execution and ensures the confidentiality and security of the user's sensitive information (e.g., user code and data).

[0059] Optionally, the mobile device may be a desktop computer, a notebook, a mobile phone, a tablet computer, a smart watch, a smart bracelet, etc., which is not specifically limited in this application.

[0060] Applications running on a TEE are called trusted applications (TAs). The TEE creates independent trusted zones within the processor (e.g., central processing unit (CPU)) and memory, isolating different TAs within the processor and memory to prevent them from arbitrarily reading and accessing each other's data. TAs running in the TEE have full access to the full functionality of the device's main processor and memory, while hardware isolation protects these components from user-installed applications running in the main operating system.

[0061] 4. Software Guard Extension (SGX)

[0062] SGX is a new extension to the Intel architecture that adds a new set of instructions and memory access mechanisms. These extensions allow applications to implement containers called enclaves. To prevent different TAs from arbitrarily reading and accessing each other's data, the Basic Input Output System (BIOS) can be used to partition the application's address space into independent, protected areas, known as enclaves. Data within enclaves is encrypted and cannot be viewed by the kernel or hypervisor. SGX not only isolates data between different TAs in memory but also encrypts the data within memory enclaves. This allows developers to partition applications into enclaves or protected executable areas in memory, improving security even on vulnerable platforms. Using this new application-level trusted execution environment, developers can enable identity and record privacy, secure browsing, digital management protection (DRM), or any other high-security application scenario requiring secure storage of secrets or protected data.

[0063] The implementation of SGX requires the collaboration of hardware and software such as processors, memory management components, BIOS, drivers, and runtime environments.

[0064] 5. Enclave

[0065] Encapsulating the secure operations of legitimate software in an enclave protects it from malware attacks. Enclaves are inaccessible to both privileged and unprivileged software. In other words, once software and data are in an enclave, even the operating system or virtual machine manager (VMM) cannot affect the code and data inside.

[0066] 6. Artificial Intelligence

[0067] Artificial Intelligence (AI) is the theory, methods, techniques, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, to perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a branch of computer science that seeks to understand the essence of intelligence and produce new intelligent machines that can respond in a manner similar to human intelligence. AI also studies the design principles and implementation methods of various intelligent machines, enabling them to possess the capabilities of perception, reasoning, and decision-making. Research in the field of AI includes robotics, natural language processing, computer vision, decision-making and reasoning, human-computer interaction, recommendation and search, and basic AI theory.

[0068] 7. Neural Networks

[0069] Neural networks (NNs) are complex network systems formed by a large number of simple processing units (called neurons) that are extensively interconnected. Neural network models are described based on the mathematical model of neurons and are represented by network topology, node characteristics, and learning rules.

[0070] Since the birth of blockchain technology, after years of rapid development, it has been widely used in various industries such as finance, supply chain, e-government, etc., becoming the core technology to promote the transformation of information Internet to value Internet, and has attracted widespread attention from all over the world. Today, blockchain technology has become the focus of attention and research in countries around the world.

[0071] Due to the blockchain's immutable and transparent development characteristics, blockchain-based artificial intelligence (BC-AI) is expected to further promote the training and reasoning of trusted distributed AI. For example, blockchain technology can be used to protect the data of neural network (NN) models from tampering. Therefore, promoting the integration of blockchain and AI technologies has become a new research hotspot.

[0072] However, due to the lack of complex computing capabilities of existing mainstream smart contracts, blockchain nodes are unable to handle complex tasks, resulting in the inference of neural network models (for example, deep neural network (DNN) models) cannot currently be directly executed in the blockchain network through smart contracts, limiting the application scope and further development of blockchain-based artificial intelligence.

[0073] In related technical solutions, because blockchain nodes are unable to handle complex tasks, the model inference process is offloaded from the blockchain network to nearby edge servers, which then use their powerful hardware to perform the model inference calculations. This technology cannot guarantee the security and reliability of off-chain computing. The external platform performing off-chain model inference is untrusted, and the credibility of the returned inference results cannot be guaranteed.

[0074] In view of this, an embodiment of the present application provides a data processing method, which can verify the results of model inference performed on a server outside the blockchain network through TEE, and store the verified results on the chain through the blockchain node. In this way, it is possible to protect the reasoning data of artificial intelligence from being tampered with through blockchain technology, and promote the integrated development of blockchain technology and artificial intelligence technology.

[0075] In one possible implementation, the method provided in the embodiment of the present application can be applied to a cloud service scenario, and the method is executed by a cloud management platform in the cloud service scenario. For ease of description, the cloud service scenario is described in detail below with reference to FIG1 .

[0076] FIG1 is a schematic block diagram of a cloud scenario applicable to an embodiment of the present application. As shown in FIG1 , the cloud scenario may include: a cloud management platform 110 , the Internet 120 , and a client 130 .

[0077] As shown in Figure 1, the cloud management platform 110 is used to manage the infrastructure that provides multiple cloud services. The infrastructure includes multiple cloud data centers, each of which includes multiple servers, each of which includes cloud service resources to provide corresponding cloud services to tenants.

[0078] The cloud management platform 110 can be located in a cloud data center, which can provide an access interface (such as an interface or an application program interface (API)). The tenant can operate the client 130 to remotely access the access interface to register a cloud account and password on the cloud management platform 110, and log in to the cloud management platform 110. After the cloud management platform 110 successfully authenticates the cloud account and password, the tenant can further pay to select and purchase a virtual machine with specific specifications (processor, memory, disk) on the cloud management platform 110. After the payment is successful, the cloud management platform 110 provides the remote login account and password of the purchased virtual machine, and the client 130 can remotely log in to the virtual machine, install and run the tenant's application in the virtual machine. Therefore, the tenant can create, manage, log in and operate virtual machines in the cloud data center through the cloud management platform 110. Among them, the virtual machine can also be called a cloud server (elastic compute service, ECS) or an elastic instance (different cloud service providers have different names).

[0079] It should be understood that tenants of cloud services can be individuals, enterprises, schools, hospitals, administrative agencies, etc.

[0080] The functions of the cloud management platform 110 include, but are not limited to, a user console, computing management services, network management services, storage management services, authentication services, and image management services. The user console provides an interface or API for interacting with tenants. The computing management service is used to manage servers running virtual machines and containers, as well as bare metal servers. The network management service is used to manage network services (such as gateways and firewalls). The storage management service is used to manage storage services (such as data bucket services). The authentication service is used to manage tenant accounts and passwords. The image management service is used to manage virtual machine images. Tenants can use the client 130 to log in to the cloud management platform 110 via the Internet 120 to manage the rented cloud services.

[0081] Figure 2 is a schematic flow chart of a data processing method provided by an embodiment of the present application. As shown in Figure 2, the method may include steps 210-260, and steps 210-260 are described in detail below.

[0082] Step 210: The blockchain network receives the task information submitted by the user.

[0083] As an example, a blockchain network may include multiple blockchain nodes, and the blockchain network may receive task information submitted by a user. Specifically, a blockchain node (e.g., a first blockchain node) in the blockchain network may receive the task information submitted by the user. In one possible implementation, the task parameter may be, for example, input information of a model (e.g., a first neural network model).

[0084] The embodiments of the present application do not specifically limit the blockchain network (or blockchain platform), which may include but is not limited to: a public blockchain network, a private blockchain network, a consortium chain, etc.

[0085] Step 220: The blockchain network establishes a trusted connection with the external server and sends task information to the external server.

[0086] As an example, a blockchain network can establish a trusted connection with an external server, which can be a separate physical server outside the blockchain network. After the blockchain network and the external server establish a trusted connection, the blockchain network can send task information received from a user to the external server for processing. Specifically, a blockchain node (e.g., a first blockchain node) in the blockchain network that receives the task information can establish a trusted connection with the external server, and the first blockchain node can send the task information to the external server for processing.

[0087] The embodiments of this application do not specifically limit the communication method and communication protocol between the blockchain network and the external server. In one possible implementation, the communication between the blockchain network and the external server uses the Google Remote Procedure Call (gRPC) protocol, and the first blockchain node in the blockchain network sends the task information to the external server via the gRPC protocol.

[0088] For example, assuming the blockchain network is a consortium chain and the external server is a relay server, the consortium chain code written for the outsourced task in the first blockchain node acts as the client, and the relay server acts as the server, transmitting task information via the gRPC protocol. For example, this task information includes task parameters. After the user submits the task parameters, the chaincode client on the first blockchain node establishes a gRPC connection with the relay server, serializes the task parameters, and sends them to the relay server. After receiving the response message from the relay server, the chaincode client on the first blockchain node terminates the gRPC interaction and stores the task information on-chain.

[0089] Step 230: The external server performs inference calculation based on the task information to obtain the result of the inference calculation.

[0090] In the embodiment of the present application, after receiving the task information sent by the blockchain network, the external server can perform inference calculations based on the task information. For example, the task information can be used as an input parameter of a model (e.g., a first neural network model) to perform inference calculations on the model.

[0091] For ease of description, the following explanation is given by taking an external server as a relay server as an example.

[0092] As an example, after the relay server receives the serialized task parameters sent by the blockchain network, it can deserialize the serialized task parameters, restore the task parameters, and perform inference calculations on a model (e.g., a first neural network model) based on the task parameters.

[0093] In one possible implementation, the relay server has a certain computing power, and the relay server can complete the inference calculation of the model (for example, the first neural network model) by itself. As an example, the relay server schedules the tasks and distributes them to the task execution device worker to perform the inference calculation of the model (for example, the first neural network model). For example, as shown in Figure 3, the relay server adds the Celery distributed asynchronous task framework to perform task scheduling. After the relay server receives the request submitted by the chain code, it deserializes the data and restores the task parameters, and then encapsulates the task request and puts it into the Celery message broker asynchronous queue. The task execution device worker takes the task from the broker queue to perform the inference calculation of the model (for example, the first neural network model). The worker here can be understood as a process.

[0094] In another possible implementation, if the relay server's computing power isn't sufficient to fully support inference on a deep neural network model, the relay server can outsource or delegate processing to other servers. For example, the relay server can establish a connection with an edge server and delegate the execution of the most time-consuming linear layer in the first neural network model to a faster edge server for inference, while simultaneously monitoring the completion status of the task.

[0095] In another possible implementation, the relay server can also send tasks to the TEE for execution. As an example, as shown in Figure 3, the task execution device worker takes the task from the broker queue and executes it in the trusted execution environment (TEE), for example, by partitioning the task into an Intel SGX enclave within the TEE. The relay server also monitors the completion status of the task.

[0096] It should be understood that since TEE provides an isolated environment to store the user's sensitive information (e.g., the user's code and data), TEE provides a more secure space for the execution of code and data, and ensures the confidentiality and security of the user's sensitive information (e.g., the user's code and data).

[0097] In another possible implementation, to address the problem of TEE memory being too small to complete the model's complex calculations, as shown in Figure 3, the TEE can also outsource or delegate tasks to other servers for processing. For example, Intel SGX in the TEE can protect selected code and data from being leaked and modified. However, to address the problem of its small memory being insufficient to support the complete reasoning of the deep neural network model, the enclave in Intel SGX delegates the execution of the most time-consuming linear layer in the first neural network model to the faster edge server for reasoning operations through a matrix multiplication-based outsourcing solution, while simultaneously monitoring the completion status of the task.

[0098] Step 240: The person who completes the task sends the result of the inference calculation to the TEE for verification.

[0099] In the embodiment of the present application, there are multiple ways for the task completer to send the result of the reasoning calculation to the TEE for verification. The following is a detailed description of several possible implementation methods in conjunction with step 240.

[0100] In one possible implementation, the task is completed by a relay server, which can directly send the result of the inference calculation to the TEE for verification.

[0101] In another possible implementation, the task is completed by the edge server, which can directly send the result of the inference calculation to the TEE for verification, or the edge server can also send the result of the inference calculation to the relay server, and the relay server forwards the result of the inference calculation to the TEE for verification. This application does not make specific limitations on this.

[0102] There are many ways to deploy the TEE, which is not specifically limited in the embodiments of this application. In one example, the TEE is deployed in the blockchain network, for example, a TEE is deployed on each blockchain node. In another example, the TEE is deployed on a separate server in addition to the blockchain network and relay server.

[0103] Step 250: TEE verifies the result of the inference calculation.

[0104] In one possible implementation, the TEE can infer the actual result based on the model and compare it with the obtained result to determine whether the inference result it obtained is credible. If the actual result obtained by the TEE inference is consistent with the obtained result, it can be understood that the inference result it obtained is credible, and the TEE can sign the obtained result.

[0105] Step 260: The blockchain network uploads the inference results after TEE verification to the chain.

[0106] In an embodiment of the present application, a first blockchain node can obtain TEE-verified reasoning results, for example, reasoning results with a TEE signature. There are various specific implementation methods, which are not specifically limited in the present embodiment. In one example, a TEE is deployed on the first blockchain node, and the first blockchain node can directly obtain TEE-signed reasoning results from the TEE. In another example, a TEE is deployed on a server other than the blockchain network and relay server. The first blockchain node can obtain TEE-signed reasoning results from the TEE deployed on the other server through communication with the other server.

[0107] In an embodiment of the present application, the first blockchain node obtains the result of the inference after TEE verification and stores the result on the chain. After receiving the result of the inference after TEE verification sent by the first blockchain node, other nodes in the blockchain network can send their corresponding TEEs for further verification and store the verified result of the inference on the chain. In one example, the TEEs corresponding to the other nodes in the blockchain network are deployed on their respective nodes, and the other nodes in the blockchain network verify the inference results through the TEEs deployed on their respective nodes. In another example, the TEEs corresponding to the other nodes in the blockchain network are deployed on other servers. The other nodes can send the result of the inference to the TEE deployed on the other server for verification, and obtain the result of the inference with the TEE signature through communication with other servers.

[0108] In the above technical solution, the results of model inference performed on servers outside the blockchain network can be verified through TEE, and the verified results can be stored on the chain through blockchain nodes. In this way, blockchain technology can be used to protect the reasoning data of artificial intelligence from being tampered with, thereby promoting the integrated development of blockchain technology and artificial intelligence technology.

[0109] The above describes in detail the method provided by the embodiment of the present application in conjunction with Figures 1 to 3. The following describes in detail the embodiment of the device of the present application in conjunction with Figures 4 to 7. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment. Therefore, for parts not described in detail, reference can be made to the above method embodiment.

[0110] FIG4 is a schematic block diagram of a data identification device 400 provided in an embodiment of the present application. The device 400 can be implemented by software, hardware, or a combination of both. The device 400 provided in an embodiment of the present application can implement the method flow shown in FIG2 of the embodiment of the present application, and the device 400 includes:

[0111] A receiving module 410 is configured to receive task information at a first blockchain node, where the first blockchain node is a node in the blockchain system;

[0112] A sending module 420 is configured to cause the first blockchain node to send the task information to a task execution device, which is a server outside the blockchain system. The task execution device is configured to perform inference calculations on a first model based on the task information to obtain an inference result of the first model, where the input of the first model includes the task information.

[0113] The sending module 420 is also used for the task execution device to send the reasoning result to the trusted execution environment TEE;

[0114] Verification module 430, used for the TEE to verify the reasoning result and obtain a verified reasoning result;

[0115] Storage module 440, configured for the first blockchain node to obtain the verified reasoning result from the TEE and store it on-chain;

[0116] The storage module 440 is also used by other nodes in the cloud blockchain system to re-verify the verified reasoning results through their respective corresponding TEEs, and store the re-verified reasoning results on the chain.

[0117] Optionally, the task execution device is a first server, which communicates with the first blockchain node. The first server is used to perform inference calculations on the first model based on the task information to obtain an inference result of the first model. The verification module 430 is specifically used by the first server to send the inference result to the TEE for verification.

[0118] Optionally, the task execution device is the TEE, which communicates with the first server. The receiving module 410 is specifically used for the first server to receive the task information sent by the first blockchain node; the sending module 420 is specifically used for the first server to send the task information to the TEE, and the TEE is used to perform inference calculation on the first model according to the task information to obtain the inference result of the first model, and verify the inference result to obtain the verified inference result.

[0119] Optionally, the task execution device is an edge server, and the sending module 420 is specifically used for the first server or the TEE to send the task information to the edge server, and the edge server performs inference calculation on the first model based on the task information to obtain the inference result of the first model; the sending module 420 is specifically used for the edge server to send the inference result to the TEE for verification.

[0120] Optionally, the TEE is deployed on the first blockchain node.

[0121] The apparatus 400 herein may be embodied in the form of a functional module. The term "module" herein may be implemented in the form of software and / or hardware, and is not specifically limited thereto.

[0122] For example, a "module" can be a software program, a hardware circuit, or a combination of the two that implements the aforementioned functions. For example, the implementation of receiving module 410 will be described below using receiving module 410 as an example. Similarly, the implementation of other modules, such as sending module 420, verification module 430, and storage module 440, can refer to the implementation of receiving module 410.

[0123] The receiving module 410 is taken as an example of a software functional unit, and the receiving module 410 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the receiving module 410 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Generally, a region may include multiple AZs.

[0124] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0125] As an example of a hardware functional unit, receiving module 410 may include at least one computing device, such as a server. Alternatively, receiving module 410 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0126] The multiple computing devices included in receiving module 410 can be distributed in the same region or in different regions. The multiple computing devices included in receiving module 410 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in receiving module 410 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0127] Therefore, the modules of each example described in the embodiments of this application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0128] It should be noted that: when the device provided in the above embodiment executes the above method, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. For example, the receiving module 410 can be used to execute any step in the above method, the sending module 420 can be used to execute any step in the above method, the verification module 430 can be used to execute any step in the above method, and the storage module 440 can be used to execute any step in the above method. The steps that the receiving module 410, the sending module 420, the verification module 430, and the storage module 440 are responsible for implementing can be specified as needed, and the full functions of the above device can be realized by respectively implementing different steps in the above method through the receiving module 410, the sending module 420, the verification module 430, and the storage module 440.

[0129] In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation processes are detailed in the method embodiments above and will not be repeated here.

[0130] The method provided in the embodiment of the present application can be performed by a computing device, which can also be referred to as a computer system. It includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a processing unit, a memory and a memory control unit, and the function and structure of the hardware are subsequently described in detail. The operating system is any one or more computer operating systems that implement business processing through a process, for example, a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system or a Windows operating system. The application layer includes applications such as a browser, an address book, a word processing software, and an instant messaging software. Furthermore, optionally, the computer system is a handheld device such as a smart phone, or a terminal device such as a personal computer, and this application is not particularly limited, as long as the method provided in the embodiment of the present application can be used. The execution subject of the method provided in the embodiment of the present application can be a computing device, or a functional module in a computing device that can call a program and execute a program.

[0131] 5 , a computing device provided in an embodiment of the present application is described in detail below.

[0132] FIG5 is a schematic diagram of the architecture of a computing device 1500 provided in an embodiment of the present application. The computing device 1500 may be a server, a computer, or other device with computing capabilities. The computing device 1500 shown in FIG5 includes: at least one processor 1510 and a memory 1520.

[0133] It should be understood that this application does not limit the number of processors and memories in the computing device 1500.

[0134] The processor 1510 executes the instructions in the memory 1520 so that the computing device 1500 implements the method provided in this application. Alternatively, the processor 1510 executes the instructions in the memory 1520 so that the computing device 1500 implements the functional modules provided in this application, thereby implementing the method provided in this application.

[0135] Optionally, the computing device 1500 further includes a communication interface 1530. The communication interface 1530 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1500 and other devices or a communication network.

[0136] Optionally, the computing device 1500 further includes a system bus 1540, wherein the processor 1510, the memory 1520, and the communication interface 1530 are respectively connected to the system bus 1540. The processor 1510 can access the memory 1520 through the system bus 1540. For example, the processor 1510 can read and write data or execute code in the memory 1520 through the system bus 1540. The system bus 1540 is a peripheral component interconnect express (PCI) bus or an extended industry standard architecture (EISA) bus. The system bus 1540 is divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in Figure 5, but this does not mean that there is only one bus or one type of bus.

[0137] In one possible implementation, the processor 1510 is primarily responsible for interpreting computer program instructions (or codes) and processing data in the computer software. The computer program instructions and the data in the computer software may be stored in the memory 1520 or the cache 1516.

[0138] Optionally, the processor 1510 may be an integrated circuit chip having signal processing capabilities. By way of example and not limitation, the processor 1510 is a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The general-purpose processor is a microprocessor, etc. For example, the processor 1510 is a central processing unit (CPU).

[0139] Optionally, each processor 1510 includes at least one processing unit 1512 and a memory control unit 1514 .

[0140] Processing unit 1512, also known as a core, is the most important component of a processor. Processing unit 1512 is manufactured from single-crystal silicon using a specific production process. All processor calculations, command reception, command storage, and data processing are performed by the core. Each processing unit independently executes program instructions, leveraging parallel computing capabilities to accelerate program execution. Each processing unit has a fixed logical structure. For example, a processing unit includes logical units such as a level 1 cache, a level 2 cache, an execution unit, an instruction unit, and a bus interface.

[0141] In one implementation example, the memory control unit 1514 is configured to control data exchange between the memory 1520 and the processing unit 1512. Specifically, the memory control unit 1514 receives memory access requests from the processing unit 1512 and controls access to the memory based on the memory access requests. By way of example and not limitation, the memory control unit is a device such as a memory management unit (MMU).

[0142] In one implementation example, each memory control unit 1514 addresses the memory 1520 via a system bus. An arbiter (not shown in FIG. 5 ) is configured in the system bus to handle and coordinate competing accesses by multiple processing units 1512 .

[0143] In an implementation example, the processing unit 1512 and the memory control unit 1514 are connected to each other via connection lines inside the chip, such as address lines, so as to achieve communication between the processing unit 1512 and the memory control unit 1514.

[0144] Optionally, each processor 1510 also includes a cache 1516, which is a buffer for data exchange (called a cache). When a processing unit 1512 needs to read data, it first searches the cache for the required data. If the data is found, it executes the request directly; if not, it searches the memory. Because the cache runs much faster than the memory, the cache helps the processing unit 1512 run faster.

[0145] Memory 1520 can provide runtime space for processes in computing device 1500. For example, memory 1520 stores computer programs (specifically, program code) used to generate processes. After the computer program is executed by the processor to generate a process, the processor allocates corresponding storage space for the process in memory 1520. Furthermore, the aforementioned storage space further includes a text segment, an initialized data segment, a bit-initialized data segment, a stack segment, a heap segment, and the like. Memory 1520 stores data generated during the execution of the process, such as intermediate data or process data, in the storage space corresponding to the aforementioned process.

[0146] Optionally, the memory is also called the internal memory. Its function is to temporarily store the data processed by the processor 1510 and the data exchanged with external storage such as a hard disk. As long as the computer is running, the processor 1510 will load the data to be calculated into the internal memory for calculation. When the calculation is completed, the processing unit 1512 will transmit the result.

[0147] By way of example and not limitation, memory 1520 is a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Non-volatile memory is read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory is random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory 1520 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0148] The structure of the computing device 1500 listed above is only an example, and the present application is not limited thereto. The computing device 1500 of the embodiment of the present application includes various hardware in the computer system in the prior art. For example, the computing device 1500 also includes other memories in addition to the memory 1520, such as disk storage, etc. Those skilled in the art should understand that the computing device 1500 may also include other devices necessary to achieve normal operation. At the same time, according to specific needs, those skilled in the art should understand that the above-mentioned computing device 1500 may also include hardware devices that implement other additional functions. In addition, those skilled in the art should understand that the above-mentioned computing device 1500 may also include only the devices necessary to implement the embodiment of the present application, and does not necessarily include all the devices shown in Figure 5.

[0149] The present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device may be a server. In some embodiments, the computing device may also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0150] As shown in Figure 6, the computing device cluster includes at least one computing device 1500. The memory 1520 in one or more computing devices 1500 in the computing device cluster may store the same instructions for executing the above method.

[0151] In some possible implementations, the memory 1520 of one or more computing devices 1500 in the computing device cluster may also store some instructions for executing the above method. In other words, the combination of one or more computing devices 1500 can jointly execute the instructions of the above method.

[0152] It should be noted that the memory 1520 in different computing devices 1500 in the computing device cluster can store different instructions, each for performing part of the functions of the above-mentioned apparatus. In other words, the instructions stored in the memory 1520 in different computing devices 1500 can implement the functions of one or more modules in the above-mentioned apparatus.

[0153] In some possible implementations, one or more computing devices in a computing device cluster can be connected via a network. The network can be a wide area network (WAN) or a local area network (LAN), among others. FIG. 7 illustrates one possible implementation. As shown in FIG. 7 , two computing devices 1500A and 1500B are connected via a network. Specifically, each computing device is connected to the network via a communication interface within the computing device.

[0154] It should be understood that the functionality of the computing device 1500A shown in FIG7 may also be implemented by multiple computing devices 1500. Similarly, the functionality of the computing device 1500B may also be implemented by multiple computing devices 1500.

[0155] This embodiment also provides a computer program product including instructions. This computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on a computing device, it causes the computing device to perform the method provided above, or causes the computing device to implement the functions of the apparatus provided above.

[0156] This embodiment also provides a computer program product including instructions. This computer program product may be software or a program product including instructions that can be run on a computing device cluster or stored in any available medium. When executed by a computing device cluster, the computer program product causes the computing device cluster to perform the above-mentioned method or implement the functions of the above-mentioned apparatus.

[0157] This embodiment also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of storing data on a computing device, or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that, when executed on a computing device, cause the computing device to perform the method provided above.

[0158] This embodiment also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of storing data on a computing device, or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that, when executed by a computing device cluster, cause the computing device cluster to perform the method provided above.

[0159] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0160] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0161] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0162] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be other division methods, such as 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.

[0163] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to actual needs.

[0164] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0165] If this function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

[0166] The above is only a specific embodiment of the present application, but the scope of protection of the present application is not limited to this. Any changes or substitutions that can be easily conceived by any person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method of data processing, It is characterized in that The method is applied to a cloud blockchain system, the cloud blockchain system includes multiple blockchain nodes, a cloud management platform deploys the cloud blockchain system on the cloud computing resources it manages, and the cloud management platform deploys blockchain services on the cloud computing resources. The method includes: A first blockchain node receives task information, where the first blockchain node is a node in the cloud blockchain system; The first blockchain node sends the task information to a task execution device, which is a server outside the cloud blockchain system. The task execution device is used to perform inference calculation on a first model according to the task information to obtain an inference result of the first model, and the input of the first model includes the task information; The task execution device sends the reasoning result to the trusted execution environment TEE for verification, and obtains the verified reasoning result; The first blockchain node obtains the verified reasoning result from the TEE and stores it on the chain; The other nodes in the cloud blockchain system re-verify the verified reasoning results through their respective corresponding TEEs, and store the re-verified reasoning results on the chain.

2. The method according to claim 1, It is characterized in that The task execution device is a first server, the first server communicates with the first blockchain node, and the first server is used to perform inference calculation on the first model according to the task information to obtain an inference result of the first model. The task execution device sends the inference result to the trusted execution environment TEE for verification, including: The first server sends the inference result to the TEE for verification.

3. The method according to claim 1, It is characterized in that The task execution device is the TEE, the TEE communicates with the first server, and the method further includes: The first server receives the task information sent by the first blockchain node; The first server sends the task information to the TEE, and the TEE is used to perform inference calculation on the first model according to the task information to obtain the inference result of the first model, and verify the inference result to obtain the verified inference result.

4. The method according to claim 2 or 3, It is characterized in that The task execution device is an edge server, and the method further includes: The first server or the TEE sends the task information to the edge server, and the edge server performs inference calculation on the first model according to the task information to obtain an inference result of the first model; The task execution device sends the inference result to the trusted execution environment TEE for verification, including: The edge server sends the inference result to the TEE for verification.

5. The method according to any one of claims 1 to 4, It is characterized in that The TEE is deployed on the first blockchain node.

6. A method of data processing, It is characterized in that The method comprises: A first blockchain node receives task information, where the first blockchain node is a node in the blockchain system; The first blockchain node sends the task information to a task execution device, which is a server outside the blockchain system. The task execution device is used to perform inference calculation on a first model according to the task information to obtain an inference result of the first model, and the input of the first model includes the task information; The task execution device sends the reasoning result to the trusted execution environment TEE for verification, and obtains the verified reasoning result; The first blockchain node obtains the verified reasoning result from the TEE and stores it on the chain; The other nodes in the blockchain system re-verify the verified reasoning results through their respective corresponding TEEs, and store the re-verified reasoning results on the chain.

7. The method according to claim 6, It is characterized in that The task execution device is a first server, the first server communicates with the first blockchain node, and the first server is used to perform inference calculation on the first model according to the task information to obtain an inference result of the first model. The task execution device sends the inference result to the trusted execution environment TEE for verification, including: The first server sends the inference result to the TEE for verification.

8. The method according to claim 6, It is characterized in that The task execution device is the TEE, the TEE communicates with the first server, and the method further includes: The first server receives the task information sent by the first blockchain node; The first server sends the task information to the TEE, and the TEE is used to perform inference calculation on the first model according to the task information to obtain the inference result of the first model, and verify the inference result to obtain the verified inference result.

9. The method according to claim 7 or 8, It is characterized in that The task execution device is an edge server, and the method further includes: The first server or the TEE sends the task information to the edge server, and the edge server performs inference calculation on the first model according to the task information to obtain an inference result of the first model; The first server sends the inference result to the TEE for verification, including: The edge server sends the inference result to the TEE for verification.

10. The method according to any one of claims 6 to 9, It is characterized in that The TEE is deployed on the first blockchain node.

11. A data processing system, It is characterized in that The system includes a cloud blockchain system, a task execution device, and a trusted execution environment TEE. The cloud blockchain system includes multiple blockchain nodes, including a first blockchain node. The cloud computing platform deploys the cloud blockchain system on the cloud computing resources it manages. The cloud computing platform deploys storage services on the cloud computing resources. The system includes: The first blockchain node is used to receive task information and send the task information to a task execution device, wherein the task execution device is a server outside the cloud blockchain system, and the task execution device is used to perform inference calculation on a first model according to the task information to obtain an inference result of the first model, and the input of the first model includes the task information; The task execution device is used to send the reasoning result to the trusted execution environment TEE; The TEE is used to verify the reasoning result to obtain a verified reasoning result; The first blockchain node is used to obtain the verified reasoning result from the TEE and store it on the chain; The other nodes in the cloud blockchain system are used to re-verify the verified reasoning results through their respective corresponding TEEs, and store the re-verified reasoning results on the chain.

12. The system according to claim 11, It is characterized in that The task execution device is a first server, the first server communicates with the first blockchain node, and the first server is used to perform inference calculation on the first model according to the task information to obtain an inference result of the first model. The first server is specifically used to send the inference result to the TEE for verification.

13. The system according to claim 11, It is characterized in that The task execution device is the TEE, and the TEE communicates with the first server. The first server is used to receive the task information sent by the first blockchain node, and send the task information to the TEE. The TEE is used to perform inference calculation on the first model according to the task information to obtain the inference result of the first model, and verify the inference result to obtain the verified inference result.

14. The system according to claim 12 or 13, It is characterized in that The task execution device is an edge server, The first server or the TEE is used to send the task information to the edge server; The edge server is used to perform inference calculation on the first model according to the task information, obtain the inference result of the first model, and send the inference result to the TEE for verification.

15. A system according to any one of claims 11 to 14, It is characterized in that The TEE is deployed on the first blockchain node.

16. A computing device, It is characterized in that The method comprises a processor and a memory, wherein the processor is used to execute instructions stored in the memory, so that the computing device executes the method according to any one of claims 1 to 5, or executes the method according to any one of claims 6 to 10.

17. A computing device cluster, It is characterized in that comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 5, or executes the method according to any one of claims 6 to 10.

18. A computer program product comprising instructions, It is characterized in that When the instructions are executed by a computing device, the computing device is caused to execute the method according to any one of claims 1 to 5, or execute the method according to any one of claims 6 to 10.

19. A computer program product comprising instructions, It is characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 5, or executes the method according to any one of claims 6 to 10.

20. A computer-readable storage medium, It is characterized in that The method comprises computer program instructions. When the computer program instructions are executed by a computing device, the computing device performs the method according to any one of claims 1 to 5, or performs the method according to any one of claims 6 to 10.

21. A computer-readable storage medium, It is characterized in that The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 5, or executes the method according to any one of claims 6 to 10.

Citation Information

Patent Citations

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

    CN111258725A

  • Blockchain data processing method and device based on cloud computing

    CN111541785A

  • Method and device for block chain to access machine learning model, equipment and medium

    CN114327803A

  • Data processing method, system and device, computer equipment and storage medium

    CN115719272A

  • Blockchain for artificial intelligence training

    US20220138550A1

Cited By

  • Data management and cross-platform scheduling method and system based on alliance chain

    CN119544364A