CN110868424A - Data sharing method and device based on block chain, computer equipment and storage medium - Google Patents

Data sharing method and device based on block chain, computer equipment and storage medium Download PDF

Info

Publication number
CN110868424A
CN110868424A CN201911172155.2A CN201911172155A CN110868424A CN 110868424 A CN110868424 A CN 110868424A CN 201911172155 A CN201911172155 A CN 201911172155A CN 110868424 A CN110868424 A CN 110868424A
Authority
CN
China
Prior art keywords
data
sharing
node
shared
chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911172155.2A
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.)
Shenzhen Xinlian Credit Reporting Co ltd
Original Assignee
Shenzhen Xinlian Credit Reporting 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 Shenzhen Xinlian Credit Reporting Co ltd filed Critical Shenzhen Xinlian Credit Reporting Co ltd
Priority to CN201911172155.2A priority Critical patent/CN110868424A/en
Publication of CN110868424A publication Critical patent/CN110868424A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The invention relates to a data sharing method, a device, computer equipment and a storage medium based on a block chain, wherein the method comprises the following steps: acquiring a data sharing request from a sharing node; judging whether the sharing node sending the data sharing request belongs to the sharing node of the alliance chain; if so, acquiring corresponding shared data and uploading the shared data to a shared node; and recording the shared data to the alliance chain, and broadcasting the shared data to all the shared nodes in the alliance chain for storage. The data sharing method based on the block chain enables the sharing nodes of the organizations in the alliance to be mutually restricted and supervised while sharing data, and solves the information isolated island phenomenon; the management complexity is effectively reduced through the autonomy of each sharing node; the distributed and multi-redundancy characteristics ensure that a single point failure fault does not exist in the block chain, and even if part of the shared nodes fail, the shared data in other shared nodes are not influenced, so that the distributed and multi-redundancy block chain system is more reliable than a centralized system.

Description

