CN116860866A - Block chain-based data sharing method, device, equipment and storage medium - Google Patents

Block chain-based data sharing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116860866A
CN116860866A CN202310381543.1A CN202310381543A CN116860866A CN 116860866 A CN116860866 A CN 116860866A CN 202310381543 A CN202310381543 A CN 202310381543A CN 116860866 A CN116860866 A CN 116860866A
Authority
CN
China
Prior art keywords
data
enterprise
shared
transaction
target
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
CN202310381543.1A
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.)
CISDI Chongqing Information Technology Co Ltd
Original Assignee
CISDI Chongqing Information 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 CISDI Chongqing Information Technology Co Ltd filed Critical CISDI Chongqing Information Technology Co Ltd
Priority to CN202310381543.1A priority Critical patent/CN116860866A/en
Publication of CN116860866A publication Critical patent/CN116860866A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a data sharing method, device, equipment and storage medium based on a blockchain, which are characterized in that alliance data of an iron and steel alliance enterprise and blockchain nodes of the iron and steel alliance enterprise are obtained, the blockchain nodes of a plurality of iron and steel alliance enterprises are connected, a steel alliance chain is generated, a data sharing transaction platform is established, data to be shared is uploaded to the steel alliance chain, the steel alliance data is uploaded to the steel alliance chain and data sharing transaction platform, a data list is generated, a data transaction request sent by a data demand party based on target data is received, an intelligent transaction contract is generated, data permission is issued to the data demand party according to the intelligent transaction contract, and the data demand party obtains the target data so as to share the target data; by establishing the shared blockchain among alliance enterprises, the invention ensures the credibility, the data quality level, the data transaction authority and the interests of the two parties, and promotes the safe sharing exchange of the data inside and outside the iron and steel enterprises.

Description

Block chain-based data sharing method, device, equipment and storage medium
Technical Field
The present application relates to the field of navigation technologies, and in particular, to a data sharing method, apparatus, device and storage medium based on a blockchain.
Background
With the development of intelligent manufacturing technology, internal and external systems and equipment of an iron and steel enterprise generate massive data every day, and a large amount of data in the data can be shared and changed into data assets, so that the data assets flow inside and outside the enterprise to generate value. The data sharing has higher requirements on the non-falsification of the data, the data integrity, the data tracing, the data attribution, the access control, the data encryption and the data searching, and each link is very important to the data sharing among enterprises.
Currently, the application of iron and steel enterprises to mass data generally stays in the enterprises, namely, a system and a user for generating data and using the data, generally, the system and the user of the same enterprise, but cannot realize data sharing among a plurality of enterprises.
Disclosure of Invention
In view of the above drawbacks of the prior art, the present application provides a method, apparatus, device and storage medium for sharing data based on blockchain, so as to solve the technical problem that multiple enterprises cannot share data between iron and steel enterprises.
The invention provides a data sharing method based on a block chain, which comprises the following steps: acquiring alliance data of an iron and steel alliance enterprise and block chain nodes of the iron and steel alliance enterprise, wherein the alliance data comprises enterprise metadata, equipment metadata, data to be shared and data metadata of the data to be shared; connecting block chain nodes of a plurality of steel alliance enterprises to generate steel alliance chains, and establishing a data sharing transaction platform; uploading the data to be shared to the steel alliance chain, uploading the steel alliance data to the steel alliance chain and a data sharing transaction platform, and generating a data list based on the steel alliance data, wherein the data list is used for representing data information selectable by a data demand; receiving a data transaction request sent by a data demand party based on target data, and generating an intelligent transaction contract; and issuing data permission to the data demand party according to the intelligent transaction contract, so that the data demand party obtains the target data to share the target data.
In one embodiment of the present invention, uploading the data to be shared to the steel alliance chain includes: acquiring the data volume of the data to be shared and the security level of the data to be shared; when the data volume of the data to be shared is smaller than a preset threshold value, if the security level of the data to be shared is lower than a preset level, uploading plaintext data of the data to be shared to the steel alliance chain, and if the security level of the data to be shared is equal to or higher than the preset level, encrypting the data to be shared, and uploading the encrypted data to the steel alliance chain; and when the data volume of the data to be shared is greater than or equal to a preset threshold value, generating a data abstract based on the data to be shared, uploading the data abstract to the steel alliance chain, and storing the data to be shared in a private database of the target enterprise.
In one embodiment of the present invention, before uploading the data to be shared to the steel alliance chain, the method further includes: comparing the data similarity of candidate data and existing data, wherein the candidate data is the data to be uploaded to the steel alliance chain, and the existing data is the data uploaded to the steel alliance chain; if the data similarity is higher than or equal to a first similarity threshold, determining the candidate data as near-related data of the existing data, and refusing the near-related data to be uplink; if the data similarity is higher than or equal to a second similarity threshold and lower than the first similarity threshold, determining the candidate data as far-parent data of the existing data, and allowing the far-parent data to be uplink; and if the data similarity is lower than the second similarity threshold, determining the candidate data as newly added data, and allowing the newly added data to be uplink.
In one embodiment of the present invention, generating a data list based on the steel alliance data includes: acquiring data metadata of the data to be shared, wherein the data metadata comprise preset enterprise address information of a data provider; matching the preset enterprise address information with candidate enterprise address information to obtain an enterprise association relationship between the data to be shared and the enterprise metadata, wherein the candidate enterprise address information is obtained based on the enterprise metadata; determining candidate enterprise address information which is the same as the preset enterprise address information as associated enterprise address information, and obtaining associated equipment which has equipment association relation with the associated enterprise address based on the associated enterprise address; and constructing a data list according to the enterprise association relationship, the equipment association relationship and the data to be shared, wherein the data list comprises the data to be shared, the data metadata of the data to be shared, the equipment metadata of the associated equipment and the enterprise metadata of the associated enterprise.
In one embodiment of the present invention, receiving a data transaction request from a data requesting party based on target data and generating an intelligent transaction contract includes: determining target data of the data requiring party based on the data transaction request; retrieving a target enterprise with an enterprise association relationship with the target data and a target device with a device association relationship with the target data from the data list; determining a transaction condition of the target data based on the data meta-information of the target data, the enterprise meta-data of the target enterprise, and the device meta-data of the target device, and generating an intelligent transaction contract based on the transaction condition, wherein the transaction condition comprises a transaction address and transaction pricing.
In one embodiment of the present invention, the smart transaction contract includes a paid contract or a gratuitous contract, and after generating the smart transaction contract based on the transaction condition, the method further includes: when the intelligent transaction is about a paid contract, determining that the data type of the target data is far-parent data or irrelevant data; if the data type of the target data is far-parent data, determining a target data provider for providing data to be shared and a relative data provider for providing existing data based on the target data; and determining the wetting proportion of the target data provider and the relative data provider according to the similarity of the target data and the existing data.
In one embodiment of the present invention, issuing data rights to the data demander according to the smart transaction contract includes: when the storage format of the target data in the steel alliance chain is plaintext data, transmitting data access rights to the data demand party; when the storage format of the target data in the steel alliance chain is encrypted data, transmitting data access authority and a decryption key of the target data to the data requiring party; and when the storage format of the target data in the steel alliance chain is a data abstract, transmitting data access authority and an access address of a private database where the target data is located to the data demand party.
In one embodiment of the present invention, the method further includes, after issuing a data right to the data demander according to the smart transaction contract, the data demander obtaining the target data: generating a data transaction record based on the intelligent transaction contract, and receiving evaluation information of the data demand party on the target data; and uploading the data transaction record and the evaluation information to the steel alliance chain as data meta information of the target data.
The invention provides a data sharing device based on a block chain, which comprises: the system comprises a data acquisition module, a data sharing module and a data processing module, wherein the data acquisition module is used for acquiring alliance data of an iron and steel alliance enterprise and block chain nodes of the iron and steel alliance enterprise, and the alliance data comprises enterprise metadata, equipment metadata, data to be shared and data metadata of the data to be shared; the steel alliance chain construction module is used for connecting block chain nodes of a plurality of steel alliance enterprises, generating a steel alliance chain and establishing a data sharing transaction platform; the data uploading module is used for uploading the data to be shared to the steel alliance chain, uploading the steel alliance data to the steel alliance chain and the data sharing transaction platform, and generating a data list based on the steel alliance data, wherein the data list is used for representing data information selectable by a data demand; the transaction generation module is used for receiving a data transaction request sent by a data demand party based on target data and generating an intelligent transaction contract; and the data sharing module is used for issuing data permission to the data demand party according to the intelligent transaction contract, so that the data demand party obtains the target data to share the target data.
In one embodiment of the present invention, the blockchain-based data sharing device further includes: the data monitoring module is used for monitoring the uplink of data, data transaction, data evaluation and the similarity between the data to be uplink and the existing data.
The present invention provides an electronic device including: one or more processors; and a storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the blockchain-based data sharing method described above.
The present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform a blockchain-based data sharing method as described above.
The invention has the beneficial effects that: the invention discloses a data sharing method, device, equipment and storage medium based on a blockchain, which are characterized in that by acquiring alliance data of a steel alliance enterprise and blockchain nodes of the steel alliance enterprise, connecting the blockchain nodes of a plurality of steel alliance enterprises, generating a steel alliance chain, establishing a data sharing transaction platform, uploading data to be shared to the steel alliance chain, uploading the steel alliance data to the steel alliance chain and the data sharing transaction platform, generating a data list, receiving a data transaction request sent by a data demand party based on target data, generating an intelligent transaction contract, and issuing data permission to the data demand party according to the intelligent transaction contract so that the data demand party obtains the target data to share the target data; by establishing the shared blockchain among alliance enterprises, the invention ensures the credibility, the data quality level, the data transaction authority and the interests of the two parties, and promotes the safe sharing exchange of the data inside and outside the iron and steel enterprises.
In addition, the method provided by the application realizes data sharing among a plurality of enterprises based on the blockchain, and has the following advantages: firstly, the method has the advantages of decentralization of the block chain and unchanged data, and solves the problem of low credibility of tamperable data in the prior art; secondly, the uplink record based on the data can trace the source of the data, so that the problem that the attribution of the total data rights in the data sharing process is difficult to identify is solved; thirdly, the data is stored in the blockchain instead of the central data market, so that the control capability of the data provider to the data is ensured, and the rights and interests of the data provider are ensured; fourth, based on the mode of combining two storage modes of the upper and lower links of the chain, the problem that the data capacity is limited and massive industrial real-time data cannot be stored is effectively solved; fifthly, the evaluation of the data by the data demand party and the sharing record of the data are used as input items of data pricing, so that the problem of difficulty in measuring and pricing the data effect is solved; and by realizing data transmission on the blockchain, the trust problems caused by data security and data leakage in the transaction sharing and transmission process are avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic diagram illustrating an implementation environment for blockchain-based data sharing in accordance with an exemplary embodiment of the present application;
FIG. 2 is a block chain based data sharing flow diagram illustrating an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a steel enterprise federation chain hierarchy in accordance with an exemplary embodiment of the present application;
FIG. 4 is a block diagram illustrating a blockchain block architecture in accordance with an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of a data sharing switching platform shown in an exemplary embodiment of the present application;
FIG. 6 is a data-on-flow diagram illustrating an exemplary embodiment of the present application;
FIG. 7 is a data-up and transaction schematic diagram illustrating an exemplary embodiment of the present application;
FIG. 8 is a flowchart illustrating a block chain based data sharing method in accordance with an exemplary embodiment of the present application;
FIG. 9 is a block diagram of a blockchain-based data sharing device shown in an exemplary embodiment of the present application;
fig. 10 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Further advantages and effects of the present application will become readily apparent to those skilled in the art from the disclosure herein, by referring to the accompanying drawings and the preferred embodiments. The application may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present application. It should be understood that the preferred embodiments are presented by way of illustration only and not by way of limitation.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present application by way of illustration, and only the components related to the present application are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In the following description, numerous details are set forth in order to provide a more thorough explanation of embodiments of the present application, it will be apparent, however, to one skilled in the art that embodiments of the present application may be practiced without these specific details, in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present application.
Firstly, the blockchain is a brand new distributed infrastructure and calculation paradigm for verifying and storing data by utilizing a block chain type data structure, generating and updating the data by utilizing a distributed node consensus algorithm, ensuring the safety of data transmission and access by utilizing a cryptography mode, and programming and operating the data by utilizing an intelligent contract consisting of automatic script codes; in the application, the data blocks are combined into a chained data structure in a sequential connection mode according to the time sequence, and the distributed account book which is not tamperable and not counterfeitable is ensured in a cryptographic mode.
A P2P (Peer-to-Peer) network is understood to be a Peer-to-Peer computing or Peer-to-Peer network, which is a distributed application architecture that distributes tasks and workloads among peers (peers), and is a form of networking or network in which Peer-to-Peer computing models are formed at an application layer.
PoS (ProofofStake), i.e. the proof of rights, is similar in principle to real world share systems, the more shares they have, the stronger the speaking right and the greater the probability of obtaining a billing opportunity.
NPoS (NominatedProofofStake), namely "nomination rights verification", by setting both roles of nominator and verifier, the security of the chain is guaranteed to the greatest extent, and the network is sufficiently decentralised.
FIG. 1 is a schematic diagram illustrating an implementation environment for blockchain-based data sharing in accordance with an exemplary embodiment of the present application. As shown in FIG. 1, the implementation environment for blockchain-based data sharing includes a data provider, a data consumer, a de-centralized iron and steel enterprise consortium, and a data sharing exchange platform. The data provider comprises an enterprise A and an enterprise B, and the enterprise A and the enterprise B respectively have respective file service, system and equipment; the data consumer comprises an enterprise C and an enterprise D, and the enterprise C and the enterprise D also respectively have respective file services, systems and devices; the decentralised iron and steel enterprise alliance chain is established based on enterprises A, B, C and D, and the data sharing exchange platform is established based on the decentralised iron and steel enterprise alliance chain. The enterprise A, the enterprise B, the enterprise C and the enterprise D can respectively and independently establish a connection relationship with the decentralized iron and steel enterprise alliance or the data sharing exchange platform, and the decentralized iron and steel enterprise alliance and the data sharing exchange platform also have the connection relationship.
FIG. 2 is a block chain based data sharing flow diagram illustrating an exemplary embodiment of the present application.
As shown in fig. 2, in an exemplary embodiment, the blockchain-based data sharing method at least includes steps S210 to S250, which are described in detail below:
step S210, obtaining alliance data of an iron and steel alliance enterprise and block chain nodes of the iron and steel alliance enterprise, wherein the alliance data comprises enterprise metadata, equipment metadata, data to be shared and data metadata of the data to be shared.
In one embodiment of the application, firstly, data are acquired from a plurality of enterprises joining in a steel alliance, wherein the enterprise information comprises basic information and extension information, and the basic information comprises, but is not limited to, enterprises, internal and external systems of the enterprises, equipment and blockchain node basic information defined by a data sharing exchange platform; the extension information includes, but is not limited to, any extension information that can be registered by the enterprise, the internal and external systems of the enterprise, the equipment and the blockchain node. In addition, enterprise metadata is included, including but not limited to the following: the enterprise address is used for identifying a unique address of the enterprise worldwide, and the in-chain incentive and transaction address is not changeable; the system code is used for identifying a globally unique software and hardware system address; the registration time is used for recording the system registration link-in time; the enterprise information set is used for recording basic information of enterprises; a data description for describing data items of the enterprise sharable data information; and the custom information is used for customizing the extra information of the enterprise.
It should be understood that in the process of the data sharing method based on the blockchain, the internal and external systems of the enterprise comprise a soft and hard system in the enterprise and an external soft and hard system in the enterprise, the systems need to exchange data, and related enterprise metadata is recorded in the alliance chain, so that the authenticity of the enterprise metadata is ensured based on the characteristics of traceability and non-falsifiability of the blockchain.
It should be appreciated that the enterprise federation chain is comprised of industry service center/data sharing switching platform nodes, registered enterprise billing nodes, and administrative blockchain nodes, each node having the same interests in the federation chain, data being distributed across each blockchain node, each node being capable of becoming a billing node
Fig. 3 is a schematic view of a steel enterprise coalition chain hierarchy in accordance with an exemplary embodiment of the present application. As shown in fig. 3, the iron and steel enterprise alliance chain is organized into 6 levels, namely a data level, a network level, a consensus level, an incentive and transaction level, a contract level, and an application level.
The data layer is used for storing data to be shared, data summary information or data metadata information, the data provider can selectively upload plaintext data or encrypted data, a basic unit for storing the data in the data layer is a block, each block has size limitation, one data can be distributed in a plurality of blocks, and a plurality of data can be stored in one block; the network layer is connected with each node in the blockchain through a P2P network, a monitoring probe is added, the data sharing exchange platform can repeatedly acquire the state of each blockchain node in a preset time, and the number and state information of the nodes are counted; the consensus layer forms an NPoS mechanism by improving the PoS mechanism, the NPoS mechanism is not limited by the number of the blockchain nodes, and meanwhile, the calculation force is effectively saved; the incentive and transaction layer is used for constructing an incentive and transaction system for sharing internal and external data of an enterprise, and comprises a pricing and incentive system for data uplink, a pricing and incentive system for data use and evaluation and a billing incentive system for block nodes; the contract layer writes the data sharing, the security mechanism and the incentive mechanism into the intelligent contract, and when the triggering condition is reached, the intelligent contract and the contract script are automatically executed and cannot be changed; the excitation mechanism comprises a customized excitation mechanism for sharing, evaluating and using single data and multiple data sets; and the application layer is used for realizing the intelligent application of the internal and external data sharing of the enterprise.
Step S220, connecting block chain nodes of a plurality of steel alliance enterprises, generating a steel alliance chain, and establishing a data sharing transaction platform.
FIG. 4 is a block diagram illustrating a blockchain block architecture in accordance with an exemplary embodiment of the present application. As shown in fig. 3, each blockchain node includes a blockhead and a blockbody, where the blockhead includes a blockversion, a timestamp, a hash value, a random number, a difficulty value, a parent blockhash, and a Merkle root (i.e., merkleTree, chinese named merckerr tree, or a tree storing a hash value (hash value); the area block is the account information recorded by the merck tree.
Fig. 5 is a schematic diagram of a data sharing switching platform according to an exemplary embodiment of the present application. As shown in fig. 4, the data sharing exchange platform includes the following service modules: registration services, directory services, search services, routing services, authorization services, audit log services, data transaction services, and platform storage modules.
In one embodiment of the present application, each module of the data sharing exchange platform functions as follows: registration service, registering each enterprise, internal and external system, equipment and block chain node, and storing registration information in a data sharing exchange platform storage module; the platform storage module is used for dividing registration information into 2 parts which are the same, one part is stored in a data sharing exchange platform database and used for quickly inquiring, and the other part is stored in a alliance chain and used for tracing and guaranteeing rights and interests of a data provider, and the data is placed in the alliance chain to prevent the data from being tampered, and the data in the platform storage module is fused into the alliance chain to ensure the neutrality and fairness of the platform; the catalog service provides a convenient data organization and management mode, and the data after being uploaded by the data provider is published through the catalog service, and the catalog service comprises the steps of creating a data catalog, deleting the data catalog, modifying the data catalog, viewing the data catalog and searching the data catalog; the routing service provides the capability of accessing the data under the chain and the address of the data block on the chain, and rapidly discovers the position of the data; the authorization service is used for requesting data of the data consumer, inquiring the data authority information in the alliance chain, constructing an auditing flow and recording the auditing result into the alliance chain; the searching service provides data searching service for the internal and external systems and the participants of the enterprise and solves the problems that the blockchain is not easy to search and the searching is slow; the data transaction service is responsible for matching data asset transaction, generating data order transaction information, entering a chain of transaction information, judging the blood relationship of data by using a blockchain tracing technology, reducing the generation of repeated and similar data, and reducing the problem of data piracy by using the unchangeable characteristic of a blockchain; and the audit log service records log information of the data exchange platform and enters the log information into a alliance chain, so that the log information is prevented from being tampered, and the problem of trusted information exchange of internal and external systems and equipment of an enterprise is solved.
Step S230, uploading data to be shared to a steel alliance chain, uploading steel alliance data to the steel alliance chain and a data sharing transaction platform, and generating a data list based on the steel alliance data, wherein the data list is used for representing data information selectable by a data demand.
Fig. 6 is a data-uplink flow chart illustrating an exemplary embodiment of the present application. As shown in fig. 5, first, uplink metadata is generated based on the obtained enterprise data, system data, and device data, and is converted into data of a predetermined format; then detecting the size of the data, when the size of the data does not exceed the preset size of the area block, directly putting the converted metadata into the area block, if the size of the data exceeds the preset size of the area block, further determining whether to use a platform for data storage, if so, storing the data into a data sharing interaction platform, returning a data address and a data merck tree, if not, storing the data into an enterprise self-built distributed file service, then returning the data address and the data merck tree, and putting the converted metadata into the area block after returning the data address and the data merck tree; then, after the converted metadata is put into the block body, the block header needs to be filled and the block is broadcast into the federation. The block is then added to the chain based on the validation of the blockchain node to effect data chaining. After the block is identified by the network, the process of data uplink is completed.
It should be appreciated that data to be uploaded is typically stored by both on-link storage and off-link storage, and is determined as off-link data and on-link data, respectively, based on the data size of the data and the confidentiality of the data. Some data are not suitable for being stored in a alliance chain due to the reasons of overlarge size, confidentiality and the like, and only the data summary is uplink, and the part of data which are not uplink are downlink data; the data that meets the uplink condition and is uplink is called the on-link data.
Uploading data to be shared to a steel alliance chain, comprising: acquiring the data volume of the data to be shared and the security level of the data to be shared; when the data volume of the data to be shared is smaller than a preset threshold value, if the security level of the data to be shared is lower than the preset level, uploading the plaintext data of the data to be shared to the steel alliance chain, and if the security level of the data to be shared is equal to or higher than the preset level, encrypting the data to be shared, and uploading the encrypted data to the steel alliance chain; and when the data volume of the data to be shared is greater than or equal to a preset threshold value, generating a data abstract based on the data to be shared, uploading the data abstract to the steel alliance chain, and storing the data to be shared in a private database of a target enterprise.
It should be appreciated that any of the data, data digests, or data metadata information may be selected for the uplink in the process of linking data, data digests, or data metadata information sharable by systems, devices, and both internal and external to the enterprise.
In one embodiment of the present invention, taking a preset threshold value as K, a preset security level as three levels as an example. And if the data volume of the data to be uploaded is smaller than a preset threshold value K obtained based on the preset size of the block, further judging the data security level of the data to be uploaded, and if the security level is two-level security and is smaller than the preset security level by three-level, uploading the data to be uploaded to a block chain for data sharing.
In another embodiment of the present invention, taking a preset threshold value as K, a preset security level as three levels as an example. If the data volume of the data to be uploaded is smaller than a preset threshold value K obtained based on the preset size of the block, further judging the data confidentiality grade of the data to be uploaded, and if the confidentiality grade is four-grade confidentiality and is larger than the preset security grade by three-grade, the data to be uploaded cannot be directly uploaded to the block chain, encryption processing is needed to be carried out on the data to be uploaded, the data is encrypted through a private key of a data owner, and the encrypted data size is further determined; if the size of the encrypted data exceeds a preset block volume capacity value, uploading a data hash value or uploading the encrypted data to be uploaded to different block chain nodes in blocks; and if the size of the encrypted data does not exceed a preset block capacity value, directly uploading the encrypted data to be uploaded.
It should be understood that when the encrypted data to be uploaded is blocked and uploaded to different blockchain nodes, the data is divided into a plurality of data to be stored in the system, the hash value of each data need to be calculated respectively, the merck tree of the data is constructed, then the root node of the merck tree is stored in the head of the blockchain, the leaf node of the merck branch is stored in the blockchain body, and after the data is uplinked, the change is not allowed.
In another embodiment of the invention, uploading the data to be shared to the steel alliance chain, further comprising directly obtaining the uplink metadata of the data to be uploaded, uploading the uplink metadata to the blockchain, and ensuring the correctness of the original data based on the characteristic that the data metadata in the blockchain node cannot be changed;
in another embodiment of the present invention, taking a preset threshold value as K as an example, obtaining that the data size of the data to be uploaded is greater than the preset threshold value K, obtaining a data digest based on the data to be uploaded, storing the data to be uploaded under a chain, and uploading the data digest obtained based on the data to be uploaded to a blockchain to ensure the correctness of the original data by the characteristic that the data digest in the blockchain node cannot be changed.
It should be understood that, because there is a situation that the data on the blockchain is inconvenient to search, a search engine is built on the data sharing platform to index the shared data, so as to solve the problem that the blockchain is not easy to search, and the steps are as follows: in the data uplink process, after being commonly recognized by a alliance block chain network, a data provider sends a data keyword or paragraph to a data sharing exchange platform, and after the data sharing exchange platform confirms the validity of a data block, the data is sent to a data sharing exchange platform search module, and the search module carries out indexing and associates data to obtain an address; and the data consumer searches the needed data through the directory service or the data search engine to apply for the data use permission.
In addition, in view of the data opening and security mechanisms of the internal and external systems of the block chain-based enterprises, a data copyright protection system needs to be established to avoid the influence of pirated data and imitated data on the benefits of the provider of the original data. It is necessary to detect the similarity of the data to be uplinked and the existing data in the coalition chain before the data is uplinked.
Before uploading the data to be shared to the steel alliance chain, the method further comprises the following steps: comparing the data similarity of candidate data to existing data, wherein the candidate data is the data to be uploaded to the steel alliance chain, and the existing data is the data uploaded to the steel alliance chain; if the data similarity is higher than or equal to a first similarity threshold, determining the candidate data as near-related data of the existing data, and refusing the near-related data to be uplink; if the data similarity is higher than or equal to the second similarity threshold and lower than the first similarity threshold, determining the candidate data as far parent data of the existing data, and allowing the far parent data to be uplink; and if the data similarity is lower than a second similarity threshold, determining the candidate data as newly added data, and allowing the newly added data to be uplink.
In one embodiment of the present invention, taking the first similarity threshold as K1 as an example, before a certain data to be uploaded is uplink, detecting that there is a relationship between the data to be uploaded and all existing data in the coalition chain, to obtain that the similarity between the data to be uploaded and certain data in the existing data is M1, and if M1 is greater than the first similarity threshold K1, the data to be uploaded is really near-related data of the existing data, and rejecting the data to be uploaded to be uplink.
In another embodiment of the present invention, taking the first similarity threshold value as K1 and the second similarity threshold value as K2 as an example, before a certain data to be uploaded is uploaded, detecting that there is a relationship between the data to be uploaded and all existing data in the coalition chain, so as to obtain that a certain data similarity between the data to be uploaded and the existing data is M2, and if M2 is greater than the second similarity threshold value K2 and less than the first similarity K1, the data to be uploaded is truly far-parent data of the existing data, allowing the data to be uploaded, and establishing a relationship between the data to be uploaded and the data similar to the data to be uploaded.
In another embodiment of the present invention, taking the first similarity threshold value as K1 and the second similarity threshold value as K2 as an example, before a certain data to be uploaded is uplink, detecting that there is a relationship between the data to be uploaded and all existing data in the coalition chain, to obtain that the similarity between the data to be uploaded and certain data in the existing data is M3, where M3 is smaller than the second similarity threshold value K2, and if the similarity between the data to be uploaded and the existing data is smaller than the second similarity threshold value K2, the data to be uploaded is really newly added data, and the data to be uploaded is allowed to be uplink.
In addition, in the process of data uplink, the method further comprises the step of recording device metadata of devices and node metadata of blockchain nodes into a alliance chain, wherein the devices comprise, but are not limited to, data generating devices such as sensors, PLCs, intelligent robots, cameras and the like, and the device metadata comprises the following data: the enterprise address is used for identifying a unique address of the enterprise worldwide, and the in-chain incentive and transaction address is used for associating which enterprise the equipment belongs to; a device code for identifying a globally unique device address by which a device can be uniquely determined; registration time, which is used for recording the time of equipment registration into a chain; a device information set for recording basic information of the device; a data description for describing data items of the device sharable data; a data item identifier for defining a set of device upload data items; a data type defining a type of a collection of device upload data items; custom information for custom additional information of blockchain nodes. Blockchain nodes refer to nodes that join the federation chain, and node metadata includes the following data: the enterprise address is used for identifying a unique address of the enterprise worldwide, and the in-chain incentive and transaction address is used for associating attribution of the blockchain nodes; a blockchain link point address identifying a unique address of a blockchain node; the registration time is used for recording the time of registering the chain entry of the block chain link point; custom information for custom additional information of the device.
In one embodiment of the invention, generating a data list based on steel alliance data includes: acquiring data metadata of data to be shared, wherein the data metadata comprises preset enterprise address information of a data provider; matching preset enterprise address information with candidate enterprise address information to obtain an enterprise association relationship between data to be shared and enterprise metadata, wherein the candidate enterprise address information is obtained based on the enterprise metadata; determining candidate enterprise address information which is the same as preset enterprise address information as associated enterprise address information, and obtaining associated equipment which has equipment association relation with the associated enterprise address based on the associated enterprise address; and constructing a data list according to the enterprise association relationship, the equipment association relationship and the data to be shared, wherein the data list comprises the data to be shared, the data metadata of the data to be shared, the equipment metadata of the associated equipment and the enterprise metadata of the associated enterprise.
Step S240, receiving a data transaction request sent by the data demander based on the target data, and generating an intelligent transaction contract.
It should be understood that in the block chain based data sharing, a data transaction system is further included, wherein the data transaction system is used for taking charge of data asset transaction, calibrating the price of data according to sharable data issued by a data provider, and setting the data as free data or charging data; in addition, the data consumption applies for the data access authority to the data provider, and if the data provider passes the audit, a new order block is generated. After the data application order block is added into the blockchain, the blockchain is commonly recognized into the chain, based on the data non-falsifiability characteristic of the blockchain, the data of the order is ensured to be non-modifiable, the data demand party and the data provider are required to be non-repudiated, and the data transaction is required to be completed according to the order information, wherein the rights and interests are defined as the rights and interests of the definition participants, and the participants are all benefit nodes in the steel alliance chain, including the data provider, the data demand party and other technical support parties.
In one embodiment of the invention, receiving a data transaction request from a data requesting party based on target data and generating an intelligent transaction contract includes: determining target data of a data requiring party based on the data transaction request; retrieving a target enterprise with an enterprise association relationship with the target data and a target device with a device association relationship with the target data from a data list; determining a transaction condition of the target data based on the data metadata of the target data, the enterprise metadata of the target enterprise, and the device metadata of the target device, and generating an intelligent transaction contract based on the transaction condition, the transaction condition including a transaction address and transaction pricing.
The smart trade contracts include paid contracts or gratuitous contracts, and after generating the smart trade contracts based on trade conditions, the smart trade contracts further include: when the intelligent transaction is about a paid contract, determining that the data type of the target data is far-parent data or irrelevant data; if the data type of the target data is far-parent data, determining a target data provider for providing the data to be shared and a relative data provider for providing the existing data based on the target data; and determining the wetting proportion of the target data provider and the relative data provider according to the similarity of the target data and the existing data.
In one embodiment of the invention, based on the similarity between the new uplink data A and the existing data B of the alliance chain, the data A is determined to be the distant data of the data B, and the data A is determined to be the new data processed on the basis of the data B, so that the provider enterprise A of the data A and the provider enterprise B of the data B can carry out the wetting on the sales income of the data A, the wetting proportion or the wetting mode of the provider enterprise A and the provider enterprise B is determined by self negotiation of the enterprise A and the enterprise B.
And step S250, issuing data permission to the data demand party according to the intelligent transaction contract, so that the data demand party obtains target data to share the target data.
Issuing data rights to a data demander according to an intelligent transaction contract, including: when the storage format of the target data in the steel alliance chain is plain text data, transmitting data access rights to a data demand party; when the storage format of the target data in the steel alliance chain is encrypted data, transmitting data access authority and a decryption key of the target data to a data demand party; when the storage format of the target data in the steel alliance chain is data abstract or data metadata, the data access authority and the access address of the private database where the target data are located are issued to the data demand party.
In one embodiment of the invention, the target data of the data demander is in a plain text data format on the steel alliance chain, and the data provider issues the data access right to the data demander based on the intelligent transaction contract so that the data demander can access the target data in the steel alliance blockchain.
In another embodiment of the present invention, the storage format of the target data of the data demander on the steel alliance chain is encrypted data, and then the data consumer needs to obtain the authority and the secret key at the same time to pull and use the data, so the data provider examines the demand sent by the data demander based on the intelligent contract, and sends the encrypted data and the public key corresponding to the encrypted data to the data demander after the examination is passed; the data demand party decrypts the received encrypted data based on the public key provided by the data provider, thereby obtaining the target data.
In one embodiment of the present invention, after issuing the data rights to the data demander according to the smart transaction contract so that the data demander obtains the target data, the method further includes: generating a data transaction record based on the intelligent transaction contract, and receiving evaluation information of a data demand party on target data; and uploading the data transaction record and the evaluation information as data meta information of target data to the steel alliance chain.
In one embodiment of the application, after the target data is obtained, the data requesting party evaluates the target data, generates a new order block based on the evaluation, and uplinks the new order block to be used as a reference item for changing the future pricing or other transaction matters of the target data. And, multiple sales orders of the same target data can be associated to generate a complete transaction flow and transaction information for the target data.
FIG. 7 is a diagram of data uplinks and transactions shown in accordance with an exemplary embodiment of the present application. As shown in fig. 7, a large-volume file can be stored between the data provider and the distributed file server, the data provider can obtain the query metadata and based on the hash value of the encrypted file metadata, then the file metadata and/or the hash value are/is linked into a coalition chain (i.e. steel coalition chain), the data consumer (i.e. the data consumer) can obtain the file metadata and/or the hash value through the coalition chain, the data consumer also needs to obtain the file authorization from the data provider, and can obtain the file from the distributed file server based on the file authorization, and the correctness of the file is determined by comparing the file hash value.
In one embodiment of the application, a data provider stores secret data D into a local distributed file server, calculates a hash value of the data D, uploads the hash value to an information transaction center, and a data consumer determines the data D as target data based on the information transaction center and determines the data provider of the data D; the data use direction alliance chain obtains a data hash value, sends a request for obtaining file authorization to the data provider, and after the data provider passes the verification, issues file authorization to the complaint office user, and the data user obtains a target data file from the distributed file server based on the record authorization and verifies the correctness of the file based on the obtained hash value.
FIG. 8 is a full flowchart of a blockchain-based data sharing method according to an exemplary embodiment of the present application, as shown in FIG. 8, in the blockchain-based data sharing method according to the present application, a data sharing platform and a federation chain are first established, then blockchain nodes are added to the federation chain, metadata records of systems, devices and blockchain nodes in an enterprise are uploaded to the federation chain, sharable data or data digests are uploaded, then a data search engine is established to index the shared data, and a data transaction system is established; finally, providing acquisition permission and public key for data consumption direction data, pulling and using target data, evaluating the target data and linking the evaluation; in addition, a data copyright system can be established for comparing the similarity of data and the blood relationship of data so as to determine the attribution of the data.
FIG. 9 is a block diagram of a blockchain-based data sharing device, as shown in an exemplary embodiment of the application. The device may be applied to the implementation environment shown in fig. 1. The apparatus may also be adapted to other exemplary implementation environments and may be specifically configured in other devices, and the present embodiment is not limited to the implementation environments to which the apparatus is adapted.
As shown in fig. 9, the exemplary blockchain-based data sharing apparatus includes: the system comprises a data acquisition module 910, a steel alliance chain construction module 920, a data uploading module 930, a transaction generating module 940 and a data sharing module 9950.
The data obtaining module 910 is configured to obtain alliance data of an iron and steel alliance enterprise and blockchain nodes of the iron and steel alliance enterprise, where the alliance data includes enterprise metadata, device metadata, data to be shared, and data metadata of the data to be shared; the steel alliance chain construction module 920 is used for connecting the block chain nodes of a plurality of steel alliance enterprises, generating a steel alliance chain and establishing a data sharing transaction platform; the data uploading module 930 is configured to upload data to be shared to the steel alliance chain, upload steel alliance data to the steel alliance chain and the data sharing transaction platform, and generate a data list based on the steel alliance data, where the data list is used for characterizing data information selectable by a data demander; a transaction generating module 940, configured to receive a data transaction request sent by a data demander based on the target data, and generate an intelligent transaction contract; the data sharing module 950 is configured to issue data rights to the data demander according to the intelligent transaction contract, so that the data demander obtains the target data to share the target data.
In addition, the data sharing device based on the blockchain also comprises a data monitoring module, wherein the data monitoring module is used for monitoring the uplink of data, data transaction, data evaluation and the similarity between the data to be uplink and the existing data.
It should be appreciated that the data monitoring module detects the similarity of the data to be uplinked and the existing data. The method can identify the data with high similarity with the current data and reject the similar data to be uplink, thereby effectively avoiding the situations of data piracy and data falsification. In addition, the data monitoring module can monitor the data sharing exchange process, accurately record the transaction process and the log, generate related transaction data and store the related transaction data in a uplink manner so as to obtain a tamper-proof transaction record, and provide effective evidence for data pricing.
It should be noted that, the apparatus for sharing data based on a blockchain provided in the above embodiment and the method for sharing data based on a blockchain provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit perform the operation has been described in detail in the method embodiment, which is not described herein again. In practical applications, the blockchain-based data sharing device provided in the foregoing embodiments may allocate the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
The embodiment of the application also provides electronic equipment, which comprises: one or more processors; and a storage device for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the blockchain-based data sharing method provided in the above embodiments.
Fig. 10 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application. It should be noted that, the computer system 1000 of the electronic device shown in fig. 10 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 10, the computer system 1000 includes a central processing unit (CentralProcessingUnit, CPU) 1001 which can perform various appropriate actions and processes according to a program stored in a Read-only memory (ROM) 1002 or a program loaded from a storage section 1008 into a random access memory (RandomAccessMemory, RAM) 1003, for example, performing the methods described in the above embodiments. In the RAM 1003, various programs and data required for system operation are also stored. The CPU1001, ROM1002, and RAM 1003 are connected to each other by a bus 1004. An Input/Output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a cathode ray tube (CathodeRayTube, CRT), a liquid crystal display (LiquidCrystalDisplay, LCD), and the like, a speaker, and the like; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN (local area network) card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed on the drive 1010 as needed, so that a computer program read out therefrom is installed into the storage section 1008 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. When executed by a Central Processing Unit (CPU) 1001, the computer program performs various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (ErasableProgrammableReadOnlyMemory, EPROM), a flash Memory, an optical fiber, a portable compact disk read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform a blockchain-based data sharing method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the blockchain-based data sharing method provided in the above embodiments.
The above embodiments are merely illustrative of the principles of the present application and its effectiveness, and are not intended to limit the application. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the application. It is therefore intended that all equivalent modifications and changes made by those skilled in the art without departing from the spirit and technical spirit of the present application shall be covered by the appended claims.

Claims (13)

1. A blockchain-based data sharing method, the method comprising:
acquiring alliance data of an iron and steel alliance enterprise and block chain nodes of the iron and steel alliance enterprise, wherein the alliance data comprises enterprise metadata, equipment metadata, data to be shared and data metadata of the data to be shared;
connecting block chain nodes of a plurality of steel alliance enterprises to generate steel alliance chains, and establishing a data sharing transaction platform;
uploading the data to be shared to the steel alliance chain, uploading the steel alliance data to the steel alliance chain and a data sharing transaction platform, and generating a data list based on the steel alliance data, wherein the data list is used for representing data information selectable by a data demand;
receiving a data transaction request sent by a data demand party based on target data, and generating an intelligent transaction contract;
and issuing data permission to the data demand party according to the intelligent transaction contract, so that the data demand party obtains the target data to share the target data.
2. The blockchain-based data sharing method of claim 1, wherein uploading the data to be shared to the steel alliance chain comprises:
Acquiring the data volume of the data to be shared and the security level of the data to be shared;
when the data volume of the data to be shared is smaller than a preset threshold value, if the security level of the data to be shared is lower than a preset level, uploading plaintext data of the data to be shared to the steel alliance chain, and if the security level of the data to be shared is equal to or higher than the preset level, encrypting the data to be shared, and uploading the encrypted data to the steel alliance chain;
and when the data volume of the data to be shared is greater than or equal to a preset threshold value, generating a data abstract based on the data to be shared, uploading the data abstract to the steel alliance chain, and storing the data to be shared in a private database of the target enterprise.
3. The blockchain-based data sharing method of claim 1, wherein uploading the data to be shared to the steel alliance chain further comprises:
and obtaining the uplink metadata of the data to be uploaded, and uploading the uplink metadata to a alliance chain.
4. The blockchain-based data sharing method of claim 3, further comprising, prior to uploading the data to be shared to the steel alliance chain:
Comparing the data similarity of candidate data and existing data, wherein the candidate data is the data to be uploaded to the steel alliance chain, and the existing data is the data uploaded to the steel alliance chain;
if the data similarity is higher than or equal to a first similarity threshold, determining the candidate data as near-related data of the existing data, and refusing the near-related data to be uplink;
if the data similarity is higher than or equal to a second similarity threshold and lower than the first similarity threshold, determining the candidate data as far-parent data of the existing data, and allowing the far-parent data to be uplink;
and if the data similarity is lower than the second similarity threshold, determining the candidate data as newly added data, and allowing the newly added data to be uplink.
5. The blockchain-based data sharing method of claim 4, wherein generating a data list based on the steel alliance data comprises:
acquiring data metadata of the data to be shared, wherein the data metadata comprise preset enterprise address information of a data provider;
matching the preset enterprise address information with candidate enterprise address information to obtain an enterprise association relationship between the data to be shared and the enterprise metadata, wherein the candidate enterprise address information is obtained based on the enterprise metadata;
Determining candidate enterprise address information which is the same as the preset enterprise address information as associated enterprise address information, and obtaining associated equipment which has equipment association relation with the associated enterprise address based on the associated enterprise address;
and constructing a data list according to the enterprise association relationship, the equipment association relationship and the data to be shared, wherein the data list comprises the data to be shared, the data metadata of the data to be shared, the equipment metadata of the associated equipment and the enterprise metadata of the associated enterprise.
6. The blockchain-based data sharing method of claim 5, wherein receiving a data transaction request from a data demander based on target data and generating an intelligent transaction contract includes:
determining target data of the data requiring party based on the data transaction request;
retrieving a target enterprise with an enterprise association relationship with the target data and a target device with a device association relationship with the target data from the data list;
determining a transaction condition of the target data based on the data meta-information of the target data, the enterprise meta-data of the target enterprise, and the device meta-data of the target device, and generating an intelligent transaction contract based on the transaction condition, wherein the transaction condition comprises a transaction address and transaction pricing.
7. The blockchain-based data sharing method of claim 6, wherein the smart transaction contract includes a paid contract or a gratuitous contract, and further comprising, after generating the smart transaction contract based on the transaction condition:
when the intelligent transaction is about a paid contract, determining that the data type of the target data is far-parent data or irrelevant data;
if the data type of the target data is far-parent data, determining a target data provider for providing data to be shared and a relative data provider for providing existing data based on the target data;
and determining the wetting proportion of the target data provider and the relative data provider according to the similarity of the target data and the existing data.
8. The blockchain-based data sharing method of claim 1, wherein issuing data rights to the data demander in accordance with the smart transaction contract comprises:
when the storage format of the target data in the steel alliance chain is plaintext data, transmitting data access rights to the data demand party;
when the storage format of the target data in the steel alliance chain is encrypted data, transmitting data access authority and a decryption key of the target data to the data requiring party;
And when the storage format of the target data in the steel alliance chain is a data abstract, transmitting data access authority and an access address of a private database where the target data is located to the data demand party.
9. The blockchain-based data sharing method of any of claims 1-8, wherein issuing data rights to the data demander in accordance with the smart transaction contract such that the data demander obtains the target data further comprises:
generating a data transaction record based on the intelligent transaction contract, and receiving evaluation information of the data demand party on the target data;
and uploading the data transaction record and the evaluation information to the steel alliance chain as data meta information of the target data.
10. A blockchain-based data sharing device, the device comprising:
the system comprises a data acquisition module, a data sharing module and a data processing module, wherein the data acquisition module is used for acquiring alliance data of an iron and steel alliance enterprise and block chain nodes of the iron and steel alliance enterprise, and the alliance data comprises enterprise metadata, equipment metadata, data to be shared and data metadata of the data to be shared;
the steel alliance chain construction module is used for connecting block chain nodes of a plurality of steel alliance enterprises, generating a steel alliance chain and establishing a data sharing transaction platform;
The data uploading module is used for uploading the data to be shared to the steel alliance chain, uploading the steel alliance data to the steel alliance chain and the data sharing transaction platform, and generating a data list based on the steel alliance data, wherein the data list is used for representing data information selectable by a data demand;
the transaction generation module is used for receiving a data transaction request sent by a data demand party based on target data and generating an intelligent transaction contract;
and the data sharing module is used for issuing data permission to the data demand party according to the intelligent transaction contract, so that the data demand party obtains the target data to share the target data.
11. The blockchain-based data sharing device of claim 10, further comprising:
the data monitoring module is used for monitoring the uplink of data, data transaction, data evaluation and the similarity between the data to be uplink and the existing data.
12. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the blockchain-based data sharing method of any of claims 1-9.
13. A computer readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the blockchain-based data sharing method of any of claims 1 to 9.
CN202310381543.1A 2023-04-11 2023-04-11 Block chain-based data sharing method, device, equipment and storage medium Pending CN116860866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310381543.1A CN116860866A (en) 2023-04-11 2023-04-11 Block chain-based data sharing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310381543.1A CN116860866A (en) 2023-04-11 2023-04-11 Block chain-based data sharing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116860866A true CN116860866A (en) 2023-10-10

Family

ID=88225560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310381543.1A Pending CN116860866A (en) 2023-04-11 2023-04-11 Block chain-based data sharing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116860866A (en)

Similar Documents

Publication Publication Date Title
Ocheja et al. Managing lifelong learning records through blockchain
TWI694350B (en) Information supervision method and device based on blockchain
CN110471953B (en) Method, proxy node and medium for determining accounting node in blockchain network
US20220020001A1 (en) Decisional Architectures in Blockchain Environments
US11360963B2 (en) Tracking and verification of physical assets
CN108550037B (en) File processing method and device based on block chain
JP7324231B2 (en) Distributed database structure for anonymous exchange of information
CN111291394B (en) False information management method, false information management device and storage medium
US20190386968A1 (en) Method to securely broker trusted distributed task contracts
CN115049398A (en) Complete data asset trusted management and value transfer system and method
US20190171848A1 (en) Distributed data management and verification
KR20230054368A (en) Digital ledger-based health data sharing and management
US20220278845A1 (en) Honest behavior enforcement via blockchain
EP4092984A1 (en) Data processing method and apparatus, device and medium
CN113486122A (en) Data sharing method and electronic equipment
CN111046078A (en) Block chain-based credit investigation query method and device and electronic equipment
CN112862589A (en) Identity verification method, device and system in financial scene
CN116684160A (en) Public service litigation data security sharing and privacy protecting method and system
CN111709857A (en) House resource sharing method and device and electronic equipment
CN115186033A (en) Data processing method based on block chain, authorization method and device and electronic equipment
CN115564609A (en) Litigation case management method, system, terminal device and computer readable medium
CN116860866A (en) Block chain-based data sharing method, device, equipment and storage medium
KR102450412B1 (en) SLA-Based Sharing Economy Service with Smart Contract for Resource Integrity in the Internet of Things
US11887146B2 (en) Product exploration-based promotion
CN113706261A (en) Block chain-based power transaction method, device and system

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