CN111447238A - Data sharing system based on block chain - Google Patents
Data sharing system based on block chain Download PDFInfo
- Publication number
- CN111447238A CN111447238A CN202010283221.XA CN202010283221A CN111447238A CN 111447238 A CN111447238 A CN 111447238A CN 202010283221 A CN202010283221 A CN 202010283221A CN 111447238 A CN111447238 A CN 111447238A
- Authority
- CN
- China
- Prior art keywords
- data
- node
- information
- feedback information
- block chain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/108—Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Abstract
The invention relates to a data sharing system based on a block chain, which comprises a block chain network and at least two nodes, wherein the at least two nodes comprise a first node and a second node, the block chain network determines the second node after acquiring a data request instruction sent by the first node, sends a data sharing request to the second node according to the data request instruction, the target data sent by the second node is acquired within the validity period, the validity period can ensure the real-time performance of the data and the security of the data request, then, the data transmission verification is realized through the two pieces of verification information, the target data is sent to the first node after the verification is passed, the reliability and the safety of the target data transmission can be ensured, the condition of data transmission errors in the case of a plurality of nodes is prevented, and it is also possible to determine whether or not the communication with the first node is normal before the target data is transmitted to the first node.
Description
Technical Field
The invention relates to a data sharing system based on a block chain.
Background
The block chain technology is a novel decentralized protocol, can safely store data, can not forge and falsify information, can intelligently execute intelligent contracts, and does not need to be audited by any centralized mechanism. At present, a data sharing method based on a block chain adopts a block chain technology to share data, a data providing node synchronizes data to the block chain, and the block chain synchronizes data from the block chain to a data acquiring node. However, this data sharing method easily causes data to be transmitted to other unorthodox points, resulting in poor data security.
Disclosure of Invention
The invention aims to provide a data sharing system based on a block chain, which is used for solving the problem of poor data security of the existing data sharing method based on the block chain.
In order to solve the problems, the invention adopts the following technical scheme:
a blockchain-based data sharing system, comprising: the system comprises a blockchain network and at least two nodes, wherein the at least two nodes comprise a first node and a second node, and each node is in communication connection with the blockchain network;
the first node sends a data request instruction to the blockchain network, wherein the data request instruction is used for indicating target data required to be acquired;
after receiving the data request instruction, the blockchain network determines a second node for providing the target data according to the data request instruction; the block chain network sends a data sharing request to the second node according to the data request instruction, wherein the data sharing request comprises a preset validity period and an identity code of the first node;
after receiving the data sharing request, the second node sends a data set to the blockchain network, wherein the data set comprises the target data, the validity period and the identity code of the first node;
if the block chain network acquires the data set within the validity period, generating first check information and second check information, and sending the first check information to a first node according to the identity code of the first node;
after receiving the first check information, the first node processes the first check information to generate corresponding feedback information and sends the feedback information to the block chain network;
after receiving the feedback information, the block chain network verifies whether the feedback information is matched with the second check information;
and if the feedback information is matched with the second check information, the block chain network sends the target data to the first node.
Optionally, if the blockchain network does not acquire the data set within the validity period, the blockchain network sends a data sharing failure indication signal to the first node.
Optionally, the data request instruction includes data attribute information corresponding to the target data, where the data attribute information includes an attribute of the target data;
the block chain network has the corresponding relation between the attribute of various data and each node;
correspondingly, after receiving the data request instruction, the blockchain network determines a second node for providing the target data according to the data request instruction, including:
and after receiving the data request instruction, the block chain network determines a second node corresponding to the attribute of the target data according to the corresponding relation between the attribute of each data and each node.
Optionally, the first check information and the second check information are the same data information;
the first node processes the first check information to generate corresponding feedback information, which specifically comprises: the first node copies the first check information to obtain feedback information which is the same as the first check information;
after receiving the feedback information, the blockchain network verifies whether the feedback information is matched with the second verification information, specifically: after receiving the feedback information, the blockchain network verifies whether the feedback information and the second check information are the same information, if the feedback information is the same as the second check information, the feedback information is judged to be matched with the second check information, and if the feedback information is different from the second check information, the feedback information is judged to be not matched with the second check information.
The invention has the technical effects that: the data sharing system based on the block chain comprises a block chain network and at least two nodes, and data sharing is realized according to the block chain network; when a first node needs to share data, the first node sends a data request instruction to a blockchain network, the blockchain network determines a target node, namely a second node, which provides target data after receiving the data request instruction, and then sends a data sharing request to the second node when requesting the target data, wherein the data sharing request relates to a preset validity period and an identity code of the first node, and the validity period can ensure the real-time performance of the data and the safety of the data request; after receiving the data sharing request, the second node sends a data set containing target data to the blockchain network, after the blockchain network receives the target data in the validity period, the reliability and the safety of communication between the first node and the blockchain network are verified according to the two pieces of verification information, and if the verification is passed, the blockchain network sends the target data to the first node.
Drawings
In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings needed to be used in the embodiment will be briefly described as follows:
fig. 1 is a schematic diagram of the overall structure of a data sharing system based on a block chain.
Detailed Description
The embodiment provides a data sharing system based on a block chain, which includes: a blockchain network and at least two nodes. The circular structure in fig. 1 represents a blockchain network, which may be built up from private blockchains. The number of nodes is set by the network scale or the specific requirement, as shown in fig. 1, four nodes are taken as an example and include a first node, a second node, a third node and a fourth node, each node may be a mobile phone, a tablet computer, a computer, and other devices, and these devices may be provided with a relevant communication port in advance for communication connection with the blockchain network, and these communication ports may be of a hardware structure or a software form.
The first node is a data requester, the second node is a data provider, and the block chain network realizes data sharing through interaction between the first node and the second node. Therefore, a software program corresponding to data sharing is executed in the blockchain network, and data sharing between two nodes is realized through the software program.
When the first node needs the related data, a data request instruction is sent to the blockchain network, and the data request instruction is used for indicating the target data requested to be acquired. In addition, in order to accurately acquire target data to be acquired, the data request instruction includes data attribute information corresponding to the target data.
After receiving a data request instruction sent by a first node, the blockchain network determines a second node, namely a target node, for providing target data according to the received data request instruction. In order to determine the second node, the block chain network stores the corresponding relationship between the attributes of various data and each node, and the corresponding node can be determined and found according to the corresponding relationship between the attributes of various data and each node. Such as: the attribute of the data corresponding to the first node is of the analog quantity sampling data type, the attribute of the data corresponding to the second node is of the digital quantity sampling data type, and the attribute of the data corresponding to the third node is of the control signal type. Then, after receiving the data request instruction sent by the first node, the blockchain network may obtain data attribute information corresponding to the target data according to the data request instruction, where the data attribute information includes an attribute of the target data, and by comparing the data attribute information with the correspondence, it is possible to determine a target node, that is, a second node, corresponding to the attribute of the target data, for example: and if the attribute of the data obtained according to the data request instruction is the digital quantity sampling data type, the corresponding target node is the second node.
After determining the second node, the blockchain network sends a data sharing request to the second node according to the data request instruction, where the data sharing request includes data of a data sharing request main body. Of course, in addition to the data sharing request main body data, the data sharing request further includes a preset validity period and the identity code of the first node. The identity code of the first node is identity information of the first node, such as: address information of the first node. The validity period is set to ensure real-time performance and safety of data, and similar to a verification code with a certain time limit received by a mobile phone, any data received after the time is exceeded is invalid, so that the result that the target data is invalid or no longer functions due to the fact that the second node sends the target data after too long time is prevented. The specific value of the validity period can be set according to actual needs, such as 30 s.
After receiving a data sharing request sent by the blockchain network, the second node sends a data set to the blockchain network, where the data set includes target data, a validity period, and an identity code of the first node, that is, the data set includes the target data and the data sharing request, which is convenient for the blockchain network to use the validity period and the identity code of the first node subsequently.
If the block chain network acquires the data set in the validity period, two check messages are generated, namely a first check message and a second check message. The two check messages may be the same data message or different data messages, and if the two check messages are different data messages, a certain relationship exists between the first check message and the second check message for the convenience of verification and comparison. And setting the first check information and the second check information for verification to ensure that the target data is transmitted between the first node and the second node. The first check information and the second check information may be a set string of characters, such as: a string of characters, which is composed of a plurality of binary digits 0 and 1 by a corresponding arrangement order, is similar to an authentication code.
As a specific embodiment, if the blockchain network does not acquire the data set within the validity period, which indicates that the data sharing fails, the blockchain network sends a data sharing failure indication signal to the first node to indicate that the data sharing fails, and the data sharing is ended.
As described above, if the blockchain network acquires the data set within the validity period, the blockchain network sends the first check information to the first node according to the identity code of the first node.
And after receiving the first check information, the first node automatically processes the first check information to generate feedback information. In this embodiment, the first check information and the second check information are the same data information. A specific processing procedure for processing the first verification information is given below: and copying the first check information to obtain the feedback information which is the same as the first check information, namely the first node generates the feedback information which is the same as the first check information according to the first check information.
Moreover, in order to ensure that only the node sending the data request instruction can generate the corresponding feedback information according to the first check information, the data sharing system is further provided with the following mechanisms: for each node, only the node sending the data request instruction can respond to the first check information sent by the block chain network, and the feedback information is obtained by correspondingly processing the first check information, and other nodes which do not send the data request instruction do not respond to the first check information. Therefore, the corresponding feedback information can be generated only after the first node receives the first check information, and if the first check information is erroneously sent to other nodes, the other nodes do not respond to the first check information, and further, the corresponding feedback information cannot be generated and sent.
And the first node sends the generated feedback information corresponding to the first check information to the blockchain network.
And after receiving the feedback information sent by the first node, the block chain network verifies whether the feedback information is matched with the second verification information. The first check information and the second check information are the same data information, and the first check information and the corresponding feedback information are also the same data information. Correspondingly, verifying whether the feedback information is matched with the second check information specifically includes: and verifying whether the feedback information is the same information as the second check information, if so, judging that the feedback information is matched with the second check information, and if not, judging that the feedback information is not matched with the second check information.
And finally, if the feedback information is matched with the second check information, the target data is finally determined to be required to be sent to the first node, and then the block chain network sends the target data to the first node.
The above-mentioned embodiments are merely illustrative of the technical solutions of the present invention in a specific embodiment, and any equivalent substitutions and modifications or partial substitutions of the present invention without departing from the spirit and scope of the present invention should be covered by the claims of the present invention.
Claims (4)
1. A system for sharing data based on a blockchain, comprising: the system comprises a blockchain network and at least two nodes, wherein the at least two nodes comprise a first node and a second node, and each node is in communication connection with the blockchain network;
the first node sends a data request instruction to the blockchain network, wherein the data request instruction is used for indicating target data required to be acquired;
after receiving the data request instruction, the blockchain network determines a second node for providing the target data according to the data request instruction; the block chain network sends a data sharing request to the second node according to the data request instruction, wherein the data sharing request comprises a preset validity period and an identity code of the first node;
after receiving the data sharing request, the second node sends a data set to the blockchain network, wherein the data set comprises the target data, the validity period and the identity code of the first node;
if the block chain network acquires the data set within the validity period, generating first check information and second check information, and sending the first check information to a first node according to the identity code of the first node;
after receiving the first check information, the first node processes the first check information to generate corresponding feedback information and sends the feedback information to the block chain network;
after receiving the feedback information, the block chain network verifies whether the feedback information is matched with the second check information;
and if the feedback information is matched with the second check information, the block chain network sends the target data to the first node.
2. The blockchain-based data sharing system according to claim 1, wherein if the blockchain network does not acquire the data set within the validity period, the blockchain network sends a data sharing failure indication signal to the first node.
3. The blockchain-based data sharing system according to claim 1, wherein the data request instruction includes data attribute information corresponding to the target data, the data attribute information including an attribute of the target data;
the block chain network has the corresponding relation between the attribute of various data and each node;
correspondingly, after receiving the data request instruction, the blockchain network determines a second node for providing the target data according to the data request instruction, including:
and after receiving the data request instruction, the block chain network determines a second node corresponding to the attribute of the target data according to the corresponding relation between the attribute of each data and each node.
4. The blockchain-based data sharing system of claim 1, wherein the first parity information and the second parity information are the same data information;
the first node processes the first check information to generate corresponding feedback information, which specifically comprises: the first node copies the first check information to obtain feedback information which is the same as the first check information;
after receiving the feedback information, the blockchain network verifies whether the feedback information is matched with the second verification information, specifically: after receiving the feedback information, the blockchain network verifies whether the feedback information and the second check information are the same information, if the feedback information is the same as the second check information, the feedback information is judged to be matched with the second check information, and if the feedback information is different from the second check information, the feedback information is judged to be not matched with the second check information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010283221.XA CN111447238A (en) | 2020-04-13 | 2020-04-13 | Data sharing system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010283221.XA CN111447238A (en) | 2020-04-13 | 2020-04-13 | Data sharing system based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111447238A true CN111447238A (en) | 2020-07-24 |
Family
ID=71651536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010283221.XA Withdrawn CN111447238A (en) | 2020-04-13 | 2020-04-13 | Data sharing system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111447238A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111814193A (en) * | 2020-08-31 | 2020-10-23 | 支付宝(杭州)信息技术有限公司 | Information sharing method, device and equipment |
CN112543236A (en) * | 2020-12-18 | 2021-03-23 | 中国联合网络通信集团有限公司 | Data sharing method and block link point |
CN116418601A (en) * | 2023-06-09 | 2023-07-11 | 南京信息工程大学 | Full-flow information security monitoring system based on block chain auxiliary verification |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106372868A (en) * | 2016-09-06 | 2017-02-01 | 联动优势科技有限公司 | Verification method and apparatus for transaction data written into block chain |
CN106778343A (en) * | 2016-12-12 | 2017-05-31 | 武汉优聘科技有限公司 | It is a kind of that the data sharing method of private data is related to based on block chain |
CN109347865A (en) * | 2018-11-23 | 2019-02-15 | 成都兴政电子政务运营服务有限公司 | A kind of user data authentication based on block chain technology deposits the method and system of card |
CN109639753A (en) * | 2018-10-26 | 2019-04-16 | 众安信息技术服务有限公司 | A kind of data sharing method and system based on block chain |
CN109947723A (en) * | 2018-11-30 | 2019-06-28 | 上海点融信息科技有限责任公司 | For the block data sharing method of block chain network, storage medium, calculate equipment |
CN110059495A (en) * | 2018-12-14 | 2019-07-26 | 阿里巴巴集团控股有限公司 | Data sharing method, apparatus and system, electronic equipment |
EP3602389A1 (en) * | 2017-07-26 | 2020-02-05 | Alibaba Group Holding Limited | Method, apparatus, and electronic device for communication between blockchain nodes, and method, apparatus, and electronic device for blockchain-based certificate management |
-
2020
- 2020-04-13 CN CN202010283221.XA patent/CN111447238A/en not_active Withdrawn
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106372868A (en) * | 2016-09-06 | 2017-02-01 | 联动优势科技有限公司 | Verification method and apparatus for transaction data written into block chain |
CN106778343A (en) * | 2016-12-12 | 2017-05-31 | 武汉优聘科技有限公司 | It is a kind of that the data sharing method of private data is related to based on block chain |
EP3602389A1 (en) * | 2017-07-26 | 2020-02-05 | Alibaba Group Holding Limited | Method, apparatus, and electronic device for communication between blockchain nodes, and method, apparatus, and electronic device for blockchain-based certificate management |
CN109639753A (en) * | 2018-10-26 | 2019-04-16 | 众安信息技术服务有限公司 | A kind of data sharing method and system based on block chain |
CN109347865A (en) * | 2018-11-23 | 2019-02-15 | 成都兴政电子政务运营服务有限公司 | A kind of user data authentication based on block chain technology deposits the method and system of card |
CN109947723A (en) * | 2018-11-30 | 2019-06-28 | 上海点融信息科技有限责任公司 | For the block data sharing method of block chain network, storage medium, calculate equipment |
CN110059495A (en) * | 2018-12-14 | 2019-07-26 | 阿里巴巴集团控股有限公司 | Data sharing method, apparatus and system, electronic equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111814193A (en) * | 2020-08-31 | 2020-10-23 | 支付宝(杭州)信息技术有限公司 | Information sharing method, device and equipment |
US11514445B2 (en) | 2020-08-31 | 2022-11-29 | Alipay (Hangzhou) Information Technology Co., Ltd. | Information sharing methods, apparatuses, and devices |
CN112543236A (en) * | 2020-12-18 | 2021-03-23 | 中国联合网络通信集团有限公司 | Data sharing method and block link point |
CN116418601A (en) * | 2023-06-09 | 2023-07-11 | 南京信息工程大学 | Full-flow information security monitoring system based on block chain auxiliary verification |
CN116418601B (en) * | 2023-06-09 | 2023-08-22 | 南京信息工程大学 | Full-flow information security monitoring system based on block chain auxiliary verification |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111163182B (en) | Block chain-based device registration method and apparatus, electronic device, and storage medium | |
CN108923908B (en) | Authorization processing method, device, equipment and storage medium | |
CN111447238A (en) | Data sharing system based on block chain | |
US6976174B2 (en) | Secure multiprotocol interface | |
CN109522363B (en) | Cloud platform synchronization method, system, equipment and storage medium based on block chain | |
CN110602108B (en) | Data communication method, device, equipment and storage medium based on block chain network | |
CN110266872B (en) | Address book data management and control method and device, cloud address book system, computer equipment and computer readable storage medium | |
CN111639080B (en) | Data processing method and device, node equipment and storage medium | |
CN111935318A (en) | Cross-link data verification method, device, equipment and medium | |
CN112861190A (en) | Data cross-chain cooperation method, system and device | |
CN112101942A (en) | Transaction request processing method, system, device and equipment based on block chain | |
CN112818056A (en) | Log security sharing method, system and device of block chain | |
CN111367923A (en) | Data processing method, data processing device, node equipment and storage medium | |
CN114564757A (en) | Data auditing method, device and equipment of block chain and readable storage medium | |
CN111552568A (en) | Cloud service calling method and device | |
CN111680104A (en) | Data synchronization method and device, computer equipment and readable storage medium | |
CN111541662A (en) | Communication method, device, system and equipment based on binary communication protocol | |
CN111339141A (en) | Data transmission method, block link node equipment and medium | |
CN111327680B (en) | Authentication data synchronization method, device, system, computer equipment and storage medium | |
CN111597537B (en) | Block chain network-based certificate issuing method, related equipment and medium | |
CN111327447B (en) | Distributed system, arbitration method, node device and storage medium | |
CN111526154A (en) | Service data sharing system based on block chain network | |
CN110585717B (en) | Information processing method and device | |
CN113364821B (en) | Function service access method, equipment and storage medium | |
CN113986578A (en) | Message checking method and first equipment |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200724 |
|
WW01 | Invention patent application withdrawn after publication |