Block chain-based computing power task processing method and apparatus, and related device

By identifying task chains and generating operation logs within the blockchain, and combining classifiers and smart contracts to optimize the selection of computing nodes, the problem of poor task processing performance of blockchain computing power is solved, achieving transparency and traceability of tasks and improving processing efficiency.

CN121217367APending Publication Date: 2025-12-26CHINA MOBILE GROUP DESIGN INST +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510266809.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

When blockchain processes computing tasks, competition can prevent the acquisition of processing data and the real-time management of traffic paths and node status, resulting in poor processing performance.

Method used

By receiving computing power task processing requests from users, verifying their identities, determining the task chain in the blockchain, processing the target computing power tasks in sequence, generating operation logs and storing them in the blockchain, and using classifiers and smart contracts to optimize the selection and sorting of computing nodes and dynamically adjust the task path.

Benefits of technology

It achieves transparency and traceability in the execution of computing tasks, improves the processing efficiency of blockchain, and ensures the efficient use of computing resources and the reliable execution of tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121217367A_ABST
    Figure CN121217367A_ABST
Patent Text Reader

Abstract

The invention provides a computing power task processing method and device based on a block chain and related equipment. The method comprises the following steps: receiving a computing power task processing request sent by a target user side; under the condition that the identity verification of the identity information is passed, determining a task chain in a block chain based on the configuration information; processing the target computing power tasks in sequence according to a sequence indicated by the task chain based on the plurality of target computing nodes, and generating an operation log; and sending the processing result to the target user side, and storing the operation log in the block chain. After the computing power task processing request of the user side is received, the task chain is matched in the block chain according to the computing power task processing request, so that the target computing power task is processed based on the task chain and the operation log is reserved, the execution transparency and traceability of processing the computing power task in the block chain are realized, and the user experience is improved. And the processing effect of the block chain on the computing power task is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a blockchain-based computing power task processing method, apparatus, and related equipment. Background Technology

[0002] Blockchain is a distributed ledger technology that records data in a decentralized manner. Blockchain features data immutability, transparency, and security. Each block contains a set of transaction records and is cryptographically linked to the previous block to form a chain. Blockchain technology is widely used in fields such as cryptocurrencies, supply chain management, and smart contracts. Currently, when using blockchain to process computing tasks, the competition among multiple service providers makes it difficult to obtain processing data. Typically, results are only recorded after the computing task is completed, neglecting real-time management of traffic paths and node states during task execution. This prevents dynamic adjustments based on the current processing status of the computing task, resulting in poor performance for blockchain in handling computing tasks. Summary of the Invention

[0003] This application provides a blockchain-based computing power task processing method, apparatus, and related equipment to address the problem of poor performance of blockchain in computing power task processing in the prior art.

[0004] To solve the above problems, this application is implemented as follows:

[0005] In a first aspect, embodiments of this application provide a blockchain-based computing power task processing method, the method comprising:

[0006] Receive a computing power task processing request sent by a target user terminal. The computing power task processing request includes the target computing power task to be processed and task information. The task information includes the identity information and configuration information of the target user terminal. The configuration information is used to indicate the computing node that can process the target computing power task.

[0007] If the identity information is successfully authenticated, a task chain is determined in the blockchain based on the configuration information. The task chain includes multiple target computing nodes that process the target computing power task in sequence.

[0008] Based on the multiple target computing nodes, the target computing power task is processed sequentially according to the order indicated by the task chain, and an operation log is generated. The operation log includes the processing result and multiple processing information. The processing result is the processing result of the task chain on the target computing power task. The multiple processing information corresponds one-to-one with the multiple target computing nodes, and the processing information includes the processing process information and processing time of the corresponding target computing node on the target computing power task.

[0009] The processing result is sent to the target user terminal, and the operation log is stored in the blockchain.

[0010] Optionally, if the identity information is successfully authenticated, determining the task chain in the blockchain based on the configuration information includes:

[0011] In the blockchain, which includes multiple computing nodes, the working status of each computing node is determined to obtain multiple working status information. The multiple working status information corresponds one-to-one with the multiple computing nodes, and the working status information includes idle status and used status.

[0012] If the identity information is successfully authenticated, multiple candidate computing nodes are determined in the blockchain based on the configuration information and the multiple working status information. The candidate computing nodes are the computing nodes whose working status information is in the idle state and which are capable of processing the target computing power task.

[0013] The candidate computing nodes are filtered to obtain multiple target computing nodes;

[0014] The multiple target computing nodes are sorted sequentially to obtain the task chain.

[0015] Optionally, the step of filtering the plurality of candidate computing nodes to obtain a plurality of target computing nodes includes:

[0016] The multiple candidate computing nodes are screened based on a classifier and a preset smart contract to determine the multiple target computing nodes. The classifier is used to analyze the processing efficiency and processing capacity of the multiple computing nodes. The preset smart contract is used to determine the node priority of the multiple computing nodes according to preset conditions. The preset conditions include at least one of the following: computing capacity of the computing node, location of the computing node, current load of the computing node, network bandwidth of the computing node, and historical success rate of the computing node.

[0017] The step of sequentially sorting the plurality of target computing nodes to obtain the task chain includes:

[0018] The multiple target computing nodes are sequentially sorted based on the classifier and the preset smart contract to obtain the task chain.

[0019] Optionally, before receiving the computing power task processing request sent by the target user terminal, the method further includes:

[0020] Multiple containers are created in a Kubernetes cluster and deployed on multiple compute nodes to process computing tasks.

[0021] Obtain multiple user terminal information that corresponds one-to-one with multiple user terminals. The user terminal information includes the identity information and permission information of the corresponding user terminal. The permission information is the processing permission of the corresponding user terminal in the blockchain.

[0022] The multiple containers are divided according to the multiple user terminal information to obtain multiple namespaces. Each namespace includes at least one of the containers, and the multiple namespaces correspond one-to-one with the multiple user terminals.

[0023] The blockchain is generated based on the multiple namespaces and the target blockchain network.

[0024] Optionally, before determining the task chain in the blockchain based on the configuration information after the identity information has been successfully authenticated, the method further includes:

[0025] Based on the task information, a target namespace matching the target user terminal is determined from the multiple namespaces;

[0026] Based on the target namespace, the identity information corresponding to the target user terminal is authenticated to obtain a verification result. The verification result is used to indicate whether the identity information is successfully authenticated, and the authentication is used to determine whether the target user terminal and the computing power task processing request are legitimate.

[0027] Optionally, generating the blockchain based on the plurality of namespaces and the preset blockchain network includes:

[0028] Multiple blockchain channels are created, which are used to generate multiple corresponding blockchain subnets, and the blockchain subnets separate data streams;

[0029] Generate blockchain chaincode, which includes a first smart contract and a second smart contract. The first smart contract is used to process public data in the blockchain, and the second smart contract is used to process private data in the blockchain.

[0030] The preset blockchain network is generated based on the preset configuration information, the blockchain chaincode, and the multiple blockchain subnets. The preset configuration information is used to define the computing power task processing flow, authentication flow, and data storage flow of the preset blockchain network.

[0031] Optionally, the plurality of target computing nodes includes a first target computing node and a second target computing node, and the plurality of processing information includes first processing information and second processing information. The step of processing the target computing power task based on the plurality of target computing nodes and generating an operation log includes:

