Blockchain-based distributed computing data processing method and apparatus
By using encryption keys to encrypt distributed computing data in the blockchain and combining this with node decomposition technology, the problem of low key reliability is solved, thereby improving the security and scalability of distributed computing data.
Patent Information
- Application Number
- CN202310466868.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-04-26
AI Technical Summary
Existing encryption algorithms in blockchain suffer from low key reliability, leading to low data security in distributed computing, and are also vulnerable to attacks and cracking, and blockchain has low scalability.
Distributed computing data is encrypted using encryption keys in the blockchain, and the encrypted data is packaged into blocks and added to the main chain. By leveraging the decentralized and immutable characteristics of the blockchain, combined with a preset number of nodes and key segment decomposition technology, the security and integrity of the keys are ensured.
It improves the security of distributed computing data, prevents keys from being stolen or tampered with, ensures the confidentiality and integrity of data, avoids interference from central nodes, and enhances the scalability of the blockchain.
Smart Images

Figure CN116610749B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to a distributed computing data processing method and device based on a blockchain. BACKGROUND
[0002] With the development of digitization, networking and intelligence, the data scale in various fields such as production, life and learning of people is increasing, and the data security problem is also increasingly concerned. The traditional centralized data management mode is easy to cause data leakage, tampering, loss and other problems. The decentralized characteristics of the blockchain technology can effectively solve these problems, and the use of encryption algorithm can also guarantee the confidentiality and integrity of the data.
[0003] Although the encryption algorithm in the prior art can guarantee the security of the blockchain transaction to a certain extent, most of them depend on the encryption information of the block itself, and some of them cannot be decrypted, which has the risk of being attacked and cracked, and also causes the problem of low expansibility of the blockchain.
[0004] Therefore, the key reliability of the existing encryption algorithm is low, so that the security of the distributed computing data is low. SUMMARY
[0005] Therefore, the present application provides a distributed computing data processing method and device based on a blockchain to solve the above problems.
[0006] According to a first aspect of the present application, a distributed computing data processing method based on a blockchain is provided, comprising: obtaining distributed computing data; encrypting the distributed computing data based on an encryption key in the blockchain to obtain encrypted data; packaging the encrypted data to obtain an encrypted block; and adding the encrypted block to a main chain of the blockchain.
[0007] In another implementation manner of the present application, the distributed computing data processing method based on the blockchain further comprises: determining m nodes in the blockchain that save the encryption key and the number n of keys required during decryption based on a preset number of nodes; decomposing the prepared encryption key into n key segments; sending each key segment to n nodes in the m nodes, wherein each node contains n key segments; and adding a block at the corresponding block height on the key chain of each node based on the block height of the data corresponding to the determined encryption key on the main chain, wherein the block is used to record the key segments contained by the node.
[0008] In another implementation manner of the present application, the distributed computing data is encrypted based on an encryption key in the blockchain to obtain encrypted data, including: converting the encryption key from binary to a natural number in decimal; performing calculation processing on the natural number and the distributed computing data to obtain the encrypted data.
[0009] In another implementation manner of the present application, the distributed computing data processing method based on the blockchain further includes: recording the node that records the encrypted data correctly on the blockchain and the block height of the encrypted data on the blockchain; sending a key request to the correct node, wherein the block height is included in the key request; determining the complete key according to the correct information in the key segment returned by the correct node; and performing decryption processing on the encrypted data by using the complete key to obtain the distributed computing data.
[0010] In another implementation manner of the present application, the distributed computing data processing method based on the blockchain further includes: building the blockchain, wherein the blockchain includes a data main chain, a key branch chain, a smart contract and a user node, the data main chain is used to store the distributed computing data, and the key branch chain is used to record the key of the main chain block.
[0011] In another implementation manner of the present application, the building of the blockchain includes: writing each blockchain address in the blockchain and the smart contract, wherein the main chain address of the blockchain is set to 0; distributing each blockchain address to each user node of the blockchain based on a preset rule, wherein each user node has a unique corresponding blockchain address; and setting the connection permission of the user node and the blockchain.
[0012] In another implementation manner of the present application, the setting of the connection permission of the user node and the blockchain includes: setting the blockchain with the address 0 as a public chain without the connection permission; and setting other chains except the blockchain with the address 0 as private chains, and only the user node corresponding to the private address of the private chain has the permission to perform data processing on the data on the chain.
[0013] According to the second aspect of the present application, a distributed computing data processing device based on a blockchain is provided, including: a data acquisition module: acquiring distributed computing data; a data encryption module: performing encryption processing on the distributed computing data based on an encryption key in the blockchain to obtain encrypted data; packaging the encrypted data to obtain an encrypted block; and a data storage module: adding the encrypted block to a main chain of the blockchain.
[0014] According to the third aspect of the present application, an electronic device is provided, including: a memory, a processor and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of any one of the above distributed computing data processing methods based on the blockchain are implemented.
[0015] According to a fourth aspect of the present application, a computer storage medium is provided, and the computer storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of any one of the above blockchain-based distributed computing data processing methods.
[0016] In the blockchain-based distributed computing data processing method of the present application, the key is stored by the blockchain, so that the key is not easy to be stolen or tampered with, the distributed computing data is encrypted by the key in the blockchain and stored in the blockchain, the blockchain has the characteristics of decentralization and tamper resistance, the distributed computing process will not be disturbed by the problems of the central node, and the distributed computing data will not be tampered with at will, thereby ensuring the security of the distributed computing data. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced below. The advantages and benefits of the solutions will become clear and obvious to those skilled in the art by reading the following detailed description of the embodiments. The drawings are only for the purpose of illustrating the preferred embodiments and are not considered as limiting the present application. In the drawings:
[0018] Figure 1 The step flow chart of the blockchain-based distributed computing data processing method of an embodiment of the present application.
[0019] Figure 2 The overall structure schematic diagram of the encryption algorithm of another embodiment of the present application.
[0020] Figure 3 The structure block diagram of the blockchain-based distributed computing data processing device of another embodiment of the present application.
[0021] Figure 4 The structure schematic diagram of the electronic device of another embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to make the person skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and in detail below, combined with the drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art should belong to the scope of protection of the present application.
[0023] Figure 1 The step flow chart of a blockchain-based distributed computing data processing method provided by an embodiment of the present application is as follows: Figure 1As shown, the embodiment mainly includes the following steps:
[0024] S101, acquire distributed computing data.
[0025] Exemplarily, the distributed computing data is acquired by a terminal or a server.
[0026] It should be understood that distributed computing is multi-terminal or server collaborative computing, which can be performed simultaneously on multiple servers, and the distributed computing based on the blockchain technology can utilize the decentralized characteristics of the blockchain technology to ensure that the computing is not disturbed by the problems of the central node, can clearly define the computing responsibilities, and improve the problem processing efficiency while ensuring the operation accuracy and result reliability.
[0027] S102, encrypt the distributed computing data based on the encryption key in the blockchain to obtain encrypted data.
[0028] Exemplarily, the blockchain structure of the encryption algorithm is composed of a data information main chain and a plurality of key branch chains, the main chain is used to store the encrypted information, each node on the main chain has a private branch chain, which records the key of a certain block of the main chain, the key is used to encrypt the information and package the encryption result into a block to add to the main chain and decrypt the information on the main chain to obtain the information used for distributed computing.
[0029] It should be understood that the smart contract of the encryption algorithm is written in Java language, the smart contract interface is built in the distributed computing algorithm, a private key chain is built for each user node, and the address of the key chain is uniquely corresponding to the user node. The address of the key chain can be public, but the key chain should be a private chain of the node. When encrypting the data and chaining it to the data chain, a long key is prepared using a random number and is segmented according to the number of user nodes. The segmented result is sent to each user node, which is added to the private key chain, and the address of the data on the data chain corresponding to the key is recorded on the key chain. The distributed computing data is encrypted by the prepared encryption key to obtain encrypted data.
[0030] S103, package the encrypted data to obtain an encrypted block.
[0031] S104, add the encrypted block to the main chain of the blockchain.
[0032] Exemplarily, the encrypted data is packaged into a block, and this block is added to the data chain to complete the encryption and chaining of the data.
[0033] In the blockchain-based distributed computing data processing method of the embodiments of the present application, the key is stored in the blockchain, so that the key is not easy to be stolen or tampered with, the distributed computing data is encrypted by the key in the blockchain and stored in the blockchain, the blockchain has the characteristics of decentralization and tamper resistance, the distributed computing process will not be disturbed by the problems of the central node, and the distributed computing data will not be tampered with at will, thereby ensuring the security of the distributed computing data.
[0034] In another implementation of the present application, the blockchain-based distributed computing data processing method further comprises: determining m nodes in the blockchain that save the encryption key and the number n of keys required for decryption based on a preset number of nodes; decomposing the prepared encryption key into n key segments; sending each key segment to n of the m nodes, wherein each node contains n key segments; adding a block at the corresponding block height of the key chain of each node based on the block height of the data corresponding to the determined encryption key on the main chain, wherein the block is used to record the key segments contained by the node.
[0035] Illustratively, when the distributed computing is completed and the calculation result data needs to be packaged into a block and added to the main chain, the server performing the distributed computing calls the data encryption smart contract through an interface, randomly selects m nodes that save the key, and the minimum number n of keys required for decryption. This means that the key corresponding to the data will be sent to the m nodes, and decryption can be completed when at least n nodes agree to decrypt the data corresponding block. The smaller m is, the higher the computing efficiency is, and the larger m is, the stronger the stability is; the smaller n is, the stronger the stability is, and the larger n is, the greater the privacy is. Generally, n should be greater than 2 times the maximum number of nodes that a single user or institution can control.
[0036] It should be understood that randomly preparing a key segment and decomposing it into n key segments and sending each segment to n of the m nodes, Each node has n key segments, which can ensure that any m nodes can obtain the complete key, while any m-1 nodes cannot obtain the complete key.
[0037] The block height of the data corresponding to the key on the main chain is determined, and a block is added at the corresponding block height of the key chain of each of the selected m nodes, the node has the key segment, and the node does not have the key segment. The key segment is recorded as empty in the block. Empty blocks are added to the key chains of the remaining nodes. Since the key is large, the information obtainable from the encrypted data is greatly reduced.
[0038] In another implementation manner of the present application, the distributed computing data is encrypted based on an encryption key in the blockchain to obtain encrypted data, comprising: converting the encryption key from binary to a decimal natural number; and performing calculation processing on the natural number and the distributed computing data to obtain the encrypted data.
[0039] Exemplarily, the original data is encrypted by using the key, for example, a 01 code with a length of 16 is generated, and the 01 code is converted from binary to a decimal natural number, and the original data is added to the decimal natural number to obtain encrypted data. The encrypted data is packaged into a block, and the block is added to the data chain to complete the encryption of the data, and the security of data encryption is improved.
[0040] In another implementation manner of the present application, the distributed computing data processing method based on the blockchain further comprises: recording the node correctly recording the encrypted data and the block height of the encrypted data on the blockchain; sending a key request to the correct node, wherein the key request contains the block height; determining the complete key according to the correct information in the key segment returned by the correct node; and decrypting the encrypted data by using the complete key to obtain the distributed computing data.
[0041] Exemplarily, for the server performing distributed operation, the user information is obtained only when the distributed computing requirement is met, and the user information privacy is ensured under the premise of realizing distributed computing by using the blockchain technology. The encryption algorithm can realize forward encryption and decryption only when the distributed computing requirement is met.
[0042] Further, when the server performing distributed operation needs data on the data chain, the encrypted data value on the data chain is determined by using the Po W consensus mechanism, and the node correctly recording the value is recorded, that is, the node voting for the value in the consensus mechanism. The block height of the block containing the required data on the data chain is provided to the smart contract through an interface, and the smart contract sends a key request to the node correctly recording the data chain value, and the request carries the information of the block height.
[0043] It should be understood that each node returns a key segment owned by itself, at this time, for each key segment, there are three possibilities in all the values of the key segment returned by each node, that is, a correct key segment, an incorrect key segment and an empty key segment. After obtaining the values of all the key segments, the server performing calculation eliminates the empty values in each key segment, and determines the correct information of the key segment according to the relative majority principle. If the correctness of the key is to be ensured, the number m of nodes mastering each key segment must be greater than twice the maximum number of nodes that can be mastered by a single party, so that when the key segment mastered by a minority of nodes is tampered with, the key segment can still be restored.
[0044] The server determines the complete key according to each key segment restored, and decrypts the original data according to the key. For example, in the encryption mode described above, the value of each key segment should be 0 or 1, the key segments are combined bit by bit, and are converted into a decimal integer to restore the key, and the value of the key is subtracted from the data recorded in the block on the data chain to obtain the original data value.
[0045] In another implementation of the present application, the distributed computing data processing method based on the block chain further comprises: building a block chain, wherein the block chain comprises a data main chain, a key branch chain, a smart contract and a user node, the data main chain is used to store distributed computing data, and the key branch chain is used to record the key of the main chain block.
[0046] As shown in the example, Figure 2 As shown in the example,
[0047] In another implementation of the present application, the block chain is built, comprising: writing each block chain address in the block chain and the smart contract, wherein the main chain address of the block chain is set to 0; based on a preset rule, each user node of the block chain is assigned each block chain address, wherein each user node has a unique corresponding block chain address; and setting the connection permission of the user node and the block chain.
[0048] As an example, the underlying technology of building the block chain uses Java to write the underlying program, builds a lightweight block chain, and uses Solidity to write the smart contract, and compiles it through the IDEA compiler. Each block chain is built, the block chain address is written, the main chain address is determined to be 0, each node is uniquely assigned a block chain address according to the current number of user nodes through a corresponding rule, the corresponding rule can be public, the block chain is built at these addresses through the written block chain building method, and the connection permission is set.
[0049] It should be understood that when a new user node joins the calculation, it is assigned a private key block chain address and the permission is set, and after the building of the genesis block of the chain is completed, according to the number of blocks of the main chain, it is assigned an equal number of empty blocks for counting without saving any information.
[0050] In another implementation manner of the present application, the connection permission of the user node and the blockchain is set, including: setting the blockchain with address 0 as a public chain without connection permission; setting other chains except the blockchain with address 0 as private chains, only the user node corresponding to the private address of the private chain has the permission to process the data on the chain.
[0051] Exemplarily, the blockchain with address 0 is set as a public chain without permission. Other chains are set as private chains, only the user node corresponding to the chain address has the right to view and modify.
[0052] As shown in Figure 3 , Figure 3 A distributed computing data processing device based on a blockchain is provided, including:
[0053] The data acquisition module 301 acquires distributed computing data.
[0054] The data encryption module 302 encrypts the distributed computing data based on an encryption key in the blockchain to obtain encrypted data, and packages the encrypted data to obtain an encrypted block.
[0055] The data storage module 303 adds the encrypted block to the main chain of the blockchain.
[0056] In the distributed computing data processing device based on the blockchain in the embodiment of the present application, the key is stored through the blockchain, so that the key is not easy to be stolen or tampered with. The distributed computing data is encrypted through the key in the blockchain and stored in the blockchain. The blockchain has the characteristics of decentralization and tamper resistance. In the distributed computing process, the problem of the central node will not be disturbed, and the distributed computing data will not be tampered with at will, thereby ensuring the security of the distributed computing data.
[0057] In another implementation manner of the present application, the data encryption module 302 is further configured to determine, based on a preset number of nodes, m nodes in the blockchain that save the encryption key and a number n of keys required during decryption; decompose the prepared encryption key into key segments; send each key segment to n nodes in the m nodes, wherein each node includes key segments; add a block to the corresponding block height of the key chain of each node based on the block height of the data corresponding to the determined encryption key on the main chain, wherein the block is used to record the key segments included by the node.
[0058] In another implementation manner of the present application, the data encryption module 302 is further configured to convert the encryption key from binary to a natural number in decimal; and perform calculation processing on the natural number and the distributed computing data to obtain encrypted data.
[0059] In another implementation manner of the present application, the distributed computing data processing apparatus 300 based on the blockchain further comprises a data decryption module 304, the data decryption module 304 is used for recording the correct node of the encrypted data record on the blockchain and the block height of the block where the encrypted data is located on the blockchain; sending a key request to the correct node, wherein the block height is contained in the key request; the distributed computing server determines the complete key according to the correct information in the key segment returned by the correct node; the encrypted data is decrypted by the complete key to obtain the distributed computing data.
[0060] In another implementation manner of the present application, the distributed computing data processing apparatus 300 based on the blockchain further comprises a blockchain building module 305, the blockchain building module 305 is used for building the blockchain, wherein the blockchain comprises a data main chain, a key branch chain, a smart contract and a user node, the data main chain is used for storing the distributed computing data, and the key branch chain is used for recording the key of the main chain block.
[0061] In another implementation manner of the present application, the blockchain building module 305 is further used for writing each blockchain address in the blockchain and the smart contract, wherein the main chain address of the blockchain is set to 0; each user node of the blockchain is allocated each blockchain address based on a preset rule, wherein each user node has a unique corresponding blockchain address; the connection permission of the user node and the blockchain is set.
[0062] In another implementation manner of the present application, the blockchain building module 305 is further used for setting the blockchain with the address 0 as a public chain without connection permission; setting other chains except the blockchain with the address 0 as a private chain, only the user node corresponding to the private address of the private chain has the permission to process the data on the chain.
[0063] As shown in the figure, the electronic device 400 can include a processor 401, a memory 403, and a communication bus 404, a communication interface 405. Figure 4
[0064] Among them:
[0065] The processor 401, the memory 403 and the communication interface 405 complete the communication among each other through the communication bus 404.
[0066] The communication interface 405 is used for communicating with other electronic devices or servers.
[0067] The processor 401 is used for executing the program 402, and specifically can execute the steps of the distributed computing data processing method based on the blockchain in any of the above embodiments.
[0068] In particular, the program 402 can include program codes including computer operation instructions.
[0069] The processor 401 can be a central processing unit CPU, or an application specific integrated circuit ASIC, or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device can be the same type of processor, such as one or more CPUs; or can be different types of processors, such as one or more CPUs and one or more ASICs.
[0070] The memory 403 is configured to store the program 402. The memory 403 can include a high-speed RAM memory, and can further include a non-volatile memory such as at least one disk memory.
[0071] The program 402 can be specifically configured to enable the processor 401 to perform the steps of any of the blockchain-based distributed computing data processing methods described in the embodiments. The specific implementation of each step in the program 402 can refer to the corresponding description of the steps and units performed by any of the blockchain-based distributed computing data processing methods described above, and will not be described here. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the devices and modules described above can refer to the corresponding process descriptions in the foregoing method embodiments.
[0072] The exemplary embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method of the embodiments of the present application.
[0073] The above-described methods according to embodiments of the application can be implemented in hardware, firmware, or software, or any combination thereof, and can be implemented as software storable on a recording medium which is readable from a general use computer, a special processor or programmable, or a special hardware (such as ASIC or FPGA) using a general use computer, a special processor or programmable hardware (such as ASIC or FPGA). It can be understood that the computer, the processor, the microprocessor controller or the programmable hardware include a storage component (for example, RAM, ROM, flash memory, etc.) which can store or receive software or computer code, when the software or computer code is accessed and executed by the computer, the processor or the hardware, the above-described methods are implemented. In addition, when the general use computer accesses the code for implementing the methods shown herein, the execution of the code will convert the general use computer into a special computer for executing the methods shown herein.
[0074] So far, specific embodiments of the present application have been described. Other embodiments are within the scope of the following claims. In some cases, the acts recited in the claims can be performed in a different order and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.
[0075] It should be noted that all directional directions (such as up, down, left, right, back, etc.) in the embodiments of the present application are only used to explain the relative position relationship, motion condition, etc. between components in a certain specific posture (as shown in the drawings), if the specific posture changes, the directional directions also change accordingly.
[0076] In the description of the present application, the terms "first", "second" are only used for the convenience of describing different components or names, and cannot be understood as indicating or implying the order relationship, relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can be explicitly or implicitly included at least one of the features.
[0077] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
[0078] It should be noted that, although the specific embodiments of the present application are described in detail with reference to the accompanying drawings, it should not be understood as limiting the scope of protection of the present application. Various modifications and variations made by those skilled in the art within the scope described in the claims are still within the scope of protection of the present application.
[0079] The examples of the embodiments of the present application are intended to simply illustrate the technical features of the embodiments of the present application, so that those skilled in the art can directly understand the technical features of the embodiments of the present application, and are not improper limitations of the embodiments of the present application.
[0080] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications 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 application.
Claims
1. A blockchain-based distributed computing data processing method, characterized in that, The method comprises the following steps: obtaining distributed computing data; encrypting the distributed computing data based on an encryption key in a blockchain to obtain encrypted data; packing the encrypted data to obtain an encrypted block; adding the encrypted block to a main chain of the blockchain; determining m nodes in the blockchain that store the encryption key and a key number n required for decryption based on a preset number of nodes; The prepared encryption key is decomposed into key segments; Each key segment is sent to n of m nodes, where each user node contains key segments; adding a block to a corresponding block height on a key chain of each user node based on a block height of data corresponding to the encryption key on the main chain, wherein the block is used to record a key segment contained by the user node; recording a user node that correctly records the encrypted data on the blockchain and a block height of the encrypted data on the blockchain; sending a key request to the correct user node, wherein the key request contains the block height; determining a complete key based on correct information in a key segment returned by the correct user node; decrypting the encrypted data based on the complete key to obtain the distributed computing data.
2. The method of claim 1, wherein, The method comprises the following steps: converting the encryption key from binary to a natural number in decimal; performing calculation processing on the natural number and the distributed computing data to obtain encrypted data.
3. The method of claim 1, wherein, The method further comprises the following steps: building the blockchain, wherein the blockchain comprises a data main chain, a key branch chain, a smart contract, and user nodes, the data main chain is used to store distributed computing data, and the key branch chain is used to record keys of blocks of the main chain.
4. The method of claim 3, wherein, The building of the blockchain comprises the following steps: writing each blockchain address in the blockchain and the smart contract, wherein the main chain address of the blockchain is set to 0; allocating each blockchain address to each user node of the blockchain based on a preset rule, wherein each user node has a unique corresponding blockchain address; setting connection permissions of the user nodes and the blockchain.
5. The method of claim 4, wherein, The setting of the connection permissions of the user nodes and the blockchain comprises the following steps: setting the blockchain with an address of 0 as a public chain without connection permissions; setting other chains except the blockchain with the address of 0 as private chains, and only user nodes corresponding to private addresses of the private chains have permissions to perform data processing on data on the chains. 6.A blockchain-based distributed computing data processing apparatus, characterized by, The method comprises the following steps: a data acquisition module: obtaining distributed computing data; a data encryption module: encrypting the distributed computing data based on an encryption key in a blockchain to obtain encrypted data; packing the encrypted data to obtain an encrypted block; a data storage module: adding the encrypted block to a main chain of the blockchain; Based on the preset number of nodes, determine m nodes in the blockchain that save the encryption key and the number n of keys required for decryption; decompose the prepared encryption key into key segments; send each key segment to n of the m nodes, wherein each user node contains key segments; based on the determined block height of the encryption key corresponding data on the main chain, add a block at the corresponding block height on the key chain of each user node, wherein the block is used to record the key segments contained by the user node; record the user nodes on the blockchain that correctly record the encrypted data and the block height of the encrypted data on the blockchain; send a key request to the correct user node, wherein the key request contains the block height; the distributed computing server determines the complete key according to the correct information in the key segment returned by the correct user node; decrypt the encrypted data by using the complete key to obtain the distributed computing data.
7. An electronic device, comprising: The method comprises the following steps: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the blockchain-based distributed computing data processing method according to any one of claims 1 to 5 when executing the computer program.
8. A computer storage medium, characterized in that, The computer storage medium stores a computer program, and the computer program is executed by the processor to implement the steps in the blockchain-based distributed computing data processing method in any one of claims 1 to 5.
Citation Information
Patent Citations
Block chain based key storage, updating method, apparatus, apparatus and medium
CN109345242A
Method for safely updating key in blockchain, node and storage medium
CN111614464A