Data sharing method and device based on block chain

By creating a multi-chain shared network structure that matches the target business scenarios in the multi-chain shared network structure, the problem that the existing technology cannot meet the sharing needs of multi-party collaborative complex scenarios that combine industrial blockchain with the Internet of Things and the industrial Internet is solved, and trusted sharing and efficient traceability of multi-level, multi-objective, and multi-grained information is achieved.

CN119544705APending Publication Date: 2025-02-28TONGFANG KNOWLEDGE NETWORK DIGITAL PUBLISHING TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411367090.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The existing blockchain-based data sharing method cannot meet the sharing needs of multi-party collaborative complex scenarios that combine industrial blockchain with the Internet of Things and the industrial Internet, resulting in data sharing being unable to accurately and efficiently backtrack.

Method used

By creating a multi-chain shared network structure that matches the target business scenario, including business chains, business systems and cross-link routing, the original data is collected and shared data and cross-chain association structure are created, and the business chain is carried out through cross-link routing, and the shared data and cross-chain association structure of the target business chain are queried.

Benefits of technology

It realizes trusted sharing and efficient traceability of multi-level, multi-objective, and multi-grained information in complex scenarios of multi-party collaboration, supports trusted linking and query functions for cross-chain shared data, and improves the effectiveness of data sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544705A_ABST
    Figure CN119544705A_ABST
Patent Text Reader

Abstract

The invention discloses a data sharing method and device based on a block chain, relates to the technical field of block chains, and mainly aims to solve the problem that existing data sharing cannot meet the sharing requirements of multi-party collaborative complex scenes such as combination of an industrial block chain, the Internet of Things and the industrial Internet. Comprising the steps that a multi-chain shared network structure matched with a target service scene is created, and the multi-chain shared network structure comprises a service chain, a service system and a cross-chain route; the method comprises the following steps: after a service system acquires original data, creating shared data and a cross-chain association structure of the original data, and executing uplink operation of a service chain on the shared data and the cross-chain association structure through cross-chain routing; and when the business system sends a query transaction of a target business chain through the cross-chain route, querying the target shared data and the cross-chain association structure corresponding to the target business chain, and querying the association shared data and the cross-chain association structure of the association business chain according to the target shared data and the cross-chain association structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a data sharing method and device based on blockchain. Background Art

[0002] Blockchain technology is an innovative technology that integrates and applies multiple computer technologies such as distributed data storage, peer-to-peer transmission, distributed consensus algorithms and encryption algorithms. The sharing system built on blockchain technology needs to achieve secure, controllable and trusted sharing management of multi-level, multi-objective and multi-granular information. Among them, multi-level information sharing includes three levels: enterprise production management information sharing, industrial chain collaborative information sharing, and industrial and financial collaborative information sharing. At the same time, the three levels build different business chains due to different service goals of shared information. Different business chains have different granularity of information sharing due to different service objects, data security and privacy protection requirements, such as detailed data sharing, summary data sharing, ciphertext data sharing, statistical data sharing, etc. Therefore, how to construct an easily scalable trusted data sharing model to support the on-demand construction of a trusted sharing business chain and break through the system bottleneck of trusted sharing of multi-level, multi-objective and multi-granular information is a challenging problem faced by the construction of a multi-party collaborative complex scenario information sharing system.

[0003] At present, existing blockchain-based information data sharing methods can include single-chain mode, master-slave chain mode and multi-chain mode to store and share information. However, the single-chain mode has relatively simple data sharing requirements and relatively simple applicable scenarios. The master-slave chain mode has a large data sharing scale and high applicable scenario requirements. Multi-chain mode data sharing can only meet the cross-chain transfer scenario of digital assets. That is, the data sharing of the above three modes cannot meet the sharing needs of complex multi-party collaborative scenarios such as the combination of industrial blockchain with the Internet of Things and the Industrial Internet. There is a serious split between the shared data of multiple business chains, which makes it impossible for data sharing to be accurately and efficiently traced back for complex multi-party collaborative scenarios. Therefore, a blockchain-based data sharing method is urgently needed to solve the above technical problems. Summary of the invention

[0004] In view of this, the present invention provides a data sharing method and device based on blockchain, the main purpose of which is to solve the problem that existing data sharing cannot meet the sharing needs of complex multi-party collaborative scenarios such as the combination of industrial blockchain with the Internet of Things and the Industrial Internet.

[0005] According to one aspect of the present invention, a data sharing method based on blockchain is provided, comprising:

[0006] Create a multi-chain shared network structure that matches the target business scenario, the multi-chain shared network structure including business chains, business systems, and cross-chain routing;

[0007] After the business system collects the original data, it creates shared data and a cross-chain association structure for the original data, and performs the on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain routing;

[0008] When the business system issues a query transaction of the target business chain through a cross-chain route, the target shared data and cross-chain association structure corresponding to the target business chain are queried, and the associated shared data and cross-chain association structure of the associated business chain are queried based on the target shared data and cross-chain association structure.

[0009] Furthermore, the shared data and cross-chain association structure includes a shared data item identifier, a shared data item information field, and a shared data item cross-chain association field, and the shared data and cross-chain association structure for creating the original data includes:

[0010] Constructing a shared data item identifier based on the chain identifier of the original data and the identifier within the data necklace, wherein the shared data item identifier is used to uniquely identify the shared data item;

[0011] Extracting the shared information field of the shared data item based on the target business scenario, and constructing a shared data item information domain based on the shared information field, wherein the shared data item information domain is used to represent the content of the shared data;

[0012] A cross-chain relationship is determined based on the shared data item information domain, and a shared data item cross-chain association domain is constructed based on the cross-chain relationship and the shared data item identifier.

[0013] Furthermore, the creation of the shared data and cross-chain association structure of the original data includes:

[0014] When the shared data item information field includes data information of a data block or off-chain storage information of a data file / data block, the shared data item cross-chain association field is configured to be an empty association;

[0015] When the shared data item information field includes data hash value information of a data file / data block, the shared data item cross-chain association field is configured as a feature association;

[0016] When the shared data item information domain includes business-critical shared information, configuring the shared data item cross-chain association domain as an inclusion association;

[0017] When the shared data item information field includes business sharing derivative information, the shared data item cross-chain association field is configured as a derivative association.

[0018] Furthermore, the creation of a multi-chain shared network structure matching the target business scenario includes:

[0019] Based on the alliance chain technology, a business chain matching the target business scenario and a business system for on-chain operations and query operations are created;

[0020] Based on the cross-chain technology, the business chain and the cross-chain route are connected, wherein different cross-chain routes are interconnected, and the business system is connected to the cross-chain route.

[0021] Furthermore, performing the on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route includes:

[0022] The cross-chain transaction initiation operation of starting data on-chain by connecting the cross-chain route through the business system, and determining the business chain to be operated on-chain and the shared data and cross-chain association structure of the business chain through the cross-chain route;

[0023] The business system initiates a data on-chain transaction operation of the shared data and the cross-chain association structure to the business chain through the cross-chain route, and monitors the data on-chain transaction status of the business chain;

[0024] When all data on-chain transaction operations are completed, a cross-chain transaction submission operation is initiated to submit the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain;

[0025] When all data on-chain transaction operations are not completed, a cross-chain transaction rollback operation is initiated to cancel the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain.

[0026] Further, the querying of the target shared data and the cross-chain association structure corresponding to the target business chain, and querying the associated shared data and the cross-chain association structure of the associated business chain according to the target shared data and the cross-chain association structure includes:

[0027] The business system queries the target shared data item identifier, target shared data and cross-chain association structure of the target business chain through a cross-chain route;

[0028] The target shared data item cross-chain association domain corresponding to the target shared data item identifier is parsed by the business system, and a cross-chain shared data query operation is performed based on the target shared data item cross-chain association domain to obtain the associated shared data and cross-chain association structure of the associated business chain.

[0029] Furthermore, the performing a cross-chain shared data query operation based on the cross-chain association domain of the target shared data item includes:

[0030] When the cross-chain association domain of the target shared data item is an empty association, the cross-chain shared data query operation ends;

[0031] When the cross-chain association domain of the target shared data item is any one of a feature association, an inclusion relationship, and a derivative relationship, the business system queries the associated shared data and cross-chain association structure of the associated business chain associated with the target shared data and cross-chain association structure corresponding to the target shared data item identifier through a cross-chain routing.

[0032] According to another aspect of the present invention, a data sharing device based on blockchain is provided, comprising:

[0033] A first creation module is used to create a multi-chain shared network structure that matches the target business scenario, wherein the multi-chain shared network structure includes a business chain, a business system, and a cross-chain route;

[0034] A second creation module is used to create shared data and a cross-chain association structure of the original data after the business system collects the original data, and perform an on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route;

[0035] The query module is used to query the target shared data and cross-chain association structure corresponding to the target business chain when the business system issues a query transaction of the target business chain through a cross-chain route, and query the associated shared data and cross-chain association structure of the associated business chain based on the target shared data and cross-chain association structure.

[0036] Furthermore, the shared data and cross-chain association structure includes a shared data item identifier, a shared data item information field, and a shared data item cross-chain association field, and the second creation module includes:

[0037] A first construction unit is used to construct a shared data item identifier based on the chain identifier of the original data and the data necklace inner identifier, wherein the shared data item identifier is used to uniquely identify the shared data item;

[0038] An extraction unit, configured to extract a shared information field of the shared data item based on the target business scenario, and construct a shared data item information domain based on the shared information field, wherein the shared data item information domain is used to represent the content of the shared data;

[0039] A determination unit is used to determine a cross-chain relationship based on the shared data item information domain, and to construct a shared data item cross-chain association domain based on the cross-chain relationship and the shared data item identifier.

[0040] Furthermore, the device also includes:

[0041] A configuration module is used to configure the shared data item cross-chain association domain as an empty association when the shared data item information domain includes data information of a data block or off-chain storage information of a data file / data block; to configure the shared data item cross-chain association domain as a feature association when the shared data item information domain includes data hash value information of a data file / data block; to configure the shared data item cross-chain association domain as an inclusion association when the shared data item information domain includes business-critical shared information; and to configure the shared data item cross-chain association domain as a derivative association when the shared data item information domain includes business-shared derivative information.

[0042] Furthermore, the first creation module is used to create a business chain matching the target business scenario and a business system for on-chain operations and query operations based on alliance chain technology; and to create a connection between the business chain and the cross-chain route based on cross-chain technology, wherein different cross-chain routes are interconnected, and the business system is connected to the cross-chain route.

[0043] Furthermore, the second creation module is also used to connect the cross-chain route through the business system to start the cross-chain transaction initiation operation of data on the chain, and determine the business chain to be on-chain operated and the shared data and cross-chain association structure of the business chain through the cross-chain route; the business system initiates the data on-chain transaction transaction operation of the shared data and cross-chain association structure to the business chain through the cross-chain route, and monitors the data on-chain transaction transaction status of the business chain; when all data on-chain transaction transaction operations are completed, a cross-chain transaction submission operation is initiated to submit the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain; when all data on-chain transaction transaction operations are not completed, a cross-chain transaction rollback operation is initiated to cancel the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain.

[0044] Furthermore, the query module includes:

[0045] A first query unit, configured for the business system to query the target shared data item identifier, target shared data, and cross-chain association structure of the target business chain through a cross-chain route;

[0046] The second query unit is used to parse the target shared data item cross-chain association domain corresponding to the target shared data item identifier through the business system, and perform a cross-chain shared data query operation based on the target shared data item cross-chain association domain to obtain the associated shared data and cross-chain association structure of the associated business chain.

[0047] Furthermore, the second query unit is specifically used to end the cross-chain shared data query operation when the cross-chain association domain of the target shared data item is an empty association; when the cross-chain association domain of the target shared data item is any one of a feature association, an inclusion relationship, and a derivative relationship, the business system queries the associated shared data and cross-chain association structure of the associated business chain associated with the target shared data and cross-chain association structure corresponding to the target shared data item identifier through a cross-chain routing.

[0048] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned blockchain-based data sharing method.

[0049] According to another aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0050] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned blockchain-based data sharing method.

[0051] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:

[0052] The present invention provides a data sharing method and device based on blockchain. Compared with the prior art, the embodiments of the present invention create a multi-chain sharing network structure matching a target business scenario, wherein the multi-chain sharing network structure includes a business chain, a business system, and a cross-chain route. When the business system collects original data, it creates shared data and a cross-chain association structure of the original data, and performs a chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route. When the business system issues a query transaction of a target business chain through the cross-chain route, it queries the target shared data and the cross-chain association structure corresponding to the target business chain, and queries the associated shared data and the cross-chain association structure of the associated business chain according to the target shared data and the cross-chain association structure, effectively supporting the trusted chaining and trusted query functions of cross-chain shared data based on a multi-chain sharing network, realizing trusted sharing and efficient traceability of multi-level, multi-target, and multi-granularity information in complex scenarios of multi-party collaboration, and providing technical support for building a multi-party collaborative complex scenario information sharing system, thereby realizing the purpose of data sharing under blockchain and improving the effectiveness of data sharing.

[0053] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0055] Figure 1 A flowchart of a data sharing method based on blockchain provided by an embodiment of the present invention is shown;

[0056] Figure 2 A schematic diagram of a cross-chain association structure of shared data items of multiple business chains provided by an embodiment of the present invention is shown;

[0057] Figure 3 A schematic diagram of a multi-chain sharing network structure provided by an embodiment of the present invention is shown;

[0058] Figure 4 A block diagram of a data sharing device based on blockchain provided by an embodiment of the present invention is shown;

[0059] Figure 5 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0060] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0061] The embodiment of the present invention provides a data sharing method based on blockchain, such as Figure 1 As shown, the method includes:

[0062] 101. Create a multi-chain shared network structure that matches the target business scenario.

[0063] In the embodiment of the present invention, the target business scenario is a complex scenario that requires multi-party collaborative data sharing. Different business scenarios require different data sharing content. Therefore, the current execution end first creates a multi-chain shared network structure that matches the target business scenario. Among them, the multi-chain shared network structure includes a business chain, a business system, and a cross-chain route. The business chain is uniquely identified by a chain identifier (BCid) and matches the target business scenario. It is an alliance chain built on the basis of meeting the common data security and privacy protection needs of the parties involved in sharing data. The business chain supports the trusted storage of shared data and associated structures and the trusted query and verification of shared data. At this time, the business chain can be built based on, but not limited to, the underlying blockchain technologies such as Hyperledger Fabric and FISCOBCOS, which are not specifically limited in the embodiment of the present invention. The business system is an application system for multiple business chains to share information, so as to complete the chain storage and cross-chain query business functions of cross-chain shared data of multiple business chains, which are not specifically limited in the embodiment of the present invention. The cross-chain route is a service module that connects the business system and the business chain. It is connected to the business chain and can connect multiple business chains at the same time. It also provides a unified business chain call interface for the business system, supports functions such as dynamic access to business chains and cross-chain transaction processing, and realizes dynamic expansion of multi-chain networks and atomic transactional cross-chain operations of shared data. At this time, the cross-chain route can be constructed based on, but not limited to, the FISCO BCOS cross-chain collaboration platform WeCross technology, and the embodiments of the present invention do not make specific limitations.

[0064] 102. After the business system collects the original data, it creates shared data and a cross-chain association structure of the original data, and performs on-chain operations of the business chain on the shared data and the cross-chain association structure through the cross-chain routing.

[0065] In the embodiment of the present invention, after constructing a multi-chain shared network structure, in order to realize data sharing, it is first necessary to upload the shared data content to the chain, that is, the business system first collects the original data, and the original data at this time is the data content that needs to be uploaded to the chain for sharing. For different target business scenarios, the collected original data is different, and the embodiment of the present invention does not make specific limitations. Furthermore, a shared data chain and a cross-chain association structure of the original data are created, that is, defined according to the data sharing requirements. As a data structure, the shared data and the cross-chain association structure include three types of data: a shared data item identifier (SDid), a shared data item information field (DataFields), and a shared data item cross-chain association field (LinkFields), so that the business system performs the upload operation on the business chain according to the data structure of the shared data item identifier (SDid), the shared data item information field (DataFields), and the shared data item cross-chain association field (LinkFields) through cross-chain routing, and obtains the shared data on each business chain.

[0066] 103. When the business system issues a query transaction of the target business chain through a cross-chain route, the target shared data and cross-chain association structure corresponding to the target business chain are queried, and the associated shared data and cross-chain association structure of the associated business chain are queried based on the target shared data and cross-chain association structure.

[0067] In the embodiment of the present invention, after the shared data is uploaded to the chain, users with sharing qualifications can query the shared data through the business system. At this time, users with sharing qualifications can be multi-party information sharing parties in the multi-chain sharing network structure, and the embodiment of the present invention does not make specific restrictions. After the user issues a query transaction of the target business chain through a cross-chain route based on the business system, the current execution end queries the target shared data and cross-chain association structure corresponding to the target business chain, and uses this target shared data and cross-chain association structure to query the associated shared data and cross-chain association structure of the corresponding associated business chain, thereby retrieving the target shared data and associated shared data.

[0068] It should be noted that the current execution subject, as the execution end for building, uploading and querying the cross-chain, can be a cross-chain server or a cross-chain service system, and the embodiment of the present invention does not make specific limitations.

[0069] In another embodiment of the present invention, for further definition and explanation, the steps of creating the shared data and cross-chain association structure of the original data include:

[0070] Constructing a shared data item identifier based on the chain identifier of the original data and the identifier within the data necklace;

[0071] Extracting the shared information field of the shared data item based on the target business scenario, and constructing a shared data item information domain based on the shared information field;

[0072] A cross-chain relationship is determined based on the shared data item information domain, and a shared data item cross-chain association domain is constructed based on the cross-chain relationship and the shared data item identifier.

[0073] In order to identify shared data and improve the effectiveness of uploading and querying shared data, the data structures of three types of data, namely shared data item identifier (SDid), shared data item information field (DataFields), and shared data item cross-chain association field (LinkFields), are defined when building shared data and cross-chain association structures. Among them, the shared data item identifier (SDid) is used to uniquely identify the shared data item, which is constructed based on the chain identifier (BCid) of the original data collected by the business system and the UUID in the data necklace, expressed as Bcid / UUID, as the unique identification code for data storage, sharing, and traceability. The shared data item information domain (DataFields) is used to characterize the content of shared data, and the shared information fields of the shared data items are extracted based on the target business scenario, that is, the KV values ​​of one or more shared information fields selected as shared data items in the original data are recorded, and the shared data item information domain is constructed based on the shared information fields, including but not limited to data hash value information, data storage information, business sharing information, etc. At the same time, the business sharing information records the multi-party shared information related to the business, which may include but not limited to related party information, entity description information, process record information, state record information, and derivative record information. The embodiment of the present invention does not make specific restrictions. In order to reflect the relationship between each shared data, the cross-chain relationship is determined based on the shared data item information domain to characterize whether there is an association between each shared data. Then, the shared data item cross-chain association domain is constructed based on the cross-chain relationship and the shared data item identifier, that is, the shared data item cross-chain association domain records one or more cross-chain shared data items that have an association relationship with the current shared data item, which is expressed as <cross-chain shared data item identifier SDid, association relationship>. Among them, the association relationship can be but not limited to [data file / data block: data hash value] feature association, [detailed data: extracted data] inclusion association, [original data: derived data] derivative association, and the derived data can be but not limited to encrypted generated data, statistical analysis generated data, AI generated data, etc., and the embodiments of the present invention do not make specific limitations.

[0074] In a specific implementation scenario, after the business system completes the collection of original data, for the multi-chain network structure, the shared data and associated structures (ShareStu-1, ..., ShareStu-N) of the N business chains (Chain-1, ..., Chain-N) related to the original data are respectively constructed. Among them, the shared data and associated structure is a data structure stored on the business chain. The shared data and associated structure describe the shared content of the element data in the business chain. Specifically, the shared data items that need to be written into the shared data and associated structure and the corresponding shared data content are determined by business needs. Users can write them by the business system, and the embodiment of the present invention does not make specific limitations. Specifically, the construction process includes: 1. Obtain the chain identifiers (BCid) and data necklace identifiers UUID of the N business chains respectively, and generate a shared data item identifier (SDid). The generation method can be but is not limited to Bcid / UUID, Bcid.UUID and other forms, and the embodiment of the present invention does not make specific limitations. 2. Respectively obtain and record one or more shared information field KV values ​​of the shared data item information domain (DataFields) of N business chains. The shared information may include but is not limited to data hash value information, off-chain data storage information, and business shared information related party information, process record information, status record information, derived generation information, etc., which are not specifically limited in the embodiments of the present invention. 3. Respectively record one or more cross-chain shared data items of the cross-chain association domain (LinkFields) of the shared data items of N business chains, in the form of <cross-chain shared data item identifier SDid, association relationship>. Among them, the above acquisition method can read data from a database, data file, or acquisition device according to different data sources, or read data from the client manually. The embodiments of the present invention do not make specific limitations.

[0075] In another embodiment of the present invention, for further definition and explanation, the steps of creating the shared data and cross-chain association structure of the original data include:

[0076] When the shared data item information field includes data information of a data block or off-chain storage information of a data file / data block, the shared data item cross-chain association field is configured to be an empty association;

[0077] When the shared data item information field includes hash value information of a data file / data block, the shared data item cross-chain association field is configured as a feature association;

[0078] When the shared data item information domain includes business-critical shared information, configuring the shared data item cross-chain association domain as an inclusion association;

[0079] When the shared data item information field includes business sharing derivative information, the shared data item cross-chain association field is configured as a derivative association.