[0032] After processing the target computing power task based on the first target computing node, first processing information is generated;

[0033] The second target computing node is determined based on the task chain, wherein the first target computing node and the second target computing node are any two adjacent target computing nodes in the task chain, and the second target computing node is the target computing node following the first target computing node.

[0034] If the security verification of the first processing information is passed by the second target computing node, the target computing power task is processed based on the second target computing node to generate the second processing information.

[0035] Optionally, the method further includes:

[0036] Receive a computing power task query request sent by the target user terminal, the computing power task query request being used to query multiple processing information corresponding to the target computing power task;

[0037] Based on the computing power task query request, obtain multiple processing information corresponding to the target computing power task from the blockchain;

[0038] If the security of the multiple processing information passes, the multiple processing information will be sent to the target user terminal.

[0039] Secondly, embodiments of this application also provide a blockchain-based computing power task processing device, comprising:

[0040] A receiving module is used to receive a computing power task processing request sent by a target user terminal. The computing power task processing request includes a target computing power task to be processed and task information. The task information includes the identity information and configuration information of the target user terminal. The configuration information is used to indicate a computing node that can process the target computing power task.

[0041] The determination module is used to determine a task chain in the blockchain based on the configuration information when the identity information is successfully authenticated. The task chain includes multiple target computing nodes that process the target computing power task in sequence.

[0042] The processing module is used to process the target computing power task sequentially according to the order indicated by the task chain based on the multiple target computing nodes, and generate an operation log. The operation log includes processing results and multiple processing information. The processing results are the processing results of the task chain on the target computing power task. The multiple processing information corresponds one-to-one with the multiple target computing nodes, and the processing information includes the processing process information and processing time of the corresponding target computing node on the target computing power task.

[0043] The sending module is used to send the processing result to the target user terminal and to store the operation log in the blockchain.

[0044] Thirdly, embodiments of this application also provide an electronic device, including: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; the processor is configured to read the program in the memory to implement the steps in the method described in the first aspect above.

[0045] Fourthly, embodiments of this application also provide a readable storage medium for storing a program, which, when executed by a processor, implements the steps of the method described in the first aspect above.

[0046] Fifthly, embodiments of this application also provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps in the method described in the first aspect above.

[0047] This application provides a blockchain-based computing power task processing method, apparatus, and related equipment. The method includes: receiving a computing power task processing request sent by a target user terminal, the computing power task processing request including a target computing power task to be processed and task information, the task information including the identity information and configuration information of the target user terminal, the configuration information being used to indicate computing nodes capable of processing the target computing power task; if the identity information is successfully authenticated, determining a task chain in the blockchain based on the configuration information, the task chain including multiple target computing nodes sequentially processing the target computing power task; processing the target computing power task sequentially according to the order indicated by the task chain based on the multiple target computing nodes, generating an operation log, the operation log including processing results and multiple processing information, the processing results being the processing result of the task chain processing the target computing power task, the multiple processing information corresponding one-to-one with the multiple target computing nodes, and the processing information including processing process information and processing time of the corresponding target computing node processing the target computing power task; sending the processing results to the target user terminal; and storing the operation log in the blockchain. After receiving a computing power task processing request from a user, this application matches a task chain in the blockchain according to the request, and then processes the target computing power task based on the task chain and retains operation logs. This achieves transparency and traceability of computing power task processing in the blockchain and improves the blockchain's processing efficiency for computing power tasks. Attached Figure Description

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

[0049] Figure 1 A flowchart illustrating the blockchain-based computing power task processing method provided in this application embodiment;

[0050] Figure 2 This is a schematic diagram of a blockchain structure provided in an embodiment of this application;

[0051] Figure 3 This is one of the flowcharts provided in the embodiments of this application;

[0052] Figure 4 This is the second flowchart provided for an embodiment of this application;

[0053] Figure 5 The third flowchart provided for the embodiments of this application;

[0054] Figure 6 A schematic diagram of the structure of a blockchain-based computing power task processing device provided in an embodiment of this application;

[0055] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0056] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0057] The terms "first," "second," etc., used in the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes 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 these processes, methods, products, or devices. Additionally, the use of "and / or" in this application indicates at least one of the connected objects, such as A and / or B and / or C, representing seven possibilities: including A alone, B alone, C alone, and the presence of both A and B, both B and C, both A and C, and the presence of A, B, and C.

[0058] See Figure 1 , Figure 1 This is a flowchart illustrating the blockchain-based computing power task processing method provided in the embodiments of this application. Figure 1 The blockchain-based computing task processing method shown can be executed by a server, which has a blockchain deployed on it.

[0059] like Figure 1 As shown, a blockchain-based computing power task processing method may include the following steps:

[0060] Step 101: Receive a computing power task processing request sent by the target user terminal. The computing power task processing request includes the target computing power task to be processed and task information. The task information includes the identity information and configuration information of the target user terminal. The configuration information is used to indicate the computing node that can process the target computing power task.

[0061] The blockchain-based computing task processing method provided in this embodiment mainly applies blockchain technology. Specifically, blockchain is a distributed ledger technology that records data in a decentralized manner. Blockchain features data immutability, transparency, and security. Each block contains a set of transaction records and is cryptographically linked to the previous block to form a chain. Blockchain technology is widely used in fields such as cryptocurrencies, supply chain management, and smart contracts.

[0062] In the embodiments of this application, for example, such as Figure 2 As shown, Figure 2 This is a schematic diagram of the blockchain structure in this embodiment. The blockchain can consist of an infrastructure layer, a blockchain service layer, a computing power service provision layer, and a user interface layer. Specifically, the infrastructure layer is composed of a Kubernetes cluster, where physical nodes are responsible for hosting the computing power task components and blockchain service components of each service provider. Each service provider has an independent namespace within the cluster for resource isolation and management. The blockchain service layer is responsible for managing ledger data and smart contracts, ensuring data transparency and immutability by recording and verifying all computing power task operation records through peer nodes. The computing power task layer consists of computing power service components from each service provider, which run in the Kubernetes cluster. The computing power service provision layer is responsible for verifying user identity and directing requests to appropriate computing power nodes. Computing power nodes process data and upload the results and operation records to the blockchain network. This layer ensures efficient execution of computing tasks and secure data processing, while also ensuring the trustworthiness of traffic routing through the blockchain. Users initiate computing power task requests through a graphical or command-line interface, receive processing results, and monitor task status and system performance through the interface.

[0063] The target user is a client that has been registered and verified on the blockchain. It can use the computing power server in the blockchain. Specifically, the computing power task processing request includes the target computing power task to be processed and task information. The target computing power task can be a certain computing task to be processed.

[0064] The task information includes the target user's identity information, such as their identity ID and registration information on the blockchain, used to verify the security of the user's identity. Configuration information indicates the computing nodes capable of handling the target computing power task. For example, some computing power tasks can only be processed by specific computing nodes; therefore, configuration information needs to be generated in advance when generating a computing power task processing request so that the blockchain can allocate appropriate computing nodes.

[0065] Step 102: If the identity information is successfully authenticated, a task chain is determined in the blockchain based on the configuration information. The task chain includes multiple target computing nodes that process the target computing power task in sequence.

[0066] In this embodiment, upon receiving a computing power task processing request, the request is verified, primarily to confirm the legitimacy of the user's identity. For example, the blockchain uses digital certificates issued by Certificate Authorities (CAs) to perform multi-layered authentication of the user's identity and task data. Simultaneously, the Transport Layer Security (TLS) protocol ensures the security of traffic data during transmission, preventing malicious interception and data tampering. If the user's identity verification is successful, multiple target computing nodes are determined based on the configuration information in the computing power task processing request to process the target computing power task. It should be noted that in this embodiment, the target computing power task generally requires collaborative processing by multiple service providers; therefore, multiple target computing nodes are needed to jointly process the target computing task.

[0067] Specifically, in this embodiment, the task chain consists of multiple target computing nodes arranged in sequence. When the previous target computing node completes the calculation of the target computing task, it generates intermediate calculation results and passes the target computing task and intermediate calculation results to the next target computing node until the calculation of the target computing task is completed.

[0068] Step 103: Based on the multiple target computing nodes, process the target computing power task sequentially according to the order indicated by the task chain, and generate an operation log. The operation log includes processing results and multiple processing information. The processing results are the processing results of the task chain on the target computing power task. The multiple processing information corresponds one-to-one with the multiple target computing nodes, and the processing information includes the processing process information and processing time of the corresponding target computing node on the target computing power task.

[0069] In this embodiment, during the sequential calculation of the target computing power task according to the order indicated by the task chain, an operation log is generated. The operation log includes processing results and multiple processing information items. The processing results are the final results of calculating the target computing power task, such as the final calculated data. The multiple processing information items are the processing information generated by each target computing node during the calculation process. Specifically, the processing information includes the processing process information and processing time of each target computing node in processing the target computing power task. The processing process information may include the intermediate calculation results, calculation methods, calculation parameters, etc., of the current target computing node, which are not specifically limited in this embodiment. The processing time is the processing time for each target computing node to process the target computing power task. This processing time can be two timestamps, such as the start time and end time of processing.

[0070] It's important to note that at different stages of task execution, the blockchain ledger records real-time state updates and maintains global consistency through a consensus mechanism among distributed nodes. Each adjustment to the task path is driven by a smart contract and written to the ledger in real time to ensure the trustworthiness and transparency of path selection. Furthermore, the distributed ledger provides end-to-end auditing capabilities, supporting traceability of the traffic routing process.

[0071] Step 104: Send the processing result to the target user terminal and store the operation log in the blockchain.

[0072] In this embodiment, the final processing result is sent to the target user terminal, and the operation log corresponding to each target computing node is stored in the blockchain.

[0073] Specifically, the blockchain network consists of multiple nodes, each holding a complete ledger that records the configuration, operation logs, and status data of computing tasks. Leveraging the characteristics of a distributed ledger, this application dynamically plans the optimal execution path for computing tasks by analyzing real-time status data (such as node load, network latency, and historical success rates). During task execution, the immutability and traceability of the blockchain ledger ensure the reliability and transparency of each path adjustment.

[0074] After receiving a computing power task processing request from a user, this application matches a task chain in the blockchain according to the request, and then processes the target computing power task based on the task chain and retains operation logs. This achieves transparency and traceability of computing power task processing in the blockchain and improves the blockchain's processing efficiency for computing power tasks.

[0075] In some feasible implementations, optionally, determining the task chain in the blockchain based on the configuration information after the identity information has been successfully authenticated includes:

[0076] In the blockchain, which includes multiple computing nodes, the working status of each computing node is determined to obtain multiple working status information. The multiple working status information corresponds one-to-one with the multiple computing nodes, and the working status information includes idle status and used status.

[0077] If the identity information is successfully authenticated, multiple candidate computing nodes are determined in the blockchain based on the configuration information and the multiple working status information. The candidate computing nodes are the computing nodes whose working status information is in the idle state and which are capable of processing the target computing power task.

[0078] The candidate computing nodes are filtered to obtain multiple target computing nodes;

[0079] The multiple target computing nodes are sorted sequentially to obtain the task chain.

[0080] In this embodiment, the working status of each computing node needs to be determined during the generation of the task chain. Specifically, the blockchain includes multiple computing nodes, and the blockchain can obtain the working status information of each computing node in real time. The working status information includes idle status and used status. Idle status means that the current computing node has no computing power tasks and can be allocated computing power tasks, while used status means that the current computing node is processing computing power tasks and therefore cannot be allocated new computing power tasks.

[0081] Once the blockchain verifies the identity of the target user, it first filters through multiple work status information to obtain several idle computing nodes. Next, it matches these idle computing nodes based on configuration information to find those capable of handling the target computing power task, ultimately resulting in multiple candidate computing nodes. The selected candidate computing nodes are defined as being in an idle state and capable of handling the target computing power task.

[0082] After identifying multiple candidate computing nodes, these nodes are filtered according to preset filtering rules to determine multiple target computing nodes. These preset filtering rules can prioritize efficiency, computational accuracy, etc., and are not specifically limited in this embodiment. The selected target computing nodes are then sequentially sorted to generate a task chain.

[0083] In this embodiment, the selection method for computing nodes can comprehensively consider information such as the working status of computing nodes, thereby determining the optimal task chain for the target computing power task, ensuring the efficient use of computing power resources and the reliable execution of tasks, and improving the processing efficiency of the target computing power task.

[0084] Optionally, the step of filtering the plurality of candidate computing nodes to obtain a plurality of target computing nodes includes:

[0085] The multiple candidate computing nodes are screened based on a classifier and a preset smart contract to determine the multiple target computing nodes. The classifier is used to analyze the processing efficiency and processing capacity of the multiple computing nodes. The preset smart contract is used to determine the node priority of the multiple computing nodes according to preset conditions. The preset conditions include at least one of the following: computing capacity of the computing node, location of the computing node, current load of the computing node, network bandwidth of the computing node, and historical success rate of the computing node.

[0086] The step of sequentially sorting the plurality of target computing nodes to obtain the task chain includes:

[0087] The multiple target computing nodes are sequentially sorted based on the classifier and the preset smart contract to obtain the task chain.

[0088] In this embodiment, as Figure 3 As shown, Figure 3 As illustrated in one of the flowcharts in the application embodiments, the classifier, acting as a guiding component, is deployed at the beginning of the computing task processing flow. Its role is to direct user computing requests to specific computing nodes. This process not only ensures the rational allocation of traffic but also isolates resources and users from different service providers. For example, system administrators can use the classifier to verify whether a user is registered in the system, thereby ensuring that only legitimate users can access computing nodes. Simultaneously, the entry point of the computing node is invisible to external users, increasing system security and preventing potential attacks. In other embodiments, the traffic target can be set to the classifier instead of directly specifying the specific destination of the computing task. This design increases the system's flexibility and security.

