Data processing method and device, electronic equipment and storage medium

By sharding computing tasks and utilizing the blockchain encryption mechanism, the problem of malicious data leakage by computing nodes is solved and the security of data processing is improved.

CN118802265APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410138629.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the field of information networks, when the computing initiator initiates a computing network service request to the computing power network, it cannot effectively ensure that the data and algorithm model of the computing task are not leaked by malicious computing nodes, resulting in reduced data processing security.

Method used

Split the computing task of the target data into multiple computing shards. Each shard contains part of the data and computing model. It is uploaded to the interstellar file system and encrypted. The content identifier is uploaded through the blockchain to ensure that the computing shards are in the interstellar file. The storage location of the system, and obtain the processing results in the system, and aggregate the output results of each node to obtain the target results of the computing task.

Benefits of technology

Through the sharding processing and blockchain encryption mechanism, the security of the calculation initiator's data and algorithm model is improved. Even if some computing nodes are unsafe, the complete data and model will not be leaked or damaged, which enhances the security of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802265A_ABST
    Figure CN118802265A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, electronic equipment and a storage medium, and the method comprises the steps: splitting a calculation task of target data into a plurality of calculation fragments; wherein each calculation fragment comprises a part of target data and a calculation model of the part of target data; uploading the plurality of calculation fragments to an interstellar file system for storage; encrypting the content identifier of each calculation fragment, and uploading the encrypted content identifier to a block chain; wherein the content identifier is used for indicating the storage position of the calculation fragment in the interstellar file system; and obtaining an output result after the calculation nodes process the corresponding calculation fragments in the interstellar file system, and converging the output results of the calculation nodes to obtain a target calculation result of the calculation task. And the security of the calculation initiator target data and the algorithm model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data processing, and in particular, to a data processing method, device, electronic device and storage medium. Background Art

[0002] In the field of information networks, the computing initiator initiates a computing network service request to the computing power network. The computing power network processes the computing network service request and recommends computing nodes that meet the needs of the computing initiator. The computing initiator directly sends all the data and algorithm models of the computing task to the computing nodes participating in the calculation for calculation.

[0003] In the related art, if any computing node involved in the calculation is a malicious node, the data and algorithm model of the calculation task may be leaked, thereby reducing the security of data processing. Based on this, it is necessary to execute the data calculation task and the corresponding calculation result while ensuring that the data and algorithm model to be calculated are not leaked. Summary of the invention

[0004] The embodiments of the present disclosure at least provide a data processing method, device, electronic device and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a data processing method, which is applied to a computing initiator, comprising:

[0006] Splitting the computing task of the target data into multiple computing slices; wherein each computing slice includes a portion of the target data and a computing model of the portion of the target data;

[0007] Uploading the plurality of computing slices to the InterPlanetary File System for storage;

[0008] Encrypting the content identifier of each computing shard and uploading the encrypted content identifier to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system;

[0009] The output results of the computing nodes after processing the corresponding computing slices are obtained in the interplanetary file system, and the output results of each computing node are aggregated to obtain the target computing result of the computing task.

[0010] In an optional implementation manner, splitting the computing task of the target data into multiple computing slices includes:

[0011] Determining the number of splits of the computing task;

[0012] Splitting the target data into a plurality of data slices according to the split quantity, and determining a calculation model for each of the data slices;

[0013] generating a secret share for each of the data shards;

[0014] Based on the data shards, the computing model and the secret share, the shard content of each of the computing shards is determined.

[0015] In an optional implementation manner, determining the number of splits of the computing task includes:

[0016] Determine the fault tolerance rate of the computing node; wherein the fault tolerance rate is used to indicate the probability that the system allows the existence of malicious computing nodes, that is, the ratio between the number of malicious computing nodes in all computing nodes and the total number of all computing nodes;

[0017] Based on the fault tolerance rate, the number of splits of the computing task is determined.

[0018] In an optional implementation manner, generating a secret share for each of the data shards includes:

[0019] Based on the first random number, generate a first character string;

[0020] Determine k-1 second character strings having the same length as the first character string, wherein k is the number of splits of the computing task;

[0021] Calculate the first character string and the second character string to obtain a third character string;

[0022] A corresponding string is determined as a secret share for each of the data slices in a string set; wherein the string set includes each of the second string and the third string, and the strings determined for different data slices are different.

[0023] In an optional implementation manner, after uploading the encrypted content identifier to the blockchain, the method further includes:

[0024] Obtaining a node public key of a computing node corresponding to each of the computing shards;

[0025] Generate a re-encryption key based on the private key of the computing initiator and the public key of the computing node;

[0026] The re-encryption key is sent to the blockchain; wherein the re-encryption key is the key used by the blockchain to re-encrypt the encrypted content identifier, and the first ciphertext obtained by the blockchain re-encrypting the encrypted content identifier through the re-encryption key can be decrypted by the computing node to decrypt the storage location of the computing shard in the interplanetary file system.

[0027] In an optional implementation manner, obtaining, in the interplanetary file system, an output result after the computing node processes the corresponding computing slice includes:

[0028] Obtain a second ciphertext from the blockchain; wherein the second ciphertext is obtained by encrypting the storage location of the output result of the computing node in the interplanetary file system;

[0029] Decrypting the second ciphertext based on the private key of the calculation initiator to obtain the storage location of the output result;

[0030] The output result and a secret share of the output result are obtained from the InterPlanetary File System based on the storage location of the output result.

[0031] In an optional implementation manner, aggregating the output results of each of the computing nodes to obtain the target computing result of the computing task includes:

[0032] When the secret shares of the split number of the output results are obtained, all the obtained secret shares are calculated to obtain a share calculation result; wherein the split number is used to indicate the number of the calculation shards;

[0033] When the share calculation result is the same as the first string, the output results are aggregated to obtain a target calculation result of the calculation task; wherein the first string is a string determined based on a first random number and used to generate the secret share.

[0034] In an optional implementation manner, the method further includes:

[0035] When the share calculation result is different from the first character string, a recalculation request is sent to the blockchain; wherein the recalculation request includes the secret share that has not been received by the calculation initiator and the storage address of the calculation shard corresponding to the secret share.

[0036] In an optional implementation manner, after uploading the encrypted content identifier to the blockchain, the method further includes:

[0037] Determine an allocation rule for the plurality of computing slices; wherein the allocation rule is used to indicate a slice configuration requirement for the computing slice;

[0038] Based on the allocation rule, an allocation instruction is sent to the blockchain; wherein the allocation instruction is used to instruct the blockchain to allocate a corresponding computing node to each of the computing shards;

[0039] Obtain the allocation result of the computing node fed back by the blockchain.

[0040] In a second aspect, the present disclosure provides a data processing method, which is applied to blockchain, including:

[0041] Obtaining an encrypted content identifier uploaded by a computing initiator; wherein the content identifier is used to indicate a storage location of a computing shard in the interplanetary file system, wherein the computing shard is obtained by the computing initiator by splitting the computing task of the target data, and each computing shard contains part of the target data and a computing model of the part of the target data;

[0042] Based on the encrypted content identifier, sending the storage location of the corresponding computing slice in the interplanetary file system to the computing node;

[0043] After the computing node obtains the computing slice from the InterPlanetary File System and calculates the output result of the computing slice, it obtains the storage location of the output result in the InterPlanetary File System and sends the storage location of the output result to the computing initiator.

[0044] In an optional implementation manner, after the computing node obtains the computing slice from the interplanetary file system and calculates the output result of the computing slice, obtaining the storage location of the output result in the interplanetary file system, and sending the storage location of the output result to the computing initiator includes:

[0045] After the computing node obtains the computing slice from the interplanetary file system and calculates the output result of the computing slice, obtains a third ciphertext sent by the computing node; wherein the third ciphertext is a ciphertext obtained by encrypting the storage location of the output result in the interplanetary file system;

[0046] After encrypting the third ciphertext, a second ciphertext is obtained; wherein the second ciphertext is used to indicate a storage location of an output result of the computing node in the interplanetary file system;

[0047] The second ciphertext is sent to the calculation initiator.

[0048] In an optional implementation manner, the sending, based on the encrypted content identifier, to the computing node, the storage location of the corresponding computing shard in the interplanetary file system includes:

