Data tracing method and system based on block chain and data watermark
By using blockchain and data watermark technology to generate circulated data source block information during the data transmission process, the problem of insufficient monitoring of the data transmission link is solved, the full monitoring and traceability of the data is realized, and the security of data transmission is improved. and accountability.
Patent Information
- Application Number
- CN202410731822.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-08-30
AI Technical Summary
Existing technology cannot ensure that every link of data transmission can be monitored, resulting in insufficient security and traceability of data transmission.
Using a method based on blockchain and data watermarking, circulating data source block information is generated between the data source owner and the receiver to ensure that the data can be monitored during the transmission process, and the data is processed through the watermark algorithm and key. Traceability, tracking data flow and responsible persons.
It realizes the full monitoring and traceability of data during the transmission process, improves the security and traceability of data transmission, and ensures accurate accountability for data leakage.
Smart Images

Figure CN118568692A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data tracing method, system, electronic device and storage medium based on blockchain and data watermark. Background Art
[0002] Data watermarking refers to the process of embedding watermarks into data through certain methods when sensitive data is exchanged from an original environment to a target environment, so that the data has identifiable factors such as the distributor, distribution object, distribution time, and distribution purpose, while retaining the data characteristics or content required by the target environment's business.
[0003] Data watermarking is performed by adding pseudo rows and pseudo columns to the original data, desensitizing the original sensitive data and embedding marks to ensure the normal use of the distributed data. The watermarked data has high availability, high transparency, high concealment, and is not easy to be discovered and cracked by the outside world.
[0004] Once information is leaked, the watermark identifier is extracted from the leaked data as soon as possible. By reading the watermark identifier code, the entire flow of the leaked data can be traced, and the leaking unit and responsible person can be accurately located, so as to achieve accurate accountability for data leaks and improve the security and traceability of data transmission.
[0005] Many of the current data watermarks are based on databases or files. For database-based watermarking technology, when the data is out of the current database or monitoring environment, the data will not be able to be tracked and recorded. For file-based watermarking technology, due to the limited format and capacity of files, it is impossible to carry large amounts of data.
[0006] Therefore, there is an urgent need for a data traceability method based on blockchain and data watermarking that can ensure that data can be monitored at every stage of transmission. Summary of the invention
[0007] The purpose of the embodiments of the present invention is to provide a data tracing method, system, electronic device and storage medium based on blockchain and data watermark, so as to solve the problem in the prior art that it is impossible to ensure that data can be monitored at every stage of transmission.
[0008] To achieve the above purpose, an embodiment of the present invention provides a data tracing method based on blockchain and data watermark, and the method specifically includes:
[0009] In response to a data watermark adding request initiated by the data source owner, data processing is performed on the current data source to obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and circulated data source block information is generated based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID;
[0010] After the data source receiver obtains the data source block information, it performs data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generates circulated data source block information based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID;
[0011] Obtain a data source ID or multiple data source IDs called by the data model, perform data processing on the data source or multiple data sources, generate a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generate tradable data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs;
[0012] The data IDx to be traced is obtained, and the data IDx to be traced is traced based on the data source block information to obtain the account information that generates the data IDx to be traced and the watermark data source information applied to the data IDx to be traced.
[0013] On the basis of the above technical solution, the present invention can also be improved as follows:
[0014] Furthermore, in response to the data watermark adding request initiated by the data source owner, data processing is performed on the current data source to obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, including:
[0015] The current data source is encrypted to obtain an encrypted backup data source ID, the data source owner ID and watermark generation algorithm corresponding to the current data source are determined, and the current data source is watermarked based on the watermark generation algorithm to obtain watermark data source ID1 and a watermark key corresponding to the current data source.
[0016] Furthermore, after the data source receiver obtains the data source block information, it performs data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, including:
[0017] The decryption key and watermark generation algorithm corresponding to the encrypted backup data source ID are obtained through the data source block information, the encrypted backup data source ID is decrypted by the decryption key, and the watermark generation algorithm corresponding to the encrypted backup data source ID is determined, and the encrypted backup data source ID is watermarked based on the re-determined watermark generation algorithm to obtain the watermark data source IDm and the watermark key corresponding to the encrypted backup data source ID.
[0018] Furthermore, the acquisition of a data source ID or multiple data source IDs called by the data model, performing data processing on the data source or multiple data sources, and generating a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs include:
[0019] Obtain a decryption key corresponding to a data source ID or multiple data source IDs, decrypt the data source ID or multiple data source IDs based on the decryption key, determine a watermark generation algorithm corresponding to the data source ID or multiple data source IDs, and watermark the data source ID or multiple data source IDs based on the re-determined watermark generation algorithm to obtain watermark data IDn and a watermark key corresponding to the data source ID or multiple data source IDs.
[0020] Furthermore, the data tracing method based on blockchain and data watermark also includes:
[0021] The metadata information corresponding to the current data source is obtained, and the field type to which the key field of the data source to be watermarked belongs is determined based on the metadata information.
[0022] Furthermore, the data tracing method based on blockchain and data watermark also includes:
[0023] The watermark algorithm is matched based on the field type, and a key corresponding to the current watermark is generated.
[0024] Furthermore, the data tracing method based on blockchain and data watermark also includes:
[0025] The watermark algorithm is synchronized to the data source access watermark block and the data query record block.
[0026] A data traceability system based on blockchain and data watermark, including:
[0027] The circulated data source block is used to respond to the data watermark adding request initiated by the data source owner, process the current data source, obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and generate the circulated data source block information based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID;
[0028] After the data source receiver obtains the data source block information, it performs data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generates circulated data source block information based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID;
[0029] Obtain a data source ID or multiple data source IDs called by the data model, perform data processing on the data source or multiple data sources, generate a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generate tradable data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs;
[0030] The data traceability supervision service node is used to obtain the data IDx to be traced, trace the data IDx to be traced based on the data source block information, and obtain the account information that generates the data IDx to be traced and the watermark data source information applied to the data IDx to be traced.
[0031] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the method are implemented when the processor executes the computer program.
[0032] A non-transitory computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.
[0033] The embodiments of the present invention have the following advantages:
[0034] The data tracing method based on blockchain and data watermark in the present invention responds to the data watermark adding request initiated by the data source owner, performs data processing on the current data source, obtains the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and generates circulated data source block information based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID; after the data source receiver obtains the data source block information, it performs data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generates circulated data source block information based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID; obtains the data model called A data source ID or multiple data source IDs are used to process the data source or multiple data sources, and a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs are generated. Based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, circulated data source block information is generated; data IDx to be traced is obtained, and the data IDx to be traced is traced based on the data source block information to obtain the account information that generates the data IDx to be traced and the watermark data source information applied to the data IDx to be traced; the problem in the prior art that it is impossible to ensure that data can be monitored at each link in the transmission is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0036] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0037] Figure 1 This is a flow chart of the data tracing method based on blockchain and data watermark of the present invention;
[0038] Figure 2 This is an architecture diagram of the data traceability system based on blockchain and data watermarking of the present invention;
[0039] Figure 3 This is a schematic diagram of the physical structure of the electronic device provided by the present invention.
[0040] The accompanying drawings are denoted as follows:
[0041] Circulating data source block 10, data traceability supervision service node 20, electronic device 30, processor 301, memory 302, bus 303. DETAILED DESCRIPTION
[0042] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are 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.
[0043] Example
[0044] Figure 1 This is a flow chart of an embodiment of a data tracing method based on blockchain and data watermarking of the present invention. Figure 1 As shown, a data tracing method based on blockchain and data watermark provided by an embodiment of the present invention includes the following steps:
[0045] S101, in response to a data watermark adding request initiated by the data source owner, data processing is performed on the current data source to obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and circulated data source block information is generated based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID;
[0046] Specifically, the current data source is encrypted to obtain an encrypted backup data source ID, the data source owner ID and watermark generation algorithm corresponding to the current data source are determined, and the current data source is watermarked based on the watermark generation algorithm to obtain watermark data source ID1 and a watermark key corresponding to the current data source.
[0047] All nodes of the data source owner can connect the data source to the data traceability device and apply to add watermarks to the key fields of the data source. The current data traceability device node extracts the metadata information corresponding to the current data source, generates the backup data source of the current data source and the corresponding data source unique ID, and encrypts the current data source to obtain the encrypted backup data source ID, and generates a decryption key accordingly. The key field information for applying for watermarking is recorded with a label, and the relevant watermark generation algorithm is matched according to the field data type and situation. At the same time, a watermark key is generated, and the current data source is watermarked to obtain watermark data ID1. At the same time, the current user node account information, metadata information, watermark field name, algorithm ID called for watermarking, key corresponding to watermarking, backup data source ID and data source owner ID, decryption key corresponding to backup data source encryption, etc. are used to generate a data source access watermark block, and the information is transmitted to the data traceability supervision service node. At the same time, the data traceability device node generates a circulated data source block, and the data source block information circulated by the data source owner node includes the ID1 of the watermark data source, the encrypted backup data source ID and the corresponding data source owner ID.
[0048] S102, after the data source receiver obtains the data source block information, it processes the data to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generates circulated data source block information based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID;
[0049] Specifically, the decryption key and watermark generation algorithm corresponding to the encrypted backup data source ID are obtained through the data source block information, the encrypted backup data source ID is decrypted by the decryption key, and the watermark generation algorithm corresponding to the encrypted backup data source ID is determined, and the encrypted backup data source ID is watermarked based on the re-determined watermark generation algorithm to obtain the watermark data source IDm and the watermark key corresponding to the encrypted backup data source ID.
[0050] The key is constructed by embedding certain characteristic information of the protected data and the watermark information through an embedding algorithm. It is unique and specific, and is the "key" to extract and analyze the watermark information. The watermark information can be extracted under the reverse process or reverse algorithm caused by the watermark, and used for copyright identification. Therefore, in the process of embedding digital watermarks, the key is the product of the embedding algorithm, and plays an extraction and identification role. The present invention generates a corresponding watermark key while processing the watermark. Each watermarking will generate a unique key for this watermarking, thereby strengthening the security of the watermarking algorithm.
[0051] During the data transmission process, the data source receiver obtains data through sharing by other users, and the data source traceability device node obtains the data source block. Before the data source is loaded, the current data source traceability device node obtains the encrypted backup data source ID and the corresponding data source owner ID in the data source block, and sends a request to the data traceability supervision service node, obtains the decryption key, metadata information, watermark field name and other information corresponding to the current encrypted backup data source ID through the data source access watermark block, decrypts the encrypted backup data source ID, and matches the relevant watermark generation algorithm according to the watermark field data type and situation, and generates a watermark key at the same time, generates the watermarked watermark data source IDm, and pushes it to the user-visible front end. The data source traceability device node generates a data query record block, including user node account information, IDm, ID, watermark field name, algorithm ID called by watermarking, key corresponding to watermarking and other data query record information. At the same time, the data source traceability device node generates a circulated data source block. The data source block information circulated by the current user node includes IDm, encrypted backup data source ID and corresponding data source receiver ID.
[0052] When watermarking key fields, the system randomly assigns a matching watermark algorithm based on the field data while ensuring that it does not affect data application. The algorithms include but are not limited to watermarking algorithms for long data, watermarking algorithms for short data, watermarking algorithms for strings, and so on. For each data type or situation, there are many different watermarking algorithms. The system randomly matches the corresponding algorithm and generates a key corresponding to the current watermark to prevent the watermark from being cracked. At the same time, the watermark algorithm is not limited to large watermarking of a certain field column. It can also use one watermark algorithm for odd columns and another watermark algorithm for even columns. The algorithms used will be recorded and synchronized to the data source access watermark block and data query record block, thereby reducing the risk of watermark being cracked.
[0053] Watermark algorithm matching method: The system first obtains the metadata corresponding to the current data. Based on the metadata information, the data type of the field to be watermarked can be determined. For example, for a field of long data type, the watermark algorithm can be used to obtain the first digit to the left of the decimal point of the field information, generate a number after processing, and load the number to the last digit of the current information, etc. The information processed by the watermark algorithm can easily help people find the rules. For another example, if the current field is a string type, the watermark algorithm can be used to calculate the string length of each information. Based on the length data and a certain rule, a number m is obtained. In the mth position of this information string, a "." or "," is added to generate special information that is difficult for people to find the rules or discover. Of course, the algorithm is not limited to the above algorithm.
[0054] S103, obtaining a data source ID or multiple data source IDs called by the data model, performing data processing on the data source or multiple data sources, generating a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generating circulated data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs;
[0055] Specifically, a decryption key corresponding to a data source ID or multiple data source IDs is obtained, and the data source ID or multiple data source IDs are decrypted based on the decryption key, and a watermark generation algorithm corresponding to the data source ID or multiple data source IDs is determined, and the data source ID or multiple data source IDs are watermarked based on the re-determined watermark generation algorithm to obtain watermark data IDn and a watermark key corresponding to the data source ID or multiple data source IDs.
[0056] By sending a request from the data traceability supervision service node, the metadata of the data source, the field information of the watermark, etc. are obtained, so as to know which fields need to be watermarked, what the data types of these fields are, which watermark generation algorithms can be selected, and the watermark generation algorithm can be matched; after the data source block is left to a certain node, the underlying logic of the system is to first decrypt the watermark of the data source, and then randomly match the new watermark algorithm and generate the key for this watermarking, which is used for version identification, thereby strengthening security.
[0057] The data tracing device can also access the data model developed by the user so as to fully mine and apply the data and give full play to the value of the data. Based on the data model, multiple data sources can be aggregated, counted, and analyzed for association, etc. The data tracing device traverses the data model source code to identify the applied data source, data model processing logic, and the correlation between the model output result and the data source and the called data. The data tracing device obtains one or more data source IDs called by the data model, and requests the decryption key corresponding to one or more data source IDs from the server node, decrypts these data sources, and performs watermarking on the corresponding fields based on the watermark field information initially set by these data sources. After data processing based on the data model, the generated watermark data IDn is pushed to the front end and visible to the user. The data tracing device stores the user node account information, the multiple encrypted backup data source IDs and multiple IDs applied, the corresponding field names, the corresponding watermark algorithms and the corresponding watermark keys, the conditions for model call data, processing rules, IDn, etc. in the data model query block, and transmits the information to the data tracing supervision service node. At the same time, the data traceability device node generates a circulated data source block. The data source block information circulated by the current user node includes IDn, multiple encrypted backup data source IDs and multiple ID information.
[0058] S104, obtaining the data IDx to be traced, tracing the data IDx to be traced based on the data source block information, and obtaining the account information that generates the data IDx to be traced and the watermark data source information applied to the data IDx to be traced;
[0059] Specifically, the data tracing module: for the data IDx to be traced and queried, the data source access watermark block, data query record block, and data model query block are matched to the generation node account information corresponding to the data IDx, and then the account information generated by the data IDx is obtained, and the multiple encrypted backup data source IDs and multiple IDs corresponding to IDx are traced back to the data source used by the current data IDx, and then the data ownership authentication is completed. At the same time, the data source version of the data source ID can be queried to obtain the current account: such as watermark data source ID1, watermark data source IDm, and watermark data source IDn. According to watermark data source ID1, watermark data source IDm, and watermark data source IDn, the account information flowing out of the data source can be traced back, and then the relevant responsible persons for data circulation leakage can be further traced.
[0060] When the data IDX has been printed or carried by other media, during the traceability and authentication, the data is imported into the data traceability module, and the data traceability module applies for traceability authentication to the server node. The server node data traceability module traverses the watermark data source ID1, watermark data source IDm and watermark data source IDn and their encrypted backup data source ID in the data source access watermark block, data query record block and data model query block, decrypts the data using the decryption key corresponding to the backup data source encryption, performs watermark processing using the corresponding watermark algorithm and watermark key, and then processes the data using the corresponding model calling data conditions and processing rules. The final result is compared with the current data IDX to find the watermark data source ID1, watermark data source IDm and watermark data source IDn that can be successfully compared, and then find the corresponding version of the account information. By finding the corresponding data source ID, the account information imported by the data source corresponding to one or more data source IDs is obtained, and then the data authentication is completed.
[0061] The data traceability supervision service node and the data traceability device nodes of each user form an alliance chain, and the service node and the user-end device node perform point-to-point information transmission. The watermark algorithm launched on the supervision service node will be synchronized to the data traceability device of each user node in real time, ensuring that the watermark algorithm on the server and user sides is consistent.
[0062] The data tracing method based on blockchain and data watermark responds to a data watermark adding request initiated by the data source owner, processes the current data source, obtains the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and generates tradable data source block information based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID; after the data source receiver obtains the data source block information, it processes the data to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generates tradable data based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID. Source block information; obtain a data source ID or multiple data source IDs called by the data model, perform data processing on one data source or multiple data sources, generate a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generate a tradable data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs; obtain the data IDx to be traced, trace the data IDx to be traced based on the data source block information, and obtain the account information that generates the data IDx to be traced and the watermark data source information applied to the data IDx to be traced. The data tracing method based on blockchain and data watermark solves the problem in the prior art that it is impossible to ensure that data can be monitored at every stage of transmission.
[0063] Figure 2 This is an architecture diagram of an embodiment of a data traceability system based on blockchain and data watermarking of the present invention; Figure 2 As shown, a data tracing system based on blockchain and data watermark provided by an embodiment of the present invention includes the following steps:
[0064] The circulated data source block is used to respond to the data watermark adding request initiated by the data source owner, process the current data source, obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and generate the circulated data source block information based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID;
[0065] The current data source is encrypted to obtain an encrypted backup data source ID, the data source owner ID and watermark generation algorithm corresponding to the current data source are determined, and the current data source is watermarked based on the watermark generation algorithm to obtain watermark data source ID1 and a watermark key corresponding to the current data source.
[0066] After the data source receiver obtains the data source block information, it performs data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generates circulated data source block information based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID;
[0067] The decryption key corresponding to the encrypted backup data source ID is obtained through the data source block information, the encrypted backup data source ID is decrypted by the decryption key, and the watermark generation algorithm corresponding to the encrypted backup data source ID is determined, and the encrypted backup data source ID is watermarked based on the re-determined watermark generation algorithm to obtain the watermark data source IDm and the watermark key corresponding to the encrypted backup data source ID.
[0068] Used to obtain a data source ID or multiple data source IDs called by the data model, perform data processing on the data source or multiple data sources, generate a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generate tradable data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs;
[0069] Obtain a decryption key corresponding to a data source ID or multiple data source IDs, decrypt the data source ID or multiple data source IDs based on the decryption key, determine a watermark generation algorithm corresponding to the data source ID or multiple data source IDs, and watermark the data source ID or multiple data source IDs based on the re-determined watermark generation algorithm to obtain watermark data IDn and a watermark key corresponding to the data source ID or multiple data source IDs.
[0070] The data traceability supervision service node is used to obtain the data IDx to be traced, trace the data IDx to be traced based on the data source block information, and obtain the account information that generates the data IDx to be traced and the watermark data source information applied to the data IDx to be traced.
[0071] The circulated data source block is circulated between nodes. After flowing to a certain node, it needs to be decrypted based on the data traceability supervision service node, and then watermarked and pushed to the front end of the user node for visibility. In this way, during the circulation of data, each node has a version identification, thereby solving the problem in the existing technology that it is impossible to ensure that data can be monitored at every link in the transmission.
[0072] Figure 3 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 3 As shown, the electronic device 30 includes: a processor 301 (processor), a memory 302 (memory) and a bus 303;
[0073] The processor 301 and the memory 302 communicate with each other via the bus 303;
[0074] The processor 301 is used to call the program instructions in the memory 302 to execute the methods provided by the above-mentioned method embodiments, for example, including: in response to a data watermark adding request initiated by the data source owner, performing data processing on the current data source to obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and generating circulated data source block information based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID; after the data source receiver obtains the data source block information, performing data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generating circulated data source block information based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID. The source receiver ID generates circulated data source block information; obtains a data source ID or multiple data source IDs called by the data model, performs data processing on the data source or multiple data sources, generates a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generates circulated data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs; obtains the data to be traced IDx, traces the data to be traced IDx based on the data source block information, and obtains the account information that generates the data to be traced IDx and the watermark data source information applied to the data to be traced IDx.
[0075] The present embodiment provides a non-transitory computer-readable storage medium, which stores computer instructions. The computer instructions enable a computer to execute the methods provided by the above-mentioned method embodiments, for example, including: in response to a data watermark adding request initiated by a data source owner, performing data processing on the current data source to obtain a watermark data source ID1, an encrypted backup data source ID and a data source owner ID, and generating circulated data source block information based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID; after the data source receiver obtains the data source block information, performing data processing to obtain a watermark data source IDm, an encrypted backup data source ID and a data source receiver ID, and generating a circulated data source block information based on the watermark data source IDm , encrypt the backup data source ID and the data source receiver ID to generate tradable data source block information; obtain a data source ID or multiple data source IDs called by the data model, perform data processing on one data source or multiple data sources, generate a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generate tradable data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs; obtain the data to be traced IDx, trace the data to be traced IDx based on the data source block information, and obtain the account information that generates the data to be traced IDx and the watermark data source information applied to the data to be traced IDx.
[0076] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various storage media that can store program codes.
[0077] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. 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 effort.
[0078] Through the description of the above implementation methods, 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 this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0079] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A data tracing method based on blockchain and data watermark, It is characterized in that The method specifically comprises: In response to a data watermark adding request initiated by the data source owner, data processing is performed on the current data source to obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and circulated data source block information is generated based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID; After the data source receiver obtains the data source block information, it performs data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generates circulated data source block information based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID; Obtain a data source ID or multiple data source IDs called by the data model, perform data processing on the data source or multiple data sources, generate a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generate tradable data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs; The data IDx to be traced is obtained, and the data IDx to be traced is traced based on the data source block information to obtain the account information that generates the data IDx to be traced and the watermark data source information applied to the data IDx to be traced.
2. According to the data tracing method based on blockchain and data watermarking according to claim 1, It is characterized in that In response to the data watermark adding request initiated by the data source owner, the current data source is processed to obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, including: The current data source is encrypted to obtain an encrypted backup data source ID, the data source owner ID and watermark generation algorithm corresponding to the current data source are determined, and the current data source is watermarked based on the watermark generation algorithm to obtain watermark data source ID1 and a watermark key corresponding to the current data source.
3. According to the data tracing method based on blockchain and data watermarking according to claim 1, It is characterized in that After obtaining the data source block information, the data source receiver performs data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, including: The decryption key corresponding to the encrypted backup data source ID is obtained through the data source block information, the encrypted backup data source ID is decrypted by the decryption key, and the watermark generation algorithm corresponding to the encrypted backup data source ID is determined, and the encrypted backup data source ID is watermarked based on the re-determined watermark generation algorithm to obtain the watermark data source IDm and the watermark key corresponding to the encrypted backup data source ID.
4. According to the data tracing method based on blockchain and data watermarking according to claim 1, It is characterized in that The acquisition of a data source ID or multiple data source IDs called by the data model, performing data processing on the data source or multiple data sources, and generating a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs include: Obtain a decryption key corresponding to a data source ID or multiple data source IDs, decrypt the data source ID or multiple data source IDs based on the decryption key, determine a watermark generation algorithm corresponding to the data source ID or multiple data source IDs, and watermark the data source ID or multiple data source IDs based on the re-determined watermark generation algorithm to obtain watermark data IDn and a watermark key corresponding to the data source ID or multiple data source IDs.
5. According to the data tracing method based on blockchain and data watermarking according to claim 1, It is characterized in that The data tracing method based on blockchain and data watermark also includes: The metadata information corresponding to the current data source is obtained, and the field type to which the key field of the data source to be watermarked belongs is determined based on the metadata information.
6. According to the data tracing method based on blockchain and data watermark according to claim 5, It is characterized in that The data tracing method based on blockchain and data watermark also includes: The watermark algorithm is matched based on the field type, and a key corresponding to the current watermark is generated.
7. According to the data tracing method based on blockchain and data watermark according to claim 6, It is characterized in that The data tracing method based on blockchain and data watermark also includes: The watermark algorithm is synchronized to the data source access watermark block and the data query record block.
8. A data traceability system based on blockchain and data watermark, It is characterized in that include: The circulated data source block is used to respond to the data watermark adding request initiated by the data source owner, process the current data source, obtain the watermark data source ID1, the encrypted backup data source ID and the data source owner ID, and generate the circulated data source block information based on the watermark data source ID1, the encrypted backup data source ID and the data source owner ID; After the data source receiver obtains the data source block information, it performs data processing to obtain the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID, and generates circulated data source block information based on the watermark data source IDm, the encrypted backup data source ID and the data source receiver ID; Obtain a data source ID or multiple data source IDs called by the data model, perform data processing on the data source or multiple data sources, generate a watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs, and generate tradable data source block information based on the watermark data source IDn, one or more encrypted backup data source IDs and one or more account IDs; The data traceability supervision service node is used to obtain the data IDx to be traced, trace the data IDx to be traced based on the data source block information, and obtain the account information that generates the data IDx to be traced and the watermark data source information applied to the data IDx to be traced.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
