Shadow library data link tracing method based on trusted chain

By storing data in shadow libraries and blockchains and using unique key values ​​for traceability, the data storage complexity problem in traditional blockchains is solved, and efficient data query and management is achieved.

CN117472902BActive Publication Date: 2024-11-15广州新赫信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311318822.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2024-11-15
Estimated Expiration
2043-10-11

AI Technical Summary

Technical Problem

In traditional blockchain technology, data is stored in an unstructured manner, resulting in complex and inefficient data full-link traceability and query.

Method used

Using the shadow library data link traceability method based on trusted chains, the data content proof request with parent key value parameters is received by defining the data table structure field information of the shadow library, a unique key value is generated, and the data is stored in the shadow library. and in the blockchain, and full-link traceability is performed through unique key values.

Benefits of technology

It realizes efficient full-link traceability and query operations, improves query efficiency, and performs flexible data operations through SQL statements, simplifying data processing and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117472902B_ABST
    Figure CN117472902B_ABST
Patent Text Reader

Abstract

This invention discloses a method for tracing data links in a shadow library based on a trusted blockchain. The method includes: defining data table structure field information for the shadow library, the data table structure field information including a unique key value, a parent key value, a channel name, a smart contract name, and a hash value for the evidence storage data; receiving a data content evidence storage request with a parent key value parameter, obtaining structured data composed of the parent key value parameter and the evidence storage data; generating a unique key value, storing the unique key value and structured data in the shadow library data table, and storing the parent key value parameter, the unique key value, and the evidence storage data on the blockchain; if the evidence storage data is initially stored on the blockchain, it is assumed to be a vertex, and the parent key value parameter is set to 0; if the evidence storage data belongs to a child node of already stored content, the parent key value is the same as the unique key value of the previous evidence storage data; querying the unique key value in the shadow library to obtain the evidence storage data of the corresponding node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a shadow library data link tracing method based on a trusted chain. Background Art

[0002] In traditional blockchain technology, data is usually stored in the blockchain in an unstructured manner, using hash pointers to connect data together. This data storage method makes full-link tracing and query of specific data complicated and inefficient. Summary of the invention

[0003] In order to solve the above technical problems, the first aspect of the present invention discloses a shadow library data link tracing method based on a trusted chain, the method comprising:

[0004] Define the data table structure field information of the shadow library, which includes the unique key value, parent key value, channel name, smart contract name, and hash value of the evidence data;

[0005] Receive a data content notarization request with a parent key value parameter, and obtain structured data and notarization data composed of the parent key value parameter;

[0006] Generate a unique key value, store the unique key value and structured data in the shadow library data table, and upload the parent key value parameter, unique key value, and evidence data to the blockchain; if the evidence data is uploaded to the chain for the first time, it is the vertex by default, and the parent key value parameter is set to 0. If the evidence data belongs to the child node of the content that has been uploaded to the chain, the parent key value is the same as the unique key value of the last time the evidence data was stored;

[0007] Query the unique key value in the shadow library to obtain the evidence data of the corresponding node.

[0008] In one embodiment, when a data content notarization request with a parent key parameter is received and a unique key value is generated, the unique key value is generated based on a combination of a shadow library data table name hash value, a timestamp, and a UUID random number.

[0009] In one embodiment, when querying the stored evidence data corresponding to the unique key value, it also includes:

[0010] The unique key value is queried through a data retrieval request, and the unique key value and the evidence data are verified through a data verification request. If the evidence data is abnormal, the evidence data is restored through a data recovery request.

[0011] In one embodiment, when storing the unique key value and structured data in the shadow library data table, it also includes:

[0012] Monitor changes in the block height of the blockchain network, map the unique key value of the returned evidence data with the hash value of the shadow library data table name, and route the unique key value and parent key value parameters to the corresponding shadow library data table.

[0013] In one embodiment, the data retrieval request includes: completing a structured link data pre-retrieval based on a unique key value of the data retrieval request initiated by the client;

[0014] Build a blockchain network connection instance based on the channel name and smart contract name returned by the pre-search query, and query the stored data based on the unique key value request of the blockchain channel’s smart contract;

[0015] Combine the shadow library data table link data with the blockchain evidence data.

[0016] In one embodiment, the data verification request includes:

[0017] The result data of the data table pre-operation is hashed using the hash algorithm SHA-256 to calculate the hash value of the unique key value, channel name, smart contract name, and evidence data;

[0018] The calculated hash value is compared with the structured hash value of the corresponding data in the channel ledger to verify whether the local structured data is consistent with the blockchain ledger data. When the retrieval result of the data verification exception is found, the corresponding exception msg information is returned to indicate that the data has been tampered with, and the data status of the local data table is changed to tampered.

[0019] The second aspect of the present invention discloses a shadow library data link tracing device based on a trusted chain, the device comprising:

[0020] A definition module is used to define the data table structure field information of the shadow library, which includes a unique key value, a parent key value, a channel name, a smart contract name, and a hash value of the stored data;

[0021] A receiving module, which is used to receive a data content evidence storage request with a parent key value parameter, and obtain structured data and evidence storage data composed of the parent key value parameter;

[0022] The storage module is used to generate a unique key value, store the unique key value and structured data in the shadow library data table, and upload the parent key value parameter, unique key value and evidence data to the blockchain. If the evidence data is uploaded to the blockchain for the first time, it is set as a vertex by default, and the parent key value parameter is set to 0. If the evidence data belongs to a child node of the content that has been uploaded to the chain, the parent key value is the same as the unique key value of the last time the evidence data was stored.

[0023] The query module is used to query the unique key value in the shadow library to obtain the evidence data of the corresponding node.

[0024] The third aspect of the present invention discloses a shadow library data link tracing terminal based on a trusted chain, the terminal comprising:

[0025] A memory storing executable program code;

[0026] a processor coupled to the memory;

[0027] The processor calls the executable program code stored in the memory to execute part or all of the steps in the shadow library data link tracing method based on the trusted chain disclosed in the first aspect of the present invention.

[0028] The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute part or all of the steps in the shadow library data link tracing method based on the trusted chain disclosed in the first aspect of the present invention.

[0029] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0030] In the embodiment of the present invention, when storing evidence, the evidence data and structured data are stored in the shadow library at the same time, and the evidence data is given a unique gene key value, and the unique gene key value is updated in the form of a link in the subsequent evidence storage, so that the whole link can be traced by querying the unique key value, and the specific evidence data content of each node of the current whole link structure data can be queried, so as to realize the whole link traceability and query operation, and greatly improve the query efficiency. In addition, by converting the blockchain data into structured data and storing and managing it in the shadow library, users can use SQL statements to perform flexible data operations, which simplifies the processing and analysis of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1 It is a flow chart of a shadow library data link tracing method based on a trusted chain disclosed in an embodiment of the present invention;

[0033] Figure 2 It is a structural schematic diagram of a shadow library data link tracing device based on a trusted chain disclosed in an embodiment of the present invention;

[0034] Figure 3It is a structural schematic diagram of a shadow library data link tracing terminal based on a trusted chain disclosed in an embodiment of the present invention;

[0035] Figure 4 It is a structural schematic diagram of a computer storage medium disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. 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.

[0037] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.

[0038] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0039] The present invention discloses a shadow library data link tracing method based on a trusted chain, by storing the evidence data and structured data in the shadow library at the same time when storing evidence, by assigning the evidence data a unique gene key value, and updating the unique gene key value in the subsequent evidence in the form of a link, so that the whole link can be traced by querying the unique key value key, and the specific evidence data content of each node of the current full link structure data is queried, so as to realize the whole link tracing and query operation, and greatly improve the query efficiency. In addition, by converting the blockchain data into structured data, storing and managing it in the shadow library, the user can use SQL statements to perform flexible data operations, simplifying the processing and analysis of the data. The following are described in detail respectively.

[0040] Embodiment 1

[0041] See also Figure 1 , Figure 1 1 is a flow chart of a shadow library data link tracing method based on a trusted chain disclosed in an embodiment of the present invention. Figure 1 As shown, the shadow library data link tracing method based on the trusted chain may include the following operations:

[0042] 101 defines the data table structure field information of the shadow library, wherein the data table structure field information includes a unique key value, a parent key value, a channel name, a smart contract name, and a hash value of the stored data;

[0043] 102 receiving a data content evidence storage request with a parent key value parameter parentKey, and obtaining structured data and evidence storage data formed by the parent key value parameter parentKey;

[0044] 103 generates a unique key value key, stores the unique key value key and structured data in the shadow library data table, and stores the parent key value parameter parentKey, the unique key value key and the evidence data on the chain in the blockchain; it can be understood that the unique key value key of the state database ledger CouchDb database is generated, and the generated unique key value key and the parent key value parentKey passed in each call to the data content evidence request are used as the structured data storage shadow library, and the current structured data key and parentKey are stored together with the specific on-chain evidence data data in the blockchain.

[0045] If the evidence data is uploaded to the chain for the first time, it is set as the vertex by default, and the parent key parameter parentKey is set to 0. If the evidence data belongs to the child node of the content that has been uploaded to the chain, the parent key parameter parentKey is the same as the unique key value key of the last time the evidence data was uploaded. Specifically, the shadow library forms a complete link structured content data for the same evidence data uploaded to the chain. As shown in the following table:

[0046] Key ParentKey

[0047] 1 KEY1 0

[0048] 2 KEY2 KEY1

[0049] 104 queries the unique key value key in the shadow library to obtain the evidence data of the corresponding node. The unique key value key of the table structure field is the unique key value key of the data stored in the world state database CouchDb database. By calling the smart contract method, the specific evidence data content of each node of the current full-link structure data can be queried according to the unique key value key.

[0050] In one embodiment, when querying the stored evidence data corresponding to the unique key value key, it also includes:

[0051] The unique key is queried through a data retrieval request, and the unique key and the evidence data are verified through a data verification request. If the evidence data is abnormal, the evidence data is restored through a data recovery request. The data retrieval request includes: completing the structured link data pre-retrieval based on the unique key of the data retrieval request initiated by the client; building a blockchain network connection instance based on the channel name and smart contract name returned by the pre-retrieval query, and querying the evidence data based on the smart contract of the blockchain channel based on the unique key;

[0052] Combine the shadow library data table link data with the blockchain evidence data.

[0053] The data verification request includes:

[0054] The result data of the data table pre-operation is hashed using the hash algorithm SHA-256 to calculate the hash value of the unique key, channel name, smart contract name, and evidence data;

[0055] The calculated hash value is compared with the structured hash value of the corresponding data in the channel ledger to verify whether the local structured data is consistent with the blockchain ledger data. When the retrieval result of the data verification exception is found, the corresponding exception msg information is returned to indicate that the data has been tampered with, and the data status of the local data table is changed to tampered.

[0056] The data recovery request includes

[0057] By configuring the monitoring mechanism, the changes of the blockchain are monitored starting from the blockchain height of 1, and the data of the shadow library data table is restored starting from the data of the blockchain height of 1, and the data recovery interface is called to restore the data: a / recoveryData interface is provided for manually calling the data recovery operation. When the corresponding abnormal information is returned when retrieving the data, indicating that the data has been tampered with, the single data can be restored by calling this interface. When calling the data recovery interface, the interface will retrieve the blockchain ledger data again and update the latest data to the shadow library data table to realize the recovery of the tampered data.

[0058] The embodiments of the present invention have at least the following beneficial effects:

[0059] (1) By assigning a unique gene key value to the evidence data and updating the unique key value key in the subsequent evidence storage in the form of a link, the entire link can be traced by querying the unique key value key, and the specific evidence data content of each node in the current full-link structure data can be queried, thus realizing full-link traceability and query operations, greatly improving query efficiency.

[0060] (2) Distribute data storage in multiple shadow database tables or blockchain network channel ledgers to reduce the load pressure of a single data table or ledger. By distributing data storage, the concurrent processing and query performance of the system can be improved.

[0061] (3) Trusted chain synchronization synchronizes the structured data describing the relationship between evidence data in different channel ledgers of the blockchain network with the structured data stored in the shadow library, ensuring that the structured data in the blockchain network channel ledger data is consistent with the structured data in the shadow library data table.

[0062] It can be seen that implementation Figure 1 The described shadow library data link tracing method based on trusted chain stores both the evidence data and structured data in the shadow library at the same time when storing evidence, assigns the evidence data a unique gene key value, and updates the unique gene key value in the form of a link in the subsequent evidence storage, so that the whole link can be traced by querying the unique key value key, and the specific evidence data content of each node of the current whole link structure data can be queried, so as to realize the whole link tracing and query operation, and greatly improve the query efficiency. In addition, by converting blockchain data into structured data and storing and managing it in the shadow library, users can use SQL statements to perform flexible data operations, which simplifies the processing and analysis of data.

[0063] Embodiment 2

[0064] See also Figure 2 , Figure 2 Schematic diagram of a shadow library data link tracing device based on a trusted chain disclosed in an embodiment of the present invention. Figure 2 As shown, the shadow library data link tracing device based on the trusted chain may include:

[0065] Definition module 201, which is used to define the data table structure field information of the shadow library, wherein the data table structure field information includes a unique key value, a parent key value, a channel name, a smart contract name, and a hash value of the stored data;

[0066] A receiving module 202 is used to receive a data content evidence storage request with a parent key value parameter, and obtain structured data and evidence storage data composed of the parent key value parameter;

[0067] Storage module 203, which is used to generate a unique key value, store the unique key value and structured data in the shadow library data table, and upload the parent key value parameter, the unique key value and the evidence data to the blockchain; if the evidence data is uploaded to the blockchain for the first time, it is set as a vertex by default, and the parent key value parameter is set to 0. If the evidence data belongs to a child node of the content that has been uploaded to the chain, the parent key value is the same as the unique key value when the evidence data was last stored;

[0068] The query module 204 is used to query the unique key value in the shadow library to obtain the evidence data of the corresponding node. The specific description of the shadow library data link tracing device based on the trusted chain can refer to the specific description of the shadow library data link tracing method based on the trusted chain, which will not be repeated here.

[0069] Embodiment 3

[0070] See also Figure 3 , Figure 3 1 is a schematic diagram of a shadow library data link tracing terminal based on a trusted chain disclosed in an embodiment of the present invention. Figure 3 As shown, the shadow library data link tracing terminal based on the trusted chain may include:

[0071] A memory 301 storing executable program codes;

[0072] a processor 302 coupled to the memory 301;

[0073] The processor 302 calls the executable program code stored in the memory 301 to execute the steps in the shadow library data link tracing method based on the trusted chain disclosed in the first embodiment of the present invention.

[0074] Embodiment 4

[0075] See also Figure 4 , Figure 4 Schematic diagram of the structure of a computer storage medium disclosed in an embodiment of the present invention. Figure 4 As shown, an embodiment of the present invention discloses a computer storage medium 401, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the shadow library data link tracing method based on the trusted chain disclosed in Example 1 of the present invention.

[0076] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the method for rapid repair by mixing SDK versions as described above. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0077] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.

[0078] Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a shadow library data link tracing method based on a trusted chain as in the above-mentioned embodiments is implemented.

[0079] The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a shadow library data link tracing method based on a trusted chain is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0080] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0081] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0082] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, a magnetic disk storage, a magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0083] Finally, it should be noted that the shadow library data link tracing method based on a trusted chain disclosed in the embodiment of the present invention only discloses a preferred embodiment of the present invention, which is only used to illustrate the technical solution 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 the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A shadow library data link tracing method based on a trusted chain, characterized in that: The method comprises: Define the data table structure field information of the shadow library, which includes the unique key value, parent key value, channel name, smart contract name, and hash value of the evidence data; Receive a data content evidence request with a parent key value parameter, and obtain structured data and evidence data composed of the parent key value parameter; after receiving the data content evidence request with a parent key value parameter, when generating a unique key value, generate the unique key value according to the shadow library data table name hash value, timestamp and UUID random number combination; Generate a unique key value, store the unique key value and structured data in the shadow library data table, and upload the parent key value parameters, unique key value and evidence data to the blockchain; specifically, generate a unique key value key of the CouchDb database, and store the generated unique key value key and the parent key value parentKey passed by each call to the data content evidence request as structured data in the shadow library; if the evidence data is uploaded to the chain for the first time, it is a vertex by default, and the parent key value parameter is set to 0. If the evidence data belongs to a child node of the content that has been uploaded to the chain, the parent key value is the same as the unique key value of the last time the evidence data was stored; when storing the unique key value and structured data in the shadow library data table, it also includes monitoring the block height changes of the blockchain network. Specifically, according to the mapping between the unique key value of the returned evidence data and the hash value of the shadow library data table name, the unique key value and parent key value parameters are routed to the corresponding shadow library data table; Query the unique key value in the shadow library to obtain the evidence data of the corresponding node. When querying the evidence data corresponding to the unique key value, it also includes querying the unique key value through a data retrieval request, verifying the unique key value and the evidence data through a data verification request, and if the evidence data is abnormal, restoring the evidence data through a data recovery request; The data retrieval request includes completing the pre-retrieval of structured link data based on the unique key value of the data retrieval request initiated by the client; constructing a blockchain network connection instance based on the channel name and smart contract name returned by the pre-retrieval query, and performing a stored data query on the smart contract of the blockchain channel based on the unique key value; combining the link data of the shadow library data table with the blockchain stored data; The data verification request includes using the hash algorithm SHA-256 to perform hash calculation on the unique key value, channel name, smart contract name, and hash value of the evidence data for the result data of the data table pre-operation; comparing the calculated hash value with the structured hash value of the corresponding data in the channel account book to verify whether the local structured data is consistent with the blockchain account book data. When a search result with abnormal data verification is found, the corresponding abnormal information is returned, indicating that the data has been tampered with, and the data status of the local data table is changed to tampered; The data recovery request includes configuring a monitoring mechanism to monitor changes in the blockchain starting from a blockchain height of 1, recovering the data in the shadow library data table starting from the data at a blockchain height of 1, and calling a data recovery interface to recover the data: a data recovery interface is provided for manually calling a data recovery operation. When the corresponding abnormal information is returned when retrieving the data, indicating that the data has been tampered with, the single data is recovered by calling the interface. When the data recovery interface is called, the interface will retrieve the blockchain ledger data again and update the latest data to the shadow library data table to achieve recovery of the tampered data.