Data sharing method and device based on block chain, computer equipment and storage medium
Technical Field
The present invention relates to the field of data sharing, and more particularly, to a method and an apparatus for sharing data based on a block chain, a computer device, and a storage medium.
Background
With the increasing scale and value of the data of the various industries penetrated by the big data of the internet, the potential value of data sharing and mining becomes more and more important; aiming at a series of problems of how to ensure that data owners put down guesses, trusts and the like, the problem of data island is effectively solved, sensitive information, secret-related data and the like of users are protected from being illegally obtained and utilized while the shared data is opened, and the method is a basic consensus and requirement for opening the shared data.
The current data sharing method mainly comprises a traditional data sharing scheme and a centralized data sharing scheme; the traditional data sharing scheme is to use the traditional privacy protection means to realize internal sharing, and simultaneously to reduce the risk of exposing privacy data, choose to refuse external open sharing.
The centralized data sharing scheme takes a third party as a center for data opening and sharing, each data owner trusts the third party and opens data to the third party, and the data sharing process is realized by scheduling through the third party.
The existing traditional sharing scheme is used for refusing to open the data to the outside to reduce privacy risks, so that the potential value of the data cannot be mined, the benefit of the data cannot be maximized, and information construction is delayed; although the centralized data sharing scheme solves the problem of mutual distrust, the security problem caused by the fact that data are concentrated in a third party is solved, the third party cannot guarantee absolute data security, and serious consequences are caused once data leakage occurs.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a data sharing method and device based on a block chain, a computer device and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: a data sharing method based on a block chain comprises the following steps:
acquiring a data sharing request from a sharing node;
judging whether the sharing node sending the data sharing request belongs to the sharing node of the alliance chain;
if so, acquiring corresponding shared data and uploading the shared data to a shared node;
and recording the shared data to the alliance chain, and broadcasting the shared data to all the shared nodes in the alliance chain for storage.
Further, before the step of obtaining the data sharing request from the sharing node, the method further includes:
and removing repeated data and invalid data of the shared data to obtain the processed shared data.
Further, before the step of obtaining the data sharing request from the sharing node, the method further includes:
a plurality of sharing nodes are deployed to form a federation chain.
Further, the step of deploying a plurality of sharing nodes to form a federation chain includes:
initializing a sharing node;
generating an identity and an identity data block which are uniquely corresponding to each sharing node;
storing the identity identification data blocks of all the sharing nodes in a chained mode to obtain data blocks;
the data block is stored at the belonging shared node of the federation chain.
Further, after the step of storing the data block in the shared node of the federation chain, the method further includes:
receiving a new shared node joining request;
generating a new identity and an identity data block according to the adding request;
adding the new identity identification data block at the tail part of the data block to form a new data block;
the new data block is stored at the affiliated shared node of the federation chain.
The invention also adopts the following technical scheme: an apparatus for data sharing based on block chains, comprising:
a request acquisition unit, configured to acquire a data sharing request from a sharing node;
the node judgment unit is used for judging whether the sharing node sending the data sharing request belongs to the sharing node of the alliance chain;
the data uploading unit is used for acquiring corresponding shared data and uploading the shared data to the shared node if the shared node belongs to the shared node of the alliance chain;
and the data sharing unit is used for recording the shared data to the alliance chain and broadcasting the shared data to all the sharing nodes in the alliance chain for storage.
Further, the system also comprises a data processing unit and a node deployment unit;
the data processing unit is used for removing repeated data and invalid data of the shared data to obtain processed shared data;
the node deployment unit is used for deploying a plurality of sharing nodes to form a alliance chain.
Further, the node deployment unit comprises an initialization module, an identity generation module, a chained storage module and a first storage module;
the initialization module is used for initializing the shared node;
the identity generation module is used for generating an identity and an identity data block which are uniquely corresponding to each sharing node;
the chained storage module is used for storing the identity identification data blocks of all the sharing nodes in a chained mode to obtain data blocks;
the first storage module is used for storing the data block in the shared node of the alliance chain.
The invention also adopts the following technical scheme: a computer device comprising a memory having stored thereon a computer program and a processor that, when executed, implements a blockchain-based data sharing method as in any one of the above.
The invention also adopts the following technical scheme: a storage medium storing a computer program which, when executed by a processor, implements a blockchain-based data sharing method as in any one of the above.
Compared with the prior art, the invention has the beneficial effects that: the data sharing method based on the block chain enables the sharing nodes of the organizations in the alliance to be mutually restricted and supervised while sharing data, thereby solving the phenomenon of information isolated island; the management complexity is effectively reduced through the autonomy of each node; the distributed and multi-redundancy characteristics ensure that a single point failure fault does not exist in the block chain, and even if part of the shared nodes fail, the shared data in other shared nodes are not influenced, so that the distributed and multi-redundancy block chain system is more reliable than a centralized system.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a block chain-based data sharing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a block chain-based data sharing method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a block chain-based data sharing method according to another embodiment of the present invention;
fig. 4 is a sub-flowchart of a data sharing method based on a block chain according to an embodiment of the present invention;
fig. 5 is a sub-flowchart of a data sharing method based on a block chain according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a data sharing apparatus based on a block chain according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a device for sharing data based on a block chain according to another embodiment of the present invention;
fig. 8 is a schematic block diagram of a node deployment unit of a data sharing apparatus based on a blockchain according to another embodiment of the present invention;
FIG. 9 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a block chain-based data sharing method according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a data sharing method based on a block chain according to an embodiment of the present invention. The data sharing method based on the block chain is applied to a server, the server performs data interaction with terminals (a first terminal and a second terminal), and a server side is used for acquiring data sharing requests from different sharing nodes (terminals) and judging whether the sharing node sending the data sharing requests belongs to the sharing node of a alliance chain; if the judgment result is yes, the server acquires corresponding shared data and uploads the shared data to the shared node; and recording the shared data to the alliance chain, and broadcasting the shared data to all the shared nodes in the alliance chain for storage.
Fig. 2 is a schematic flowchart of a data sharing method based on a block chain according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S140.
And S110, acquiring a data sharing request from the sharing node.
In this embodiment, the scheme provides own shared data API interfaces for data characteristics owned by enterprises in a federation organization in each industry, and each enterprise can access a federation chain by authorizing independent deployment of shared nodes, and perform services such as block chain data uploading and query. When the mechanism shares data to the alliance chain, a data sharing request is sent, the server receives the data sharing request of a specific sharing node, and the data to be shared is uploaded to the corresponding sharing node according to the data sharing request.
And S120, judging whether the sharing node sending the data sharing request belongs to the sharing node of the alliance chain.
And S130, if so, acquiring corresponding shared data and uploading the shared data to the shared node.
And S140, recording the shared data to the alliance chain, and broadcasting the shared data to all the shared nodes in the alliance chain for storage.
In this embodiment, the sharing nodes belonging to the same federation organization can upload the shared data to the federation chain, so as to perform data sharing on the shared data based on the block chain. After receiving a data sharing request from a sharing node, acquiring identity identification information corresponding to the sharing node carried in the sharing request, comparing the acquired identity identification information with all identity identification information stored in a alliance chain to judge whether the sharing node sending the hydrogen belongs to the sharing node of the alliance chain, if so, performing data sharing on the sharing data of the sharing node, recording an access operation association timestamp, and periodically broadcasting the records in the alliance chain to record the sharing data to the tail of a data block of the alliance chain to form a new data block and store the new data block in each sharing node of the alliance chain; if not, the sharing node sending the request does not belong to the corresponding alliance chain. When the data sharing is carried out on the sharing node, only a data use interface is provided.
According to the scheme, the data sharing method based on the block chain enables the sharing nodes of the organizations in the alliance to be mutually restricted and supervised while sharing data, and solves the phenomenon of information isolated island; the management complexity is effectively reduced through the autonomy of each node; the distributed and multi-redundancy characteristics ensure that a single point failure fault does not exist in the block chain, and even if part of the shared nodes fail, the shared data in other shared nodes are not influenced, so that the distributed and multi-redundancy block chain system is more reliable than a centralized system.
Fig. 3 is a flowchart illustrating a data sharing method based on a block chain according to another embodiment of the present invention. As shown in fig. 3, the data sharing method based on the block chain of the present embodiment includes steps S210 to S260. Steps S230 to S260 are similar to steps S110 to S140 in the above embodiments, and are not described herein again. The added steps S210 to S220 in the present embodiment will be described in detail below.
S210, deploying a plurality of sharing nodes to form a alliance chain.
In this embodiment, when creating a federation organization composed of a plurality of sharing nodes, configuring the sharing nodes for all enterprises constituting the federation organization, where all the sharing nodes constitute a corresponding federation chain, and using a block chain-based data sharing method to make the sharing nodes of the enterprises in the federation organization mutually constrain and supervise each other while sharing data, thereby solving an "information island" phenomenon; the management complexity is effectively reduced through the autonomy of each node; the distributed and multi-redundancy characteristics ensure that a single point failure fault does not exist in the block chain, and even if part of the shared nodes fail, the shared data in other shared nodes are not influenced, so that the distributed and multi-redundancy block chain system is more reliable than a centralized system.
In one embodiment, referring to FIG. 4, step S210 includes steps S211-S216.
S211, initializing the shared node.
In an embodiment, the initialization sharing node is specifically configured to perform initialization configuration on the sharing node, all the sharing nodes form a federation organization through a predetermined configuration parameter, and all the sharing nodes in the federation organization can upload shared data and store the shared data of other sharing nodes.
S212, generating an identity and an identity data block which are uniquely corresponding to each sharing node.
In one embodiment, a unique corresponding identity is generated for each sharing node, an identity data block is generated based on the identity, and identity information is stored in the identity data block. The identity is used for identifying and positioning whether the corresponding sharing node belongs to the alliance organization, and when the sharing node is judged to belong to the sharing node of the alliance chain, the sharing data can be shared into the block chain of the alliance chain and further shared into different sharing nodes to realize distributed management of the sharing data.
S213, storing the ID data blocks of the sharing nodes in a chained mode to obtain a data block.
And S214, storing the data block in the shared node of the alliance chain.
In an embodiment, the identification data blocks of different sharing nodes are sequentially stored in a chain to generate an original data block of a federation chain according to a time sequence, and the original data block stores identification information of different sharing nodes for subsequently judging whether the sharing node sending the data sharing request belongs to the federation organization.
In an embodiment, referring to fig. 5, step S214 is followed by steps of adding a new sharing node, specifically including steps S215-S216.
S215, receiving a new sharing node joining request.
In this embodiment, when a new sharing node is added, the federation chain needs to send an addition request first, and the sharing node that has already added determines whether to accept or not, and as a result, the accepting may be accepted or not.
S216, generating a new identity and an identity data block according to the adding request.
In this embodiment, when a new shared node is accepted, parameter information of the shared node is obtained, and a new unique corresponding identity and an identity data block are generated according to the parameter information for subsequently identifying a data sharing request of the shared node.
S217, adding the new identification data block to the tail part of the data block to form a new data block.
And S218, storing the new data block in the shared node of the alliance chain.
In this embodiment, the new id data block is added to the tail of the data block to form a new data block, that is, the new data block represents that the id information of the newly added sharing node already exists in the new data block. And broadcasting a new data block to all the sharing nodes at regular time or non-regular time so as to store the new data block in all the sharing nodes, thereby realizing distributed storage of the shared data, and even if part of the sharing nodes fail, the shared data in other sharing nodes are not influenced and is more reliable than a centralized system.
And S220, removing repeated data and invalid data of the shared data to obtain the processed shared data.
In an embodiment, before uploading shared data, each authorized sharing node needs to clean the shared data to be shared, remove duplicate and invalid data, and encrypt and store sensitive data information to ensure data security.
According to the scheme, the data sharing method based on the block chain enables the sharing nodes of the organizations in the alliance to be mutually restricted and supervised while sharing data, and solves the phenomenon of information isolated island; the management complexity is effectively reduced through the autonomy of each node; the distributed and multi-redundancy characteristics ensure that a single point failure fault does not exist in the block chain, and even if part of the shared nodes fail, the shared data in other shared nodes are not influenced, so that the distributed and multi-redundancy block chain system is more reliable than a centralized system.
Fig. 6 is a schematic block diagram of a data sharing apparatus based on a block chain according to an embodiment of the present invention. As shown in fig. 6, the present invention also provides a data sharing apparatus based on a block chain, corresponding to the above data sharing method based on a block chain. The device for sharing data based on a blockchain comprises a unit for executing the method for sharing data based on a blockchain, and the device can be configured in a desktop computer, a tablet computer, a portable computer, and the like. Specifically, referring to fig. 6, the device for sharing data based on a block chain includes a request obtaining unit 10, a node determining unit 20, a data uploading unit 30, and a data sharing unit 40.
A request acquiring unit 10, configured to acquire a data sharing request from a sharing node.
In an embodiment, the scheme provides own shared data API interfaces for data characteristics owned by enterprises in alliances and aiming at the enterprises, and each enterprise can independently deploy shared nodes through authorization to access an alliance chain and conduct services such as block chain data uploading and query. When the mechanism shares data to the alliance chain, a data sharing request is sent, the server receives the data sharing request of a specific sharing node, and the data to be shared is uploaded to the corresponding sharing node according to the data sharing request.
A node judging unit 20, configured to judge whether the sharing node that issues the data sharing request belongs to a sharing node of the federation chain.
And the data uploading unit 30 is configured to, if the sharing node belongs to a sharing node of the federation chain, obtain corresponding sharing data and upload the sharing data to the sharing node.
And the data sharing unit 40 is used for recording the shared data to the alliance chain and broadcasting the shared data to all the sharing nodes in the alliance chain for storage.
In an embodiment, for the node determining unit 20, the data uploading unit 30 and the data sharing unit 40, the sharing nodes belonging to the same federation organization can upload the shared data to the federation chain, so as to share the shared data based on the block chain. After receiving a data sharing request from a sharing node, acquiring identity identification information corresponding to the sharing node carried in the sharing request, comparing the acquired identity identification information with all identity identification information stored in a alliance chain to judge whether the sharing node sending the hydrogen belongs to the sharing node of the alliance chain, if so, performing data sharing on the sharing data of the sharing node, recording an access operation association timestamp, and periodically broadcasting the records in the alliance chain to record the sharing data to the tail of a data block of the alliance chain to form a new data block and store the new data block in each sharing node of the alliance chain; if not, the sharing node sending the request does not belong to the corresponding alliance chain. When the data sharing is carried out on the sharing node, only a data use interface is provided.
According to the scheme, the data sharing method based on the block chain enables the sharing nodes of the organizations in the alliance to be mutually restricted and supervised while sharing data, and solves the phenomenon of information isolated island; the management complexity is effectively reduced through the autonomy of each node; the distributed and multi-redundancy characteristics ensure that a single point failure fault does not exist in the block chain, and even if part of the shared nodes fail, the shared data in other shared nodes are not influenced, so that the distributed and multi-redundancy block chain system is more reliable than a centralized system.
Fig. 7 is a schematic block diagram of a data sharing apparatus based on a block chain according to another embodiment of the present invention. As shown in fig. 7, the data sharing apparatus based on the blockchain according to the present embodiment adds a data processing unit 60 and a node deployment unit 50 to the above-described embodiment.
And the node deployment unit 50 is used for deploying a plurality of sharing nodes to form a federation chain.
In this embodiment, sharing nodes are initially configured for all enterprises forming an alliance organization, all the sharing nodes form a corresponding alliance chain, and the data sharing method based on the block chain enables the sharing nodes of the enterprises in the alliance organization to be mutually constrained and mutually supervised while sharing data, so that an information island phenomenon is solved; the management complexity is effectively reduced through the autonomy of each node; the distributed and multi-redundancy characteristics ensure that a single point failure fault does not exist in the block chain, and even if part of the shared nodes fail, the shared data in other shared nodes are not influenced, so that the distributed and multi-redundancy block chain system is more reliable than a centralized system.
In one embodiment, referring to fig. 8, the node deployment unit 50 includes an initialization module 51, an identity generation module 52, a chained storage module 53, and a first storage module 54.
And an initialization module 51, configured to initialize the shared node.
In an embodiment, the initialization sharing node is specifically configured to perform initialization configuration on the sharing node, all the sharing nodes form a federation organization through a predetermined configuration parameter, and all the sharing nodes in the federation organization can upload shared data and store the shared data of other sharing nodes.
A first identity generating module 52, configured to generate an identity and an identity data block that uniquely correspond to each sharing node.
In one embodiment, a unique corresponding identity is generated for each sharing node, an identity data block is generated based on the identity, and identity information is stored in the identity data block. The identity is used for identifying and positioning whether the corresponding sharing node belongs to the alliance organization, and when the identity is judged to belong to the alliance organization, the sharing data can be shared into a block chain of the alliance chain and further shared into different sharing nodes to realize distributed management of the sharing data.
And a chained storage module 53, configured to store the id data blocks of each sharing node in a chained manner, so as to obtain a data block.
A first storage module 54, configured to store the data block in the shared node of the federation chain.
In an embodiment, the identification data blocks of different sharing nodes are sequentially stored in a chain to generate an original data block of a federation chain according to a time sequence, and the original data block stores identification information of different sharing nodes for subsequently judging whether the sharing node sending the data sharing request belongs to the federation organization.
In an embodiment, referring to fig. 8, the node deployment unit 50 further includes a request receiving module 55, a second identity generating module 56, an adding module 57, and a second storing module 58.
A request receiving module 55, configured to receive a new sharing node join request.
In this embodiment, when a new sharing node is added, the federation chain needs to send an addition request first, and the sharing node that has already added determines whether to accept or not, and as a result, the accepting may be accepted or not.
And a second identity generating module 56, configured to generate a new identity and an identity data block according to the join request.
In this embodiment, when a new shared node is accepted, parameter information of the shared node is obtained, and a new unique corresponding identity and an identity data block are generated according to the parameter information for subsequently identifying a data sharing request of the shared node.
And an adding module 57, configured to add the new id data block to the tail of the data block to form a new data block.
A second storage module 58, configured to store the new data block in the shared node of the federation chain.
In this embodiment, for the adding module 57 and the second storing module 58, the new id data block is added to form a new data block at the tail of the data block, that is, the id information indicating that the newly added shared node already exists in the new data block. And broadcasting a new data block to all the sharing nodes at regular time or non-regular time so as to store the new data block in all the sharing nodes, thereby realizing distributed storage of the shared data, and even if part of the sharing nodes fail, the shared data in other sharing nodes are not influenced and is more reliable than a centralized system.
And the data processing unit 60 is configured to remove duplicate data and invalid data of the shared data to obtain processed shared data.
In an embodiment, before uploading shared data, each authorized sharing node needs to clean the shared data to be shared, remove duplicate and invalid data, and encrypt and store sensitive data information to ensure data security.
According to the scheme, the data sharing method based on the block chain enables the sharing nodes of the organizations in the alliance to be mutually restricted and supervised while sharing data, and solves the phenomenon of information isolated island; the management complexity is effectively reduced through the autonomy of each node; the distributed and multi-redundancy characteristics ensure that a single point failure fault does not exist in the block chain, and even if part of the shared nodes fail, the shared data in other shared nodes are not influenced, so that the distributed and multi-redundancy block chain system is more reliable than a centralized system.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the data sharing apparatus based on the block chain and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
Referring to fig. 9, fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 9, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 comprise program instructions that, when executed, cause the processor 502 to perform a blockchain based data sharing method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a data sharing method based on a block chain.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is adapted to run a computer program 5032 stored in the memory.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A data sharing method based on a block chain is characterized by comprising the following steps:
acquiring a data sharing request from a sharing node;
judging whether the sharing node sending the data sharing request belongs to the sharing node of the alliance chain;
if so, acquiring corresponding shared data and uploading the shared data to a shared node;
and recording the shared data to the alliance chain, and broadcasting the shared data to all the shared nodes in the alliance chain for storage.
2. The method according to claim 1, wherein the step of obtaining the data sharing request from the sharing node is preceded by:
and removing repeated data and invalid data of the shared data to obtain the processed shared data.
3. The method according to claim 1, wherein the step of obtaining the data sharing request from the sharing node is preceded by:
a plurality of sharing nodes are deployed to form a federation chain.
4. The blockchain-based data sharing method according to claim 3, wherein the step of deploying a plurality of sharing nodes to form a federation chain includes:
initializing a sharing node;
generating an identity and an identity data block which are uniquely corresponding to each sharing node;
storing the identity identification data blocks of all the sharing nodes in a chained mode to obtain data blocks;
the data block is stored at the belonging shared node of the federation chain.
5. The method according to claim 1, wherein after the step of storing the data blocks in the shared node of the federation chain, the method further comprises:
receiving a new shared node joining request;
generating a new identity and an identity data block according to the adding request;
adding the new identity identification data block at the tail part of the data block to form a new data block;
the new data block is stored at the affiliated shared node of the federation chain.
6. An apparatus for sharing data based on a blockchain, comprising:
a request acquisition unit, configured to acquire a data sharing request from a sharing node;
the node judgment unit is used for judging whether the sharing node sending the data sharing request belongs to the sharing node of the alliance chain;
the data uploading unit is used for acquiring corresponding shared data and uploading the shared data to the shared node if the shared node belongs to the shared node of the alliance chain;
and the data sharing unit is used for recording the shared data to the alliance chain and broadcasting the shared data to all the sharing nodes in the alliance chain for storage.
7. The blockchain-based data sharing apparatus according to claim 6, further comprising a data processing unit and a node deployment unit;
the data processing unit is used for removing repeated data and invalid data of the shared data to obtain processed shared data;
the node deployment unit is used for deploying a plurality of sharing nodes to form a alliance chain.
8. The device according to claim 6, wherein the node deployment unit includes an initialization module, an identity generation module, a chained storage module, and a first storage module;
the initialization module is used for initializing the shared node;
the identity generation module is used for generating an identity and an identity data block which are uniquely corresponding to each sharing node;
the chained storage module is used for storing the identity identification data blocks of all the sharing nodes in a chained mode to obtain data blocks;
the first storage module is used for storing the data block in the shared node of the alliance chain.
9. A computer device, characterized in that the computer device comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the blockchain-based data sharing method according to any one of claims 1 to 5.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, can implement the block chain based data sharing method according to any one of claims 1 to 5.
CN201911172155.2A 2019-11-26 2019-11-26 Data sharing method and device based on block chain, computer equipment and storage medium Pending CN110868424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911172155.2A CN110868424A (en) 2019-11-26 2019-11-26 Data sharing method and device based on block chain, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911172155.2A CN110868424A (en) 2019-11-26 2019-11-26 Data sharing method and device based on block chain, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110868424A true CN110868424A (en) 2020-03-06

Family

ID=69655278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911172155.2A Pending CN110868424A (en) 2019-11-26 2019-11-26 Data sharing method and device based on block chain, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110868424A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111210358A (en) * 2020-04-23 2020-05-29 成都华栖云科技有限公司 News propagation analysis method based on block chain
CN111526180A (en) * 2020-03-30 2020-08-11 中国建设银行股份有限公司 Data sharing method and device
CN111626848A (en) * 2020-06-04 2020-09-04 中国银行股份有限公司 Data processing method and system
CN111639369A (en) * 2020-06-03 2020-09-08 科大讯飞股份有限公司 Data sharing method, device, storage medium and data sharing system
CN111984996A (en) * 2020-08-17 2020-11-24 深圳市睿策者科技有限公司 Human resource information sharing processing method, device, computer and storage medium
CN112235360A (en) * 2020-09-26 2021-01-15 建信金融科技有限责任公司 Data sharing method, device and system based on alliance chain, electronic equipment and computer readable storage medium
CN112328605A (en) * 2020-11-26 2021-02-05 安徽继远软件有限公司 Block chain-based power field safety data management method and system
CN112669135A (en) * 2020-11-30 2021-04-16 泰康保险集团股份有限公司 Data acquisition method and device, computer equipment and computer readable storage medium
CN113111069A (en) * 2021-04-30 2021-07-13 永旗(北京)科技有限公司 Data sharing method and system based on block chain
CN113268382A (en) * 2021-04-19 2021-08-17 支付宝(杭州)信息技术有限公司 Method and device for switching fragment nodes in block chain system
CN113992657A (en) * 2021-10-26 2022-01-28 超越科技股份有限公司 Shared storage building method, device and medium based on cloud platform
CN114827150A (en) * 2022-04-29 2022-07-29 国网安徽省电力有限公司电力科学研究院 Internet of things terminal data uplink adaptation method, system and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991612A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and the electronic equipment shared for finance data
CN107135209A (en) * 2017-04-21 2017-09-05 天津理工大学 A kind of data sharing method based on block chain
CN107733855A (en) * 2017-08-31 2018-02-23 中国科学院信息工程研究所 A kind of block catenary system and application process that can support publicly-owned chain, alliance's chain and privately owned chain simultaneously
CN108734308A (en) * 2018-05-19 2018-11-02 深圳市图灵奇点智能科技有限公司 Management system, method, apparatus, electronic equipment, program and the medium of data
CN109067863A (en) * 2018-07-25 2018-12-21 上海点融信息科技有限责任公司 For managing the method, apparatus and storage medium of the node identification of block chain link point
CN109274524A (en) * 2018-08-28 2019-01-25 广东工业大学 A kind of equipment management and shared system based on alliance's block chain
US20190108482A1 (en) * 2017-10-06 2019-04-11 Sap Se Enablement of procurement processes with asset traceability using blockchain technology
CN110493220A (en) * 2019-08-16 2019-11-22 腾讯科技(深圳)有限公司 A kind of data sharing method based on block chain, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991612A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and the electronic equipment shared for finance data
CN107135209A (en) * 2017-04-21 2017-09-05 天津理工大学 A kind of data sharing method based on block chain
CN107733855A (en) * 2017-08-31 2018-02-23 中国科学院信息工程研究所 A kind of block catenary system and application process that can support publicly-owned chain, alliance's chain and privately owned chain simultaneously
US20190108482A1 (en) * 2017-10-06 2019-04-11 Sap Se Enablement of procurement processes with asset traceability using blockchain technology
CN108734308A (en) * 2018-05-19 2018-11-02 深圳市图灵奇点智能科技有限公司 Management system, method, apparatus, electronic equipment, program and the medium of data
CN109067863A (en) * 2018-07-25 2018-12-21 上海点融信息科技有限责任公司 For managing the method, apparatus and storage medium of the node identification of block chain link point
CN109274524A (en) * 2018-08-28 2019-01-25 广东工业大学 A kind of equipment management and shared system based on alliance's block chain
CN110493220A (en) * 2019-08-16 2019-11-22 腾讯科技(深圳)有限公司 A kind of data sharing method based on block chain, equipment and storage medium

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526180A (en) * 2020-03-30 2020-08-11 中国建设银行股份有限公司 Data sharing method and device
CN111526180B (en) * 2020-03-30 2022-05-24 中国建设银行股份有限公司 Data sharing method and device
CN111210358A (en) * 2020-04-23 2020-05-29 成都华栖云科技有限公司 News propagation analysis method based on block chain
CN111639369A (en) * 2020-06-03 2020-09-08 科大讯飞股份有限公司 Data sharing method, device, storage medium and data sharing system
CN111639369B (en) * 2020-06-03 2022-12-06 科大讯飞股份有限公司 Data sharing method, device, storage medium and data sharing system
CN111626848A (en) * 2020-06-04 2020-09-04 中国银行股份有限公司 Data processing method and system
CN111984996A (en) * 2020-08-17 2020-11-24 深圳市睿策者科技有限公司 Human resource information sharing processing method, device, computer and storage medium
CN112235360A (en) * 2020-09-26 2021-01-15 建信金融科技有限责任公司 Data sharing method, device and system based on alliance chain, electronic equipment and computer readable storage medium
CN112328605A (en) * 2020-11-26 2021-02-05 安徽继远软件有限公司 Block chain-based power field safety data management method and system
CN112328605B (en) * 2020-11-26 2024-01-12 安徽继远软件有限公司 Block chain-based power field security data management method and system
CN112669135B (en) * 2020-11-30 2024-03-08 泰康保险集团股份有限公司 Data acquisition method and device, computer equipment and computer readable storage medium
CN112669135A (en) * 2020-11-30 2021-04-16 泰康保险集团股份有限公司 Data acquisition method and device, computer equipment and computer readable storage medium
CN113268382A (en) * 2021-04-19 2021-08-17 支付宝(杭州)信息技术有限公司 Method and device for switching fragment nodes in block chain system
CN113111069A (en) * 2021-04-30 2021-07-13 永旗(北京)科技有限公司 Data sharing method and system based on block chain
CN113992657A (en) * 2021-10-26 2022-01-28 超越科技股份有限公司 Shared storage building method, device and medium based on cloud platform
CN113992657B (en) * 2021-10-26 2024-04-12 超越科技股份有限公司 Cloud platform-based shared storage construction method, equipment and medium
CN114827150B (en) * 2022-04-29 2023-11-21 国网安徽省电力有限公司电力科学研究院 Internet of things terminal data uplink adaptation method, system and storage medium
CN114827150A (en) * 2022-04-29 2022-07-29 国网安徽省电力有限公司电力科学研究院 Internet of things terminal data uplink adaptation method, system and storage medium

