CN110968879A - Data processing method and device based on block chain - Google Patents

Data processing method and device based on block chain Download PDF

Info

Publication number
CN110968879A
CN110968879A CN201811162953.2A CN201811162953A CN110968879A CN 110968879 A CN110968879 A CN 110968879A CN 201811162953 A CN201811162953 A CN 201811162953A CN 110968879 A CN110968879 A CN 110968879A
Authority
CN
China
Prior art keywords
target
algorithm
data processing
data
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811162953.2A
Other languages
Chinese (zh)
Inventor
段炜
周雷皓
龚廖安
王贺冬
宁晨光
毕伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongsi Boan Technology Beijing Co ltd
Original Assignee
Zhongsi Boan Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongsi Boan Technology Beijing Co ltd filed Critical Zhongsi Boan Technology Beijing Co ltd
Priority to CN201811162953.2A priority Critical patent/CN110968879A/en
Publication of CN110968879A publication Critical patent/CN110968879A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a data processing method and a device based on a block chain.A data processing result demand party determines target data to be processed, a target algorithm and a target computational power required by processing the target data from the block chain, the target data to be processed, the target algorithm and the target computational power required by processing the target data can not be forged, tampered or intercepted, moreover, the whole data processing process is executed on the block chain in a form of executing a contract, the whole execution process is transparent and unchangeable, and the accuracy of a data processing result obtained by the data processing result demand party is ensured.

Description

Data processing method and device based on block chain
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method and apparatus based on a block chain.
Background
With the development of science, the data processing often adopts an algorithm execution mode to improve the data processing efficiency. In order to ensure the smooth execution of the algorithm execution process, the computer operation environment resource satisfying the algorithm execution condition is often required to be supported, and the computer operation environment resource is called computing power.
In the prior art, when a user needs to process target data to obtain a processing result, the target data and an executable file of a target algorithm are transmitted to a computing power provider in a remote communication manner, the computing power provider executes the received executable file of the target algorithm to process the target data to generate a processing result, and the processing result is sent to the user.
However, the target data and the executable file of the target algorithm are transmitted in a remote communication manner, and in the transmission process, the target data and the executable file of the target algorithm are at risk of being forged, tampered or intercepted, so that the accuracy of a processing result generated by processing the target data by an algorithm provider cannot be guaranteed.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and apparatus for data processing based on a blockchain that overcomes or at least partially solves the above-mentioned problems. The specific scheme is as follows:
a data processing method based on a block chain is applied to a data processing result demander, and the method comprises the following steps:
determining target data to be processed, a target algorithm and a target calculation force required by processing the target data from a block chain;
signing an execution contract according to the target data, the target algorithm and the target calculation power;
issuing the execution contract onto a blockchain to cause a data provider of the target data, an algorithm executor of the target algorithm, and an algorithm provider of the target algorithm to sign the execution contract;
triggering the execution contract to start execution so as to generate a data processing result after the execution of the execution contract is finished and issue the data processing result to the block chain;
and acquiring the data processing result from the block chain.
Optionally, the determining target data to be processed, a target algorithm and a target computation power required for processing the target data from the blockchain includes:
determining a first blockchain identifier corresponding to a data directory with data description information consistent with that of the target data from a data directory issued on a blockchain;
determining a second block chain identifier corresponding to an algorithm directory, wherein the algorithm directory published on the block chain corresponds to an algorithm directory, and the algorithm directory satisfies the requirement that the description information of a target algorithm required by processing the target data is consistent;
and determining a third block chain identifier corresponding to the calculation power description information with calculation power description information consistent with the description information of the target calculation power required for processing the target data from the calculation power description information released on the block chain.
Optionally, the signing an execution contract according to the target data, the target algorithm, and the target algorithm includes:
after the data processing result demander pays a preset cost, triggering the execution contract to start execution;
after the execution contract starts to be executed, a target algorithm provider corresponding to the second block chain identifier encapsulates an executable file of a target algorithm into a binary stream, encrypts the binary stream to generate an encrypted target algorithm, and issues the encrypted target algorithm to the block chain;
the target computing power provider corresponding to the third block chain identifier obtains the encrypted target algorithm from the block chain, decrypts the encrypted target algorithm to obtain a binary stream, and restores the binary stream into an executable file of the target algorithm;
the target computing power provider acquires target data from a target data provider corresponding to the first blockchain identifier;
and the target computing power provider operates the target algorithm under the computing power environment of the target computing power provider to process the target data to generate a data processing result, encrypts the data processing result to generate an encrypted data processing result, and issues the encrypted data processing result to the block chain.
Optionally, obtaining the data processing result from the blockchain includes:
monitoring whether the data processing result is uplink or not;
downloading the encrypted data processing result from the block chain after monitoring the uplink of the data processing result;
and decrypting the encrypted data processing result to obtain a final data processing result.
A data processing device based on a block chain is applied to a data processing result demander, and the device comprises:
the determining unit is used for determining target data to be processed, a target algorithm and target computing power required by processing the target data from the block chain;
the contract signing unit is used for signing an execution contract according to the target data, the target algorithm and the target calculation power;
a contract issuing unit, configured to issue the execution contract onto a blockchain, so that a data provider of the target data, an algorithm executor of the target algorithm, and an algorithm provider of the target algorithm sign the execution contract;
the contract triggering unit is used for triggering the execution contract to start execution so as to generate a data processing result after the execution contract is executed and issue the data processing result to the block chain;
and the result acquisition unit is used for acquiring the data processing result from the block chain.
Optionally, the determining unit is specifically configured to:
determining a first blockchain identifier corresponding to a data directory with data description information consistent with that of the target data from a data directory issued on a blockchain;
determining a second block chain identifier corresponding to an algorithm directory, wherein the algorithm directory published on the block chain corresponds to an algorithm directory, and the algorithm directory satisfies the requirement that the description information of a target algorithm required by processing the target data is consistent;
and determining a third block chain identifier corresponding to the calculation power description information with calculation power description information consistent with the description information of the target calculation power required for processing the target data from the calculation power description information released on the block chain.
Optionally, the contract signing unit is specifically configured to:
after the data processing result demander pays a preset cost, triggering the execution contract to start execution;
after the execution contract starts to be executed, a target algorithm provider corresponding to the second block chain identifier encapsulates an executable file of a target algorithm into a binary stream, encrypts the binary stream to generate an encrypted target algorithm, and issues the encrypted target algorithm to the block chain;
the target computing power provider corresponding to the third block chain identifier obtains the encrypted target algorithm from the block chain, decrypts the encrypted target algorithm to obtain a binary stream, and restores the binary stream into an executable file of the target algorithm;
the target computing power provider acquires target data from a target data provider corresponding to the first blockchain identifier;
and the target computing power provider operates the target algorithm under the computing power environment of the target computing power provider to process the target data to generate a data processing result, encrypts the data processing result to generate an encrypted data processing result, and issues the encrypted data processing result to the block chain.
Optionally, the result obtaining unit is specifically configured to:
monitoring whether the data processing result is uplink or not;
downloading the encrypted data processing result from the block chain after monitoring the uplink of the data processing result;
and decrypting the encrypted data processing result to obtain a final data processing result.
A storage medium storing a program to implement the steps of the block chain based data processing method as described above.
An electronic device, comprising:
a memory and a processor;
the memory stores a program adapted to be executed by the processor to implement the steps of the blockchain based data processing method as described above.
By means of the technical scheme, the data processing method and the data processing device based on the block chain, provided by the invention, a data processing result demand party determines target data to be processed, a target algorithm and a target calculation power required by processing the target data from the block chain, the target data to be processed, the target algorithm and the target calculation power required by processing the target data cannot be forged, tampered or intercepted, in addition, the whole data processing process is executed on the block chain in a contract execution mode, the whole execution process is transparent and unchangeable, and the accuracy of a data processing result obtained by the data processing result demand party is ensured.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic structural diagram of a data processing system based on a block chain according to an embodiment of the present invention in fig. 1;
fig. 2 is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data processing system based on a blockchain according to an embodiment of the present invention, where the system includes a data processing result requester, a data provider, an algorithm provider, and a computing power provider, all of which are connected to the blockchain.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data processing method based on a block chain according to an embodiment of the present invention, where the method is applied to a data processing result requester, and the method specifically includes the following steps:
s201: and determining target data to be processed, a target algorithm and a target calculation force required by processing the target data from the block chain.
S202: and signing an execution contract according to the target data, the target algorithm and the target calculation power.
S203: issuing the execution contract onto a blockchain to cause a data provider of the target data, an algorithm executor of the target algorithm, and an algorithm provider of the target algorithm to sign the execution contract;
s204: triggering the execution contract to start execution so as to generate a data processing result after the execution of the execution contract is finished and issue the data processing result to the block chain;
s205: and acquiring the data processing result from the block chain.
In the data processing method based on the blockchain provided by the embodiment, the data processing result requiring party determines target data to be processed, a target algorithm and a target computational power required for processing the target data from the blockchain, the target data to be processed, the target algorithm and the target computational power required for processing the target data cannot be forged, tampered or intercepted, moreover, the whole data processing process is executed on the blockchain in the form of an execution contract, the whole execution process is transparent and unchangeable, and the accuracy of the data processing result obtained by the data processing result requiring party is ensured.
In one possible embodiment, the determining target data to be processed, target algorithm and target calculation power required for processing the target data from the blockchain includes:
determining a first blockchain identifier corresponding to a data directory with data description information consistent with that of the target data from a data directory issued on a blockchain;
determining a second block chain identifier corresponding to an algorithm directory, wherein the algorithm directory published on the block chain corresponds to an algorithm directory, and the algorithm directory satisfies the requirement that the description information of a target algorithm required by processing the target data is consistent;
and determining a third block chain identifier corresponding to the calculation power description information with calculation power description information consistent with the description information of the target calculation power required for processing the target data from the calculation power description information released on the block chain.
In one possible embodiment, said contracting an execution contract based on said target data, said target algorithm, and said target algorithm comprises:
after the data processing result demander pays a preset cost, triggering the execution contract to start execution;
after the execution contract starts to be executed, a target algorithm provider corresponding to the second block chain identifier encapsulates an executable file of a target algorithm into a binary stream, encrypts the binary stream to generate an encrypted target algorithm, and issues the encrypted target algorithm to the block chain;
the target computing power provider corresponding to the third block chain identifier obtains the encrypted target algorithm from the block chain, decrypts the encrypted target algorithm to obtain a binary stream, and restores the binary stream into an executable file of the target algorithm;
the target computing power provider acquires target data from a target data provider corresponding to the first blockchain identifier;
and the target computing power provider operates the target algorithm under the computing power environment of the target computing power provider to process the target data to generate a data processing result, encrypts the data processing result to generate an encrypted data processing result, and issues the encrypted data processing result to the block chain.
In one embodiment, obtaining the data processing result from the blockchain includes:
monitoring whether the data processing result is uplink or not;
downloading the encrypted data processing result from the block chain after monitoring the uplink of the data processing result;
and decrypting the encrypted data processing result to obtain a final data processing result.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present invention, where the apparatus includes:
a determining unit 31, configured to determine target data to be processed, a target algorithm and a target computational power required for processing the target data from a blockchain;
a contract signing unit 32, configured to sign an execution contract according to the target data, the target algorithm, and the target calculation power;
a contract issuing unit 33 configured to issue the execution contract onto a block chain so that a data provider of the target data, an algorithm executor of the target algorithm, and an algorithm provider of the target algorithm sign the execution contract;
a contract triggering unit 34, configured to trigger the execution contract to start execution, so that after the execution contract is completed, a data processing result is generated and issued to the block chain;
a result obtaining unit 35, configured to obtain the data processing result from the block chain.
Optionally, the determining unit is specifically configured to:
determining a first blockchain identifier corresponding to a data directory with data description information consistent with that of the target data from a data directory issued on a blockchain;
determining a second block chain identifier corresponding to an algorithm directory, wherein the algorithm directory published on the block chain corresponds to an algorithm directory, and the algorithm directory satisfies the requirement that the description information of a target algorithm required by processing the target data is consistent;
and determining a third block chain identifier corresponding to the calculation power description information with calculation power description information consistent with the description information of the target calculation power required for processing the target data from the calculation power description information released on the block chain.
Optionally, the contract signing unit is specifically configured to:
after the data processing result demander pays a preset cost, triggering the execution contract to start execution;
after the execution contract starts to be executed, a target algorithm provider corresponding to the second block chain identifier encapsulates an executable file of a target algorithm into a binary stream, encrypts the binary stream to generate an encrypted target algorithm, and issues the encrypted target algorithm to the block chain;
the target computing power provider corresponding to the third block chain identifier obtains the encrypted target algorithm from the block chain, decrypts the encrypted target algorithm to obtain a binary stream, and restores the binary stream into an executable file of the target algorithm;
the target computing power provider acquires target data from a target data provider corresponding to the first blockchain identifier;
and the target computing power provider operates the target algorithm under the computing power environment of the target computing power provider to process the target data to generate a data processing result, encrypts the data processing result to generate an encrypted data processing result, and issues the encrypted data processing result to the block chain.
Optionally, the result obtaining unit is specifically configured to:
monitoring whether the data processing result is uplink or not;
downloading the encrypted data processing result from the block chain after monitoring the uplink of the data processing result;
and decrypting the encrypted data processing result to obtain a final data processing result.
It should be noted that specific function implementation of each unit is already described in detail in the method embodiment, and this embodiment is not described again.
The data processing device based on the block chain comprises a processor and a memory, wherein the determining unit, the contract signing unit, the contract issuing unit, the contract triggering unit, the result acquiring unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the accuracy of the data processing result obtained by the data processing result demand party is ensured by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, which, when executed by a processor, implements the block chain-based data processing method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data processing method based on a block chain is executed when the program runs.
The embodiment of the invention provides electronic equipment, which comprises a processor, a memory and a program which is stored on the memory and can be operated on the processor, wherein the processor executes the program and realizes the following steps:
a data processing method based on a block chain is applied to a data processing result demander, and the method comprises the following steps:
determining target data to be processed, a target algorithm and a target calculation force required by processing the target data from a block chain;
signing an execution contract according to the target data, the target algorithm and the target calculation power;
issuing the execution contract onto a blockchain to cause a data provider of the target data, an algorithm executor of the target algorithm, and an algorithm provider of the target algorithm to sign the execution contract;
triggering the execution contract to start execution so as to generate a data processing result after the execution of the execution contract is finished and issue the data processing result to the block chain;
and acquiring the data processing result from the block chain.
Optionally, the determining target data to be processed, a target algorithm and a target computation power required for processing the target data from the blockchain includes:
determining a first blockchain identifier corresponding to a data directory with data description information consistent with that of the target data from a data directory issued on a blockchain;
determining a second block chain identifier corresponding to an algorithm directory, wherein the algorithm directory published on the block chain corresponds to an algorithm directory, and the algorithm directory satisfies the requirement that the description information of a target algorithm required by processing the target data is consistent;
and determining a third block chain identifier corresponding to the calculation power description information with calculation power description information consistent with the description information of the target calculation power required for processing the target data from the calculation power description information released on the block chain.
Optionally, the signing an execution contract according to the target data, the target algorithm, and the target algorithm includes:
after the data processing result demander pays a preset cost, triggering the execution contract to start execution;
after the execution contract starts to be executed, a target algorithm provider corresponding to the second block chain identifier encapsulates an executable file of a target algorithm into a binary stream, encrypts the binary stream to generate an encrypted target algorithm, and issues the encrypted target algorithm to the block chain;
the target computing power provider corresponding to the third block chain identifier obtains the encrypted target algorithm from the block chain, decrypts the encrypted target algorithm to obtain a binary stream, and restores the binary stream into an executable file of the target algorithm;
the target computing power provider acquires target data from a target data provider corresponding to the first blockchain identifier;
and the target computing power provider operates the target algorithm under the computing power environment of the target computing power provider to process the target data to generate a data processing result, encrypts the data processing result to generate an encrypted data processing result, and issues the encrypted data processing result to the block chain.
Optionally, obtaining the data processing result from the blockchain includes:
monitoring whether the data processing result is uplink or not;
downloading the encrypted data processing result from the block chain after monitoring the uplink of the data processing result;
and decrypting the encrypted data processing result to obtain a final data processing result.
The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
a data processing method based on a block chain is applied to a data processing result demander, and the method comprises the following steps:
determining target data to be processed, a target algorithm and a target calculation force required by processing the target data from a block chain;
signing an execution contract according to the target data, the target algorithm and the target calculation power;
issuing the execution contract onto a blockchain to cause a data provider of the target data, an algorithm executor of the target algorithm, and an algorithm provider of the target algorithm to sign the execution contract;
triggering the execution contract to start execution so as to generate a data processing result after the execution of the execution contract is finished and issue the data processing result to the block chain;
and acquiring the data processing result from the block chain.
Optionally, the determining target data to be processed, a target algorithm and a target computation power required for processing the target data from the blockchain includes:
determining a first blockchain identifier corresponding to a data directory with data description information consistent with that of the target data from a data directory issued on a blockchain;
determining a second block chain identifier corresponding to an algorithm directory, wherein the algorithm directory published on the block chain corresponds to an algorithm directory, and the algorithm directory satisfies the requirement that the description information of a target algorithm required by processing the target data is consistent;
and determining a third block chain identifier corresponding to the calculation power description information with calculation power description information consistent with the description information of the target calculation power required for processing the target data from the calculation power description information released on the block chain.
Optionally, the signing an execution contract according to the target data, the target algorithm, and the target algorithm includes:
after the data processing result demander pays a preset cost, triggering the execution contract to start execution;
after the execution contract starts to be executed, a target algorithm provider corresponding to the second block chain identifier encapsulates an executable file of a target algorithm into a binary stream, encrypts the binary stream to generate an encrypted target algorithm, and issues the encrypted target algorithm to the block chain;
the target computing power provider corresponding to the third block chain identifier obtains the encrypted target algorithm from the block chain, decrypts the encrypted target algorithm to obtain a binary stream, and restores the binary stream into an executable file of the target algorithm;
the target computing power provider acquires target data from a target data provider corresponding to the first blockchain identifier;
and the target computing power provider operates the target algorithm under the computing power environment of the target computing power provider to process the target data to generate a data processing result, encrypts the data processing result to generate an encrypted data processing result, and issues the encrypted data processing result to the block chain.
Optionally, obtaining the data processing result from the blockchain includes:
monitoring whether the data processing result is uplink or not;
downloading the encrypted data processing result from the block chain after monitoring the uplink of the data processing result;
and decrypting the encrypted data processing result to obtain a final data processing result.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium (transi-tory medium ia), such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A data processing method based on a block chain is applied to a data processing result demander, and the method comprises the following steps:
determining target data to be processed, a target algorithm and a target calculation force required by processing the target data from a block chain;
signing an execution contract according to the target data, the target algorithm and the target calculation power;
issuing the execution contract onto a blockchain to cause a data provider of the target data, an algorithm executor of the target algorithm, and an algorithm provider of the target algorithm to sign the execution contract;
triggering the execution contract to start execution so as to generate a data processing result after the execution of the execution contract is finished and issue the data processing result to the block chain;
and acquiring the data processing result from the block chain.
2. The method of claim 1, wherein the determining target data to be processed, a target algorithm required for processing the target data, and a target computational power from a blockchain comprises:
determining a first blockchain identifier corresponding to a data directory with data description information consistent with that of the target data from a data directory issued on a blockchain;
determining a second block chain identifier corresponding to an algorithm directory, wherein the algorithm directory published on the block chain corresponds to an algorithm directory, and the algorithm directory satisfies the requirement that the description information of a target algorithm required by processing the target data is consistent;
and determining a third block chain identifier corresponding to the calculation power description information with calculation power description information consistent with the description information of the target calculation power required for processing the target data from the calculation power description information released on the block chain.
3. The method of claim 2, wherein said contracting an execution contract based on said target data, said target algorithm, and said target algorithm comprises:
after the data processing result demander pays a preset cost, triggering the execution contract to start execution;
after the execution contract starts to be executed, a target algorithm provider corresponding to the second block chain identifier encapsulates an executable file of a target algorithm into a binary stream, encrypts the binary stream to generate an encrypted target algorithm, and issues the encrypted target algorithm to the block chain;
the target computing power provider corresponding to the third block chain identifier obtains the encrypted target algorithm from the block chain, decrypts the encrypted target algorithm to obtain a binary stream, and restores the binary stream into an executable file of the target algorithm;
the target computing power provider acquires target data from a target data provider corresponding to the first blockchain identifier;
and the target computing power provider operates the target algorithm under the computing power environment of the target computing power provider to process the target data to generate a data processing result, encrypts the data processing result to generate an encrypted data processing result, and issues the encrypted data processing result to the block chain.
4. The method of claim 3, wherein obtaining the data processing result from the blockchain comprises:
monitoring whether the data processing result is uplink or not;
downloading the encrypted data processing result from the block chain after monitoring the uplink of the data processing result;
and decrypting the encrypted data processing result to obtain a final data processing result.
5. A data processing apparatus based on block chain, applied to a data processing result demander, the apparatus comprising:
the determining unit is used for determining target data to be processed, a target algorithm and target computing power required by processing the target data from the block chain;
the contract signing unit is used for signing an execution contract according to the target data, the target algorithm and the target calculation power;
a contract issuing unit, configured to issue the execution contract onto a blockchain, so that a data provider of the target data, an algorithm executor of the target algorithm, and an algorithm provider of the target algorithm sign the execution contract;
the contract triggering unit is used for triggering the execution contract to start execution so as to generate a data processing result after the execution contract is executed and issue the data processing result to the block chain;
and the result acquisition unit is used for acquiring the data processing result from the block chain.
6. The apparatus according to claim 5, wherein the determining unit is specifically configured to:
determining a first blockchain identifier corresponding to a data directory with data description information consistent with that of the target data from a data directory issued on a blockchain;
determining a second block chain identifier corresponding to an algorithm directory, wherein the algorithm directory published on the block chain corresponds to an algorithm directory, and the algorithm directory satisfies the requirement that the description information of a target algorithm required by processing the target data is consistent;
and determining a third block chain identifier corresponding to the calculation power description information with calculation power description information consistent with the description information of the target calculation power required for processing the target data from the calculation power description information released on the block chain.
7. The apparatus of claim 6, wherein the contract signing unit is specifically configured to:
after the data processing result demander pays a preset cost, triggering the execution contract to start execution;
after the execution contract starts to be executed, a target algorithm provider corresponding to the second block chain identifier encapsulates an executable file of a target algorithm into a binary stream, encrypts the binary stream to generate an encrypted target algorithm, and issues the encrypted target algorithm to the block chain;
the target computing power provider corresponding to the third block chain identifier obtains the encrypted target algorithm from the block chain, decrypts the encrypted target algorithm to obtain a binary stream, and restores the binary stream into an executable file of the target algorithm;
the target computing power provider acquires target data from a target data provider corresponding to the first blockchain identifier;
and the target computing power provider operates the target algorithm under the computing power environment of the target computing power provider to process the target data to generate a data processing result, encrypts the data processing result to generate an encrypted data processing result, and issues the encrypted data processing result to the block chain.
8. The apparatus according to claim 7, wherein the result obtaining unit is specifically configured to:
monitoring whether the data processing result is uplink or not;
downloading the encrypted data processing result from the block chain after monitoring the uplink of the data processing result;
and decrypting the encrypted data processing result to obtain a final data processing result.
9. A storage medium storing a program to implement the steps of the block chain based data processing method according to any one of claims 1 to 4.
10. An electronic device, comprising:
a memory and a processor;
the memory stores a program adapted to be executed by the processor to implement the steps of the blockchain-based data processing method of any one of claims 1 to 4.
CN201811162953.2A 2018-09-30 2018-09-30 Data processing method and device based on block chain Pending CN110968879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811162953.2A CN110968879A (en) 2018-09-30 2018-09-30 Data processing method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811162953.2A CN110968879A (en) 2018-09-30 2018-09-30 Data processing method and device based on block chain