2. A shadow library data link tracing device based on a trusted chain, characterized in that: The device comprises: A definition module is used to define the data table structure field information of the shadow library, which includes a unique key value, a parent key value, a channel name, a smart contract name, and a hash value of the stored data; A receiving module, which is used to receive a data content evidence request with a parent key value parameter, obtain structured data and evidence data composed of the parent key value parameter; after receiving the data content evidence request with the parent key value parameter, when generating a unique key value, the unique key value is generated according to the hash value of the shadow library data table name, the timestamp and the UUID random number combination; A storage module is used to generate a unique key value, store the unique key value and structured data in a shadow library data table, and upload the parent key value parameter, the unique key value, and the evidence data to the blockchain; specifically, generate a unique key value key of the CouchDb database, and store the generated unique key value key and the parent key value parentKey passed by each call to the data content evidence request as structured data in the shadow library; if the evidence data is uploaded to the chain for the first time, it is a vertex by default, and the parent key value parameter is set to 0. If the evidence data belongs to a child node of the content that has been uploaded to the chain, the parent key value is the same as the unique key value of the last time the evidence data was stored; when storing the unique key value and structured data in the shadow library data table, it also includes monitoring the change of the block height of the blockchain network. Specifically, according to the mapping between the unique key value of the returned evidence data and the hash value of the shadow library data table name, the unique key value and the parent key value parameters are routed to the corresponding shadow library data table; A query module, which is used to query the unique key value in the shadow library to obtain the evidence data of the corresponding node. When querying the evidence data corresponding to the unique key value, it also includes querying the unique key value through a data retrieval request, verifying the unique key value and the evidence data through a data verification request, and if the evidence data is abnormal, restoring the evidence data through a data recovery request; The data retrieval request includes completing the pre-retrieval of structured link data based on the unique key value of the data retrieval request initiated by the client; constructing a blockchain network connection instance based on the channel name and smart contract name returned by the pre-retrieval query, and performing a stored data query on the smart contract of the blockchain channel based on the unique key value; combining the link data of the shadow library data table with the blockchain stored data; The data verification request includes using the hash algorithm SHA-256 to perform hash calculation on the unique key value, channel name, smart contract name, and hash value of the evidence data for the result data of the data table pre-operation; comparing the calculated hash value with the structured hash value of the corresponding data in the channel account book to verify whether the local structured data is consistent with the blockchain account book data. When a search result with abnormal data verification is found, the corresponding abnormal information is returned, indicating that the data has been tampered with, and the data status of the local data table is changed to tampered; The data recovery request includes configuring a monitoring mechanism to monitor changes in the blockchain starting from a blockchain height of 1, recovering the data in the shadow library data table starting from the data at a blockchain height of 1, and calling a data recovery interface to recover the data: a data recovery interface is provided for manually calling a data recovery operation. When the corresponding abnormal information is returned when retrieving the data, indicating that the data has been tampered with, the single data is recovered by calling the interface. When the data recovery interface is called, the interface will retrieve the blockchain ledger data again and update the latest data to the shadow library data table to achieve recovery of the tampered data.

3. A shadow library data link tracing terminal based on a trusted chain, characterized in that: The terminal comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the shadow library data link tracing method based on a trusted chain as described in claim 1.

4. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, the shadow library data link tracing method based on the trusted chain as described in claim 1 is implemented.