Data sharing method and device, electronic equipment and computer readable storage medium

By establishing a cross-chain sharing system for geological project results based on cross-chain notary group in the geological project data management system, the difficulties in data sharing and privacy leakage among geological institutions are solved, and data privacy protection and cross-system data sharing are realized.

CN120034401AInactive Publication Date: 2025-05-23INST OF GEOPHYSICAL & GEOCHEMICAL EXPLORATION CHINESE ACAD OF GEOLOGICAL SCI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510520451.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-05-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing geological project data management system lacks unified data storage and sharing services, which leads to difficulty in data sharing among geological agencies, and risks of data privacy leakage and illegal access, threatening data security.

Method used

Establish a cross-chain sharing system for geological project results data based on cross-chain notary groups. Through the blockchain layer and cross-chain transaction layer, the cross-chain notary group uses the cross-chain notary group to verify the identity information of both parties to the transaction multiple times to realize data privacy protection and cross-system data sharing.

Benefits of technology

It realizes trusted data sharing among geological agencies, ensures data privacy, reduces data security risks, and solves the problems of privacy leakage and lack of trust during data sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034401A_ABST
    Figure CN120034401A_ABST
Patent Text Reader

Abstract

The invention provides a data sharing method and device, electronic equipment and a computer readable storage medium, is applied to a geological project achievement data cross-chain sharing system based on a cross-chain notary group, and relates to the technical field of geological information. The method comprises the steps that a geological mechanism establishes a geological business block chain corresponding to the geological mechanism in a system; wherein the geological business block chain is used for a geological institution to store, update and manage data of a geological project; determining a target agent node in the agent node group based on a preset agent node election mechanism; wherein the target agent node is used for encryption and decryption operation and information interaction and sharing; pre-transaction communication and formal transaction are carried out, and an access mark is returned to the final notary; a geological project achievement data cross-chain sharing system based on a cross-chain notary group is established, in the data transaction process, the cross-chain notary group verifies identity information of two transaction parties for multiple times, and data privacy protection is considered on the basis of cross-system data sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of geological information technology, and in particular to a data sharing method, device, electronic equipment and computer-readable storage medium. Background Art

[0002] The geological project results data is the final information product generated, analyzed and integrated during the implementation of geological projects such as geological surveys, exploration and research, and plays a key role in further geological research, resource exploration and development, and environmental protection. However, the current geological project data management system still lacks unified data storage and sharing services, which seriously hinders geological institutions, research institutes, universities, etc. from obtaining credible research results. In addition, there are risks of data privacy leakage and illegal access in the traditional data transmission process, which threatens data security and affects the willingness of geological institutions to share data.

[0003] Therefore, the geological industry urgently needs to build a management system that takes into account both data privacy protection and cross-system data sharing. Summary of the invention

[0004] The purpose of the present invention is to provide a data sharing method, device, electronic device and computer-readable storage medium, and to establish a cross-chain sharing system for geological project results data based on a cross-chain notary group. During the data transaction process, the cross-chain notary group verifies the identity information of both parties to the transaction multiple times, taking into account data privacy protection on the basis of cross-system data sharing.

[0005] In a first aspect, the present invention provides a data sharing method, which is applied to a cross-chain sharing system of geological project results data based on a cross-chain notary group, the system comprising: a blockchain layer and a cross-chain transaction layer; the blockchain layer comprises: multiple geological business blockchains and a proxy node group; the proxy node group comprises: multiple proxy nodes; the cross-chain transaction layer comprises: a cross-chain notary group; the cross-chain notary group comprises: multiple notaries; the method comprises: Step S1: The geological institution registers in the system and establishes a geological business blockchain corresponding to the geological institution; wherein the geological business blockchain is used by the geological institution to store, update and manage geological project data; Step S2: determining a target proxy node in the proxy node group based on a preset proxy node election mechanism; wherein the target proxy node is used for encryption and decryption operations and information interaction and sharing; Step S3: The visited chain sends a data summary to the cross-chain notary group through the corresponding target proxy node. The cross-chain notary group broadcasts the shared transaction information to the entire network. The visiting chain submits a transaction request through the corresponding target proxy node. The cross-chain notary group verifies the transaction request and sends the transaction request to the visited chain. The visited chain verifies the transaction request and feeds back the result. The cross-chain notary group selects the final notary based on the result based on the preset notary election mechanism. The cross-chain notary group broadcasts the updated transaction status. Among them, the geological business blockchain with sharing needs is the visited chain; the geological business blockchain with access needs is the access chain. Step S4: After receiving and decrypting the data summary sent by the final notary, the access link requests the accessed chain to obtain the results data of the geological project and returns an access mark to the final notary; wherein the access mark indicates whether the access is successful.

[0006] In some preferred embodiments of the present invention, step S1 includes: The geological agency uploads the identity authentication strategy and registration smart contract to the geological business blockchain; Internal employees of geological institutions submit their identity information in the system based on the identity authentication strategy to complete registration and authentication, so that internal employees of geological institutions can store, update and manage geological project data on the geological business blockchain; The geological agency encrypts the geological project's results data based on a preset encryption algorithm and uploads it to the geological cloud, and publishes the data summary to the corresponding geological business blockchain; the data summary includes: project name, project number, project summary, affiliated project, affiliated unit and the storage address of the ciphertext of the geological project's results data in the geological cloud; the data summary uses the project name of the geological project as the retrieval index.

[0007] In some preferred embodiments of the present invention, step S2 includes: Determine the set of proxy nodes of the geological business blockchain in the proxy node group, and calculate the transmission cost of the proxy nodes in the set for cross-system sharing; The target proxy node is determined using a density peak clustering algorithm based on the transmission cost and the security attributes of the proxy nodes in a pre-set set.

[0008] In some preferred embodiments of the present invention, step S3 includes: The accessed chain submits a message request to the cross-chain notary group through the corresponding target proxy node; the message request includes: a data summary and the signature of the target proxy node corresponding to the accessed chain; After receiving the message request, the cross-chain notary group verifies the signature of the target proxy node corresponding to the accessed chain. If it is correct, it stores the message request in the notary’s cross-chain interaction record table and broadcasts the message request. The access chain submits a transaction request to the cross-chain notary group through the corresponding target proxy node; wherein the transaction request includes: the signature of the target proxy node corresponding to the access chain; After receiving the transaction request, the cross-chain notary group verifies the signature of the target proxy node corresponding to the access chain. If it is correct, the transaction request is forwarded to the target proxy node corresponding to the accessed chain. After receiving the transaction request, the visited link verifies the signature of the target proxy node corresponding to the visited chain. If it is correct, the feedback result is sent to the cross-chain notary group; the feedback result indicates whether the visited chain agrees with the transaction request; If the feedback result is that the transaction request is approved, the cross-chain notary group selects the final notary based on the preset notary election mechanism, and the final notary uploads the signature and timestamp of the final notary to the notary cross-chain interaction record table; among which, the notary cross-chain interaction record table includes: the accessed chain, data summary, upload timestamp, access status and access chain.

[0009] In some preferred embodiments of the present invention, the system further comprises: a key generation center, the key generation center is used to distribute the public key, the master key and the private key to the target proxy node; step S4 comprises: Finally, the notary uses the public key of the target proxy node corresponding to the access chain to asymmetrically encrypt the data summary, and then sends it to the target proxy node corresponding to the access chain; After the target proxy node corresponding to the access chain decrypts the data summary based on the private key, it requests the achievement data of the geological project from the accessed chain based on the storage address in the data summary; The accessed chain verifies the storage address. If it is correct, attribute-based encryption is performed on the geological project's achievement data and the symmetric key based on the public key, master key and access control policy, and the encrypted ciphertext is sent to the target proxy node corresponding to the access chain; The target proxy node corresponding to the access chain requests a private key from the key generation center, decrypts the results data of the geological project based on the private key, and returns the access mark to the final notary.

[0010] In some preferred embodiments of the present invention, the method further comprises: determining the final notary public through the following steps: Each notary public has an initial credit value. Test the notary's transmission rate based on pre-set data packets; If the transmission rate is greater than the preset transmission speed threshold, the notary's credit value will be reviewed and the notary with the highest credit value will be determined as the final notary.

[0011] In some preferred embodiments of the present invention, the method further comprises: After the notary submits a withdrawal application to the cross-chain notary group, if the notary has no ongoing or unfinished cross-chain shared transactions, the notary is approved to withdraw from the cross-chain notary group and broadcast within the cross-chain notary group; If a notary fails or performs a false transaction when executing a cross-chain shared transaction, the cross-chain notary group will kick the notary out of the cross-chain notary group and broadcast it within the cross-chain notary group, and then re-select a new notary.

[0012] In a second aspect, the present invention provides a data sharing device, which is applied to a cross-chain sharing system of geological project results data based on a cross-chain notary group, the system comprising: a blockchain layer and a cross-chain transaction layer; the blockchain layer comprises: multiple geological business blockchains and a proxy node group; the proxy node group comprises: multiple proxy nodes; the cross-chain transaction layer comprises: a cross-chain notary group; the cross-chain notary group comprises: multiple notaries; the device comprises: The registration module is used for geological institutions to register in the system and establish a geological business blockchain corresponding to the geological institutions; the geological business blockchain is used by geological institutions to store, update and manage geological project data; The proxy node processing module is used to determine the target proxy node in the proxy node group based on the preset proxy node election mechanism; wherein the target proxy node is used for encryption and decryption operations and information interaction and sharing; The pre-transaction execution module is used for the visited chain to send a data summary to the cross-chain notary group through the corresponding target proxy node. The cross-chain notary group broadcasts the shared transaction information to the entire network. The visiting chain submits a transaction request through the corresponding target proxy node. The cross-chain notary group verifies the transaction request and sends the transaction request to the visited chain. The visited chain verifies the transaction request and feeds back the result. The cross-chain notary group selects the final notary based on the result based on the preset notary election mechanism. The cross-chain notary group broadcasts the updated transaction status. Among them, the geological business blockchain with sharing needs is the visited chain; the geological business blockchain with access needs is the access chain. The transaction execution module is used to request the accessed chain to obtain the results data of the geological project after the access link receives and decrypts the data summary sent by the final notary, and returns the access mark to the final notary; wherein the access mark indicates whether the access is successful.

[0013] In a third aspect, the present invention provides an electronic device including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the data sharing method provided in the first aspect above.

[0014] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the data sharing method provided in the first aspect.

[0015] The present invention brings the following beneficial effects: The present invention provides a data sharing method, device, electronic device and computer-readable storage medium, which are applied to a cross-chain sharing system of geological project achievement data based on a cross-chain notary group. The system includes: a blockchain layer and a cross-chain transaction layer; the blockchain layer includes: multiple geological business blockchains and a proxy node group; the proxy node group includes: multiple proxy nodes; the cross-chain transaction layer includes: a cross-chain notary group; the cross-chain notary group includes: multiple notaries; the method includes: step S1: a geological institution registers in the system and establishes a geological business blockchain corresponding to the geological institution; wherein the geological business blockchain is used by the geological institution to store, update and manage geological project data; step S2: based on a preset proxy node election mechanism, a target proxy node is determined in the proxy node group; wherein the target proxy node is used for encryption and decryption operations and information interactive sharing; step S3: the accessed chain sends a data summary to the cross-chain notary group through the corresponding target proxy node, and the cross-chain notary group sends The shared transaction information is broadcasted to the whole network. The access chain submits the transaction request through the corresponding target proxy node. The cross-chain notary group verifies the transaction request and sends the transaction request to the accessed chain. The accessed chain verifies the transaction request and feeds back the result. The cross-chain notary group selects the final notary based on the result and the preset notary election mechanism. The cross-chain notary group broadcasts the updated transaction status. Among them, the geological business blockchain with sharing needs is the accessed chain; the geological business blockchain with access needs is the access chain. Step S4: After the access link receives and decrypts the data summary sent by the final notary, it requests the accessed chain to obtain the results data of the geological project, and returns the access mark to the final notary. Among them, the access mark indicates whether the access is successful. A cross-chain sharing system for geological project results data based on the cross-chain notary group is established. During the data transaction process, the cross-chain notary group verifies the identity information of both parties to the transaction multiple times, taking into account data privacy protection on the basis of cross-system data sharing. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1A sharing logic diagram of a cross-chain sharing system for geological project results data based on a cross-chain notary group provided in an embodiment of the present invention; Figure 2 A flow chart of a data sharing method provided by an embodiment of the present invention; Figure 3 A flowchart of a successful pre-transaction execution provided by an embodiment of the present invention; Figure 4 A schematic diagram of a notary cross-chain interaction record table provided in an embodiment of the present invention; Figure 5 A flow chart of a successful cross-chain sharing transaction provided by an embodiment of the present invention; Figure 6 A structural diagram of a data sharing method and device provided by an embodiment of the present invention; Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0018] Icons: 310 - registration module; 320 - proxy node processing module; 330 - pre-transaction execution module; 340 - transaction execution module; 400 - memory; 401 - processor; 402 - bus; 403 - communication interface. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0020] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0022] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0023] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components are required to be absolutely horizontal or overhanging, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0024] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0025] The geological project results data is the final information product generated, analyzed and integrated during the implementation of geological projects such as geological surveys, exploration and research. It plays a key role in further geological research, resource exploration and development, and environmental protection. Most geological work is oriented to serve the needs of economic and social development. Geological institutions in various regions have formed differentiated research field layouts based on their disciplinary advantages, and have accumulated a geological project resource system covering multiple regions and scales. The increasing penetration of geological work in various fields of social economy and the waste of resources caused by repeated exploration have made the demand for geological data sharing increasingly urgent. However, the current geological project data management system still lacks unified data storage and sharing services, which seriously hinders geological institutions, research institutes, universities, etc. from obtaining reliable research results. The current geological project data management system has the following three main deficiencies in storage management and collaborative sharing: 1) Most geological institutions have established independent geological project storage and management systems, which usually rely on centralized cloud storage (such as geological cloud platforms) and have the risk of single point failure. 2) Some R&D entities and property owners of geological project data and products are worried that their ownership rights will not be guaranteed during the process of open sharing of results, and are unwilling or afraid to share the results of related geological projects, which in turn hinders the construction of a trusted interactive environment. 3) The research results of geological projects involve resources, and there is a risk of privacy leakage during the transmission and sharing process. Data leakage or tampering may lead to resource competition, environmental damage and even social security issues.

