Method, device, electronic device and storage medium for cross-domain tracing of off-chain oracle

By designing a cross-domain traceability method for off-chain oracle, using a unified OracleEntity data registration structure and on-chain collaborative storage solution, the inefficiency of cross-network and cross-domain data transmission in the blockchain system is solved, the customization needs of multiple systems are realized, and the security and privacy of data are guaranteed.

CN118152472BActive Publication Date: 2025-03-14INFORMATION CENT OF THE LOGISTICS SUPPORT DEPT OF THE CENT MILITARY COMMISSION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410141176.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-01
Publication Date
2025-03-14
Estimated Expiration
2044-02-01

AI Technical Summary

Technical Problem

The existing oracle solutions cannot meet the needs of blockchain systems with cross-network, cross-domain and complex equipment systems, especially when facing diversified and complex data formats, while a single traditional oracle system cannot meet the customized needs of all parties, and the governance solutions for off-chain data require new strategies.

Method used

A method of cross-domain traceability of off-chain oracle machines is designed. Through a unified OracleEntity data registration structure and on-chain off-chain collaborative storage solution, offline business data flow between multiple business systems is realized, and data security and privacy are guaranteed through an efficient and secure message subscription push mechanism.

Benefits of technology

It provides cross-domain traceability method for off-chain oracle use for multiple systems without destroying the existing blockchain system, solves the problem of diverse data formats of oracle source data, adapts to the business needs of multiple parties, and avoids the abuse of external data through data governance strategies, ensuring the privacy and security of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118152472B_ABST
    Figure CN118152472B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, electronic device and storage medium for cross-domain tracing of an off-chain oracle. The cross-domain tracing method of an off-chain oracle includes the following steps: data registration, in which an external data provider registers the data source it provides to an off-chain oracle, and the external data provider is a third-party service and system; data request, in which if the business system uses a different chain, the smart contract sends a data request to the off-chain oracle, and synchronizes the contract data through cross-chain technology; data acquisition, in which after the off-chain oracle receives the data request, it obtains the corresponding data from the registered data source; data transmission, in which the off-chain oracle transmits the acquired external data back to the smart contract; data processing, in which after the smart contract receives the external data, it processes and verifies the data in the contract. According to the cross-domain tracing method of an off-chain oracle of the present invention, it is possible to realize off-chain traceability audit applications, use the oracle contract as a data source, conduct traceability queries, and adapt to the business needs of multiple parties.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a method, device, electronic device and storage medium for cross-domain tracing of an off-chain oracle. Background Art

[0002] The development of oracles is closely related to the rise of blockchain and smart contract technology.

[0003] As blockchain applications’ demand for off-chain trusted data continues to increase, oracles that provide secure and trusted data for blockchains have also received a certain amount of attention. Researchers and companies at home and abroad have gradually begun to explore solutions for putting oracle trusted data on-chain.

[0004] At present, the research on the trusted chaining of oracle data at home and abroad has shown a trend of gradually decentralized source collection, increasingly full hierarchical architecture, gradually enhanced chaining performance, and increasingly rich technical guarantees. The integration of multiple oracle deployment methods with software and hardware trusted technical guarantee mechanisms and economic incentive models, while starting from the actual business needs of blockchain, greatly guarantees the credibility of data chaining.

[0005] In blockchain systems, smart contracts usually run in a closed environment and cannot directly obtain real-time information from the real world. Oracles are services that can provide trusted external data to blockchains or smart contracts. This service enables smart contracts to respond to external changes more flexibly, thereby expanding the application scenarios of blockchain systems.

[0006] However, with the upgrade of blockchain system applications, the existing oracle solutions cannot meet the needs of cross-network and cross-domain blockchain systems with complex equipment systems, and are inefficient in the face of diverse and complex data formats. On the other hand, due to the increase in the number of roles involved in the blockchain system, a single traditional oracle system cannot meet the customized needs of all parties, and the governance of off-chain data also requires new strategies. Moreover, new solutions are needed to ensure the privacy of data during the transmission of data across networks and domains.

[0007] Therefore, there is an urgent need for an off-chain oracle solution that can be used by various systems without destroying the existing blockchain system. Through the design of a universal data model, the problem of diverse data formats from oracle sources is solved, and the data model supports customization internally, adapting to the business needs of multiple parties, and avoiding the abuse of external data through data governance strategies. At the same time, an efficient and secure message subscription push mechanism is designed to ensure the security of oracle data reading. Summary of the invention

