CN117254975A - Block chain-based data anti-counterfeiting method and system - Google Patents
Block chain-based data anti-counterfeiting method and system Download PDFInfo
- Publication number
- CN117254975A CN117254975A CN202311506459.4A CN202311506459A CN117254975A CN 117254975 A CN117254975 A CN 117254975A CN 202311506459 A CN202311506459 A CN 202311506459A CN 117254975 A CN117254975 A CN 117254975A
- Authority
- CN
- China
- Prior art keywords
- data
- block
- hash value
- data set
- block header
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004806 packaging method and process Methods 0.000 claims abstract description 19
- 230000008859 change Effects 0.000 claims description 11
- 238000012937 correction Methods 0.000 claims description 10
- 238000010276 construction Methods 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 9
- 238000012360 testing method Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000009545 invasion Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Storage Device Security (AREA)
Abstract
The invention is applicable to the technical field of data anti-counterfeiting, and particularly relates to a data anti-counterfeiting method and system based on a block chain, wherein the method comprises the following steps: packaging the data to at least obtain a first data set and a second data set; calculating a hash value corresponding to the first data set by using a hash function; creating a first block header based on the hash value and a first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group; based on the existing blockchain node, integrating the first blockhead and the second blockhead to construct a blockchain; and when the first block head and the second block head are changed. The invention constructs the block chain by utilizing the first block head and the second block head, ensures the continuity and traceability of data, and simultaneously, performs anti-counterfeiting through the hash value, thereby ensuring the reality and effectiveness of the data.
Description
Technical Field
The invention relates to the technical field of data anti-counterfeiting, in particular to a block chain-based data anti-counterfeiting method and system.
Background
The block chain is a distributed database, which is composed of a series of data blocks arranged according to time sequence, and adopts a cryptography mode to ensure that the data cannot be tampered and counterfeited.
Therefore, the block chain has the characteristic of non-falsification, which is also urgently needed in the technical field of data anti-counterfeiting, so that how to utilize the block chain technology to anti-counterfeiting data and ensure the true and effective data is the technical problem to be solved by the invention.
Disclosure of Invention
The invention aims to provide a data anti-counterfeiting method based on a block chain, which aims to solve the problem of data anti-counterfeiting by using a block chain technology in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a blockchain-based data anti-counterfeiting method, the method comprising:
packaging the data to at least obtain a first data set and a second data set;
calculating a hash value corresponding to the first data set by using a hash function;
creating a first block header based on the hash value and a first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group;
based on the existing blockchain node, integrating the first blockhead and the second blockhead to construct a blockchain;
and correcting by using the block chain when the first block head and the second block head change.
Further, the method further comprises:
public key signatures are added into the first block header and the second block header, and when data needs to be written into the block chain, whether a preset private key signature in the data is matched with the public key signature or not is verified;
if the data are matched, the data are directly written into the first block head and the second block head, and correction is carried out by using a block chain;
if the data are not matched, defining the data as illegal data, and filtering the illegal data.
Further, the step of encapsulating the data to obtain at least a first data set and a second data set, and calculating the hash value corresponding to the first data set by using the hash function includes:
receiving data to be processed, and packaging the data to be processed;
defining the packed data as a first data set and a second data set;
adding a time tag of the current moment into the first data set and the second data set;
a hash function is determined and a hash value of the first data set is calculated.
Further, the creating a first block header based on the hash value and the first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group, wherein the step of creating the second block header comprises:
constructing a block header architecture, and defining a data part and other information parts of the block header;
the hash value is classified into other information parts, a first data group is classified into a data part, and a first block head is created;
the hash value of the merged data is included in the other information part, the second data set is included in the data part, and a second block header is created.
Further, the block chain is constructed by integrating the first block header and the second block header based on the existing block chain node; when the first block header and the second block header change, the step of correcting by using the block chain comprises the following steps:
migrating the first block header and the second block header to a block chain node according to the time label sequence of the first block header and the second block header to construct a block chain;
monitoring data changes in the first block header and the second block header;
the blockchain is corrected based on the data changes.
Further, the method further comprises:
determining a cross-link protocol and testing the cross-link protocol;
integrating the cross-chain protocol after the test is completed into the blockchain.
Further, the system includes:
the computing module is used for packaging the data to at least obtain a first data set and a second data set; calculating a hash value corresponding to the first data set by using a hash function;
a creation module capable of creating a first block header based on the hash value and a first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group;
the correction module can integrate the first block head and the second block head based on the existing block chain nodes to construct a block chain; and correcting by using the block chain when the first block head and the second block head change.
Further, the computing module includes:
the data packaging unit is used for receiving data to be processed and packaging the data to be processed;
the tag adding unit can define the packaged data as a first data group and a second data group; adding a time tag of the current moment into the first data set and the second data set;
and the hash value calculation unit is used for determining a hash function and calculating the hash value of the first data group.
Further, the creating module includes:
the architecture construction unit can construct a block header architecture and define a data part and other information parts of the block header;
the block head creation unit can classify the hash value into other information parts, classify the first data group into a data part and create a first block head; the hash value of the merged data is included in the other information part, the second data set is included in the data part, and a second block header is created.
Further, the correction module includes:
the block chain construction unit can transfer the first block head and the second block head into a block chain node according to the time label sequence of the first block head and the second block head to construct a block chain;
the data monitoring unit can monitor the data change in the first block head and the second block head; the blockchain is corrected based on the data changes.
Compared with the prior art, the invention has the beneficial effects that:
1. by calculating the hash value, the hash value of the first data group is ensured to be contained in the second block head, so that the continuity of data is ensured, the whole data is prevented from being tampered, meanwhile, part of the data in the block chain is prevented from being tampered by constructing the block chain, and the authenticity of the data is further improved.
2. By adding the public key signature to the first block header and the second block header and adding the private key signature to the data, illegal data invasion is effectively avoided, the risk of data tampering is reduced, and the reality and effectiveness of the data are ensured.
Drawings
FIG. 1 is a block diagram of a block chain based data anti-counterfeiting method according to an embodiment of the present invention;
FIG. 2 is a first sub-flowchart of a blockchain-based data anti-counterfeiting method according to an embodiment of the present invention;
FIG. 3 is a second sub-flowchart of a blockchain-based data anti-counterfeiting method according to an embodiment of the present invention;
FIG. 4 is a third sub-flowchart of a blockchain-based data anti-counterfeiting method according to an embodiment of the present invention;
FIG. 5 is a block diagram of a blockchain-based data anti-counterfeiting system provided by an embodiment of the invention;
FIG. 6 is a block diagram illustrating a computing module in a blockchain-based data anti-counterfeiting system according to an embodiment of the present invention;
FIG. 7 is a block diagram illustrating a creation module in a blockchain-based data anti-counterfeiting system according to an embodiment of the present invention;
fig. 8 is a block diagram of a correction module in a blockchain-based data anti-counterfeiting system according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first blockchain-based data anti-counterfeiting method script may be referred to as a second blockchain-based data anti-counterfeiting method script, and similarly, a second blockchain-based data anti-counterfeiting method script may be referred to as a first blockchain-based data anti-counterfeiting method script, without departing from the scope of the present application.
In embodiment 1, fig. 1 shows a flow for implementing the blockchain-based data anti-counterfeiting method according to the embodiment of the present invention, and the blockchain-based data anti-counterfeiting method is described in detail below, as follows:
s100: packaging the data to at least obtain a first data set and a second data set; and calculating a hash value corresponding to the first data set by using a hash function.
When the data is obtained, the data is packaged, the packaged data is named as a first data set, when the data is received again, the data is packaged again, the packaged data is named as a second data set, and the like, a third data set, a fourth data set and the like can be possibly generated; selecting a proper hash function according to the data distribution, and calculating the hash value of the first data group by using the hash function;
s200: creating a first block header based on the hash value and a first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group.
Creating a first block header, wherein the first block header comprises a first data group and a hash value calculated by the first data group, combining the hash value calculated by the first data group with second data, and calculating the hash value again; and creating a second block head, wherein the second block head comprises hash values of the merged data and the second data group, calculating hash values of all the data groups according to the method, and creating a corresponding third block head, a corresponding fourth block head and the like.
S300: based on the existing blockchain node, integrating the first blockhead and the second blockhead to construct a blockchain; and correcting by using the block chain when the first block head and the second block head change.
Determining nodes which can be used for constructing the block chain, and transferring data in the block heads such as the first block head, the second block head and the like to the nodes to finish the construction of the block chain; of course, in the process of constructing the blockchain, a proper blockchain platform, a configuration network, an operation node, a joining network and the like are also required to be selected; when the data of a certain block head in the block chain is legally changed, correcting the data in other block heads by using the block chain;
as can be seen from the above, since the second block header contains the hash value of the first data set, and the third block header also contains the hash value of the second data set, and so on, each block header contains the hash value of the previous set of data, which ensures the continuity of the data, when the data in a certain block header is integrally tampered, the corresponding hash value also changes, which causes data collision, so that the data cannot be written in, and the block header is ensured not to be tampered, thereby ensuring the reality and reliability of the data in the block header; in addition, each block head contains the hash value of the previous data group, so that the data can be traced, the data can be further anti-fake, and the authenticity of the data is ensured;
in this embodiment and the following, the set of all the block headers such as the first block header and the second block header is collectively referred to as a block header, and the set of the first data set and the second data set is collectively referred to as a data set.
In embodiment 2, fig. 2 shows a flow of implementing the blockchain-based data anti-counterfeiting method according to the embodiment of the present invention, and the following steps of packaging data to obtain at least a first data set and a second data set, and calculating a hash value corresponding to the first data set by using a hash function are described in detail, where:
s101: and receiving data to be processed and packaging the data to be processed.
Receiving data to be processed, wherein the data to be processed can be medical care data, supply chain data, storage data and the like, and after receiving the data, packaging the data, namely packaging the data into a single whole, so that the data can be effectively prevented from being tampered or lost in the processing process;
s102: defining the packed data as a first data set and a second data set; and adding the time tag of the current moment into the first data set and the second data set.
Respectively packaging the received data, determining the packaged data as a first data group, continuing to package the data after receiving the data again, determining the data as a second data group, and the like to obtain the first data group, the second data group, the third data group and the like; when the data sets are determined, time labels are respectively added to each data set, the time labels are the current time, and the data sets can be arranged according to the time sequence by adding the current time.
S103: a hash function is determined and a hash value of the first data set is calculated.
And selecting a proper hash function, inputting the first data set into the hash function, and calculating to obtain a hash value corresponding to the first data set.
In embodiment 3, fig. 3 shows a flow for implementing the blockchain-based data anti-counterfeiting method according to the embodiment of the present invention, and the following creates a first block header based on the hash value and the first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data set, as follows:
s201: a block header structure is built defining the data portion and other information portions of the block header.
The architecture of the block header, that is, the component parts of the block header, is determined, wherein the block header is divided into a data part and other information parts, and the first block header and the second block header are taken as examples, the data part in the first block header is a first data set, the other information part is a hash value of the first data set, the data part in the second block header is a second data set, and the other information part is a hash value corresponding to the merged data.
S202: the hash value is classified into other information parts, a first data group is classified into a data part, and a first block head is created; the hash value of the merged data is included in the other information part, the second data set is included in the data part, and a second block header is created.
And classifying the obtained first data group, second data group and the like into data parts in the block head, classifying corresponding hash values into other information parts in the block head, and thus completing the creation of the block head to obtain the first block head, the second block head and the like.
In embodiment 4, fig. 4 shows a flow for implementing the blockchain-based data anti-counterfeiting method according to the embodiment of the present invention, and the blockchain is constructed by integrating the first block header and the second block header for the existing blockchain-based node; when the first and second block heads change, the step of correcting by using the block chain is described in detail as follows:
s301: and migrating the first block header and the second block header to a block chain node according to the time label sequence of the first block header and the second block header to construct a block chain.
According to time labels in the first block head and the second block head, migrating the first block head and the second block head into a block chain node according to the sequence of the time labels, and completing construction of a block chain;
the block heads are arranged in the block chain nodes according to the time sequence, so that the data can be prevented from being tampered, and the data is traced.
S302: monitoring data changes in the first block header and the second block header; the blockchain is corrected based on the data changes.
And monitoring all the block heads, when the data in the block heads occur, verifying whether the data is illegal data, if the data is legal data, writing the data into the corresponding block heads, correcting the data in other block heads by using a block chain, and if the data is illegal data, directly filtering the data.
In embodiment 6, unlike embodiment 1, in an embodiment of the present invention, the method further includes:
public key signatures are added into the first block header and the second block header, and when data needs to be written into the block chain, whether a preset private key signature in the data is matched with the public key signature or not is verified;
if the data are matched, the data are directly written into the first block head and the second block head, and correction is carried out by using a block chain;
if the data are not matched, defining the data as illegal data, and filtering the illegal data.
In this embodiment, the main function of the public key signature is to verify the integrity and identity of information, when a user wants to send a piece of information, the private key is used to sign the information, then the signed information is sent to the block header, the block header can verify the source and the integrity of the information by using the corresponding public key, if the verification is passed, the data is verified to be legal, the data is written into the corresponding block header, and other data in the block chain is corrected by using the data, so as to complete writing of the data; if the verification is not passed, the data is defined as illegal data, and the data is directly filtered.
In embodiment 7, unlike embodiment 1, in an embodiment of the present invention, the method further includes:
determining a cross-link protocol and testing the cross-link protocol;
integrating the cross-chain protocol after the test is completed into the blockchain.
In the embodiment, a proper cross-link protocol is selected according to the blockchain, and tested, and after the testing of the cross-link protocol is completed, the cross-link protocol is integrated into the blockchain, so that the normal use of the cross-link protocol is ensured;
through the use of a cross-chain protocol, safe and efficient information interaction and asset transfer between blockchains can be realized; in addition, the cross-chain protocol can also solve the problem of information island among different blockchains, so that the different blockchains can be connected and communicated with each other, and the expanding capability can be provided by combining a plurality of blockchains, so that the anti-counterfeiting capability of the blockchains is further improved.
Fig. 5 shows a block diagram of a block chain-based data anti-counterfeiting system according to an embodiment of the present invention, where the block chain-based data anti-counterfeiting system 1 includes:
the computing module 11 is configured to package data to obtain at least a first data set and a second data set; calculating a hash value corresponding to the first data set by using a hash function;
a creation module 12 capable of creating a first block header based on the hash value and the first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group;
a correction module 13, which can integrate the first block header and the second block header based on the existing blockchain node to construct a blockchain; and correcting by using the block chain when the first block head and the second block head change.
Fig. 6 shows a block diagram of a block chain-based data anti-counterfeiting system according to an embodiment of the present invention, where the computing module 11 includes:
a data packaging unit 111, configured to receive data to be processed and package the data to be processed;
the tag adding unit 112 may define the packetized data as a first data set and a second data set; adding a time tag of the current moment into the first data set and the second data set;
a hash value calculation unit 113 for determining a hash function and calculating a hash value of the first data group.
Fig. 7 shows a block diagram of a block chain-based data anti-counterfeiting system according to an embodiment of the present invention, where the creating module 12 includes:
a frame construction unit 121 capable of constructing a block header frame, defining a data portion and other information portions of the block header;
the block header creation unit 122 may attribute the hash value to other information parts, attribute the first data group to a data part, and create a first block header; the hash value of the merged data is included in the other information part, the second data set is included in the data part, and a second block header is created.
Fig. 8 shows a block diagram of the composition and structure of a blockchain-based data anti-counterfeiting system according to an embodiment of the present invention, where the correction module 13 includes:
the blockchain construction unit 131 may migrate the first and second blockheads into blockchain nodes to construct blockchains;
a data monitoring unit 132 capable of monitoring data changes in the first block header and the second block header; the blockchain is corrected based on the data changes.
Step S100 is completed by the calculation module 11, the calculation of the data hash value can be completed, step S200 is completed by the creation module 12, the creation of the block header is completed, step S300 is completed by the correction module 13, the block chain is constructed based on the block header after the creation is completed, and the data of other block headers are corrected by using the acquired legal data;
the data packaging unit 111 is configured to complete step S101, package data, avoid data loss during processing, ensure real stability of data, and the tag adding unit 112 is configured to complete step S102, add a time tag to a block header, so that the block header is arranged according to a time sequence, and the data is traced, and the hash value calculating unit 113 is configured to complete step S103, and is configured to calculate a hash value corresponding to the first data set;
the architecture building unit 121 is configured to complete step S201, complete building of the block header, and the block header creating unit 122 is configured to complete step S202, respectively create a first block header and a second block header;
the blockchain construction unit 131 is used for completing step S301 to construct a blockchain, and the data monitoring unit 132 is used for completing step S302 to calibrate the data in the blockchain.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.
Claims (10)
1. A blockchain-based data anti-counterfeiting method, the method comprising:
packaging the data to at least obtain a first data set and a second data set;
calculating a hash value corresponding to the first data set by using a hash function;
creating a first block header based on the hash value and a first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group;
based on the existing blockchain node, integrating the first blockhead and the second blockhead to construct a blockchain;
and correcting by using the block chain when the first block head and the second block head change.
2. The method according to claim 1, wherein the method further comprises:
public key signatures are added into the first block header and the second block header, and when data needs to be written into the block chain, whether a preset private key signature in the data is matched with the public key signature or not is verified;
if so, directly writing the data into the first block head and the second block head, and correcting by using a block chain;
if the data are not matched, defining the data as illegal data, and filtering the illegal data.
3. The method of claim 1, wherein the step of wrapping the data to obtain at least a first data set and a second data set, and calculating the hash value corresponding to the first data set using a hash function comprises:
receiving data to be processed, and packaging the data to be processed;
defining the packed data as a first data set and a second data set;
adding a time tag of the current moment into the first data set and the second data set;
a hash function is determined and a hash value of the first data set is calculated.
4. A method according to claim 3, wherein the creating a first block header is based on the hash value and a first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group, wherein the step of creating the second block header comprises:
constructing a block header architecture, and defining a data part and other information parts of the block header;
the hash value is classified into other information parts, a first data group is classified into a data part, and a first block head is created;
the hash value of the merged data is included in the other information part, the second data set is included in the data part, and a second block header is created.
5. The method of claim 1, wherein the integrating the first and second block headers based on existing blockchain nodes builds a blockchain; when the first block header and the second block header change, the step of correcting by using the block chain comprises the following steps:
migrating the first block header and the second block header into a block chain node to construct a block chain;
monitoring data changes in the first block header and the second block header;
the blockchain is corrected based on the data changes.
6. The method according to claim 1, wherein the method further comprises:
determining a cross-link protocol and testing the cross-link protocol;
integrating the cross-chain protocol after the test is completed into the blockchain.
7. A blockchain-based data anti-counterfeiting system, the system comprising:
the computing module is used for packaging the data to at least obtain a first data set and a second data set; calculating a hash value corresponding to the first data set by using a hash function;
a creation module capable of creating a first block header based on the hash value and a first data set; combining the hash value with second data to obtain combined data, calculating the hash value of the combined data, and creating a second block header based on the hash value of the combined data and the second data group;
the correction module can integrate the first block head and the second block head based on the existing block chain nodes to construct a block chain; and correcting by using the block chain when the first block head and the second block head change.
8. The system of claim 7, the computing module comprising:
the data packaging unit is used for receiving data to be processed and packaging the data to be processed;
the tag adding unit can define the packaged data as a first data group and a second data group; adding a time tag of the current moment into the first data set and the second data set;
and the hash value calculation unit is used for determining a hash function and calculating the hash value of the first data group.
9. The system of claim 8, the creation module comprising:
the architecture construction unit can construct a block header architecture and define a data part and other information parts of the block header;
the block head creation unit can classify the hash value into other information parts, classify the first data group into a data part and create a first block head; the hash value of the merged data is included in the other information part, the second data set is included in the data part, and a second block header is created.
10. The system of claim 7, the correction module comprising:
the block chain construction unit can migrate the first block head and the second block head into a block chain node to construct a block chain;
the data monitoring unit can monitor the data change in the first block head and the second block head; the blockchain is corrected based on the data changes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311506459.4A CN117254975A (en) | 2023-11-14 | 2023-11-14 | Block chain-based data anti-counterfeiting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311506459.4A CN117254975A (en) | 2023-11-14 | 2023-11-14 | Block chain-based data anti-counterfeiting method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117254975A true CN117254975A (en) | 2023-12-19 |
Family
ID=89131605
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311506459.4A Pending CN117254975A (en) | 2023-11-14 | 2023-11-14 | Block chain-based data anti-counterfeiting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117254975A (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107657438A (en) * | 2017-09-18 | 2018-02-02 | 联动优势科技有限公司 | A kind of block chain generation method, data verification method, node and system |
KR20180030971A (en) * | 2018-03-07 | 2018-03-27 | 유비벨록스(주) | Photographing apparatus for generating digital image which can be verified by block-chain, digital image generating method using the same, and method for verifying image generated by the same |
CN109034851A (en) * | 2018-09-05 | 2018-12-18 | 深圳正品创想科技有限公司 | Commodity counterfeit prevention source tracing method and its device, block chain node based on block chain |
CN109525397A (en) * | 2018-10-12 | 2019-03-26 | 南京邮电大学 | A kind of block chain and method towards SDN network stream rule safety guarantee |
CN110647582A (en) * | 2019-09-17 | 2020-01-03 | 腾讯科技(深圳)有限公司 | Method and device for block chain network consensus checking, storage medium and computer equipment |
CN112150149A (en) * | 2020-09-24 | 2020-12-29 | 深圳市中装智链科技有限公司 | Data tracing method and device based on block chain, computer equipment and storage medium |
CN112667746A (en) * | 2020-12-30 | 2021-04-16 | 浙江甲骨文超级码科技股份有限公司 | Block chain based data storage method and equipment, electronic device and storage equipment |
CN113610526A (en) * | 2021-08-24 | 2021-11-05 | 上海点融信息科技有限责任公司 | Data trust method and device, electronic equipment and storage medium |
CN113656806A (en) * | 2020-07-08 | 2021-11-16 | 支付宝(杭州)信息技术有限公司 | Trusted starting method and device of block chain all-in-one machine |
CN113938702A (en) * | 2020-07-13 | 2022-01-14 | 富泰华工业(深圳)有限公司 | Multimedia data stream tamper-proof device, method and medium based on block chain system |
CN114240433A (en) * | 2021-12-06 | 2022-03-25 | 中国工商银行股份有限公司 | Data processing method and system based on block chain |
CN114880331A (en) * | 2022-06-17 | 2022-08-09 | 南京审计大学 | Financial data accurate tracing method based on block chain MPT tree |
WO2022191380A1 (en) * | 2021-03-10 | 2022-09-15 | 숭실대학교 산학협력단 | Blockchain-based image forgery and falsification preventing system and method, and computer program therefor |
KR102487849B1 (en) * | 2021-11-11 | 2023-01-12 | 주식회사 미임팩트 | Device for preventing forgery of sensitive information based on blockchain and method thereof |
CN116886260A (en) * | 2023-06-30 | 2023-10-13 | 国能南京煤炭质量监督检验有限公司 | Method and system for transmitting experimental equipment data across chains |
-
2023
- 2023-11-14 CN CN202311506459.4A patent/CN117254975A/en active Pending
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107657438A (en) * | 2017-09-18 | 2018-02-02 | 联动优势科技有限公司 | A kind of block chain generation method, data verification method, node and system |
KR20180030971A (en) * | 2018-03-07 | 2018-03-27 | 유비벨록스(주) | Photographing apparatus for generating digital image which can be verified by block-chain, digital image generating method using the same, and method for verifying image generated by the same |
CN109034851A (en) * | 2018-09-05 | 2018-12-18 | 深圳正品创想科技有限公司 | Commodity counterfeit prevention source tracing method and its device, block chain node based on block chain |
CN109525397A (en) * | 2018-10-12 | 2019-03-26 | 南京邮电大学 | A kind of block chain and method towards SDN network stream rule safety guarantee |
CN110647582A (en) * | 2019-09-17 | 2020-01-03 | 腾讯科技(深圳)有限公司 | Method and device for block chain network consensus checking, storage medium and computer equipment |
CN113656806A (en) * | 2020-07-08 | 2021-11-16 | 支付宝(杭州)信息技术有限公司 | Trusted starting method and device of block chain all-in-one machine |
CN113938702A (en) * | 2020-07-13 | 2022-01-14 | 富泰华工业(深圳)有限公司 | Multimedia data stream tamper-proof device, method and medium based on block chain system |
CN112150149A (en) * | 2020-09-24 | 2020-12-29 | 深圳市中装智链科技有限公司 | Data tracing method and device based on block chain, computer equipment and storage medium |
CN112667746A (en) * | 2020-12-30 | 2021-04-16 | 浙江甲骨文超级码科技股份有限公司 | Block chain based data storage method and equipment, electronic device and storage equipment |
WO2022191380A1 (en) * | 2021-03-10 | 2022-09-15 | 숭실대학교 산학협력단 | Blockchain-based image forgery and falsification preventing system and method, and computer program therefor |
CN113610526A (en) * | 2021-08-24 | 2021-11-05 | 上海点融信息科技有限责任公司 | Data trust method and device, electronic equipment and storage medium |
KR102487849B1 (en) * | 2021-11-11 | 2023-01-12 | 주식회사 미임팩트 | Device for preventing forgery of sensitive information based on blockchain and method thereof |
CN114240433A (en) * | 2021-12-06 | 2022-03-25 | 中国工商银行股份有限公司 | Data processing method and system based on block chain |
CN114880331A (en) * | 2022-06-17 | 2022-08-09 | 南京审计大学 | Financial data accurate tracing method based on block chain MPT tree |
CN116886260A (en) * | 2023-06-30 | 2023-10-13 | 国能南京煤炭质量监督检验有限公司 | Method and system for transmitting experimental equipment data across chains |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110442652B (en) | Cross-chain data processing method and device based on block chain | |
CN112686671B (en) | Intelligent contract deployment method, device, equipment and medium based on block chain | |
EP3321819B1 (en) | Device, method and program for securely reducing an amount of records in a database | |
CN109447810A (en) | Parallel block chain common recognition method, system, electronic equipment and computer readable storage medium | |
EP3779760B1 (en) | Blockchain-based data processing method and apparatus, and electronic device | |
CN104200153B (en) | A kind of starting verification method and system | |
CN107770154A (en) | Block chain reliable data storage method, terminal and system based on cloud storage | |
Philipps et al. | Model-based test case generation for smart cards | |
CN110086780B (en) | Method and device for processing tampered transaction based on Ether house and storage medium | |
CN111899019A (en) | Method and system for cross validation and sharing of blacklist and multiple parties | |
CN111444257A (en) | Block chain-based electronic evidence storage method and system | |
CN106547648A (en) | Backup data processing method and device | |
CN109492880A (en) | Roduction track method and terminal device based on block chain technology | |
CN111327676A (en) | Block data processing method and device | |
CN108880789B (en) | Hardware product anti-counterfeiting tracing method, node equipment and system | |
CN107038353A (en) | The verification guard method of software program and system | |
CN116628757A (en) | Spacecraft supply chain management method, equipment and storage medium based on block chain | |
CN103425932B (en) | Signature calibration method and terminal device | |
CN113362068B (en) | Method for verifying block chain state transfer by light node | |
CN117254975A (en) | Block chain-based data anti-counterfeiting method and system | |
CN110730074A (en) | Implementation method and data structure of nested traceable digital twin body | |
CN114328518A (en) | UTXO model-based low storage consumption method and system | |
CN118297594A (en) | Resource processing method, device, computer equipment and blockchain system | |
CN109768853A (en) | A kind of key component verification method, device and terminal device | |
CN117251354A (en) | Abnormality test method and device applied to blockchain system and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20231219 |