CN111427958A - Decentralized data sharing method based on block chain - Google Patents

Decentralized data sharing method based on block chain Download PDF

Info

Publication number
CN111427958A
CN111427958A CN202010224393.XA CN202010224393A CN111427958A CN 111427958 A CN111427958 A CN 111427958A CN 202010224393 A CN202010224393 A CN 202010224393A CN 111427958 A CN111427958 A CN 111427958A
Authority
CN
China
Prior art keywords
data
shared
stored
intelligent contract
encrypted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010224393.XA
Other languages
Chinese (zh)
Inventor
雷红路
李津
刘伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Lianhua Future Technology Co ltd
Original Assignee
Beijing Lianhua Future Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lianhua Future Technology Co ltd filed Critical Beijing Lianhua Future Technology Co ltd
Priority to CN202010224393.XA priority Critical patent/CN111427958A/en
Publication of CN111427958A publication Critical patent/CN111427958A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Abstract

The decentralized data sharing method based on the block chain comprises the following steps: acquiring data to be shared, determining whether the data to be shared needs to be encrypted for storage, wherein if the data needs to be encrypted for storage, a symmetric encryption key is generated, the data to be shared is stored, the symmetric encryption key is uploaded to an intelligent contract, data element information of the data to be shared is stored through interaction with the intelligent contract, if the data does not need to be encrypted for storage, the data to be shared is directly stored, and the data element information of the data to be shared is stored through interaction with the intelligent contract; and acquiring data element information of the stored data to be shared, wherein the stored data to be shared is encrypted data, the data to be shared is downloaded after the symmetric encryption key is interactively analyzed with the intelligent contract, and the stored data to be shared is decrypted by utilizing the analyzed symmetric encryption key.

Description