[0089] In this embodiment, a pre-defined smart contract defines the scheduling rules for computing tasks on the blockchain, including dynamic logic for task creation, allocation, and path selection. Based on real-time data, the smart contract dynamically evaluates the performance of computing nodes and, combined with historical records and node states in the distributed ledger, generates an optimal traffic routing strategy for each task. For example, when the load of a node exceeds a threshold, the smart contract can immediately reallocate task traffic to other reliable nodes to avoid network congestion or task failure. Specifically, the pre-defined smart contract determines the node priority of multiple computing nodes based on pre-defined conditions, which include at least one of the following: the computing power of the computing node, the location of the computing node, the current load of the computing node, the network bandwidth of the computing node, and the historical success rate of the computing node, etc., which are not specifically limited in this embodiment.

[0090] The pre-defined smart contract comprehensively considers multiple dimensions in path planning, including node computing power, current load, geographical location, network bandwidth, and historical success rate. Through a dynamic scoring mechanism, the smart contract assigns a trust score to each node based on these dimensions and optimizes path selection based on the score results. This mechanism effectively achieves real-time traffic distribution and balanced scheduling, ensuring efficient utilization of computing resources and reliable task execution.

[0091] Through a dynamic scoring mechanism, the smart contract assigns a trust score to each node based on these dimensions and optimizes path selection based on the score results. This mechanism effectively achieves real-time traffic distribution and balanced scheduling, ensuring efficient utilization of computing resources and reliable task execution.

[0092] Optionally, before receiving the computing power task processing request sent by the target user terminal, the method further includes:

[0093] Multiple containers are created in a Kubernetes cluster and deployed on multiple compute nodes to process computing tasks.

[0094] Obtain multiple user terminal information that corresponds one-to-one with multiple user terminals. The user terminal information includes the identity information and permission information of the corresponding user terminal. The permission information is the processing permission of the corresponding user terminal in the blockchain.

[0095] The multiple containers are divided according to the multiple user terminal information to obtain multiple namespaces. Each namespace includes at least one of the containers, and the multiple namespaces correspond one-to-one with the multiple user terminals.

[0096] The blockchain is generated based on the multiple namespaces and the target blockchain network.

[0097] In this embodiment, as Figure 4 As shown, Figure 4 This is the second flowchart in this embodiment. In this embodiment, the actual operation of computing resources and blockchain components is supported by the Kubernetes cluster and physical nodes at the infrastructure layer. Kubernetes abstracts computing resources through container technology, enabling computing tasks to run on any node that supports containers. Each computing task component is packaged into a container image, which can be executed on any Kubernetes cluster node. As a container orchestration platform, Kubernetes achieves efficient resource utilization and flexible task scheduling by automating the deployment, scaling, and management of containerized computing task components. The physical nodes in the Kubernetes cluster are managed by different organizations, each running and managing its private components and blockchain services within its namespace.

[0098] In a Kubernetes cluster, physical nodes are responsible for hosting containerized computing task components and blockchain network components, providing them with computing and network resources. Each physical node is configured with the necessary hardware and software environment to support efficient computing and network communication. Kubernetes abstracts computing resources through container technology, enabling computing tasks to run on any node that supports containers. Each computing task component is packaged into a container image, which can be executed on any Kubernetes cluster node. This containerization technology not only makes the deployment of computing tasks flexible but also efficiently utilizes cluster resources. For example, a computationally intensive task can be encapsulated in a Docker container and scheduled by Kubernetes to run on a node with sufficient computing resources. This approach frees computing tasks from being limited to specific hardware, improving resource utilization and task execution efficiency.

[0099] In this embodiment, multiple user terminals register on the blockchain, generating multiple user terminal information entries. This user terminal information includes identity information and permission information. Identity information may include the user terminal's ID, identity data, etc. Permission information refers to the user terminal's processing permissions within the blockchain; for example, higher permissions allow the user to access higher-level computing nodes. This embodiment does not impose specific limitations on this.

[0100] Based on the client information, the multiple containers are divided into multiple namespaces, each corresponding to a client. Specifically, in Kubernetes, a Pod is the smallest unit of deployment and management. A Pod can contain one or more containers that share the same network namespace and storage volumes. Kubernetes provides a namespace mechanism for isolating resources from different users or organizations within a single cluster. Each organization has an independent namespace in the Kubernetes cluster, and all components belonging to that organization (including blockchain network components and computing task components) are created and managed within that namespace. For example, Organization A and Organization B each have independent namespaces, managing their own computing tasks and blockchain components within their respective namespaces, ensuring resource isolation and independent management.

[0101] Optionally, before determining the task chain in the blockchain based on the configuration information after the identity information has been successfully authenticated, the method further includes:

[0102] Based on the task information, a target namespace matching the target user terminal is determined from the multiple namespaces;

[0103] Based on the target namespace, the identity information corresponding to the target user terminal is authenticated to obtain a verification result. The verification result is used to indicate whether the identity information is successfully authenticated, and the authentication is used to determine whether the target user terminal and the computing power task processing request are legitimate.

[0104] In this embodiment, before verifying the identity information of the target user, a target namespace matching the target user is determined from multiple namespaces based on the task information. It should be noted that each organization creates a persistent volume (PV) and a persistent volume declaration (PVC) in its namespace. These persistent storages are used to store certificates, configuration files, and other important data. For example, organization A creates a PV in its namespace to store blockchain certificates and configuration files, and requests and uses the storage volume through the PVC to ensure data persistence and security. Since Pods are non-persistent resources, their IP addresses may change with creation and destruction. Therefore, to achieve stable communication between Pods, we create service resources in Kubernetes. Services provide a stable access point for Pods through domain names, ensuring that communication between Pods is not affected by changes in IP addresses. For example, a Pod responsible for data processing needs to communicate with a database Pod. By creating a service resource, the database Pod can be accessed using a fixed domain name, without needing to worry about changes in its IP address.

[0105] After identifying the target namespace that matches the target user client, the identity information corresponding to the target user client is authenticated to obtain a verification result. This verification primarily determines the legitimacy of the target user client and the computing power task processing request, preventing the inclusion of dangerous situations such as viruses in the target user client and the computing power task processing request.

[0106] Key components are deployed within the Kubernetes cluster's namespace, including peer nodes responsible for managing the ledger and smart contracts, chaincode services deployed as external services, blockchain applications for interacting with the blockchain network, a certificate authority server providing identity authentication services, a command-line terminal providing an environment for operating organizational nodes, computing task instances providing specific computing power services or acting as load balancers, and an authentication database storing user identity data. Additionally, a service resource is included to provide a stable network access point between nodes. These components are automatically managed and scaled through Kubernetes' deployment mechanisms, ensuring high availability and flexibility. The service resource implements load balancing based on different strategies (such as round-robin and least connections) to ensure high availability and stability of the services.

[0107] This application leverages the combination of Kubernetes and blockchain to achieve collaborative management and isolation of computing resources among service providers. Namespace isolation strategies ensure that tasks and data from different service providers do not interfere with each other, while the blockchain ledger records the collaboration process, mitigating single points of failure and tampering risks inherent in traditional centralized systems. Compared to ordinary Kubernetes applications, this application uses blockchain smart contracts to dynamically manage task path planning and traffic routing, ensuring flexibility and efficiency in cross-service provider task scheduling. The configuration, status updates, and traffic management of each task are uploaded to the blockchain for storage and verification, forming a complete task lifecycle management mechanism, thereby achieving task transparency and end-to-end auditing. Furthermore, this application supports dynamically adjusting task scheduling rules, combining multi-dimensional data such as node performance and historical success rates for trustworthy scoring, providing a basis for task path selection. Through this mechanism, this application effectively fills the gap in security and dynamism inherent in ordinary Kubernetes in multi-service provider collaboration scenarios.