[0049] Sending the node public key of the computing node corresponding to each computing slice to the computing initiator;

[0050] Receiving a re-encryption key sent by the computing initiator; wherein the re-encryption key is a key generated based on the node public key and the private key of the computing initiator;

[0051] The encrypted content identifier is re-encrypted according to the re-encryption key to obtain a first ciphertext, and the first ciphertext is sent to the computing node; wherein the first ciphertext is used to instruct the computing node to send the storage location of the corresponding computing shard in the interplanetary file system.

[0052] In an optional implementation manner, the sending the first ciphertext to the computing node includes:

[0053] Receive an allocation instruction sent by the computing initiator; wherein the allocation instruction is used to instruct the blockchain to allocate a corresponding computing node to each computing shard;

[0054] A computing slice is allocated to each computing node according to the allocation instruction, a corresponding first ciphertext is sent to the computing node according to the allocation result of the computing node, and the allocation result is sent to the computing initiator.

[0055] In a third aspect, an embodiment of the present disclosure provides a data processing method, which is applied to a computing node, including:

[0056] Obtaining the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system, and the computing shard is obtained by splitting the computing task of the target data by the computing initiator, and each computing shard contains part of the target data and the computing model of the part of the target data;

[0057] According to the storage location of the computing shard in the interplanetary file system, obtaining the computing shard corresponding to the computing node in the interplanetary file system;

[0058] The computing shard is processed to obtain an output result, and the output result is uploaded to the interplanetary file system for storage, and the storage location of the output result in the interplanetary file system is sent to the blockchain.

[0059] In an optional implementation, obtaining the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system includes:

[0060] Receiving a first ciphertext sent by the blockchain; wherein the first ciphertext is obtained by the blockchain re-encrypting the encrypted content identifier using a re-encryption key;

[0061] The first ciphertext is decrypted based on the private key of the computing node to obtain the storage location of the corresponding computing shard in the interplanetary file system.

[0062] In an optional implementation manner, sending the storage location of the output result in the interplanetary file system to the blockchain includes:

[0063] Encrypting the storage location of the output result in the interplanetary file system to obtain a third ciphertext;

[0064] And send the third ciphertext to the blockchain.

[0065] In a fourth aspect, an embodiment of the present disclosure further provides a data processing device, including:

[0066] A splitting module, used to split the computing task of the target data into multiple computing slices; wherein each of the computing slices includes a portion of the target data and a computing model of the portion of the target data;

[0067] A first uploading module, configured to upload the plurality of computing slices to the InterPlanetary File System for storage;

[0068] A first encryption module, used to encrypt the content identifier of each computing shard, and upload the encrypted content identifier to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system;

[0069] The aggregation module is used to obtain the output results of the computing nodes after processing the corresponding computing slices in the interplanetary file system, and to aggregate the output results of each computing node to obtain the target computing result of the computing task.

[0070] In a fifth aspect, an embodiment of the present disclosure further provides a data processing device, including:

[0071] A first acquisition module is used to acquire an encrypted content identifier uploaded by a computing initiator; wherein the content identifier is used to indicate a storage location of a computing slice in the interplanetary file system, and the computing slice is obtained by the computing initiator by splitting the computing task of the target data, and each computing slice includes a part of the target data and a computing model of the part of the target data;

[0072] A sending module, configured to send the storage location of the corresponding computing slice in the interplanetary file system to the computing node based on the encrypted content identifier;

[0073] The second acquisition module obtains the storage location of the output result in the Interplanetary File System after the computing node obtains the computing slice from the Interplanetary File System and calculates the output result of the computing slice, and sends the storage location of the output result to the computing initiator.

[0074] In a sixth aspect, an embodiment of the present disclosure further provides a data processing device, including:

[0075] A third acquisition module is used to obtain the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system, and the computing shard is obtained by splitting the computing task of the target data by the computing initiator, and each computing shard contains part of the target data and the computing model of the part of the target data;

[0076] A fourth acquisition module, configured to acquire, in the interplanetary file system, a computing shard corresponding to the computing node according to a storage location of the computing shard in the interplanetary file system;

[0077] The computing module is used to process the computing shard to obtain an output result, upload the output result to the interplanetary file system for storage, and send the storage location of the output result in the interplanetary file system to the blockchain.

[0078] In the seventh aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps in the above-mentioned first aspect, or any possible implementation of the first aspect are performed.

[0079] In an eighth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are executed.

[0080] In an embodiment of the present disclosure, first, the computing task of the target data is split into multiple computing shards; wherein each computing shard contains part of the target data and a computing model of the part of the target data; secondly, the multiple computing shards are uploaded to the InterPlanetary File System for storage; thereafter, the content identifier of each computing shard is encrypted, and the encrypted content identifier is uploaded to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the InterPlanetary File System; finally, the output result of the computing node after processing the corresponding computing shard is obtained in the InterPlanetary File System, and the output results of each computing node are aggregated to obtain the target computing result of the computing task.

[0081] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0082] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0084] Figure 1 A flow chart of a data processing method provided by an embodiment of the present disclosure is shown;

[0085] Figure 2 A flowchart showing another data processing method provided by an embodiment of the present disclosure is shown;

[0086] Figure 3 A flowchart showing another data processing method provided by an embodiment of the present disclosure is shown;

[0087] Figure 4 A flowchart showing a specific method for obtaining calculation results in the data processing method provided in an embodiment of the present disclosure;

[0088] Figure 5 An overall flow chart of a data processing method provided by an embodiment of the present disclosure is shown;

[0089] Figure 6A data processing device provided by an embodiment of the present disclosure is shown;

[0090] Figure 7 Another data processing device provided by an embodiment of the present disclosure is shown;

[0091] Figure 8 Another data processing device provided by an embodiment of the present disclosure is shown;

[0092] Fig. 9 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0093] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0094] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0095] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0096] Research has found that in the field of information networks, the computing initiator initiates a computing network service request to the computing power network. The computing power network processes the computing network service request and recommends computing nodes that meet the needs of the computing initiator. The computing initiator directly sends all the data and algorithm models of the computing task to the computing nodes participating in the calculation for calculation.

[0097] In the related art, if any computing node involved in the calculation is a malicious node, the data and algorithm model of the calculation task may be leaked, thereby reducing the security of data processing. Based on this, it is necessary to execute the data calculation task and the corresponding calculation result while ensuring that the data and algorithm model to be calculated are not leaked.

[0098] Based on the above research, the present disclosure provides a data processing method, first, splitting the computing task of the target data into multiple computing shards; wherein each computing shard contains part of the target data and a computing model of the part of the target data; secondly, uploading the multiple computing shards to the Interstellar File System for storage; secondly, encrypting the content identifier of each computing shard, and uploading the encrypted content identifier to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the Interstellar File System; finally, obtaining the output result of the computing node after processing the corresponding computing shard in the Interstellar File System, and aggregating the output results of each computing node to obtain the target computing result of the computing task.

[0099] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0100] To facilitate understanding of this embodiment, a data processing method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the data processing method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example, a terminal device or a server or other processing device. In some possible implementations, the data processing method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0101] See also Figure 1 FIG. 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure, wherein the method includes steps S101 to S104, wherein:

[0102] S101. Split the computing task of the target data into multiple computing slices; wherein each computing slice includes part of the target data and a computing model of the part of the target data.

[0103] In an embodiment of the present disclosure, the computing task of the target data may be split into a plurality of sub-computing tasks, wherein each sub-computing task may be understood as a computing slice, that is, each sub-computing task corresponds to a portion of the target data in the target data.

[0104] Here, the calculation model included in each calculation slice may be a calculation formula for calculating part of the target data in the calculation slice, and the calculation formula included in each calculation slice may be one or more complete calculation formulas.

[0105] S102: Upload multiple computing slices to the InterPlanetary File System for storage.

[0106] In an embodiment of the present disclosure, the computing initiator may upload each computing shard to the Inter Planetary File System (IPFS) at the same time, or upload each computing shard to the Inter Planetary File System in sequence according to the generation order of the computing shards.

[0107] Here, after receiving each computing slice, the interplanetary file system may store each computing slice in the interplanetary file system, for example, each computing slice may be stored in the interplanetary file system according to the order in which the computing slice is received.

