CN113111069A - Data sharing method and system based on block chain - Google Patents

Data sharing method and system based on block chain Download PDF

Info

Publication number
CN113111069A
CN113111069A CN202110485019.XA CN202110485019A CN113111069A CN 113111069 A CN113111069 A CN 113111069A CN 202110485019 A CN202110485019 A CN 202110485019A CN 113111069 A CN113111069 A CN 113111069A
Authority
CN
China
Prior art keywords
data
node
alliance
data sharing
regional autonomous
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
CN202110485019.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.)
Jiaqiao Shenzhen Investment Co ltd
Original Assignee
Yongqi Beijing 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 Yongqi Beijing Technology Co Ltd filed Critical Yongqi Beijing Technology Co Ltd
Priority to CN202110485019.XA priority Critical patent/CN113111069A/en
Publication of CN113111069A publication Critical patent/CN113111069A/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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2219Large Object storage; Management thereof
    • 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/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data sharing method and a system based on a block chain, wherein the method comprises the following steps: a plurality of nodes in a block chain sign alliance treaties and establish regional autonomous alliances; acquiring a data sharing request from any node; judging whether a node initiating a data sharing request belongs to a node in a regional autonomous union or not; if the nodes belong to the nodes in the regional autonomous alliance, acquiring shared data corresponding to the nodes, uploading the shared data to the regional autonomous alliance, and broadcasting the shared data to each node of the regional autonomous alliance for storage; if the data sharing request does not belong to the node in the regional autonomous alliance, judging whether the data sharing request meets the sharing access requirement of the regional autonomous alliance, if so, allowing the data sharing request, and recording the data sharing request by adding a timestamp; if not, the data sharing request is rejected. The invention effectively reduces the management complexity through the autonomy of each node and improves the management efficiency of data sharing among the nodes.

Description