Decentralized data sharing method based on block chain
Technical Field
The disclosure relates to a block chain based decentralized data sharing method.
Background
With the advent of the big data era, the data sharing demand is more and more, and the elimination of information islands through data sharing is also the trend of the digital era. In the traditional data sharing, a large data platform is generally built by a specific organization, such as a company, a government department, a large organization and the like, so that the centralized collection, storage and application of data are realized, and the sharing of the data in the organization is realized. The mode is suitable for the interior of a centralized organization, can promote the digital transformation of the organization, and improves the operation efficiency of the organization. But this approach is not suitable for data storage and sharing among multiple organizations that are in a relationship with peers. The main reason is that multiple organizations coordinate to jointly construct a data centralized management platform, which can generate the problem of platform dominance, any organization dominance can cause disputes of other participating organizations, and the data also has the risk of privacy leakage in the circulation process, the data ownership is not easy to define, and the like, and the participation enthusiasm of each participant has no mechanism to effectively mobilize.
The block chain technology is a novel application mode of computer technologies such as comprehensive distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The block chain technology is utilized to realize decentralized data sharing, so that the defects of the traditional technical scheme can be effectively overcome, commercial innovation is brought to data sharing, and the development of digital economy is further promoted.
Disclosure of Invention
The block chain-based decentralized data sharing method solves the technical problem that a data sharing mode is not suitable for data storage and sharing among multiple organizations with equal relations.
Some embodiments of the present disclosure provide a block chain based decentralized data sharing method, including the following steps:
acquiring data to be shared, determining whether the data to be shared needs to be encrypted for storage, wherein if the data needs to be encrypted for storage, a symmetric encryption key is generated, the data to be shared is stored, the symmetric encryption key is uploaded to an intelligent contract, data element information of the data to be shared is stored through interaction with the intelligent contract, if the data does not need to be encrypted for storage, the data to be shared is directly stored, and the data element information of the data to be shared is stored through interaction with the intelligent contract;
and acquiring data element information of the stored data to be shared, wherein the stored data to be shared is encrypted data, the data to be shared is downloaded after the symmetric encryption key is interactively analyzed with the intelligent contract, the stored data to be shared is decrypted by utilizing the analyzed symmetric encryption key, and the stored data to be shared is directly downloaded if the stored data to be shared is not encrypted data.
The method for decentralized data sharing based on the block chain comprises two steps of data uploading and data downloading, and the method realizes effective data authority and data privacy protection, realizes a data sharing incentive mechanism and also solves the problem of the dominant authority of a data sharing platform by using the block chain technology. In addition, when uploading data, a user can conveniently select whether to encrypt or not, and the encrypted data and the unencrypted data have different storage modes, so that the data storage performance is optimized.
Preferably, the method further comprises the following steps:
and after the data element information of the data to be shared is stored, interacting with the intelligent contract and finishing the updating of the incentive data.
The enthusiasm of the user is improved, and the data operation result can be visually observed.
Preferably, the method further comprises the following steps:
and interacting with the intelligent contract after the stored data to be shared is obtained, and finishing the updating of the incentive data.
The enthusiasm of the user is improved, and the data operation result can be visually observed.
The decentralized data sharing device based on the block chain comprises a client and a server, wherein the client selects data to be shared, determines whether the data to be shared needs to be encrypted and stored, generates a symmetric encryption key if the data needs to be encrypted and stored, stores the data to be shared to the server, uploads the symmetric encryption key to the server of an intelligent contract, the client stores data element information of the data to be shared to the server through interaction with the intelligent contract, directly stores the data to be shared to the server if the data does not need to be encrypted and stores the data element information of the data to be shared to the server through interaction between the client and the intelligent contract;
the client side obtains data element information of the stored data to be shared, wherein the stored data to be shared is encrypted data, the client side and the intelligent contract interactively analyze the symmetric encryption key and then download the data to be shared stored by the server side, the analyzed symmetric encryption key is used for decrypting the data to be shared stored by the server side, the data to be shared stored by the server side is unencrypted data, and the client side directly downloads the stored data to be shared.
The scheme stores data by using a block chain technology, can effectively realize data storage among peer organizations, and effectively performs right determination and data privacy protection on the data.
Preferably, the data meta information includes at least a data name.
This scheme facilitates identification of the data.
Preferably, the data meta information includes at least a data structure.
This scheme facilitates identification of the data.
Preferably, the data meta information includes at least a data size.
This scheme facilitates identification of the data.
Preferably, the data meta information includes at least an access address.
This scheme facilitates identification of the data.
Drawings
The following drawings are merely exemplary, not all drawings of the disclosed embodiments, and other drawings may be obtained by those skilled in the art in light of the disclosed embodiments.
Fig. 1 is a flow chart of an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of an embodiment of the present disclosure.
Detailed Description
The present disclosure is further described below with reference to the accompanying drawings, and the following embodiments are merely exemplary and are not all embodiments of the technical solutions of the present disclosure.
As shown in fig. 1, the method for decentralized data sharing based on block chain includes the following steps:
s10, acquiring data to be shared, determining whether the data to be shared needs to be encrypted for storage, wherein if the data needs to be encrypted for storage, a symmetric encryption key is generated, the data to be shared is stored, the symmetric encryption key is uploaded to an intelligent contract, data element information of the data to be shared is stored through interaction with the intelligent contract, if the data does not need to be encrypted for storage, the data to be shared is directly stored, and the data element information of the data to be shared is stored through interaction with the intelligent contract;
and S20, obtaining data element information of the stored data to be shared, wherein the stored data to be shared is encrypted data, the data to be shared is downloaded after the symmetric encryption key is interactively analyzed with the intelligent contract, the stored data to be shared is decrypted by utilizing the analyzed symmetric encryption key, and the stored data to be shared is directly downloaded if the stored data to be shared is unencrypted data.
A possible embodiment, further comprising the steps of:
and after the data element information of the data to be shared is stored, interacting with the intelligent contract and finishing the updating of the incentive data.
A possible embodiment, further comprising the steps of:
and interacting with the intelligent contract after the stored data to be shared is obtained, and finishing the updating of the incentive data.
The following introduces a device for implementing data storage based on the above method:
as shown in fig. 2, the decentralized data sharing device based on a block chain includes a client 2 and a server 1, wherein the client selects data to be shared, determines whether the data to be shared needs to be stored in an encrypted manner, wherein a symmetric encryption key is generated if the data to be shared needs to be stored in the encrypted manner, the data to be shared is stored in the server, the symmetric encryption key is uploaded to the server, the client stores data meta information of the data to be shared to the server through interacting with an intelligent contract, the data to be shared is directly stored to the server without being stored in the encrypted manner, and the data meta information of the data to be shared is stored to the server through interacting with the intelligent contract through the client;
the client side obtains data element information of the stored data to be shared, wherein the stored data to be shared is encrypted data, the client side and the intelligent contract interactively analyze the symmetric encryption key and then download the data to be shared stored by the server side, the analyzed symmetric encryption key is used for decrypting the data to be shared stored by the server side, the data to be shared stored by the server side is unencrypted data, and the client side directly downloads the stored data to be shared.
In one possible embodiment, the data meta-information includes at least a data name. The data meta information includes at least a data structure. The data meta information includes at least a data size. The data meta information includes at least an access address.
The following method and apparatus for implementing the method are further described to facilitate understanding of the technical solutions of the present disclosure, and the following description is only exemplary and not limiting of the present disclosure.
The hardware and software of the scheme can also comprise a block chain operation platform, a data storage platform, an intelligent contract code and an application program; the block chain operation platform provides decentralized operation infrastructure, and the specific implementation form can be a public chain, a alliance chain or a private chain; the data storage platform realizes data storage and records data characteristic values, and the specific implementation form can adopt a decentralized storage technical scheme such as IPFS and the like, and can also adopt a centralized storage scheme such as Dropbox and the like; the intelligent contract codes realize the storage of data element information chains, are used for data right determination and realize user behavior excitation logic; the application program processes the service logic and is divided into a client and a server, the client realizes the functions of data encryption, data uploading, intelligent contract interaction logic and the like, and the server realizes the functions of service logic customization and data content display.
And (3) data uploading: the user uses a decentralized data sharing scheme to upload data, and the user operates an application program client according to the requirement of the data to be shared and selects whether to encrypt and store the original data: if encryption storage is selected, the application program client randomly generates a symmetric encryption key, and uses a symmetric encryption algorithm to encrypt the original data, so as to realize user data privacy protection. And after the used symmetric encryption key is encrypted by the user public key, the application program client interacts with the intelligent contract running on the chain, and the encrypted symmetric encryption key data is stored in a chain way. And the user uploads the encrypted data to the IPFS by using the application program client, completes the data link storage and records the related address information returned by the IPFS. And the user interacts with the intelligent contract running on the chain by using the application program client, and stores the original data meta-information including but not limited to data name, data structure, data size, IPFS access address and other information on the chain to complete the data right record. And if the original data are not encrypted for storage, the user directly uploads the original data to the data storage platform by using the application program client to finish the data storage under the chain, and the original data are interacted with the intelligent contract to finish the chain storage of the original data meta-information. And after the original data meta-information is stored on the chain, informing the application program server side, and interacting the server side with the intelligent contract to update the incentive data and display a related content interface.
Data downloading: the user uses the decentralized data sharing scheme to download data, and when the user uses the application program client to obtain shared data, the user firstly interacts with the intelligent contract to obtain data element information. If the acquired data is encrypted data, the application program client interacts with the intelligent contract, and the symmetric key used for symmetric encryption of the original data is analyzed by using the proxy re-encryption technology. And the application program client downloads the encrypted data from the data storage platform and decrypts the original data by utilizing the analyzed encryption key. And if the acquired data is unencrypted data, downloading the original data from the data storage platform. And after the data is successfully acquired, the application program server interacts with the intelligent contract to acquire related information, update the incentive data and perform related content interface display.
While several possible embodiments of the disclosure have been described above with reference to the accompanying drawings, it is to be understood that these embodiments are not all embodiments of the disclosure, and that other embodiments may be devised by those skilled in the art without departing from the inventive concept, and that such embodiments are within the scope of the disclosure.