[0080] In order to achieve the credibility verification of shared data between multiple chains and the effectiveness of the trusted data lineage analysis between multiple chains, so as to solve the problems of data source tracing, troubleshooting and impact scope analysis, when creating shared data and cross-chain association structures, first parse the data content in the shared data item information field (DataFields) to determine whether there is a corresponding association between the shared data of each business chain. In a specific implementation scenario, when the shared data item information field includes data information or storage information (such as data information of a data block or off-chain storage information of a data file / data block), it means that there is no association relationship between the current shared data item and other cross-chain shared data items. It is sufficient to configure the shared data item cross-chain association field to be an empty association. The shared data item cross-chain association field (LinkFields) is expressed as<NULL,NULL> . When the shared data item information domain includes hash value information (such as data hash value information of a data file / data block), the identifier SDid of the cross-chain shared data item corresponding to the data hash value and the data information containing the corresponding data block or the off-chain storage information of the data file / data block can be obtained, and then the cross-chain association domain of the shared data item is configured as a feature association. At this time, the cross-chain association domain of the shared data item (LinkFields) is expressed as <cross-chain shared data item identifier SDid, feature association>. When the shared data item information domain includes business-critical shared information (which may include but is not limited to business-related parties, business process records, business status records, etc.), the information stored in the shared data item information domain (DataFields) is the cross-chain shared data item identifier SDid of the detailed information of the business-critical shared information, and then the cross-chain association domain of the shared data item is configured as an inclusion association. The cross-chain association domain of the shared data item (LinkFields) is expressed as <cross-chain shared data item identifier SDid, inclusion association>. When the shared data item information domain includes business shared derivative information (which may include but is not limited to encrypted generated data, statistical analysis generated data, AI generated data, etc.), the information stored in the shared data item information domain (DataFields) is the identifier SDid of the cross-chain shared data item of the original data of the above-mentioned business shared derivative information, and then the shared data item cross-chain association domain is configured as a derived association, and the shared data item cross-chain association domain (LinkFields) is expressed as <cross-chain shared data item identifier SDid, derived association>.

[0081] In a specific implementation scenario, such as Figure 2The cross-chain association example of shared data items in multiple business chains shown in the figure, specifically, the shared data item identified as B.id1 in business chain B has a "feature association" relationship with the shared data item identified as A.id1 in business chain A, that is, the hash value of the data block / data file in business chain A is stored in business chain B; the shared data item identified as C.id1 in business chain C has an "inclusion association" relationship with the shared data item identified as B.id1 in business chain B, and has a "derivative association" relationship with the shared data item identified as A.id1 in business chain A, that is, part of the shared data in business chain C is directly copied from business chain B, and the other part of the shared data is generated by algorithmic calculation of the data in business chain A.

[0082] In another embodiment of the present invention, for further definition and explanation, the steps of creating a multi-chain shared network structure matching the target business scenario include:

[0083] Create a business chain matching the target business scenario based on alliance chain technology, and a business system for chain operations and query operations;

[0084] A connection between the business chain and the cross-chain route is created based on cross-chain technology.

[0085] In order to achieve the atomic effect of chain operations on N business chains by using cross-chain transaction processing, thereby ensuring the accuracy of chain operations, when building a multi-chain shared network structure, first create a business chain that matches the target business scenario based on the alliance chain technology, and initialize the business system developed in the blockchain technology so that the business system can meet the chain operations and query operations of shared data. Then, based on the cross-chain technology, create a connected business chain and a cross-chain route, and different cross-chain routes are connected to each other, and the business system is connected to the cross-chain route.

[0086] It should be noted that the multi-chain shared network structure constructed in the embodiment of the present invention may include at least one service chain, at least one cross-chain route and at least one service system. Multiple service chains can be constructed simultaneously or at any time according to data sharing requirements, which is not specifically limited in the embodiment of the present invention. In addition, multiple cross-chain routes can be interconnected using, but not limited to, the P2P protocol to support mutual forwarding requests and synchronize multi-service chain adaptation information. At this time, multiple service systems correspond to different shared data services to meet the service requirements of different terminal users. For example, Figure 3The multi-chain shared network structure example shown includes business chain A, business chain B, and business chain C, which respectively store shared data and cross-chain association structure A, shared data and cross-chain association structure B, and shared data and cross-chain association structure C. It also includes two cross-chain routes, which are interconnected and connected to the three business chains respectively. The three business systems can access all business chains through any cross-chain route, support different shared data services, and serve different end users.

[0087] In another embodiment of the present invention, for further definition and explanation, the step of performing the on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route includes:

[0088] The cross-chain transaction initiation operation of starting data on-chain by connecting the cross-chain route through the business system, and determining the business chain to be operated on-chain and the shared data and cross-chain association structure of the business chain through the cross-chain route;

[0089] The business system initiates a data on-chain transaction operation of the shared data and the cross-chain association structure to the business chain through the cross-chain route, and monitors the data on-chain transaction status of the business chain;

[0090] When all data on-chain transaction operations are completed, a cross-chain transaction submission operation is initiated to submit the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain;

[0091] When all data on-chain transaction operations are not completed, a cross-chain transaction rollback operation is initiated to cancel the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain.