Data sharing method and system based on block chain
Technical Field
The present invention relates to the field of data sharing technologies, and in particular, to a data sharing method and system based on a block chain.
Background
In order to ensure data security, the traditional data sharing mostly adopts an offline transmission method, the real-time performance of the method is not strong, and the problems that the consequences such as data loss and errors caused by negligence of personnel are difficult to track and the like are very obvious. With the popularization of the internet, the on-line data sharing becomes a main mode of data transmission, and has obvious advantages in timeliness compared with the off-line transmission mode. However, in recent years, internet data has exploded greatly, and higher requirements are put forward for safe and efficient data sharing means such as data supervision, privacy protection, large-capacity data storage, data fast transmission and the like.
The block chain is a technology combined by technologies such as cryptography, network and distributed storage, the characteristics of decentralization, non-tampering of information on the chain and the like of the block chain can originally solve the problem of traditional centralized access, and meanwhile, the combination of the block chain and a data sharing technology can also provide bottom-layer data construction capability for data sharing. Therefore, the application research of the enhanced block chain technology on data sharing is of great significance.
Disclosure of Invention
The invention aims to provide a data sharing method and a data sharing system based on a block chain, which effectively reduce the management complexity and improve the management efficiency of data sharing among nodes through the autonomy of each node.
In order to achieve the purpose, the invention provides the following scheme:
a data sharing method based on a block chain comprises the following steps:
s1, signing a federation treaty by a plurality of nodes in the block chain, and establishing an area autonomous federation;
s2, acquiring a data sharing request from any node;
s3, judging whether the node initiating the data sharing request belongs to the node in the regional autonomous alliance;
s4, if the node belongs to the node in the regional autonomous alliance, the shared data corresponding to the node is obtained and uploaded to the regional autonomous alliance, and the shared data is broadcasted to each node of the regional autonomous alliance to be stored;
s5, if not belonging to the node in the regional autonomous alliance, judging whether the data sharing request accords with the sharing access requirement of the regional autonomous alliance, if so, allowing the data sharing request, and recording the data sharing request with a timestamp; if not, rejecting the data sharing request.
Further, in the step S1, multiple nodes in the block chain sign a federation treaty to establish an area autonomous federation, which specifically includes:
each node collects and summarizes self data, performs data preprocessing, and formulates data subjected to data preprocessing into a shared label;
generating an identity and an identity data block which are uniquely corresponding to each node;
storing the identity identification data blocks of all the nodes in a chained mode to obtain identity identification data blocks;
and broadcasting the identity identification data blocks in the regional autonomous alliance according to the time sequence, so that the identity identification data blocks are stored in each node of the regional autonomous alliance according to the time sequence.
Further, the data preprocessing comprises removing duplicate data and invalid data.
Further, in step S3, determining whether the node initiating the data sharing request belongs to a node in the regional autonomous federation specifically includes:
the data sharing request comprises the identity identification information of the node;
and comparing the identity identification information in the acquired data sharing request with all the identity identification information stored in the alliance chain, and judging whether the node initiating the data sharing request belongs to the nodes in the regional autonomous alliance.
Further, in step S5, the regional autonomous alliance determining whether the current data sharing request meets the sharing access requirement, specifically including:
each node of the regional autonomous alliance judges whether the data sharing request is allowed or not;
the sharing access requirement of the regional autonomous alliance is that the number of the nodes which allow the current sharing request in the regional autonomous alliance is not less than 60% of the total number of the nodes.
Further, the method also includes a data sharing operation between the nodes in the regional autonomous alliance, including:
acquiring a data request instruction sent by a node A, wherein the data request instruction is used for acquiring target data;
determining a node B providing the target data according to the data request instruction, and sending a sharing instruction to the node B;
and after receiving the sharing instruction, the node B sends target data to the node A.
The invention also provides a data sharing system based on the block chain, which is applied to the data sharing method based on the block chain, and comprises the following steps:
the regional autonomous alliance building module is used for signing alliance treaties by a plurality of nodes in a block chain and building a regional autonomous alliance;
a data sharing request acquisition module, configured to acquire a data sharing request from any node;
the node judgment module is used for judging whether the node initiating the data sharing request belongs to the nodes in the regional autonomous alliance or not;
the data uploading module is used for acquiring corresponding shared data and uploading the shared data to each node of the regional autonomous alliance when the node belongs to the node in the regional autonomous alliance;
the sharing request judging module is used for judging whether the data sharing request meets the sharing access requirement of the regional autonomous alliance or not;
and the data sharing module is used for sharing data among all nodes in the regional autonomous alliance.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects: according to the data sharing method and system based on the block chain, provided by the invention, through establishing the regional autonomous alliance, mutual constraint and mutual supervision among internal nodes can be realized, the problem of information isolated island is avoided, and the management complexity is effectively reduced through the autonomy of each node; and for the node sending the data sharing request, monitoring the node performing data sharing is realized by judging whether the node belongs to the regional autonomous alliance node and whether the regional autonomous alliance sharing access requirement is met, and the management efficiency of data sharing is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a data sharing method based on a block chain according to 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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 is 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.
The invention aims to provide a data sharing method and system based on a block chain, which have simple transaction form, effectively reduce the management complexity through the autonomy of each node and improve the management efficiency of data sharing among the nodes.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As shown in fig. 1, a method for sharing data based on a block chain according to an embodiment of the present invention includes the following steps:
s1, signing a federation treaty by a plurality of nodes in the block chain, and establishing an area autonomous federation;
s2, acquiring a data sharing request from any node;
s3, judging whether the node initiating the data sharing request belongs to the node in the regional autonomous alliance; the method specifically comprises the following steps:
the data sharing request comprises the identity identification information of the node;
comparing the identity identification information in the acquired data sharing request with all the identity identification information stored in the alliance chain, and judging whether the node initiating the data sharing request belongs to the nodes in the regional autonomous alliance or not;
s4, if the node belongs to the node in the regional autonomous alliance, the shared data corresponding to the node is obtained and uploaded to the regional autonomous alliance, and the shared data is broadcasted to each node of the regional autonomous alliance to be stored;
s5, if not belonging to the node in the regional autonomous alliance, judging whether the data sharing request accords with the sharing access requirement of the regional autonomous alliance, if so, allowing the data sharing request, and recording the data sharing request with a timestamp; if not, rejecting the data sharing request.
In step S1, multiple nodes in the block chain sign a federation treaty to establish an area autonomous federation, which specifically includes:
each node collects and summarizes self data, performs data preprocessing, and formulates data subjected to data preprocessing into a shared label;
generating an identity and an identity data block which are uniquely corresponding to each node;
storing the identity identification data blocks of all the nodes in a chained mode to obtain identity identification data blocks;
and broadcasting the identity identification data blocks in the regional autonomous alliance according to the time sequence, so that the identity identification data blocks are stored in each node of the regional autonomous alliance according to the time sequence. The data preprocessing includes removing duplicate data and invalid data.
In step S5, the regional autonomous alliance determines whether the current data sharing request meets the sharing access requirement, and specifically includes:
each node of the regional autonomous alliance judges whether the data sharing request is allowed or not;
the sharing access requirement of the regional autonomous alliance is that the number of the nodes which allow the current sharing request in the regional autonomous alliance is not less than 60% of the total number of the nodes.
In addition, the method provided by the invention also comprises the data sharing operation among all nodes in the regional autonomous alliance, and the method comprises the following steps:
acquiring a data request instruction sent by a node A, wherein the data request instruction is used for acquiring target data;
determining a node B providing the target data according to the data request instruction, and sending a sharing instruction to the node B;
and after receiving the sharing instruction, the node B sends target data to the node A.
In the data sharing method based on the block chain provided in this embodiment, the sharing request sent by each node includes the identity information of the node, the obtained identity information is compared with all the identity information in the regional autonomous federation to determine whether the sharing node sent belongs to the sharing node of the federation chain, if the sharing node belongs to the sharing node of the regional autonomous federation, the sharing data of the node is shared, and the access operation joint timestamp is recorded, and the records are periodically broadcast in the regional autonomous federation to record the sharing data to the tail of the data block of the federation chain to form a new data block, and the new data block is stored in each sharing node of the federation chain.
The invention also provides a data sharing system based on the block chain, which is applied to the data sharing method based on the block chain, and comprises the following steps:
the regional autonomous alliance building module is used for signing alliance treaties by a plurality of nodes in a block chain and building a regional autonomous alliance;
a data sharing request acquisition module, configured to acquire a data sharing request from any node;
the node judgment module is used for judging whether the node initiating the data sharing request belongs to the nodes in the regional autonomous alliance or not;
the data uploading module is used for acquiring corresponding shared data and uploading the shared data to each node of the regional autonomous alliance when the node belongs to the node in the regional autonomous alliance;
the sharing request judging module is used for judging whether the data sharing request meets the sharing access requirement of the regional autonomous alliance or not;
and the data sharing module is used for sharing data among all nodes in the regional autonomous alliance.
According to the data sharing method and system based on the block chain, provided by the invention, through establishing the regional autonomous alliance, mutual constraint and mutual supervision among internal nodes can be realized, the problem of information isolated island is avoided, and the management complexity is effectively reduced through the autonomy of each node; and for the node sending the data sharing request, monitoring the node performing data sharing is realized by judging whether the node belongs to the regional autonomous alliance node and whether the regional autonomous alliance sharing access requirement is met, and the management efficiency of data sharing is improved.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (7)

1. A data sharing method based on a block chain is characterized by comprising the following steps:
s1, signing a federation treaty by a plurality of nodes in the block chain, and establishing an area autonomous federation;
s2, acquiring a data sharing request from any node;
s3, judging whether the node initiating the data sharing request belongs to the node in the regional autonomous alliance;
s4, if the node belongs to the node in the regional autonomous alliance, the shared data corresponding to the node is obtained and uploaded to the regional autonomous alliance, and the shared data is broadcasted to each node of the regional autonomous alliance to be stored;
s5, if not belonging to the node in the regional autonomous alliance, judging whether the data sharing request accords with the sharing access requirement of the regional autonomous alliance, if so, allowing the data sharing request, and recording the data sharing request with a timestamp; if not, rejecting the data sharing request.
2. The method for sharing data based on blockchain according to claim 1, wherein in the step S1, a plurality of nodes in the blockchain sign a federation treaty to establish an regional autonomous federation, specifically comprising:
each node collects and summarizes self data, performs data preprocessing, and formulates data subjected to data preprocessing into a shared label;
generating an identity and an identity data block which are uniquely corresponding to each node;
storing the identity identification data blocks of all the nodes in a chained mode to obtain identity identification data blocks;
and broadcasting the identity identification data blocks in the regional autonomous alliance according to the time sequence, so that the identity identification data blocks are stored in each node of the regional autonomous alliance according to the time sequence.
3. The blockchain-based data sharing method according to claim 2, wherein the data preprocessing includes removing duplicate data and invalid data.
4. The method according to claim 2, wherein in step S3, determining whether the node that initiates the data sharing request belongs to a node in an regional autonomous alliance specifically includes:
the data sharing request comprises the identity identification information of the node;
and comparing the identity identification information in the acquired data sharing request with all the identity identification information stored in the alliance chain, and judging whether the node initiating the data sharing request belongs to the nodes in the regional autonomous alliance.
5. The method according to claim 1, wherein in step S5, the regional autonomous union determines whether the current data sharing request meets a sharing access requirement, and specifically includes:
each node of the regional autonomous alliance judges whether the data sharing request is allowed or not;
the sharing access requirement of the regional autonomous alliance is that the number of the nodes which allow the current sharing request in the regional autonomous alliance is not less than 60% of the total number of the nodes.
6. The blockchain-based data sharing method according to claim 1, wherein the method further includes a data sharing operation between the nodes in the regional autonomous federation, including:
acquiring a data request instruction sent by a node A, wherein the data request instruction is used for acquiring target data;
determining a node B providing the target data according to the data request instruction, and sending a sharing instruction to the node B;
and after receiving the sharing instruction, the node B sends target data to the node A.
7. A block chain based data sharing system, applied to the block chain based data sharing method of any one of claims 1 to 6, comprising:
the regional autonomous alliance building module is used for signing alliance treaties by a plurality of nodes in a block chain and building a regional autonomous alliance;
a data sharing request acquisition module, configured to acquire a data sharing request from any node;
the node judgment module is used for judging whether the node initiating the data sharing request belongs to the nodes in the regional autonomous alliance or not;
the data uploading module is used for acquiring corresponding shared data and uploading the shared data to each node of the regional autonomous alliance when the node belongs to the node in the regional autonomous alliance;
the sharing request judging module is used for judging whether the data sharing request meets the sharing access requirement of the regional autonomous alliance or not;
and the data sharing module is used for sharing data among all nodes in the regional autonomous alliance.
CN202110485019.XA 2021-04-30 2021-04-30 Data sharing method and system based on block chain Pending CN113111069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110485019.XA CN113111069A (en) 2021-04-30 2021-04-30 Data sharing method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110485019.XA CN113111069A (en) 2021-04-30 2021-04-30 Data sharing method and system based on block chain

Publications (1)

Publication Number Publication Date
CN113111069A true CN113111069A (en) 2021-07-13

Family

ID=76720793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110485019.XA Pending CN113111069A (en) 2021-04-30 2021-04-30 Data sharing method and system based on block chain

Country Status (1)

Country Link
CN (1) CN113111069A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518129A (en) * 2021-07-23 2021-10-19 广东电网有限责任公司 Method and device for interconnection and sharing of electric power energy

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135209A (en) * 2017-04-21 2017-09-05 天津理工大学 A kind of data sharing method based on block chain
WO2018177124A1 (en) * 2017-03-30 2018-10-04 腾讯科技(深圳)有限公司 Service processing method and device, data sharing system and storage medium
CN110868424A (en) * 2019-11-26 2020-03-06 深圳市信联征信有限公司 Data sharing method and device based on block chain, computer equipment and storage medium
CN111221914A (en) * 2020-01-15 2020-06-02 同方知网(北京)技术有限公司 Data exchange sharing tracing method based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018177124A1 (en) * 2017-03-30 2018-10-04 腾讯科技(深圳)有限公司 Service processing method and device, data sharing system and storage medium
CN107135209A (en) * 2017-04-21 2017-09-05 天津理工大学 A kind of data sharing method based on block chain
CN110868424A (en) * 2019-11-26 2020-03-06 深圳市信联征信有限公司 Data sharing method and device based on block chain, computer equipment and storage medium
CN111221914A (en) * 2020-01-15 2020-06-02 同方知网(北京)技术有限公司 Data exchange sharing tracing method based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518129A (en) * 2021-07-23 2021-10-19 广东电网有限责任公司 Method and device for interconnection and sharing of electric power energy
CN113518129B (en) * 2021-07-23 2023-09-12 广东电网有限责任公司 Method and device for interconnection and sharing of electric power energy sources

Similar Documents

Publication Publication Date Title
CN107563004B (en) Train interval data design method based on station route conflict
CN106394615B (en) A kind of distribution station train number number tracking logical method
CN211908836U (en) Edge computing gateway based on 5G transmission
CN103684940A (en) TD-LTE (time division long term evolution) based power distribution and utilization network business management system
CN113111069A (en) Data sharing method and system based on block chain
CN111597271B (en) Power communication information storage system
CN210444305U (en) Wireless private network system
CN112511586A (en) High-speed railway intelligent traffic scheduling safety card control system based on cloud edge cooperation
CN111950146A (en) Urban rail transit network cascade failure evaluation method based on redundancy recovery
CN108848517A (en) A kind of track traffic signal covering monitoring method
CN108116456A (en) For the storage system of remote backup train operation monitoring device data
CN112214637A (en) Data storage method applied to smart community
CN109543449A (en) A kind of meta-synthetic management system based on block chain
DE102006015016B3 (en) Distributed organization of sensor networks
CN115065659A (en) Intelligent shelf data acquisition and management system based on active identification
CN113411691A (en) Power optical fiber network community division method
CN113178861A (en) Interconnection energy management system of offshore oil field group based on shore-based power supply
CN101378496A (en) Highgrade integration management system for monitoring remote video dynamically
CN113301165A (en) Intelligent cloud backup system for electric bicycle and operation method thereof
CN211698940U (en) Hydropower station centralized control system
CN111526195A (en) Decentralized information storage node communication network system and method
CN111414415A (en) Decentralized information storage node communication network system and method
CN114461728A (en) Textile industry data asset classification management method and system based on block chain
CN113659712A (en) Power equipment big data label operation platform and method
CN107060035A (en) Wireless monitoring system of municipal pipe network

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220927

Address after: Room 305, No. 188, Zhugushi Road, Wulian, Central City, Longgang Street, Longgang District, Shenzhen, Guangdong 518100

Applicant after: Jiaqiao (Shenzhen) Investment Co.,Ltd.

Address before: 100102 d-1908, 19th floor, building 222, Wangjing Xiyuan, Chaoyang District, Beijing

Applicant before: Yongqi (Beijing) Technology Co.,Ltd.