Claims (8)

1. The decentralized data sharing method based on the block chain is characterized by comprising the following steps:
acquiring data to be shared, determining whether the data to be shared needs to be encrypted for storage, wherein if the data needs to be encrypted for storage, a symmetric encryption key is generated, the data to be shared is stored, the symmetric encryption key is uploaded to an intelligent contract, data element information of the data to be shared is stored through interaction with the intelligent contract, if the data does not need to be encrypted for storage, the data to be shared is directly stored, and the data element information of the data to be shared is stored through interaction with the intelligent contract;
and acquiring data element information of the stored data to be shared, wherein the stored data to be shared is encrypted data, the data to be shared is downloaded after the symmetric encryption key is interactively analyzed with the intelligent contract, the stored data to be shared is decrypted by utilizing the analyzed symmetric encryption key, and the stored data to be shared is directly downloaded if the stored data to be shared is not encrypted data.
2. The method of claim 1, wherein the method comprises: also comprises the following steps:
and after the data element information of the data to be shared is stored, interacting with the intelligent contract and finishing the updating of the incentive data.
3. The method of claim 2, wherein the method comprises: also comprises the following steps:
and interacting with the intelligent contract after the stored data to be shared is obtained, and finishing the updating of the incentive data.
4. Decentralized data sharing device based on block chain, characterized by: the data sharing method comprises a client and a server, wherein the client selects data to be shared, determines whether the data to be shared needs to be encrypted and stored, generates a symmetric encryption key if the data needs to be encrypted and stored, stores the data to be shared to the server, uploads the symmetric encryption key to the server of an intelligent contract, the client stores data element information of the data to be shared to the server through interaction with the intelligent contract, directly stores the data to be shared to the server without encryption and storage, and stores the data element information of the data to be shared to the server through interaction between the client and the intelligent contract;
the client side obtains data element information of the stored data to be shared, wherein the stored data to be shared is encrypted data, the client side and the intelligent contract interactively analyze the symmetric encryption key and then download the data to be shared stored by the server side, the analyzed symmetric encryption key is used for decrypting the data to be shared stored by the server side, the data to be shared stored by the server side is unencrypted data, and the client side directly downloads the stored data to be shared.
5. The blockchain-based decentralized data sharing apparatus according to claim 4, wherein: the data meta information includes at least a data name.
6. The blockchain-based decentralized data sharing apparatus according to claim 5, wherein: the data meta information includes at least a data structure.
7. The blockchain-based decentralized data sharing apparatus according to claim 6, wherein: the data meta information includes at least a data size.
8. The blockchain-based decentralized data sharing apparatus according to claim 7, wherein: the data meta information includes at least an access address.
CN202010224393.XA 2020-03-26 2020-03-26 Decentralized data sharing method based on block chain Pending CN111427958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010224393.XA CN111427958A (en) 2020-03-26 2020-03-26 Decentralized data sharing method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010224393.XA CN111427958A (en) 2020-03-26 2020-03-26 Decentralized data sharing method based on block chain

Publications (1)

Publication Number Publication Date
CN111427958A true CN111427958A (en) 2020-07-17

Family

ID=71548829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010224393.XA Pending CN111427958A (en) 2020-03-26 2020-03-26 Decentralized data sharing method based on block chain

Country Status (1)

Country Link
CN (1) CN111427958A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740826A (en) * 2020-07-20 2020-10-02 腾讯科技(深圳)有限公司 Encryption method, decryption method, device and equipment based on encryption proxy gateway
CN112383537A (en) * 2020-11-11 2021-02-19 杭州甘道智能科技有限公司 Trusted block chain uplink method and user application uplink system
CN112953712A (en) * 2021-02-19 2021-06-11 昆明理工大学 Block chain data cross-chain sharing method based on zero knowledge proof and homomorphic encryption
CN113742764A (en) * 2021-11-08 2021-12-03 北京中科金财科技股份有限公司 Trusted data secure storage method, retrieval method and equipment based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN109474597A (en) * 2018-11-19 2019-03-15 中链科技有限公司 A kind of distributed message based on block chain sends and receives method and device
WO2019116246A1 (en) * 2017-12-13 2019-06-20 nChain Holdings Limited System and method for multi-party generation of blockchain-based smart contract
CN110224814A (en) * 2019-06-27 2019-09-10 深圳前海微众银行股份有限公司 A kind of block chain data sharing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
WO2019116246A1 (en) * 2017-12-13 2019-06-20 nChain Holdings Limited System and method for multi-party generation of blockchain-based smart contract
CN109474597A (en) * 2018-11-19 2019-03-15 中链科技有限公司 A kind of distributed message based on block chain sends and receives method and device
CN110224814A (en) * 2019-06-27 2019-09-10 深圳前海微众银行股份有限公司 A kind of block chain data sharing method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740826A (en) * 2020-07-20 2020-10-02 腾讯科技(深圳)有限公司 Encryption method, decryption method, device and equipment based on encryption proxy gateway
CN112383537A (en) * 2020-11-11 2021-02-19 杭州甘道智能科技有限公司 Trusted block chain uplink method and user application uplink system
CN112953712A (en) * 2021-02-19 2021-06-11 昆明理工大学 Block chain data cross-chain sharing method based on zero knowledge proof and homomorphic encryption
CN112953712B (en) * 2021-02-19 2022-10-18 昆明理工大学 Data cross-chain sharing method based on zero knowledge proof and homomorphic encryption
CN113742764A (en) * 2021-11-08 2021-12-03 北京中科金财科技股份有限公司 Trusted data secure storage method, retrieval method and equipment based on block chain
CN113742764B (en) * 2021-11-08 2022-04-19 北京中科金财科技股份有限公司 Trusted data secure storage method, retrieval method and equipment based on block chain