[0108] Optionally, generating the blockchain based on the plurality of namespaces and the preset blockchain network includes:

[0109] Multiple blockchain channels are created, which are used to generate multiple corresponding blockchain subnets, and the blockchain subnets separate data streams;

[0110] Generate blockchain chaincode, which includes a first smart contract and a second smart contract. The first smart contract is used to process public data in the blockchain, and the second smart contract is used to process private data in the blockchain.

[0111] The preset blockchain network is generated based on the preset configuration information, the blockchain chaincode, and the multiple blockchain subnets. The preset configuration information is used to define the computing power task processing flow, authentication flow, and data storage flow of the preset blockchain network.

[0112] In this embodiment, as Figure 5 As shown, Figure 5This is the third flowchart in the application embodiments. In this embodiment, the blockchain channel is a private blockchain subnet used to separate different transactions and data streams to ensure privacy and security. Each channel has an independent ledger and smart contract, and only member nodes that have joined the channel can access the data and transactions within it. The blockchain chaincode is jointly annotated by the system administrator and the service provider. After the blockchain channel and blockchain chaincode are determined, the user can create computing power task configuration information through the application. This configuration information needs to be certified by the service provider and the system administrator; only after successful certification can the task be executed. During the execution of the computing power task, each node can update its processing status, and the service provider and user can view the historical records through the application using their respective certificates.

[0113] Specifically, in the blockchain of this application, assets are represented as a set of key-value pairs, and their state changes are recorded through transactions on the channel ledger. Assets primarily include computing power task configurations and node records. The computing power task configuration stores metadata and descriptions of the computing power nodes. This metadata includes a User Identifier (UID), a Chain Identifier (CID), and hash verification enabled status. The node description in the computing power task configuration includes a Provider Identifier (PID), a Service Identifier (SID), an Instance Identifier (IID), a natural language description of the provider, service, and instance, the receiving and sending addresses, ports, and protocols, a list of hops, and a data source verification strategy. The node record includes the UID, CID, PID, SID, and IID, the number of uses and successes, debugging information or information from the last execution, error information (if the last execution failed), hash values ​​of input and output data, and timestamps for data input and output.

[0114] In addition to publicly available data, this application also provides methods for using private and transient data to share information between specific service providers and users. This information describes the source and destination of authentication credentials and computing tasks. Transient data is used as input data, and private data is used for data sharing. This data is not stored in a ledger; only the hash value of the data is recorded as evidence of its existence for auditing purposes.

[0115] It should be noted that chaincode is deployed in the blockchain network in this embodiment, including a first smart contract and a second smart contract. The first smart contract handles public data, and the second smart contract handles private data. The chaincode defines operations on assets, such as creating computing task configurations or node states, retrieving configurations for specified indexes, deleting configurations for specified indexes or node states, updating configurations for specified indexes or node states, storing a pair of private key-value pairs, and retrieving the private value of a specified key. The chaincode provides functions for dynamically updating task configurations, path selection, and status auditing, ensuring the transparency of computing tasks and real-time optimization of traffic routing.

[0116] Blockchain applications interact with the deployed blockchain network by calling the Fabric Gateway's client API. Before using a blockchain application, users must provide their MSPID, certificate, the address and port of the specified peer node, and the channel and chaincode name. The application provides advanced functions by calling the chaincode, including data source verification, obtaining next-hop entries, setting the source and target of computing tasks, and sharing authentication information with each node.

[0117] This embodiment supports the combination of private data and transient data, ensuring the privacy of data sharing while providing auditing and tracking functions to enhance the security of data interaction and the transparency of the system. Private data is shared only between specific service providers and users, while transient data is used to describe the temporary state of a task. This data is not directly stored in the blockchain ledger but is recorded as evidence of existence in the form of hash values. In this way, both the privacy of sensitive information is ensured, and sufficient auditing and tracking functions are provided, facilitating comprehensive supervision of the task execution process by users and system administrators.

[0118] Optionally, the plurality of target computing nodes includes a first target computing node and a second target computing node, and the plurality of processing information includes first processing information and second processing information. The step of processing the target computing power task based on the plurality of target computing nodes and generating an operation log includes:

[0119] After processing the target computing power task based on the first target computing node, first processing information is generated;

[0120] The second target computing node is determined based on the task chain, wherein the first target computing node and the second target computing node are any two adjacent target computing nodes in the task chain, and the second target computing node is the target computing node following the first target computing node.

[0121] If the security verification of the first processing information is passed by the second target computing node, the target computing power task is processed based on the second target computing node to generate the second processing information.

[0122] In this embodiment, the computing power process of multiple target computing nodes is described. The target computing nodes include a first target computing node and a second target computing node. Multiple processing information includes first processing information and second processing information. The first and second target computing nodes are any two adjacent target computing nodes in the task chain. The second target computing node is the next target computing node after the first target computing node. After the first target computing node completes its processing, and the second target computing node passes the security verification of the first processing information, it processes the target computing power task based on the second target computing node to generate the second processing information.

[0123] Specifically, such as Figure 3 As shown, the computing nodes are responsible for processing specific computing tasks. First, each computing node verifies the data source according to its configuration, ensuring that the received data comes from a trusted source. If the data passes verification, the computing node processes the data and uploads the results to the blockchain. If verification fails, the data is discarded, and the failure record is saved in the blockchain. Verification strategies can be configured according to different needs, such as address-based verification or hash-based verification. The former is faster but less secure, while the latter is slower but more secure.

[0124] In addition to verification, computing nodes are also responsible for user authentication. Service providers can require users to register and authenticate on their platforms. Computing nodes read stored authentication information through a blockchain application and compare it with the service provider's authentication server or database. If authentication passes, data processing continues; otherwise, the data is discarded, and authentication failure is recorded. Computing nodes verify received data sources to ensure they originate from trusted sources. They then process the data and upload the results to the blockchain. If data fails verification, the computing nodes discard the data and record the failure in the blockchain.

[0125] After processing, the computing nodes need to send the results to the next-hop nodes. The next-hop information for each computing node is stored in the computing task configuration. Based on a predefined strategy, the computing node decides which next-hop nodes to send the data to. These records include detailed information and timestamps of the input and output data, ensuring the transparency and traceability of data processing. The blockchain stores all records of computing task processing, including verification status, processing results, and authentication information. The blockchain ensures the transparency and security of processing records; all records are updated to the global state of the blockchain, allowing subsequent nodes to use these records for further verification and processing, thereby improving the overall security, data processing efficiency, and reliability of the system.

[0126] By storing processing records in the blockchain, this application ensures the transparency and security of the execution process of computing tasks. All records are updated to the global state of the blockchain, enabling subsequent nodes to use these records for further verification and processing. This design not only enhances the overall security of the system but also improves the efficiency and reliability of data processing.

[0127] Optionally, the method further includes:

[0128] Receive a computing power task query request sent by the target user terminal, the computing power task query request being used to query multiple processing information corresponding to the target computing power task;

