Nothing Special   »   [go: up one dir, main page]

CN111198846A - Data exchange method and device based on block chain - Google Patents

Data exchange method and device based on block chain Download PDF

Info

Publication number
CN111198846A
CN111198846A CN201811376370.XA CN201811376370A CN111198846A CN 111198846 A CN111198846 A CN 111198846A CN 201811376370 A CN201811376370 A CN 201811376370A CN 111198846 A CN111198846 A CN 111198846A
Authority
CN
China
Prior art keywords
data
block chain
target
hash value
order
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
CN201811376370.XA
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 CN201811376370.XA priority Critical patent/CN111198846A/en
Publication of CN111198846A publication Critical patent/CN111198846A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a data exchange method and a device based on a block chain.A data provider chains a data catalogue in advance, a data demander determines a target block chain identifier corresponding to target data from the block chain, then generates an order main contract according to the target block chain identifier, and acquires source data of the target data by triggering the execution of the order main contract. The whole process is executed on the block chain in the form of executing contracts, and the whole executing process is transparent and unchangeable, so that the accuracy of payment settlement after data exchange is ensured.

Description

Data exchange 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 exchange method and apparatus based on a block chain.
Background
The data exchange platform is an information exchange platform which is constructed by integrating a plurality of application subsystems constructed in a scattered way and a computer network, and enables the plurality of application subsystems to transmit and share information or data, so that the utilization rate of information resources is improved, the data exchange platform becomes a basic target for information construction, and interconnection and intercommunication among distributed heterogeneous systems are ensured.
In the prior art, the specific service logic for realizing data exchange of the data exchange platform is as follows: the data exchange platform acquires data from a data provider through an interface provided by the data exchange platform and stores the acquired data into the core database, and the data demander acquires required data from the core database through the interface provided by the data exchange platform. In the process of realizing data exchange by the data exchange platform, both the data provider and the data demander need to record the access times of the interface provided by the data exchange platform so as to make a payment settlement basis.
However, there is a risk that the access times of the interface provided by the data exchange platform recorded by the data provider and the data demander are tampered, resulting in a wrong payment settlement.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a block chain based data exchange method and apparatus that overcomes or at least partially solves the above problems. The specific scheme is as follows:
a data exchange method based on a block chain is applied to a data demander, and the method comprises the following steps:
determining a target block chain identifier corresponding to target data from a block chain;
generating a data exchange order according to the target block chain identifier;
calling order management contracts and data contracts from the block chain, and creating order main contracts according to the data exchange orders;
issuing the order master contract to a block chain so that a data provider corresponding to the target block chain identifier signs the order master contract;
triggering the order master contract to start execution, so that the data provider uploads source data of the target data to a storage system, and issues a hash value of the source data to a block chain;
and acquiring the hash value of the source data from the block chain, and acquiring the source data from the storage system according to the hash value.
Optionally, the determining, from the blockchain, a target blockchain identifier corresponding to the target data includes:
and determining a block chain identifier corresponding to a data directory with data description information consistent with the data description information of the target data from the data directory issued on the block chain as the target block chain identifier.
Optionally, the generating a data exchange order according to the target block chain identifier includes:
acquiring data description information corresponding to the target block chain identifier;
determining the address of a data provider and the price of the target data according to the data description information;
and generating a data exchange order containing the address of the data provider, the price of the target data, the address of the data demander and the number of times of data purchase.
Optionally, the step of calling the order management contract and the data contract from the blockchain to create an order master contract according to the data exchange order includes:
and after determining that the state of the order main contract is the executable state, the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain.
Optionally, after obtaining the hash value of the source data from the blockchain and obtaining the source data from the storage system according to the hash value, the method further includes:
calculating a hash value of source data of the obtained target data;
judging whether the calculated hash value is consistent with the obtained hash value;
and if so, determining that the acquired source data is error-free.
A data exchange device based on block chains is applied to a data demander, and the device comprises:
the determining unit is used for determining a target block chain identifier corresponding to the target data from the block chain;
the order generating unit is used for generating a data exchange order according to the target block chain identifier;
the contract signing unit is used for calling order management contracts and data contracts from the block chain and establishing order main contracts according to the data exchange orders;
the contract issuing unit is used for issuing the order master contract to a block chain so that a data provider corresponding to the target block chain identifier signs the order master contract;
the contract triggering unit is used for triggering the order master contract to start execution so that the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain;
and the data acquisition unit is used for acquiring the hash value of the source data from the block chain and acquiring the source data from the storage system according to the hash value.
Optionally, the determining unit is specifically configured to:
and determining a block chain identifier corresponding to a data directory with data description information consistent with the data description information of the target data from the data directory issued on the block chain as the target block chain identifier.
Optionally, the order generating unit is specifically configured to:
acquiring data description information corresponding to the target block chain identifier;
determining the address of a data provider and the price of the target data according to the data description information;
and generating a data exchange order containing the address of the data provider, the price of the target data, the address of the data demander and the number of times of data purchase.
Optionally, the contract signing unit is specifically configured to:
and after determining that the state of the order main contract is the executable state, the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain.
Optionally, the apparatus further comprises:
the data checking unit is used for acquiring the hash value of the source data from the block chain, and calculating the hash value of the source data of the acquired target data after acquiring the source data from the storage system according to the hash value; judging whether the calculated hash value is consistent with the obtained hash value; and if so, determining that the acquired source data is error-free.
By means of the technical scheme, the data directory is linked up in advance by the data provider, the target block chain identification corresponding to the target data is determined by the data demander from the block chain, then the order main contract is generated according to the target block chain identification, and the source data of the target data is obtained by triggering the execution of the order main contract. The whole process is executed on the block chain in the form of executing contracts, and the whole executing process is transparent and unchangeable, so that the accuracy of payment settlement after data exchange 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 exchange system based on a block chain according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a data exchange method based on a block chain according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for generating a data exchange order according to the target blockchain identifier according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data exchange device 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 exchange system based on a blockchain according to an embodiment of the present invention, where the system includes a data requester and a data provider both connected to the blockchain.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data exchange method based on a block chain according to an embodiment of the present invention, where the method is applied to a data consumer, and the method specifically includes the following steps:
s201: determining a target block chain identifier corresponding to target data from a block chain;
the target data can be understood as data required by the data demander.
In one possible embodiment, the determining, from the blockchain, a target blockchain identifier corresponding to the target data includes: and determining a block chain identifier corresponding to a data directory with data description information consistent with the data description information of the target data from the data directory issued on the block chain as the target block chain identifier.
In an implementation, the data description information includes description information of metadata, and description information of metadata corresponding to different business scenarios (such as financial fields, medical fields, and the like) is different, and in an implementation, the target data may be data corresponding to a certain business scenario.
S202: generating a data exchange order according to the target block chain identifier;
s203: calling order management contracts and data contracts from the block chain, and creating order main contracts according to the data exchange orders;
the creation of order master contracts is performed on all nodes of the blockchain.
In one possible embodiment, the invoking of order management contracts from a blockchain and the data contracts create order master contracts from the data exchange orders comprises:
and after determining that the state of the order main contract is the executable state, the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain.
S204: issuing the order master contract to a block chain so that a data provider corresponding to the target block chain identifier signs the order master contract;
s205: triggering the order master contract to start execution, so that the data provider uploads source data of the target data to a storage system, and issues a hash value of the source data to a block chain;
s206: and acquiring the hash value of the source data from the block chain, and acquiring the source data from the storage system according to the hash value.
Each data provider stores its own source data in a storage system (e.g., a centralized database or a distributed file system), specifically, stores a hash value of the source data in the form of a key, and stores the source data in the form of a value. And after the data demand side acquires the hash value of the source data from the block chain, determining the data at the value corresponding to the key consistent with the acquired hash value from the storage system as the source data of the target data.
In the data exchange method based on the block chain provided in this embodiment, a data provider chains a data directory in advance, and a data demander determines a target block chain identifier corresponding to target data from the block chain, generates an order master contract according to the target block chain identifier, and acquires source data of the target data by triggering execution of the order master contract. The whole process is executed on the block chain in the form of executing contracts, and the whole executing process is transparent and unchangeable, so that the accuracy of payment settlement after data exchange is ensured.
In an implementation manner, referring to fig. 3, fig. 3 is a schematic flowchart of a method for generating a data exchange order according to the target blockchain identifier according to an embodiment of the present invention, where the method includes:
s301: acquiring data description information corresponding to the target block chain identifier;
s302: determining the address of a data provider and the price of the target data according to the data description information;
s303: and generating a data exchange order containing the address of the data provider, the price of the target data, the address of the data demander and the number of times of data purchase.
In one embodiment, after obtaining the hash value of the source data from the blockchain and obtaining the source data from the storage system according to the hash value, the method further includes:
calculating a hash value of source data of the obtained target data;
judging whether the calculated hash value is consistent with the obtained hash value;
and if so, determining that the acquired source data is error-free.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data exchange device based on a block chain according to an embodiment of the present invention, the device is applied to a data demander, and the device includes:
a determining unit 40, configured to determine, from the blockchain, a target blockchain identifier corresponding to the target data;
an order generating unit 41, configured to generate a data exchange order according to the target block chain identifier;
the contract signing unit 42 is used for calling order management contracts and data contracts from the block chain to create order main contracts according to the data exchange orders;
a contract issuing unit 43, configured to issue the order master contract onto the blockchain so that the data provider corresponding to the target blockchain identifier signs the order master contract;
a contract triggering unit 44, configured to trigger the order master contract to start executing, so that the data provider uploads source data of the target data to a storage system, and issues a hash value of the source data onto a blockchain;
and a data obtaining unit 45, configured to obtain a hash value of the source data from the block chain, and obtain the source data from the storage system according to the hash value.
Optionally, the determining unit is specifically configured to:
and determining a block chain identifier corresponding to a data directory with data description information consistent with the data description information of the target data from the data directory issued on the block chain as the target block chain identifier.
Optionally, the order generating unit is specifically configured to:
acquiring data description information corresponding to the target block chain identifier;
determining the address of a data provider and the price of the target data according to the data description information;
and generating a data exchange order containing the address of the data provider, the price of the target data, the address of the data demander and the number of times of data purchase.
Optionally, the contract signing unit is specifically configured to:
and after determining that the state of the order main contract is the executable state, the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain.
Optionally, the apparatus further comprises:
the data checking unit is used for acquiring the hash value of the source data from the block chain, and calculating the hash value of the source data of the acquired target data after acquiring the source data from the storage system according to the hash value; judging whether the calculated hash value is consistent with the obtained hash value; and if so, determining that the acquired source data is error-free.
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 exchange device based on the block chain comprises a processor and a memory, wherein the determining unit, the order generating unit, the contract signing unit, the contract issuing unit, the contract triggering unit, the data 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 one or more by adjusting 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 exchange method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the block chain-based data exchange method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
a data exchange method based on a block chain is applied to a data demander, and the method comprises the following steps:
determining a target block chain identifier corresponding to target data from a block chain;
generating a data exchange order according to the target block chain identifier;
calling order management contracts and data contracts from the block chain, and creating order main contracts according to the data exchange orders;
issuing the order master contract to a block chain so that a data provider corresponding to the target block chain identifier signs the order master contract;
triggering the order master contract to start execution, so that the data provider uploads source data of the target data to a storage system, and issues a hash value of the source data to a block chain;
and acquiring the hash value of the source data from the block chain, and acquiring the source data from the storage system according to the hash value.
Optionally, the determining, from the blockchain, a target blockchain identifier corresponding to the target data includes:
and determining a block chain identifier corresponding to a data directory with data description information consistent with the data description information of the target data from the data directory issued on the block chain as the target block chain identifier.
Optionally, the generating a data exchange order according to the target block chain identifier includes:
acquiring data description information corresponding to the target block chain identifier;
determining the address of a data provider and the price of the target data according to the data description information;
and generating a data exchange order containing the address of the data provider, the price of the target data, the address of the data demander and the number of times of data purchase.
Optionally, the step of calling the order management contract and the data contract from the blockchain to create an order master contract according to the data exchange order includes:
and after determining that the state of the order main contract is the executable state, the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain.
Optionally, after obtaining the hash value of the source data from the blockchain and obtaining the source data from the storage system according to the hash value, the method further includes:
calculating a hash value of source data of the obtained target data;
judging whether the calculated hash value is consistent with the obtained hash value;
and if so, determining that the acquired source data is error-free.
The 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 exchange method based on a block chain is applied to a data demander, and the method comprises the following steps:
determining a target block chain identifier corresponding to target data from a block chain;
generating a data exchange order according to the target block chain identifier;
calling order management contracts and data contracts from the block chain, and creating order main contracts according to the data exchange orders;
issuing the order master contract to a block chain so that a data provider corresponding to the target block chain identifier signs the order master contract;
triggering the order master contract to start execution, so that the data provider uploads source data of the target data to a storage system, and issues a hash value of the source data to a block chain;
and acquiring the hash value of the source data from the block chain, and acquiring the source data from the storage system according to the hash value.
Optionally, the determining, from the blockchain, a target blockchain identifier corresponding to the target data includes:
and determining a block chain identifier corresponding to a data directory with data description information consistent with the data description information of the target data from the data directory issued on the block chain as the target block chain identifier.
Optionally, the generating a data exchange order according to the target block chain identifier includes:
acquiring data description information corresponding to the target block chain identifier;
determining the address of a data provider and the price of the target data according to the data description information;
and generating a data exchange order containing the address of the data provider, the price of the target data, the address of the data demander and the number of times of data purchase.
Optionally, the step of calling the order management contract and the data contract from the blockchain to create an order master contract according to the data exchange order includes:
and after determining that the state of the order main contract is the executable state, the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain.
Optionally, after obtaining the hash value of the source data from the blockchain and obtaining the source data from the storage system according to the hash value, the method further includes:
calculating a hash value of source data of the obtained target data;
judging whether the calculated hash value is consistent with the obtained hash value;
and if so, determining that the acquired source data is error-free.
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 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 exchange method based on a block chain is applied to a data demand side, and the method comprises the following steps:
determining a target block chain identifier corresponding to target data from a block chain;
generating a data exchange order according to the target block chain identifier;
calling order management contracts and data contracts from the block chain, and creating order main contracts according to the data exchange orders;
issuing the order master contract to a block chain so that a data provider corresponding to the target block chain identifier signs the order master contract;
triggering the order master contract to start execution, so that the data provider uploads source data of the target data to a storage system, and issues a hash value of the source data to a block chain;
and acquiring the hash value of the source data from the block chain, and acquiring the source data from the storage system according to the hash value.
2. The method of claim 1, wherein the determining a target blockchain identifier corresponding to the target data from the blockchain comprises:
and determining a block chain identifier corresponding to a data directory with data description information consistent with the data description information of the target data from the data directory issued on the block chain as the target block chain identifier.
3. The method of claim 2, wherein generating a data exchange order according to the target blockchain identification comprises:
acquiring data description information corresponding to the target block chain identifier;
determining the address of a data provider and the price of the target data according to the data description information;
and generating a data exchange order containing the address of the data provider, the price of the target data, the address of the data demander and the number of times of data purchase.
4. The method of claim 3, wherein invoking order management contracts from a blockchain and data contracts creates order master contracts from the data exchange orders, comprising:
and after determining that the state of the order main contract is the executable state, the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain.
5. The method of claim 1, wherein after obtaining the hash value of the source data from the blockchain and obtaining the source data from the storage system according to the hash value, the method further comprises:
calculating a hash value of the obtained source data;
judging whether the calculated hash value is consistent with the obtained hash value;
and if so, determining that the acquired source data is error-free.
6. A block chain-based data exchange device, applied to a data demander, the device comprising:
the determining unit is used for determining a target block chain identifier corresponding to the target data from the block chain;
the order generating unit is used for generating a data exchange order according to the target block chain identifier;
the contract signing unit is used for calling order management contracts and data contracts from the block chain and establishing order main contracts according to the data exchange orders;
the contract issuing unit is used for issuing the order master contract to a block chain so that a data provider corresponding to the target block chain identifier signs the order master contract;
the contract triggering unit is used for triggering the order master contract to start execution so that the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain;
and the data acquisition unit is used for acquiring the hash value of the source data from the block chain and acquiring the source data from the storage system according to the hash value.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to:
and determining a block chain identifier corresponding to a data directory with data description information consistent with the data description information of the target data from the data directory issued on the block chain as the target block chain identifier.
8. The apparatus according to claim 7, wherein the order generation unit is specifically configured to:
acquiring data description information corresponding to the target block chain identifier;
determining the address of a data provider and the price of the target data according to the data description information;
and generating a data exchange order containing the address of the data provider, the price of the target data, the address of the data demander and the number of times of data purchase.
9. The apparatus of claim 8, wherein the contract signing unit is specifically configured to:
and after determining that the state of the order main contract is the executable state, the data provider uploads the source data of the target data to a storage system and issues a hash value of the source data to a block chain.
10. The apparatus of claim 6, further comprising:
the data checking unit is used for acquiring the hash value of the source data from the block chain, and calculating the hash value of the source data of the acquired target data after acquiring the source data from the storage system according to the hash value; judging whether the calculated hash value is consistent with the obtained hash value; and if so, determining that the acquired source data is error-free.
CN201811376370.XA 2018-11-19 2018-11-19 Data exchange method and device based on block chain Pending CN111198846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811376370.XA CN111198846A (en) 2018-11-19 2018-11-19 Data exchange method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811376370.XA CN111198846A (en) 2018-11-19 2018-11-19 Data exchange method and device based on block chain

Publications (1)

Publication Number Publication Date
CN111198846A true CN111198846A (en) 2020-05-26

Family

ID=70743842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811376370.XA Pending CN111198846A (en) 2018-11-19 2018-11-19 Data exchange method and device based on block chain

Country Status (1)

Country Link
CN (1) CN111198846A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112398909A (en) * 2020-10-20 2021-02-23 深圳智乾区块链科技有限公司 Data exchange method, device, equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391944A (en) * 2017-07-27 2017-11-24 北京太云科技有限公司 A kind of electronic health record shared system based on block chain
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN107480475A (en) * 2017-07-21 2017-12-15 广州智慧城市发展研究院 A kind of resource share method and system based on block chain network
CN107947940A (en) * 2017-11-29 2018-04-20 树根互联技术有限公司 A kind of method and device of data exchange
CN108063752A (en) * 2017-11-02 2018-05-22 暨南大学 A kind of credible genetic test and data sharing method based on block chain and proxy re-encryption technology
CN108062671A (en) * 2017-11-03 2018-05-22 深圳市轱辘车联数据技术有限公司 Data trade method, block chain node server and data submit terminal
CN108390891A (en) * 2018-03-28 2018-08-10 电子科技大学天府协同创新中心 Information protecting method based on privately owned block chain
CN108647951A (en) * 2018-03-28 2018-10-12 深圳市网心科技有限公司 Digital information method of commerce, system, device and storage device based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480475A (en) * 2017-07-21 2017-12-15 广州智慧城市发展研究院 A kind of resource share method and system based on block chain network
CN107391944A (en) * 2017-07-27 2017-11-24 北京太云科技有限公司 A kind of electronic health record shared system based on block chain
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN108063752A (en) * 2017-11-02 2018-05-22 暨南大学 A kind of credible genetic test and data sharing method based on block chain and proxy re-encryption technology
CN108062671A (en) * 2017-11-03 2018-05-22 深圳市轱辘车联数据技术有限公司 Data trade method, block chain node server and data submit terminal
CN107947940A (en) * 2017-11-29 2018-04-20 树根互联技术有限公司 A kind of method and device of data exchange
CN108390891A (en) * 2018-03-28 2018-08-10 电子科技大学天府协同创新中心 Information protecting method based on privately owned block chain
CN108647951A (en) * 2018-03-28 2018-10-12 深圳市网心科技有限公司 Digital information method of commerce, system, device and storage device based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李亿豪: "区块链+ 区块链重建新世界", 中国商业出版社, pages: 128 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112398909A (en) * 2020-10-20 2021-02-23 深圳智乾区块链科技有限公司 Data exchange method, device, equipment and computer readable storage medium
CN112398909B (en) * 2020-10-20 2023-06-27 深圳智乾区块链科技有限公司 Data exchange method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108985742B (en) Transaction processing method and device and block chain system
CN111782668B (en) Data structure reading and updating method and device and electronic equipment
CN111079101B (en) Method and device for obtaining evidence of infringement based on block chain, electronic equipment and storage medium
CN110083629B (en) Event subscription method and device based on blockchain
CN107832275A (en) The generation method of intelligent Contract ID, apparatus and system in block chain
CN111125784A (en) Artificial intelligence training model method, device and medium based on block chain
CN111737311A (en) Donation material distribution method, device and medium based on block chain
CN110032568B (en) Data structure reading and updating method and device, and electronic equipment
CN110020945B (en) Data reading method and system based on multiple block chain networks
CN111899008A (en) Resource transfer method, device, equipment and system
CN110930578A (en) Voting method, equipment and medium based on block chain
CN108874379B (en) Page processing method and device
CN111930497A (en) Resource allocation method, device and medium based on block chain and static code
CN112035504B (en) Block chain-based item code generation method, and item weight transfer method and device
CN109033365B (en) Data processing method and related equipment
CN109977317B (en) Data query method and device
CN111008404A (en) Service call auditing method, equipment and medium based on block chain
CN111104463A (en) Block chain-based carbon emission management method, equipment and medium
CN111198846A (en) Data exchange method and device based on block chain
CN111639998A (en) Method, device and medium for guaranteeing user deposit rights and interests based on block chain
CN114491662B (en) Block chain-based data asset auditing method, system and equipment
CN111177093A (en) Method, device and medium for sharing scientific and technological resources
CN111131474A (en) Method, device and medium for managing user protocol based on block chain
CN110019357B (en) Database query script generation method and device
CN115470264A (en) Data auditing method and device, electronic equipment and storage medium

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