[0108] S103. Encrypt the content identifier of each computing shard and upload the encrypted content identifier to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system.

[0109] In an embodiment of the present disclosure, after the computing initiator uploads multiple computing shards to the InterPlanetary File System, the InterPlanetary File System can feed back the content identifier of each computing shard to the computing initiator. Secondly, after receiving the content identifier sent by the InterPlanetary File System, the computing initiator can encrypt the content identifier according to the public key of the computing initiator to obtain an encrypted content identifier. Afterwards, the computing initiator can upload the encrypted content identifier to the blockchain.

[0110] Here, the content identifiers corresponding to the various computing shards are all different, that is, the storage locations of the various computing shards in the InterPlanetary File System are all different.

[0111] In an embodiment of the present disclosure, after the blockchain receives the encrypted content identifier uploaded by the computing initiator, the encrypted content identifier can be processed. And the processed content identifier is distributed to the corresponding computing node. After that, the computing node can obtain the corresponding computing slice in the InterPlanetary File System according to the content sent by the blockchain, and process the obtained computing slice to obtain the output result. The computing node also needs to upload the output result to the InterPlanetary File System for storage.

[0112] S104. Obtain the output results of the computing nodes after processing the corresponding computing slices in the InterPlanetary File System, and aggregate the output results of each computing node to obtain the target computing result of the computing task.

[0113] In the disclosed embodiment, the computing node can upload the output result obtained after processing according to the computing shard to the InterPlanetary File System. Then, the InterPlanetary File System can send the storage address of the output result in the InterPlanetary File System to the computing node. After that, the computing node can send the storage address to the blockchain; the blockchain can notify the computing initiator of the storage address, and finally, the computing initiator can obtain the output result from the InterPlanetary File System based on the storage address of the output result.

[0114] Here, the computing node may calculate part of the target data in the computing slice according to the computing model in the received computing slice, thereby obtaining the output result of the computing slice.

[0115] Here, the storage addresses of the output results corresponding to each computing node in the Interstellar File System are different.

[0116] In an embodiment of the present disclosure, after receiving the output results of each computing node, the computing initiator may aggregate the output results of each computing node to obtain the target computing result of the computing task.

[0117] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0118] In an optional implementation, the above steps split the computing task of the target data into multiple computing slices, specifically including the following steps:

[0119] First, determine the number of splits of the computing task;

[0120] Secondly, split the target data into multiple data shards according to the number of splits, and determine the calculation model for each data shard;

[0121] Second, generate the secret share for each data shard;

[0122] Finally, based on the data sharding, computing model, and secret share, the shard content of each computing shard is determined.

[0123] In the embodiments of the present disclosure, the number of splits of the computing task can be set according to actual needs, and the number of splits of the computing task can also be calculated based on the fault tolerance rate of the computing node.

[0124] Here, the target data can be split into the number of split data shards according to the split number. Each data shard corresponds to a portion of the target data, and the portions of target data corresponding to each data shard are different. In specific implementation, the computing initiator can split the target data according to the dimensions of columns and rows to obtain data shards.

[0125] After obtaining the data shards, the calculation model for calculating the data shards can be determined in the overall algorithm model, where the overall algorithm model is the calculation model corresponding to the target data.

[0126] For example, when the number of splits k is 2, first, the target data can be split according to the dimensions of columns and rows to obtain the first data slice X1 and the second data slice X2. Secondly, the calculation model W1 corresponding to the first data slice X1 and the calculation model W2 corresponding to the second data slice X2 can be determined based on the first data slice X1 and the second data slice X2. The calculation model W1 contains all the calculation formulas required to calculate the first data slice X1, and the calculation model W2 contains all the calculation formulas required to calculate the second data slice X2.

[0127] In an embodiment of the present disclosure, after splitting to obtain multiple data shards, a corresponding secret share can be generated for each data shard. The secret shares corresponding to each data shard are different. Afterwards, the shard content of the computing shard can be determined based on the data shard, the computing model and the secret share; wherein the shard content of each computing shard includes a data shard, the computing model of the data shard and the secret share of the data shard.

[0128] In an optional implementation, the above steps of determining the number of splits of the computing task specifically include the following steps:

[0129] First, determine the fault tolerance rate of the computing nodes; wherein the fault tolerance rate is used to indicate the probability that the system allows the existence of malicious computing nodes, that is, the ratio between the number of malicious computing nodes in all computing nodes and the total number of all computing nodes;

[0130] Then, based on the fault tolerance rate, the number of splits of the computing task is determined.

[0131] In an embodiment of the present disclosure, the fault tolerance rate of the computing node can be set according to historical experience. After determining the fault tolerance rate, the computing nodes that meet the computing task requirements can be screened out according to the computing task. Secondly, the computing initiator selects a target number n of computing nodes from the computing nodes that meet the computing task requirements. Finally, based on the fault tolerance rate r and the target number n, the number k of splits of the computing task is calculated. For example, the number of splits k can be determined by the following formula: k = [n*(1-r)]. Assuming that the fault tolerance rate is 1 / 3, the number of splits can be set to k = [n*(1-1 / 3)].

[0132] In an optional implementation, the above steps generate a secret share for each data shard, specifically comprising the following steps:

[0133] First, based on the first random number, a first character string is generated;

[0134] Secondly, k-1 second strings having the same length as the first string are determined; wherein k is the number of splits of the computing task;

[0135] Afterwards, the first character string and the second character string are calculated to obtain a third character string;

[0136] Finally, a corresponding string is determined for each data slice in the string set as a secret share; wherein the string set includes each second string and third string, and the strings determined for different data slices are different.

[0137] In an embodiment of the present disclosure, the computing initiator may randomly generate a random number, which is recorded as a first random number. The first random number may be a decimal string. Afterwards, the first random number may be converted into a binary number to obtain a first string.

[0138] Next, a preset number of second strings with the same length as the first string can be determined. Assuming that the number of splits of the computing task is k, the computing initiator can randomly generate k-1 second strings with the same length as the first string. Among them, the second strings are all binary strings, and the second strings are different from the first strings.

[0139] Here, the calculation initiator may perform an XOR operation on the first character string and the second character string to obtain a third character string sk. The third character string sk meets the following conditions:

[0140] sk=s⊕s1⊕s2⊕...⊕s(k-1).

[0141] Wherein, s is the first character string, s1 to s(k-1) are k-1 second character strings, and k is the number of splits of the computing task.

[0142] After obtaining the second string and the third string, a corresponding string can be determined as a secret share for each data slice in the string set composed of the second string and the third string. The calculation initiator can associate a second string or a third string with the data slice in the string set, and use the second string or the third string associated with the data slice as the secret share of the data slice.

[0143] Here, the calculation initiator may randomly assign the strings in the string set to each data shard, or assign the strings in the string set to each data shard according to a preset order.

[0144] For example, when the strings in the string set are assigned to each data slice according to a preset order, there are (k-1) second strings (s1, s2, ..., s(k-1)) and 1 third string sk in the string set. The calculation initiator can associate the second string s1 with the data slice X1, the second string s2 with the data slice X2, ..., the second string s(k-1) with the data slice X k-1Associating the third string sk with the data fragment X k Make an association.

[0145] In an optional embodiment, after uploading the encrypted content identifier to the blockchain, the following steps are also included:

[0146] First, obtain the node public key of the computing node corresponding to each computing shard;

[0147] Secondly, based on the private key of the computing initiator and the public key of the computing node, a re-encryption key is generated;

[0148] Finally, a re-encryption key is sent to the blockchain; wherein the re-encryption key is the key used by the blockchain to re-encrypt the encrypted content identifier. The first ciphertext obtained by the blockchain through the re-encryption key can be decrypted by the computing node to decrypt the storage location of the computing shard in the interplanetary file system.

[0149] In an embodiment of the present disclosure, the computing initiator may send a node public key acquisition request to the blockchain while uploading the encrypted content identifier to the blockchain. Then, after receiving the node public key acquisition request sent by the computing initiator, the blockchain may send the node public key of each computing node to the computing initiator.

[0150] Here, after the computing initiator receives the node public key of each computing node sent by the blockchain, a re-encryption key can be generated for each computing node. For example, the re-encryption key CY1 corresponding to the first computing node can be generated based on the node public key PG1 of the first computing node and the private key SY of the computing initiator. Among them, the re-encryption key CY1 corresponding to the first computing node meets the following conditions:

[0151] CY1=f(PG1,SY); wherein f() is a preset calculation formula.

[0152] Among them, the node public key of each computing node sent by the blockchain is used by the computing initiator to screen out computing nodes that meet the requirements of the computing task based on the computing task.

[0153] Here, after the computing initiator generates the re-encryption key corresponding to each computing node, the re-encryption key corresponding to each computing node can be sent to the blockchain. After the blockchain receives the re-encryption key sent by the computing initiator, the blockchain can re-encrypt the encrypted content identifier using the re-encryption key to obtain the first ciphertext, and set a valid time for the first ciphertext.

[0154] Here, after the blockchain obtains the first ciphertext, a request notification may be sent to the computing node. After receiving the request notification, the computing node may send a first ciphertext acquisition request to the blockchain within the effective time. The first ciphertext acquisition request is used to request the first ciphertext from the blockchain.

[0155] Here, after receiving the first ciphertext acquisition request sent by the computing node, the blockchain sends the first ciphertext corresponding to the computing node to the computing node. After receiving the first ciphertext, the computing node can decrypt the first ciphertext through the node private key of the computing node to obtain the content identifier of the corresponding computing shard. At this time, the computing node can obtain the corresponding computing shard in the InterPlanetary File System according to the content identifier.

[0156] In the above implementation, the computing task is split into multiple computing slices and assigned to multiple computing nodes for collaborative processing, which can reduce the risk of target data and target computing results being acquired and leaked by computing nodes, while improving computing processing efficiency.

[0157] In an optional implementation, the above step of obtaining the output result after the computing node processes the corresponding computing slice in the InterPlanetary File System specifically includes the following steps:

[0158] First, obtain a second ciphertext from the blockchain; wherein the second ciphertext is obtained by encrypting the storage location of the output result of the computing node in the InterPlanetary File System;

[0159] Secondly, the second ciphertext is decrypted based on the private key of the computing initiator to obtain the storage location of the output result;

[0160] Finally, based on the storage location of the output, the output and the secret share of the output are obtained from the InterPlanetary File System.

[0161] From the above description, it can be seen that after the computing node processes the corresponding computing shard and obtains the output result, the output result and the corresponding secret share can be uploaded to the InterPlanetary File System. After the InterPlanetary File System receives the output result and the secret share, it can send the storage location of the output result to the computing node. After the computing node receives the storage location of the output result, it can encrypt the storage location of the output result based on the public key of the computing initiator, and send the encrypted storage location to the blockchain.

[0162] Here, after the blockchain receives the encrypted storage location sent by the computing node, it can re-encrypt the encrypted storage location based on the re-encryption key corresponding to the computing node to obtain the second ciphertext.

[0163] Here, the storage location of the output result may be an identifier of the storage address of the output result in the InterPlanetary File System.

[0164] In an embodiment of the present disclosure, the computing initiator may detect the second ciphertext in the blockchain based on a set time. When the computing initiator detects that the second ciphertext exists in the blockchain, the computing initiator may send a request to obtain the second ciphertext to the blockchain.

[0165] Here, after the blockchain receives the second ciphertext acquisition request, the second ciphertext can be sent to the calculation initiator. After receiving the second ciphertext, the calculation initiator decrypts the second ciphertext based on the private key of the calculation initiator to obtain the storage location of the output result.

[0166] After the storage location is obtained through decryption, the output result and the secret share of the output result can be obtained from the InterPlanetary File System based on the storage location.

[0167] In the above implementation, the computing shards and output results are stored through the InterPlanetary File System, and the storage addresses of the encrypted computing shards and output results are uploaded to the blockchain, so that secure access and sharing of data between the computing initiator and the computing node can be achieved, while other computing nodes cannot obtain the computing shards and output results of the computing node.

[0168] In an optional implementation, the output results of each computing node are aggregated to obtain the target computing result of the computing task, which specifically includes the following steps:

[0169] First, when the secret shares of the split number output results are obtained, all the obtained secret shares are calculated to obtain the share calculation result; wherein the split number is used to indicate the number of calculation shards;

[0170] Then, when the share calculation result is the same as the first string, the output results are aggregated to obtain the target calculation result of the calculation task; wherein the first string is a string determined based on the first random number and used to generate the secret share.

[0171] In an embodiment of the present disclosure, the calculation initiator may perform an XOR operation on the obtained split number of secret shares to obtain a share calculation result. When the share calculation result is the same as the first string, the output results are aggregated to obtain the target calculation result of the calculation task.

[0172] Assume that the computing task is split into k computing slices, that is, the number of splits is k. Then, after receiving the second string s1 to s(k-1) and the third string sk, the second string and the third string are subjected to an XOR operation s1⊕s2⊕…⊕sk=s, that is, the share calculation result is the same as the first string.

[0173] In the above implementation, the first string, the second string and the third string are generated, and the second string and the third string are distributed as secret shares to the computing nodes that process the computing slices. The output results output by the computing nodes after processing the computing slices are sent to the InterPlanetary File System together with the secret shares, so that the computing initiator can verify the validity of the output results through the secret shares and ensure that the computing nodes obtain the corresponding computing slices for computing.

[0174] Here, since the calculation initiator performs the calculation task on the target data, the target data and the algorithm model are split into k parts according to the dimensions of columns and rows.

[0175] For example, the target data is split according to the dimensions of columns and rows to obtain the first data shard X1 and the second data shard X2. The calculation model W1 corresponding to the first data shard X1 and the calculation model W2 corresponding to the second data shard X2. The calculation results of the first data shard X1 and the calculation model W1 corresponding to the first data shard X1 are Y1, and the calculation results of the calculation model W2 corresponding to the second data shard X2 and the second data shard X2 are Y2. Y1 and Y2 are converged to obtain the target calculation result Y.

[0176] Among them, the target calculation result Y=W1X1+W2X2=Y1+Y2.

[0177] In an optional embodiment, when the share calculation result is different from the first string, a recalculation request is sent to the blockchain; wherein the recalculation request includes the secret share not received by the calculation initiator and the storage address of the calculation shard corresponding to the secret share.

[0178] In an embodiment of the present disclosure, when the share calculation result is different from the first character string, a recalculation request is sent to the blockchain.

[0179] Here, refer to Figure 4 As shown in the figure, assuming that the computing task is split into k computing slices, that is, when the number of splits is k, first, the computing node processes the received computing slices to obtain the output result. Secondly, the output result and the secret share corresponding to the computing slice of the output result are uploaded to the InterPlanetary File System. The InterPlanetary File System sends the storage location of the output result to the computing node.

[0180] The computing node encrypts the storage location of the output result based on the public key of the computing initiator, obtains the storage location of the encrypted output result, and sends the storage location of the encrypted output result to the blockchain. Afterwards, the blockchain re-encrypts the storage location of the encrypted output result based on the re-encryption key to obtain the second ciphertext.

[0181] The computation initiator can obtain the second ciphertext through the blockchain, and decrypt the second ciphertext based on the private key of the computation initiator to obtain the storage location of the output result. The computation initiator obtains the output result and the secret share corresponding to the output result in the InterPlanetary File System based on the storage location of the output result. Next, the computation initiator determines whether the number of secret shares received reaches k.

[0182] When the number of secret shares received by the calculation initiator does not reach k, the calculation initiator sends a recalculation request to the blockchain, obtains the second ciphertext through the blockchain, and decrypts the second ciphertext based on the private key of the calculation initiator to obtain the storage location of the output result. When the number of secret shares received by the calculation initiator reaches k, the share calculation result is obtained based on the secret share, and it is determined whether the share calculation result is the same as the first string.

[0183] If the share calculation result is different from the first string, a recalculation request is sent to the blockchain, the second ciphertext is obtained through the blockchain, and the second ciphertext is decrypted based on the private key of the calculation initiator to obtain the storage location of the output result. If the share calculation result is the same as the first string, the output results of each of the computing nodes are aggregated to obtain the target calculation result of the computing task.