Similar Documents

Publication Publication Date Title
CN110868424A (en) Data sharing method and device based on block chain, computer equipment and storage medium
JP6810172B2 (en) Distributed data system with document management and access control
US20180293556A1 (en) Method and system for processing blockchain-based real-time transaction
US20200272945A1 (en) System and method of decentralized model building for machine learning and data privacy preserving using blockchain
CN110675144A (en) Enhancing non-repudiation of blockchain transactions
US10354068B2 (en) Anonymized application scanning for mobile devices
CN110830577B (en) Service request call tracking method and device, computer equipment and storage medium
KR20180002803A (en) Automatic Identification of Invalid Participants in the Security Synchronization System
US10708300B2 (en) Detection of fraudulent account usage in distributed computing systems
US20170118211A1 (en) Native enrollment of mobile devices
US20180336334A1 (en) Prevention of organizational data leakage across platforms based on device status
US20220094689A1 (en) Automatically Executing Responsive Actions Based on a Verification of an Account Lineage Chain
US10432672B2 (en) Detection of offline attempts to circumvent security policies
US11792194B2 (en) Microsegmentation for serverless computing
US10623289B1 (en) Systems and methods for detecting nonfunctional endpoint devices
US11381446B2 (en) Automatic segment naming in microsegmentation
US9407654B2 (en) Providing multi-level password and phishing protection
CN110895603A (en) Multi-system account information integration method and device
WO2017114365A1 (en) Mail attachment filing method and cloud storage server
US8959588B1 (en) Systems and methods for mitigating remote authentication service unavailability
US10671746B2 (en) Controlling access when processing intents in a dispersed storage network
CN109597823B (en) Data source configuration method, device, computer equipment and storage medium
CN110677423A (en) Data acquisition method and device based on client agent side and computer equipment
CN113312669B (en) Password synchronization method, device and storage medium
CN112306527A (en) Server upgrading method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200306

RJ01 Rejection of invention patent application after publication