[0129] Based on the computing power task query request, obtain multiple processing information corresponding to the target computing power task from the blockchain;

[0130] If the security of the multiple processing information passes, the multiple processing information will be sent to the target user terminal.

[0131] In this embodiment, after the target user terminal completes the processing of the target computing power task, if the target user terminal wants to query multiple processing information corresponding to multiple target computing nodes, a computing power task query request will be generated. After the blockchain verifies the security of multiple processing information, the multiple processing information will be sent to the target user terminal. This achieves transparent management and reliable recording of the entire lifecycle of the computing power task. The traffic jump path, processing status, and verification information of each task are recorded in real time in the blockchain ledger, ensuring that every step from task generation to execution is traceable and tamper-proof. Especially in a multi-service provider environment, this mechanism significantly improves the security and transparency of the task collaboration process, preventing the risk of data tampering caused by centralized recording. Through this design, the path selection and execution details of each computing power task can be fully reproduced, thus providing strong technical support for task optimization and problem troubleshooting.

[0132] In some implementations, the blockchain can interact with target users through a user interface layer, allowing users to interact with blockchain applications and view results. Here, we illustrate this with the example of creating and executing a cross-vendor computing task chain: The user first creates a new computing task flow through the system interface or command line. This task flow contains multiple computing tasks, each potentially provided by a different provider. The user needs to define the order, required resources, and parameter configurations of each computing task in the task chain. The system registers this information in the blockchain network to ensure the transparency and immutability of the task chain. Each service provider participating in the task chain needs to register in the system and submit details of its computing nodes and available computing functions (e.g., data processing, model training, result analysis, etc.). After verifying the legality and accuracy of this information, the system administrator records it in the blockchain. This ensures that only trusted service providers participate in task chain execution. Based on the task configuration and the service provider's resource information, the system initializes each computing task in the task chain and records the configuration details of each task in the blockchain. This includes allocating appropriate computing nodes for each computing task, setting execution parameters, and determining the execution order of the tasks. When the task begins execution, the system triggers each computing task step-by-step in a predefined order. Each computational task is executed by a compute node from the corresponding service provider. During execution, the compute node verifies the trustworthiness of the data source and processes the data according to the task requirements. Upon completion of the task, the compute node uploads the results and status updates to the blockchain, ensuring that the execution record of each step is transparent and tamper-proof. If a task fails, the system records the reason for the failure and notifies the relevant parties to make corrections and retry. After each computational task is completed, the results are transmitted to the next-hop task node according to the predefined task chain configuration. The system reads the configuration information of the next-hop task from the blockchain to ensure that the results are correctly transmitted and processed. This process continues until all computational tasks in the task chain are completed. Once all computational tasks in the task chain are completed, the system returns the final result to the user. All execution records and status updates stored in the blockchain can be used for post-event auditing and verification.

[0133] After receiving a computing power task processing request from a user, this application matches a task chain in the blockchain according to the request, and then processes the target computing power task based on the task chain and retains operation logs. This achieves transparency and traceability of computing power task processing in the blockchain and improves the blockchain's processing efficiency for computing power tasks.

[0134] See Figure 6 , Figure 6 This is a structural diagram of a blockchain-based computing power task processing device provided in an embodiment of this application. Figure 6 As shown, the blockchain-based computing power task processing device 600 includes:

[0135] The receiving module 610 is used to receive a computing power task processing request sent by a target user terminal. The computing power task processing request includes a target computing power task to be processed and task information. The task information includes the identity information and configuration information of the target user terminal. The configuration information is used to indicate the computing node that can process the target computing power task.

[0136] The determination module 620 is used to determine a task chain in the blockchain based on the configuration information when the identity information is successfully authenticated. The task chain includes multiple target computing nodes that process the target computing power task in sequence.

[0137] The processing module 630 is used to process the target computing power task sequentially according to the order indicated by the task chain based on the plurality of target computing nodes, and generate an operation log. The operation log includes processing results and multiple processing information. The processing results are the processing results of the task chain on the target computing power task. The multiple processing information corresponds one-to-one with the plurality of target computing nodes, and the processing information includes the processing process information and processing time of the corresponding target computing node on the target computing power task.

[0138] The sending module 640 is used to send the processing result to the target user terminal and to store the operation log in the blockchain.

[0139] Optionally, the determining module 620 includes:

[0140] The first determining submodule is used to determine the working status of each computing node in the blockchain and obtain multiple working status information, wherein the multiple working status information corresponds one-to-one with the multiple computing nodes and the working status information includes idle status and used status.

[0141] The second determining submodule is used to determine multiple candidate computing nodes in the blockchain based on the configuration information and the multiple working status information when the identity information is successfully authenticated. The candidate computing nodes are computing nodes whose working status information is in the idle state and which can process the target computing power task.

[0142] The filtering submodule is used to filter the multiple candidate computing nodes to obtain multiple target computing nodes;

[0143] The sorting submodule is used to sort the multiple target computing nodes sequentially to obtain the task chain.

[0144] Optionally, the filtering submodule includes:

[0145] The determining unit is used to filter the plurality of candidate computing nodes based on a classifier and a preset smart contract to determine the plurality of target computing nodes. The classifier is used to analyze the processing efficiency and processing capability of the plurality of computing nodes. The preset smart contract is used to determine the node priority of the plurality of computing nodes according to preset conditions. The preset conditions include at least one of the following: computing capability of computing nodes, location of computing nodes, current load of computing nodes, network bandwidth of computing nodes, and historical success rate of computing nodes.

[0146] The sorting submodule includes: sequentially sorting the plurality of target computing nodes to obtain the task chain, including:

[0147] The sorting unit is used to sort the multiple target computing nodes sequentially based on the classifier and the preset smart contract to obtain the task chain.

[0148] Optional, also includes:

[0149] A module is set up to create multiple containers in a Kubernetes cluster, which are then deployed on multiple compute nodes to process computing tasks.

[0150] The data acquisition module is used to acquire multiple user terminal information that corresponds one-to-one with multiple user terminals. The user terminal information includes the identity information and permission information of the corresponding user terminal. The permission information is the processing permission of the corresponding user terminal in the blockchain.

[0151] The container partitioning module is used to partition the multiple containers according to the multiple user terminal information to obtain multiple namespaces. Each namespace includes at least one of the containers, and the multiple namespaces correspond one-to-one with the multiple user terminals.

[0152] A blockchain generation module is used to generate the blockchain based on the multiple namespaces and the target blockchain network.

[0153] Optional, also includes:

[0154] A space determination module is used to determine, based on the task information, a target namespace that matches the target user terminal among the multiple namespaces;

[0155] The space verification module is used to verify the identity information corresponding to the target user terminal based on the target namespace and obtain a verification result. The verification result is used to indicate whether the identity information has been successfully verified, and the verification is used to determine whether the target user terminal and the computing power task processing request are legitimate.

[0156] Optionally, the blockchain generation module includes:

[0157] A submodule is created to create multiple blockchain channels, which are used to generate multiple corresponding blockchain subnets, and the blockchain subnets separate data streams;

[0158] The first generation submodule is used to generate blockchain chaincode, which includes a first smart contract and a second smart contract. The first smart contract is used to process public data in the blockchain, and the second smart contract is used to process private data in the blockchain.