[0184] In an optional embodiment, after uploading the encrypted content identifier to the blockchain, the following steps are also included:

[0185] First, determining allocation rules for a plurality of computing slices; wherein the allocation rules are used to indicate slice configuration requirements for the computing slices;

[0186] Secondly, based on the allocation rules, an allocation instruction is sent to the blockchain; wherein the allocation instruction is used to instruct the blockchain to allocate a corresponding computing node to each computing shard;

[0187] Finally, obtain the allocation results of the computing nodes fed back by the blockchain.

[0188] Here, the allocation rule of computing slices includes that the same computing node cannot be allocated a preset number of computing slices. The computing initiator can determine the number of computing slices allocated to each computing node according to the computing amount of each computing slice and the allocation rule of computing slices.

[0189] The computing initiator can allocate computing shards to each computing node based on the allocation rule to obtain the allocation result, generate the allocation instruction based on the allocation result, and send the allocation instruction to the blockchain. The blockchain can allocate the acquired first ciphertext to each computing node based on the allocation instruction. Afterwards, the blockchain can also send the allocation result of the computing node to the computing initiator.

[0190] See also Figure 2 As shown, it is a flow chart of a data processing method provided by an embodiment of the present disclosure, the method includes steps S201 to S203, which are applied to blockchain, wherein:

[0191] S201. Obtain the encrypted content identifier uploaded by the computing initiator; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system. The computing shard is obtained by splitting the computing task of the target data by the computing initiator, and each computing shard contains part of the target data and a computing model of the part of the target data.

[0192] In an embodiment of the present disclosure, the computing initiator may split the computing task of the target data into multiple sub-computing tasks, wherein each sub-computing task may be understood as a computing slice, that is, each sub-computing task corresponds to a part of the target data in the target data.

[0193] Here, the calculation model included in each calculation slice may be a calculation formula for calculating part of the target data in the calculation slice, and the calculation formula included in each calculation slice may be one or more complete calculation formulas.

[0194] In an embodiment of the present disclosure, the computing initiator may upload each computing slice to the InterPlanetary File System simultaneously, or upload each computing slice to the InterPlanetary File System in sequence according to the generation order of the computing slices.

[0195] After the computing initiator uploads multiple computing shards to the InterPlanetary File System, the InterPlanetary File System can send a content identifier to the computing initiator. After receiving the content identifier sent by the InterPlanetary File System, the computing initiator can encrypt the content identifier according to the public key of the computing initiator to obtain an encrypted content identifier. Finally, the computing initiator can upload the encrypted content identifier to the blockchain.

[0196] Here, the content identifiers corresponding to the various computing shards are all different, that is, the storage locations of the various computing shards in the InterPlanetary File System are all different.

[0197] S202. Based on the encrypted content identifier, the storage location of the corresponding computing shard in the InterPlanetary File System is sent to the computing node.

[0198] In an embodiment of the present disclosure, after the blockchain receives the encrypted content identifier uploaded by the computing initiator, the encrypted content identifier can be processed and the processed content identifier can be distributed to the corresponding computing node.

[0199] Here, the blockchain can send the processed content identifiers to the computing nodes according to the allocation rules. After receiving the processed content identifiers, the computing nodes obtain the computing shards from the InterPlanetary File System based on the processed content identifiers.

[0200] S203. After the computing node obtains the computing slice from the InterPlanetary File System and calculates the output result of the computing slice, it obtains the storage location of the output result in the InterPlanetary File System and sends the storage location of the output result to the computing initiator.

[0201] In the embodiment of the present disclosure, the computing node can obtain the corresponding computing shard in the InterPlanetary File System according to the content sent by the blockchain, and process the obtained computing shard to obtain the output result; then, the computing node can upload the output result to the InterPlanetary File System. Then, the InterPlanetary File System can send the storage address of the output result in the InterPlanetary File System to the computing node. Then, the computing node can send the storage address to the blockchain; the blockchain can notify the computing initiator of the storage address, and finally, the computing initiator can obtain the output result from the InterPlanetary File System based on the storage address of the output result.

[0202] Here, the storage address symbols of the output results corresponding to each computing node in the Interstellar File System are all different.

[0203] In an embodiment of the present disclosure, after receiving the output results of each computing node, the computing initiator may aggregate the output results of each computing node to obtain the target computing result of the computing task.

[0204] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0205] In an optional implementation, after the computing node obtains the computing shard from the InterPlanetary File System and calculates the output result of the computing shard, the above steps obtain the storage location of the output result in the InterPlanetary File System and send the storage location of the output result to the computing initiator, specifically including the following steps:

[0206] First, after the computing node obtains the computing slice from the InterPlanetary File System and calculates the output result of the computing slice, the third ciphertext sent by the computing node is obtained; wherein the third ciphertext is the ciphertext obtained by encrypting the storage location of the output result in the InterPlanetary File System;

[0207] Secondly, after encrypting the third ciphertext, a second ciphertext is obtained; wherein the second ciphertext is used to indicate the storage location of the output result of the computing node in the interplanetary file system;

[0208] Finally, the second ciphertext is sent to the computing initiator.

[0209] In an embodiment of the present disclosure, after the computing node calculates the output result of the computing slice, the output result can be sent to the InterPlanetary File System. After receiving the output result, the InterPlanetary File System sends the storage location of the output result to the computing node.

[0210] Here, after receiving the storage location of the output result, the computing node can encrypt the storage location of the output result based on the public key of the computing initiator to obtain a third ciphertext, and send the third ciphertext to the blockchain. After the blockchain receives the third ciphertext, the third ciphertext is re-encrypted by the re-encryption key to obtain a second ciphertext. After obtaining the second ciphertext, the second ciphertext can be sent to the computing initiator. After receiving the second ciphertext, the computing initiator can decrypt the second ciphertext to obtain the storage location of the output result in the InterPlanetary File System.

[0211] In an optional implementation, the above step sends the storage location of the corresponding computing shard in the InterPlanetary File System to the computing node based on the encrypted content identifier, specifically including the following steps:

[0212] First, the node public key of the computing node corresponding to each computing shard is sent to the computing initiator;

[0213] Secondly, receiving the re-encryption key sent by the computing initiator; wherein the re-encryption key is a key generated based on the node public key and the computing initiator's private key;

[0214] Finally, the encrypted content identifier is re-encrypted according to the re-encryption key to obtain a first ciphertext, and the first ciphertext is sent to the computing node; wherein the first ciphertext is used to instruct the computing node to send the storage location of the corresponding computing shard in the interplanetary file system.

[0215] In an embodiment of the present disclosure, the computing initiator may send a node public key acquisition request to the blockchain while uploading the encrypted content identifier to the blockchain. Then, after receiving the node public key acquisition request sent by the computing initiator, the blockchain may send the node public key of each computing node to the computing initiator.

[0216] Here, after the computing initiator receives the node public key of each computing node sent by the blockchain, a re-encryption key can be generated for each computing node. For example, the re-encryption key CY1 corresponding to the first computing node can be generated based on the node public key PG1 of the first computing node and the private key SY of the computing initiator.

[0217] Among them, the node public key of each computing node sent by the blockchain is used by the computing initiator to screen out computing nodes that meet the requirements of the computing task based on the computing task.

[0218] Here, after the computing initiator generates a re-encryption key corresponding to each computing node, the re-encryption key corresponding to each computing node can be sent to the blockchain. After the blockchain receives the re-encryption key sent by the computing initiator, the blockchain can re-encrypt the encrypted content identifier using the re-encryption key to obtain a first ciphertext, and can set a validity period for the first ciphertext.

[0219] Here, after the blockchain obtains the first ciphertext, a request notification may be sent to the computing node. After receiving the request notification, the computing node may send a first ciphertext acquisition request to the blockchain within the effective time. The first ciphertext acquisition request is used to request the first ciphertext from the blockchain.

[0220] Here, after receiving the first ciphertext acquisition request sent by the computing node, the blockchain sends the first ciphertext corresponding to the computing node to the computing node. After receiving the first ciphertext, the computing node can decrypt the first ciphertext through the node private key of the computing node to obtain the content identifier of the corresponding computing shard. At this time, the computing node can obtain the corresponding computing shard in the InterPlanetary File System according to the content identifier.

[0221] In an optional implementation, sending the first ciphertext to the computing node specifically includes the following steps:

[0222] Receive the allocation instruction sent by the computing initiator; wherein the allocation instruction is used to instruct the blockchain to allocate a corresponding computing node to each computing shard;

[0223] A computing slice is allocated to each computing node according to the allocation instruction, a corresponding first ciphertext is sent to the computing node according to the allocation result of the computing node, and the allocation result is sent to the computing initiator.

[0224] In an embodiment of the present disclosure, a computing initiator may determine a distribution rule for multiple computing slices. The distribution rule for computing slices includes that the same computing node cannot be allocated a preset number of computing slices. The computing initiator may determine the number of computing slices allocated to each computing node based on the computing amount of each computing slice and the distribution rule for computing slices.

[0225] Here, the computing initiator can allocate computing slices to each computing node based on the allocation rules to obtain allocation results, and generate allocation instructions based on the allocation results.

[0226] Here, the blockchain can distribute the acquired first ciphertext to each computing node based on the distribution instruction. After the blockchain distributes the acquired first ciphertext to each computing node based on the distribution instruction, the distribution result of the computing node can be sent to the computing initiator.

[0227] See also Figure 3 FIG. 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure, wherein the method includes steps S301 to S303, which are applied to a computing node, wherein:

[0228] S301. Obtain the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system, and the computing shard is obtained by splitting the computing task of the target data by the computing initiator, and each computing shard contains part of the target data and the computing model of the part of the target data.

[0229] In an embodiment of the present disclosure, after a computing initiator uploads multiple computing shards to the Interplanetary File System, the Interplanetary File System may send a content identifier to the computing initiator. After receiving the content identifier sent by the Interplanetary File System, the computing initiator may encrypt the content identifier according to the public key of the computing initiator to obtain an encrypted content identifier, and upload the encrypted content identifier to the blockchain. Afterwards, the blockchain may re-encrypt the encrypted content identifier to obtain a re-encrypted content identifier, and send the re-encrypted content identifier to the computing nodes respectively according to the allocation rules. Finally, the computing node may decrypt the re-encrypted content identifier based on the private key of the computing node to obtain the storage location of the corresponding computing shard in the Interplanetary File System.

[0230] S302: Obtain the computing shard corresponding to the computing node in the Interplanetary File System according to the storage location of the computing shard in the Interplanetary File System.

[0231] After obtaining the storage location of the corresponding computing shard in the Interstellar File System, the computing node can obtain the computing shard in the Interstellar File System based on the storage location of the corresponding computing shard in the Interstellar File System, and process the obtained computing shard to obtain the output result.

[0232] S303: Process the computing shard to obtain an output result, upload the output result to the InterPlanetary File System for storage, and send the storage location of the output result in the InterPlanetary File System to the blockchain.

[0233] In an embodiment of the present disclosure, a computing node may upload an output result to the InterPlanetary File System. Afterwards, the InterPlanetary File System may send the storage address of the output result in the InterPlanetary File System to the computing node. The computing node may encrypt the received storage address according to the public key of the computing node to obtain an encrypted storage address, and send the encrypted storage address to the blockchain. Next, the blockchain may re-encrypt the encrypted storage address to obtain a re-encrypted storage address, and send the re-encrypted storage address to the computing initiator. The computing initiator may decrypt the re-encrypted storage address according to the private key of the computing initiator to obtain the storage address of the output result. Finally, the computing initiator may obtain the output result from the InterPlanetary File System based on the storage address of the output result.

[0234] Here, the computing node can calculate part of the target data in the computing slice according to the computing model in the received computing slice, so as to obtain the output result of the computing slice. The storage address symbol of the output result corresponding to each computing node in the InterPlanetary File System is different.

[0235] In an embodiment of the present disclosure, the output results of each computing node are aggregated to obtain the target computing result of the computing task. After receiving the output results of each computing node, the computing initiator can aggregate the output results of each computing node to obtain the target computing result of the computing task.

[0236] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0237] In an optional implementation, the above step of obtaining the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the InterPlanetary File System specifically includes the following steps:

[0238] First, a first ciphertext sent by a blockchain is received; wherein the first ciphertext is obtained by re-encrypting the encrypted content identifier by the blockchain using the re-encryption key;

[0239] Then, the first ciphertext is decrypted based on the private key of the computing node to obtain the storage location of the corresponding computing shard in the interplanetary file system.

[0240] In an embodiment of the present disclosure, the computing initiator may send a node public key acquisition request to the blockchain while uploading the encrypted content identifier to the blockchain. Then, after receiving the node public key acquisition request sent by the computing initiator, the blockchain may send the node public key of each computing node to the computing initiator.

[0241] Here, after the computing initiator receives the node public key of each computing node sent by the blockchain, a re-encryption key can be generated for each computing node. For example, the re-encryption key CY1 corresponding to the first computing node can be generated based on the node public key PG1 of the first computing node and the private key SY of the computing initiator.

[0242] Among them, the node public key of each computing node sent by the blockchain is used by the computing initiator to screen out computing nodes that meet the requirements of the computing task based on the computing task.

[0243] Here, after the computing initiator generates the re-encryption key corresponding to each computing node, the re-encryption key corresponding to each computing node can be sent to the blockchain.

[0244] Here, after the blockchain receives the re-encryption key sent by the computing initiator, the blockchain can re-encrypt the encrypted content identifier using the re-encryption key to obtain a first ciphertext, and can set a validity period for the first ciphertext.

[0245] Here, after the blockchain obtains the first ciphertext, a request notification may be sent to the computing node. After receiving the request notification, the computing node may send a first ciphertext acquisition request to the blockchain within the effective time. The first ciphertext acquisition request is used to request the first ciphertext from the blockchain.

[0246] Here, after the blockchain receives the first ciphertext sent by the computing node, it sends the first ciphertext corresponding to the computing node to the computing node. After the computing node receives the first ciphertext sent by the blockchain, it can decrypt the first ciphertext using the node private key of the computing node to obtain the content identifier of the computing shard corresponding to the computing node. The computing node can obtain the computing shard corresponding to the computing node in the InterPlanetary File System based on the content identifier.

[0247] In an optional implementation, sending the storage location of the output result in the InterPlanetary File System to the blockchain specifically includes the following steps:

[0248] Encrypt the storage location of the output result in the Interstellar File System to obtain a third ciphertext;

[0249] And send the third ciphertext to the blockchain.

[0250] In an embodiment of the present disclosure, after the computing node obtains the computing slice from the InterPlanetary File System and calculates the output result of the computing slice, the third ciphertext sent by the computing node is obtained. After the computing node calculates the output result of the computing slice, the output result can be sent to the InterPlanetary File System. After receiving the output result, the InterPlanetary File System sends the storage location of the output result to the computing node.

[0251] Here, after receiving the storage location of the output result, the computing node may encrypt the storage location of the output result based on the public key of the computing initiator to obtain a third ciphertext.

[0252] Here, after the blockchain receives the third ciphertext, the third ciphertext is re-encrypted using the re-encryption key to obtain the second ciphertext.

[0253] Reference Figure 5 FIG. 1 is an overall flow chart of the data processing method provided by an embodiment of the present disclosure, wherein:

[0254] S1. The computing initiator splits the computing task of the target data into multiple computing shards.

[0255] Each computing slice includes part of the target data and a computing model for the part of the target data.

[0256] S2. The computing initiator uploads multiple computing shards to the Interstellar File System for storage.

[0257] S3. After receiving the computing shard, the InterPlanetary File System sends a content identifier to the computing initiator.

[0258] The content identifier is used to indicate the storage location of the computing shard in the InterPlanetary File System.

[0259] S4. The computing initiator encrypts the content identifier of each computing shard and uploads the encrypted content identifier to the blockchain.

[0260] S5. The blockchain re-encrypts the received encrypted content identifier to obtain a first ciphertext.

[0261] S6. The computing node sends a first ciphertext acquisition request to the blockchain.

[0262] S7. After receiving the first ciphertext acquisition request, the blockchain sends the first ciphertext to the computing node.