[0008] The technical problem to be solved by the present invention is how to provide a cross-domain traceability method for off-chain oracles used by multiple systems without destroying the existing blockchain system, solving the problem of diverse oracle source data formats and adapting to the business needs of multiple parties.

[0009] In order to solve the above technical problems, according to one aspect of the present invention, a method for cross-domain traceability of an off-chain oracle is provided, which is used to realize the offline business data flow between multiple business systems. During the traceability audit, the data of multiple business systems can be connected in series through voucher numbers or keywords for verification. The method for cross-domain traceability of an off-chain oracle includes the following steps: S1, data registration, an external data provider registers the data source it provides to an off-chain oracle, and the external data provider is a third-party service and system; first, the oracle data collector is deployed to the server where the business system is located, and the output path of the system business log is configured in the collector, and the filtering conditions are configured to eliminate invalid and sensitive logs; the collector will monitor changes in files or directories, and convert the newly added data into a unified data structure for chaining, and collect the data to the oracle contract for permanent storage. Long-term storage; S2, data request, when the smart contract needs to access specific external data, if the various business systems use the same chain, the contract data will be automatically synchronized through the blockchain consensus mechanism; if the business systems use different chains, the smart contract sends a data request to the off-chain oracle to synchronize the contract data through cross-chain technology; S3, data acquisition, after receiving the data request, the off-chain oracle obtains the corresponding data from the registered data source; S4, data transmission, the off-chain oracle passes the obtained external data back to the smart contract; S5, data processing, after receiving the external data, the smart contract processes and verifies the data in the contract to determine the next action to execute the contract; it is implemented through the oracle data collector and the oracle contract, so that the off-chain traceability audit application can use the oracle contract as a data source for traceability query.

[0010] According to an embodiment of the present invention, data registration may adopt a unified OracleEntity data registration structure, wherein the OracleEntity data registration structure can improve the efficiency of off-chain oracles and unify data types from multiple types of devices and multiple input sources.

[0011] According to an embodiment of the present invention, the OracleEntity data registration structure may include data type (Kind), Format (content format), data (Data), and data meta information (Meta) fields.

[0012] According to an embodiment of the present invention, Kind (data type) can be used to identify the data type, wherein the optional values ​​include TEXT and FILE, wherein TEXT is used to refer to all text types that can be directly stored in the transaction, and FILE indicates that the target obtained by the oracle this time is a file type; wherein Format (content format) is a specific parsing method for the data, and Format can parse out the real data in combination with Data or file hash FileHash; wherein, the non-file data in Data (data content), the content can be directly stored in Data; wherein, for data in file format, the file will be stored off-chain, and the generated file hash will be stored in the FileHash field; wherein Meta (data metadata information) is used to provide more detailed supporting description information for the data.

[0013] According to an embodiment of the present invention, an off-chain oracle can adopt an on-chain and off-chain collaborative storage solution for FILE type data in data registration.

[0014] According to an embodiment of the present invention, when on-chain and off-chain collaborative storage is performed, for a certain file data f, the file can first be segmented into n slices si∈S, where n is an optional configuration item; then a Merkle tree is formed with the n slices as leaf nodes, and the root node of the Merkle tree is denoted as r; the Merkle path pi∈P of each leaf node is used to prove the integrity and correctness of the i-th file slice si; the Merkle tree root r is stored on-chain, and each slice and its proof are stored off-chain; the off-chain oracle adopts a secure transmission protocol during data registration and data push, so that sensitive information in the transmission process is imperceptible to third parties.

[0015] According to an embodiment of the present invention, large file data of data registration can adopt an on-chain and off-chain storage solution, which can ensure that the blockchain consensus performance is not affected by the oracle data storage, ensure the traceability of the data and guarantee the blockchain consensus performance.

[0016] According to the second aspect of the present invention, there is provided an off-chain oracle cross-domain traceability device for realizing offline business data flow between multiple business systems. During the traceability audit, the data of multiple business systems can be connected in series through voucher numbers or keywords for verification. The off-chain oracle cross-domain traceability device includes: a data registration module, which is used to register the data source provided by an external data provider to the off-chain oracle, and the external data provider is a third-party service and system; first, the oracle data collector is deployed to the server where the business system is located, and the output path of the system business log is configured in the collector, and the filtering conditions are configured to eliminate invalid and sensitive logs; the collector will monitor changes in files or directories, and convert the newly added data into a unified data structure for chain upload, and collect the data to the oracle contract for permanent storage, wherein the data registration module adopts a unified OracleEntity data registration structure, and the OracleEntity data registration structure can improve the efficiency of off-chain oracle. rate, unify the data types of multiple types of devices and multiple input sources, among which, for the FILE type data in the data registration, a collaborative storage solution on and off the chain is adopted; the data request module is used when the smart contract needs to access specific external data. If the various business systems use the same chain, the contract data will be automatically synchronized through the blockchain consensus mechanism; if the business systems use different chains, the smart contract sends a data request to the off-chain oracle, and synchronizes the contract data through cross-chain technology; the data acquisition module, after the off-chain oracle receives the data request, it is used to obtain the corresponding data from the registered data source; the data transmission module is used for the off-chain oracle to pass the acquired external data back to the smart contract; the data processing module, after the smart contract receives the external data, it is used to process and verify the data in the contract to determine the next action to execute the contract; it is implemented through the oracle data collector and the oracle contract, so that the off-chain traceability audit application can use the oracle contract as the data source for traceability query.

[0017] According to a third aspect of the present invention, there is provided an electronic device, comprising: a memory, a processor, and an off-chain oracle cross-domain traceability program stored in the memory and executable on the processor, wherein the off-chain oracle cross-domain traceability program implements the steps of the above-mentioned off-chain oracle cross-domain traceability method when executed by the processor.

[0018] According to a fourth aspect of the present invention, a computer storage medium is provided, wherein an off-chain oracle cross-domain tracing program is stored on the computer storage medium, and when the off-chain oracle cross-domain tracing program is executed by a processor, the steps of the above-mentioned off-chain oracle cross-domain tracing method are implemented.

[0019] Compared with the prior art, the technical solution provided by the embodiments of the present invention can at least achieve the following beneficial effects:

[0020] The present invention performs cross-domain traceability through an off-chain oracle. The off-chain oracle data acquisition process of the present invention is unique and distributed, and the data acquisition is highly real-time, so that the off-chain oracle can adapt to the needs of blockchain systems that are cross-network and cross-domain, have complex equipment systems, and have large business scales.

[0021] The present invention solves the problem of numerous data formats in complex scenarios through a unified and efficient universal data model and parsing mechanism design, thereby reducing the cost of data circulation and improving the efficiency of the oracle; at the same time, the data model can support customization internally, solving the problem of data entry at all levels.

[0022] The present invention controls the conditions for data entry through the design of a data evaluation mechanism.

[0023] The present invention has a high degree of universality through the setting of a distributed oracle outside the chain, and can be used by various systems without affecting the existing blockchain system; and the consensus mechanism of the blockchain system is used to ensure the integrity and traceability of the oracle data.

[0024] The present invention establishes an efficient and secure data channel and subscription mechanism, ensuring that smart contracts can obtain external data in real time while ensuring data privacy. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present invention, but are not intended to limit the present invention.

[0026] Figure 1 It is a flow chart showing the method of cross-domain tracing of off-chain oracle according to an embodiment of the present invention.

[0027] Figure 2 2. It is a flowchart showing the workflow of an off-chain oracle according to an embodiment of the present invention.

[0028] Figure 3 It is a schematic diagram showing the OracleEntity structure according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment 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.

[0030] Unless otherwise defined, the technical or scientific terms used herein shall have the common meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "a" do not indicate a quantity limitation, but indicate the existence of at least one.

[0031] Figure 1 is a flow chart showing a method for cross-domain tracing of an off-chain oracle according to an embodiment of the present invention. Figure 2 2. It is a flowchart showing the workflow of an off-chain oracle according to an embodiment of the present invention.

[0032] Assume that business systems A, B, and C represent business systems for planning, procurement, warehouse, and transportation. The offline business data flow between them is represented by dotted lines, such as Figure 1 When tracing back the audit, it is necessary to connect the business data of A, B, and C in series through voucher numbers, keywords, etc. for verification.

[0033] The method or device for cross-domain traceability of off-chain oracles is used to realize the offline business data flow between multiple business systems. During the traceability audit, the data of multiple business systems can be linked together for verification through voucher numbers or keywords.

[0034] like Figure 1 and Figure 2 As shown in the figure, the cross-domain tracing method of off-chain oracle includes the following steps:

[0035] S1. Data registration. External data providers register the data sources they provide to the off-chain oracle. External data providers are third-party services and systems. First, deploy the oracle data collector to the server where the business system is located, configure the output path of the system business log in the collector, and configure the filtering conditions to eliminate invalid and sensitive logs. The collector will monitor changes in files or directories, and convert the newly added data into a unified data structure for chain upload, and collect the data to the oracle contract for permanent storage.