[0026] Blockchain technology integrates key technologies such as distributed storage, transparent transmission, consensus mechanism, encryption algorithm, etc. It has the characteristics of decentralization, tamper-proof, and full traceability. It can provide security and trust foundation for the current geological data management system, and effectively solve the problems of privacy leakage and lack of trust in the process of data sharing. With the in-depth promotion of the transformation and upgrading of the geological industry and the implementation of geological big data, the deep integration of blockchain evidence technology and cryptographic security mechanism in the field of collaborative sharing of geological data has become an inevitable trend.

[0027] However, large-scale geological engineering projects (such as deep exploration and mineral exploration) currently often involve multiple geological institutions (such as the Natural Resources Bureau, the Meteorological Bureau, and environmental protection agencies) and disciplines (such as geophysics and hydrogeology), and need to integrate multi-source heterogeneous data (such as satellite remote sensing, drilling samples, and ground monitoring sensors), which in turn generates cross-system data sharing needs. The existing blockchain-based geological project results data sharing system mainly implements data interaction and sharing in a single blockchain environment, and the isolation characteristics of the blockchain form a data island problem. First, the blockchain systems self-organized by different geological institutions face systematic interoperability barriers due to the technical heterogeneity of the underlying architecture (network topology, consensus mechanism), encryption primitives (algorithms and signature schemes), and data storage standards. For example, two data-sharing blockchains use different signature protocols, making it difficult to achieve cross-system data verification. The lack of data circulation and sharing is not conducive to the development of geological work, and it is very easy to lead to duplication of subsequent geological survey deployment, analysis deviations, and delayed results transformation, and even delay major decisions. This will inevitably become a key problem that hinders the sustainable development of my country's geological cause. Secondly, the cross-chain sharing process still carries the risk of data privacy leakage and illegal access, which threatens data security and affects the willingness of geological institutions to share.

[0028] Therefore, with the expansion of the depth and breadth of geological survey projects, the continuous growth of geological exploration data, and the integration and collaborative application of multi-source heterogeneous data, the geological industry urgently needs to build a management system that takes into account both data privacy protection and cross-system data sharing.

[0029] The purpose of the present invention is to solve the data sharing difficulties and potential privacy leakage problems in the existing blockchain-based geological project data storage system, and to provide a cross-chain sharing method for geological project results data based on a cross-chain notary group. The present invention constructs a "blockchain layer-cross-chain interaction layer" collaborative two-layer architecture, separates business logic from cross-chain interactive operations, supports interactive sharing of project results data between different geological institutions, and adopts attribute-based encryption algorithms and signature protocols to ensure the ownership of the owners of geological project results data, and realizes fine-grained access control and trusted data sharing between geological institutions.

[0030] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0031] Embodiment 1 This embodiment provides a data sharing method, which is applied to a cross-chain sharing system of geological project results data based on a cross-chain notary group. For details, see Figure 1The embodiment of the present invention shown is a sharing logic schematic diagram of a cross-chain sharing system for geological project results data based on a cross-chain notary group, the system comprising: a blockchain layer and a cross-chain transaction layer; the blockchain layer comprises: multiple geological business blockchains and a proxy node group; the geological business blockchain comprises: an accessed chain and an access chain; the proxy node group comprises: multiple proxy nodes; the cross-chain transaction layer comprises: a cross-chain notary group; the cross-chain notary group comprises: multiple notaries.

[0032] See also Figure 2 The flowchart of a data sharing method provided by an embodiment of the present invention is shown, and the data sharing method includes: Step S1: The geological institution registers in the system and establishes a geological business blockchain corresponding to the geological institution; wherein the geological business blockchain is used by the geological institution to store, update and manage geological project data.

[0033] Further, in some preferred embodiments of the present invention, step S1 includes steps A1 to A3: Step A1: The geological agency uploads the identity authentication strategy and registration smart contract to the geological business blockchain.

[0034] Step A2: Internal employees of geological institutions submit their identity information in the system based on the identity authentication strategy to complete registration and authentication, so that internal employees of geological institutions can store, update and manage geological project data on the geological business blockchain.

[0035] Step A3, the geological institution encrypts the geological project's results data based on a preset encryption algorithm and uploads it to the geological cloud, and publishes the data summary to the corresponding geological business blockchain; the data summary includes: project name, project number, project summary, affiliated project, affiliated unit and the storage address of the ciphertext of the geological project's results data in the geological cloud; the data summary uses the project name of the geological project as the retrieval index.

[0036] Specifically, each geological institution registers through the cross-chain sharing system of geological project results data, and uploads the corresponding identity authentication strategy and registration smart contract to their respective geological business blockchains; after the geological business blockchain is successfully registered, the internal employees of the institution submit their identity information based on the identity authentication strategy to complete the registration and authentication, and then implement geological project storage, update and management operations on the geological business blockchain; the geological institution encrypts the geological project results data based on the symmetric encryption algorithm and uploads it to the geological cloud platform, and publishes the data summary to the geological business blockchain where it is located; the data summary includes the project name, project number, project summary, affiliated project, affiliated unit and the storage address of the ciphertext of the geological project results data in the geological cloud, and uses the geological project name as the retrieval index.

[0037] The embodiment of the present invention is based on the structure of "Geological Cloud-Multi-Geological Business Blockchain", which integrates geological data sharing on the blockchain platform to ensure that the shared transaction process is transparent and reliable; and designs a cross-chain sharing structure based on a notary group to perform cross-system data transmission, verification and forwarding, which can support the interactive sharing of project results data between different geological institutions, and effectively solve the problems of difficult data sharing and poor interoperability between heterogeneous geological blockchain systems.

[0038] Step S2: determining a target proxy node in the proxy node group based on a preset proxy node election mechanism; wherein the target proxy node is used for encryption and decryption operations and information interaction and sharing.

[0039] Further, in some preferred embodiments of the present invention, step S2 includes steps B1 to B2: Step B1, determine the set of proxy nodes of the geological business blockchain in the proxy node group, and calculate the transmission cost of the proxy nodes in the set for cross-system sharing.

[0040] Step B2: Determine the target proxy node using a density peak clustering algorithm based on the transmission cost and the security attributes of the proxy nodes in the preset set.

[0041] Specifically, the proxy node selection mechanism uses a clustering algorithm based on density peaks to select proxy nodes for the geological business blockchain that participate in cross-system geological project results data sharing. The specific execution process is as follows: Take the node set in the geological business blockchain as , the consensus node set in the geological business blockchain is , calculate the transmission cost of each node for cross-system sharing , E is used as the parameter for subsequent calculation of node local density; where, , represents the mean transmission cost of the consensus node set; the transmission cost E abstractly represents the distance between the proxy node and the mean. The smaller the E value, the better the performance of cross-chain transmission, and the more suitable the node is as a proxy node to perform cross-chain data sharing. Consensus nodes refer to nodes that participate in decision-making and are nodes used for distributed decision-making in the blockchain. The purpose is to jointly select a suitable proxy node.

[0042] Define the data object set U to include N nodes existing in the geological business blockchain, namely , where each data object contains two data dimensions, representing the security attribute S and transmission cost E of the node, namely , select the best proxy node from them, these two parameter values ​​only depend on the distance between the two geological business blockchain nodes; calculate the distance between the nodes in the geological business blockchain The distance between node j , the distance is measured using the Euclidean distance between two node objects.

[0043] Computing geological business blockchain nodes The local density ,in , For Node The relevant local distance, is Closer to the node The number of nodes.

[0044] We can further calculate the nodes Minimum distance to other nodes with higher density , for the node with the largest density The largest, that is, the node at the center of the cluster The value is the largest; By local density value and the distance between the node and any nodes with higher density An optimal cross-chain shared proxy node can be selected to replace other nodes on the geological business blockchain to share inter-chain data with other geological business blockchains.

[0045] For example, the geological business blockchain of a geological institution 1 is the accessed blockchain. , the geological business blockchain of a geological institution 2 is the access chain , respectively select their proxy nodes through the proxy node selection mechanism and , the system is Generate attribute-based encryption public key and the master key .

[0046] Step S3: The visited chain sends a data summary to the cross-chain notary group through the corresponding target proxy node. The cross-chain notary group broadcasts the shared transaction information to the entire network. The visiting chain submits a transaction request through the corresponding target proxy node. The cross-chain notary group verifies the transaction request and sends the transaction request to the visited chain. The visited chain verifies the transaction request and feeds back the result. The cross-chain notary group selects the final notary based on the result based on the preset notary election mechanism. The cross-chain notary group broadcasts the updated transaction status. Among them, the geological business blockchain with sharing needs is the visited chain; the geological business blockchain with access needs is the access chain.

[0047] Specifically, any geological business blockchain with sharing or access needs can be used as both an accessing blockchain and an accessed blockchain. It is necessary to select proxy nodes from the accessing chain and the accessed chain as connection nodes for cross-chain communication. The proxy node is only responsible for the current cross-system geological project data sharing. When the proxy node is abnormal or crashes, it is necessary to reuse the proxy node selection mechanism to select a new proxy node.

[0048] Further, in some preferred embodiments of the present invention, step S3 includes steps C1 to C6: Step C1, the accessed chain submits a message request to the cross-chain notary group through the corresponding target proxy node; wherein the message request includes: a data summary and a signature of the target proxy node corresponding to the accessed chain.

[0049] Step C2: After receiving the message request, the cross-chain notary group verifies the signature of the target proxy node corresponding to the accessed chain. If correct, the message request is stored in the notary’s cross-chain interaction record table and the message request is broadcast.

[0050] Step C3, the access chain submits a transaction request to the cross-chain notary group through the corresponding target proxy node; wherein the transaction request includes: the signature of the target proxy node corresponding to the access chain.

[0051] Step C4: After receiving the transaction request, the cross-chain notary group verifies the signature of the target proxy node corresponding to the access chain. If correct, the transaction request is forwarded to the target proxy node corresponding to the accessed chain.

[0052] Step C5: After receiving the transaction request, the visited link verifies the signature of the target proxy node corresponding to the visited chain. If it is correct, the feedback result is sent to the cross-chain notary group; the feedback result indicates whether the visited chain agrees to the transaction request.

[0053] Step C6, if the feedback result is that the transaction request is approved, the cross-chain notary group selects the final notary based on the preset notary election mechanism, and the final notary uploads the signature and timestamp of the final notary to the notary cross-chain interaction record table; wherein, the notary cross-chain interaction record table includes: the accessed chain, data summary, upload timestamp, access status and access chain.

[0054] Specifically, candidate notaries who have account permissions on both the access chain and the accessed chain can participate in the election to become notaries for cross-chain data sharing transactions between the access chain and the accessed chain. The account is maintained by the candidate notary node itself. Before each cross-chain sharing of geological project results data, the notary selection mechanism must be used to select a suitable notary from a group of notaries composed of multiple candidate notary nodes based on transmission speed and credit value incentives to perform the function of cross-system sharing of geological project results data. The selected notary is only responsible for this cross-chain sharing process. and Candidate notaries with account permissions can join the notary group and run for and The final notary for cross-chain data sharing transactions.

[0055] The geological business blockchain with sharing needs serves as the accessed chain, and its proxy node sends the data summary and its signature as a message request to the notary group; after the notary group verifies that the signature is correct, the request is stored in the notary's cross-chain interaction record table and the transaction is broadcast to the entire network; the geological business blockchain with access needs serves as the access chain, and its proxy node submits a transaction request containing the proxy node signature to the notary group; after the notary group receives the request and verifies that the signature is correct, it forwards the transaction request to the accessed chain proxy node; after the accessed chain proxy node receives the cross-chain sharing request forwarded by the notary group, it first verifies the transaction signature, and after confirming the transaction content, it responds to the notary group with a reply of agreeing or rejecting the transaction; the notary group receives the transaction feedback of the accessed chain, If the visited chain rejects the transaction or fails to provide a transaction response within the specified time, the transaction fails, and the notary group updates the cross-chain interaction record table and broadcasts the transaction information, timestamp, and signature to the visiting chain and the visited chain. If the visited chain agrees to the transaction and provides a transaction response within the specified time, the notary group verifies that the signature of the visited chain proxy node is correct, and uses the notary selection mechanism to select the final notary node that meets the requirements, and uploads the final notary signature and timestamp to the notary cross-chain interaction record table. The notary cross-chain interaction record table contains fields such as the visited chain, data summary, upload timestamp, access status (A00: not visited, A01: accessing, A10: successful access, A11: access abnormality), and access chain.

[0056] For example, see Figure 1 and Figure 3 The flowchart of a successful pre-trading execution provided by an embodiment of the present invention is shown, and the process of successful pre-trading execution is as follows: The data summary and its signature are sent as a message request to the notary group. After the notary group verifies that the signature is correct, the request is stored in the notary's cross-chain interaction record table and the transaction is broadcast to the entire network. Submit a transaction request containing their signature to the notary group. After receiving the request and verifying that the signature is correct, the notary group forwards the transaction request to ; After receiving the cross-chain sharing request forwarded by the notary group, the transaction signature is first verified. After confirming the transaction content, the transaction consent information is fed back to the notary group within the specified time. The notary group verifies After the signature is correct, use the notary selection mechanism to select the final notary node that meets the requirements, upload the final notary signature and timestamp to the notary cross-chain interaction record table, see Figure 4 A schematic diagram of a notary cross-chain interaction record table provided in an embodiment of the present invention is shown.

[0057] Step S4: After receiving and decrypting the data summary sent by the final notary, the access link requests the accessed chain to obtain the results data of the geological project and returns an access mark to the final notary; wherein the access mark indicates whether the access is successful.

[0058] Furthermore, in some preferred embodiments of the present invention, the system further comprises: a key generation center, the key generation center is used to distribute the public key, the master key and the private key to the target proxy node; specifically, the key generation center After the system is initialized, the public key required by the attribute-based encryption algorithm needs to be and the master key Distribute to the selected proxy nodes in the access chain so that they can be used as encryption parameters in the subsequent sharing of geological project results data.

[0059] Further, in some preferred embodiments of the present invention, step S4 includes steps D1 to D4: Step D1, the final notary uses the public key of the target proxy node corresponding to the access chain to asymmetrically encrypt the data summary, and then sends it to the target proxy node corresponding to the access chain; Step D2, after the target proxy node corresponding to the access chain decrypts the data summary based on the private key, it requests the achievement data of the geological project from the accessed chain based on the storage address in the data summary; Step D3, the access chain verifies the storage address. If it is correct, attribute-based encryption is performed on the geological project achievement data and the symmetric key based on the public key, the master key and the access control policy, and the encrypted ciphertext is sent to the target proxy node corresponding to the access chain; Step D4, the target proxy node corresponding to the access chain requests a private key from the key generation center, decrypts the results data of the geological project based on the private key, and returns the access mark to the final notary.

[0060] Specifically, the final notary uses the public key of the access chain proxy node to asymmetrically encrypt and return the data summary; the access chain proxy node uses the private key to decrypt and return the data summary according to the storage address in the data summary. Request geological project results data from the accessed chain proxy node. The accessed chain proxy node will The data recorded on the blockchain of its geological business Perform comparative verification; if , indicating that the data has not been tampered with during the cross-chain sharing process, then use , and associated access control policies for geological project results data encryption Perform attribute-based encryption with the symmetric key and convert the encrypted ciphertext The access chain proxy node sends the access request to the access chain proxy node; otherwise, the access request is rejected, the access token is sent to the final notary, and the access status is changed to A11. Submit a private key application, The decryption private key corresponding to the attribute set of the proxy node will be calculated and generated , and returns it to the proxy node. The access chain will be based on its attributes and Decrypt and restore the geological project results data shared across systems. After the access chain is successfully accessed, data will be broadcast and synchronized within the access chain. Internal personnel of this organization can query the corresponding geological project results data through the proxy node, and return the access mark to the final notary, and modify the access status to A10; otherwise, the access fails, and the access status is modified to A11, finally completing the cross-system data sharing process.

[0061] For example, see Figure 1 and Figure 5 The flowchart of a successful cross-chain sharing transaction provided by an embodiment of the present invention is shown. The process of executing a successful transaction is as follows: Final notary use The data summary is returned after asymmetric encryption with the public key; After decryption using the private key, according to Towards Request geological project results data; verify After that, use , and associated access control policies for the encrypted geological project results data stored in the geological cloud Perform attribute-based encryption with the symmetric key and convert the encrypted ciphertext Send to ; Use the attribute set to Submit a private key application, According to its attribute set, calculate and generate the decryption private key corresponding to the attribute set , and return to ; According to its properties and Decrypt and restore the geological project results data shared across systems. After successful access, exist The notary will broadcast and synchronize data in the chain, and return the access mark to the final notary. The final notary will update the notary cross-chain interaction record table, change the access status to A10, and finally complete the cross-system data sharing process.

[0062] Furthermore, in some preferred embodiments of the present invention, the method also includes: determining the final notary through the following steps: each notary corresponds to an initial credit value; testing the notary's transmission rate based on a preset data packet; if the transmission rate is greater than a preset transmission speed threshold, reviewing the notary's credit value, and determining the notary with the highest credit value as the final notary.