[0159] The second generation submodule is used to generate the preset blockchain network based on preset configuration information, the blockchain chaincode, and the multiple blockchain subnets. The preset configuration information is used to define the computing power task processing flow, authentication flow, and data storage flow of the preset blockchain network.

[0160] Optionally, the processing module 630 includes:

[0161] The third generation submodule is used to generate first processing information after processing the target computing power task based on the first target computing node;

[0162] The third determining submodule is used to determine the second target computing node based on the task chain, wherein the first target computing node and the second target computing node are any two adjacent target computing nodes in the task chain, and the second target computing node is the target computing node following the first target computing node.

[0163] The fourth generation submodule is used to process the target computing power task based on the second target computing node and generate second processing information when the security verification of the first processing information is passed by the second target computing node.

[0164] Optional, also includes:

[0165] The query receiving module is used to receive the computing power task query request sent by the target user terminal. The computing power task query request is used to query multiple processing information corresponding to the target computing power task.

[0166] The query and acquisition module is used to obtain multiple processing information corresponding to the target computing power task from the blockchain based on the computing power task query request.

[0167] The query sending module is used to send the multiple processing information to the target user terminal after the security of the multiple processing information has been verified.

[0168] After receiving a computing power task processing request from a user, this application matches a task chain in the blockchain according to the request, and then processes the target computing power task based on the task chain and retains operation logs. This achieves transparency and traceability of computing power task processing in the blockchain and improves the blockchain's processing efficiency for computing power tasks.

[0169] This application also provides an electronic device. Please refer to [link to relevant documentation]. Figure 7 The electronic device may include a processor 701, a memory 702, and a program 7021 stored in the memory 702 and capable of running on the processor 701.

[0170] When program 7021 is executed by processor 701, it can achieve the following: Figure 1 Any step in the corresponding method embodiment:

[0171] Receive a computing power task processing request sent by a target user terminal. The computing power task processing request includes the target computing power task to be processed and task information. The task information includes the identity information and configuration information of the target user terminal. The configuration information is used to indicate the computing node that can process the target computing power task.

[0172] If the identity information is successfully authenticated, a task chain is determined in the blockchain based on the configuration information. The task chain includes multiple target computing nodes that process the target computing power task in sequence.

[0173] Based on the multiple target computing nodes, the target computing power task is processed sequentially according to the order indicated by the task chain, and an operation log is generated. The operation log includes the processing result and multiple processing information. The processing result is the processing result of the task chain on the target computing power task. The multiple processing information corresponds one-to-one with the multiple target computing nodes, and the processing information includes the processing process information and processing time of the corresponding target computing node on the target computing power task.

[0174] The processing result is sent to the target user terminal, and the operation log is stored in the blockchain.

[0175] Optionally, if the identity information is successfully authenticated, determining the task chain in the blockchain based on the configuration information includes:

[0176] In the blockchain, which includes multiple computing nodes, the working status of each computing node is determined to obtain multiple working status information. The multiple working status information corresponds one-to-one with the multiple computing nodes, and the working status information includes idle status and used status.

[0177] If the identity information is successfully authenticated, multiple candidate computing nodes are determined in the blockchain based on the configuration information and the multiple working status information. The candidate computing nodes are the computing nodes whose working status information is in the idle state and which are capable of processing the target computing power task.

[0178] The candidate computing nodes are filtered to obtain multiple target computing nodes;

[0179] The multiple target computing nodes are sorted sequentially to obtain the task chain.

[0180] Optionally, the step of filtering the plurality of candidate computing nodes to obtain a plurality of target computing nodes includes:

[0181] The multiple candidate computing nodes are screened based on a classifier and a preset smart contract to determine the multiple target computing nodes. The classifier is used to analyze the processing efficiency and processing capacity of the multiple computing nodes. The preset smart contract is used to determine the node priority of the multiple computing nodes according to preset conditions. The preset conditions include at least one of the following: computing capacity of the computing node, location of the computing node, current load of the computing node, network bandwidth of the computing node, and historical success rate of the computing node.

[0182] The step of sequentially sorting the plurality of target computing nodes to obtain the task chain includes:

[0183] The multiple target computing nodes are sequentially sorted based on the classifier and the preset smart contract to obtain the task chain.

[0184] Optionally, before receiving the computing power task processing request sent by the target user terminal, the method further includes:

[0185] Multiple containers are created in a Kubernetes cluster and deployed on multiple compute nodes to process computing tasks.

[0186] Obtain multiple user terminal information that corresponds one-to-one with multiple user terminals. The user terminal information includes the identity information and permission information of the corresponding user terminal. The permission information is the processing permission of the corresponding user terminal in the blockchain.

[0187] The multiple containers are divided according to the multiple user terminal information to obtain multiple namespaces. Each namespace includes at least one of the containers, and the multiple namespaces correspond one-to-one with the multiple user terminals.

[0188] The blockchain is generated based on the multiple namespaces and the target blockchain network.

[0189] Optionally, before determining the task chain in the blockchain based on the configuration information after the identity information has been successfully authenticated, the method further includes:

[0190] Based on the task information, a target namespace matching the target user terminal is determined from the multiple namespaces;

[0191] Based on the target namespace, the identity information corresponding to the target user terminal is authenticated to obtain a verification result. The verification result is used to indicate whether the identity information is successfully authenticated, and the authentication is used to determine whether the target user terminal and the computing power task processing request are legitimate.

[0192] Optionally, generating the blockchain based on the plurality of namespaces and the preset blockchain network includes:

[0193] Multiple blockchain channels are created, which are used to generate multiple corresponding blockchain subnets, and the blockchain subnets separate data streams;

[0194] Generate blockchain chaincode, which includes a first smart contract and a second smart contract. The first smart contract is used to process public data in the blockchain, and the second smart contract is used to process private data in the blockchain.

[0195] The preset blockchain network is generated based on the preset configuration information, the blockchain chaincode, and the multiple blockchain subnets. The preset configuration information is used to define the computing power task processing flow, authentication flow, and data storage flow of the preset blockchain network.

[0196] Optionally, the plurality of target computing nodes includes a first target computing node and a second target computing node, and the plurality of processing information includes first processing information and second processing information. The step of processing the target computing power task based on the plurality of target computing nodes and generating an operation log includes:

[0197] After processing the target computing power task based on the first target computing node, first processing information is generated;

[0198] The second target computing node is determined based on the task chain, wherein the first target computing node and the second target computing node are any two adjacent target computing nodes in the task chain, and the second target computing node is the target computing node following the first target computing node.

[0199] If the security verification of the first processing information is passed by the second target computing node, the target computing power task is processed based on the second target computing node to generate the second processing information.

[0200] Optionally, the method further includes:

[0201] Receive a computing power task query request sent by the target user terminal, the computing power task query request being used to query multiple processing information corresponding to the target computing power task;

[0202] Based on the computing power task query request, obtain multiple processing information corresponding to the target computing power task from the blockchain;

[0203] If the security of the multiple processing information passes, the multiple processing information will be sent to the target user terminal.

[0204] After receiving a computing power task processing request from a user, this application matches a task chain in the blockchain according to the request, and then processes the target computing power task based on the task chain and retains operation logs. This achieves transparency and traceability of computing power task processing in the blockchain and improves the blockchain's processing efficiency for computing power tasks.

[0205] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described blockchain-based computing power task processing method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0206] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described blockchain-based computing power task processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0207] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0208] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0209] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A blockchain-based computing power task processing method, characterized in that, The method includes: Receive a computing power task processing request sent by a target user terminal. The computing power task processing request includes the target computing power task to be processed and task information. The task information includes the identity information and configuration information of the target user terminal. The configuration information is used to indicate the computing node that can process the target computing power task. If the identity information is successfully authenticated, a task chain is determined in the blockchain based on the configuration information. The task chain includes multiple target computing nodes that process the target computing power task in sequence. Based on the multiple target computing nodes, the target computing power task is processed sequentially according to the order indicated by the task chain, and an operation log is generated. The operation log includes the processing result and multiple processing information. The processing result is the processing result of the task chain on the target computing power task. The multiple processing information corresponds one-to-one with the multiple target computing nodes, and the processing information includes the processing process information and processing time of the corresponding target computing node on the target computing power task. The processing result is sent to the target user terminal, and the operation log is stored in the blockchain.

2. The method according to claim 1, characterized in that, If the identity information is successfully authenticated, determining the task chain in the blockchain based on the configuration information includes: In the blockchain, which includes multiple computing nodes, the working status of each computing node is determined to obtain multiple working status information. The multiple working status information corresponds one-to-one with the multiple computing nodes, and the working status information includes idle status and used status. If the identity information is successfully authenticated, multiple candidate computing nodes are determined in the blockchain based on the configuration information and the multiple working status information. The candidate computing nodes are the computing nodes whose working status information is in the idle state and which are capable of processing the target computing power task. The candidate computing nodes are filtered to obtain multiple target computing nodes; The multiple target computing nodes are sorted sequentially to obtain the task chain.

3. The method according to claim 2, characterized in that, The process of filtering the multiple candidate computing nodes to obtain multiple target computing nodes includes: The multiple candidate computing nodes are screened based on a classifier and a preset smart contract to determine the multiple target computing nodes. The classifier is used to analyze the processing efficiency and processing capacity of the multiple computing nodes. The preset smart contract is used to determine the node priority of the multiple computing nodes according to preset conditions. The preset conditions include at least one of the following: computing capacity of the computing node, location of the computing node, current load of the computing node, network bandwidth of the computing node, and historical success rate of the computing node. The step of sequentially sorting the plurality of target computing nodes to obtain the task chain includes: The multiple target computing nodes are sequentially sorted based on the classifier and the preset smart contract to obtain the task chain.

4. The method according to claim 1, characterized in that, Before receiving the computing power task processing request sent by the target user terminal, the method further includes: Multiple containers are created in a Kubernetes cluster and deployed on multiple compute nodes to process computing tasks. Obtain multiple user terminal information that corresponds one-to-one with multiple user terminals. The user terminal information includes the identity information and permission information of the corresponding user terminal. The permission information is the processing permission of the corresponding user terminal in the blockchain. The multiple containers are divided according to the multiple user terminal information to obtain multiple namespaces. Each namespace includes at least one of the containers, and the multiple namespaces correspond one-to-one with the multiple user terminals. The blockchain is generated based on the multiple namespaces and the target blockchain network.

5. The method according to claim 4, characterized in that, Before determining the task chain in the blockchain based on the configuration information after the identity information has been successfully authenticated, the method further includes: Based on the task information, a target namespace matching the target user terminal is determined from the multiple namespaces; Based on the target namespace, the identity information corresponding to the target user terminal is authenticated to obtain a verification result. The verification result is used to indicate whether the identity information is successfully authenticated, and the authentication is used to determine whether the target user terminal and the computing power task processing request are legitimate.

6. The method according to claim 4, characterized in that, The generation of the blockchain based on the multiple namespaces and the preset blockchain network includes: Multiple blockchain channels are created, which are used to generate multiple corresponding blockchain subnets, and the blockchain subnets separate data streams; Generate blockchain chaincode, which includes a first smart contract and a second smart contract. The first smart contract is used to process public data in the blockchain, and the second smart contract is used to process private data in the blockchain. The preset blockchain network is generated based on the preset configuration information, the blockchain chaincode, and the multiple blockchain subnets. The preset configuration information is used to define the computing power task processing flow, authentication flow, and data storage flow of the preset blockchain network.

7. The method according to claim 1, characterized in that, The plurality of target computing nodes includes a first target computing node and a second target computing node, and the plurality of processing information includes first processing information and second processing information. The step of processing the target computing power task based on the plurality of target computing nodes and generating an operation log includes: After processing the target computing power task based on the first target computing node, first processing information is generated; The second target computing node is determined based on the task chain, wherein the first target computing node and the second target computing node are any two adjacent target computing nodes in the task chain, and the second target computing node is the target computing node following the first target computing node. If the security verification of the first processing information is passed by the second target computing node, the target computing power task is processed based on the second target computing node to generate the second processing information.

8. The method according to any one of claims 1-7, characterized in that, The method further includes: Receive a computing power task query request sent by the target user terminal, the computing power task query request being used to query multiple processing information corresponding to the target computing power task; Based on the computing power task query request, obtain multiple processing information corresponding to the target computing power task from the blockchain; If the security of the multiple processing information passes, the multiple processing information will be sent to the target user terminal.

9. A blockchain-based computing power task processing device, characterized in that, The device includes: A receiving module is used to receive a computing power task processing request sent by a target user terminal. The computing power task processing request includes a target computing power task to be processed and task information. The task information includes the identity information and configuration information of the target user terminal. The configuration information is used to indicate a computing node that can process the target computing power task. The determination module is used to determine a task chain in the blockchain based on the configuration information when the identity information is successfully authenticated. The task chain includes multiple target computing nodes that process the target computing power task in sequence. The processing module is used to process the target computing power task sequentially according to the order indicated by the task chain based on the multiple target computing nodes, and generate an operation log. The operation log includes processing results and multiple processing information. The processing results are the processing results of the task chain on the target computing power task. The multiple processing information corresponds one-to-one with the multiple target computing nodes, and the processing information includes the processing process information and processing time of the corresponding target computing node on the target computing power task. The sending module is used to send the processing result to the target user terminal and to store the operation log in the blockchain.

10. An electronic device, comprising: A memory, a processor, and a program stored in the memory and executable on the processor; characterized in that the processor is configured to read the program from the memory to implement the steps in the blockchain-based computing power task processing method as described in any one of claims 1 to 8.

11. A readable storage medium for storing a program, characterized in that, When the program is executed by the processor, it implements the steps in the blockchain-based computing power task processing method as described in any one of claims 1 to 8.

12. A computer program product, characterized in that, The computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the steps in the blockchain-based computing power task processing method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Block chain message transmission method and device

    CN113098982A

  • Method and system for processing computing power task of computing power network based on block chain

    CN116909695A

  • Creation and operation of blockchain service system

    CN117768473A

  • Computing power network system and data transmission method and device based on computing power network system

    CN119011408A

  • Blockchain-based computing power network implementation method, system, electronic device and computer readable storage medium

    WO2024230393A1