[0036] S2. Data request. When a smart contract needs to access specific external data, if the various business systems use the same chain, the contract data will be automatically synchronized through the blockchain consensus mechanism; if the business systems use different chains, the smart contract will send a data request to the off-chain oracle and synchronize the contract data through cross-chain technology.

[0037] S3. Data acquisition. After receiving the data request, the off-chain oracle obtains the corresponding data from the registered data source.

[0038] S4. Data transmission: the off-chain oracle passes the acquired external data back to the smart contract.

[0039] S5. Data processing: After receiving external data, the smart contract processes and verifies the data in the contract to determine the next action to execute the contract. This is achieved through the oracle data collector and oracle contract. Therefore, the off-chain traceability audit application can use the oracle contract as a data source for traceability queries.

[0040] The present invention performs cross-domain traceability through an off-chain oracle. The off-chain oracle data acquisition process of the present invention is unique and distributed, and the data acquisition is highly real-time, so that the off-chain oracle can adapt to the needs of blockchain systems that are cross-network and cross-domain, have complex equipment systems, and have large business scales.

[0041] According to one or some embodiments of the present invention, data registration adopts a unified OracleEntity data registration structure, wherein the OracleEntity data registration structure can improve the efficiency of off-chain oracles and unify data types from multiple types of devices and multiple input sources.

[0042] The present invention solves the problem of numerous data formats in complex scenarios through a unified and efficient universal data model and parsing mechanism design, thereby reducing the cost of data circulation and improving the efficiency of the oracle; at the same time, the data model can support customization internally, solving the problem of data entry at all levels.

[0043] Figure 3 It is a schematic diagram showing the OracleEntity structure according to an embodiment of the present invention.

[0044] like Figure 3 As shown, the OracleEntity data registration structure includes data type (Kind), Format (content format), data (Data), and data meta information (Meta) fields.

[0045] According to one or some embodiments of the present invention, Kind (data type) is used to identify the data type, wherein the optional values ​​include TEXT, FILE, wherein TEXT is used to refer to all text types that can be directly stored in the transaction, and FILE indicates that the target obtained by the oracle this time is a file type. Format (content format) is the specific parsing method of the data, and Format can parse out the real data in combination with Data or file hash FileHash. Non-file data in Data (data content), the content can be directly stored in Data; wherein, for data in file format, the file will be stored off-chain, and the generated file hash will be stored in the FileHash field. Meta (data metadata) is used to provide more detailed supporting description information for the data.

[0046] According to one or some embodiments of the present invention, the off-chain oracle adopts an on-chain and off-chain collaborative storage solution for FILE type data in data registration.

[0047] According to one or some embodiments of the present invention, when on-chain and off-chain collaborative storage is performed, for a certain file data f, the file is first segmented into n slices si∈S, where n is an optional configuration item; then a Merkle tree is formed with the n slices as leaf nodes, and the root node of the Merkle tree is denoted as r; the Merkle path pi∈P of each leaf node is used to prove the integrity and correctness of the i-th file slice si; the Merkle tree root r is stored on-chain, and each slice and its proof are stored off-chain; during data registration and data push, the off-chain oracle adopts a secure transmission protocol to make sensitive information in the transmission process imperceptible to third parties.

[0048] The present invention controls the conditions for data entry through the design of a data evaluation mechanism.

[0049] According to one or some embodiments of the present invention, the large file data of data registration adopts an on-chain and off-chain storage solution, which can ensure that the blockchain consensus performance is not affected by the oracle data storage, ensure the traceability of the data and guarantee the blockchain consensus performance.

[0050] The present invention has a high degree of universality through the setting of a distributed oracle outside the chain, and can be used by various systems without affecting the existing blockchain system; and the consensus mechanism of the blockchain system is used to ensure the integrity and traceability of the oracle data.

[0051] According to a second aspect of the present invention, there is provided a device for cross-domain tracing of an off-chain oracle, which includes: a data registration module, a data request module, a data acquisition module, a data transmission module and a data processing module.

[0052] The data registration module is used to register the data source provided by the external data provider to the off-chain oracle. The external data provider is a third-party service and system. First, the oracle data collector is deployed to the server where the business system is located, and the output path of the system business log is configured in the collector, and the filtering conditions are configured to eliminate invalid and sensitive logs. The collector will monitor changes in files or directories, and convert the newly added data into a unified data structure for chain upload, and collect the data to the oracle contract for permanent storage.

[0053] Among them, the data registration module adopts a unified OracleEntity data registration structure. The OracleEntity data registration structure can improve the efficiency of off-chain oracles and unify the data types of multiple types of devices and multiple input sources.

[0054] Among them, a collaborative storage solution on-chain and off-chain is adopted for FILE type data in data registration.

[0055] The data request module is used when smart contracts need to access specific external data. If the various business systems use the same chain, the contract data will be automatically synchronized through the blockchain consensus mechanism; if the business systems use different chains, the smart contract will send data requests to the off-chain oracle and synchronize the contract data through cross-chain technology.

[0056] After the off-chain oracle receives the data request, the data acquisition module is used to obtain the corresponding data from the registered data source.

[0057] The data transfer module is used by the off-chain oracle to pass the acquired external data back to the smart contract.

[0058] After the data processing module smart contract receives external data, it is used to process and verify the data in the contract to determine the next action to execute the contract; this is achieved through the oracle data collector and oracle contract, so that the off-chain traceability audit application can use the oracle contract as a data source for traceability queries.

[0059] The present invention establishes an efficient and secure data channel and subscription mechanism, ensuring that smart contracts can obtain external data in real time while ensuring data privacy.

[0060] According to another aspect of the present invention, there is provided a device for cross-domain tracing of off-chain oracle, comprising: a memory, a processor, and an off-chain oracle cross-domain tracing program stored in the memory and executable on the processor, wherein the off-chain oracle cross-domain tracing program implements the steps of the above-mentioned off-chain oracle cross-domain tracing method when executed by the processor.

[0061] According to the present invention, a computer storage medium is also provided.

[0062] An off-chain oracle cross-domain tracing program is stored on the computer storage medium. When the off-chain oracle cross-domain tracing program is executed by the processor, the steps of the above-mentioned off-chain oracle cross-domain tracing method are implemented.

[0063] Among them, the method implemented when the off-chain oracle cross-domain tracing program running on the processor is executed can refer to the various embodiments of the off-chain oracle cross-domain tracing method of the present invention, and will not be repeated here.

[0064] The present invention also provides a computer program product.

[0065] The computer program product of the present invention includes an off-chain oracle cross-domain tracing program, which, when executed by a processor, implements the steps of the off-chain oracle cross-domain tracing method as described above.

[0066] Among them, the method implemented when the off-chain oracle cross-domain tracing program running on the processor is executed can refer to the various embodiments of the off-chain oracle cross-domain tracing method of the present invention, and will not be repeated here.

[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0068] The above description is merely an exemplary embodiment of the present invention and is not intended to limit the protection scope of the present invention. The protection scope of the present invention is determined by the appended claims.

Claims

1. A cross-domain tracing method for off-chain oracles is used to realize the offline business data flow between multiple business systems. During the traceability audit, the data of multiple business systems can be connected in series through voucher numbers or keywords for verification. The cross-domain tracing method for off-chain oracles includes the following steps: S1. Data registration. External data providers register the data sources they provide to the off-chain oracle. The external data providers are third-party services and systems. First, the oracle data collector is deployed to the server where the business system is located. The output path of the system business log is configured in the collector, and the filtering conditions are configured to remove invalid and sensitive logs. The collector monitors changes in files or directories, converts newly added data into a unified data structure for chain upload, and collects the data to the oracle contract for permanent storage. S2. Data request: When a smart contract needs to access external data, if the business systems use the same chain, the contract data will be automatically synchronized through the blockchain consensus mechanism; if the business systems use different chains, the smart contract will send a data request to the off-chain oracle and synchronize the contract data through cross-chain technology. S3, data acquisition. After receiving the data request, the off-chain oracle obtains the corresponding data from the registered data source. S4, data transmission, the off-chain oracle transmits the acquired external data back to the smart contract; S5. Data processing: After receiving external data, the smart contract processes and verifies the data in the contract to determine the next step of executing the contract. This is achieved through the oracle data collector and the oracle contract. Thus, the off-chain traceability audit application can use the oracle contract as a data source for traceability query. in, The data registration adopts a unified OracleEntity data registration structure, wherein the OracleEntity data registration structure can improve the efficiency of off-chain oracle machines and unify the data types of multiple types of devices and multiple input sources; Among them, the off-chain oracle adopts an on-chain and off-chain collaborative storage solution for FILE type data in data registration; Among them, when the on-chain and off-chain collaborative storage is performed, for a certain file data f, the file is first sharded into n slices si∈S, where n is an optional configuration item; then a Merkle tree is formed with the n slices as leaf nodes, and the root node of the Merkle tree is denoted as r; the Merkle path pi∈P of each leaf node is used to prove the integrity and correctness of the i-th file shard si; the Merkle tree root r is stored on-chain, and each shard and its proof are stored off-chain; the off-chain oracle adopts a secure transmission protocol during data registration and data push, so that sensitive information in the transmission process is imperceptible to third parties.

2. The cross-domain tracing method of an off-chain oracle as claimed in claim 1, wherein: The OracleEntity data registration structure includes data type Kind, content format Format, data Data, and data meta information Meta fields.

3. The cross-domain tracing method of an off-chain oracle as claimed in claim 2, wherein: Kind is used to identify the data type. The optional values ​​include TEXT and FILE. TEXT refers to all text types that can be directly stored in transactions, and FILE indicates that the target obtained through the oracle this time is a file type. Among them, the content format Format is the specific parsing method of the data. Format combined with Data or file hash FileHash can parse out the real data; Among them, the non-file data in the data Data can be directly stored in the Data; among them, the data in file format will be stored off-chain, and the generated file hash will be stored in the FileHash field; Among them, the data meta information Meta is used to provide more detailed supporting description information for the data.

4. The method for cross-domain tracing of off-chain oracle according to claim 1, wherein: The large file data of data registration adopts on-chain and off-chain storage solutions, which can ensure that the blockchain consensus performance is not affected by the oracle data storage, ensure the traceability of the data and guarantee the blockchain consensus performance.

5. An off-chain oracle cross-domain traceability device, used to realize the offline business data flow between multiple business systems. During the traceability audit, the data of multiple business systems can be connected in series by voucher number or keyword for verification. The off-chain oracle cross-domain traceability device includes: The data registration module is used to register the data source provided by the external data provider to the off-chain oracle. The external data provider is a third-party service and system. First, the oracle data collector is deployed to the server where the business system is located, and the output path of the system business log is configured in the collector, and the filtering conditions are configured to eliminate invalid and sensitive logs. The collector will monitor changes in files or directories, and convert the newly added data into a unified data structure for chain upload, and collect the data to the oracle contract for permanent storage. The data registration module adopts a unified OracleEntity data registration structure, which can improve the efficiency of off-chain oracle machines and unify the data types of multiple types of devices and multiple input sources. Among them, for FILE type data in data registration, a collaborative storage solution on-chain and off-chain is adopted; Among them, when the on-chain and off-chain collaborative storage is used, for a certain file data f, the file is first sharded into n slices si∈S, where n is an optional configuration item; then a Merkle tree is formed with n slices as leaf nodes, and the root node of the Merkle tree is recorded as r; the Merkle path pi∈P of each leaf node is used to prove the integrity and correctness of the i-th file slice si; the Merkle tree root r is stored on the chain, and each slice and its proof are stored off the chain; the off-chain oracle adopts a secure transmission protocol during data registration and data push, so that sensitive information in the transmission process is not detectable to third parties; The data request module is used when smart contracts need to access external data. If the business systems use the same chain, the contract data will be automatically synchronized through the blockchain consensus mechanism; if the business systems use different chains, the smart contract will send data requests to the off-chain oracle and synchronize the contract data through cross-chain technology; The data acquisition module is used to obtain the corresponding data from the registered data source after the off-chain oracle receives the data request; The data transmission module is used by the off-chain oracle to transmit the acquired external data back to the smart contract; The data processing module is used to process and verify the data in the contract after the smart contract receives external data to determine the next action to execute the contract; it is implemented through the oracle data collector and the oracle contract, so that the off-chain traceability audit application can use the oracle contract as a data source for traceability queries.

6. An electronic device comprising: A memory, a processor, and an off-chain oracle cross-domain traceability program stored in the memory and executable on the processor. When the off-chain oracle cross-domain traceability program is executed by the processor, the steps of the off-chain oracle cross-domain traceability method as described in any one of claims 1 to 4 are implemented.

7. A computer storage medium, wherein: The computer storage medium stores an off-chain oracle cross-domain tracing program, which, when executed by the processor, implements the steps of the off-chain oracle cross-domain tracing method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Out-of-chain data chaining method, device and system for blockchain network

    CN113055497A

  • Bill supply chain anti-counterfeiting traceability system and method based on block chain NFT

    CN114399320A