Similar Documents

Publication Publication Date Title
CN111427958A (en) Decentralized data sharing method based on block chain
US11783056B2 (en) Systems and methods for cryptographic-chain-based group membership content sharing
US10474835B2 (en) Zero-knowledge databases
US8565422B2 (en) Method and system for enryption key versioning and key rotation in a multi-tenant environment
US9626527B2 (en) Server and method for secure and economical sharing of data
EP3556045A1 (en) P2p network data distribution and retrieval using blockchain log
CN110502916B (en) Sensitive data processing method and system based on block chain
US20080002830A1 (en) Method, system, and computer-readable medium to maintain and/or purge files of a document management system
US20120109830A1 (en) Apparatus, system and method for a decentralized social network system and decentralized payment network system
US9542864B2 (en) Methods and apparatus for digital steganography
CN110457915B (en) Efficient searchable symmetric encryption method and system with forward and backward security
CN103731395A (en) Processing method and system for files
CN109151507B (en) Video playing system and method
CN105516110A (en) Mobile equipment secure data transmission method
CN103023920A (en) Virtual machine safety protection method and virtual machine safety protection device
CN107315967B (en) Data matching method and device and computer readable storage medium
CN109377220B (en) Block chain-based media data transaction method and system and computer storage medium
CN111753320A (en) Data encryption method and device based on interceptor and computer equipment
CN112954000A (en) Privacy information management method and system based on block chain and IPFS technology
CN111414628B (en) Data storage method and device and computing equipment
CN110737905A (en) Data authorization method, data authorization device and computer storage medium
US11777724B2 (en) Data fragmentation and reconstruction
CN114244524A (en) Data sharing method and system based on block chain
TW201317823A (en) Cloud secured storage system
CN116204923A (en) Data management and data query methods and devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination