CN115760150B - Multi-source spatial data industrial chain traceability system based on block chain - Google Patents
Multi-source spatial data industrial chain traceability system based on block chain Download PDFInfo
- Publication number
- CN115760150B CN115760150B CN202211316402.3A CN202211316402A CN115760150B CN 115760150 B CN115760150 B CN 115760150B CN 202211316402 A CN202211316402 A CN 202211316402A CN 115760150 B CN115760150 B CN 115760150B
- Authority
- CN
- China
- Prior art keywords
- information
- node
- module
- industrial chain
- access
- 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.)
- Active
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to the field of data processing, in particular to a multi-source space data industrial chain tracing system based on a blockchain.
Description
Technical Field
The invention relates to the field of data processing, in particular to a multi-source spatial data industrial chain tracing system based on a block chain.
Background
The data of the blockchain is traceable, and the reason is that the data stored in the blockchain is difficult to tamper, the stored data cannot be changed, the data uniqueness exists, and the data traceability processing is easy to carry out, so that the blockchain technology is widely applied to a production logistics system to realize the traceability of a product industrial chain;
chinese patent publication No.: CN109034842a discloses a traceability system and method for agricultural product supply chain based on blockchain, which mainly solves the technical problems that the traceability speed in the prior art is greatly reduced and the traceability accuracy is lower along with the increase of information in blockchain, and comprises the following main steps: the function selection module sends a source starting request; the data uplink module responds to the source starting request and sends a source starting result; the display module displays a source starting result; the function selection module judges whether the agricultural products are sold to consumers at the selling point; the data uplink module receives the newly added traceability request sent by the function selection module and sends the traceability request to the traceability module; the traceability module is in information interaction with the data uplink module; the data uplink module acquires a new addition tracing result and sends the new addition tracing result to the display module; the display module displays the newly added tracing result; the tracing module responds to the tracing request sent by the function selection module and sends a tracing result; the display module displays a tracing result;
however, the following problems are also present in the prior art:
in the prior art, verification of the sender of the tracing request in the tracing process is not considered, and in actual situations, information in the blockchain network is acquired under the condition of disguising the identity of the sender of the tracing request, so that information leakage of an industrial chain of a product is caused, and data security is affected.
Disclosure of Invention
In order to solve the above problems, the present invention provides a multi-source spatial data industrial chain tracing system based on blockchain, which comprises:
the block chain network comprises a plurality of node clusters, each node cluster comprises a plurality of nodes, and each node cluster establishes an association relationship with the step of the industrial chain;
the storage module is connected with the block chain network, receives the industrial chain information generated by each industrial chain step, determines an industrial chain information storage mode according to the industrial chain step corresponding to the industrial chain information, divides the industrial chain information into a plurality of information segments and uploads the information segments to a node cluster which has an association relation with the industrial chain step;
the traceability module is connected with the blockchain network and used for accessing nodes of the blockchain network according to traceability requirement information sent by a requirement end and extracting the stored industrial chain information in the nodes; the tracing module calculates a product information characteristic parameter K according to product production characteristic data to be traced, matches the product information characteristic parameter K with a sorting data set in a database, calls a sorting sequence and an access time interval of nodes in each node cluster in the matched sorting data set, accesses the nodes in a block chain network according to the sorting sequence and the access time interval, and traces the industry chain information of the product;
and each node is provided with a verification unit, the verification unit verifies the access request of the traceability module, the verification unit comprises identity verification, and determines whether to perform access sequence verification and access time interval verification according to whether the previous node accessed by the traceability module belongs to the same node cluster as the current access node, and the verification unit allows the traceability module to access the nodes when the verification is passed.
Further, the storage module determines an industry chain information storage mode according to an industry chain step corresponding to the industry chain information, wherein the storage module determines a product corresponding to the industry chain information, the storage module determines whether a node in a node cluster having an association relationship with the industry chain step stores the industry chain information of the product,
if the storage module judges that the node cluster with the association relation with the industrial chain step to which the industrial chain information belongs stores the industrial chain information of the product, the storage module determines the number of nodes storing the industrial chain information of the product in the node cluster, divides the industrial chain information into information segments with the same number as the number of the nodes, and randomly stores each information segment into each node storing the industrial chain information of the product;
if the storage module judges that the node cluster with the association relation with the industrial chain step to which the industrial chain information to be stored belongs does not have the industrial chain information of the product stored by the node, the storage module divides the industrial chain information into a plurality of information segments and randomly stores the information segments into each node of the node cluster.
Further, the tracing module obtains tracing demand information sent by a demand end, the tracing demand information comprises information codes of products, the tracing module identifies corresponding products according to the information codes and calls production characteristic data of the products to a marking node, the production characteristic data comprises production time of the products and the times of uploading industry chain data generated by steps of each industry chain of the products to a blockchain network, the tracing module calculates product information characteristic parameters K according to the production characteristic data according to a formula (1) and determines access sequence and access time interval according to a sequencing data set in a product information characteristic parameter K call database,
in the formula (1), T represents a duration from a production time of the product to a time when the traceability module receives the demand information, ni represents the number of times of uploading data generated in the ith step of the product corresponding to the industrial chain to the blockchain network, and α represents a weight parameter.
Further, the traceability module is connected with a database, the database is internally stored with a plurality of sorting data sets, each sorting data set comprises a sorting order of nodes in each node cluster, the sorting order of the nodes in each node cluster in each sorting data set is different, each sorting data set further comprises a data interval and an access time interval, the data interval and the access time interval in each sorting data set are different, the traceability module matches the product information characteristic parameter K with the data interval in the sorting data set and calls the matched sorting data set, wherein,
and if the product information characteristic parameter K belongs to the data interval in the sorting data set, the traceability module judges that the information characteristic parameter K is matched with the sorting data set, calls the sorting data set, and performs access traceability on the nodes in the blockchain network according to the sorting sequence and the access time interval of the nodes in each node cluster in the matched sorting data set.
Further, the tracing module determines an industrial chain step to which industrial chain information belongs according to the tracing demand information, and accesses nodes in a node cluster associated with the industrial chain step.
Further characterized in that each node of the blockchain network is provided with a verification unit which receives the access request and verifies the traceability module which sends the access request,
wherein the verification unit verifies the identity of the traceability module, the access sequence of the traceability module to the node, the access time interval of the traceability module to the node,
when the identity verification is not passed, the verification unit prohibits the traceability module from accessing the node,
when the identity verification is passed, the verification unit starts to judge whether the previous node accessed in the single tracing process of the product industrial chain information by the tracing module and the current access node belong to the same node cluster,
if the previous node accessed by the tracing module and the current node do not belong to the same node cluster, the verification unit determines the node cluster corresponding to the previous node accessed by the tracing module, calls access records of all nodes in the node cluster, acquires the access records, determines the actual access sequence and the actual access time interval of the tracing module to all the nodes, verifies whether the actual access sequence and the actual access time interval are correct, and when the actual access sequence and the actual access time interval are correct, the verification unit determines that the verification is passed and allows the tracing module to access;
and if the previous node accessed by the traceability module and the current access node belong to the same node cluster, the verification unit judges that the verification is passed and allows the traceability module to access.
Further, the verification unit is connected with the database, the verification unit calls the information code sent by the traceability module, identifies the corresponding product according to the information code, calls the production characteristic data of the product to the marking node, calculates the product characteristic information parameter K, calls the sequencing data set in the database according to the product characteristic information parameter K, determines the sequencing order and the access time interval,
and compares the access order and access time interval with the actual access order and actual access time interval,
if the actual access order is the same as the ordering order, determining that the actual access order is correct,
and if the actual access time interval is the same as the access time interval, judging that the actual access time interval is correct.
Further, the verification unit determines whether the access of the traceback module to the node belongs to a single traceback procedure,
the verification unit is internally provided with a preset minimum time interval, when the tracing module traces the industrial chain information of any product, the verification unit judges whether the access time interval of the tracing module to the current node and the previous node is smaller than the preset minimum time interval,
and if the access time interval is smaller than the preset minimum time interval, the verification unit judges that the access of the tracing module to the current node belongs to a single tracing process of the product.
Further, the verification unit obtains records of all nodes which are allowed to be accessed by the traceability module in a single traceability process from each node, determines the number N0 of nodes which store the information of the industrial chain corresponding to the product to be traced in all the nodes,
if the number of node clusters corresponding to the allowed access nodes exceeds the preset comparison number N in the single tracing process, the verification unit compares N0 with the preset verification comparison parameter M to determine whether to adjust the verification mode of the tracing module, wherein N is greater than or equal to 2,
when N0 is more than or equal to M, the verification unit judges that the verification mode of the traceability module is adjusted, and when the verification unit verifies the access request of the traceability module in the current traceability process, only identity verification is performed;
and when N0 is less than M, the verification unit verifies the traceability module in an original mode.
Further, a marking node cluster is further provided in the blockchain network, the marking node cluster includes a plurality of marked nodes, the marked nodes are used for storing production characteristic data of each product, the production characteristic data include production time of the product and times of uploading the industrial chain data generated in each industrial chain step of the product to the blockchain network, and a verification unit in the marked nodes only verifies identities of the traceability modules.
Compared with the prior art, the method has the advantages that the nodes of the blockchain network are divided into a plurality of node clusters by arranging the blockchain network, the tracing module and the storage module, the storage module stores information into the corresponding node clusters according to the step of corresponding industrial chains of the information to be stored, the storage module is convenient to search, the storage module traces product information, the unique access sequence and the access time interval are determined according to the matching of the product characteristic information and the data in the database, the blockchain network is accessed, the verification unit is arranged in the blockchain node, the tracing module is verified in the access process of the tracing module, the verification unit comprises verification identities and verification of the access sequence and the access time interval when the tracing module accesses different node clusters, the determination of the access sequence and the access time interval is determined by the product characteristic information, the tracing efficiency is improved, and meanwhile, the safety of the data is ensured through multiple verification.
In particular, the storage module is divided into a plurality of information segments according to corresponding industry chain steps when storing industry chain information of a product and stores the information segments into different node clusters, the association relation between the node clusters and the industry chain steps is established in advance, and for the storage of the information segments, the information segments are stored into nodes already storing the corresponding industry chain information of the product, so that data can be traced, the data can be stored into different node clusters in a classified manner, the follow-up tracing search is faster, and when only one industry chain step of the product is traced, the nodes in the node clusters corresponding to the industry chain step are directly accessed, the data traversal number is reduced, and the tracing efficiency is improved.
In particular, the traceability module is connected with the database, after receiving a demand request sent by a demand end, calculates an information characteristic parameter K according to characteristic information of a product, and determines the information characteristic parameter K according to production time of the product and the number of times of uploading industrial chain information generated by each industrial chain step of the product to the blockchain network, wherein the fluctuation change can be generated along with circulation of the product in the industrial chain, the traceability module has certain standard for the characteristics of the product, the traceability module is matched with data in the database according to the product information characteristic parameter K, and accesses the blockchain node after a specific access sequence and an access time interval are selected, and for a single product, the corresponding product information characteristic K can be changed along with circulation of the product in each industrial chain step, so that a counterfeiter cannot determine the access sequence and the access time interval, and cannot pass verification subsequently, further data leakage in the traceability process is avoided, and the data safety is ensured.
In particular, the verification unit is arranged in the blockchain node, and is used for verifying the traceability module, including identity verification, access sequence verification and access interval verification, firstly carrying out necessary identity verification, then judging whether the previous node accessed by the traceability module and the current access node belong to the same node cluster or not, namely whether the accessed node cluster is changed, and when the node cluster is changed, verifying the access sequence and the access time interval of the traceability module to the previous data set, introducing the access sequence and the access time interval into verification, so that other access ends of the counterfeit verification unit are identified, further, the data security is improved, information leakage is avoided, and the access sequence and the access time interval verification is carried out only under specific conditions, so that the verification times are reduced, and further the traceability efficiency is improved.
In particular, in the verification of the single-time tracing process of the tracing module, the verification unit of the invention judges whether the access sequence and the access time interval of the node cluster visited by the tracing module are correct, and in the case that the access sequence and the access time interval of the tracing module are correct for a plurality of node clusters in the single-time tracing process, the subsequent verification process does not carry out the verification of the access sequence and the time interval, thereby reducing the verification times and improving the data processing efficiency.
In particular, a plurality of ordered data sets are stored in the database, and the ordered sequence of the nodes in each node cluster is stored, so that the corresponding node access sequence of different products is different due to the difference of the corresponding product information characteristics K, the access sequence is not easy to acquire and imitate in advance, the trace back module is prevented from being disguised, the verification reliability is further improved, the stored information is prevented from being leaked, and the data safety is ensured.
Drawings
FIG. 1 is a schematic diagram of a multi-source spatial data industrial chain traceability system based on a blockchain according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a block chain network in accordance with an embodiment of the invention;
in the figure: 1: node cluster, 2: and (5) a node.
Detailed Description
In order that the objects and advantages of the invention will become more apparent, the invention will be further described with reference to the following examples; 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.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are merely for explaining the technical principles of the present invention, and are not intended to limit the scope of the present invention.
It should be noted that, in the description of the present invention, terms such as "upper," "lower," "left," "right," "inner," "outer," and the like indicate directions or positional relationships based on the directions or positional relationships shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the apparatus or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those skilled in the art according to the specific circumstances.
Referring to fig. 1 and 2, which are schematic diagrams of a blockchain-based multi-source spatial data industrial chain tracing system and a local schematic diagram of a blockchain network according to an embodiment of the invention, the blockchain-based multi-source spatial data industrial chain tracing system of the invention includes,
the block chain network comprises a plurality of node clusters 1, each node cluster comprises a plurality of nodes 2, and each node cluster establishes an association relationship with the step of the industrial chain;
the storage module is connected with the block chain network, receives the industrial chain information generated by each industrial chain step, determines an industrial chain information storage mode according to the industrial chain step corresponding to the industrial chain information, divides the industrial chain information into a plurality of information segments and uploads the information segments to a node cluster which has an association relation with the industrial chain step;
the traceability module is connected with the blockchain network and used for accessing nodes of the blockchain network according to traceability requirement information sent by a requirement end and extracting the stored industrial chain information in the nodes; the tracing module calculates a product information characteristic parameter K according to product production characteristic data to be traced, matches the product information characteristic parameter K with a sorting data set in a database, calls a sorting sequence and an access time interval of nodes in each node cluster in the matched sorting data set, accesses the nodes in a block chain network according to the sorting sequence and the access time interval, and traces the industry chain information of the product;
and each node is provided with a verification unit, the verification unit verifies the access request of the traceability module, the verification unit comprises identity verification, and determines whether to perform access sequence verification and access time interval verification according to whether the previous node accessed by the traceability module belongs to the same node cluster as the current access node, and the verification unit allows the traceability module to access the nodes when the verification is passed.
Specifically, the blockchain network of the present invention is constructed in a mature prior art, and in the prior art, the blockchain network often includes a plurality of nodes, and in the present invention, only a plurality of nodes of the blockchain network are needed.
Specifically, the industrial chain of the present invention may include steps of production, delivery, transportation, transaction, circulation, etc., and the production-related data, delivery-related data, transportation-related data, transaction-related data, and circulation data corresponding to each step are industrial chain data, and for each product, the industrial chain data corresponding to the product is generated when the industrial chain circulates, and the industrial chain of the present invention may not be limited to the above-mentioned form, and a person skilled in the art may adjust each step of the industrial chain according to the specific field thereof.
Specifically, the specific structures of the storage module and the trace back module are not limited in the present invention, and those skilled in the art should understand that in the present invention, only the receiving and transmitting of data and the data processing need to be completed, which is not described herein.
Specifically, the authentication unit may adopt various schemes when authenticating the identity, and may adopt a private key authentication mode or other encryption modes, which will not be described herein.
Specifically, the storage module determines an industry chain information storage mode according to an industry chain step corresponding to the industry chain information, wherein the storage module determines a product corresponding to the industry chain information, the storage module determines whether a node in a node cluster having an association relationship with the industry chain step stores the industry chain information of the product,
if the storage module judges that the node cluster with the association relation with the industrial chain step to which the industrial chain information belongs stores the industrial chain information of the product, the storage module determines the number of nodes storing the industrial chain information of the product in the node cluster, divides the industrial chain information into information segments with the same number as the number of the nodes, and randomly stores each information segment into each node storing the industrial chain information of the product;
if the storage module judges that the node cluster with the association relation with the industrial chain step to which the industrial chain information to be stored belongs does not have the industrial chain information of the product stored by the node, the storage module divides the industrial chain information into a plurality of information segments and randomly stores the information segments into each node of the node cluster.
Specifically, the storage module is divided into a plurality of information segments according to corresponding industry chain steps when storing industry chain information of a product and stores the information segments into different node clusters, the association relation between the node clusters and the industry chain steps is established in advance, and for the storage of the information segments, the information segments are stored into nodes already storing the corresponding industry chain information of the product, so that data can be traced, the data can be stored into different node clusters in a classified mode, the follow-up tracing search is faster, and when only one industry chain step of the product is traced, the nodes in the node clusters corresponding to the industry chain step are directly accessed, so that the data traversal number is reduced, and the tracing efficiency is improved.
Specifically, the tracing module obtains tracing demand information sent by a demand end, the tracing demand information comprises information codes of products, the tracing module identifies corresponding products according to the information codes and calls production characteristic data of the products to a marking node, the production characteristic data comprises production time of the products and the times of uploading industry chain data generated by steps of each industry chain of the products to a blockchain network, the tracing module calculates product information characteristic parameters K according to the production characteristic data according to a formula (1) and determines access sequence and access time interval according to a sequencing data set in a product information characteristic parameter K call database,
in the formula (1), T represents a duration from a production time of the product to a time when the traceability module receives the demand information, ni represents the number of times of uploading data generated in the ith step of the product corresponding to the industrial chain to the blockchain network, and α represents a weight parameter.
Specifically, the traceability module is connected with a database, the database is internally stored with a plurality of sorting data sets, each sorting data set comprises a sorting order of nodes in each node cluster, the sorting order of the nodes in each node cluster in each sorting data set is different, each sorting data set further comprises a data interval and an access time interval, the data interval and the access time interval in each sorting data set are different, the traceability module matches the product information characteristic parameter K with the data interval in the sorting data set and calls the matched sorting data set, wherein,
and if the product information characteristic parameter K belongs to the data interval in the sorting data set, the traceability module judges that the information characteristic parameter K is matched with the sorting data set, calls the sorting data set, and performs access traceability on the nodes in the blockchain network according to the sorting sequence and the access time interval of the nodes in each node cluster in the matched sorting data set.
Specifically, the traceability module is connected with the database, after receiving a demand request sent by a demand end, calculates an information characteristic parameter K according to characteristic information of a product, and determines the information characteristic parameter K according to production time of the product and the number of times of uploading industrial chain information generated by each industrial chain step of the product to the blockchain network, wherein the fluctuation change can be generated along with circulation of the product in the industrial chain, the traceability module has certain standard for the characteristics of the product, the traceability module is matched with data in the database according to the product information characteristic parameter K, accesses the blockchain node after a specific access sequence and an access time interval are selected, and for a single product, the corresponding product information characteristic K can be changed along with circulation of the product in each industrial chain step, so that a counterfeiter cannot determine the access sequence and the access time interval, and cannot pass verification subsequently, further, data leakage in the traceability process is avoided, and the data safety is ensured.
Specifically, the tracing module determines, according to the tracing requirement information, an industrial chain step to which industrial chain information belongs, and first accesses a node in a node cluster associated with the industrial chain step.
Specifically, the method is characterized in that each node of the blockchain network is provided with a verification unit which receives an access request and verifies a traceability module which sends the access request,
wherein the verification unit verifies the identity of the traceability module, the access sequence of the traceability module to the node, the access time interval of the traceability module to the node,
when the identity verification is not passed, the verification unit prohibits the traceability module from accessing the node,
when the identity verification is passed, the verification unit starts to judge whether the previous node accessed in the single tracing process of the product industrial chain information by the tracing module and the current access node belong to the same node cluster,
if the previous node accessed by the tracing module and the current node do not belong to the same node cluster, the verification unit determines the node cluster corresponding to the previous node accessed by the tracing module, calls access records of all nodes in the node cluster, acquires the access records, determines the actual access sequence and the actual access time interval of the tracing module to all the nodes, verifies whether the actual access sequence and the actual access time interval are correct, and when the actual access sequence and the actual access time interval are correct, the verification unit determines that the verification is passed and allows the tracing module to access;
and if the previous node accessed by the traceability module and the current access node belong to the same node cluster, the verification unit judges that the verification is passed and allows the traceability module to access.
Specifically, the verification unit is connected with the database, the verification unit calls the information code sent by the traceability module, identifies the corresponding product according to the information code, calls the production characteristic data of the product to the marking node, calculates the product characteristic information parameter K, calls the sequencing data set in the database according to the product characteristic information parameter K, determines the sequencing order and the access time interval,
and compares the access order and access time interval with the actual access order and actual access time interval,
if the actual access order is the same as the ordering order, determining that the actual access order is correct,
and if the actual access time interval is the same as the access time interval, judging that the actual access time interval is correct.
The access sequence and the access time interval are introduced into verification, so that other access ends of the counterfeit verification unit are identified, the data security is further improved, information leakage is avoided, the access sequence and the access time interval are verified under specific conditions, verification times are reduced, and the traceability efficiency is further improved.
Specifically, the access sequence and the access time interval are introduced into verification, so that other access ends of the counterfeit verification unit are identified, the data security is further improved, information leakage is avoided, the access sequence and the access time interval are verified under specific conditions, verification times are reduced, and the traceability efficiency is further improved.
In particular, the verification unit judges whether the access of the tracing module to the node belongs to a single tracing process, a preset minimum time interval is arranged in the verification unit, when the tracing module traces the industrial chain information of any product, the verification unit judges whether the access time interval of the tracing module to the current node and the previous node is smaller than the preset minimum time interval,
and if the access time interval is smaller than the preset minimum time interval, the verification unit judges that the access of the tracing module to the current node belongs to a single tracing process of the product.
Specifically, in the verification of the single-time tracing process of the tracing module, the verification unit of the invention judges whether the access sequence and the access time interval of the node cluster visited by the tracing module are correct, and in the case that the access sequence and the access time interval of the tracing module are correct for a plurality of node clusters in the single-time tracing process, the subsequent verification process does not carry out the verification of the access sequence and the time interval, thereby reducing the verification times and improving the data processing efficiency.
In particular, the verification unit obtains records of all nodes which are allowed to be accessed by the traceability module in a single traceability process from each node, determines the number N0 of nodes which store the information of the industrial chain corresponding to the product to be traced in all the nodes,
if the number of node clusters corresponding to the allowed access nodes exceeds the preset comparison number N in the single tracing process, the verification unit compares N0 with the preset verification comparison parameter M to determine whether to adjust the verification mode of the tracing module, wherein N is greater than or equal to 2,
when N0 is more than or equal to M, the verification unit judges that the verification mode of the traceability module is adjusted, and when the verification unit verifies the access request of the traceability module in the current traceability process, only identity verification is performed;
and when N0 is less than M, the verification unit verifies the traceability module in an original mode.
Specifically, the blockchain network is further provided with a marking node cluster, the marking node cluster comprises a plurality of marked nodes, the marked nodes are used for storing production characteristic data of each product, the production characteristic data comprise production time of the product and the times of uploading the industrial chain data generated by each industrial chain step of the product to the blockchain network, and a verification unit in the marked nodes only verifies the identity of the traceability module.
Thus far, the technical solution of the present invention has been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of protection of the present invention is not limited to these specific embodiments. Equivalent modifications and substitutions for related technical features may be made by those skilled in the art without departing from the principles of the present invention, and such modifications and substitutions will be within the scope of the present invention.
Claims (10)
1. A blockchain-based multi-source spatial data industry chain traceability system, comprising:
the block chain network comprises a plurality of node clusters, each node cluster comprises a plurality of nodes, and each node cluster establishes an association relationship with the step of the industrial chain;
the storage module is connected with the block chain network, receives the industrial chain information generated by each industrial chain step, determines an industrial chain information storage mode according to the industrial chain step corresponding to the industrial chain information, divides the industrial chain information into a plurality of information segments and uploads the information segments to a node cluster which has an association relation with the industrial chain step;
the traceability module is connected with the blockchain network and used for accessing nodes of the blockchain network according to traceability requirement information sent by a requirement end and extracting the stored industrial chain information in the nodes; the tracing module calculates a product information characteristic parameter K according to product production characteristic data to be traced, matches the product information characteristic parameter K with a sorting data set in a database, calls a sorting sequence and an access time interval of nodes in each node cluster in the matched sorting data set, accesses the nodes in a block chain network according to the sorting sequence and the access time interval, and traces the industry chain information of the product;
and each node is provided with a verification unit, the verification unit verifies the access request of the traceability module, the verification unit comprises identity verification, and determines whether to perform access sequence verification and access time interval verification according to whether the previous node accessed by the traceability module belongs to the same node cluster as the current access node, and the verification unit allows the traceability module to access the nodes when the verification is passed.
2. The multi-source spatial data industrial chain tracing system based on block chain according to claim 1, wherein said storage module determines an industrial chain information storage mode according to an industrial chain step corresponding to industrial chain information, wherein said storage module determines a product corresponding to said industrial chain information, said storage module determines whether there is a node in a node cluster having an association relationship with said industrial chain step to store the industrial chain information of said product,
if the storage module judges that the node cluster with the association relation with the industrial chain step to which the industrial chain information belongs stores the industrial chain information of the product, the storage module determines the number of nodes storing the industrial chain information of the product in the node cluster, divides the industrial chain information into information segments with the same number as the number of the nodes, and randomly stores each information segment into each node storing the industrial chain information of the product;
if the storage module judges that the node cluster with the association relation with the industrial chain step to which the industrial chain information to be stored belongs does not have the industrial chain information of the product stored by the node, the storage module divides the industrial chain information into a plurality of information segments and randomly stores the information segments into each node of the node cluster.
3. The system of claim 1, wherein the trace module obtains trace back requirement information sent by a requirement end, the trace back requirement information comprises information codes of products, the trace back module identifies corresponding products according to the information codes and invokes production characteristic data of the products to a marking node, the production characteristic data comprises production time of the products and times of uploading industrial chain data generated by steps of each industrial chain of the products to a blockchain network, the trace back module calculates characteristic parameters K of the product information according to a formula (1) according to the production characteristic data and invokes a sequence data set in a database to determine access sequence and access time interval according to the characteristic parameters K of the product information,
in the formula (1), T represents a duration from a production time of the product to a time when the traceability module receives the demand information, ni represents the number of times of uploading data generated in the ith step of the product corresponding to the industrial chain to the blockchain network, and α represents a weight parameter.
4. The multi-source spatial data industrial chain tracing system based on block chain according to claim 3, wherein the tracing module is connected with a database, wherein a plurality of ordered data sets are stored in the database, each ordered data set comprises an ordered sequence of nodes in each node cluster, the ordered sequence of nodes in each node cluster in each ordered data set is different, each ordered data set further comprises a data interval and an access time interval, the data interval and the access time interval in each ordered data set are different, the tracing module matches the product information characteristic parameter K with the data interval in the ordered data set and calls the matched ordered data set, wherein,
and if the product information characteristic parameter K belongs to the data interval in the sorting data set, the traceability module judges that the information characteristic parameter K is matched with the sorting data set, calls the sorting data set, and performs access traceability on the nodes in the blockchain network according to the sorting sequence and the access time interval of the nodes in each node cluster in the matched sorting data set.
5. The blockchain-based multi-source spatial data industrial chain tracing system according to claim 4, wherein the tracing module determines an industrial chain step to which industrial chain information belongs according to the tracing requirement information, and accesses nodes in a node cluster associated with the industrial chain step first.
6. The multi-source spatial data industrial chain tracing system based on block chain of claim 5, wherein each node of said block chain network is provided with a verification unit, said verification unit receives an access request and verifies a tracing module that issued said access request,
wherein the verification unit verifies the identity of the traceability module, the access sequence of the traceability module to the node, the access time interval of the traceability module to the node,
when the identity verification is not passed, the verification unit prohibits the traceability module from accessing the node,
when the identity verification is passed, the verification unit starts to judge whether the previous node accessed in the single tracing process of the product industrial chain information by the tracing module and the current access node belong to the same node cluster,
if the previous node accessed by the tracing module and the current node do not belong to the same node cluster, the verification unit determines the node cluster corresponding to the previous node accessed by the tracing module, calls access records of all nodes in the node cluster, acquires the access records, determines the actual access sequence and the actual access time interval of the tracing module to all the nodes, verifies whether the actual access sequence and the actual access time interval are correct, and when the actual access sequence and the actual access time interval are correct, the verification unit determines that the verification is passed and allows the tracing module to access;
and if the previous node accessed by the traceability module and the current access node belong to the same node cluster, the verification unit judges that the verification is passed and allows the traceability module to access.
7. The multi-source spatial data industrial chain tracing system based on block chain according to claim 6, wherein the verification unit is connected with a database, the verification unit calls an information code sent by the tracing module, identifies corresponding products according to the information code, calls production characteristic data of the products to the marking node, calculates product characteristic information parameter K, calls a sorting data set in the database according to the product characteristic parameter K, determines sorting order and access time interval,
and compares the access order and access time interval with the actual access order and actual access time interval,
if the actual access order is the same as the ordering order, determining that the actual access order is correct,
and if the actual access time interval is the same as the access time interval, judging that the actual access time interval is correct.
8. The multi-source spatial data industrial chain tracing system based on block chain according to claim 6, wherein the verification unit determines whether the access of the tracing module to the node belongs to a single tracing process, a preset minimum time interval is set in the verification unit, when the tracing module traces the industrial chain information of any product, the verification unit determines whether the access time interval of the tracing module to the current node and the previous node is smaller than the preset minimum time interval,
and if the access time interval is smaller than the preset minimum time interval, the verification unit judges that the access of the tracing module to the current node belongs to a single tracing process of the product.
9. The multi-source spatial data industrial chain tracing system based on block chain according to claim 8, wherein said verification unit obtains records of all nodes which said tracing module is allowed to access in a single tracing process from each node, and determines the number N0 of nodes which store the corresponding industrial chain information of the product to be traced in all nodes,
if the number of node clusters corresponding to the allowed access nodes exceeds the preset comparison number N in the single tracing process, the verification unit compares N0 with the preset verification comparison parameter M to determine whether to adjust the verification mode of the tracing module, wherein N is greater than or equal to 2,
when N0 is more than or equal to M, the verification unit judges that the verification mode of the traceability module is adjusted, and when the verification unit verifies the access request of the traceability module in the current traceability process, only identity verification is performed;
and when N0 is less than M, the verification unit verifies the traceability module in an original mode.
10. The blockchain-based multi-source spatial data industrial chain tracing system according to claim 1, wherein a marking node cluster is further arranged in the blockchain network, the marking node cluster comprises a plurality of marked nodes, the marked nodes are used for storing production characteristic data of each product, the production characteristic data comprise production time of the product and the number of times of uploading the industrial chain data generated by each industrial chain step of the product to the blockchain network, and a verification unit in the marked nodes only verifies the identity of the tracing module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211316402.3A CN115760150B (en) | 2022-10-26 | 2022-10-26 | Multi-source spatial data industrial chain traceability system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211316402.3A CN115760150B (en) | 2022-10-26 | 2022-10-26 | Multi-source spatial data industrial chain traceability system based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115760150A CN115760150A (en) | 2023-03-07 |
CN115760150B true CN115760150B (en) | 2023-07-14 |
Family
ID=85353262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211316402.3A Active CN115760150B (en) | 2022-10-26 | 2022-10-26 | Multi-source spatial data industrial chain traceability system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115760150B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109191003A (en) * | 2018-09-25 | 2019-01-11 | 仲恺农业工程学院 | Fruit and vegetable agricultural product quality safety traceability system based on block chain |
CN110874746A (en) * | 2018-12-29 | 2020-03-10 | 北京安妮全版权科技发展有限公司 | Product traceability system based on block chain |
CN112184252A (en) * | 2019-06-17 | 2021-01-05 | 雲禾(浙江)科技集团有限公司 | Commodity anti-counterfeiting tracing method based on block chain technology |
WO2021236762A1 (en) * | 2020-05-19 | 2021-11-25 | Covestro Llc | Blockchain verification system for manufactured products |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108573384B (en) * | 2018-03-07 | 2022-05-06 | 北京安讯奔科技有限责任公司 | Product with double identification codes and product tracing anti-counterfeiting verification method and device |
CN109034833B (en) * | 2018-06-16 | 2021-07-23 | 复旦大学 | Product tracing information management system and method based on block chain |
CN112733204B (en) * | 2021-01-16 | 2023-01-20 | 阳江市链点创新科技发展有限公司 | Anti-counterfeiting tracing method based on block chain and multiple signature technology |
CN114490741A (en) * | 2022-04-18 | 2022-05-13 | 武汉龙津科技有限公司 | Time sorting method and device based on trusted block chain, electronic equipment and medium |
CN115204909A (en) * | 2022-06-16 | 2022-10-18 | 拢味(深圳)科技有限公司 | Multi-dimensional food cold chain traceability system based on block chain |
-
2022
- 2022-10-26 CN CN202211316402.3A patent/CN115760150B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109191003A (en) * | 2018-09-25 | 2019-01-11 | 仲恺农业工程学院 | Fruit and vegetable agricultural product quality safety traceability system based on block chain |
CN110874746A (en) * | 2018-12-29 | 2020-03-10 | 北京安妮全版权科技发展有限公司 | Product traceability system based on block chain |
CN112184252A (en) * | 2019-06-17 | 2021-01-05 | 雲禾(浙江)科技集团有限公司 | Commodity anti-counterfeiting tracing method based on block chain technology |
WO2021236762A1 (en) * | 2020-05-19 | 2021-11-25 | Covestro Llc | Blockchain verification system for manufactured products |
Also Published As
Publication number | Publication date |
---|---|
CN115760150A (en) | 2023-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8793496B2 (en) | Systems, methods, and computer program products for secure optimistic mechanisms for constrained devices | |
CA3124167A1 (en) | Methods and systems for preparing and performing an object authentication | |
CN111737360B (en) | Block chain-based equipment management method and device and computer equipment | |
CN112131317B (en) | Data storage safety system based on block chain technology | |
CN107679877B (en) | Cosmetic anti-counterfeiting and tracing system based on block chain technology | |
CN109191142B (en) | Commodity tracing method, equipment and system | |
EP1959372B1 (en) | Distance-preserving anonymization of data | |
KR20130026423A (en) | Method for identifying and authenticating an rfid tag by a reader | |
CN105849739B (en) | Authentication system and authentication method | |
CN113469716A (en) | Product tracing method and system based on block chain and identification analysis | |
CN113902384B (en) | Tracing method and system based on RFID and intelligent contract | |
CN112348535B (en) | Traceability application method and system based on blockchain technology | |
CN109522988B (en) | Method and system for updating product anti-counterfeiting electronic label information | |
CN109360008B (en) | Product anti-counterfeiting authentication updating method and system | |
CN109347865B (en) | User data authentication and evidence storage method and system based on block chain technology | |
CN111597167A (en) | Big data management system and method applying block chain technology | |
CN115760150B (en) | Multi-source spatial data industrial chain traceability system based on block chain | |
Lim et al. | A new hash-based RFID mutual authentication protocol providing enhanced user privacy protection | |
Mohammadali et al. | Analysis and Improvement of the securing RFID systems conforming to EPC Class 1 Generation 2 standard | |
CN116980138A (en) | Online transaction security system | |
CN114726609B (en) | Encryption data verification method and device based on block chain and electronic equipment | |
CN116723011A (en) | Security authentication method and system based on comprehensive characteristics | |
CN113159952B (en) | Method, system, device and storage medium for storing digital assets based on blockchain | |
CN112383399A (en) | Key processing method, system, device and medium for self-adaptive matching identity platform | |
KR100958527B1 (en) | System and method for wireless communication user authentication |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |