Data transaction method based on block chainTechnical Field
The invention relates to the technical field of information, in particular to a data transaction method based on a block chain.
Background
The blockchain technology is a technical scheme for decentralized and collective maintenance of a distributed account book, and is essentially a distributed database system with a plurality of nodes participating together, the blockchain is not a single technology, but a result of multi-technology integration, a reliable and difficult-to-tamper account book record is maintained by using the blockchain, trust risk can be reduced, and maintenance cost of many participants is effectively reduced. When the data is stored through the block chain, the consensus among multiple parties is required to be obtained, and the data cannot be falsified or forged after the data is chained.
The existing data storage has the defects that:
1. the data is stored in a centralized server of a data provider, and a data user cannot verify the authenticity of the data acquired by the data user.
2. Data can be hijacked and tampered in the network transmission process, and the risk of transmission through the network is high.
3. At present, all data are stored in a server of a data provider, and if the data provider is attacked maliciously, network congestion of the provider can be caused, so that network communication between two parties is influenced, and inestimable loss is caused to a data user.
4. Both sides can produce the call charge when the data interaction, when carrying out financial verification, need both sides to confirm for work efficiency is low and produce unnecessary dispute easily.
Disclosure of Invention
In view of the defects of the prior art, the invention provides a data transaction method based on a block chain, which aims to effectively ensure the reliability of data and the high availability of services through the multi-party consensus of the block chain and avoid the unavailability of the services caused by the complex network environment.
In particular, the existing data storage and interaction have great defects.
1. The data only exists in the server of the data provider, the user cannot confirm the authenticity of the data and whether the data is tampered, through the system, the identification of the data exists in the block chain, and the provider can record the data modified by the data into the block chain, so that the authenticity of the data is guaranteed.
2. By using the system, data of each party can be continuously synchronized, a user can acquire the existing data only in the deployed system, and even if the network of the data provider fluctuates temporarily, the user can not be influenced to acquire the currently shared data.
3. By using the system, the authenticity of the data acquired by a user is effectively guaranteed due to the fact that the block chain cannot be tampered.
4. When the two parties carry out data calling statistics, the two parties need to check the data calling records for multiple times so as to check the cost generated by the two parties in the interaction process.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a blockchain-based data transaction method, the method comprising:
s1, the data provider and the data user jointly build the system to form an alliance chain system;
s2, through an intelligent contract and an SDK interface, a data provider stores data in a block chain, and the security of own data is ensured through access limitation;
s3 gives the data user data access right through the access control module.
It should be noted that the user may be a plurality of parties.
The invention has the advantages that the reliability of data and high availability of service can be effectively ensured through multi-party consensus of the block chains, and the unavailability of service caused by complex network environment is avoided.
Drawings
FIG. 1 is a schematic flow diagram of the present invention;
fig. 2 is a schematic diagram of the framework of the technical solution of the present invention.
Detailed Description
The present invention will be further described below, it should be noted that the present embodiment is based on the technical solution, and a detailed implementation manner and a specific operation process are provided, but the protection scope of the present invention is not limited to the present embodiment.
As shown in fig. 1 and fig. 2, the present invention is a data transaction method based on a blockchain, the method including:
s1, the data provider and the data user jointly build the system to form an alliance chain system;
s2, through an intelligent contract and an SDK interface, a data provider stores data in a block chain, and the security of own data is ensured through access limitation;
s3 gives the data user data access right through the access control module.
It should be noted that the user may be a plurality of parties.
As a preferred technical solution, the data buyer viewing the data directory of the data owner may be actively provided by the data owner, or may be stored on the block chain by using an intelligent contract, or may introduce a uniform authoritative intermediary party for supervision.
Various other changes and modifications to the above-described embodiments and concepts will become apparent to those skilled in the art from the above description, and all such changes and modifications are intended to be included within the scope of the present invention as defined in the appended claims.