CN108876383A - A kind of data trade method, device and equipment based on block chain - Google Patents
A kind of data trade method, device and equipment based on block chain Download PDFInfo
- Publication number
- CN108876383A CN108876383A CN201810981810.8A CN201810981810A CN108876383A CN 108876383 A CN108876383 A CN 108876383A CN 201810981810 A CN201810981810 A CN 201810981810A CN 108876383 A CN108876383 A CN 108876383A
- Authority
- CN
- China
- Prior art keywords
- data
- transaction
- block chain
- processing code
- storage network
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
Abstract
This application discloses a kind of data trade method, device and equipments based on block chain, are included in after getting transaction request, and target user data and data processing code are obtained from data storage network;Wherein, data corresponding with transaction request in the user data that target user data is generated in using service process for the user of server-side acquisition;Data processing code is the code that data purchaser generates according to data description table and actual demand;Target user data is filtered using data processing code, obtains transaction data;Transaction data is uploaded to data storage network, and extraction index corresponding with transaction data is stored into block chain, extracts index so that data purchaser obtains after executing intelligent contract and paying purchase cost, and obtain transaction data using index is extracted;On the one hand the safety of user data has been ensured;On the other hand the cost performance of the purchase cost of data purchaser is improved.
Description
Technical field
The present invention relates to data trade field, in particular to a kind of data trade method, apparatus based on block chain and set
It is standby.
Background technique
Under big data era, data suffer from immeasurable value, therefore data trade for personal or enterprise
It comes into being.
Data trade method in the prior art be carried out based on block chain, but due to user use service process
It is unit storage into data storage network that the user data of middle generation, which is according to data class, therefore in the prior art
It is the progress data trade as unit of data class during data trade.That is, when data purchaser initiates purchase
When the transaction request of user data A, finally obtain be all customer data in data class where user data A namely
Target user data.So, user on the one hand can be made to leak a large amount of user data, the safety of user data is caused
It seriously threatens;On the other hand make data purchaser buy a large amount of non-demand data, aggravate the cost of purchase data significantly.
Therefore, how a kind of data trade method based on block chain is provided, can ensure the safety of user data, and
The cost performance for improving the purchase cost of data purchaser, is a technical problem that technical personnel in the field need to solve at present.
Summary of the invention
In view of this, can ensure use the purpose of the present invention is to provide a kind of data trade method based on block chain
The safety of user data, and improve the cost performance of the purchase cost of data purchaser;It is a further object of the present invention to provide one kind
Data trade device and equipment based on block chain, all have above-mentioned beneficial effect.
In order to solve the above technical problems, the present invention provides a kind of data trade method based on block chain, including:
After getting transaction request, target user data and data processing code are obtained from data storage network;Its
In, the target user data be in the user data that is generated in using service process of user of server-side acquisition with the friendship
Easily request corresponding data;The data processing code is the generation that data purchaser generates according to data description table and actual demand
Code;
The target user data is filtered using the data processing code, obtains transaction data;
The transaction data is uploaded to the data storage network, and will extraction index corresponding with the transaction data
It stores into block chain, so that the data purchaser obtains the extraction rope after executing intelligent contract and paying purchase cost
Draw, and obtains the transaction data using extraction index.
Preferably, the mode for generating the transaction request is specially:
The data purchaser searches corresponding target data type in the data description table according to actual needs;Its
In, the data description table is previously according to intelligent contract setting corresponding with the server-side;
The data purchaser obtains corresponding intelligent contract address using the target data type and calls corresponding
Intelligent contract initiates the transaction request to the block chain using the intelligent contract and the data processing code.
Preferably, the target user data is filtered using the data processing code described, is traded
After data, further comprise:
Judge whether the transaction data is the data for being filtered operation according to the data processing code and obtaining;
If so, the transaction data is uploaded to the data storage network into described, and will be with the number of deals
It stores according to corresponding extraction index into block chain, so that the data purchaser is after executing intelligent contract payment purchase cost
Obtain the extraction index, and the step of obtaining the transaction data using extraction index.
Preferably, described before obtaining target user data and data processing code in data storage network, into one
Step includes:
Judge whether the transaction request meets preset condition;
If so, entering described the step of obtaining target user data and data processing code from data storage network.
Preferably, further comprise:
Using asymmetric encryption techniques to the user data and/or the transaction data and/or it is described extraction index into
Row encryption.
Preferably, further comprise:
Trading situation is recorded to the block chain.
In order to solve the above technical problems, the present invention also provides a kind of data trade methods based on block chain, including:
Data processing code and transaction request are generated according to actual needs, and the transaction request is sent to block chain,
So that server-side obtains target user's number corresponding with the transaction request according to the transaction request from data storage network
According to the data processing code, and the transaction data of generation is stored to the data storage network;
After detecting that the server-side responds the transaction request, executes intelligent contract and pay purchase cost, to obtain
Extraction is taken to index;
The transaction data is obtained from the data storage network according to extraction index.
In order to solve the above technical problems, the present invention also provides a kind of data trade devices based on block chain, including:
First obtains module, for obtaining target user data from data storage network after getting transaction request
And data processing code;Wherein, the target user data is that the user of server-side acquisition is generated in using service process
Data corresponding with the transaction request in user data;The data processing code is data purchaser according to data description table
The code generated with actual demand;
Data processing module is obtained for being filtered using the data processing code to the target user data
Transaction data;
Second obtains module, for the transaction data to be uploaded to the data storage network, and will be with the transaction
The corresponding extraction index of data is stored into block chain, so that the data purchaser is executing intelligent contract and paying purchase generation
The extraction index is obtained after valence, and obtains the transaction data using extraction index.
In order to solve the above technical problems, the present invention also provides a kind of data trade devices based on block chain, including:
Sending module, for generating data processing code and transaction request according to actual needs, and by the transaction request
Be sent to block chain, so as to server-side obtained from data storage network according to the transaction request it is corresponding with the transaction request
Target user data and the data processing code, and the transaction data of generation is stored to the data storage network;
Third obtains module, for executing intelligent contract simultaneously after detecting that the server-side responds the transaction request
Payment purchase cost, extracts index to obtain;
4th obtains module, for obtaining the number of deals from the data storage network according to extraction index
According to.
In order to solve the above technical problems, the present invention also provides a kind of equipment for data exchanging based on block chain, including:
Memory, for storing computer program;
Processor realizes any of the above-described kind of data trade method based on block chain when for executing the computer program
The step of.
A kind of data trade method based on block chain provided by the invention, compared to the prior art in utilize target user
The method that data are traded, the present invention obtain target user data after getting transaction request from data storage network
And data processing code, by the data processing code that is generated according to actual needs using data purchaser to target user data
It is filtered to obtain transaction data, and carries out data trade using transaction data, so that user need to only send transaction data, simultaneously
So that data purchaser only obtains transaction data and the corresponding purchase cost of payment transaction data, user data is on the one hand avoided
Leakage, ensured the safety of user data;On the other hand reduce the user data of the non-demand of data purchaser purchase,
The user data for improving demand accounts for ratio in the user data of actual purchase, to improve the cost performance of purchase cost.
In order to solve the above technical problems, the present invention also provides a kind of data trade device and equipment based on block chain,
All have above-mentioned beneficial effect.
Detailed description of the invention
It in order to illustrate the embodiments of the present invention more clearly or the technical solution of the prior art, below will be to embodiment or existing
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to the attached drawing of offer.
Fig. 1 is a kind of flow chart of the data trade method based on block chain provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another data trade method based on block chain provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of the data trade device based on block chain provided in an embodiment of the present invention;
Fig. 4 is the structure chart of another data trade device based on block chain provided in an embodiment of the present invention;
Fig. 5 is a kind of structure chart of the equipment for data exchanging based on block chain provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The core of the embodiment of the present invention is to provide a kind of data trade method based on block chain, can ensure user data
Safety, and improve the cost performance of the purchase cost of data purchaser;Another core of the invention is to provide a kind of based on area
The data trade device and equipment of block chain, all have above-mentioned beneficial effect.
It is right with reference to the accompanying drawings and detailed description in order to make those skilled in the art more fully understand the present invention program
The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the data trade method based on block chain provided in an embodiment of the present invention.Such as Fig. 1 institute
Show, a kind of data trade method based on block chain includes:
S11:After getting transaction request, target user data and data processing generation are obtained from data storage network
Code;
Wherein, target user data be in the user data that is generated in using service process of user of server-side acquisition with
The corresponding data of transaction request;Data processing code is the generation that data purchaser generates according to data description table and actual demand
Code.
It should be noted that data trade method provided in the present embodiment is based on block chain, block chain technology
As a kind of distributed security memory technology of novel decentralization, due to safe and reliable feature, become current hot topic
Research field.Block chain is a shared distributed data base, the database recorded jointly by block chain entirety participant and
Data information is generated block sequentially in time, and forms a kind of linked data structure in such a way that sequence is connected by verifying, benefit
Guarantee that data information can not be distorted and can not be forged with cryptography mode.
In practical applications, user will generate user data during using service, provide the server-side of the service
User data is classified according to pre-set classifying rules, and is stored in server-side or to be stored in server-side corresponding
Local repository;It is uploaded to data storage network according still further to predetermined period, and receives data storage network according to the user of upload
Data return to corresponding data directory.In this course, server-side can be operate in mobile terminal or computer or its
Application program or webpage in his terminal;Classifying rules can be classifies according to data class, naturally it is also possible to according to
Actual conditions classify to user data according to other classifying rules, herein without limitation;User data is first stored in
It is local, data storage network is then uploaded to according to predetermined period, predetermined period is also possible to be configured according to the actual situation,
Predetermined period in the present embodiment is three days.
It should be noted that data storage network is a kind of database of decentralization, information for storing data, this reality
Example is applied to the concrete type of data storage network without limitation.For example, data storage network can be DHT (Distributed
Hash Table, distributed hashtable) storage network, DHT is a kind of distributed storage method, in the feelings for not needing service end-apparatus
Under condition, each client is responsible for a small-scale routing, and is responsible for storage sub-fraction data, to realize that entire DHT is deposited
Store up the addressing and storage of network;Data storage network is also possible to IPFS (InterPlanetary File System, interspace text
Part system), IPFS is one and is intended to create lasting and distributed storage and shared file the network transmission protocol, which is one
The reciprocity hypermedia distribution protocol of kind of content addressable, the storage network obtained based on the technology can also realize and DHT storage net
The identical data storage purpose of network.
Data purchaser searches the corresponding data kind of actual demand according to actual needs, using disclosed data description table
Class, i.e. acquisition target data type, since the data content for including in target data type may include other non-demand numbers
According to, i.e., other users data other than the user data of demand, therefore according to actual needs and in target data type
Data content generates data processing code, and data processing code is for handling target user data, to obtain demand
User data.For example, if data purchaser merely desire to purchase user generated during using some application program with user society
Relevant user data is handed over, then data processing code will then have the function of filtering other users data in addition to this.
Data purchaser uploads to data storage network after generating data processing code, by data processing code, and
Receive the code index that data storage network returns.
Specifically, corresponding data directory and code index are obtained according to transaction request after getting transaction request,
And using data directory and code index from being obtained in data storage network from corresponding target user data and corresponding data
Manage code.
S12:Target user data is filtered using data processing code, obtains transaction data.
Specifically, target user data is put into mesh after getting target user data and data processing code
It is run in mark processing code, to be filtered operation to target user data, obtains transaction data.That is, server-side root
Target user data is carried out further according to the data processing code that data purchaser provides using the mode of edge calculations
Processing, the corresponding transaction data of actual demand to obtain purchaser.It is understood that edge calculations refer to close to object or
The side of data source header, the open platform being integrated using network, calculating, storage, application core ability, provides most proximal end nearby
Service.In the present embodiment, edge calculations are initiated by server-side, faster network service end response is generated, not only to obtain
The mode of transaction data is more efficient, and makes calculating process faster, additionally it is possible to data purchaser be enabled to obtain oneself
The corresponding user data of actual demand, the user data for improving demand accounts for ratio in the user data of actual purchase.
S13:Transaction data is uploaded to data storage network, and extraction index corresponding with transaction data is stored to area
In block chain, so that index is extracted in acquisition to data purchaser after executing intelligent contract payment purchase cost, and indexed using extracting
Obtain transaction data.
It, then will be with specifically, obtained transaction data is uploaded to data storage network after obtaining transaction data
The corresponding extraction index of transaction data is stored into block chain.It is understood that transaction data is being uploaded to number by server-side
When according to storage network, data, which store network, will generate extraction index corresponding with the transaction data, to be indexed according to the extraction
Obtain corresponding transaction data;After receiving extraction index, index will be extracted and stored into block chain.Therefore, data are purchased
After buyer passes through the intelligent contract that execution is set in block chain and pays purchase cost, obtains extraction and index, mentioned to utilize
Index is taken to obtain transaction data from data storage network.
It should be noted that intelligent contract is stored in code on block chain, it can go according to the rule pre-established
Execute specific function.Intelligent contract is used to help user and data purchaser realizes data trade, and guarantees to buy in data
Side can receive the transaction data of purchase, user while paying certain purchase cost and think having sent data purchaser
The purchase cost of data purchaser payment can be received while the transaction data wanted.It should be noted that intelligence can also be passed through
The purchase cost of energy contract setting data trade, what purchase cost referred to is carried out by user, data purchaser and server-side provider
Negotiate the determining corresponding value of the transaction data.It can also further be mentioned by formulating user in intelligent contract with server-side
The data trade of supplier is divided into mode, for example, 70% account for being sent to user in the purchase cost of data purchaser payment,
30% is sent to the account of server-side provider.Intelligent contract can execute during data trade, automate after executing
Handle the point-to-point data trade between user and data purchaser.
A kind of data trade method based on block chain provided in this embodiment, is included in after getting transaction request, from
Target user data and data processing code are obtained in data storage network;Then using data processing code to target user's number
According to being filtered, transaction data is obtained;Transaction data is uploaded to data storage network, and will extraction corresponding with transaction data
Index is stored into block chain, extracts index so that data purchaser obtains after executing intelligent contract and paying purchase cost,
And transaction data is obtained using index is extracted.
The method traded using target user data in compared to the prior art, the present embodiment are asked getting transaction
After asking, target user data and data processing code are obtained from data storage network, by utilizing data purchaser according to reality
The data processing code that border demand generates is filtered target user data to obtain transaction data, and is carried out using transaction data
Data trade so that user need to only send transaction data, while making data purchaser only obtain transaction data and payment transaction
The corresponding purchase cost of data, on the one hand avoids the leakage of user data, has ensured the safety of user data;On the other hand
Reduce the user data of the non-demand of data purchaser purchase, the user data for improving demand accounts for the number of users of actual purchase
Ratio in, to improve the cost performance of purchase cost.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
Generate transaction request mode be specially:
Data purchaser searches corresponding target data type in data description table according to actual needs;Wherein, data
Describing table is previously according to intelligent contract setting corresponding with server-side;
Data purchaser obtains corresponding intelligent contract address using target data type and calls corresponding intelligent contract,
Transaction request is initiated to block chain using intelligent contract and data processing code.
Specifically, corresponding intelligence is arranged before issuing service end, for variant server-side in server-side provider
Contract simultaneously obtains corresponding data description table, and intelligent contract is deployed in block chain.Specifically, data description table includes clothes
Business end ID, intelligent contract address, data class, data description and trading rules.
By taking a mail class is applied as an example, a kind of data description table specific implementation provided, as shown in table 1 below.
1 data description table of table
Wherein, data description table includes servicing ID and the one-to-one intelligence of each intelligent contract correspondingly with server-side
Can contract address, user data data class identifier list【K1, k2, k3 ..., kn】, the number of corresponding each data class
According to description information【D1, d2, d3 ..., dn】With data trading rules【R1, r2, r3 ..., rn】, can also set in data description table
Set call method.Wherein, since the object of transaction is user data, according to the difference of user, the difference of data type, number
Period difference according to generation etc. mode is a variety of more come the form of expression for setting data trade rule namely data trade rule
Sample herein and is not specifically limited, and visual concrete condition is flexibly formulated.
When data purchaser is there are when purchasing demand, corresponding number of targets is searched in data description table according to actual needs
It is arranged according to type, i.e. target data type by describing to be compared with actual demand using the data in target data type
Corresponding data processing code, and obtain corresponding intelligent contract address using target data type and corresponding intelligence is called to close
About, to initiate transaction request to block chain using intelligent contract and data processing code.In specific implementation, it can also be number
It is uploaded to data storage network according to processing code and obtains corresponding code index, using intelligent contract and code index to block
Chain initiates transaction request.
For example, initiating transaction for contract address 0xe7152a0b8a2dab250b829a645ab81;Transaction-based requirements are:
Buying data class is email, and trading rules are【During 1000 email record】, purchase
Buying cost is 10 tokens.
It should be noted that in practical applications, when the actual demand of data purchaser is a large amount of number of users of various dimensions
According to when, then can in advance for variant service or generating corresponding data processing code respectively according to each actual demand, and
It is uploaded to data storage network, data processing code is sent to avoid multiple, so that operation is more convenient.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
Target user data is being filtered using data processing code, after obtaining transaction data, is further comprising:
Judge whether transaction data is the data for being filtered operation according to data processing code and obtaining;
If so, being uploaded to data storage network by transaction data, and will extraction index corresponding with transaction data
It stores into block chain, extracts index so that data purchaser obtains after executing intelligent contract payment purchase cost, and utilize
Extract the step of index obtains transaction data.
Specifically, the content by checking transaction data, with judge transaction data whether be according to data processing code into
The data that row filter operation obtains include judging whether the transaction data is data by filtering, and judge the transaction data
It whether is the data being filtered by corresponding data processing code.That is, whether judging the transaction data got
Reach the standard of sale, if the transaction data is the data being filtered by corresponding data processing code, then it represents that the friendship
Easy data meet the standard sold, therefore the transaction data is uploaded to data storage network.Otherwise, the transaction data is indicated not
Meet the standard sold, then will cancel this process of exchange, namely terminate current process.
As it can be seen that by judging whether transaction data is the data for being filtered operation according to data processing code and obtaining, it can
Further to ensure the reliability of data trade.
It should be noted that the transaction request can be broadcasted by block chain again after terminating current process, with
Just each node namely each server-side data trade process on block chain is notified to cancel, other nodes still can choose
The transaction request is responded, the liveness of data trade is improved.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
Before obtaining target user data and data processing code in data storage network, further comprise:
Judge whether transaction request meets preset condition;
If so, into the step of obtaining target user data and data processing code from data storage network.
It should be noted that judging whether the transaction request meets preset condition when getting transaction request, specifically
, judge the transaction request want purchase data type whether be data generation side preset data type, such as privacy number
According to therefore, terminating the process if so, indicating that the transaction request is unsatisfactory for preset condition;Alternatively, further judging the transaction
Whether request is to be generated according to the actual demand of data purchaser, if so, into target is obtained from data storage network
Otherwise the step of user data and data processing code, then terminates current process.
As it can be seen that by judge whether transaction request meets preset condition, the safety of user data and effective can be improved
Property.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
The present embodiment further comprises:
Trading situation is recorded to block chain.
Specifically, the common recognition algorithm using block chain records trading situation to block chain, trading situation can be including
User information, service client information, data purchaser information and purchase cost etc., the present embodiment does not limit this.It needs
Bright, common recognition algorithm is that the mathematical algorithm established between different nodes and trust, obtain equity is realized in block chain, is only passed through
Know together the verifying of algorithm, the data block of generation can just be added in block chain, and in block chain all block chain networks section
Point is all responsible for safeguarding the database, not only makes data trade situation more open and clear, but also further ensure user data
Safety.
During data trade, in order to improve the data safety and fund security of data trade, in above-described embodiment
On the basis of, the present embodiment has made further instruction and optimization to technical solution, specifically, to user data and/or number of deals
According to and/or extract index be encrypted.
It is understood that encryption technology includes each asymmetric encryption techniques of symmetric cryptosystem, in the present embodiment preferably
Ground is encrypted user data and/or transaction data and/or extraction index using asymmetric encryption techniques.
In the present embodiment, user data is encrypted using asymmetric encryption techniques, it is to be understood that non-
In symmetric cryptosystem, it is equipped with a pair of of public key and private key, if encrypted with public key to data, only just with corresponding private key
It can decryption;If encrypted with private key to data, could only be decrypted with corresponding public key.Below in conjunction with data trade
Asymmetric encryption techniques are specifically described in process.
For user after generating user data using server-side, server-side encrypts every a kind of user data, and passes
Transport to data storage network.Encrypted specifically, can be using the every a kind of user data of identical key pair, namely to
Be in the key encrypted to user data it is identical, as preferred embodiment, be also possible to a kind of number of users
After being encrypted, next key is randomly generated, is encrypted for the user data to next type, therefore in response data
When the transaction request of purchaser, from data storage network obtain target user data, and using public key to target user data into
Row decryption.It is understood that if the key used in encryption is different, then it is corresponding in decryption, for decrypting
Public key it is also different.
Data purchaser carries the public key of itself in the transaction request of initiation, when server-side requests to obtain in response transaction
After transaction data, a pair of new encryption key is generated, transaction data is added using the new public key in new encryption key
It is close and be uploaded to data storage network;New private key and extraction index encrypt concurrent by the public key sent using data purchaser
It is sent in block chain, to execute intelligent contract.After data purchaser executes intelligent contract and pays purchase cost, using certainly
New private key and extraction index after the private key pair encryption of body are decrypted, to obtain new private key and extract index, therefore, data
Purchaser is obtained from data storage network using the transaction data after new public key encryption using data directory, and utilizes new private key
Transaction data by new public key encryption is decrypted, original transaction data is obtained, to complete data trade.
As it can be seen that encrypting by using asymmetric encryption techniques to process of exchange, transaction data can be further ensured
With the safety of fund.
Fig. 2 is the flow chart of another data trade method based on block chain provided in an embodiment of the present invention.Such as Fig. 2 institute
Show, this method includes:
S21:Data processing code and transaction request are generated according to actual needs, and transaction request is sent to block chain,
So that server-side obtains target user data corresponding with transaction request and data according to transaction request from data storage network
Code is handled, and the transaction data of generation is stored to data storage network.
S22:After detecting the request of server-side response transaction, executes intelligent contract and pay purchase cost, mentioned with obtaining
Take index.
S23:Transaction data is obtained from data storage network according to index is extracted.
A kind of data trade method based on block chain provided in this embodiment, including generate at data according to actual needs
Code and transaction request are managed, and transaction request is sent to block chain, so that server-side stores net from data according to transaction request
Target user data corresponding with transaction request and data processing code are obtained in network, and the transaction data of generation is stored to number
According to storage network;After detecting the request of server-side response transaction, executes intelligent contract and pay purchase cost, extracted with obtaining
Index;Then transaction data is obtained from data storage network according to extraction index.
The method traded using target user data in compared to the prior art, the present embodiment are asked getting transaction
After asking, target user data and data processing code are obtained from data storage network, by utilizing data purchaser according to reality
The data processing code that border demand generates is filtered target user data to obtain transaction data, and is carried out using transaction data
Data trade so that user need to only send transaction data, while making data purchaser only obtain transaction data and payment transaction
The corresponding purchase cost of data, on the one hand avoids the leakage of user data, has ensured the safety of user data;On the other hand
Reduce the user data of the non-demand of data purchaser purchase, the user data for improving demand accounts for the number of users of actual purchase
Ratio in, to improve the cost performance of purchase cost.
A kind of embodiment of the data trade method based on block chain provided by the invention is carried out above detailed
Description, the present invention also provides a kind of a kind of data trade device and equipment based on block chain corresponding with this method, due to
The embodiment of device and environment division and the embodiment of method part mutually correlate, therefore the embodiment of device and environment division is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
Fig. 3 is a kind of structure chart of the data trade device based on block chain provided in an embodiment of the present invention, such as Fig. 3 institute
Show, a kind of data trade device based on block chain includes:
First obtains module 31, for obtaining target user's number from data storage network after getting transaction request
According to and data processing code;Wherein, the use that target user data is generated in using service process for the user of server-side acquisition
Data corresponding with transaction request in user data;Data processing code is data purchaser according to data description table and actual demand
The code of generation;
Data processing module 32 obtains number of deals for being filtered using data processing code to target user data
According to;
Second obtains module 33, for transaction data to be uploaded to data storage network, and will be corresponding with transaction data
It extracts index to store into block chain, extracts rope so that data purchaser obtains after executing intelligent contract and paying purchase cost
Draw, and obtain transaction data using index is extracted.
A kind of data trade device based on block chain provided in an embodiment of the present invention has the above-mentioned number based on block chain
According to the beneficial effect of method of commerce.
Fig. 4 is the structure chart of another data trade device based on block chain provided in an embodiment of the present invention, such as Fig. 4 institute
Show, which includes:
Sending module 41 for generating data processing code and transaction request according to actual needs, and transaction request is sent out
Block chain is given, so that server-side obtains target user corresponding with transaction request according to transaction request from data storage network
Data and data processing code, and the transaction data of generation is stored to data storage network;
Third obtains module 42, for after detecting the request of server-side response transaction, executing intelligent contract and paying purchase
Cost is bought, extracts index to obtain;
4th obtains module 43, for obtaining transaction data from data storage network according to extraction index.
A kind of data trade device based on block chain provided in an embodiment of the present invention has the above-mentioned number based on block chain
According to the beneficial effect of method of commerce.
Fig. 5 is a kind of structure chart of the equipment for data exchanging based on block chain provided in an embodiment of the present invention, such as Fig. 5 institute
Show, the equipment for data exchanging based on block chain includes:
Memory 51, for storing computer program;
Processor 52 realizes the step such as the above-mentioned data trade method based on block chain when for executing computer program
Suddenly.
Equipment for data exchanging provided in an embodiment of the present invention based on block chain is handed over the above-mentioned data based on block chain
The beneficial effect of easy method.
Detailed Jie has been carried out to the data trade method, device and equipment provided by the present invention based on block chain above
It continues.Principle and implementation of the present invention are described for specific embodiment used herein, the explanation of above embodiments
It is merely used to help understand method and its core concept of the invention.It should be pointed out that for the ordinary skill people of the art
Member for, without departing from the principle of the present invention, can with several improvements and modifications are made to the present invention, these improve and
Modification is also fallen within the protection scope of the claims of the present invention.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
Claims (10)
1. a kind of data trade method based on block chain, which is characterized in that including:
After getting transaction request, target user data and data processing code are obtained from data storage network;Wherein, institute
It states and is asked in the user data that the user that target user data is server-side acquisition is generated in using service process with the transaction
Seek corresponding data;The data processing code is the code that data purchaser generates according to data description table and actual demand;
The target user data is filtered using the data processing code, obtains transaction data;
The transaction data is uploaded to the data storage network, and will extraction index storage corresponding with the transaction data
Into block chain, so that the data purchaser obtains the extraction index after executing intelligent contract and paying purchase cost,
And the transaction data is obtained using extraction index.
2. the method according to claim 1, wherein the mode for generating the transaction request is specially:
The data purchaser searches corresponding target data type in the data description table according to actual needs;Wherein,
The data description table is previously according to intelligent contract setting corresponding with the server-side;
The data purchaser obtains corresponding intelligent contract address using the target data type and calls corresponding intelligence
Contract initiates the transaction request to the block chain using the intelligent contract and the data processing code.
3. the method according to claim 1, wherein utilizing the data processing code to the target described
User data is filtered, and after obtaining transaction data, further comprises:
Judge whether the transaction data is the data for being filtered operation according to the data processing code and obtaining;
If so, the transaction data is uploaded to the data storage network into described, and will be with the transaction data pair
The extraction index answered is stored into block chain, so that the data purchaser obtains after executing intelligent contract payment purchase cost
The extraction index, and the step of obtaining the transaction data using extraction index.
4. the method according to claim 1, wherein obtaining target user's number from data storage network described
According to before data processing code, further comprise:
Judge whether the transaction request meets preset condition;
If so, entering described the step of obtaining target user data and data processing code from data storage network.
5. method according to any one of claims 1 to 4, which is characterized in that further comprise:
The user data and/or the transaction data and/or extraction index are added using asymmetric encryption techniques
Close processing.
6. the method according to claim 1, wherein further comprising:
Trading situation is recorded to the block chain.
7. a kind of data trade method based on block chain, which is characterized in that including:
Data processing code and transaction request are generated according to actual needs, and the transaction request is sent to block chain, so as to
Server-side obtained from data storage network according to the transaction request target user data corresponding with the transaction request and
The data processing code, and the transaction data of generation is stored to the data storage network;
After detecting that the server-side responds the transaction request, executes intelligent contract and pay purchase cost, mentioned with obtaining
Take index;
The transaction data is obtained from the data storage network according to extraction index.
8. a kind of data trade device based on block chain, which is characterized in that including:
First obtains module, for obtaining target user data sum number from data storage network after getting transaction request
According to processing code;Wherein, the user that the target user data is generated in using service process for the user of server-side acquisition
Data corresponding with the transaction request in data;The data processing code is data purchaser according to data description table and reality
The code that border demand generates;
Data processing module is traded for being filtered using the data processing code to the target user data
Data;
Second obtains module, for the transaction data to be uploaded to the data storage network, and will be with the transaction data
Corresponding extraction index is stored into block chain, so that the data purchaser is after executing intelligent contract and paying purchase cost
The extraction index is obtained, and obtains the transaction data using extraction index.
9. a kind of data trade device based on block chain, which is characterized in that including:
Sending module for generating data processing code and transaction request according to actual needs, and the transaction request is sent
Block chain is given, so that server-side obtains mesh corresponding with the transaction request according to the transaction request from data storage network
User data and the data processing code are marked, and the transaction data of generation is stored to the data storage network;
Third obtains module, for after detecting that the server-side responds the transaction request, executing intelligent contract and paying
Cost is bought, extracts index to obtain;
4th obtains module, for obtaining the transaction data from the data storage network according to extraction index.
10. a kind of equipment for data exchanging based on block chain, which is characterized in that including:
Memory, for storing computer program;
Processor is realized as described in any one of claim 1 to 7 based on block chain when for executing the computer program
The step of data trade method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810981810.8A CN108876383A (en) | 2018-08-27 | 2018-08-27 | A kind of data trade method, device and equipment based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810981810.8A CN108876383A (en) | 2018-08-27 | 2018-08-27 | A kind of data trade method, device and equipment based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108876383A true CN108876383A (en) | 2018-11-23 |
Family
ID=64321926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810981810.8A Pending CN108876383A (en) | 2018-08-27 | 2018-08-27 | A kind of data trade method, device and equipment based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108876383A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587132A (en) * | 2018-11-29 | 2019-04-05 | 苏宁易购集团股份有限公司 | A kind of data transferring method and device based on alliance's chain |
CN109636610A (en) * | 2019-02-01 | 2019-04-16 | 中国科学院合肥物质科学研究院 | A kind of data transacting system and method for decentralization |
CN110149372A (en) * | 2019-04-24 | 2019-08-20 | 深圳市元征科技股份有限公司 | A kind of collecting method and block chain node device |
CN110210976A (en) * | 2019-06-11 | 2019-09-06 | 北京艾摩瑞策科技有限公司 | A kind of method of commerce and its equipment based on block chain |
CN110223053A (en) * | 2019-06-11 | 2019-09-10 | 北京艾摩瑞策科技有限公司 | A kind of data trade method and its equipment |
CN110378143A (en) * | 2019-04-26 | 2019-10-25 | 杭州数焓科技有限公司 | A kind of EHR based on block chain can search for encryption method |
CN110457918A (en) * | 2019-01-09 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Filter out method, apparatus, node and the medium of illegal contents in block chain data |
CN111104386A (en) * | 2019-11-04 | 2020-05-05 | 北京海益同展信息科技有限公司 | File storage method, terminal and storage medium |
CN111866123A (en) * | 2020-07-17 | 2020-10-30 | 海南大学 | Data storage method and device based on block chain |
CN112015809A (en) * | 2020-07-14 | 2020-12-01 | 北京淇瑀信息科技有限公司 | Financial data management method, block chain network system and electronic equipment |
CN113313513A (en) * | 2021-05-25 | 2021-08-27 | 北京易华录信息技术股份有限公司 | Data transaction method and device and electronic equipment |
CN113628052A (en) * | 2021-08-18 | 2021-11-09 | 杭州云象网络技术有限公司 | Block chain asset and contract processing method, system and device based on prediction machine |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106157193A (en) * | 2015-04-09 | 2016-11-23 | 林淑贞 | Quick sale service system for house objects |
CN107066561A (en) * | 2017-03-30 | 2017-08-18 | 中国联合网络通信集团有限公司 | Data managing method and platform |
CN107239479A (en) * | 2017-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | A kind of method and device of data storage and inquiry based on block chain |
US20170345019A1 (en) * | 2016-05-27 | 2017-11-30 | Chronicled, Inc. | Open registry for internet of things |
CN107730225A (en) * | 2017-10-24 | 2018-02-23 | 广东工业大学 | A kind of big data method of commerce, system, equipment and computer-readable storage medium |
TW201822088A (en) * | 2016-12-01 | 2018-06-16 | 碩網資訊股份有限公司 | Transnational trading system using block chain technology and the method thereof |
CN108304475A (en) * | 2017-12-28 | 2018-07-20 | 北京比特大陆科技有限公司 | Data query method, apparatus and electronic equipment |
WO2018142260A1 (en) * | 2017-01-31 | 2018-08-09 | nChain Holdings Limited | Computer-implemented system and method for generating and extracting user related data stored on a blockchain |
-
2018
- 2018-08-27 CN CN201810981810.8A patent/CN108876383A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106157193A (en) * | 2015-04-09 | 2016-11-23 | 林淑贞 | Quick sale service system for house objects |
US20170345019A1 (en) * | 2016-05-27 | 2017-11-30 | Chronicled, Inc. | Open registry for internet of things |
TW201822088A (en) * | 2016-12-01 | 2018-06-16 | 碩網資訊股份有限公司 | Transnational trading system using block chain technology and the method thereof |
WO2018142260A1 (en) * | 2017-01-31 | 2018-08-09 | nChain Holdings Limited | Computer-implemented system and method for generating and extracting user related data stored on a blockchain |
CN107239479A (en) * | 2017-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | A kind of method and device of data storage and inquiry based on block chain |
CN107066561A (en) * | 2017-03-30 | 2017-08-18 | 中国联合网络通信集团有限公司 | Data managing method and platform |
CN107730225A (en) * | 2017-10-24 | 2018-02-23 | 广东工业大学 | A kind of big data method of commerce, system, equipment and computer-readable storage medium |
CN108304475A (en) * | 2017-12-28 | 2018-07-20 | 北京比特大陆科技有限公司 | Data query method, apparatus and electronic equipment |
Non-Patent Citations (1)
Title |
---|
董祥千等: ""一种高效安全的去中心化数据共享模型"", 《计算机学报》 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587132A (en) * | 2018-11-29 | 2019-04-05 | 苏宁易购集团股份有限公司 | A kind of data transferring method and device based on alliance's chain |
CN110457918A (en) * | 2019-01-09 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Filter out method, apparatus, node and the medium of illegal contents in block chain data |
CN109636610A (en) * | 2019-02-01 | 2019-04-16 | 中国科学院合肥物质科学研究院 | A kind of data transacting system and method for decentralization |
CN109636610B (en) * | 2019-02-01 | 2022-10-04 | 安徽中科晶格技术有限公司 | Decentralized data transaction system and method |
CN110149372A (en) * | 2019-04-24 | 2019-08-20 | 深圳市元征科技股份有限公司 | A kind of collecting method and block chain node device |
CN110378143A (en) * | 2019-04-26 | 2019-10-25 | 杭州数焓科技有限公司 | A kind of EHR based on block chain can search for encryption method |
CN110210976A (en) * | 2019-06-11 | 2019-09-06 | 北京艾摩瑞策科技有限公司 | A kind of method of commerce and its equipment based on block chain |
CN110223053A (en) * | 2019-06-11 | 2019-09-10 | 北京艾摩瑞策科技有限公司 | A kind of data trade method and its equipment |
CN111104386A (en) * | 2019-11-04 | 2020-05-05 | 北京海益同展信息科技有限公司 | File storage method, terminal and storage medium |
WO2021088278A1 (en) * | 2019-11-04 | 2021-05-14 | 北京海益同展信息科技有限公司 | File storage method, terminal, and storage medium |
CN111104386B (en) * | 2019-11-04 | 2023-09-01 | 京东科技信息技术有限公司 | File storage method, terminal and storage medium |
EP4047487A4 (en) * | 2019-11-04 | 2023-05-17 | Jingdong Technology Information Technology Co., Ltd. | File storage method, terminal, and storage medium |
CN112015809A (en) * | 2020-07-14 | 2020-12-01 | 北京淇瑀信息科技有限公司 | Financial data management method, block chain network system and electronic equipment |
CN112015809B (en) * | 2020-07-14 | 2023-11-14 | 北京淇瑀信息科技有限公司 | Financial data management method, blockchain network system and electronic equipment |
CN111866123A (en) * | 2020-07-17 | 2020-10-30 | 海南大学 | Data storage method and device based on block chain |
CN111866123B (en) * | 2020-07-17 | 2022-03-08 | 海南大学 | Data storage method and device based on block chain |
CN113313513A (en) * | 2021-05-25 | 2021-08-27 | 北京易华录信息技术股份有限公司 | Data transaction method and device and electronic equipment |
CN113628052A (en) * | 2021-08-18 | 2021-11-09 | 杭州云象网络技术有限公司 | Block chain asset and contract processing method, system and device based on prediction machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108876383A (en) | A kind of data trade method, device and equipment based on block chain | |
CN109102299A (en) | Resource transfers data managing method, device and storage medium | |
Moreno-Sanchez et al. | Listening to whispers of ripple: Linking wallets and deanonymizing transactions in the ripple network | |
CA2683600C (en) | A system and method for creating a list of shared information on a peer-to-peer network | |
CN108681898A (en) | A kind of data trade method and system based on block chain | |
CN110335147A (en) | A kind of digital asset Information Exchange System and method based on block chain | |
CN108062671A (en) | Data trade method, block chain node server and data submit terminal | |
CN109154885A (en) | Business processing on block platform chain executes | |
CN108898021B (en) | Threat information processing method, system and computing device based on block chain | |
US20180025767A1 (en) | Method and system for determining market estimates with market based measures | |
CN104361490B (en) | A kind of method of payment and system of sensitive information markization | |
WO2020186726A1 (en) | Block chain-based blacklist data sharing method and system | |
CN110225032B (en) | Business data transaction method and equipment | |
CN109086628A (en) | A kind of order processing method and relevant apparatus | |
CN110210977A (en) | A kind of data trade method and its equipment | |
CN110490640A (en) | Method, apparatus and system for object distribution processor | |
CN110458708A (en) | Asset allocation method and device competition-based in block chain network | |
Zhao | Graph-based forensic investigation of bitcoin transactions | |
CN110210976A (en) | A kind of method of commerce and its equipment based on block chain | |
Weber et al. | Trading user data: A Blockchain based approach | |
CN110210975A (en) | Data trade method and its equipment on block chain | |
KR102128858B1 (en) | System and method for constructing book-sharing economic platform based on block chain | |
Banerjee et al. | Blockchain enabled data trading with user consent | |
Li et al. | Blockchain-based fair and decentralized data trading model | |
CN107316189A (en) | The treating method and apparatus of user resources |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |