Multi-system data sharing method and device, storage medium and processor
Through blockchain and integrated smart contract technology, parallel sharing of multi-system data is achieved, which solves the problem of low data sharing efficiency in existing technologies and improves the security and effectiveness of data.
Patent Information
- Application Number
- CN202310402656.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, data sharing in industrial production exists in a serial manner, resulting in low business processing efficiency, and because the data cannot be fully trusted, it affects the efficient operation of all parties.
Using blockchain technology and integrated smart contracts, identity authentication is performed by obtaining authentication requests from each system, and after multi-party verification is passed, the initial data is uploaded to the chain and stored to achieve parallel sharing of data from multiple systems.
It improves the processing efficiency in business processes, ensures the validity and security of data, and improves the reliability and security of data through distributed storage.
Smart Images

Figure CN118798795A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a multi-system data sharing method, a multi-system data sharing method device, a machine-readable storage medium and a processor. Background Art
[0002] Industrial production activities are relatively complex, involving multiple links, each of which involves multiple parties. The data generated by each link needs to be used by multiple parties at the same time, or one party uses the comprehensive data generated by multiple links. For example, coal quality testing involves initial inspection and testing at the port and re-inspection and testing entrusted to a third party. The test results are provided to the coal producer and buyer. When the buyer settles with the producer, not only the coal quality test data but also the quantity of coal is required.
[0003] The existing technology is to centralize the data generated by each link in one system for unified processing, and grant each participant the authority to generate and use data. When using the system, the participant who obtains the authority must first undergo authority authentication before performing operations such as data generation, access, and modification.
[0004] For example, from the production of coal to the receipt of coal by the buyer, all the data generated in the intermediate process are centralized in the system for unified management. System failures or system vulnerabilities will affect the security of the data. In addition, since the production, transportation, and testing links involved are serial, in the traditional centralized processing system, the execution of the next link is triggered only after the previous link is completed. The upper and lower links generally belong to different companies, and the data between each other cannot be fully trusted. For example, when testing the quality of coal, it may be necessary to undergo an initial inspection at the port and a re-inspection by a third party. After the re-inspection is qualified, it will be transported to the power plant by the carrier. The port, third-party testing agency, carrier, and power plant belong to different companies, and the data generated in each link cannot be fully trusted by each other. Only after the goods are received in the middle and lower reaches of the upstream and downstream links can the authenticity of the data be verified. This serial method affects the efficient operation of all parties.
[0005] Therefore, the serial method used in the prior art, in which the execution of the next link is triggered only after the previous link is completed, has the problem of low business processing efficiency. Summary of the invention
[0006] The purpose of an embodiment of the present invention is to provide a multi-system data sharing method, a multi-system data sharing method device, a machine-readable storage medium and a processor. The multi-system data sharing method enables multiple systems to upload data to the chain in parallel, greatly improving the processing efficiency in the business process.
[0007] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a multi-system data sharing method, which is applied to a blockchain, wherein the blockchain includes an integrated smart contract; the method includes:
[0008] Respectively obtain the authentication requests sent by each system in the business process to the integrated smart contract;
[0009] In response to the authentication request of each system, performing identity authentication on each system;
[0010] When the identity authentication of each system is passed, the initial data of each system is stored on the chain to achieve data sharing;
[0011] The initial data of the system is data that has been verified by multiple business entities in the business process.
[0012] In the embodiment of the present application, the business process includes a first system and a second system;
[0013] After the initial data of the first system is uploaded to the chain for storage, the method further includes:
[0014] Obtaining information to be authenticated sent by the second system to the integrated smart contract;
[0015] authenticating the second system according to the information to be authenticated;
[0016] When the second system passes the authentication, the initial data of the first system on the blockchain is obtained in the blockchain, and the initial data of the first system on the blockchain is sent to the second system.
[0017] In the embodiment of the present application, the initial data of the first system includes a data index, and the information to be authenticated sent by the second system to the integrated smart contract includes an index number to be indexed;
[0018] The obtaining the initial data of the first system on the blockchain in the blockchain includes:
[0019] Matching the to-be-indexed number with the data index;
[0020] In case of successful matching, the block data corresponding to the to-be-indexed number is obtained to obtain the initial data uploaded to the chain by the first system.
[0021] In the embodiment of the present application, the blockchain stores the test block data and the waybill block data, and the business process includes a third system; the method further includes:
[0022] Obtaining information to be authenticated sent by the third system to the integrated smart contract;
[0023] authenticating the third system according to the information to be authenticated;
[0024] When the third system authentication is passed, the test block data and the waybill block data are obtained in the blockchain, and the test block data and the waybill block data are sent to the third system.
[0025] In the embodiment of the present application, the assay block data includes first block data and second block data;
[0026] The obtaining of assay block data in the blockchain includes:
[0027] Obtaining first region data in the blockchain, and determining whether second block data exists;
[0028] If the second block data exists, acquiring the second block data and using the second block data as the final assay block data;
[0029] In the case that the second block data does not exist, the first region data is used as the final assay block data.
[0030] In the embodiment of the present application, the business process includes a fourth system. After the initial data of each system is stored on the chain, the method further includes:
[0031] Obtaining a verification request sent by the fourth system to the integrated smart contract;
[0032] Obtain information to be verified;
[0033] authenticating the fourth system according to the authentication request;
[0034] When the fourth system authentication is passed, data authentication is performed on the information to be authenticated to obtain a authentication result.
[0035] In the embodiment of the present application, the business process further includes a fifth system, and the verification request includes a transaction number, test data, and waybill data;
[0036] The obtaining of the information to be verified includes:
[0037] Determining whether there is a settlement number in the verification request;
[0038] Determine that there is a settlement number, and extract the test data and waybill data from the verification request as information to be verified;
[0039] Determining that there is no settlement number, acquiring historical test data and historical waybill data in the fourth system according to the transaction number, and using the historical test data and historical waybill data as information to be verified;
[0040] The historical test data and historical waybill data are obtained by the fourth system from the fifth system.
[0041] A second aspect of the present application provides a multi-system data sharing device, which is applied to a blockchain, wherein the blockchain includes an integrated smart contract; the device includes:
[0042] An acquisition module, used to respectively acquire the authentication requests sent by each system in the business process to the integrated smart contract;
[0043] An authentication module, configured to perform identity authentication on each system in response to an authentication request from each system;
[0044] The on-chain module is used to store the initial data of each system on the chain when the identity authentication of each system is passed, so as to realize data sharing; wherein, the initial data of the system is data that has been verified by multiple business entities in the business process.
[0045] A third aspect of the present application provides a processor configured to execute the above-mentioned multi-system data sharing method.
[0046] A fourth aspect of the present application provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute any of the multi-system data sharing methods described above in the present application.
[0047] Through the above technical solution, by obtaining the authentication requests sent by each system in the business process to the integrated smart contract respectively; in response to the authentication requests of each system, the identity of each system is authenticated; when the identity authentication of each system is passed, the initial data of each system is stored on the chain to achieve data sharing; the data upload between each system is no longer dependent on each other, so that multiple systems can upload data to the blockchain in parallel for storage, which greatly improves the processing efficiency in the business process compared to the serial method in the prior art. At the same time, the initial data of the system is data verified by multiple business entities in the business process, ensuring the validity of the data. The use of blockchain for distributed storage improves the security of data.
[0048] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0050] Figure 1 A schematic diagram of a multi-system data sharing method according to an embodiment of the present application is shown;
[0051] Figure 2 The functional diagram of the integrated smart contract according to the embodiment of the present application is schematically shown;
[0052] Figure 3 A schematic diagram of a port shipping processing architecture according to an embodiment of the present application is shown schematically;
[0053] Figure 4 The schematic diagram of the multi-block data security sharing process according to an embodiment of the present application is shown;
[0054] Figure 5 A schematic diagram of obtaining block data according to an embodiment of the present application is schematically shown;
[0055] Figure 6 A schematic diagram of obtaining multi-block data by integrating smart contracts according to an embodiment of the present application is schematically shown;
[0056] Figure 7 Schematic diagram showing verification of multi-block data by integrating smart contracts according to an embodiment of the present application
[0057] Figure 8 A schematic diagram of a multi-system data sharing device structure according to an embodiment of the present application is shown;
[0058] Fig. 9 The internal structure diagram of the device according to the embodiment of the present application is schematically shown.
[0059] Description of Reference Numerals
[0060] 410 - acquisition module; 420 - authentication module; 430 - uplink module; 40 - device; 401 - processor; 402 - memory; 403 - bus. DETAILED DESCRIPTION
[0061] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0062] Please see Figure 1 and Figure 2 , Figure 1 The following schematically shows a flow chart of a multi-system data sharing method according to an embodiment of the present application. Figure 2The functional diagram of the integrated smart contract according to the embodiment of the present application is schematically shown. The multi-system data sharing method realizes data sharing by storing the data authenticated by multiple parties in parallel based on blockchain technology. It should be noted that the multi-system data sharing method provided in this embodiment is applicable to business processes including multiple systems. In order to facilitate the description of the scheme, this embodiment is mainly described based on the business process from coal production, transportation, testing to coal power generation.
[0063] The multi-system data sharing method is applied to a blockchain, wherein the blockchain includes an integrated smart contract;
[0064] The method comprises the following steps:
[0065] Step 210: respectively obtaining authentication requests sent by each system in the business process to the integrated smart contract;
[0066] In this embodiment, the blockchain includes an integrated smart contract and block data, wherein the integrated smart contract has identity authentication processing, data verification processing, and block data acquisition functions. Block data refers to data stored on the blockchain. Taking the business process from coal production, transportation, testing to coal-fired power generation as an example, the block data includes coal quality testing data, transportation data, contract data, etc. The integrated smart contract is responsible for identity authentication and data sharing. The smart contract of the blockchain is designed to include identity authentication processing, multi-block data acquisition, and multi-block data verification processing to obtain an integrated smart contract.
[0067] Step 220: In response to the authentication request of each system, perform identity authentication on each system;
[0068] In this embodiment, the authentication request may include information such as IP address, role, transaction number, certificate, etc. When performing identity authentication, each system may be authenticated separately according to the certificate issued by the certificate authority (CA). For example, in the above example, identity authentication includes authentication of various systems involved in business processes such as ports, third-party laboratories, power plants, coal plants, and carrier systems. Specifically, the IP address, role, transaction number, and certificate of the system accessing the blockchain may be authenticated according to the certificate managed by the blockchain node.
[0069] Among them, only the certificates loaded into the blockchain block can be authenticated, thereby ensuring the validity of the authority; the above certificates can be redeployed, the certificates are stamped with timestamps and have a valid time range. The time validity range of the changed certificate is valid after the change time point, thereby realizing the change of authority.
[0070] Step 230: When the identity authentication of each system is passed, the initial data of each system is stored on the chain to realize data sharing; wherein, the initial data of the system is data that has been verified by multiple business entities in the business process.
[0071] In this embodiment, the initial data can only be uploaded to the blockchain after multiple business entities vote. The on-chain data format is JSON, which ensures the validity of the data on the blockchain. The above initial data is stored in the form of block data on the blockchain. Different initial data corresponds to different block data. After the initial data of multiple systems are uploaded to the blockchain, there are multiple block data on the blockchain. For example, the block data includes coal quality test data, transportation data, contract data, etc. This enables the initial data of each system to be shared.
[0072] Taking the business process from coal production, transportation, testing to coal-fired power generation as an example, the business process includes the port testing system, third-party testing system, carrier system, power plant system and coal plant system. The above multiple systems share data securely, including: the port testing system sends an authentication request to the integrated smart contract of the blockchain, and after the authentication is passed, the initial inspection data is uploaded to the chain; the third-party testing system sends an authentication request to the integrated smart contract of the blockchain, and after the authentication is passed, the re-inspection data is uploaded to the chain; the carrier system sends a settlement request to the integrated smart contract of the blockchain, and after the authentication is passed, the waybill data is uploaded to the chain.
[0073] In the above implementation process, the authentication requests sent by each system in the business process to the integrated smart contract are obtained respectively; in response to the authentication requests of each system, the identity of each system is authenticated; when the identity authentication of each system is passed, the initial data of each system is stored on the chain to achieve data sharing; the data between the systems are no longer dependent on each other, so that multiple systems can upload data to the blockchain in parallel for storage, which greatly improves the processing efficiency in the business process compared to the serial method in the prior art. At the same time, the initial data of the system is data verified by multiple business entities in the business process, ensuring the validity and reliability of the data. The use of blockchain for distributed storage improves the security of data.
[0074] In some embodiments, data is also obtained by integrating the acquisition function of the smart contract, see Figure 4 , the business process includes a first system and a second system; after the initial data of the first system is stored on the chain, the following steps are also included:
[0075] First, obtaining the information to be authenticated sent by the second system to the integrated smart contract;
[0076] Then, authenticating the second system according to the information to be authenticated;
[0077] Finally, when the second system passes the authentication, the initial data on the chain of the first system is obtained in the blockchain, and the initial data on the chain of the first system is sent to the second system.
[0078] In this embodiment, the information to be authenticated includes IP address, role, transaction number, certificate and other information; the authentication of the second system is the same as the identity authentication process in step 220, which will not be repeated here. The block data in the blockchain is the initial data stored in the first system on the chain, so that the block data can be obtained in the blockchain to realize the traceability function.
[0079] In order to quickly obtain the initial data on the chain of the first system, the initial data of the first system includes a data index, and the information to be authenticated sent by the second system to the integrated smart contract includes an index number to be authenticated;
[0080] The obtaining the initial data of the first system on the blockchain in the blockchain includes:
[0081] The first step is to match the to-be-indexed number with the data index;
[0082] The second step is to obtain the block data corresponding to the to-be-indexed number in case of successful matching, so as to obtain the initial data uploaded to the chain by the first system.
[0083] In this embodiment, the data index is to index data on the blockchain, and can be a transaction number, that is, a transaction ID. The corresponding block data can be quickly obtained by matching the index number.
[0084] For example: See Figure 5 The port testing system sends the certificate, IP address and role of the port testing system to the integrated smart contract of the blockchain. After the authentication is passed, the transaction number and the initial inspection data are uploaded to the chain; the third-party testing system sends the certificate, IP address and role of the third-party testing system to the integrated smart contract of the blockchain. After the authentication is passed, the initial inspection data is traced according to the transaction number. After the initial inspection data is traced, the initial inspection data is returned to the third-party testing system.
[0085] In some embodiments, you can also obtain multi-block data through the integrated smart contract, please refer to Figure 6 , by automatically tracing the data of each block according to the visitor's identity and business requirements for a single block of the blockchain or the data distributed in different blocks, and obtaining the integrated data of multiple blocks of the blockchain through smart contract integration.
[0086] The blockchain stores the test block data and the waybill block data, and the business process includes a third system; the method further includes:
[0087] First, obtaining the information to be authenticated sent by the third system to the integrated smart contract;
[0088] Then, authenticating the third system according to the information to be authenticated;
[0089] Then, when the authentication of the third system is passed, the test block data and the waybill block data are obtained in the blockchain, and the test block data and the waybill block data are sent to the third system.
[0090] In this embodiment, the third system is a power plant system in the business process from coal production, transportation, testing to coal power generation. The information to be authenticated sent by the power plant system to the integrated smart contract of the blockchain includes the certificate, IP address and role of the power plant, as well as the transaction number and settlement application identifier; authentication is performed based on the certificate, IP address and role of the power plant. After the authentication is passed, the integrated smart contract obtains the waybill block data and the test block data through the block data acquisition function according to the transaction number.
[0091] In the above implementation process, by integrating smart contracts to activate the traceability function of the blockchain, relevant data can be automatically detected, thereby simplifying the data operation link and further improving the processing efficiency. In addition, for the settlement processing in the above business process, when multiple parties including the coal plant have confirmed the blockchain data, the coal plant can be settled concurrently without having to wait until the coal is delivered before settling with the coal plant, which improves the settlement speed.
[0092] In some embodiments, the assay block data includes first block data and second block data;
[0093] The obtaining of the assay block data in the blockchain includes: obtaining the first region data in the blockchain, and determining whether the second block data exists; if the second block data exists, obtaining the second block data, and using the second block data as the final assay block data; if the second block data does not exist, using the first region data as the final assay block data. Thus, the function of obtaining multiple block data is realized.
[0094] For example: when obtaining the test block data, there is a situation of re-inspection. In order to further improve the accuracy of the obtained data, when obtaining the test block data, further judgment can be made, that is, the test block data includes initial test data and re-inspection test data; the obtaining of the test block data in the blockchain includes: obtaining the initial test data in the blockchain, and judging whether there is a re-inspection; in the case of a re-inspection, obtaining the re-inspection test data, and using the re-inspection test data as the final test block data; in the case of no re-inspection, using the initial test data as the final test block data.
[0095] In this embodiment, the integrated smart contract traces the final test data according to the transaction number, specifically to determine whether there is a re-inspection. If there is a re-inspection, the re-inspection test data and the waybill data are returned to the power plant system. Otherwise, the initial inspection test data and the waybill data are returned to the power plant system. This ensures the accuracy of the acquired test block data.
[0096] In some embodiments, block data can also be verified by integrating smart contracts. Figure 7 , the business process includes a fourth system, and after the initial data of each system is stored on the chain, the method further includes the following steps:
[0097] First, obtaining a verification request sent by the fourth system to the integrated smart contract;
[0098] Then, obtain the information to be verified;
[0099] Then, authenticating the fourth system according to the authentication request;
[0100] Finally, when the fourth system authentication is passed, data authentication is performed on the information to be authenticated to obtain a authentication result.
[0101] In this embodiment, the fourth system is a coal plant system. When the power plant system sends a settlement notice to the coal plant system, or the coal plant system needs to verify the settlement, the coal plant system sends an authentication request to the integrated smart contract of the blockchain. After the authentication is passed, the test data and waybill data included in the settlement notice are uploaded to the blockchain, and the test data and waybill data are verified through the multi-block data verification function, and the verification result is returned to the coal plant system. The verification request sent by the coal plant system to the integrated smart contract of the blockchain includes the certificate, IP address, role of the coal plant and transaction number of the coal plant. If there is a settlement notice sent by the power plant, the settlement number, test data, and waybill data are sent to obtain the test data and waybill data; after the integrated smart contract of the blockchain is authenticated, the test data and waybill data are uploaded to the blockchain, and the test block and waybill block are verified; and the verification result is returned to the coal plant system. The above verification process refers to taking data from the blockchain and comparing it with the information to be verified to obtain the verification result. The information to be verified is compared with the data on the blockchain. If they are consistent, it is true; if they are inconsistent, it has been tampered with.
[0102] In the above implementation process, you only need to obtain the information to be verified and you can start the verification process at any time. Compared with the existing technology that verification can only be performed after notification, the original notification link is omitted, so that the verification process can be performed in advance, which improves the timeliness of the verification.
[0103] In some embodiments, the business process further includes a fifth system, and the verification request includes a transaction number, test data, and waybill data;
[0104] In order to obtain more accurate information to be verified, the obtaining of the information to be verified includes: determining whether there is a settlement number in the verification request; determining that there is a settlement number, extracting test data and waybill data from the verification request as the information to be verified; determining that there is no settlement number, obtaining historical test data and historical waybill data in the fourth system according to the transaction number, and using the historical test data and historical waybill data as the information to be verified; wherein the historical test data and historical waybill data are obtained by the fourth system from the fifth system.
[0105] In this embodiment, the fifth system is a power plant system. If there is a settlement number, the test data and waybill data are directly obtained; if there is no settlement number, the existing test data is obtained from the coal plant system according to the transaction number, and the test data is the test data previously obtained from the power plant system; the existing waybill data is obtained from the coal plant system according to the transaction number, and the waybill data is the waybill data previously obtained from the power plant. This ensures that the information to be verified comes from the coal plant system, ensuring the accuracy of the information to be verified.
[0106] For example: See Figure 3, the port shipping process includes the testing system, transportation system, purchasing system and manufacturer system. Among them, the testing system: includes port testing and third-party testing. The testing system sends a certification request to the integrated smart contract of the blockchain. After the certification is passed, the test data (test list) is put on the chain. Transportation system: The transportation system sends a certification request to the integrated smart contract of the blockchain. After the certification is passed, the waybill data entering and leaving the port is put on the chain. Purchasing system: After obtaining the certification of the integrated smart contract of the blockchain, the purchasing system (power plant system) obtains the test data and waybill data of the goods. At the same time, the obtained test data and waybill data can be forwarded to the production system, and a settlement notice can be sent to the manufacturer system. Manufacturer system: After obtaining the certification of the integrated smart contract of the blockchain, the manufacturer system (coal plant system) verifies the obtained test data and waybill data through the data verification processing function of the integrated smart contract.
[0107] In the above implementation process, the data acquisition and verification process of multiple blocks in the blockchain are simplified according to the business access authentication. In addition, the serial operation of the original business operation is changed to parallel operation when the data is authenticated by multiple parties, which improves efficiency. The smart contract of the blockchain is integrated into identity authentication processing, multi-block data acquisition, and multi-block data verification processing. The blockchain smart contract inherits multiple functional interfaces and has a high degree of business adaptability.
[0108] Figure 1 FIG. 1 is a flow chart of a multi-system data sharing method in one embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0109] Based on the same inventive concept, this embodiment provides a multi-system data sharing device. Figure 8 , Figure 8 The structure block diagram of a multi-system data sharing device according to an embodiment of the present application is schematically shown. The multi-system data sharing device includes an acquisition module 410, an authentication module 420 and an uplink module 430, wherein:
[0110] The acquisition module 410 is used to respectively acquire the authentication request sent by each system in the business process to the integrated smart contract;
[0111] The authentication module 420 is used to perform identity authentication on each system in response to the authentication request of each system;
[0112] The on-chain module 430 is used to store the initial data of each system on the chain when the identity authentication of each system is passed, so as to realize data sharing; wherein, the initial data of the system is data that has been verified by multiple business entities in the business process.
[0113] The multi-system data sharing device includes a processor and a memory. The acquisition module 410, the authentication module 420 and the uplink module 430 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0114] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the processing efficiency in the business process can be improved by adjusting the kernel parameters.
[0115] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0116] An embodiment of the present invention provides a machine-readable storage medium on which a program is stored. When the program is executed by a processor, the multi-system data sharing method is implemented.
[0117] An embodiment of the present invention provides a processor, which is used to run a program, wherein the multi-system data sharing method is executed when the program is running.
[0118] Please see Fig. 9 , Fig. 9 The internal structure diagram of the device according to the embodiment of the present application is schematically shown. The embodiment of the present invention provides a device 40, which includes at least one processor 401, and at least one memory 402 and a bus 403 connected to the processor 401; wherein the processor 401 and the memory 402 communicate with each other through the bus 403; the processor 401 is used to call the program instructions in the memory 402 to execute the above-mentioned multi-system data sharing method. The device 40 in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0119] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0120] Applied to a blockchain, the blockchain including an integrated smart contract; the method comprising:
[0121] Respectively obtain the authentication requests sent by each system in the business process to the integrated smart contract;
[0122] In response to the authentication request of each system, performing identity authentication on each system;
[0123] When the identity authentication of each system is passed, the initial data of each system is stored on the chain to achieve data sharing;
[0124] The initial data of the system is data that has been verified by multiple business entities in the business process.
[0125] In one embodiment, the business process includes a first system and a second system;
[0126] After the initial data of the first system is uploaded to the chain for storage, the method further includes:
[0127] Obtaining information to be authenticated sent by the second system to the integrated smart contract;
[0128] authenticating the second system according to the information to be authenticated;
[0129] When the second system passes the authentication, the initial data of the first system on the blockchain is obtained in the blockchain, and the initial data of the first system on the blockchain is sent to the second system.
[0130] In one embodiment, the initial data of the first system includes a data index, and the information to be authenticated sent by the second system to the integrated smart contract includes an index number to be authenticated;
[0131] The obtaining the initial data of the first system on the blockchain in the blockchain includes:
[0132] Matching the to-be-indexed number with the data index;
[0133] In case of successful matching, the block data corresponding to the to-be-indexed number is obtained to obtain the initial data uploaded to the chain by the first system.
[0134] In one embodiment, the blockchain stores assay block data and waybill block data, and the business process includes a third system; the method further includes:
[0135] Obtaining information to be authenticated sent by the third system to the integrated smart contract;
[0136] authenticating the third system according to the information to be authenticated;
[0137] When the third system authentication is passed, the test block data and the waybill block data are obtained in the blockchain, and the test block data and the waybill block data are sent to the third system.
[0138] In one embodiment, the assay block data includes first block data and second block data;
[0139] The obtaining of assay block data in the blockchain includes:
[0140] Obtaining first region data in the blockchain, and determining whether second block data exists;
[0141] If the second block data exists, acquiring the second block data and using the second block data as the final assay block data;
[0142] In the case that the second block data does not exist, the first region data is used as the final assay block data.
[0143] In one embodiment, the business process includes a fourth system. After the initial data of each system is stored on the chain, the method further includes:
[0144] Obtaining a verification request sent by the fourth system to the integrated smart contract;
[0145] Obtain information to be verified;
[0146] authenticating the fourth system according to the authentication request;
[0147] When the fourth system authentication is passed, data authentication is performed on the information to be authenticated to obtain a authentication result.
[0148] In one embodiment, the business process further includes a fifth system, and the verification request includes a transaction number, test data, and waybill data;
[0149] The obtaining of the information to be verified includes:
[0150] Determining whether there is a settlement number in the verification request;
[0151] Determine that there is a settlement number, and extract the test data and waybill data from the verification request as information to be verified;
[0152] Determining that there is no settlement number, acquiring historical test data and historical waybill data in the fourth system according to the transaction number, and using the historical test data and historical waybill data as information to be verified;
[0153] The historical test data and historical waybill data are obtained by the fourth system from the fifth system.
[0154] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0155] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0158] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0159] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0160] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0161] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0162] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A multi-system data sharing method, characterized in that: Applied to a blockchain, the blockchain including an integrated smart contract; the method comprising: Respectively obtain the authentication requests sent by each system in the business process to the integrated smart contract; In response to the authentication request of each system, performing identity authentication on each system; When the identity authentication of each system is passed, the initial data of each system is stored on the chain to achieve data sharing; The initial data of the system is data that has been verified by multiple business entities in the business process.
2. The multi-system data sharing method according to claim 1, characterized in that: The business process includes a first system and a second system; After the initial data of the first system is uploaded to the chain for storage, the method further includes: Obtaining information to be authenticated sent by the second system to the integrated smart contract; authenticating the second system according to the information to be authenticated; When the second system passes the authentication, the initial data of the first system on the blockchain is obtained in the blockchain, and the initial data of the first system on the blockchain is sent to the second system.
3. The multi-system data sharing method according to claim 2, characterized in that: The initial data of the first system includes a data index, and the information to be authenticated sent by the second system to the integrated smart contract includes an index number to be authenticated; The obtaining the initial data of the first system on the blockchain in the blockchain includes: Matching the to-be-indexed number with the data index; In case of successful matching, the block data corresponding to the to-be-indexed number is obtained to obtain the initial data uploaded to the chain by the first system.
4. The multi-system data sharing method according to claim 1, characterized in that: The blockchain stores the test block data and the waybill block data, and the business process includes a third system; the method further includes: Obtaining information to be authenticated sent by the third system to the integrated smart contract; authenticating the third system according to the information to be authenticated; When the third system authentication is passed, the test block data and the waybill block data are obtained in the blockchain, and the test block data and the waybill block data are sent to the third system.
5. The multi-system data sharing method according to claim 4, characterized in that: The assay block data includes first block data and second block data; The obtaining of assay block data in the blockchain includes: Obtaining first region data in the blockchain, and determining whether second block data exists; If the second block data exists, acquiring the second block data and using the second block data as the final assay block data; In the case that the second block data does not exist, the first region data is used as the final assay block data.
6. The multi-system data sharing method according to claim 1, characterized in that: The business process includes a fourth system. After the initial data of each system is stored on the chain, the method further includes: Obtaining a verification request sent by the fourth system to the integrated smart contract; Obtain information to be verified; authenticating the fourth system according to the authentication request; When the fourth system authentication is passed, data authentication is performed on the information to be authenticated to obtain a authentication result.
7. The multi-system data sharing method according to claim 6, characterized in that: The business process also includes a fifth system, wherein the verification request includes a transaction number, test data, and waybill data; The obtaining of the information to be verified includes: Determining whether there is a settlement number in the verification request; Determine that there is a settlement number, and extract the test data and waybill data from the verification request as information to be verified; Determining that there is no settlement number, acquiring historical test data and historical waybill data in the fourth system according to the transaction number, and using the historical test data and historical waybill data as information to be verified; The historical test data and historical waybill data are obtained by the fourth system from the fifth system.
8. A multi-system data sharing device, characterized in that: Applied to a blockchain, the blockchain includes an integrated smart contract; the device includes: An acquisition module, used to respectively acquire the authentication requests sent by each system in the business process to the integrated smart contract; An authentication module, configured to perform identity authentication on each system in response to an authentication request from each system; The on-chain module is used to store the initial data of each system on the chain when the identity authentication of each system is passed, so as to realize data sharing; wherein, the initial data of the system is data that has been verified by multiple business entities in the business process.
9. A processor, characterized in that: The system is configured to execute the multi-system data sharing method according to any one of claims 1 to 7.
10. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to execute the multi-system data sharing method according to any one of claims 1 to 7.