Publications (1)

Publication Number Publication Date
CN110968879A true CN110968879A (en) 2020-04-07

Family

ID=70029360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811162953.2A Pending CN110968879A (en) 2018-09-30 2018-09-30 Data processing method and device based on block chain

Country Status (1)

Country Link
CN (1) CN110968879A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287403A (en) * 2020-12-25 2021-01-29 腾讯科技(深圳)有限公司 Block chain-based electronic volume management method and device, electronic equipment and medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090080656A1 (en) * 2007-09-24 2009-03-26 International Business Machine Corporation Methods and computer program products for performing cryptographic provider failover
CN106973036A (en) * 2017-02-07 2017-07-21 杭州云象网络技术有限公司 A kind of block chain method for secret protection based on asymmetric encryption
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN107342858A (en) * 2017-07-05 2017-11-10 武汉凤链科技有限公司 A kind of intelligent contract guard method and system based on trusted context
CN107358500A (en) * 2017-06-30 2017-11-17 中山大学 Evaluation sort method based on block chain
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN107819749A (en) * 2017-10-26 2018-03-20 平安科技(深圳)有限公司 Block catenary system and transaction data processing method based on ether mill
CN107832275A (en) * 2017-11-29 2018-03-23 北京欧链科技有限公司 The generation method of intelligent Contract ID, apparatus and system in block chain
CN108009823A (en) * 2017-11-03 2018-05-08 厦门快商通信息技术有限公司 The distributed call method and system for calculating power resource based on block chain intelligence contract
CN108197505A (en) * 2017-12-29 2018-06-22 泰康保险集团股份有限公司 Block chain business data processing method, device and electronic equipment
CN108234127A (en) * 2016-12-22 2018-06-29 中国移动通信集团公司 A kind of Internet of Things method and device based on block chain
CN108416577A (en) * 2018-03-02 2018-08-17 上海汉得信息技术股份有限公司 A kind of block chain service system
CN108471350A (en) * 2018-03-28 2018-08-31 电子科技大学成都研究院 Trust data computational methods based on block chain
CN108520415A (en) * 2018-04-26 2018-09-11 泰康保险集团股份有限公司 Data processing method based on block chain and device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090080656A1 (en) * 2007-09-24 2009-03-26 International Business Machine Corporation Methods and computer program products for performing cryptographic provider failover
CN108234127A (en) * 2016-12-22 2018-06-29 中国移动通信集团公司 A kind of Internet of Things method and device based on block chain
CN106973036A (en) * 2017-02-07 2017-07-21 杭州云象网络技术有限公司 A kind of block chain method for secret protection based on asymmetric encryption
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN107358500A (en) * 2017-06-30 2017-11-17 中山大学 Evaluation sort method based on block chain
CN107342858A (en) * 2017-07-05 2017-11-10 武汉凤链科技有限公司 A kind of intelligent contract guard method and system based on trusted context
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN107819749A (en) * 2017-10-26 2018-03-20 平安科技(深圳)有限公司 Block catenary system and transaction data processing method based on ether mill
CN108009823A (en) * 2017-11-03 2018-05-08 厦门快商通信息技术有限公司 The distributed call method and system for calculating power resource based on block chain intelligence contract
CN107832275A (en) * 2017-11-29 2018-03-23 北京欧链科技有限公司 The generation method of intelligent Contract ID, apparatus and system in block chain
CN108197505A (en) * 2017-12-29 2018-06-22 泰康保险集团股份有限公司 Block chain business data processing method, device and electronic equipment
CN108416577A (en) * 2018-03-02 2018-08-17 上海汉得信息技术股份有限公司 A kind of block chain service system
CN108471350A (en) * 2018-03-28 2018-08-31 电子科技大学成都研究院 Trust data computational methods based on block chain
CN108520415A (en) * 2018-04-26 2018-09-11 泰康保险集团股份有限公司 Data processing method based on block chain and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287403A (en) * 2020-12-25 2021-01-29 腾讯科技(深圳)有限公司 Block chain-based electronic volume management method and device, electronic equipment and medium
CN112287403B (en) * 2020-12-25 2021-03-19 腾讯科技(深圳)有限公司 Block chain-based electronic volume management method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN108053211B (en) Transaction processing method and device based on block chain
CN110768912B (en) API gateway current limiting method and device
CN109062582B (en) Encryption method and device for application installation package
CN105335187B (en) Application processing method and device
CN110968357B (en) Method and device for packaging maven item, storage medium and processor
CN110020353B (en) Method and device for constructing webpage form
EP3313041B1 (en) Application download method and device
CN111461623B (en) Block chain-based warehouse bill creating method, device and equipment
CN109462475B (en) Data encryption method, data decryption method and related devices
CN110971571A (en) Website domain name verification method and related device
CN106648839B (en) Data processing method and device
CN106648567B (en) Data acquisition method and device
CN110968879A (en) Data processing method and device based on block chain
CN111596920A (en) File compiling method and device, compiling equipment and storage medium
CN108874379B (en) Page processing method and device
CN106648913B (en) Data acquisition software identification method and device
CN110958278B (en) API gateway-based data processing method and system and API gateway
CN109977317B (en) Data query method and device
CN111125087B (en) Data storage method and device
CN112579308A (en) Task processing method and system
CN111126733A (en) Crawling task allocation method and device
CN109561123B (en) Token caching method and device
CN111198846A (en) Data exchange method and device based on block chain
CN106919405B (en) Client initialization method and device
CN110633564B (en) File generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20220913

AD01 Patent right deemed abandoned