A data sharing system, method, device, medium and equipment
By introducing data storage subsystem and symmetric encryption technology into the blockchain network, the problem of slow operation and privacy protection when the data volume is large is solved, and efficient data sharing and privacy protection are achieved.
Patent Information
- Application Number
- CN202011017495.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-24
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2040-09-24
AI Technical Summary
Blockchain networks operate slowly when the data volume is large, share efficiency is low, and the privacy of information data cannot be effectively guaranteed.
The data storage subsystem is introduced, which only saves the storage path information of the data file in the blockchain subsystem, and combines symmetric encryption technology to realize the encryption and decryption of the data file, and manages data sharing requests and responses through the blockchain network access subsystem.
It improves the operation speed and sharing efficiency of blockchain networks when the data volume is large, while ensuring the privacy and security of data files.
Smart Images

Figure CN114257605B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a data sharing system, method, device, medium and equipment. Background Art
[0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.
[0003] The vigorous development of the Internet ecosystem has generated an enormous amount of information data, and information data has been included in the production factors. Through the effective use of information data, the value of information data can be effectively explored. The difficulty in using information data lies in achieving a balance between privacy protection and data sharing.
[0004] The blockchain network is a trustworthy, secure, and tamper-proof decentralized technology network. The blockchain network solves the problem of information data sharing.
[0005] The common method of sharing information and data in blockchain networks is to send the data file directly to the blockchain network after signing, so as to fix the information and data in the blockchain network and prevent it from being tampered with, improve the circulation of information and data, and realize information and data sharing through the blockchain network. However, the current method of sharing information and data in blockchain networks has at least the following problems:
[0006] (1) It does not support the sharing of information data with large amounts of data.
[0007] As we all know, the distributed ledger maintained by the blockchain network records every transaction that occurs in the network, including timestamps, transaction information, and block information. The size of the transaction information directly affects the size of the distributed ledger maintained by the blockchain network. The larger the distributed ledger maintained by the blockchain network, the higher the storage and computing power requirements of the blockchain network, the slower the blockchain network runs, and the lower the sharing efficiency.
[0008] Sending information data with a large amount of data to the blockchain network to achieve information data sharing will result in larger transaction information. Therefore, the general practice is to send information data with a smaller amount of data to the blockchain network to achieve information data sharing.
[0009] (2) The privacy of information data cannot be effectively guaranteed.
[0010] At present, blockchain network stores information data in plain text to meet the characteristics of transparency, openness and queryability. After the information data is sent to the blockchain network, each node in the blockchain network can query the information data, resulting in the privacy and security of the information data not being effectively guaranteed. Summary of the invention
[0011] Embodiments of the present invention provide a data sharing system, method, apparatus, medium and device for solving the problems of slow operation and low sharing efficiency when a blockchain network realizes information data sharing with a large amount of data.
[0012] In a first aspect, the present invention provides a data sharing system, the system comprising a blockchain network access subsystem, a data storage subsystem and a blockchain subsystem, wherein:
[0013] The blockchain network access subsystem is used to receive a data acquisition request sent by a data demander device, and send the data acquisition request to the blockchain subsystem; wherein the data acquisition request is sent by the data demander device for the data file to be acquired according to the brief description of the data file published by the blockchain network access subsystem;
[0014] The data storage subsystem is used to store data files;
[0015] The blockchain subsystem is used to determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0016] Optionally, the blockchain subsystem is specifically used to determine the sharing method of the data file required by the data acquisition request and the storage path information of the data storage subsystem, and provide the data file stored in the data storage subsystem to the data requester device based on the determined sharing method and the storage path information of the data storage subsystem.
[0017] Optionally, the data files stored in the data storage subsystem are obtained in the following manner:
[0018] The blockchain network access subsystem receives a data sharing request sent by a data owner device, and sends the data sharing request to the blockchain subsystem, wherein the data sharing request includes a data file that the data owner device needs to share, a brief description of the data file, and a sharing method for the data file;
[0019] The blockchain subsystem transfers the data file to be shared to the data storage subsystem, records the storage path information and sharing method of the data file in the data storage subsystem, and publishes a brief description of the data file through the blockchain network access subsystem.
[0020] Optionally, when the sharing mode of the data file to be shared included in the data sharing request is an approval mode, the data file to be shared is a data file to be shared encrypted by an encryption key;
[0021] The blockchain subsystem transfers the data file that needs to be shared to the data storage subsystem, including: transferring the data file that needs to be shared encrypted by the encryption key to the data storage subsystem.
[0022] Optionally, the data acquisition request carries a public key corresponding to the data requester's device;
[0023] The blockchain subsystem provides the data file stored in the data storage subsystem to the data demander device according to the determined sharing mode and the storage path information in the data storage subsystem, including:
[0024] When the determined sharing mode is a public mode, the storage path information of the data file required to be obtained by the determined data acquisition request in the data storage subsystem is sent to the blockchain network access subsystem;
[0025] The blockchain network access subsystem is also used to download data files from the data storage subsystem according to the received storage path information so that the data demander device can obtain the data file.
[0026] Optionally, the data acquisition request carries a public key corresponding to the data requester's device;
[0027] The blockchain subsystem provides the data file stored in the data storage subsystem to the data demander device according to the determined sharing mode and the storage path information in the data storage subsystem, including:
[0028] When the determined sharing mode is the approval mode, sending the received data acquisition request to the data owner device corresponding to the data file to be acquired;
[0029] If a permission notification message is received from the data owner device through the blockchain network access subsystem, the permission notification message carries encrypted information, and the encrypted information is obtained by the data owner device using the public key to encrypt the encryption key corresponding to the data file to be obtained, the encrypted information and the storage path information of the data file to be obtained in the data storage subsystem are sent to the data demander device;
[0030] The blockchain network access subsystem is also used to receive the storage path information sent by the data demander device, download data files from the data storage subsystem according to the received storage path information, and send the downloaded data files to the data demander device, so that the data demander device can decrypt the downloaded data files according to the encryption key obtained by decrypting the encrypted information using the private key to obtain the decrypted data files.
[0031] In a second aspect, the present invention further provides a data sharing method, the method comprising:
[0032] Receiving a data acquisition request sent by a data demander device, wherein the data acquisition request is sent by the data demander device for a determined data file to be acquired based on a brief description of the data file published by the blockchain network access subsystem;
[0033] The data acquisition request is sent to the blockchain subsystem so that the blockchain subsystem can determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0034] In a third aspect, the present invention further provides a data sharing method, the method comprising:
[0035] Receive data acquisition requests sent by the blockchain network access subsystem;
[0036] Determine storage path information of the data file required to be obtained by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined storage path information in the data storage subsystem;
[0037] Among them, the data acquisition request sent by the blockchain network access subsystem is sent by the data demander device according to the brief description of the data file published by the blockchain network access subsystem, for the data file that is determined to be required to be obtained.
[0038] In a fourth aspect, the present invention further provides a data sharing device, the device comprising:
[0039] A receiving module, configured to receive a data acquisition request sent by a data demander device, wherein the data acquisition request is sent by the data demander device for a determined data file to be acquired based on a brief description of the data file published by the blockchain network access subsystem;
[0040] A sending module is used to send the data acquisition request received by the receiving module to the blockchain subsystem, so that the blockchain subsystem can determine the storage path information of the data file required to be acquired by the data acquisition request in the data storage subsystem, and provide the data demander device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0041] In a fifth aspect, the present invention further provides a data sharing device, the device comprising:
[0042] A receiving module, used to receive a data acquisition request sent by a blockchain network access subsystem;
[0043] A sharing module, configured to determine storage path information of the data file required to be obtained by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined storage path information in the data storage subsystem;
[0044] Among them, the data acquisition request sent by the blockchain network access subsystem is sent by the data demander device according to the brief description of the data file published by the blockchain network access subsystem, for the data file that is determined to be required to be obtained.
[0045] In a sixth aspect, the present invention further provides a data sharing system, the system comprising a blockchain network access subsystem, a data storage subsystem and a blockchain subsystem, wherein:
[0046] The blockchain network access subsystem is used to receive a data acquisition request sent by a data demander device, and send the data acquisition request to the blockchain subsystem; wherein the data acquisition request is used to obtain a data file provided by a data owner device according to a demand release request sent by the data demander device; the demand release request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain;
[0047] The data storage subsystem is used to store data files;
[0048] The blockchain subsystem is used to determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0049] Optionally, the data files stored in the data storage subsystem are obtained in the following manner:
[0050] The blockchain network access subsystem receives a demand release request sent by the data demander device, and sends the demand release request to the blockchain subsystem; and receives a data response request sent by the data owner device, and sends the data response request to the blockchain subsystem; wherein the data response request includes a data file provided for a brief description of the data file corresponding to the demand release request;
[0051] The blockchain subsystem publishes a brief description of the data file included in the demand release request; and when receiving the data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem.
[0052] Optionally, the demand publishing request carries a public key corresponding to the data demander device;
[0053] The blockchain subsystem is further configured to send the public key to the data owner device through the blockchain network access subsystem according to a received data response pre-request sent by the data owner device through the blockchain network access subsystem before receiving the data response request;
[0054] The data response request includes a data file encrypted with an encryption key provided in response to a brief description of the data file corresponding to the demand publishing request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key;
[0055] The blockchain subsystem, upon receiving the data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem, including:
[0056] When the data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
[0057] Optionally, the blockchain subsystem provides the data demander device with a data file stored in the data storage subsystem according to the determined storage path information in the data storage subsystem, including:
[0058] Sending the encrypted information and the storage path information of the data file to be obtained in the data storage subsystem to the blockchain network access subsystem;
[0059] The blockchain network access subsystem is also used to download data files from the data storage subsystem according to the received storage path information, and send the downloaded data files and the received encrypted information to the data demander device, so that the data demander device can decrypt the downloaded data files according to the encryption key obtained by decrypting the encrypted information with the private key to obtain the decrypted data files.
[0060] In a seventh aspect, the present invention provides a data sharing method, the method comprising:
[0061] Receiving a data acquisition request sent by a data demander device, wherein the data acquisition request is used to acquire a data file provided by a data owner device according to a demand publishing request sent by the data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to acquire;
[0062] The data acquisition request is sent to the blockchain subsystem so that the blockchain subsystem determines the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provides the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0063] In an eighth aspect, the present invention further provides a data sharing method, the method comprising:
[0064] Receiving a data acquisition request sent by the blockchain network access subsystem, wherein the data acquisition request is used to obtain a data file provided by a data owner device according to a demand publishing request sent by the data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain;
[0065] Determine storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0066] In a ninth aspect, the present invention further provides a data sharing device, the device comprising:
[0067] A receiving module, configured to receive a data acquisition request sent by a data demander device, wherein the data acquisition request is used to acquire a data file provided by a data owner device according to a demand publishing request sent by the data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to acquire;
[0068] A sending module is used to send the data acquisition request to the blockchain subsystem so that the blockchain subsystem can determine the storage path information of the data file required to be acquired by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0069] In a tenth aspect, the present invention further provides a data sharing device, the device comprising:
[0070] A receiving module, configured to receive a data acquisition request sent by a blockchain network access subsystem, wherein the data acquisition request is used to acquire a data file provided by a data owner device in accordance with a demand publishing request sent by a data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to acquire;
[0071] The sharing module is used to determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined storage path information in the data storage subsystem.
[0072] In an eleventh aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores an executable program, and the executable program is executed by a processor to implement the method described above.
[0073] In a twelfth aspect, the present invention further provides a data sharing device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0074] The memory is used to store computer programs;
[0075] The processor is used to implement the method steps described above when executing the program stored in the memory.
[0076] According to the scheme provided by the embodiment of the present invention, data files can be stored in the data storage subsystem, and the storage path information of the data files in the data storage subsystem can be saved in the blockchain subsystem, and data sharing based on the blockchain network can be realized by combining with an additional data storage system. Among them, the data demander device can request to obtain the sharable data file according to the brief description of the sharable data file published by the blockchain network access subsystem. The blockchain subsystem can provide the data file to the data demander device according to the storage path information of the data file in the data storage subsystem that the data demander device needs to obtain and the sharing method of the data file. It can also be that the data owner device provides the data file according to the needs of the data demander device, and then the blockchain subsystem can provide the data file to the data demander device according to the storage path information of the data file in the data storage subsystem that the data demander device needs to obtain. By saving the data file in the data storage subsystem and only saving the storage path information of the data file in the data storage subsystem in the blockchain subsystem to realize data sharing, even if the data volume of the data file is large, it will not affect the operation speed and sharing efficiency of the blockchain network, which can effectively ensure the high operation speed of the blockchain network and the high efficiency of data sharing.
[0077] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0079] Figure 1 A schematic diagram of the structure of a data sharing system provided by an embodiment of the present invention;
[0080] Figure 2 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0081] Figure 3 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0082] Figure 4 A schematic diagram of the structure of a data sharing device provided by an embodiment of the present invention;
[0083] Figure 5 A schematic diagram of the structure of a data sharing device provided by an embodiment of the present invention;
[0084] Figure 6 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0085] Figure 7 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0086] Figure 8 A schematic diagram of the structure of a data sharing device provided by an embodiment of the present invention;
[0087] Fig. 9 A schematic diagram of the structure of a data sharing device provided by an embodiment of the present invention;
[0088] Fig.10 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0089] Fig.11 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0090] Fig.12 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0091] Fig.13 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0092] Fig.14 A schematic diagram of a data sharing method according to an embodiment of the present invention;
[0093] Fig.15 A schematic diagram of the structure of a data sharing device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0094] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0095] It should be noted that the "multiple or several" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0096] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.
[0097] In addition, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, product, or apparatus.
[0098] In order to solve the problem that the current blockchain network information data sharing method does not support the sharing of information data with a large amount of data, the embodiment of the present invention introduces a data storage system based on the blockchain network, and combines the data storage system to realize information data sharing based on the blockchain network. By using the data storage subsystem to save data files, and only saving the storage path information of the data files in the data storage subsystem in the blockchain subsystem, the information data sharing based on the blockchain subsystem is also applicable to the sharing of information data with a large amount of data.
[0099] In addition, in order to solve the problem that the privacy of information data cannot be effectively guaranteed, the embodiment of the present invention proposes to introduce symmetric encryption technology, which can not only realize the privacy protection of information data, but also ensure the efficiency of data file encryption and decryption.
[0100] In addition, in the solution provided by the embodiment of the present invention, different sharing modes can be set for data files. The sharing modes of data files can include a public mode and an approval mode. And the data files can be provided to the data demander device in combination with the sharing modes of data files.
[0101] In one possible implementation, when the data file is shared in a public manner, the data owner may provide an unencrypted data file when publishing the shared data, and when the data file is shared in an approval manner, the data owner may provide an encrypted data file when publishing the shared data.
[0102] When the data file is shared in a public manner, the data demander can directly download the unencrypted data file. When the data file is shared in an approval manner, the data demander can download the encrypted data file after approval by the data owner's device, and obtain the data file after decryption, thereby further improving the privacy and security of the data file.
[0103] The embodiment of the present invention provides a data sharing system, the structure of which can be as follows: Figure 1 As shown, it includes a blockchain network access subsystem 11, a data storage subsystem 12 and a blockchain subsystem 13, wherein:
[0104] The blockchain network access subsystem 11 is used to receive a data acquisition request sent by a data demander device, and send the data acquisition request to the blockchain subsystem; wherein the data acquisition request is sent by the data demander device for the determined data file to be acquired according to the brief description of the data file published by the blockchain network access subsystem;
[0105] The data storage subsystem 12 is used to store data files;
[0106] The blockchain subsystem 13 is used to determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0107] That is, in this embodiment, the data demander device can request to obtain an existing sharable data file based on the brief description of the sharable data file. The blockchain subsystem can provide the data file to the data demander device based on the storage path information of the data file that the data demander device needs to obtain in the data storage subsystem and the sharing method of the data file.
[0108] A brief description of a data file can be understood as a description of the data provided by the data file, or can be understood as a description of the data requirements met by the data file.
[0109] The data demander can determine the data file to be obtained based on the brief description of the data file, and send a data acquisition request for the data file through the data demander device.
[0110] In one possible implementation, the blockchain subsystem 13 is specifically used to determine the sharing method of the data file required by the data acquisition request and the storage path information of the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined sharing method and the storage path information of the data storage subsystem.
[0111] That is to say, in this embodiment, a data file sharing method can be set. The blockchain subsystem can provide data files to the data demander device in combination with the data file sharing method.
[0112] In this embodiment, the sharing mode may include, but is not limited to, a public mode and an approval mode. If the sharing mode of a data file is a public mode, it can be understood that the data file allows any data demander device to share it. If the sharing mode of a data file is an approval mode, it can be understood that the sharing of the data file by the data demander device needs to be approved by the data owner device of the data file. Therefore, the privacy and security of the data file can be improved by setting the sharing mode.
[0113] Further, in a possible implementation, the data files stored in the data storage subsystem 12 can be obtained in the following manner:
[0114] The blockchain network access subsystem receives a data sharing request sent by a data owner device, and sends the data sharing request to the blockchain subsystem, wherein the data sharing request includes a data file that the data owner device needs to share, a brief description of the data file, and a sharing method for the data file;
[0115] The blockchain subsystem transfers the data file to be shared to the data storage subsystem, records the storage path information and sharing method of the data file in the data storage subsystem, and publishes a brief description of the data file through the blockchain network access subsystem.
[0116] That is to say, in this embodiment, the data storage subsystem can store data files that are actively shared by the data owner device.
[0117] The data sharing request can also carry a brief description of the data file to be shared and the sharing method, so that the data demander can know whether the data file is the data file he needs to obtain based on the brief description of the published data file, and the blockchain subsystem can provide the data file to the data demander's device based on the sharing method of the saved data file.
[0118] Of course, in addition to carrying a brief description of the data file to be shared so that the data demander can know whether the data file is the data file that he needs to obtain, the data sharing request can also carry other relevant information of the data file, such as the data industry category information of the data file (which can be understood as the industry information to which the data file belongs), so that the data demander can combine other relevant information of the data file to more clearly know whether the data file is the data file that he needs to obtain.
[0119] It should be further explained that, when the sharing mode of the data file to be shared included in the data sharing request is the approval mode, the data file to be shared may be a data file to be shared encrypted by an encryption key;
[0120] At this time, the blockchain subsystem transfers the data file that needs to be shared to the data storage subsystem, which may include: transferring the data file that needs to be shared encrypted by the encryption key to the data storage subsystem.
[0121] That is to say, in this embodiment, for data files shared in an approval manner, when the data owner device provides the data file, it can be encrypted using an encryption key and the encrypted data file can be stored in the data storage subsystem to further improve the privacy and security of the data file.
[0122] If the data owner's device encrypts a data file that is shared in an approval manner, the data demander's device needs to provide a public key when it needs to obtain the data file. When the data file that it needs to obtain is shared in an approval manner, the data owner's device can use the public key to encrypt the encryption key and send it to the data demander's device, so that the data demander's device can use the corresponding private key to decrypt the encryption key and obtain the decrypted data file.
[0123] That is to say, the data acquisition request may carry the public key corresponding to the data requester's device.
[0124] If the data file that the data demander device needs to obtain is shared in a public manner, the blockchain subsystem 13 provides the data file stored in the data storage subsystem to the data demander device according to the determined sharing manner and the storage path information in the data storage subsystem, which may include:
[0125] When the determined sharing mode is a public mode, the storage path information of the data file required to be obtained by the determined data acquisition request in the data storage subsystem is sent to the blockchain network access subsystem;
[0126] At this time, the blockchain network access subsystem 11 is also used to download data files from the data storage subsystem according to the received storage path information so that the data demander device can obtain the data file.
[0127] If the sharing mode of the data file that the data demander device needs to obtain is the approval mode, the blockchain subsystem 13 provides the data file stored in the data storage subsystem to the data demander device according to the determined sharing mode and the storage path information in the data storage subsystem, which may include:
[0128] When the determined sharing mode is the approval mode, sending the received data acquisition request to the data owner device corresponding to the data file to be acquired;
[0129] If a permission notification message is received from the data owner device through the blockchain network access subsystem, the permission notification message carries encrypted information, and the encrypted information is obtained by the data owner device using the public key to encrypt the encryption key corresponding to the data file to be obtained, the encrypted information and the storage path information of the data file to be obtained in the data storage subsystem are sent to the data demander device;
[0130] At this time, the blockchain network access subsystem 11 is also used to receive the storage path information sent by the data demander device, download the data file from the data storage subsystem according to the received storage path information, and send the downloaded data file to the data demander device, so that the data demander device can decrypt the downloaded data file according to the encryption key obtained by decrypting the encrypted information using the private key, and obtain the decrypted data file.
[0131] From the blockchain network access subsystem side, the embodiment of the present invention further provides a data sharing method, the steps of which can be as follows: Figure 2 As shown, including:
[0132] Step 101: Receive a data acquisition request sent by a data demander device.
[0133] In this step, the data acquisition request received by the blockchain network access subsystem can be understood as a request sent by the data demander device for the determined data file to be acquired based on the brief description of the data file published by the blockchain network access subsystem.
[0134] Step 102: Send the data acquisition request to the blockchain subsystem.
[0135] In this step, the blockchain network access subsystem can send the received data acquisition request to the blockchain subsystem, so that the blockchain subsystem can determine the storage path information of the data file required to be obtained by the data acquisition request in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined storage path information in the data storage subsystem.
[0136] It should be noted that, in one possible implementation, the blockchain subsystem can determine the sharing method of the data file required by the data acquisition request and the storage path information in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined sharing method and the storage path information in the data storage subsystem.
[0137] In a possible implementation, the data files stored in the data storage subsystem can be obtained in the following manner:
[0138] The blockchain network access subsystem receives a data sharing request sent by the data owner device, and sends the data sharing request to the blockchain subsystem, wherein the data sharing request includes the data file that the data owner device needs to share, a brief description of the data file, and a sharing method for the data file;
[0139] The blockchain subsystem transfers the data files that need to be shared to the data storage subsystem, records the storage path information and sharing method of the data files in the data storage subsystem, and publishes a brief description of the data files through the blockchain network access subsystem.
[0140] In a possible implementation, when the sharing mode of the data file to be shared included in the data sharing request is the approval mode, the data file to be shared is the data file to be shared encrypted by the encryption key;
[0141] The blockchain subsystem transfers the data files that need to be shared to the data storage subsystem, which may include:
[0142] The data files that need to be shared are transferred to the data storage subsystem after being encrypted by the encryption key.
[0143] At this time, in a possible implementation, the data acquisition request may carry the public key corresponding to the device of the data demander;
[0144] The blockchain subsystem provides the data demander device with the data file stored in the data storage subsystem according to the determined sharing method and the storage path information in the data storage subsystem, which may include:
[0145] When the determined sharing mode is a public mode, the storage path information of the data file required to be obtained by the determined data acquisition request in the data storage subsystem is sent to the blockchain network access subsystem;
[0146] The blockchain network access subsystem can download data files from the data storage subsystem based on the received storage path information so that the data demander's device can obtain the data file.
[0147] The blockchain subsystem provides the data demander device with the data file stored in the data storage subsystem according to the determined sharing method and the storage path information in the data storage subsystem, and may also include:
[0148] When the determined sharing mode is the approval mode, sending the received data acquisition request to the data owner device corresponding to the data file to be acquired;
[0149] If a notification message allowing acquisition is received from the data owner's device through the blockchain network access subsystem, the notification message allowing acquisition carries encrypted information, and the encrypted information is obtained by the data owner's device using the received public key to encrypt the encryption key corresponding to the data file that the data demander's device requires to obtain, the encrypted information and the storage path information of the data file that is required to be obtained in the data storage subsystem are sent to the data demander's device;
[0150] The blockchain network access subsystem can receive storage path information sent by the data demander device, download data files from the data storage subsystem according to the received storage path information, and send the downloaded data files to the data demander device, so that the data demander device can decrypt the downloaded data files according to the encryption key obtained by decrypting the encrypted information using the private key, and obtain the decrypted data files.
[0151] From the blockchain subsystem side, the embodiment of the present invention further provides a data sharing method, the steps of which can be as follows: Figure 3 As shown, including:
[0152] Step 201: Receive a data acquisition request sent by the blockchain network access subsystem.
[0153] In this step, the data acquisition request received by the blockchain subsystem is a brief description of the data file published by the blockchain network access subsystem by the data demander device, and is sent through the blockchain network access subsystem for the determined data file to be obtained.
[0154] Step 202: Share data according to the data acquisition request.
[0155] In this step, the blockchain subsystem can determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined storage path information in the data storage subsystem.
[0156] It should be noted that, in one possible implementation, the blockchain subsystem can determine the sharing method of the data file required by the data acquisition request and the storage path information in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined sharing method and the storage path information in the data storage subsystem.
[0157] In a possible implementation, the data files stored in the data storage subsystem can be obtained in the following manner:
[0158] The blockchain network access subsystem receives a data sharing request sent by the data owner device, and sends the data sharing request to the blockchain subsystem, wherein the data sharing request includes the data file that the data owner device needs to share, a brief description of the data file, and a sharing method for the data file;
[0159] The blockchain subsystem transfers the data files that need to be shared to the data storage subsystem, records the storage path information and sharing method of the data files in the data storage subsystem, and publishes a brief description of the data files through the blockchain network access subsystem.
[0160] In a possible implementation, when the sharing mode of the data file to be shared included in the data sharing request is the approval mode, the data file to be shared is the data file to be shared encrypted by the encryption key;
[0161] The blockchain subsystem transfers the data files that need to be shared to the data storage subsystem, which may include:
[0162] The data files that need to be shared are transferred to the data storage subsystem after being encrypted by the encryption key.
[0163] At this time, in a possible implementation, the data acquisition request may carry the public key corresponding to the device of the data demander;
[0164] The blockchain subsystem provides the data demander device with the data file stored in the data storage subsystem according to the determined sharing method and the storage path information in the data storage subsystem, which may include:
[0165] When the determined sharing mode is a public mode, the storage path information of the data file required to be obtained by the determined data acquisition request in the data storage subsystem is sent to the blockchain network access subsystem;
[0166] The blockchain network access subsystem can download data files from the data storage subsystem based on the received storage path information so that the data demander's device can obtain the data file.
[0167] The blockchain subsystem provides the data file stored in the data storage subsystem to the data demander device according to the determined sharing method and the storage path information in the data storage subsystem, and may also include:
[0168] When the determined sharing mode is the approval mode, sending the received data acquisition request to the data owner device corresponding to the data file to be acquired;
[0169] If a notification message allowing acquisition is received from the data owner's device through the blockchain network access subsystem, the notification message allowing acquisition carries encrypted information, and the encrypted information is obtained by the data owner's device using the received public key to encrypt the encryption key corresponding to the data file that the data demander's device requires to obtain, the encrypted information and the storage path information of the data file that is required to be obtained in the data storage subsystem are sent to the data demander's device;
[0170] The blockchain network access subsystem can receive storage path information sent by the data demander device, download data files from the data storage subsystem according to the received storage path information, and send the downloaded data files to the data demander device, so that the data demander device can decrypt the downloaded data files according to the encryption key obtained by decrypting the encrypted information using the private key, and obtain the decrypted data files.
[0171] Corresponding to the provided method, the following device is further provided.
[0172] The embodiment of the present invention provides a data sharing device, which can be integrated into a blockchain network access subsystem. The structure of the device can be as follows: Figure 4 As shown, including:
[0173] The receiving module 21 is used to receive a data acquisition request sent by a data demander device, wherein the data acquisition request is sent by the data demander device for the determined data file to be acquired according to a brief description of the data file published by the blockchain network access subsystem;
[0174] The sending module 22 is used to send the data acquisition request received by the receiving module to the blockchain subsystem, so that the blockchain subsystem can determine the storage path information of the data file required to be acquired by the data acquisition request in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined storage path information in the data storage subsystem.
[0175] The embodiment of the present invention provides a data sharing device, which can be integrated into a blockchain subsystem. The structure of the device can be as follows: Figure 5 As shown, including:
[0176] The receiving module 31 is used to receive a data acquisition request sent by the blockchain network access subsystem;
[0177] The sharing module 32 is used to determine the storage path information of the data file required to be obtained by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined storage path information in the data storage subsystem;
[0178] Among them, the data acquisition request sent by the blockchain network access subsystem is sent by the data demander device according to the brief description of the data file published by the blockchain network access subsystem, for the data file that is determined to be required to be obtained.
[0179] The functions of each functional unit of each device provided in the above embodiments of the present invention can be implemented through the steps of the above corresponding methods. Therefore, the specific working process and beneficial effects of each functional unit in each device provided in the embodiments of the present invention are not repeated here.
[0180] The embodiment of the present invention also provides a data sharing system, the structure of which can still be as follows Figure 1 As shown, it includes a blockchain network access subsystem 11, a data storage subsystem 12 and a blockchain subsystem 13. At this time:
[0181] The blockchain network access subsystem 11 is used to receive a data acquisition request sent by a data demander device, and send the data acquisition request to the blockchain subsystem; wherein the data acquisition request is used to obtain a data file provided by a data owner device according to a demand release request sent by the data demander device; the demand release request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain;
[0182] The data storage subsystem 12 is used to store data files;
[0183] The blockchain subsystem 13 is used to determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0184] That is to say, in this embodiment, the data demander device can publish the demand first, and the data owner device can provide the data file according to the demand of the data demander device. Then the blockchain subsystem can provide the data file to the data demander device according to the storage path information of the data file that the data demander device needs to obtain in the data storage subsystem.
[0185] In a possible implementation, the data files stored in the data storage subsystem are obtained in the following manner:
[0186] The blockchain network access subsystem receives a demand release request sent by the data demander device, and sends the demand release request to the blockchain subsystem; and receives a data response request sent by the data owner device, and sends the data response request to the blockchain subsystem; wherein the data response request includes a data file provided for a brief description of the data file corresponding to the demand release request;
[0187] The blockchain subsystem publishes a brief description of the data file included in the demand release request; and when receiving the data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem.
[0188] That is to say, in this embodiment, the data storage subsystem can store data files that are shared by the data owner device according to the needs of the data demander device.
[0189] In addition, in addition to a brief description of the data file, the demand release request may also include the data file sharing method and / or other relevant information of the data file (such as data industry category information of the data file), so that the data owner can be more clear whether it can provide a data file that meets the requirements of the data demander.
[0190] In one possible implementation, the data owner device can encrypt the provided data file. In this case, when the data demander device sends a demand release request, the demand release request can also carry a public key, so that the data owner device can use the public key of the numerical certificate to encrypt the encryption key used to encrypt the data file that the data demander device needs to obtain, and the data demander device can use the corresponding private key to decrypt to obtain the encryption key, and use the encryption key to decrypt to obtain the data file.
[0191] At this time, the demand publishing request may carry the public key corresponding to the data demander device;
[0192] The blockchain subsystem 13 is also used to send the public key to the data owner device through the blockchain network access subsystem according to the received data response pre-request sent by the data owner device through the blockchain network access subsystem before receiving the data response request;
[0193] The data response request may include a data file encrypted with an encryption key provided in response to a brief description of the data file corresponding to the demand publishing request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key;
[0194] When receiving the data response request, the blockchain subsystem 13 transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem, which may include:
[0195] When the data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
[0196] That is to say, in this embodiment, when the data owner device provides a data file according to the needs of the data demander device, it can encrypt the data file using an encryption key and store the encrypted data file in the data storage subsystem to improve the privacy and security of the data file.
[0197] Further, in a possible implementation, the blockchain subsystem 13 provides the data demander device with the data file stored in the data storage subsystem according to the determined storage path information in the data storage subsystem, including:
[0198] Sending the encrypted information and the storage path information of the data file to be obtained in the data storage subsystem to the blockchain network access subsystem;
[0199] At this time, the blockchain network access subsystem 11 is also used to download data files from the data storage subsystem according to the received storage path information, and send the downloaded data files and the received encryption information to the data demander device, so that the data demander device can decrypt the downloaded data files according to the encryption key obtained by decrypting the encrypted information using the private key to obtain the decrypted data files.
[0200] From the blockchain network access subsystem side, the embodiment of the present invention further provides a data sharing method, the steps of which can be as follows: Figure 6 As shown, including:
[0201] Step 301: Receive a data acquisition request sent by a data demander device.
[0202] In this step, the data acquisition request received by the blockchain network access subsystem can be understood as a data file provided by the data owner device based on the demand publishing request sent by the data demander device. The demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain.
[0203] Step 302: Send the data acquisition request to the blockchain subsystem.
[0204] In this step, the blockchain network access subsystem can send the received data acquisition request to the blockchain subsystem, so that the blockchain subsystem can determine the storage path information of the data file required to be obtained by the data acquisition request in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined storage path information in the data storage subsystem.
[0205] In a possible implementation, the data files stored in the data storage subsystem can be obtained in the following manner:
[0206] The blockchain network access subsystem receives a demand release request sent by a data demander device, and sends the demand release request to the blockchain subsystem; and receives a data response request sent by a data owner device, and sends the data response request to the blockchain subsystem; wherein the data response request includes a data file provided for a brief description of the data file corresponding to the demand release request;
[0207] The blockchain subsystem publishes a brief description of the data file included in the demand release request; and, upon receiving a data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem.
[0208] In a possible implementation, the demand release request may carry a public key corresponding to the data demander's device;
[0209] Before receiving the data response request, the blockchain subsystem may send the public key to the data owner device through the blockchain network access subsystem according to the data response pre-request received from the data owner device through the blockchain network access subsystem;
[0210] At this time, the data response request may include the data file encrypted with the encryption key provided in the brief description of the data file corresponding to the demand release request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key;
[0211] When the blockchain subsystem receives a data response request, it transfers the data file included in the data response request to the data storage subsystem and records the storage path information of the data file in the data storage subsystem, which may include:
[0212] When a data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
[0213] Further, in a possible implementation, the blockchain subsystem provides the data demander device with the data file stored in the data storage subsystem according to the determined storage path information in the data storage subsystem, which may include:
[0214] Send the encrypted information and the storage path information of the data file to be obtained in the data storage subsystem to the blockchain network access subsystem;
[0215] At this time, the blockchain network access subsystem can download the data file from the data storage subsystem according to the received storage path information, and send the downloaded data file and the received encrypted information to the data demander device, so that the data demander device can decrypt the downloaded data file according to the encryption key obtained by decrypting the encrypted information using the private key to obtain the decrypted data file.
[0216] From the blockchain subsystem side, the embodiment of the present invention further provides a data sharing method, the steps of which can be as follows: Figure 7 As shown, including:
[0217] Step 401: Receive a data acquisition request sent by the blockchain network access subsystem.
[0218] In this step, the data acquisition request received by the blockchain subsystem is used to obtain the data file provided by the data owner device based on the demand publishing request sent by the data demander device. The demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain.
[0219] Step 402: Implement data sharing according to the received data acquisition request.
[0220] In this step, the blockchain subsystem can determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data demander device based on the determined storage path information in the data storage subsystem.
[0221] In a possible implementation, the data files stored in the data storage subsystem can be obtained in the following manner:
[0222] The blockchain network access subsystem receives a demand release request sent by a data demander device, and sends the demand release request to the blockchain subsystem; and receives a data response request sent by a data owner device, and sends the data response request to the blockchain subsystem; wherein the data response request includes a data file provided for a brief description of the data file corresponding to the demand release request;
[0223] The blockchain subsystem publishes a brief description of the data file included in the demand release request; and, upon receiving a data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem.
[0224] In a possible implementation, the demand release request may carry a public key corresponding to the data demander's device;
[0225] Before receiving the data response request, the blockchain subsystem may send the public key to the data owner device through the blockchain network access subsystem according to the data response pre-request received from the data owner device through the blockchain network access subsystem;
[0226] At this time, the data response request may include the data file encrypted with the encryption key provided in the brief description of the data file corresponding to the demand release request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key;
[0227] When the blockchain subsystem receives a data response request, it transfers the data file included in the data response request to the data storage subsystem and records the storage path information of the data file in the data storage subsystem, which may include:
[0228] When a data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
[0229] Further, in a possible implementation, the blockchain subsystem provides the data demander device with the data file stored in the data storage subsystem according to the determined storage path information in the data storage subsystem, which may include:
[0230] Send the encrypted information and the storage path information of the data file to be obtained in the data storage subsystem to the blockchain network access subsystem;
[0231] At this time, the blockchain network access subsystem can download the data file from the data storage subsystem according to the received storage path information, and send the downloaded data file and the received encrypted information to the data demander device, so that the data demander device can decrypt the downloaded data file according to the encryption key obtained by decrypting the encrypted information using the private key to obtain the decrypted data file.
[0232] Corresponding to the provided method, the following device is further provided.
[0233] The embodiment of the present invention provides a data sharing device, which can be integrated into a blockchain network access subsystem. The structure of the device can be as follows: Figure 8 As shown, including:
[0234] The receiving module 41 is used to receive a data acquisition request sent by a data demander device, wherein the data acquisition request is used to acquire a data file provided by a data owner device according to a demand publishing request sent by the data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to acquire;
[0235] The sending module 42 is used to send the data acquisition request to the blockchain subsystem so that the blockchain subsystem can determine the storage path information of the data file required to be acquired by the data acquisition request in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem based on the determined storage path information in the data storage subsystem.
[0236] The embodiment of the present invention provides a data sharing device, which can be integrated into a blockchain subsystem. The structure of the device can be as follows: Fig. 9 As shown, including:
[0237] The receiving module 51 is used to receive a data acquisition request sent by the blockchain network access subsystem, wherein the data acquisition request is used to obtain a data file provided by the data owner device according to a demand release request sent by the data demander device; the demand release request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain;
[0238] The sharing module 52 is used to determine the storage path information of the data file required by the data acquisition request in the data storage subsystem, and provide the data file stored in the data storage subsystem to the data requester device based on the determined storage path information in the data storage subsystem.
[0239] The data sharing system disclosed in the embodiment of the present invention may include a blockchain network access subsystem, a data storage subsystem, and a blockchain subsystem. The blockchain network access subsystem can be used for data owners and data demanders to issue data acquisition requests, data sharing requests, and demand release requests; the data storage subsystem (such as a cloud storage system) can be used to store and download encrypted shared data files (which can be data files with large data volumes); the blockchain subsystem can be used for identity authentication, contract verification, account bookkeeping, shared data file retrieval, data file directory, and data file brief description storage. The present invention can improve the efficiency and security of information data sharing, and help achieve a balance between data privacy protection and data sharing.
[0240] The solution provided by the embodiment of the present invention improves the efficiency of encryption and decryption of large data files by integrating symmetric encryption technology, and solves the privacy protection of data files in the data sharing process. By integrating existing mature storage systems (or devices), storage performance, scalability and reliability are improved, and the shortcomings of the blockchain system in storage are well repaired.
[0241] In addition, the solution provided by the embodiment of the present invention can solve the data sharing problem when the shared data files are large and of multiple types, and can solve the problems of difficult property rights confirmation, poor security, and poor scalability in current data sharing solutions. It can better realize the safe circulation, value discovery, and reuse of Internet information data, broaden the interconnection, exchange, sharing, and business collaboration of data resources across departments and regions, and better achieve a balance between data privacy protection and data sharing.
[0242] The following takes the blockchain subsystem adopting the alliance blockchain as an example to illustrate the solution provided by the embodiment of the present invention.
[0243] In one possible way, the organization or individual who joins the alliance selects a specific smart contract approved by the alliance through the corresponding data owner device, and can package the brief description of its own data file, the industry category information of the data file, the data sharing method, the symmetrically encrypted data file and other information and apply to upload to the chain. After the identity authentication is passed, the blockchain subsystem will forward the encrypted data file to the data storage subsystem. This embodiment takes the cloud storage system as an example to illustrate, and records the brief description of the data file, the industry category information of the data file, the sharing method of the data file, the storage path of the data file in the cloud storage system and other information to the chain. The data demander who joins the alliance can determine the data file to be obtained through the corresponding data demander device according to the brief description of the shared data file on the chain, and then can obtain the data file through the blockchain subsystem according to the sharing method of the data file (public method or approval method).
[0244] When the shared data file is shared in a public manner, the data demander device can directly download the unencrypted data file from the chain. When the shared data file is shared in an approval manner, the data demander device needs to obtain the file access authorization of the data owner device, and then obtain the encrypted data file and decrypt the encrypted data file.
[0245] It should be noted that the data owner device and the data demander device can access the blockchain network subsystem through the blockchain network, and access the blockchain subsystem in an interface manner to initiate an identity verification request to join the alliance chain. After the blockchain subsystem passes the review, it will produce a digital certificate that can identify the user's identity and the corresponding key pair, and send it to the blockchain network access subsystem. The data owner device and the data demander device can save the returned key pair and digital certificate. At this point, the data owner device and the data demander device can publish data sharing requests and demand publishing requests in the blockchain network access subsystem.
[0246] The embodiment of the present invention provides a data sharing method, which mainly describes the process of a data owner device issuing a data sharing request. The steps of the method can be as follows: Fig.10 As shown, including:
[0247] In the first step, the data owner's device receives the additional information of the data file and determines the selected smart contract.
[0248] In this step, the data owner device can receive additional information of the data file to be shared and select a smart contract. The additional information of the data file may include a brief description of the data file, a sharing method of the data file, and industry category information of the data file.
[0249] In the second step, the data owner's device generates a symmetric key to encrypt the data file.
[0250] Assuming that the sharing method of the data file to be shared is approval method, in this step, the data owner device can generate a symmetric key and encrypt the data file to be shared. And can submit relevant information (additional information of the data file and the encrypted data file) through the data sharing request.
[0251] The third step is that the blockchain subsystem verifies the information.
[0252] In this step, the blockchain subsystem receives relevant information (additional information of the data file and the encrypted data file) submitted by the data owner device through the data sharing request. When it is confirmed that the data owner device needs to share data, the information can be verified.
[0253] Among them, the identity of the data owner's device can be verified, which can be understood as verifying whether the data owner corresponding to the data owner's device is a member of the alliance. It is also possible to verify whether the relevant information conforms to the format of the specified smart contract. If the verification is passed, you can proceed to step 4, otherwise, you can jump to step 6.
[0254] Step 4: The blockchain subsystem transfers the data files to the data storage subsystem.
[0255] In this step, the blockchain subsystem can transfer the encrypted data file to the data storage subsystem. If the storage is successful, you can continue to step 5, otherwise, you can jump to step 6.
[0256] Step 5: The blockchain subsystem publishes information and records transaction information.
[0257] In this step, the blockchain subsystem can publish additional information of the data file through the blockchain network access subsystem, such as a brief description, sharing method, and industry category information, and record relevant transaction information (for example, a brief description of the data file, industry category information of the data file, sharing method of the data file, storage path of the data file in the cloud storage system, etc.) to the blockchain ledger.
[0258] Step 6. The blockchain subsystem returns transaction information.
[0259] In this step, the blockchain subsystem can return transaction information to the data owner device, such as transaction hash value, transaction status information, exception information, etc. And after returning the transaction information, this process can be ended.
[0260] That is to say, in the scheme of the present invention, the data owner can symmetrically encrypt the data file to be shared in the format that conforms to the specified smart contract, add additional information such as a brief description, industry category, and sharing method, and upload it to the blockchain subsystem to complete the release of shared data. After receiving the request to upload to the chain, the blockchain subsystem can transfer the encrypted data file to the data storage subsystem and record the transaction at the same time.
[0261] The embodiment of the present invention provides a data sharing method, which mainly describes the process of a data demander device acquiring a shared data file when the data file is shared in a public manner. The steps of the method can be as follows: Fig.11 As shown, including:
[0262] The first step is that the data demander device sends a data acquisition request.
[0263] In this step, the data demander can view the list of sharable data files published by the blockchain network access subsystem through the data demander's device. When it is determined that there are data files that it needs to obtain, it can send a data acquisition request to the blockchain network access subsystem through the data demander's device, and the data acquisition request can carry its corresponding public key.
[0264] Step 2: The blockchain network access subsystem sends a data acquisition request.
[0265] In this step, the blockchain network access subsystem (which can be simply referred to as the access subsystem) can send the received data acquisition request to the blockchain subsystem.
[0266] In the third step, the blockchain subsystem verifies the identity and determines how the data files are shared.
[0267] In this step, the blockchain subsystem can verify the identity of the data demander's device. If the identity verification is passed and it is determined that the data file is shared in a public manner, the fourth step can be continued.
[0268] Step 4: The blockchain subsystem sends storage path information.
[0269] In this step, the blockchain subsystem may return the storage path information of the data file requested by the data acquisition request in the data storage subsystem to the blockchain network access subsystem.
[0270] Step 5. The blockchain network access subsystem sends a download request.
[0271] In this step, the blockchain network access subsystem can send a download request to the data storage subsystem based on the received storage path information, requesting to download the data file from the data storage subsystem.
[0272] Step 6: The data storage subsystem provides data files.
[0273] In this step, the data storage subsystem can provide the blockchain network access subsystem with the data file requested to be downloaded based on the download request of the blockchain network access subsystem.
[0274] Step 7: The data demander's device obtains the data file.
[0275] In this step, the data demander device can obtain the data file from the blockchain network access subsystem.
[0276] The embodiment of the present invention provides a data sharing method, which mainly describes the process of a data demander device obtaining a shared data file when the data file sharing mode is the approval mode. The steps of the method can be as follows: Fig.12 As shown, including:
[0277] The first step is that the data demander device sends a data acquisition request.
[0278] In this step, the data demander can view the list of sharable data files published by the blockchain network access subsystem through the data demander's device. When it is determined that there are data files that it needs to obtain, it can send a data acquisition request to the blockchain network access subsystem through the data demander's device, and the data acquisition request can carry its corresponding public key.
[0279] Step 2: The blockchain network access subsystem sends a data acquisition request.
[0280] In this step, the blockchain network access subsystem can send the received data acquisition request to the blockchain subsystem.
[0281] In the third step, the blockchain subsystem verifies the identity and determines how the data files are shared.
[0282] If the blockchain subsystem passes the identity verification of the data demander's device and determines that the data file is shared in an approved manner, you can proceed to step 4.
[0283] Step 4: The blockchain subsystem sends a data acquisition request to the data owner's device and sends a waiting approval notification to the data demander's device.
[0284] In this step, the blockchain subsystem may send a data acquisition request to the data owner device, requesting the data owner device to approve the data acquisition request sent by the data demander device.
[0285] The blockchain network access subsystem can also send a waiting approval notification to the data demander's device, prompting the data demander that the data acquisition request has been submitted and needs to wait for approval before obtaining the shared data file.
[0286] Step 5: The data owner device sends a notification message allowing access.
[0287] In this step, the data owner can view the relevant information of the data demander in the blockchain network access subsystem through the data owner's device, approve the data acquisition request, and when confirming that the data demander is allowed to obtain the data file it requested, send a permission notification message to the blockchain network access subsystem.
[0288] The permission to obtain notification message may carry encrypted information, which is obtained by the data owner's device encrypting the encryption key corresponding to the data file that it requests to obtain using the public key provided by the data demander's device.
[0289] Step 6: The blockchain network access subsystem sends a notification message allowing access.
[0290] After receiving the permission notification message, the blockchain network access subsystem can send the received permission notification message to the blockchain subsystem.
[0291] Step 7. The blockchain subsystem records transaction information.
[0292] In this step, the block subsystem can record transaction information such as the obtained encrypted information.
[0293] Step 8. The blockchain subsystem sends encrypted information and storage path information.
[0294] In this step, the block subsystem may send the encryption information and the storage path information of the data file requested by the data acquisition request in the data storage subsystem to the data demander device.
[0295] Step 9: The data demander device sends storage path information.
[0296] In this step, the data demander device can send the received storage path information to the blockchain network access subsystem.
[0297] Step 10. The blockchain network access subsystem downloads data files.
[0298] In this step, the blockchain network access subsystem can download the encrypted data file from the data storage subsystem according to the received storage path information.
[0299] Step 11. The data storage subsystem provides data files.
[0300] In this step, the data storage subsystem can provide the blockchain network access subsystem with the encrypted data file requested to be downloaded based on the download request of the blockchain network access subsystem.
[0301] Step 12: The data demander's device obtains the data file.
[0302] In this step, the data demander's device can obtain the encrypted data file from the blockchain network access subsystem.
[0303] Step 13: The data demander's device decrypts the data file.
[0304] In this step, the data demander's device can use the private key to decrypt the encrypted information, obtain the encryption key, and use the encryption key to decrypt the encrypted data file to obtain the data file shared by the data owner's device.
[0305] That is to say, in the scheme of the present invention, the data demander can view the brief description of the data file shared on the chain at any time on the blockchain network access subsystem. If it is determined that it meets its own data needs, it can initiate a data use application to the blockchain subsystem through the data demander's device carrying its own public key. The blockchain subsystem can determine how to respond to the data demander based on the sharing method of the data file specified by the data owner.
[0306] If the data sharing method is public, the data file is not encrypted, and the blockchain subsystem directly forwards the data file address on the chain to the data demander's device; if the data sharing method is approval, the blockchain subsystem will forward the data use application and the public key corresponding to the data demander's device to the data owner's device. After the data owner approves it, the data owner's device will encrypt the symmetric key used to encrypt the shared data file with the public key corresponding to the data demander's device and return it to the blockchain subsystem. The blockchain subsystem receives the approval notification, records the transaction, and returns the encrypted information and data file storage path to the data demander's device. The data demander's device receives the data file access authorization information, decrypts the encrypted information with the private key, and obtains the symmetric key of the encrypted data file. After decrypting the encrypted data file with the symmetric key, the shared data file can be obtained.
[0307] The embodiment of the present invention provides a data sharing method, which mainly describes the process of a data demander device publishing a demand publishing request. The steps of the method can be as follows: Fig.13 As shown, including:
[0308] In the first step, the data demander device receives the additional information of the data file and determines the selected smart contract.
[0309] In this step, the data demander device can receive additional information of the data file to be obtained and select a smart contract. The additional information of the data file may include a brief description of the data file, a sharing method of the data file, and industry category information of the data file.
[0310] Step 2: The data demander device sends a demand release request.
[0311] In this step, the data demander device can submit relevant information (additional information of the data file and the corresponding public key) through a demand release request.
[0312] The third step is that the blockchain subsystem verifies the information.
[0313] In this step, the blockchain subsystem receives the relevant information (additional information of the data file and the corresponding public key) submitted by the data demander device through the demand release request, and can verify the information when it is confirmed that the data owner device needs to obtain the shared data.
[0314] Among them, the identity of the data demander's device can be verified, which can be understood as verifying whether the data demander corresponding to the data demander's device is a member of the alliance. It is also possible to verify whether the relevant information conforms to the format of the specified smart contract. If the verification is passed, you can proceed to step 4, otherwise, you can jump to step 5.
[0315] Step 4: The blockchain subsystem publishes information and records transaction information.
[0316] In this step, the blockchain subsystem can publish additional information of the data file through the blockchain network access subsystem, such as a brief description, sharing method, and industry category information, and record relevant transaction information (for example, a brief description of the data file, industry category information of the data file, sharing method of the data file, and the public key corresponding to the data demander's device) to the blockchain ledger.
[0317] Step 5. The blockchain subsystem returns transaction information.
[0318] In this step, the blockchain subsystem can return transaction information to the data demander device, such as transaction hash value, transaction status information, exception information, etc. And after returning the transaction information, this process can be ended.
[0319] In other words, the data demander can fill in a brief description of the required data file, the industry category to which it belongs, the sharing method and other information, select the designated smart contract, and then access the blockchain subsystem with their own public key to apply for the demand to be displayed on the chain. After the blockchain subsystem verifies the identity, the demand will be published on the chain for public display.
[0320] The embodiment of the present invention provides a data sharing method. The method mainly describes the process of a data demander device acquiring shared data in a scenario where a data owner device provides shared data according to a demand release request issued by a data demander device. The steps of the method can be as follows: Fig.14 As shown, including:
[0321] In the first step, the data owner device sends data in response to the pre-request.
[0322] In this step, the data owner can view the list of data files that need to be obtained and published by the blockchain network access subsystem through the data owner's device. When it is determined that there are data files that can be shared by itself, the data owner can send a data response pre-request to the blockchain network access subsystem through the data owner's device.
[0323] Step 2: The blockchain network access subsystem sends data in response to the pre-request.
[0324] In this step, the blockchain network access subsystem can send the received data response pre-request to the blockchain subsystem.
[0325] Step 3: The blockchain subsystem verifies identity.
[0326] In this step, the blockchain subsystem can verify the identity of the data owner's device. If the identity verification passes, the fourth step can be performed.
[0327] Step 4: The blockchain subsystem sends the public key.
[0328] In this step, the blockchain subsystem can send the public key corresponding to the data demander device (the data demander device corresponding to the data file that can be provided by the data owner device) to the blockchain network access subsystem.
[0329] Step 5. The blockchain network access subsystem sends the public key.
[0330] In this step, the blockchain network access subsystem can send the received public key to the data owner device that sends the data response pre-request.
[0331] Step 6: The data owner's device encrypts the data file and generates encryption information.
[0332] In this step, the data owner device can use the encryption key to encrypt the data file, and use the received public key to encrypt the encryption key to obtain encrypted information.
[0333] Step 7: The data owner device sends a data response request.
[0334] In this step, the data owner's device can send a data response request to the blockchain network access subsystem, and the data response request can carry encrypted information and encrypted data files.
[0335] Step 8. The blockchain network access subsystem sends a data response request.
[0336] In this step, the blockchain network access subsystem can further send a data response request to the blockchain subsystem.
[0337] Step 9. The blockchain subsystem transfers the data files to the data storage subsystem.
[0338] In this step, the blockchain subsystem can transfer the encrypted data file to the data storage subsystem.
[0339] Step 10. The blockchain subsystem receives storage path information.
[0340] In this step, the blockchain subsystem can receive the storage path information fed back by the data storage subsystem.
[0341] Step 11. The blockchain subsystem records transaction information.
[0342] In this step, the blockchain subsystem can record relevant transaction information (for example, the storage path of the data file in the cloud storage system, the device identification of the data demander, etc.) to the blockchain ledger.
[0343] Step 12: The blockchain subsystem sends a successful response message.
[0344] In this step, the blockchain subsystem can send a response success message to the blockchain network access subsystem, prompting a successful response to a demand release request.
[0345] Step 13: The blockchain network access subsystem sends a successful response message.
[0346] In this step, the blockchain network access subsystem can send a response success message to the data owner's device, prompting the data owner's device to successfully respond to the release request.
[0347] Step 14: The data demander device sends a data acquisition request.
[0348] In this step, the data demander can check the response status of the demand release request issued by it in the blockchain network access subsystem through the data demander's device. When it is determined that the demand release request issued by it is successfully responded to, it can send a data acquisition request to the blockchain network access subsystem through the data demander's device.
[0349] Step 15: The blockchain network access subsystem sends a data acquisition request.
[0350] In this step, the blockchain network access subsystem can send a data acquisition request to the blockchain subsystem.
[0351] Step 16: The blockchain subsystem verifies identity.
[0352] In this step, the blockchain subsystem can verify the identity of the data demander's device. If the identity verification passes, the next step can be performed.
[0353] Step 17: The blockchain subsystem sends encrypted information and storage path information.
[0354] In this step, the block subsystem can send the encryption information and the storage path information of the data file requested by the data acquisition request in the data storage subsystem to the blockchain network access subsystem.
[0355] Step 18: The blockchain network access subsystem downloads data files.
[0356] In this step, the blockchain network access subsystem can download the encrypted data file from the data storage subsystem according to the received storage path information.
[0357] Step 19: The data storage subsystem provides data files.
[0358] In this step, the data storage subsystem can provide the blockchain network access subsystem with the encrypted data file requested to be downloaded based on the download request of the blockchain network access subsystem.
[0359] Step 20: The data demander's device obtains the data file.
[0360] In this step, the data demander's device can obtain the encrypted data file and encryption information from the blockchain network access subsystem.
[0361] Step 21: The data demander's device decrypts the data file.
[0362] In this step, the data demander's device can use the private key to decrypt the encrypted information, obtain the encryption key, and use the encryption key to decrypt the encrypted data file to obtain the data file shared by the data owner's device.
[0363] That is to say, the data owner can view the list of data file requirements on the blockchain network access subsystem, and can select a record in the list through the data owner's device to initiate a data sharing response application to the blockchain subsystem. After the blockchain subsystem verifies the identity, it can return the public key corresponding to the data demander's device corresponding to the record to the data owner's device. The data owner generates a file encryption symmetric key and encrypts the data file. Then, the symmetric key is encrypted using the public key corresponding to the data demander's device, and the encrypted information, encrypted data file, and a brief description of the data file are uploaded to the blockchain subsystem. The blockchain subsystem records the transaction and forwards the encrypted data file to the data storage subsystem (the data storage subsystem can be, but is not limited to, a cloud storage system or a file storage system). After the data file is stored, the blockchain subsystem can forward the data file storage path, encryption information, and a brief description of the data file to the data demander's device. The data demander's device can download the encrypted file, decrypt the encrypted information with the private key to obtain the encryption key, and then decrypt the downloaded data file to obtain the shared data file.
[0364] Based on the same inventive concept, embodiments of the present invention provide the following devices and media.
[0365] The embodiment of the present invention provides a data sharing device, the structure of which can be as follows: Fig.15 As shown, it includes a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64;
[0366] The memory 63 is used to store computer programs;
[0367] The processor 61 is used to implement the steps described in the above method embodiment of the present invention when executing the program stored in the memory.
[0368] Optionally, the processor 61 may specifically include a central processing unit (CPU), an application specific integrated circuit (ASIC), may be one or more integrated circuits for controlling program execution, may be a hardware circuit developed using a field programmable gate array (FPGA), or may be a baseband processor.
[0369] Optionally, the processor 61 may include at least one processing core.
[0370] Optionally, the memory 63 may include a read-only memory (ROM), a random access memory (RAM) and a disk memory. The memory 63 is used to store data required by at least one processor 61 when running. The number of memories 63 can be one or more.
[0371] An embodiment of the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores an executable program. When the executable program is executed by a processor, the method provided by the above method embodiment of the present invention is implemented.
[0372] In the specific implementation process, the computer storage medium may include: Universal Serial Bus Flash Drive (USB), mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other storage media that can store program codes.
[0373] In the embodiments of the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the units or division of units are only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0374] The functional units in the embodiment of the present invention may be integrated into one processing unit, or the units may be independent physical modules.
[0375] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the technical solution of the embodiment of the present invention can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device, such as a personal computer, a server, or a network device, or a processor to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a Universal Serial Bus Flash Drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and other media that can store program codes.
[0376] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0377] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0378] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0379] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0380] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0381] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A data sharing system, characterized in that: The system includes a blockchain network access subsystem, a data storage subsystem, and a blockchain subsystem, wherein: The blockchain network access subsystem is used to receive a data acquisition request sent by a data demander device, and send the data acquisition request to the blockchain subsystem; wherein the data acquisition request is sent by the data demander device for the determined data file to be acquired based on a brief description of the data file published by the blockchain network access subsystem, and the data acquisition request carries a public key corresponding to the data demander device; The data storage subsystem is used to store data files; The blockchain subsystem is used to determine the sharing mode of the data file required by the data acquisition request and the storage path information in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined sharing mode and the storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted by an encryption key; The blockchain subsystem provides the data file stored in the data storage subsystem to the data demander device according to the determined sharing mode and the storage path information in the data storage subsystem, including: When the determined sharing mode is the approval mode, sending the received data acquisition request to the data owner device corresponding to the data file to be acquired; If a permission notification message is received from the data owner device through the blockchain network access subsystem, the permission notification message carries encrypted information, and the encrypted information is obtained by the data owner device using the public key to encrypt the encryption key corresponding to the data file to be obtained, the encrypted information and the storage path information of the data file to be obtained in the data storage subsystem are sent to the data demander device; The blockchain network access subsystem is also used to receive the storage path information sent by the data demander device, download data files from the data storage subsystem according to the received storage path information, and send the downloaded data files to the data demander device, so that the data demander device can decrypt the downloaded data files according to the encryption key obtained by decrypting the encrypted information using the private key to obtain the decrypted data files.
2. The system according to claim 1, characterized in that The data files stored in the data storage subsystem are obtained in the following manner: The blockchain network access subsystem receives a data sharing request sent by a data owner device, and sends the data sharing request to the blockchain subsystem, wherein the data sharing request includes a data file that the data owner device needs to share, a brief description of the data file, and a sharing method for the data file; The blockchain subsystem transfers the data file to be shared to the data storage subsystem, records the storage path information and sharing method of the data file in the data storage subsystem, and publishes a brief description of the data file through the blockchain network access subsystem.
3. The system according to claim 2, characterized in that When the sharing mode of the data file to be shared included in the data sharing request is the approval mode, the data file to be shared is the data file to be shared encrypted by the encryption key; The blockchain subsystem transfers the data file to be shared to the data storage subsystem, including: The data file to be shared encrypted by the encryption key is transferred to the data storage subsystem.
4. The system according to claim 3, characterized in that The blockchain subsystem provides the data file stored in the data storage subsystem to the data demander device according to the determined sharing mode and the storage path information in the data storage subsystem, including: When the determined sharing mode is a public mode, the storage path information of the data file required to be obtained by the determined data acquisition request in the data storage subsystem is sent to the blockchain network access subsystem; The blockchain network access subsystem is also used to download data files from the data storage subsystem according to the received storage path information so that the data demander device can obtain the data file.
5. A data sharing method, characterized in that: The method comprises: Receiving a data acquisition request sent by a data demander device, wherein the data acquisition request is sent by the data demander device for the determined data file to be acquired according to a brief description of the data file published by the blockchain network access subsystem, and the data acquisition request carries a public key corresponding to the data demander device; The data acquisition request is sent to the blockchain subsystem so that the blockchain subsystem determines the sharing mode of the data file required by the data acquisition request and the storage path information in the data storage subsystem, and provides the data demander device with the data file stored in the data storage subsystem according to the determined sharing mode and the storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted with an encryption key; Receive the storage path information sent by the data demander device, download the data file from the data storage subsystem according to the received storage path information, and send the downloaded data file to the data demander device, so that the data demander device can decrypt the downloaded data file according to the encryption key obtained by decrypting the encrypted information with the private key to obtain the decrypted data file; wherein, the storage path information is that when the blockchain subsystem determines that the sharing mode is the approval mode, the received data acquisition request is sent to the data owner device corresponding to the data file to be obtained; if the data owner device receives the permission to obtain notification message sent by the blockchain network access subsystem, the permission to obtain notification message carries encrypted information, and the encrypted information is obtained by the data owner device using the public key to encrypt the encryption key corresponding to the data file to be obtained, the encrypted information and the determined storage path information of the data file to be obtained in the data storage subsystem are sent to the data demander device.
6. A data sharing method, characterized in that: The method comprises: Receive a data acquisition request sent by the blockchain network access subsystem, wherein the data acquisition request carries a public key corresponding to the device of the data demander; Determine the sharing mode of the data file required by the data acquisition request and the storage path information in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined sharing mode and the storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted with an encryption key; Providing the data file stored in the data storage subsystem to the data requester device according to the determined sharing mode and the storage path information in the data storage subsystem, including: When the determined sharing mode is the approval mode, sending the received data acquisition request to the data owner device corresponding to the data file to be acquired; If a permission-to-acquire notification message is received from the data owner device through the blockchain network access subsystem, the permission-to-acquire notification message carries encrypted information, and the encrypted information is obtained by the data owner device using the public key to encrypt the encryption key corresponding to the data file to be acquired, the encrypted information and the determined storage path information of the data file to be acquired in the data storage subsystem are sent to the data demander device; so that the blockchain network access subsystem receives the storage path information sent by the data demander device, downloads the data file from the data storage subsystem according to the received storage path information, and sends the downloaded data file to the data demander device, so that the data demander device decrypts the downloaded data file according to the encryption key obtained by decrypting the encrypted information using the private key, and obtains the decrypted data file; Among them, the data acquisition request sent by the blockchain network access subsystem is sent by the data demander device according to the brief description of the data file published by the blockchain network access subsystem, for the data file that is determined to be required to be obtained.
7. A data sharing device, characterized in that: The device comprises: A receiving module, configured to receive a data acquisition request sent by a data demander device, wherein the data acquisition request is sent by the data demander device for a determined data file to be acquired based on a brief description of the data file published by the blockchain network access subsystem, and the data acquisition request carries a public key corresponding to the data demander device; A sending module, used to send the data acquisition request to the blockchain subsystem, so that the blockchain subsystem determines the sharing mode of the data file required to be acquired by the data acquisition request and the storage path information in the data storage subsystem, and provides the data demander device with the data file stored in the data storage subsystem according to the determined sharing mode and the storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted by an encryption key; The receiving module is also used to receive the storage path information sent by the data demander device, download the data file from the data storage subsystem according to the received storage path information, and send the downloaded data file to the data demander device, so that the data demander device can decrypt the downloaded data file according to the encryption key obtained by decrypting the encrypted information with the private key to obtain the decrypted data file; wherein, the storage path information is that when the blockchain subsystem determines that the sharing mode is the approval mode, the received data acquisition request is sent to the data owner device corresponding to the data file to be obtained; if the data owner device receives the permission to obtain notification message sent by the blockchain network access subsystem, the permission to obtain notification message carries encrypted information, and the encrypted information is obtained by the data owner device using the public key to encrypt the encryption key corresponding to the data file to be obtained, the encrypted information and the determined storage path information of the data file to be obtained in the data storage subsystem are sent to the data demander device.
8. A data sharing device, characterized in that: The device comprises: A receiving module, used to receive a data acquisition request sent by the blockchain network access subsystem, wherein the data acquisition request carries a public key corresponding to the data demander's device; A sharing module is used to determine the sharing mode of the data file required to be obtained by the data acquisition request and the storage path information in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined sharing mode and the storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted by an encryption key; Providing the data file stored in the data storage subsystem to the data requester device according to the determined sharing mode and the storage path information in the data storage subsystem, including: When the determined sharing mode is the approval mode, sending the received data acquisition request to the data owner device corresponding to the data file to be acquired; If a permission-to-acquire notification message is received from the data owner device through the blockchain network access subsystem, the permission-to-acquire notification message carries encrypted information, and the encrypted information is obtained by the data owner device using the public key to encrypt the encryption key corresponding to the data file to be acquired, the encrypted information and the determined storage path information of the data file to be acquired in the data storage subsystem are sent to the data demander device; so that the blockchain network access subsystem receives the storage path information sent by the data demander device, downloads the data file from the data storage subsystem according to the received storage path information, and sends the downloaded data file to the data demander device, so that the data demander device decrypts the downloaded data file according to the encryption key obtained by decrypting the encrypted information using the private key, and obtains the decrypted data file; Among them, the data acquisition request sent by the blockchain network access subsystem is sent by the data demander device according to the brief description of the data file published by the blockchain network access subsystem, for the data file that is determined to be required to be obtained.
9. A data sharing system, characterized in that: The system includes a blockchain network access subsystem, a data storage subsystem, and a blockchain subsystem, wherein: The blockchain network access subsystem is used to receive a data acquisition request sent by a data demander device, and send the data acquisition request to the blockchain subsystem; wherein the data acquisition request is used to obtain a data file provided by a data owner device according to a demand release request sent by the data demander device; the demand release request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain, and the demand release request carries a public key corresponding to the data demander device; The data storage subsystem is used to store data files; The blockchain subsystem is used to determine the sharing mode of the data file required by the data acquisition request and the storage path information in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined sharing mode and the storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted by an encryption key; The blockchain subsystem is further configured to send the public key to the data owner device through the blockchain network access subsystem according to a received data response pre-request sent by the data owner device through the blockchain network access subsystem before receiving the data response request; The data response request includes a data file encrypted with an encryption key provided in response to a brief description of the data file corresponding to the demand publishing request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key; The blockchain subsystem, upon receiving the data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem, including: When the data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
10. The system according to claim 9, characterized in that The data files stored in the data storage subsystem are obtained in the following manner: The blockchain network access subsystem receives a demand release request sent by the data demander device, and sends the demand release request to the blockchain subsystem; and receives a data response request sent by the data owner device, and sends the data response request to the blockchain subsystem; wherein the data response request includes a data file provided for a brief description of the data file corresponding to the demand release request; The blockchain subsystem publishes a brief description of the data file included in the demand release request; and when receiving the data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem.
11. The system according to claim 9, characterized in that The blockchain subsystem provides the data demander device with the data file stored in the data storage subsystem according to the determined storage path information in the data storage subsystem, including: Sending the encrypted information and the storage path information of the data file to be obtained in the data storage subsystem to the blockchain network access subsystem; The blockchain network access subsystem is also used to download data files from the data storage subsystem according to the received storage path information, and send the downloaded data files and the received encrypted information to the data demander device, so that the data demander device can decrypt the downloaded data files according to the encryption key obtained by decrypting the encrypted information with the private key to obtain the decrypted data files.
12. A data sharing method, characterized in that: The method comprises: Receiving a data acquisition request sent by a data demander device, wherein the data acquisition request is used to acquire a data file provided by a data owner device according to a demand publishing request sent by the data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to acquire, and the demand publishing request carries a public key corresponding to the data demander device; The data acquisition request is sent to the blockchain subsystem so that the blockchain subsystem determines the sharing mode of the data file required to be acquired by the data acquisition request and the storage path information in the data storage subsystem, and provides the data demander device with the data file stored in the data storage subsystem according to the determined sharing mode and the storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted with an encryption key; wherein the blockchain subsystem is further used to send the public key to the data owner device through the blockchain network access subsystem according to the data response pre-request received from the data owner device through the blockchain network access subsystem before receiving the data response request; The data response request includes a data file encrypted with an encryption key provided in response to a brief description of the data file corresponding to the demand publishing request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key; The blockchain subsystem, upon receiving the data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem, including: When the data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
13. A data sharing method, characterized in that: The method comprises: Receive a data acquisition request sent by the blockchain network access subsystem, wherein the data acquisition request is used to obtain a data file provided by a data owner device according to a demand publishing request sent by a data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain, and the demand publishing request carries a public key corresponding to the data demander device; Determine a sharing mode of the data file required by the data acquisition request and storage path information in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined sharing mode and storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted with an encryption key; It is also used to send the public key to the data owner device through the blockchain network access subsystem according to the received data response pre-request sent by the data owner device through the blockchain network access subsystem before receiving the data response request; The data response request includes a data file encrypted with an encryption key provided in response to a brief description of the data file corresponding to the demand publishing request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key; Upon receiving the data response request, transferring the data file included in the data response request to the data storage subsystem, and recording the storage path information of the data file in the data storage subsystem, including: When the data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
14. A data sharing device, characterized in that: The device comprises: A receiving module, configured to receive a data acquisition request sent by a data demander device, wherein the data acquisition request is used to acquire a data file provided by a data owner device according to a demand publishing request sent by the data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file to be acquired by the data demander device, and the demand publishing request carries a public key corresponding to the data demander device; A sending module, used to send the data acquisition request to the blockchain subsystem, so that the blockchain subsystem determines the sharing mode of the data file required to be acquired by the data acquisition request and the storage path information in the data storage subsystem, and provides the data demander device with the data file stored in the data storage subsystem according to the determined sharing mode and the storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted with an encryption key; wherein the blockchain subsystem is also used to send the public key to the data owner device through the blockchain network access subsystem according to the data response pre-request received from the data owner device through the blockchain network access subsystem before receiving the data response request; The data response request includes a data file encrypted with an encryption key provided in response to a brief description of the data file corresponding to the demand publishing request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key; The blockchain subsystem, upon receiving the data response request, transfers the data file included in the data response request to the data storage subsystem, and records the storage path information of the data file in the data storage subsystem, including: When the data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
15. A data sharing device, characterized in that: The device comprises: A receiving module, configured to receive a data acquisition request sent by a blockchain network access subsystem, wherein the data acquisition request is used to obtain a data file provided by a data owner device according to a demand publishing request sent by a data demander device; the demand publishing request includes a brief description of the data file corresponding to the data file that the data demander device needs to obtain, and the demand publishing request carries a public key corresponding to the data demander device; A sharing module is used to determine a sharing mode of the data file required to be obtained by the data acquisition request and storage path information in the data storage subsystem, and provide the data requester device with the data file stored in the data storage subsystem according to the determined sharing mode and storage path information in the data storage subsystem; the sharing mode includes an approval mode, and when the sharing mode is the approval mode, the data file is a data file that needs to be shared after being encrypted with an encryption key; The sharing module is further configured to send the public key to the data owner device through the blockchain network access subsystem according to the received data response pre-request sent by the data owner device through the blockchain network access subsystem before receiving the data response request; The data response request includes a data file encrypted with an encryption key provided in response to a brief description of the data file corresponding to the demand publishing request, and encryption information, where the encryption information is obtained by encrypting the encryption key corresponding to the data file using the public key; Upon receiving the data response request, transferring the data file included in the data response request to the data storage subsystem, and recording the storage path information of the data file in the data storage subsystem, including: When the data response request is received, the data file encrypted by the encryption key included in the data response request is transferred to the data storage subsystem, and the storage path information of the data file in the data storage subsystem and the encryption information are recorded.
16. A non-volatile computer storage medium, characterized in that: The computer storage medium stores an executable program, which is executed by a processor to implement the steps of any method described in claims 5 to 6 or 12 to 13.
17. A data sharing device, characterized in that: The device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to implement the steps of any method described in claims 5 to 6 or 12 to 13 when executing the program stored in the memory.
Citation Information
Patent Citations
Block chain-based data sharing platform and implementation method thereof
CN109347941A
A file data secure sharing method and device based on a block chain
CN109862103A
Data sharing method and device based on block chain and storage medium
CN110602206A
Digital archive heterogeneous electronic file cloud disaster recovery system based on block chain
CN110688261A
Blockchain system and method based on streaming data
CN111382463A