[0092] In order to upload shared data to the chain and achieve the purpose of effective blockchain data sharing, the cross-chain transaction initiation operation of starting data upload to the chain is first initiated through the business system connecting to the cross-chain route, and the business chain to be uploaded to the chain and the shared data and cross-chain association structure of the business chain are determined through the cross-chain route. Furthermore, the business system initiates the data on-chain transaction operation of the shared data and cross-chain associated structure to the business chain through the cross-chain route, and monitors the data on-chain transaction transaction status of the business chain. For example, the business system starts the cross-chain transaction initiation operation of data on the chain through the cross-chain route, and at the same time, the cross-chain route locks the shared data and associated structures (ShareStu-1, ..., ShareStu-N) corresponding to the N business chains (Chain-1, ..., Chain-N). Furthermore, the business system initiates data on-chain transaction transactions of the shared data and associated structures (ShareStu-1, ..., ShareStu-N) of the corresponding business chains to the N business chains (Chain-1, ..., Chain-N) through the cross-chain route, and the business system monitors the status of the data on-chain transaction transactions of the shared data and associated structures (ShareStu-1, ..., ShareStu-N) corresponding to the N business chains (Chain-1, ..., Chain-N) through the cross-chain route. In a specific implementation scenario, when all data on-chain transaction operations are completed, a cross-chain transaction submission operation is initiated to submit the shared data and cross-chain associated structure corresponding to the business chain to complete the on-chain data change. That is, when all data on-chain transactions of N business chains (Chain-1, ..., Chain-N) are completed, the business system initiates a cross-chain transaction submission operation through a cross-chain route, and successfully confirms all data changes of the data on-chain operations of the shared data and associated structures (ShareStu-1, ..., ShareStu-N) corresponding to the N business chains (Chain-1, ..., Chain-N). When all data on-chain transaction operations are not completed, a cross-chain transaction rollback operation is initiated to cancel the on-chain data changes of the shared data and cross-chain associated structures corresponding to the business chain. That is, when a step of the data on-chain transaction of N business chains (Chain-1, ..., Chain-N) fails to execute, the business system initiates a cross-chain transaction rollback operation through a cross-chain route, and successfully cancels all data changes of the data on-chain operations of the shared data and associated structures (ShareStu-1, ..., ShareStu-N) corresponding to the N business chains (Chain-1, ..., Chain-N).

[0093] In another embodiment of the present invention, for further definition and explanation, the step of querying the target shared data and the cross-chain association structure corresponding to the target business chain, and querying the associated shared data and the cross-chain association structure of the associated business chain according to the target shared data and the cross-chain association structure includes:

[0094] The business system queries the target shared data item identifier, target shared data and cross-chain association structure of the target business chain through a cross-chain route;

[0095] The target shared data item cross-chain association domain corresponding to the target shared data item identifier is parsed by the business system, and a cross-chain shared data query operation is performed based on the target shared data item cross-chain association domain to obtain the associated shared data and cross-chain association structure of the associated business chain.

[0096] In order to effectively achieve the purpose of querying shared data, when querying the target shared data, the business system first submits the query transaction of the shared data and the cross-chain association structure ShareStu-x of the target business chain Chain-x with the shared data item identifier SDid-x through the cross-chain route, and obtains the query result ShareStu-x (SDid-x). Since the shared data and the cross-chain association structure contain the cross-chain association domain of the shared data item, the target shared data item cross-chain association domain corresponding to the target shared data item identifier is parsed by the business system, and the cross-chain shared data query operation is performed based on the cross-chain association domain of the target shared data item, and the associated shared data and cross-chain association structure of the associated business chain are obtained as the query result. For example, the business system parses ShareStu-x (SDid-x) to obtain all <cross-chain shared data item identifier SDid-xx, association relationship> information of the cross-chain association domain LinkFields of the shared data item, and performs a cross-chain shared data query operation based on the <cross-chain shared data item identifier SDid-xx, association relationship> information, which is not specifically limited in the embodiment of the present invention.

[0097] In another embodiment of the present invention, for further definition and explanation, the step of performing a cross-chain shared data query operation based on the cross-chain association domain of the target shared data item includes:

[0098] When the cross-chain association domain of the target shared data item is an empty association, the cross-chain shared data query operation ends;

[0099] When the cross-chain association domain of the target shared data item is any one of a feature association, an inclusion relationship, and a derivative relationship, the business system queries the associated shared data and cross-chain association structure of the associated business chain associated with the target shared data and cross-chain association structure corresponding to the target shared data item identifier through a cross-chain routing.

[0100] In order to effectively query the shared data in other business chains and achieve the purpose of data sharing in multiple complex scenarios, when performing a cross-chain shared data query operation based on the cross-chain association domain of the target shared data item, first determine the cross-chain association domain of the target shared data item. When the cross-chain association domain of the target shared data item is an empty association, it means that there is no associated shared data, so the cross-chain shared data query operation can be ended. When the cross-chain association domain of the target shared data item is any one of a feature association, an inclusion relationship, and a derivative relationship, it means that there is associated shared data. Therefore, the business system uses a cross-chain routing query to obtain the associated shared data and cross-chain association structure of the associated business chain associated with the target shared data and cross-chain association structure corresponding to the target shared data item identifier as the query result. For example, the process of performing a cross-chain shared data query operation method includes: 1) When the cross-chain association domain (LinkFields) of the shared data item is<NULL,NULL> , there is no cross-chain shared data, and the cross-chain query process ends; 2) When the cross-chain association field (LinkFields) of the shared data item contains <cross-chain shared data item identifier SDid-xx, feature association / inclusion association / derivative association> information, the business system submits the query transaction of the shared data and association structure ShareStu-xx with the cross-chain shared data item identifier SDid-xx through the cross-chain routing, and obtains the query result ShareStu-xx (SDid-xx); 3) Continue to obtain and parse the cross-chain association field (LinkFields) of the shared data item ShareStu-xx (SDid-xx). If<NULL,NULL> , the cross-chain query process ends; otherwise, continue with steps 2) and 3).

[0101] The embodiment of the present invention provides a data sharing method based on blockchain. Compared with the prior art, the embodiment of the present invention creates a multi-chain shared network structure matching the target business scenario, wherein the multi-chain shared network structure includes a business chain, a business system, and a cross-chain route. When the business system collects the original data, it creates shared data and a cross-chain association structure of the original data, and performs the chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route. When the business system issues a query transaction of the target business chain through the cross-chain route, it queries the target shared data and the cross-chain association structure corresponding to the target business chain, and queries the associated shared data and the cross-chain association structure of the associated business chain according to the target shared data and the cross-chain association structure, effectively supports the trusted chaining and trusted query functions of cross-chain shared data based on the multi-chain shared network, realizes the trusted sharing and efficient traceability of multi-level, multi-target, and multi-granularity information in complex scenarios of multi-party collaboration, and provides technical support for building a multi-party collaborative complex scenario information sharing system, thereby realizing the purpose of data sharing under the blockchain and improving the effectiveness of data sharing.