[0063] Specifically, the notary selection mechanism builds an incentive election mechanism based on the transmission rate and past credit value of the current candidate notary. The specific implementation process is as follows: Take the set of candidate notary nodes as , where each candidate notary has an initial credit value , the maximum credit value is ; Set the transmission speed threshold and credit threshold ; Use the specified data packets to test the transmission rate of each candidate notary. When the transmission rate of the candidate notary is higher than the transmission speed threshold , indicating that the candidate notary meets the transmission rate requirements of cross-chain communication; further review the credit value of the candidate notary, and if the credit value exceeds the threshold It can be used as a condition to meet the selection requirements, and the higher the credit value, the greater the probability that the node will be selected as the final notary. When the credit value of the candidate notary is lower than the threshold will be restricted from participating in cross-chain communication notarization; when the candidate notary is selected as the final notary and completes a cross-chain communication transmission (this state If the transmission process is deemed abnormal (this state is represented by L), the notary’s credit value will be reduced accordingly. The calculation formula is: .

[0064] Furthermore, in some preferred embodiments of the present invention, the method also includes: after the notary submits a withdrawal application to the cross-chain notary group, if the notary has no ongoing or unfinished cross-chain shared transactions, the notary is approved to withdraw from the cross-chain notary group and broadcast it within the cross-chain notary group; if the notary fails or performs false transactions when executing a cross-chain shared transaction, the cross-chain notary group kicks the notary out of the cross-chain notary group and broadcasts it within the cross-chain notary group, and then re-selects a new notary.

[0065] Specifically, if a notary node wishes to withdraw from the notary group, it needs to submit a withdrawal application; after the notary group reviews and confirms that it has no ongoing or unfinished cross-chain shared transactions, its withdrawal can be approved and a broadcast notification will be made within the notary group. If a notary node fails or conducts a false transaction while performing a cross-chain shared task, the notary will be forcibly removed from the notary group and this will be broadcasted within the group; at the same time, the notary group needs to re-select a new notary for this transaction.

[0066] The embodiment of the present invention realizes cross-chain sharing of geological project results data based on a notary group. On the basis of the existing geological cloud platform, a combination of "geological cloud-multi-business blockchain" is designed to reduce the storage and computing overhead of nodes in the geological business blockchain, and integrate geological project data sharing on the blockchain platform to ensure that the shared transaction process is transparent and reliable. At the same time, a cross-chain data multiple encryption method is designed to protect the ownership of the owner of the geological project results data, and realize fine-grained access control and trusted data sharing among geological institutions. In addition, proxy nodes and notary selection methods are designed between heterogeneous business blockchains to provide unified data management and sharing services, effectively solving the problems of data sharing difficulties and poor cross-chain collaboration.

[0067] The embodiment of the present invention provides a user identity registration and authentication strategy. During the data sharing process, the request information includes the user's public key and signature, which makes the transaction unforgeable and non-repudiable. The updated selection of proxy nodes and notaries ensures the fairness, justice, security and reliability of transactions. In addition, the embodiment of the present invention designs multiple encryption algorithms and signature protocols to protect the confidentiality of shared data and the reliability of the sharing process, avoiding privacy leakage and unauthorized access to cross-chain content.

[0068] Based on the characteristics of blockchain such as decentralization, transparent transmission and non-tamperability, the embodiments of the present invention record geological shared data and sharing process on the chain, thereby protecting the ownership rights and interests of data owners, enhancing the willingness of geological institutions to share data, and effectively solving the problem of geological institutions being unwilling or afraid to share geological project data and repeatedly deploying geological survey work.

[0069] The embodiment of the present invention integrates geological project data sharing on the blockchain platform to ensure that the sharing process is transparent and reliable; at the same time, a multiple encryption method for cross-chain data is designed to ensure the ownership of geological project results data, thereby realizing fine-grained access control and trusted data sharing among geological institutions; for heterogeneous geological business blockchains, a proxy node and notary selection method is designed to provide standardized data management and sharing services, which can effectively solve the problems of data sharing difficulties and insufficient cross-chain collaboration.

[0070] The present invention provides a data sharing method, which is applied to a cross-chain sharing system of geological project achievement data based on a cross-chain notary group. The system includes: a blockchain layer and a cross-chain transaction layer; the blockchain layer includes: multiple geological business blockchains and a proxy node group; the proxy node group includes: multiple proxy nodes; the cross-chain transaction layer includes: a cross-chain notary group; the cross-chain notary group includes: multiple notaries; the method includes: step S1: a geological institution registers in the system and establishes a geological business blockchain corresponding to the geological institution; wherein the geological business blockchain is used by the geological institution to store, update and manage geological project data; step S2: based on a preset proxy node election mechanism, a target proxy node is determined in the proxy node group; wherein the target proxy node is used for encryption and decryption operations and information interactive sharing; step S3: the accessed chain sends a data summary to the cross-chain notary group through the corresponding target proxy node, and the cross-chain notary group fully shares the shared transaction information The access chain submits a transaction request through the corresponding target proxy node. The cross-chain notary group verifies the transaction request and sends the transaction request to the accessed chain. The accessed chain verifies the transaction request and feeds back the result. The cross-chain notary group selects the final notary based on the result and the preset notary election mechanism. The cross-chain notary group broadcasts the updated transaction status. Among them, the geological business blockchain with sharing needs is the accessed chain; the geological business blockchain with access needs is the access chain. Step S4: After the access link receives and decrypts the data summary sent by the final notary, it requests the accessed chain to obtain the results data of the geological project, and returns the access mark to the final notary. Among them, the access mark indicates whether the access is successful. A cross-chain sharing system for geological project results data based on the cross-chain notary group is established. During the data transaction process, the cross-chain notary group verifies the identity information of both parties to the transaction multiple times, taking into account data privacy protection on the basis of cross-system data sharing.

[0071] Embodiment 2 Based on the above embodiments, the embodiments of the present invention provide a data sharing method and device, which is applied to a cross-chain sharing system of geological project results data based on a cross-chain notary group. The system includes: a blockchain layer and a cross-chain transaction layer; the blockchain layer includes: multiple geological business blockchains and a proxy node group; the proxy node group includes: multiple proxy nodes; the cross-chain transaction layer includes: a cross-chain notary group; the cross-chain notary group includes: multiple notaries; see Figure 6The structure diagram of a data sharing method device provided by an embodiment of the present invention is shown, and the device includes: The registration module 310 is used for the geological institution to register in the system and establish a geological business blockchain corresponding to the geological institution; wherein the geological business blockchain is used by the geological institution to store, update and manage the data of geological projects; The proxy node processing module 320 is used to determine a target proxy node in the proxy node group based on a preset proxy node election mechanism; wherein the target proxy node is used for encryption and decryption operations and information interaction and sharing; The pre-transaction execution module 330 is used for the visited chain to send a data summary to the cross-chain notary group through the corresponding target proxy node. The cross-chain notary group broadcasts the shared transaction information to the entire network. The visiting chain submits a transaction request through the corresponding target proxy node. The cross-chain notary group verifies the transaction request and sends the transaction request to the visited chain. The visited chain verifies the transaction request and feeds back the result. The cross-chain notary group selects the final notary based on the result based on the preset notary election mechanism. The cross-chain notary group broadcasts the updated transaction status. Among them, the geological business blockchain with sharing requirements is the visited chain; the geological business blockchain with access requirements is the access chain. The transaction execution module 340 is used to request the accessed chain to obtain the geological project's achievement data after the access link receives and decrypts the data summary sent by the final notary, and returns an access mark to the final notary; wherein the access mark indicates whether the access is successful.

[0072] Furthermore, in some preferred embodiments of the present invention, the registration module 310 is used for the geological institution to upload the identity authentication strategy and the registration smart contract to the geological business blockchain; the internal employees of the geological institution submit identity information in the system based on the identity authentication strategy to complete registration and authentication, so that the internal employees of the geological institution can store, update and manage the data of the geological project on the geological business blockchain; the geological institution encrypts the results data of the geological project based on a preset encryption algorithm and uploads it to the geological cloud, and publishes the data summary to the corresponding geological business blockchain; wherein the data summary includes: project name, project number, project summary, affiliated project, affiliated unit and storage address of the ciphertext of the results data of the geological project in the geological cloud; the data summary uses the project name of the geological project as the retrieval index.

[0073] Furthermore, in some preferred embodiments of the present invention, the proxy node processing module 320 is used to determine the set of proxy nodes of the geological business blockchain in the proxy node group, calculate the transmission cost of the proxy nodes in the set for cross-system sharing; and determine the target proxy node using a density peak clustering algorithm based on the transmission cost and the security attributes of the proxy nodes in the pre-set set.

[0074] Further, in some preferred embodiments of the present invention, the pre-transaction execution module 330 is used for the visited chain to submit a message request to the cross-chain notary group through the corresponding target proxy node; wherein the message request includes: a data summary and a signature of the target proxy node corresponding to the visited chain; after the cross-chain notary group receives the message request, it verifies the signature of the target proxy node corresponding to the visited chain, and if correct, stores the message request in the notary's cross-chain interaction record table, and broadcasts the message request; the visited chain submits a transaction request to the cross-chain notary group through the corresponding target proxy node; wherein the transaction request includes: a signature of the target proxy node corresponding to the visited chain; after the cross-chain notary group receives the transaction ... verifies the signature of the target proxy node corresponding to the visited chain. The signature of the target proxy node corresponding to the access chain is verified, and if it is correct, the transaction request is forwarded to the target proxy node corresponding to the accessed chain; after the accessed link receives the transaction request, it verifies the signature of the target proxy node corresponding to the access chain, and if it is correct, sends the feedback result to the cross-chain notary group; wherein the feedback result represents whether the accessed chain agrees to the transaction request; if the feedback result is to agree to the transaction request, the cross-chain notary group selects the final notary based on the preset notary election mechanism, and the final notary uploads the signature and timestamp of the final notary to the notary cross-chain interaction record table; wherein the notary cross-chain interaction record table includes: accessed chain, data summary, upload timestamp, access status and access chain.

[0075] Furthermore, in some preferred embodiments of the present invention, the system also includes: a key generation center, the key generation center is used to distribute the public key, the master key and the private key to the target proxy node; the transaction execution module 340 is used for the final notary to use the public key of the target proxy node corresponding to the access chain to asymmetrically encrypt the data summary, and then send it to the target proxy node corresponding to the access chain; after the target proxy node corresponding to the access chain decrypts the data summary based on the private key, it requests the result data of the geological project from the accessed chain based on the storage address in the data summary; the accessed chain verifies the storage address, and if it is correct, the result data of the geological project and the symmetric key are attribute-based encrypted based on the public key, the master key and the access control policy, and the encrypted ciphertext is sent to the target proxy node corresponding to the access chain; the target proxy node corresponding to the access chain requests the private key from the key generation center, decrypts the result data of the geological project based on the private key, and returns the access mark to the final notary.

[0076] Furthermore, in some preferred embodiments of the present invention, the device also includes: a notary processing module, which is used to determine the final notary through the following steps: each notary corresponds to an initial credit value; the transmission rate of the notary is tested based on a preset data packet; if the transmission rate is greater than a preset transmission speed threshold, the credit value of the notary is reviewed, and the notary with the largest credit value is determined as the final notary.

[0077] Furthermore, in some preferred embodiments of the present invention, the notary processing module is also used for approving the notary's withdrawal from the cross-chain notary group after the notary submits a withdrawal application to the cross-chain notary group, if the notary has no ongoing or unfinished cross-chain shared transactions, and broadcasting it within the cross-chain notary group; if the notary fails or performs false transactions when executing cross-chain shared transactions, the cross-chain notary group kicks the notary out of the cross-chain notary group and broadcasts it within the cross-chain notary group, and then re-selects a new notary.

[0078] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the data sharing method device described above can refer to the corresponding process in the aforementioned data sharing method embodiment, and will not be repeated here.

[0079] Embodiment 3 The embodiment of the present invention also provides an electronic device for executing a data sharing method; see Figure 7 The structural diagram of an electronic device provided by an embodiment of the present invention is shown, and the electronic device includes a memory 400 and a processor 401, wherein the memory 400 is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor 401 to implement the above-mentioned data sharing method.

[0080] Further, Figure 7 The electronic device shown further includes a bus 402 and a communication interface 403 , and the processor 401 , the communication interface 403 and the memory 400 are connected via the bus 402 .

[0081] The memory 400 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 403 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 402 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0082] The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 401. The above processor 401 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 400, and the processor 401 reads the information in the memory 400 and completes the steps of the method of the above embodiment in combination with its hardware.

[0083] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned data sharing method. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0084] The computer program products of the data sharing method, device and electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0085] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and / or device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0086] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0087] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data sharing method, characterized in that: The invention is applied to a cross-chain sharing system of geological project achievement data based on a cross-chain notary group, the system comprising: a blockchain layer and a cross-chain transaction layer; the blockchain layer comprises: a plurality of geological business blockchains and a proxy node group; the proxy node group comprises: a plurality of proxy nodes; the cross-chain transaction layer comprises: a cross-chain notary group; the cross-chain notary group comprises: a plurality of notaries; the method comprises: Step S1: The geological institution registers in the system and establishes the geological business blockchain corresponding to the geological institution; wherein the geological business blockchain is used by the geological institution to store, update and manage geological project data; Step S2: determining a target proxy node in the proxy node group based on a preset proxy node election mechanism; wherein the target proxy node is used for encryption and decryption operations and information interaction and sharing; Step S3: the visited chain sends a data summary to the cross-chain notary group through the corresponding target proxy node, the cross-chain notary group broadcasts the shared transaction information to the entire network, the visiting chain submits a transaction request through the corresponding target proxy node, the cross-chain notary group verifies the transaction request and sends the transaction request to the visited chain, the visited chain verifies the transaction request and feeds back the result, the cross-chain notary group selects the final notary based on the result and the preset notary election mechanism, and the cross-chain notary group broadcasts the updated transaction status; wherein, the geological business blockchain with sharing requirements is the visited chain; the geological business blockchain with access requirements is the visiting chain; Step S4: After receiving and decrypting the data summary sent by the final notary, the access chain requests the accessed chain to obtain the results data of the geological project, and returns an access mark to the final notary; wherein the access mark indicates whether the access is successful.

2. The data sharing method according to claim 1, characterized in that: The step S1 comprises: The geological institution uploads the identity authentication strategy and registration smart contract to the geological business blockchain; The internal employees of the geological institution submit identity information in the system based on the identity authentication strategy to complete registration and authentication, so that the internal employees of the geological institution can store, update and manage the data of the geological project on the geological business blockchain; The geological institution encrypts the results data of the geological project based on a preset encryption algorithm and uploads it to the geological cloud, and publishes the data summary to the corresponding geological business blockchain; wherein the data summary includes: project name, project number, project summary, affiliated project, affiliated unit and the storage address of the ciphertext of the results data of the geological project in the geological cloud; the data summary uses the project name of the geological project as the retrieval index.

3. The data sharing method according to claim 1, characterized in that: The step S2 comprises: Determine a set of proxy nodes of the geological business blockchain in the proxy node group, and calculate a transmission cost for cross-system sharing of the proxy nodes in the set; The target proxy node is determined by using a density peak clustering algorithm based on the transmission cost and the preset security attributes of the proxy nodes in the set.

4. The data sharing method according to claim 1, characterized in that: The step S3 comprises: The accessed chain submits a message request to the cross-chain notary group through the corresponding target proxy node; wherein the message request includes: the data summary and the signature of the target proxy node corresponding to the accessed chain; After receiving the message request, the cross-chain notary group verifies the signature of the target proxy node corresponding to the accessed chain. If it is correct, the message request is stored in the notary cross-chain interaction record table and the message request is broadcast; The access chain submits a transaction request to the cross-chain notary group through the corresponding target proxy node; wherein the transaction request includes: a signature of the target proxy node corresponding to the access chain; After receiving the transaction request, the cross-chain notary group verifies the signature of the target proxy node corresponding to the access chain, and if it is correct, forwards the transaction request to the target proxy node corresponding to the accessed chain; After receiving the transaction request, the visited link verifies the signature of the target proxy node corresponding to the visited chain, and if it is correct, sends the feedback result to the cross-chain notary group; wherein the feedback result indicates whether the visited chain agrees with the transaction request; If the feedback result is to agree to the transaction request, the cross-chain notary group selects the final notary based on the preset notary election mechanism, and the final notary uploads the signature and timestamp of the final notary to the notary cross-chain interaction record table; wherein the notary cross-chain interaction record table includes: the accessed chain, data summary, upload timestamp, access status and access chain.

5. The data sharing method according to claim 1, characterized in that: The system further includes: a key generation center, the key generation center being used to distribute the public key, the master key and the private key to the target proxy node; the step S4 includes: The final notary public uses the public key of the target proxy node corresponding to the access chain to asymmetrically encrypt the data summary, and then sends it to the target proxy node corresponding to the access chain; After the target proxy node corresponding to the access chain decrypts the data summary based on the private key, it requests the achievement data of the geological project from the accessed chain based on the storage address in the data summary; The accessed chain verifies the storage address, and if it is correct, performs attribute-based encryption on the achievement data of the geological project and the symmetric key based on the public key, the master key and the access control policy, and sends the encrypted ciphertext to the target proxy node corresponding to the access chain; The target proxy node corresponding to the access chain requests the private key from the key generation center, decrypts the achievement data of the geological project based on the private key, and returns the access mark to the final notary.

6. The data sharing method according to claim 1, characterized in that: The method further comprises: determining the final notary public through the following steps: Each notary public corresponds to an initial credit value; Testing the transmission rate of the notary based on a preset data packet; If the transmission rate is greater than a preset transmission speed threshold, the credit value of the notary is reviewed, and the notary with the highest credit value is determined as the final notary.

7. The data sharing method according to claim 1, characterized in that: The method further comprises: After the notary submits a withdrawal application to the cross-chain notary group, if the notary has no ongoing or unfinished cross-chain shared transactions, the notary is approved to withdraw from the cross-chain notary group and broadcasted within the cross-chain notary group; If the notary fails or performs a false transaction when executing the cross-chain shared transaction, the cross-chain notary group kicks the notary out of the cross-chain notary group and broadcasts it within the cross-chain notary group, and then re-selects a new notary.

8. A data sharing device, characterized in that: The invention is applied to a cross-chain sharing system of geological project achievement data based on a cross-chain notary group, the system comprising: a blockchain layer and a cross-chain transaction layer; the blockchain layer comprises: a plurality of geological business blockchains and a proxy node group; the proxy node group comprises: a plurality of proxy nodes; the cross-chain transaction layer comprises: a cross-chain notary group; the cross-chain notary group comprises: a plurality of notaries; the device comprises: A registration module is used for a geological institution to register in the system and establish the geological business blockchain corresponding to the geological institution; wherein the geological business blockchain is used by the geological institution to store, update and manage data of geological projects; A proxy node processing module, used to determine a target proxy node in the proxy node group based on a preset proxy node election mechanism; wherein the target proxy node is used for encryption and decryption operations and information interaction and sharing; A pre-transaction execution module is used for the visited chain to send a data summary to the cross-chain notary group through the corresponding target proxy node, the cross-chain notary group broadcasts the shared transaction information to the entire network, the visiting chain submits a transaction request through the corresponding target proxy node, the cross-chain notary group verifies the transaction request and sends the transaction request to the visited chain, the visited chain verifies the transaction request and feeds back the result, the cross-chain notary group selects the final notary based on the result based on the preset notary election mechanism, and the cross-chain notary group broadcasts the updated transaction status; wherein, the geological business blockchain with sharing requirements is the visited chain; the geological business blockchain with access requirements is the visiting chain; The transaction execution module is used for requesting the accessed chain to obtain the achievement data of the geological project after the access chain receives and decrypts the data summary sent by the final notary, and returns an access mark to the final notary; wherein the access mark indicates whether the access is successful.

9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the data sharing method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the data sharing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cross-chain block chain communication method and device

    CN112491846A

  • Block chain cross-chain method and device and readable storage medium

    CN116137006A

  • Cross-chain data sharing method

    CN117294422A

  • Method and apparatus for processing data request

    US20220271924A1