[0263] S8. After receiving the first ciphertext, the computing node decrypts the first ciphertext to obtain a content identifier, and obtains a computing shard in the InterPlanetary File System based on the content identifier.

[0264] S9. The computing node processes the computing shards to obtain output results, and sends the output results to the InterPlanetary File System.

[0265] S10. The computing node receives the storage location of the output result sent by the InterPlanetary File System in the InterPlanetary File System, and encrypts the storage location to obtain a third ciphertext.

[0266] S11. The computing node sends the third ciphertext to the blockchain.

[0267] S12. The blockchain re-encrypts the third ciphertext to obtain a second ciphertext, and sends the second ciphertext to the calculation initiator.

[0268] S13. The computing initiator decrypts the second ciphertext to obtain a storage location of an output result, and obtains the output result in the InterPlanetary File System according to the storage location of the output result.

[0269] S14. The calculation initiator aggregates the output results of each of the calculation nodes to obtain the target calculation result of the calculation task.

[0270] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0271] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0272] Based on the same inventive concept, a data processing device corresponding to the data processing method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned data processing method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0273] Reference Figure 6 As shown, it is a schematic diagram of a data processing device provided by an embodiment of the present disclosure, the device comprises: a splitting module 11, a first uploading module 12, a first encryption module 13, and a convergence module 14; wherein,

[0274] A splitting module, used to split the computing task of the target data into multiple computing slices; wherein each of the computing slices includes a portion of the target data and a computing model of the portion of the target data;

[0275] A first uploading module, configured to upload the plurality of computing slices to the InterPlanetary File System for storage;

[0276] A first encryption module, used to encrypt the content identifier of each computing shard, and upload the encrypted content identifier to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system;

[0277] The aggregation module is used to obtain the output results of the computing nodes after processing the corresponding computing slices in the interplanetary file system, and to aggregate the output results of each computing node to obtain the target computing result of the computing task.

[0278] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0279] Reference Figure 7 FIG. 1 is a schematic diagram of a data processing device provided by an embodiment of the present disclosure, wherein the device comprises: a first acquisition module 21, a sending module 22, and a second acquisition module 23; wherein:

[0280] A first acquisition module is used to acquire an encrypted content identifier uploaded by a computing initiator; wherein the content identifier is used to indicate a storage location of a computing slice in the interplanetary file system, and the computing slice is obtained by the computing initiator by splitting the computing task of the target data, and each computing slice includes a part of the target data and a computing model of the part of the target data;

[0281] A sending module, configured to send the storage location of the corresponding computing slice in the interplanetary file system to the computing node based on the encrypted content identifier;

[0282] The second acquisition module obtains the storage location of the output result in the Interplanetary File System after the computing node obtains the computing slice from the Interplanetary File System and calculates the output result of the computing slice, and sends the storage location of the output result to the computing initiator.

[0283] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0284] Reference Figure 8 FIG. 1 is a schematic diagram of a data processing device provided by an embodiment of the present disclosure, wherein the device comprises: a third acquisition module 31, a fourth acquisition module 32, and a calculation module 33; wherein:

[0285] A third acquisition module is used to obtain the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system, and the computing shard is obtained by splitting the computing task of the target data by the computing initiator, and each computing shard contains part of the target data and the computing model of the part of the target data;

[0286] A fourth acquisition module, configured to acquire, in the interplanetary file system, a computing shard corresponding to the computing node according to a storage location of the computing shard in the interplanetary file system;

[0287] The computing module is used to process the computing shard to obtain an output result, upload the output result to the interplanetary file system for storage, and send the storage location of the output result in the interplanetary file system to the blockchain.

[0288] In the above implementation, since it cannot be guaranteed that the computing node selected by the computing initiator is a safe and reliable computing node, if the full amount of target data and the full amount of computing model of the target data are sent to each computing node, there may be a situation where the computing node illegally steals or damages the target data and algorithm model. Based on this, the computing task of the target data can be split to obtain multiple computing slices, and the computing slices are assigned to different computing nodes for calculation. Even if an unsafe computing node leaks or damages part of the target data and algorithm model, the complete target data and algorithm model will not be leaked or damaged, thereby improving the security of the target data and algorithm model of the computing initiator. By uploading multiple computing slices to the interstellar file system for storage, and sending the storage location of the computing slices in the interstellar file system to the computing node through the blockchain, the security of the data can be further guaranteed.

[0289] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0290] Corresponds to Figure 1 The data processing method in the present disclosure also provides an electronic device 900, such as Fig. 9 FIG. 1 is a schematic diagram of the structure of an electronic device 900 provided in an embodiment of the present disclosure, including:

[0291] Processor 91, memory 92, and bus 93; memory 92 is used to store execution instructions, including internal memory 921 and external memory 922; the internal memory 921 is also called internal memory, which is used to temporarily store the operation data in the processor 91 and the data exchanged with the external memory 922 such as a hard disk. The processor 91 exchanges data with the external memory 922 through the internal memory 921. When the electronic device 900 is running, the processor 91 communicates with the memory 92 through the bus 93, so that the processor 91 executes the following instructions:

[0292] Splitting the computing task of the target data into multiple computing slices; wherein each computing slice includes a portion of the target data and a computing model of the portion of the target data;

[0293] Uploading the plurality of computing slices to the InterPlanetary File System for storage;

[0294] Encrypting the content identifier of each computing shard and uploading the encrypted content identifier to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system;

[0295] The output results of the computing nodes after processing the corresponding computing slices are obtained in the interplanetary file system, and the output results of each computing node are aggregated to obtain the target computing result of the computing task.

[0296] Or the processor 91 is caused to execute the following instructions:

[0297] Obtaining the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system, and the computing shard is obtained by splitting the computing task of the target data by the computing initiator, and each computing shard contains part of the target data and the computing model of the part of the target data;

[0298] According to the storage location of the computing shard in the interplanetary file system, obtaining the computing shard corresponding to the computing node in the interplanetary file system;

[0299] The computing shard is processed to obtain an output result, and the output result is uploaded to the interplanetary file system for storage, and the storage location of the output result in the interplanetary file system is sent to the blockchain.

[0300] Or the processor 91 is caused to execute the following instructions:

[0301] Obtaining an encrypted content identifier uploaded by a computing initiator; wherein the content identifier is used to indicate a storage location of a computing shard in the interplanetary file system, wherein the computing shard is obtained by the computing initiator by splitting the computing task of the target data, and each computing shard contains part of the target data and a computing model of the part of the target data;

[0302] Based on the encrypted content identifier, sending the storage location of the corresponding computing slice in the interplanetary file system to the computing node;

[0303] After the computing node obtains the computing slice from the InterPlanetary File System and calculates the output result of the computing slice, it obtains the storage location of the output result in the InterPlanetary File System and sends the storage location of the output result to the computing initiator.

[0304] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data processing method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0305] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the data processing method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0306] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0307] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

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

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

[0310] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0311] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A data processing method, characterized in that: Applicable to the computing initiator, including: Splitting the computing task of the target data into multiple computing slices; wherein each computing slice includes a portion of the target data and a computing model of the portion of the target data; Uploading the plurality of computing slices to the InterPlanetary File System for storage; Encrypting the content identifier of each computing shard and uploading the encrypted content identifier to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system; The output results of the computing nodes after processing the corresponding computing slices are obtained in the interplanetary file system, and the output results of each computing node are aggregated to obtain the target computing result of the computing task.

2. The method according to claim 1, characterized in that The computing task of the target data is split into multiple computing slices, including: Determining the number of splits of the computing task; Splitting the target data into a plurality of data slices according to the split quantity, and determining a calculation model for each of the data slices; generating a secret share for each of the data shards; Based on the data shards, the computing model and the secret share, the shard content of each of the computing shards is determined.

3. The method according to claim 2, characterized in that The determining the number of splits of the computing task includes: Determine the fault tolerance rate of the computing node; wherein the fault tolerance rate is used to indicate the probability that the system allows the existence of malicious computing nodes, that is, the ratio between the number of malicious computing nodes in all computing nodes and the total number of all computing nodes; Based on the fault tolerance rate, the number of splits of the computing task is determined.

