CN115378943B - West-wisdom water affair scene chain data sharing method and system based on multi-layer sharing mechanism - Google Patents

West-wisdom water affair scene chain data sharing method and system based on multi-layer sharing mechanism Download PDF

Info

Publication number
CN115378943B
CN115378943B CN202211289920.0A CN202211289920A CN115378943B CN 115378943 B CN115378943 B CN 115378943B CN 202211289920 A CN202211289920 A CN 202211289920A CN 115378943 B CN115378943 B CN 115378943B
Authority
CN
China
Prior art keywords
data sharing
sharing
data
contract
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.)
Active
Application number
CN202211289920.0A
Other languages
Chinese (zh)
Other versions
CN115378943A (en
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.)
Nanjing Trusted Blockchain And Algorithm Economics Research Institute Co ltd
Original Assignee
Nanjing Trusted Blockchain And Algorithm Economics Research Institute 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 Nanjing Trusted Blockchain And Algorithm Economics Research Institute Co ltd filed Critical Nanjing Trusted Blockchain And Algorithm Economics Research Institute Co ltd
Priority to CN202211289920.0A priority Critical patent/CN115378943B/en
Publication of CN115378943A publication Critical patent/CN115378943A/en
Application granted granted Critical
Publication of CN115378943B publication Critical patent/CN115378943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • 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/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method and a system for sharing intelligent communication water affair scene chain data based on a multilayer sharing mechanism, wherein the method comprises the following steps: the contract sharing method includes the steps that a compliance node sends a shared contract signing request to a shared contract management node, the shared contract management node receives the shared contract signing requests of all compliance nodes in a data sharing participant, then audits all signing requests, after the audits are passed, a data sharing contract is generated according to the shared contract signing requests, a data sharing chain is built, the data sharing chain comprises all compliance nodes in the data sharing participant, and all compliance nodes in the data sharing participant share data according to sharing contracts. Different data sharing chains and data sharing contracts are formed according to different types and different data of data sharing, the sharing requirements of data demanders are met, and the data sharing efficiency and the data privacy are improved.

Description

West-wisdom water affair scene chain data sharing method and system based on multi-layer sharing mechanism
Technical Field
The invention relates to the technical field of water affair ecological data sharing, in particular to a method and a system for sharing wisdom water affair scene chain data based on a multi-layer sharing mechanism.
Background
With the continuous development of the information age, the information exchange of different departments and different regions is gradually increased, and the development of the computer network technology provides guarantee for information transmission. Data sharing is to enable users who use different computers and different software in different places to read data of others and perform various operations, operations and analyses.
Generally, a block chain technology is adopted to realize data sharing, and in order to ensure privacy of shared data, in the prior art, after a data requiring party node sends a data sharing request, a data providing party node sends complete information of the shared data to a block chain data sharing platform after identity authentication of the data requiring party node is passed, so that privacy of the shared data can be ensured. In addition, the data provider node sends the authorization information to the evidence storing node to store the data, so that the authorization information can be prevented from being tampered, the authenticity of the authorization information is guaranteed, and the safe sharing of the data based on the block chain is realized to a certain extent.
However, the above solution has the following drawbacks: (1) In the actual application scenario, a blockchain data sharing platform is generally built by a blockchain service provider, and an authoritative third party organization is responsible for supervision, but most of data owners are reluctant to send self complete information to the blockchain sharing platform, and the problem of data privacy cannot be thoroughly solved only by sending data to the blockchain sharing platform. Data privacy security is not further ensured by combining with techniques such as privacy computation and the like. (2) Shared categories are not subdivided into 'all data public', 'statistical result public', 'calculation result public' and the like, only the requirement of a data demand side is macroscopically described as a data directory, and different-level requirements for data in a business scene are not deeply considered. (3) When the number of nodes changes, the conventional method is to stop the node service to adjust parameters, which affects the data sharing exchange process.
Disclosure of Invention
The application provides a method and a system for sharing data of an intelligent communication water affair scene chain based on a multilayer sharing mechanism, which are used for solving the problem of data privacy safety in data sharing based on a block chain.
In a first aspect, the present application provides a method for sharing data in a smart water service scenario chain based on a multi-layer sharing mechanism, which is applied to a blockchain network composed of multiple compliance nodes and shared contract management nodes, and the method includes:
the compliance node sends a shared contract signing request to a shared contract management node, wherein the shared contract signing request comprises a data sharing participant, a data sharing type, a data sharing directory and a digital signature;
the shared contract management node receives the shared contract signing requests of all compliance nodes in the data sharing participant and verifies the shared contract signing requests of all compliance nodes in the data sharing participant;
if the verification is passed, generating a data sharing contract according to the sharing contract signing requests of all compliant nodes in the data sharing participant, and constructing a data sharing chain, wherein the data sharing chain comprises all compliant nodes in the data sharing participant;
and all compliance nodes in the data sharing participants upload data to be shared to the data sharing chain according to the data sharing contract, and acquire the data on the data sharing chain according to the data sharing contract.
In one implementable manner, the method further comprises:
the method comprises the steps that a node to be authenticated sends an identity authentication request to a shared contract management node, wherein the identity authentication request comprises node information and a digital signature;
and the shared contract management node authenticates the identity authentication request, and if the identity authentication request passes the authentication, the authenticated node is determined as a compliance node.
In one implementation, the step of the shared contract management node authenticating the identity authentication request further comprises:
the shared contract management node authenticates the identity authentication request and generates an authentication result;
if the authentication result is passed, sending a consensus request to other nodes on the chain, wherein the consensus request comprises the authentication result and the identity authentication request;
and when receiving confirmation information corresponding to the consensus requests fed back by other nodes on the chain in a preset number, determining that the identity authentication request passes the authentication.
In one implementable form, the step of auditing shared contract signing requests of all compliance nodes in the data sharing participant comprises:
the shared contract management node verifies the digital signature in the shared contract signing request;
if the verification is passed, verifying whether the data participants and the data sharing types in the sharing contract signing requests of all compliance nodes in the data sharing participants are consistent;
and if the verification result is consistent, the audit is passed.
In one implementable manner, the method further comprises:
the new compliance node sends a change request to the sharing contract management node, wherein the change request comprises a data sharing chain to be added, a data sharing type, a data sharing directory and a digital signature;
the shared contract management node audits the change request;
and if the audit is passed, the shared contract management node sends a consensus request to all nodes on the data sharing chain, wherein the consensus request comprises an audit result and a change request, receives the consensus result corresponding to the consensus request fed back by all the nodes on the data sharing chain, and if the consensus result is passed, adds a new compliance node into the data sharing chain.
In one implementable manner, the method further comprises:
a node on the data sharing chain sends a contract change request to a shared contract management node, wherein the contract change request comprises data change content and a digital signature of a shared contract;
the shared contract management node audits the change request;
and if the audit is passed, the shared contract management node sends a consensus request to other nodes on the data sharing chain, wherein the consensus request comprises an audit result and a contract change request, receives the consensus result corresponding to the consensus request fed back by the other nodes on the data sharing chain, and if the consensus result is passed, the data sharing contract is changed.
In one implementation, the data sharing type is full data sharing, partial data sharing, or private data sharing.
In an implementation manner, the step of uploading the data to be shared to the data sharing chain by all compliance nodes in the data sharing participant according to the data sharing contract further includes:
if the data sharing type is private data sharing, the privacy calculation module calculates the original data to be shared to obtain a privacy calculation result;
and uploading the privacy calculation result to the data sharing chain by all compliance nodes in the data sharing participants.
In a second aspect, the present application provides a system for sharing data in a trusted water service scenario chain based on a multi-layer sharing mechanism, the system being composed of a plurality of compliance nodes and a shared contract management node, the system being configured to perform the following method:
the compliance node sends a shared contract signing request to a shared contract management node, wherein the shared contract signing request comprises a data sharing participant, a data sharing type, a data sharing directory and a digital signature;
the shared contract management node receives the shared contract signing requests of all compliance nodes in the data sharing participant and verifies the shared contract signing requests of all compliance nodes in the data sharing participant;
if the verification is passed, generating a data sharing contract according to the sharing contract signing requests of all compliant nodes in the data sharing participant, and constructing a data sharing chain, wherein the data sharing chain comprises all compliant nodes in the data sharing participant;
and uploading data to be shared to the data sharing chain by all compliance nodes in the data sharing participants according to the data sharing contract, and acquiring the data on the data sharing chain according to the data sharing contract.
According to the technical scheme, the application provides a method and a system for sharing the data of the intelligent communication water service scene chain based on a multi-layer sharing mechanism, wherein the method comprises the following steps: the contract sharing method includes the steps that a compliance node sends a shared contract signing request to a shared contract management node, the shared contract management node receives the shared contract signing requests of all compliance nodes in a data sharing participant, then audits all signing requests, after the audits are passed, a data sharing contract is generated according to the shared contract signing requests, a data sharing chain is built, the data sharing chain comprises all compliance nodes in the data sharing participant, and all compliance nodes in the data sharing participant share data according to sharing contracts. Different data sharing chains and data sharing contracts are formed according to different types and different data of data sharing, the sharing requirements of data demanders are met, and the data sharing efficiency and the data privacy are improved.
Drawings
Fig. 1 is an application scenario diagram of a method for sharing data in a trusted water service scenario chain based on a multi-layer sharing mechanism according to the present application;
FIG. 2 is a schematic diagram of a water service chain provided herein;
FIG. 3 is a schematic diagram of a data sharing chain provided herein;
FIG. 4 is a flowchart of a method for sharing data of a trusted water service scenario chain based on a multi-layer sharing mechanism according to the present application;
FIG. 5 is a flow chart of a method for changing a data sharing chain according to the present application;
FIG. 6 is a flow diagram of a method for altering a data sharing contract as provided herein.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it should be understood that they are presented herein only to illustrate and explain the present invention and not to limit the present invention.
The application mainly aims to provide a method for sharing data of an intelligent water affair scene chain based on a multilayer sharing mechanism so as to solve the problem of data privacy safety existing in data sharing based on a block chain.
According to the first aspect, different data sharing contracts are generated and different scene chains (data sharing chains) are constructed by each participant node of data sharing according to different types and different data of the data sharing, so that each participant node of the data sharing performs data sharing on the data sharing chains according to rules of the data sharing contracts, the traditional alliance chain is different from all data chaining sharing, the scene chains (data sharing chains) inherit the principle of sharing as required, and the data sharing efficiency and the data privacy are improved while the sharing requirements of data demanders are met.
Referring to fig. 1, an application scenario diagram of the intelligent water affair scenario chain data sharing method based on the multi-layer sharing mechanism is shown, and the method provided by the present application is applied to a blockchain network formed by a plurality of compliance nodes and shared contract management nodes. The block chain bottom platform is a basic platform which provides distributed storage, information traceability and uplink non-tampering for the system, in the embodiment of the application, the block chain bottom platform ensures the recording tracking and non-tampering of the whole process of node identity information, data storage information, data sharing record and the like in the system, and the block chain bottom platform is a alliance chain.
The block chain network comprises a plurality of compliance nodes, and in the data sharing process, the compliance nodes are mainly divided into three types according to different types and different data of data sharing, namely a full sharing node, a partial sharing node and a privacy calculation node. The full sharing node is a node for sharing all data, the partial sharing node is a node for sharing partial data, and the privacy calculation node is a node for sharing the privacy calculation result. The number of the nodes is not limited to the representation in the drawing, and a plurality of nodes can be all shared, partially shared or private computing nodes.
For example, as shown in fig. 2 and 3, the water charge invoice data of the water department a needs to share all data details by the revenue department, the finance department and the third-party billing department before the reconciliation is completed. The nodes corresponding to the revenue department, the financial department and the third-party invoicing department are all shared nodes, and a data sharing chain, namely an invoice supervision chain, is formed by all the shared nodes. The revenue statistical data, the real-time water inlet and outlet data and the like of the water division A need revenue departments, water supply production departments, equipment management departments, and a big data center of the water division A to share data, and only the statistical result and key data indexes need to be shared without sharing details. The nodes corresponding to the large data center of the water division A, the revenue department, the water supply production department, the equipment management department and the water division A are partial sharing nodes, and a data sharing chain, namely the internal data sharing chain of the water division A, is formed by the partial sharing nodes. A. B, C three-department-of-water department big data center needs to be calculated cooperatively, A, B, C three-department-of-water department big data center only needs to share the calculation result, and does not need to share the original data. The nodes corresponding to the large data centers of A, B, C three water chests are privacy calculation nodes, and the privacy calculation nodes form a data sharing chain, namely a water chests external privacy calculation cooperation chain. In specific implementation, a privacy calculation module needs to be deployed at a node end corresponding to a large data center of A, B, C three-family water department, when the privacy calculation result needs to be shared, original data to be shared cannot be out of the domain, local calculation is performed on the original data through the privacy calculation module to obtain the privacy calculation result, and the privacy calculation result is shared.
It is understood that in different data sharing processes, the compliance node may be a fully shared node, or may be a partially shared node or a private computing node. For example, as shown in fig. 3, the node of the company a may be all shared nodes in the trusted invoice custody chain, or may be part of shared nodes in the company a.
Based on the application scenario, as shown in fig. 4, the method of the present application includes:
s100, the compliance node sends a shared contract signing request to the shared contract management node, wherein the shared contract signing request comprises a data sharing participant, a data sharing type, a data sharing directory and a digital signature.
The data sharing participants comprise all participant nodes for data sharing, the data sharing type is all data sharing, partial data sharing or private data sharing, and the data sharing directory is a directory of data to be shared. For example, if two compliance nodes a and B need to share all their own service data, a shared contract signing request is sent to the shared contract management node, where the shared contract signing request includes a data sharing party: a and B; the data sharing type is as follows: all data are shared; the data sharing directory and the digital signature of each node, etc.
In some embodiments, in order to ensure the credibility of the data sharing participant node, the nodes in the block chain need to be subjected to identity authentication through the sharing contract management node, the authenticated nodes are determined to be compliance nodes, and the compliance nodes are given the authority to perform data sharing. The step of determining a compliance node comprises:
and the node to be authenticated sends an identity authentication request to the shared contract management node, wherein the identity authentication request comprises node information and a digital signature.
And the shared contract management node authenticates the identity authentication request, and if the identity authentication request passes the authentication, the authenticated node is determined as a compliance node.
In some embodiments, the step of the shared contract management node authenticating the identity authentication request further comprises:
and the shared contract management node authenticates the identity authentication request and generates an authentication result.
And if the authentication result is passed, sending a consensus request to other nodes on the chain, wherein the consensus request comprises the authentication result and the identity authentication request.
And when receiving confirmation information corresponding to the consensus requests fed back by other nodes on the chain in a preset number, determining that the identity authentication request passes the authentication.
In this embodiment, a node to be authenticated sends an identity authentication request to a shared contract management node, and the shared contract management node authenticates the identity authentication request to verify whether node information and a digital signature of the node to be authenticated are true and valid, and if the node information and the digital signature are not valid, the identity authentication request is directly rejected, and subsequent steps are not executed. If the verification is passed, generating a passed authentication result, broadcasting the authentication result to all nodes, and sending a consensus request to other nodes on the chain to ensure that the other nodes carry out correctness verification according to the authentication node and the identity authentication request, feeding back confirmation information to the shared contract management node when the consensus request is verified to be correct, and confirming that the identity authentication request passes the authentication when the shared contract management node receives the confirmation information fed back by the other nodes reaching the preset number.
And S200, the shared contract management node receives the shared contract signing requests of all compliance nodes in the data sharing participant and verifies the shared contract signing requests of all compliance nodes in the data sharing participant.
In this embodiment, if each node in the block link network has a need for data sharing, each node of the data sharing participant may send a shared contract signing request to the shared contract management node according to the data sharing needs of different levels, and the shared contract management node checks all shared contract signing requests after receiving the requests of all nodes in the data sharing participant in the shared contract signing request.
It should be noted that the shared contract management node needs to receive the shared contract signing requests of all nodes of the data sharing participant and then perform auditing. All nodes of the data sharing participant may simultaneously send a shared contract signing request to the shared contract management node. In some embodiments, the shared contract signing request sent by part of the nodes of the data sharing participant is received by the shared contract management node, and the solicitation information can be sent to other nodes of the data sharing participant so that the other nodes of the data sharing participant send the shared contract signing request to the shared contract management node.
In some embodiments, the step of auditing the shared contract signing requests of all compliance nodes in the data sharing participant comprises:
the shared contract management node verifies the digital signature in the shared contract signing request.
And if the verification is passed, verifying whether the data participants and the data sharing types in the sharing contract signing requests of all compliance nodes in the data sharing participants are consistent.
And if the verification result is consistent, the audit is passed.
In this embodiment, the shared contract management node first verifies the digital signature in the shared contract signing request, that is, verifies whether the node sending the shared contract signing request is a compliant node, if the verification fails, that is, the node sending the shared contract signing request has a non-compliant node, then refutes all shared contract signing requests, if the verification passes, then continuously verifies whether the data participants and the data sharing type in all shared contract signing requests are consistent, if not, then refutes all shared contract signing requests, and if so, then the audit passes.
And S300, if the verification is passed, generating a data sharing contract according to the sharing contract signing requests of all compliant nodes in the data sharing participant, and constructing a data sharing chain, wherein the data sharing chain comprises all compliant nodes in the data sharing participant.
And S400, uploading the data to be shared to the data sharing chain by all compliance nodes in the data sharing participants according to the data sharing contract.
And S500, all compliance nodes in the data sharing participator acquire the data on the data sharing chain according to the data sharing contract.
In this embodiment, after the sharing contract signing requests of all compliance nodes in the data sharing participant are approved, the data sharing contract signed by all compliance nodes in the data sharing participant is validated, and the data sharing contract includes the data sharing participant, a data sharing type, and a data sharing directory of each data sharing participant. Each valid data sharing contract forms a dedicated scene chain, namely a data sharing chain, wherein the data sharing chain comprises all compliance nodes in the data sharing participants, and all the compliance nodes in the data sharing participants can share and exchange specific data on the data sharing chain according to the participation sharing nodes and the sharing data types specified in the data sharing contract. For example, the data sharing contract becomes effective when the sharing contract signing request sent by the two compliance nodes a and B passes the audit, and a data sharing chain of the two compliance nodes a and B is formed, and only the two compliance nodes a and B can share data according to the data sharing rule in the data sharing contract signed by both the compliance nodes a and B.
The block chain technology has the advantages of being not falsifiable, storing data encryption and the like, but still has the barriers of 'desperate sharing' and 'unwilling sharing' among the main bodies, and the data islanding phenomenon is not actually improved. The embodiment of the application fully considers the appeal of the data sharing subject, shares data according to different types, further breaks the trust barrier of data sharing, and promotes the circulation of data elements.
In some embodiments, the compliance node is configured with a privacy computation module, and the step of uploading the data to be shared to the data sharing chain by all compliance nodes in the data sharing participants according to the data sharing contract further includes:
and if the data sharing type is private data sharing, the privacy calculation module calculates the original data to be shared to obtain a privacy calculation result.
And uploading the privacy calculation result to the data sharing chain by all compliance nodes in the data sharing participants.
In this embodiment, the compliance node is configured with a privacy computation module, and when the data sharing type in the data sharing contract is privacy data sharing, that is, when data is defined to only support privacy computation, the original data to be shared does not leave the domain, the original data is locally computed by the privacy computation module to obtain a privacy computation result, and the privacy computation result is shared to the data requiring party, so that "data is available and invisible" is realized.
In some embodiments, as shown in fig. 5, the method further comprises:
and S10, the new compliance node sends a change request to the sharing contract management node, wherein the change request comprises a data sharing chain to be added, a data sharing type, a data sharing directory and a digital signature.
And S20, the shared contract management node verifies the change request.
And S30, if the audit is passed, the shared contract management node sends a consensus request to all the nodes on the data sharing chain, wherein the consensus request comprises an audit result and a change request.
And S40, receiving the consensus result corresponding to the consensus request fed back by all the nodes on the data sharing chain.
And S50, if the consensus results are all passed, adding a new compliance node into the data sharing chain.
In this embodiment, a new node may send a change request for joining an existing data sharing chain to a sharing contract management node, where the change request includes a data sharing chain to be joined, a data sharing type, a data sharing directory, and a digital signature, the sharing contract management node verifies the change request, first verifies the digital signature in the change request, verifies whether the new node is a compliant node, if the verification is passed, continuously verifies whether the data sharing type in the change request is consistent with the data sharing type in the data sharing contract of the data sharing chain to be joined, if the verification is passed, and sends a consensus request to all nodes on the data sharing chain to be joined, so that all nodes on the data sharing chain to be joined verify the verification result and the change request, when the verification is correct, feedback confirmation information to the sharing contract management node is fed back, when the sharing contract management node receives confirmation information fed back by all nodes on the data sharing chain to be joined, the sharing contract management node reaches consensus, and joins the new compliant node to the data sharing chain.
For example, a C node is to join a data sharing chain formed by an a node and a B node, send a change request to a sharing contract management node, the sharing contract management node audits the change request, if the audit is passed, initiate a consensus in the data sharing chain, that is, initiate a consensus to the a node and the B node, if confirmation information fed back by the a node and the B node and agreeing to the change request at this time is received, the C node is added to the data sharing chain, and a data sharing chain formed by three nodes A, B, C is formed.
In some embodiments, as shown in fig. 6, the method further comprises:
s600, the nodes on the data sharing chain send contract change requests to the sharing contract management nodes, and the contract change requests comprise the change content and the digital signatures of the data sharing contracts.
S700, the shared contract management node verifies the change request.
And S800, if the audit is passed, the shared contract management node sends a consensus request to other nodes on the data sharing chain, wherein the consensus request comprises an audit result and a contract change request.
And S900, receiving a consensus result corresponding to the consensus request fed back by other nodes on the data sharing chain.
And S110, if the consensus results are all passed, changing the data sharing contract.
In this embodiment, a node on a data sharing chain may send a contract change request to a sharing contract management node, where the contract change request includes change content and a digital signature of a data sharing contract, the sharing contract management node audits the contract change request, verifies the digital signature in the contract change request, verifies whether the node is a node on the data sharing chain, if the node passes the verification, the audit passes, and sends a consensus request to other nodes on the data sharing chain, so that the other nodes on the data sharing chain verify the audit result and the contract change request, when the verification is correct, confirmation information is fed back to the sharing contract management node, and when the sharing contract management node receives the confirmation information fed back by the other nodes on the data sharing chain, the data sharing contract is changed.
For example, in a data sharing chain formed by an a node and a B node, the a node sends a contract change request to a shared contract management node, the shared contract management node audits the contract change request, if the audit is passed, a consensus is initiated to other nodes in the data sharing chain, namely, the consensus is initiated to the B node, if confirmation information fed back by the B node and agreeing to the contract change request is received, the data sharing contract is changed, and if information fed back by the B node and disagrees with the contract change request is received, the contract change request is rejected.
In the embodiment of the application, when a new node needs to be added into a generated scene chain (data sharing chain) or a node of the scene chain (data sharing chain) needs to change a data sharing contract, the new node or the node needing to change the data sharing contract needs to send a change request to a sharing contract management node, and on the premise of not influencing other scene chains (data sharing chains) and a current scene chain (data sharing chain), the change is completed through a consensus algorithm.
In the consensus algorithm, the number of default nodes is determined, and in this case, if the number of nodes of the network or parameters of the system (such as block output time and block size) are to be dynamically adjusted, the parameters need to be adjusted by stopping the node service, so that when the traditional block link nodes change, the node service needs to be suspended, and the operation of the block link network is affected. In the embodiment of the application, the adjustment mode is converted into system transaction, and the consistency of the adjusted parameters is realized through the consensus algorithm. When the sharing node change or the sharing rule change is carried out, the node service is not suspended, and the sharing node change or the sharing rule change is carried out synchronously with the data sharing process. The change of the sharing nodes and the change of the sharing rules are dynamically realized through a consensus algorithm, so that the block chain network is more stable and safer.
According to the technical scheme, the application provides a method and a system for sharing the data of the intelligent communication water service scene chain based on a multi-layer sharing mechanism, wherein the method comprises the following steps: the contract sharing method includes the steps that a compliance node sends a shared contract signing request to a shared contract management node, the shared contract management node receives the shared contract signing requests of all compliance nodes in a data sharing participant, then audits all signing requests, after the audits are passed, a data sharing contract is generated according to the shared contract signing requests, a data sharing chain is built, the data sharing chain comprises all compliance nodes in the data sharing participant, and all compliance nodes in the data sharing participant share data according to sharing contracts. Different data sharing chains and data sharing contracts are formed according to different types and different data of data sharing, the sharing requirements of data demanders are met, and the data sharing efficiency and the data privacy are improved. The method and the device do not focus on a block chain universality technology or a privacy calculation universality technology, a focus point is an actual water service scene, a scene chain is constructed according to data requirements of different layers, the data sharing degrees in different scene chains are different, dynamic change of a service chain network is supported through an intelligent contract, and network stability of sharing as required is guaranteed.
It should be noted that the data sharing method in this scheme is not limited to the water service scenario, and may also be applied to other service scenarios that need to perform data sharing.
In a second aspect, the present application further provides a system for sharing data in a wisdom trust water service scenario chain based on a multi-layer sharing mechanism, where the system is composed of a plurality of compliance nodes and a shared contract management node, and the system is configured to execute the following method:
the compliance node sends a shared contract signing request to the shared contract management node, the shared contract signing request including a data sharing participant, a data sharing type, a data sharing directory, and a digital signature.
And the shared contract management node receives the shared contract signing requests of all compliance nodes in the data sharing participant and verifies the shared contract signing requests of all the compliance nodes in the data sharing participant.
And if the verification is passed, generating a data sharing contract according to the sharing contract signing requests of all compliant nodes in the data sharing participant, and constructing a data sharing chain, wherein the data sharing chain comprises all compliant nodes in the data sharing participant.
And uploading data to be shared to the data sharing chain by all compliance nodes in the data sharing participants according to the sharing contract, and acquiring the data on the data sharing chain according to the sharing contract.
The operation and effect of the system in applying the method can be referred to the description of the embodiment of the method, and will not be described herein again.

Claims (7)

1. A method for sharing data of a credible water affair scene chain based on a multi-layer sharing mechanism is applied to a blockchain network formed by a plurality of compliance nodes and shared contract management nodes, and comprises the following steps:
the contract signing method comprises the following steps that a compliance node sends a shared contract signing request to a shared contract management node, wherein the shared contract signing request comprises a data sharing participant, a data sharing type, a data sharing directory and a digital signature, and the data sharing type is all data sharing, partial data sharing or private data sharing;
receiving a shared contract signing request of all compliance nodes in the data sharing participants by the shared contract management node;
the shared contract management node verifies the digital signature in the shared contract signing request;
if the verification is passed, verifying whether the data participants and the data sharing types in the sharing contract signing requests of all compliance nodes in the data sharing participants are consistent;
if the verification result is consistent, the verification is passed;
if the verification is passed, generating a data sharing contract according to the sharing contract signing requests of all compliant nodes in the data sharing participant, and constructing a data sharing chain, wherein the data sharing chain comprises all compliant nodes in the data sharing participant;
and uploading data to be shared to the data sharing chain by all compliance nodes in the data sharing participants according to the data sharing contract, and acquiring the data on the data sharing chain according to the data sharing contract.
2. The method for sharing the data of the WeChat Water Scenario chain based on the multi-layer sharing mechanism according to claim 1, further comprising:
the method comprises the steps that a node to be authenticated sends an identity authentication request to a shared contract management node, wherein the identity authentication request comprises node information and a digital signature;
and the shared contract management node authenticates the identity authentication request, and if the identity authentication request passes the authentication, the authenticated node is determined as a compliance node.
3. The method for sharing the chain data of the intelligent trust water affairs scene based on the multi-layer sharing mechanism according to claim 2, wherein the step of authenticating the identity authentication request by the sharing contract management node further comprises:
the shared contract management node authenticates the identity authentication request and generates an authentication result;
if the authentication result is passed, sending a consensus request to other nodes on the chain, wherein the consensus request comprises the authentication result and the identity authentication request;
and when receiving confirmation information corresponding to the consensus requests fed back by other nodes on the chain in a preset number, determining that the identity authentication request passes the authentication.
4. The method for sharing the data of the WeChat Water Scenario chain based on the multi-layer sharing mechanism according to claim 1, further comprising:
the new compliance node sends a change request to the sharing contract management node, wherein the change request comprises a data sharing chain to be added, a data sharing type, a data sharing directory and a digital signature;
the shared contract management node checks the change request;
and if the audit is passed, the shared contract management node sends a consensus request to all nodes on the data sharing chain, wherein the consensus request comprises an audit result and a change request, receives the consensus result corresponding to the consensus request fed back by all the nodes on the data sharing chain, and if the consensus result is passed, adds a new compliance node into the data sharing chain.
5. The method for sharing the data of the WeChat Water Scenario chain based on the multi-layer sharing mechanism according to claim 1, further comprising:
a node on the data sharing chain sends a contract change request to a sharing contract management node, wherein the contract change request comprises change content and a digital signature of a data sharing contract;
the shared contract management node audits the change request;
and if the audit is passed, the shared contract management node sends a consensus request to other nodes on the data sharing chain, wherein the consensus request comprises an audit result and a contract change request, receives the consensus result corresponding to the consensus request fed back by the other nodes on the data sharing chain, and if the consensus result is passed, the data sharing contract is changed.
6. The method for sharing data in a wisdom-based water affairs scenario chain based on a multi-layer sharing mechanism according to claim 1, wherein the compliance nodes are configured with privacy computation modules, and the step of uploading the data to be shared to the data sharing chain by all the compliance nodes in the data sharing participants according to the data sharing contract further comprises:
if the data sharing type is private data sharing, the privacy calculation module calculates the original data to be shared to obtain a privacy calculation result;
and uploading the privacy calculation result to the data sharing chain by all compliance nodes in the data sharing participants.
7. A trusted water service scenario chain data sharing system based on a multi-layer sharing mechanism, the system being composed of a plurality of compliance nodes and a shared contract management node, the system being configured to perform the following method:
the contract signing method comprises the following steps that a compliance node sends a shared contract signing request to a shared contract management node, wherein the shared contract signing request comprises a data sharing participant, a data sharing type, a data sharing directory and a digital signature, and the data sharing type is all data sharing, partial data sharing or private data sharing;
receiving a shared contract signing request of all compliance nodes in the data sharing participants by the shared contract management node;
the shared contract management node verifies the digital signature in the shared contract signing request;
if the verification is passed, verifying whether the data participants and the data sharing types in the sharing contract signing requests of all compliance nodes in the data sharing participants are consistent;
if the verification result is consistent, the audit is passed;
if the verification is passed, signing requests according to sharing contracts of all compliance nodes in the data sharing participants, generating data sharing contracts, and constructing a data sharing chain, wherein the data sharing chain comprises all compliance nodes in the data sharing participants;
and uploading data to be shared to the data sharing chain by all compliance nodes in the data sharing participants according to the data sharing contract, and acquiring the data on the data sharing chain according to the data sharing contract.
CN202211289920.0A 2022-10-21 2022-10-21 West-wisdom water affair scene chain data sharing method and system based on multi-layer sharing mechanism Active CN115378943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211289920.0A CN115378943B (en) 2022-10-21 2022-10-21 West-wisdom water affair scene chain data sharing method and system based on multi-layer sharing mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211289920.0A CN115378943B (en) 2022-10-21 2022-10-21 West-wisdom water affair scene chain data sharing method and system based on multi-layer sharing mechanism

Publications (2)

Publication Number Publication Date
CN115378943A CN115378943A (en) 2022-11-22
CN115378943B true CN115378943B (en) 2023-01-31

Family

ID=84074303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211289920.0A Active CN115378943B (en) 2022-10-21 2022-10-21 West-wisdom water affair scene chain data sharing method and system based on multi-layer sharing mechanism

Country Status (1)

Country Link
CN (1) CN115378943B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352996A (en) * 2020-02-26 2020-06-30 百度在线网络技术(北京)有限公司 Data sharing method, device, equipment and medium based on block chain network
CN111932250A (en) * 2020-06-08 2020-11-13 国网浙江省电力有限公司台州供电公司 Method for realizing power grid information sharing based on block chain technology
CN114020847A (en) * 2021-11-10 2022-02-08 中徽建技术有限公司 Network resource sharing method based on block chain technology

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105913219A (en) * 2016-04-05 2016-08-31 周宇航 Method and system used for monitoring and managing whole actuating process of electronic contract

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352996A (en) * 2020-02-26 2020-06-30 百度在线网络技术(北京)有限公司 Data sharing method, device, equipment and medium based on block chain network
CN111932250A (en) * 2020-06-08 2020-11-13 国网浙江省电力有限公司台州供电公司 Method for realizing power grid information sharing based on block chain technology
CN114020847A (en) * 2021-11-10 2022-02-08 中徽建技术有限公司 Network resource sharing method based on block chain technology

Also Published As

Publication number Publication date
CN115378943A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN112637189B (en) Multi-layer block chain cross-domain authentication method in application scene of Internet of things
CN111970129B (en) Data processing method and device based on block chain and readable storage medium
Chai et al. CyberChain: Cybertwin empowered blockchain for lightweight and privacy-preserving authentication in Internet of Vehicles
CN108876669B (en) Course notarization system and method applied to multi-platform education resource sharing
Li et al. BCSE: Blockchain-based trusted service evaluation model over big data
CN113850599B (en) Cross-link transaction method and system applied to alliance link
CN114329529A (en) Asset data management method and system based on block chain
Cai et al. A blockchain-assisted trust access authentication system for solid
CN111049806B (en) Joint authority control method and device, electronic equipment and storage medium
CN114760071B (en) Zero-knowledge proof based cross-domain digital certificate management method, system and medium
CN113328854B (en) Service processing method and system based on block chain
Mu et al. An identity privacy scheme for blockchain‐based on edge computing
Kalapaaking et al. Smart Policy Control for Securing Federated Learning Management System
Liu et al. A blockchain-based cross-domain authentication management system for IoT devices
CN115378943B (en) West-wisdom water affair scene chain data sharing method and system based on multi-layer sharing mechanism
CN117176686A (en) Industrial Internet identification method based on blockchain and enterprise cross-domain data aggregation
Wu et al. A privacy-preserving and efficient byzantine consensus through multi-signature with ring
Yang et al. Research on power transaction information security of microgrid blockchain network
Sun et al. An efficient and secure trading framework for shared charging service based on multiple consortium blockchains
Tian et al. A new construction for linkable secret handshake
CN115801288B (en) Verification method, system and equipment based on block chain and zero knowledge proof
CN116881873B (en) Identity authentication method and device for business body, electronic equipment and storage medium
Qian et al. A regulated identity management system based on blockchain platform
CN114900534B (en) Big data supervision method based on block chain technology
Rao et al. VAPKI: A blockchain-based identification system with validation and authentication

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
GR01 Patent grant
GR01 Patent grant