[0102] Furthermore, as a response to the above Figure 1 The implementation of the method shown in the figure, the embodiment of the present invention provides a data sharing device based on blockchain, such as Figure 4 As shown, the device comprises:

[0103] A first creation module 21 is used to create a multi-chain shared network structure that matches the target business scenario, wherein the multi-chain shared network structure includes a business chain, a business system, and a cross-chain route;

[0104] The second creation module 22 is used to create shared data and a cross-chain association structure of the original data after the business system collects the original data, and perform the on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route;

[0105] The query module 23 is used to query the target shared data and cross-chain association structure corresponding to the target business chain when the business system issues a query transaction of the target business chain through a cross-chain route, and query the associated shared data and cross-chain association structure of the associated business chain based on the target shared data and cross-chain association structure.

[0106] Furthermore, the shared data and cross-chain association structure includes a shared data item identifier, a shared data item information field, and a shared data item cross-chain association field, and the second creation module includes:

[0107] A first construction unit is used to construct a shared data item identifier based on the chain identifier of the original data and the data necklace inner identifier, wherein the shared data item identifier is used to uniquely identify the shared data item;

[0108] An extraction unit, configured to extract a shared information field of the shared data item based on the target business scenario, and construct a shared data item information domain based on the shared information field, wherein the shared data item information domain is used to represent the content of the shared data;

[0109] A determination unit is used to determine a cross-chain relationship based on the shared data item information domain, and to construct a shared data item cross-chain association domain based on the cross-chain relationship and the shared data item identifier.

[0110] Furthermore, the device also includes:

[0111] A configuration module is used to configure the shared data item cross-chain association domain as an empty association when the shared data item information domain includes data information of a data block or off-chain storage information of a data file / data block; to configure the shared data item cross-chain association domain as a feature association when the shared data item information domain includes data hash value information of a data file / data block; to configure the shared data item cross-chain association domain as an inclusion association when the shared data item information domain includes business-critical shared information; and to configure the shared data item cross-chain association domain as a derivative association when the shared data item information domain includes business-shared derivative information.

[0112] Furthermore, the first creation module is used to create a business chain matching the target business scenario based on alliance chain technology, and a business system for chain operations and query operations; and to create a connection between the business chain and the cross-chain route based on cross-chain technology, wherein different cross-chain routes are interconnected, and the business system is connected to the cross-chain route.

[0113] Furthermore, the second creation module is also used to connect the cross-chain route through the business system to start the cross-chain transaction initiation operation of data on the chain, and determine the business chain to be on-chain operated and the shared data and cross-chain association structure of the business chain through the cross-chain route; the business system initiates the data on-chain transaction transaction operation of the shared data and cross-chain association structure to the business chain through the cross-chain route, and monitors the data on-chain transaction transaction status of the business chain; when all data on-chain transaction transaction operations are completed, a cross-chain transaction submission operation is initiated to submit the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain; when all data on-chain transaction transaction operations are not completed, a cross-chain transaction rollback operation is initiated to cancel the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain.

[0114] Furthermore, the query module includes:

[0115] A first query unit, configured for the business system to query the target shared data item identifier, target shared data, and cross-chain association structure of the target business chain through a cross-chain route;

[0116] The second query unit is used to parse the target shared data item cross-chain association domain corresponding to the target shared data item identifier through the business system, and perform a cross-chain shared data query operation based on the target shared data item cross-chain association domain to obtain the associated shared data and cross-chain association structure of the associated business chain.

[0117] Furthermore, the second query unit is specifically used to end the cross-chain shared data query operation when the cross-chain association domain of the target shared data item is an empty association; when the cross-chain association domain of the target shared data item is any one of a feature association, an inclusion relationship, and a derivative relationship, the business system queries the associated shared data and cross-chain association structure of the associated business chain associated with the target shared data and cross-chain association structure corresponding to the target shared data item identifier through a cross-chain routing.

[0118] The embodiment of the present invention provides a data sharing device based on blockchain. Compared with the prior art, the embodiment of the present invention creates a multi-chain sharing network structure matching the target business scenario, wherein the multi-chain sharing network structure includes a business chain, a business system, and a cross-chain route. When the business system collects the original data, it creates the shared data and cross-chain association structure of the original data, and performs the chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route. When the business system issues a query transaction of the target business chain through the cross-chain route, it queries the target shared data and the cross-chain association structure corresponding to the target business chain, and queries the associated shared data and the cross-chain association structure of the associated business chain according to the target shared data and the cross-chain association structure, effectively supports the trusted chaining and trusted query functions of cross-chain shared data based on the multi-chain sharing network, realizes the trusted sharing and efficient traceability of multi-level, multi-target, and multi-granularity information in complex scenarios of multi-party collaboration, and provides technical support for building a multi-party collaborative complex scenario information sharing system, thereby realizing the purpose of data sharing under the blockchain and improving the effectiveness of data sharing.

[0119] According to one embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the blockchain-based data sharing method in any of the above method embodiments.

[0120] Figure 5 A schematic diagram of the structure of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.

[0121] like Figure 5 As shown, the terminal may include: a processor (processor) 302, a communication interface (Communications Interface) 304, a memory (memory) 306, and a communication bus 308.

[0122] The processor 302 , the communication interface 304 , and the memory 306 communicate with each other via the communication bus 308 .

[0123] The communication interface 304 is used to communicate with other devices such as clients or other servers.

[0124] The processor 302 is used to execute the program 310, and specifically can execute the relevant steps in the above-mentioned blockchain-based data sharing method embodiment.

[0125] Specifically, the program 310 may include program codes, which include computer operation instructions.

[0126] The processor 302 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0127] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0128] The program 310 may be specifically configured to enable the processor 302 to perform the following operations:

[0129] Create a multi-chain shared network structure that matches the target business scenario, the multi-chain shared network structure including business chains, business systems, and cross-chain routing;

[0130] After the business system collects the original data, it creates shared data and a cross-chain association structure for the original data, and performs the on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain routing;

[0131] When the business system issues a query transaction of the target business chain through a cross-chain route, the target shared data and cross-chain association structure corresponding to the target business chain are queried, and the associated shared data and cross-chain association structure of the associated business chain are queried based on the target shared data and cross-chain association structure.

[0132] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0133] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data sharing method based on blockchain, characterized in that: include: Create a multi-chain shared network structure that matches the target business scenario, the multi-chain shared network structure including business chains, business systems, and cross-chain routing; After the business system collects the original data, it creates shared data and a cross-chain association structure for the original data, and performs the on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain routing; When the business system issues a query transaction of the target business chain through a cross-chain route, the target shared data and cross-chain association structure corresponding to the target business chain are queried, and the associated shared data and cross-chain association structure of the associated business chain are queried based on the target shared data and cross-chain association structure.

2. The method according to claim 1, characterized in that The shared data and cross-chain association structure includes a shared data item identifier, a shared data item information field, and a shared data item cross-chain association field. The shared data and cross-chain association structure for creating the original data includes: Constructing a shared data item identifier based on the chain identifier of the original data and the identifier within the data necklace, wherein the shared data item identifier is used to uniquely identify the shared data item; Extracting the shared information field of the shared data item based on the target business scenario, and constructing a shared data item information domain based on the shared information field, wherein the shared data item information domain is used to represent the content of the shared data; A cross-chain relationship is determined based on the shared data item information domain, and a shared data item cross-chain association domain is constructed based on the cross-chain relationship and the shared data item identifier.

3. The method according to claim 2, characterized in that The shared data and cross-chain association structure for creating the original data includes: When the shared data item information field includes data information of a data block or off-chain storage information of a data file / data block, the shared data item cross-chain association field is configured to be an empty association; When the shared data item information field includes data hash value information of a data file / data block, the shared data item cross-chain association field is configured as a feature association; When the shared data item information domain includes business-critical shared information, configuring the shared data item cross-chain association domain as an inclusion association; When the shared data item information field includes business sharing derivative information, the shared data item cross-chain association field is configured as a derivative association.

4. The method according to claim 1, characterized in that: The creation of a multi-chain shared network structure matching the target business scenario includes: Based on the alliance chain technology, a business chain matching the target business scenario and a business system for on-chain operations and query operations are created; Based on the cross-chain technology, the business chain and the cross-chain route are connected, wherein different cross-chain routes are interconnected, and the business system is connected to the cross-chain route.

5. The method according to claim 1, characterized in that The performing the on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route includes: The cross-chain transaction initiation operation of starting data on-chain by connecting the cross-chain route through the business system, and determining the business chain to be operated on-chain and the shared data and cross-chain association structure of the business chain through the cross-chain route; The business system initiates a data on-chain transaction operation of the shared data and the cross-chain association structure to the business chain through the cross-chain route, and monitors the data on-chain transaction status of the business chain; When all data on-chain transaction operations are completed, a cross-chain transaction submission operation is initiated to submit the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain; When all data on-chain transaction operations are not completed, a cross-chain transaction rollback operation is initiated to cancel the on-chain data changes of the shared data and cross-chain association structure corresponding to the business chain.

6. The method according to any one of claims 1 to 5, characterized in that: The querying of the target shared data and the cross-chain association structure corresponding to the target business chain, and querying the associated shared data and the cross-chain association structure of the associated business chain according to the target shared data and the cross-chain association structure includes: The business system queries the target shared data item identifier, target shared data and cross-chain association structure of the target business chain through a cross-chain route; The target shared data item cross-chain association domain corresponding to the target shared data item identifier is parsed by the business system, and a cross-chain shared data query operation is performed based on the target shared data item cross-chain association domain to obtain the associated shared data and cross-chain association structure of the associated business chain.

7. The method according to claim 6, characterized in that The performing of a cross-chain shared data query operation based on the cross-chain association domain of the target shared data item includes: When the cross-chain association domain of the target shared data item is an empty association, the cross-chain shared data query operation ends; When the cross-chain association domain of the target shared data item is any one of a feature association, an inclusion relationship, and a derivative relationship, the business system queries the associated shared data and cross-chain association structure of the associated business chain associated with the target shared data and cross-chain association structure corresponding to the target shared data item identifier through a cross-chain routing.

8. A data sharing device based on blockchain, characterized in that: include: A first creation module is used to create a multi-chain shared network structure that matches the target business scenario, wherein the multi-chain shared network structure includes a business chain, a business system, and a cross-chain route; A second creation module is used to create shared data and a cross-chain association structure of the original data after the business system collects the original data, and perform an on-chain operation of the business chain on the shared data and the cross-chain association structure through the cross-chain route; The query module is used to query the target shared data and cross-chain association structure corresponding to the target business chain when the business system issues a query transaction of the target business chain through a cross-chain route, and query the associated shared data and cross-chain association structure of the associated business chain based on the target shared data and cross-chain association structure.

9. A storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to perform an operation corresponding to the blockchain-based data sharing method as described in any one of claims 1 to 7.

10. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the blockchain-based data sharing method as described in any one of claims 1-7.