4. The method according to claim 2, characterized in that: Generating a secret share for each of the data shards comprises: Based on the first random number, generate a first character string; Determine k-1 second character strings having the same length as the first character string, wherein k is the number of splits of the computing task; Calculate the first character string and the second character string to obtain a third character string; A corresponding string is determined as a secret share for each of the data slices in a string set; wherein the string set includes each of the second string and the third string, and the strings determined for different data slices are different.

5. The method according to claim 1, characterized in that After uploading the encrypted content identifier to the blockchain, the method further comprises: Obtaining a node public key of a computing node corresponding to each of the computing shards; Generate a re-encryption key based on the private key of the computing initiator and the public key of the computing node; The re-encryption key is sent to the blockchain; wherein the re-encryption key is the key used by the blockchain to re-encrypt the encrypted content identifier, and the first ciphertext obtained by the blockchain re-encrypting the encrypted content identifier through the re-encryption key can be decrypted by the computing node to decrypt the storage location of the computing shard in the interplanetary file system.

6. The method according to claim 1, characterized in that The obtaining, in the interplanetary file system, an output result after the computing node processes the corresponding computing slice, includes: Obtain a second ciphertext from the blockchain; wherein the second ciphertext is obtained by encrypting the storage location of the output result of the computing node in the interplanetary file system; Decrypting the second ciphertext based on the private key of the calculation initiator to obtain the storage location of the output result; The output result and a secret share of the output result are obtained from the InterPlanetary File System based on the storage location of the output result.

7. The method according to claim 6, characterized in that The aggregating the output results of each of the computing nodes to obtain the target computing result of the computing task includes: When the secret shares of the split number of the output results are obtained, all the obtained secret shares are calculated to obtain a share calculation result; wherein the split number is used to indicate the number of the calculation shards; When the share calculation result is the same as the first string, the output results are aggregated to obtain a target calculation result of the calculation task; wherein the first string is a string determined based on a first random number and used to generate the secret share.

8. The method according to claim 7, characterized in that The method further comprises: When the share calculation result is different from the first character string, a recalculation request is sent to the blockchain; wherein the recalculation request includes the secret share that has not been received by the calculation initiator and the storage address of the calculation shard corresponding to the secret share.

9. The method according to claim 1, characterized in that: After uploading the encrypted content identifier to the blockchain, the method further comprises: Determine an allocation rule for the plurality of computing slices; wherein the allocation rule is used to indicate a slice configuration requirement for the computing slice; Based on the allocation rule, an allocation instruction is sent to the blockchain; wherein the allocation instruction is used to instruct the blockchain to allocate a corresponding computing node to each of the computing shards; Obtain the allocation result of the computing node fed back by the blockchain.

10. A data processing method, characterized in that: Applications in blockchain include: Obtaining an encrypted content identifier uploaded by a computing initiator; wherein the content identifier is used to indicate a storage location of a computing shard in the interplanetary file system, wherein the computing shard is obtained by the computing initiator by splitting the computing task of the target data, and each computing shard contains part of the target data and a computing model of the part of the target data; Based on the encrypted content identifier, sending the storage location of the corresponding computing shard in the interplanetary file system to the computing node; After the computing node obtains the computing slice from the InterPlanetary File System and calculates the output result of the computing slice, it obtains the storage location of the output result in the InterPlanetary File System and sends the storage location of the output result to the computing initiator.

11. The method according to claim 10, characterized in that After the computing node obtains the computing slice from the interplanetary file system and calculates the output result of the computing slice, obtaining the storage location of the output result in the interplanetary file system, and sending the storage location of the output result to the computing initiator, includes: After the computing node obtains the computing slice from the interplanetary file system and calculates the output result of the computing slice, obtains a third ciphertext sent by the computing node; wherein the third ciphertext is a ciphertext obtained by encrypting the storage location of the output result in the interplanetary file system; After encrypting the third ciphertext, a second ciphertext is obtained; wherein the second ciphertext is used to indicate a storage location of an output result of the computing node in the interplanetary file system; The second ciphertext is sent to the calculation initiator.

12. The method according to claim 10, characterized in that The step of sending the storage location of the corresponding computing shard in the interplanetary file system to the computing node based on the encrypted content identifier includes: Sending the node public key of the computing node corresponding to each computing slice to the computing initiator; Receiving a re-encryption key sent by the computing initiator; wherein the re-encryption key is a key generated based on the node public key and the private key of the computing initiator; The encrypted content identifier is re-encrypted according to the re-encryption key to obtain a first ciphertext, and the first ciphertext is sent to the computing node; wherein the first ciphertext is used to instruct the computing node to send the storage location of the corresponding computing shard in the interplanetary file system.

13. The method according to claim 12, characterized in that The sending the first ciphertext to the computing node includes: Receive an allocation instruction sent by the computing initiator; wherein the allocation instruction is used to instruct the blockchain to allocate a corresponding computing node to each computing shard; A computing slice is allocated to each computing node according to the allocation instruction, a corresponding first ciphertext is sent to the computing node according to the allocation result of the computing node, and the allocation result is sent to the computing initiator.

14. A data processing method, characterized in that: Applied to compute nodes, including: Obtaining the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system, and the computing shard is obtained by splitting the computing task of the target data by the computing initiator, and each computing shard contains part of the target data and the computing model of the part of the target data; According to the storage location of the computing shard in the interplanetary file system, obtaining the computing shard corresponding to the computing node in the interplanetary file system; The computing shard is processed to obtain an output result, and the output result is uploaded to the interplanetary file system for storage, and the storage location of the output result in the interplanetary file system is sent to the blockchain.

15. The method according to claim 14, characterized in that The obtaining of the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system includes: Receiving a first ciphertext sent by the blockchain; wherein the first ciphertext is obtained by the blockchain re-encrypting the encrypted content identifier using a re-encryption key; The first ciphertext is decrypted based on the private key of the computing node to obtain the storage location of the corresponding computing shard in the interplanetary file system.

16. The method according to claim 14, characterized in that The sending the storage location of the output result in the interplanetary file system to the blockchain includes: Encrypting the storage location of the output result in the interplanetary file system to obtain a third ciphertext; And send the third ciphertext to the blockchain.

17. A data processing device, characterized in that: include: A splitting module, used to split the computing task of the target data into multiple computing slices; wherein each of the computing slices includes a portion of the target data and a computing model of the portion of the target data; A first uploading module, configured to upload the plurality of computing slices to the InterPlanetary File System for storage; A first encryption module, used to encrypt the content identifier of each computing shard, and upload the encrypted content identifier to the blockchain; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system; The aggregation module is used to obtain the output results of the computing nodes in the interplanetary file system after processing the corresponding computing slices, and to aggregate the output results of each computing node to obtain the target computing result of the computing task.

18. A data processing device, characterized in that: include: A first acquisition module is used to acquire an encrypted content identifier uploaded by a computing initiator; wherein the content identifier is used to indicate a storage location of a computing slice in the interplanetary file system, and the computing slice is obtained by the computing initiator by splitting the computing task of the target data, and each computing slice includes a part of the target data and a computing model of the part of the target data; A sending module, configured to send the storage location of the corresponding computing slice in the interplanetary file system to the computing node based on the encrypted content identifier; The second acquisition module obtains the storage location of the output result in the Interplanetary File System after the computing node obtains the computing slice from the Interplanetary File System and calculates the output result of the computing slice, and sends the storage location of the output result to the computing initiator.

19. A data processing device, characterized in that: include: A third acquisition module is used to obtain the storage location of the corresponding computing shard sent by the blockchain system based on the encrypted content identifier in the interplanetary file system; wherein the content identifier is used to indicate the storage location of the computing shard in the interplanetary file system, and the computing shard is obtained by splitting the computing task of the target data by the computing initiator, and each computing shard contains part of the target data and the computing model of the part of the target data; A fourth acquisition module, configured to acquire, in the interplanetary file system, a computing shard corresponding to a computing node according to a storage location of the computing shard in the interplanetary file system; The computing module is used to process the computing shard to obtain an output result, upload the output result to the interplanetary file system for storage, and send the storage location of the output result in the interplanetary file system to the blockchain.

20. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the data processing method as described in any one of claims 1 to 16 are performed.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 16 are executed.