CN115760150A - Multisource spatial data industrial chain traceability system based on block chain - Google Patents

Multisource spatial data industrial chain traceability system based on block chain Download PDF

Info

Publication number
CN115760150A
CN115760150A CN202211316402.3A CN202211316402A CN115760150A CN 115760150 A CN115760150 A CN 115760150A CN 202211316402 A CN202211316402 A CN 202211316402A CN 115760150 A CN115760150 A CN 115760150A
Authority
CN
China
Prior art keywords
node
information
product
module
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.)
Granted
Application number
CN202211316402.3A
Other languages
Chinese (zh)
Other versions
CN115760150B (en
Inventor
夏志宏
张路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Luchuang Blueprint Technology Co ltd
Original Assignee
Beijing Luchuang Blueprint Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Luchuang Blueprint Technology Co ltd filed Critical Beijing Luchuang Blueprint Technology Co ltd
Priority to CN202211316402.3A priority Critical patent/CN115760150B/en
Publication of CN115760150A publication Critical patent/CN115760150A/en
Application granted granted Critical
Publication of CN115760150B publication Critical patent/CN115760150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention relates to the field of data processing, in particular to a multisource spatial data industrial chain traceability system based on a block chain.

Description

Multisource spatial data industrial chain traceability system based on block chain
Technical Field
The invention relates to the field of data processing, in particular to a block chain-based multi-source spatial data industry chain traceability system.
Background
The data of the block chain has traceability, and the reason is that the data stored in the block chain is difficult to tamper, the stored data is not changed, the data uniqueness exists, and the data traceability is easy to perform, so that the block chain technology is widely applied to a production logistics system to realize traceability of a product industry chain;
chinese patent publication no: CN109034842A discloses a block chain-based agricultural product supply chain tracing system and method, mainly solving the technical problems of the prior art that the tracing speed is greatly reduced along with the increase of information in the block chain and the tracing accuracy is low, and mainly comprising the following 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 starting result; the function selection module judges whether the agricultural products are sold to consumers or not; the data uplink module receives the newly increased tracing request sent by the function selection module and sends a tracing request to the tracing module; the tracing module interacts information with the data uplink module; the data chaining module acquires a newly-added tracing result and sends the newly-added 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 the tracing result;
however, the following problems still exist in the prior art:
in the prior art, verification of a tracing request sender in a tracing process is not considered, and in an actual situation, information in a block chain network is acquired under the condition that the identity of the tracing request sender is disguised, so that industrial chain information of a product is leaked, and data safety is affected.
Disclosure of Invention
In order to solve the above problems, the present invention provides a block chain-based multi-source spatial data industry chain traceability system, which includes:
the system comprises a block chain network and a plurality of industrial chain steps, wherein the block chain network comprises a plurality of node clusters, each node cluster comprises a plurality of nodes, and an association relation is established between each node cluster and each industrial chain step;
the storage module is connected with the block chain network, receives industrial chain information generated in each industrial chain step, determines an industrial chain information storage mode according to the industrial chain step corresponding to the industrial chain information, and divides the industrial chain information into a plurality of information sections to be uploaded to a node cluster having an association relation with the industrial chain step;
the tracing module is connected with the block chain network and used for accessing nodes of the block chain network according to tracing demand information sent by a demand end and extracting industrial chain information stored in the nodes; the tracing module calculates a product information characteristic parameter K according to production characteristic data of a product to be traced, matches the product information characteristic parameter K with a sorting data set in a database according to the product information characteristic parameter K, calls a sorting sequence and an access time interval of nodes in each node cluster in the matched sorting data set, visits nodes in a block chain network according to the sorting sequence and the access time interval, and traces industrial chain information of the product;
and each node is provided with a verification unit which verifies the access request of the tracing module, including identity verification, determines whether to perform access sequence verification and access time interval verification according to whether the previous node accessed by the tracing module and the current access node belong to the same node cluster, and allows the tracing module to access the node when the verification is passed.
Further, the storage module determines an industry chain information storage manner according to an industry chain step corresponding to industry chain information, wherein the storage module determines a product corresponding to the industry chain information, the storage module determines whether a node exists in a node cluster having an association relationship with the industry chain step to store the industry chain information of the product,
if the storage module judges that nodes exist in a node cluster which has an association relation with an industrial chain step to which the industrial chain information belongs and stores the industrial chain information of the product, the storage module determines the number of the nodes which store 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 which stores the industrial chain information of the product;
if the storage module judges that no node exists in the node cluster which has an association relation with the industrial chain step to which the industrial chain information needs to be stored, the storage module divides the industrial chain information into a plurality of information segments and randomly stores each information segment into each node of the node cluster.
Further, the tracing module acquires tracing requirement information sent by a requirement end, the tracing requirement information comprises an information code of a product, the tracing module identifies a corresponding product according to the information code and calls production characteristic data of the product to a marking node, the production characteristic data comprises production time of the product and the number of times of uploading industrial chain data generated in each industrial chain step of the product to a block chain network, the tracing module calculates a product information characteristic parameter K according to a formula (1) according to the production characteristic data and calls a sequencing data set in a database according to the product information characteristic parameter K to determine an access sequence and an access time interval,
Figure 100002_DEST_PATH_IMAGE001
(1)
in the formula (1), T represents a time period from a production time of the product to a time when the tracing module receives the demand information, ni represents a number of times that data generated in the ith step of the industrial chain corresponding to the product is uploaded to a block chain network, and α represents a weight parameter.
Further, the tracing module is connected with a database, a plurality of sequencing data sets are stored in the database, each sequencing data set comprises a sequencing sequence of nodes in each node cluster, the sequencing sequences of the nodes in each node cluster in each sequencing data set are different, each sequencing data set also comprises a data interval and an access time interval, the data intervals and the access time intervals in each sequencing data set are different, the tracing module matches the product information characteristic parameter K with the data intervals in the sequencing data sets and calls the matched sequencing data sets, wherein,
if the product information characteristic parameter K belongs to a data interval in the sorted data set, the tracing module judges that the information characteristic parameter K is matched with the sorted data set, calls the sorted data set, and visits and traces the industrial chain information of the product to the nodes in the block chain network according to the sorting sequence and the visit time interval of the nodes in each node cluster in the matched sorted data set.
Further, the tracing module determines an industrial chain step to which industrial chain information to be traced belongs according to the tracing requirement information, and first accesses a node in a node cluster associated with the industrial chain step.
Further, each node of the block chain network is provided with an authentication unit, the authentication unit receives an access request and authenticates a tracing module which sends the access request,
wherein, the verification unit verifies the identity of the tracing module, the access sequence of the tracing module to the node and the access time interval of the tracing module to the node,
when the identity verification fails, the verification unit prohibits the tracing module from accessing the node,
when the identity authentication is passed, the authentication unit starts to judge whether the previous node accessed in the single tracing process of the tracing module to the industrial chain information of the product and the current access node belong to the same node cluster,
if the previous node visited by the tracing module and the current access node do not belong to the same node cluster, the verification unit determines a node cluster corresponding to the previous node visited by the tracing module, calls an access record of each node in the node cluster, acquires the access record, determines an actual access sequence and an actual access time interval of each node by the tracing module, 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 both correct, the verification unit judges that the verification is passed and allows the tracing module to access;
if the previous node accessed by the tracing module and the current access node do not belong to the same node cluster, the verification unit judges that the verification is passed and allows the tracing module to access.
Furthermore, the verification unit is connected with a database, calls the information code sent by the tracing module, identifies the corresponding product according to the information code, calls the production characteristic data of the product to the marking node, calculates a product characteristic information parameter K, calls a sorting data set in the database according to the product characteristic information parameter K, determines a sorting sequence and an access time interval,
and comparing the access sequence and access time interval with the actual access sequence and actual access time interval,
if the actual access sequence is the same as the sorting sequence, the actual access sequence is judged to be 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 trace back module to a node belongs to a single trace back procedure,
a preset minimum time interval is arranged in the verification unit, when the tracing module traces 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 or not,
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 tracing module in a single tracing process from all nodes, determines the number N0 of nodes which store the industrial chain information corresponding to the product to be traced,
if the number of the node clusters corresponding to the allowed access nodes exceeds the preset comparison number N in the single tracing process of the tracing module, the N is more than or equal to 2, the verification unit compares the N0 with a preset verification comparison parameter M and judges whether the verification mode of the tracing module is adjusted, wherein,
when N0 is larger than or equal to M, the verification unit judges that the verification mode of the tracing module is adjusted, and only identity verification is carried out when the verification unit verifies the access request of the tracing module in the current tracing process;
and when N0 is less than M, the verification unit verifies the tracing module in the original mode.
Furthermore, a marked node cluster is further arranged in the block chain network, the marked 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 comprises production time of the product and the number of times that industrial chain data generated in each industrial chain step of the product is uploaded to the block chain network, and a verification unit in each marked node only verifies the identity of the tracing module.
Compared with the prior art, the invention divides the nodes of the block chain network into a plurality of node clusters by arranging the block chain network, the tracing module and the storage module, the storage module stores the information into the corresponding node clusters according to the industrial chain steps corresponding to the information to be stored, the retrieval is convenient, the storage module traces back the product information, the specific access sequence and the access time interval are determined to access the block chain network according to the matching of the product characteristic information and the data in the database, the verification unit is arranged in the block chain nodes, the tracing module is verified in the tracing module access process, the access sequence and the access time interval are verified when the identity is verified and 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 and is not easy to forge or obtain in advance, the tracing efficiency is improved, and the data security is ensured by multiple verifications.
Particularly, when the storage module stores the industrial chain information of the product, the storage module is divided into a plurality of information segments according to the corresponding industrial chain steps and stores the information segments into different node clusters, the association relationship between the node clusters and the industrial chain steps is established in advance, the information segments are stored into the nodes which already store the industrial chain information of the corresponding product for the storage of the information segments, the data tracing is facilitated, the data are stored into different node clusters in a classified mode, the subsequent tracing retrieval is faster, when only one industrial chain step of the product needs to be traced, the nodes in the node clusters corresponding to the industrial chain step are directly accessed, the data tracing number is reduced, and the tracing efficiency is improved.
Particularly, the tracing module is connected with the database, after a demand request sent by a demand end is received, the information characteristic parameter K is calculated according to the characteristic information of the product, the information characteristic parameter K is determined according to the production time of the product and the number of times of uploading the industrial chain information generated in each industrial chain step of the product to the block chain network, the information characteristic parameter K can generate fluctuation change along with the circulation of the product in the industrial chain, the tracing module has certain standard property for the characteristics of the product, the tracing module is matched with the data in the database according to the product information characteristic parameter K, the block chain link points are visited after a specific visit sequence and visit time interval are selected, and for a single product, the corresponding product information characteristic K can change along with the circulation of the product in each industrial chain step, so that a counterfeiter cannot determine the visit sequence and visit time interval and cannot pass verification subsequently, thereby avoiding the leakage of data in the tracing process and ensuring the data safety.
Particularly, the verification unit is arranged in a block chain node and is used for verifying a tracing module, wherein the verification unit comprises identity verification, access sequence verification and access interval verification, necessary identity verification is firstly carried out, then whether a previous node accessed by the tracing module and a current access node belong to the same node cluster is judged, namely whether the accessed node cluster changes, the access sequence and the access time interval of the previous data set accessed by the tracing module are verified when the change occurs, the access sequence and the access time interval are introduced into verification, so that other access ends of a counterfeit verification unit are identified, the data security is further improved, information leakage is avoided, the access sequence and the access time interval verification are carried out under specific conditions, the verification times are reduced, and the tracing efficiency is further improved.
Particularly, in the verification of a single 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 accessed by the tracing module are correct or not, and in the case that the access sequence and the access time interval of the tracing module to a plurality of node clusters are correct in the single tracing process, the verification of the access sequence and the access time interval is not performed in the subsequent verification process, so that the verification times are reduced, and the data processing efficiency is improved.
Particularly, the database of the invention stores a plurality of sequencing data sets, and stores sequencing orders aiming at the nodes in each node cluster, and the sequencing in each sequencing data set is different, so that the access orders of the corresponding nodes of different products are different due to different corresponding product information characteristics K, and further, the access orders are difficult to be obtained and simulated in advance, the tracing module is prevented from being disguised, the verification reliability is improved, the stored information is prevented from being leaked, and the data safety is ensured.
Drawings
FIG. 1 is a schematic structural diagram of a block chain-based multi-source spatial data industry chain traceability system according to an embodiment of the present invention;
FIG. 2 is a partial diagram of a blockchain network according to an embodiment of the present invention;
in the figure: 1: node cluster, 2: and (4) nodes.
Detailed Description
In order that the objects and advantages of the invention will be more clearly understood, the invention is further described below with reference to examples; it should be understood that the specific embodiments described herein are merely illustrative of the invention and do not delimit 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 only for explaining the technical principle of the present invention, and do not limit the scope of the present invention.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are only for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed in a specific orientation, and be operated, 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 otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Please refer to fig. 1 and fig. 2, which are a schematic diagram of a block chain-based multi-source spatial data industry chain tracing system structure and a partial schematic diagram of a block chain network according to an embodiment of the present invention, the block chain-based multi-source spatial data industry chain tracing system of the present 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 relation with an industrial chain step;
the storage module is connected with the block chain network, receives industrial chain information generated in each industrial chain step, determines an industrial chain information storage mode according to the industrial chain step corresponding to the industrial chain information, and divides the industrial chain information into a plurality of information sections to be uploaded to a node cluster in association with the industrial chain step;
the tracing module is connected with the block chain network and used for accessing nodes of the block chain network according to tracing requirement information sent by a requirement end and extracting industrial chain information stored in the nodes; the tracing module calculates a product information characteristic parameter K according to production characteristic data of a product to be traced, matches the product information characteristic parameter K with a sorting data set in a database according to the product information characteristic parameter K, calls a sorting sequence and an access time interval of nodes in each node cluster in the matched sorting data set, visits nodes in a block chain network according to the sorting sequence and the access time interval, and traces industrial chain information of the product;
and each node is provided with a verification unit, the verification unit verifies the access request of the tracing module, including identity verification, and determines whether to perform access sequence verification and access time interval verification according to whether the previous node accessed by the tracing module and the current access node belong to the same node cluster, and the verification unit allows the tracing module to access the node when the verification is passed.
Specifically, the block chain network of the present invention is a mature prior art, in which the block chain network usually includes several nodes, and in the present invention, it only needs to have a plurality of nodes of the block chain network.
Specifically, the industrial chain of the present invention may include steps of production, ex-warehouse, transportation, transaction, circulation, and the like, and the production related data, the ex-warehouse related data, the transportation related data, the transaction related data, and the 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.
Specifically, the specific structures of the storage module and the trace back module are not limited in the present invention, and it should be understood by those skilled in the art that the present invention only needs to complete the receiving and sending of data and the data processing, and details are not described herein.
Specifically, the verification unit may use multiple schemes for verifying the identity, and may use a private key verification method or other encryption methods, which are not described herein again.
Specifically, the storage module determines an industrial chain information storage manner according to an industrial chain step corresponding to industrial chain information, wherein the storage module determines a product corresponding to the industrial chain information, the storage module determines whether a node exists in a node cluster which is associated with the industrial chain step and stores the industrial chain information of the product,
if the storage module judges that nodes exist in a node cluster which has an association relation with an industrial chain step to which the industrial chain information belongs and stores the industrial chain information of the product, the storage module determines the number of the nodes which store 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 which stores the industrial chain information of the product;
if the storage module judges that no node exists in the node cluster which has an association relation with the industrial chain step to which the industrial chain information needs to be stored, the storage module divides the industrial chain information into a plurality of information segments and randomly stores each information segment into each node of the node cluster.
Specifically, when the storage module stores the industrial chain information of the product, the storage module is divided into a plurality of information segments according to the corresponding industrial chain steps and stores the information segments into different node clusters, the association relationship between the node clusters and the industrial chain steps is established in advance, the information segments are stored into the nodes which already store the industrial chain information of the corresponding product for the storage of the information segments, the data tracing is facilitated, the data are stored into different node clusters in a classified mode, the subsequent tracing retrieval is faster, when only one industrial chain step of the product needs to be traced, the nodes in the node clusters corresponding to the industrial chain step are directly accessed, the data tracing number is reduced, and the tracing efficiency is improved.
Specifically, the tracing module acquires tracing requirement information sent by a requirement end, the tracing requirement information comprises an information code of a product, the tracing module identifies a corresponding product according to the information code and calls production characteristic data of the product to a marking node, the production characteristic data comprises production time of the product and the number of times of uploading industrial chain data generated in each industrial chain step of the product to a block chain network, the tracing module calculates a product information characteristic parameter K according to the production characteristic data and a formula (1), and calls a sorting data set in a database according to the product information characteristic parameter K to determine an access sequence and an access time interval,
Figure 219978DEST_PATH_IMAGE001
(1)
in the formula (1), T represents a time period from a production time of the product to a time when the tracing module receives the demand information, ni represents a number of times that data generated in the ith step of the industrial chain corresponding to the product is uploaded to a block chain network, and α represents a weight parameter.
Specifically, the tracing module is connected to a database, a plurality of sorting data sets are stored in the database, each sorting data set includes 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 includes a data interval and an access time interval, the data intervals and the access time intervals in each sorting data set are different, the tracing module matches the product information characteristic parameter K with the data intervals in the sorting data sets and calls the matched sorting data sets, wherein,
if the product information characteristic parameter K belongs to a data interval in the sorted data set, the tracing module judges that the information characteristic parameter K is matched with the sorted data set, calls the sorted data set, and visits and traces the industrial chain information of the product to the nodes in the block chain network according to the sorting sequence and the visit time interval of the nodes in each node cluster in the matched sorted data set.
Specifically, the tracing module is connected with the database, after a demand request sent by a demand end is received, the information characteristic parameter K is calculated according to the characteristic information of the product, the information characteristic parameter K is determined according to the production time of the product and the number of times of uploading the industrial chain information generated in each industrial chain step of the product to the block chain network, the information characteristic parameter K generates fluctuation change along with the circulation of the product in the industrial chain and has certain standard performance on the characteristics of the product, the tracing module is matched with the data in the database according to the product information characteristic parameter K, accesses the block chain link points after selecting a specific access sequence and an access time interval, and for a single product, the corresponding product information characteristic K changes along with the 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 verify subsequently, thereby avoiding the leakage of data in the tracing process and ensuring the data safety.
Specifically, the tracing module determines an industry chain step to which industry chain information to be traced belongs according to the tracing requirement information, and first accesses a node in a node cluster associated with the industry chain step.
Specifically, each node of the block chain network is provided with an authentication unit, the authentication unit receives an access request and authenticates a tracing module which sends the access request,
wherein, the verification unit verifies the identity of the tracing module, the access sequence of the tracing module to the node and the access time interval of the tracing module to the node,
when the identity verification fails, the verification unit prohibits the tracing module from accessing the node,
when the identity authentication is passed, the authentication unit starts to judge whether a previous node visited by the tracing module in a single tracing process of the industrial chain information of the product and a current visited node belong to the same node cluster,
if the previous node visited by the tracing module and the current access node do not belong to the same node cluster, the verification unit determines a node cluster corresponding to the previous node visited by the tracing module, calls an access record of each node in the node cluster, acquires the access record, determines an actual access sequence and an actual access time interval of each node by the tracing module, 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 both correct, the verification unit judges that the verification is passed and allows the tracing module to access;
if the previous node accessed by the tracing module and the current access node do not belong to the same node cluster, the verification unit judges that the verification is passed and allows the tracing module to access.
Specifically, the verification unit is connected with a database, calls an information code sent by the tracing module, identifies a corresponding product according to the information code, calls production characteristic data of the product to the marking node, calculates a product characteristic information parameter K, calls a sorting data set in the database according to the product characteristic information parameter K, determines a sorting sequence and an access time interval,
and comparing the access sequence and access time interval with the actual access sequence and actual access time interval,
if the actual access sequence is the same as the sorting sequence, the actual access sequence is judged to be 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, data security is improved, information leakage is avoided, the access sequence and the access time interval are verified under specific conditions, the verification times are reduced, and the tracing efficiency is 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, data security is improved, information leakage is avoided, the access sequence and the access time interval are verified under specific conditions, the verification times are reduced, and tracing efficiency is improved.
Specifically, 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 arranged in the verification unit, when the tracing module traces 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,
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, the verification unit of the present invention determines whether the access sequence and the access time interval of the node cluster accessed by the trace back module are correct during the verification of the single trace back process of the trace back module, and does not perform the verification of the access sequence and the access time interval during the subsequent verification process in order to reduce the verification times and improve the data processing efficiency when the access sequence and the access time interval of the node cluster accessed by the trace back module are both correct during the single trace back process.
Specifically, the verification unit obtains records of all nodes which are allowed to be accessed by the tracing module in a single tracing process from each node, and determines the number N0 of nodes which store industry chain information corresponding to products to be traced,
if the number of the node clusters corresponding to the allowed access nodes exceeds the preset comparison number N in the single tracing process of the tracing module, N is more than or equal to 2, the verification unit compares N0 with a preset verification comparison parameter M to judge whether to adjust the verification mode of the tracing module, wherein,
when N0 is larger than or equal to M, the verification unit judges that the verification mode of the tracing module is adjusted, and only identity verification is carried out when the verification unit verifies the access request of the tracing module in the current tracing process;
and when N0 is less than M, the verification unit verifies the tracing module in the original mode.
Specifically, a marked node cluster is further arranged in the block chain network, the marked 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 comprises production time of the product and the number of times that industrial chain data generated in each industrial chain step of the product is uploaded to the block chain network, and a verification unit in each marked node only verifies the identity of the tracing module.
So far, the technical solutions of the present invention have 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 the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can be within the protection scope of the invention.

Claims (10)

1. The utility model provides a multisource spatial data industry chain traceability system based on block chain which characterized in that includes:
the system comprises a block chain network and a plurality of industrial chain steps, wherein the block chain network comprises a plurality of node clusters, each node cluster comprises a plurality of nodes, and an association relation is established between each node cluster and each industrial chain step;
the storage module is connected with the block chain network, receives industrial chain information generated in each industrial chain step, determines an industrial chain information storage mode according to the industrial chain step corresponding to the industrial chain information, and divides the industrial chain information into a plurality of information sections to be uploaded to a node cluster in association with the industrial chain step;
the tracing module is connected with the block chain network and used for accessing nodes of the block chain network according to tracing demand information sent by a demand end and extracting industrial chain information stored in the nodes; the tracing module calculates a product information characteristic parameter K according to production characteristic data of a product 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, visits the nodes in a block chain network according to the sorting sequence and the access time interval, and traces industrial chain information of the product;
and each node is provided with a verification unit, the verification unit verifies the access request of the tracing module, including identity verification, and determines whether to perform access sequence verification and access time interval verification according to whether the previous node accessed by the tracing module and the current access node belong to the same node cluster, and the verification unit allows the tracing module to access the node when the verification is passed.
2. The block chain-based multi-source spatial data industry chain traceability system of claim 1, wherein the storage module determines an industry chain information storage manner according to an industry chain step corresponding to industry chain information, wherein the storage module determines a product corresponding to the industry chain information, the storage module determines whether a node exists in a node cluster having an association relationship with the industry chain step to store the industry chain information of the product,
if the storage module judges that nodes exist in a node cluster which has an association relation with an industrial chain step to which the industrial chain information belongs and stores the industrial chain information of the product, the storage module determines the number of the nodes which store 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 which stores the industrial chain information of the product;
if the storage module judges that no node exists in the node cluster which has an association relation with the industrial chain step to which the industrial chain information needs to be stored, the storage module divides the industrial chain information into a plurality of information segments and randomly stores each information segment into each node of the node cluster.
3. The block chain-based multi-source spatial data industry chain traceability system of claim 1, wherein the traceability module obtains traceability requirement information sent by a requirement end, the traceability requirement information comprises an information code of a product, the traceability module identifies a corresponding product according to the information code and calls production characteristic data of the product to a marking node, the production characteristic data comprises production time of the product and the number of times of uploading industry chain data generated in each industry chain step of the product to a block chain network, the traceability module calculates a product information characteristic parameter K according to the production characteristic data and a formula (1), and determines an access sequence and an access time interval according to a sorting data set in a product information characteristic parameter K calling database,
Figure DEST_PATH_IMAGE001
(1)
in the formula (1), T represents a time period from a production time of the product to a time when the tracing module receives the demand information, ni represents a number of times that data generated in the ith step of the industrial chain corresponding to the product is uploaded to a block chain network, and α represents a weight parameter.
4. The block chain-based multi-source spatial data industry chain traceability system of claim 3, wherein the traceability module is connected to a database, the database stores a plurality of sorted data sets, each sorted data set comprises a sorting order of nodes in each node cluster, the sorting order of the nodes in each node cluster in each sorted data set is different, each sorted data set further comprises a data interval and an access time interval, the data interval and the access time interval in each sorted data set are different, the traceability module matches the product information characteristic parameter K with the data interval in the sorted data set and calls the matched sorted data set, wherein,
if the product information characteristic parameter K belongs to the data interval in the sorting data set, the tracing module judges that the information characteristic parameter K is matched with the sorting data set, calls the sorting data set, and visits and traces the industrial chain information of the product to the nodes in the block chain network according to the sorting sequence and the visit time interval of the nodes in each node cluster in the matched sorting data set.
5. The block chain-based multi-source spatial data industry chain traceability system of claim 4, wherein the traceability module determines an industry chain step to which industry chain information to be traced belongs according to the traceability requirement information, and first accesses a node in a node cluster associated with the industry chain step.
6. The block chain-based multi-source spatial data industry chain traceability system of claim 5, wherein each node of the block chain network is provided with a verification unit, the verification unit receives an access request and verifies a traceability module sending the access request,
wherein, the verification unit verifies the identity of the tracing module, the access sequence of the tracing module to the node and the access time interval of the tracing module to the node,
when the identity verification fails, the verification unit prohibits the tracing module from accessing the node,
when the identity authentication is passed, the authentication unit starts to judge whether a previous node visited by the tracing module in a single tracing process of the industrial chain information of the product and a current visited node belong to the same node cluster,
if the previous node visited by the tracing module and the current access node do not belong to the same node cluster, the verification unit determines a node cluster corresponding to the previous node visited by the tracing module, calls an access record of each node in the node cluster, acquires the access record, determines an actual access sequence and an actual access time interval of each node by the tracing module, 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 both correct, the verification unit judges that the verification is passed and allows the tracing module to access;
if the previous node accessed by the tracing module and the current access node do not belong to the same node cluster, the verification unit judges that the verification is passed and allows the tracing module to access.
7. The block chain-based multi-source spatial data industry chain traceability system of claim 6, wherein the verification unit is connected to a database, the verification unit calls an information code sent by the traceability module, identifies a corresponding product according to the information code, calls production characteristic data of the product to the marking node, calculates a product characteristic information parameter K, calls a sorting data set in the database according to the product information characteristic parameter K, determines a sorting order and an access time interval,
and comparing the access sequence and access time interval with the actual access sequence and actual access time interval,
if the actual access sequence is the same as the sorting sequence, the actual access sequence is judged to be 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 block chain-based multisource spatial data industry chain traceability system of claim 6, wherein the verification unit determines whether the traceability module accesses to a node belongs to a single traceability process,
a preset minimum time interval is arranged in the verification unit, when the tracing module traces industry 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,
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 block chain-based multi-source spatial data industry chain traceability system of claim 8, wherein the verification unit obtains records of all nodes that the traceability module is allowed to access in a single traceability process from each node, and determines the number N0 of nodes that store industry chain information corresponding to a product to be traced in all nodes,
if the number of the node clusters corresponding to the allowed access nodes exceeds the preset comparison number N in the single tracing process of the tracing module, N is more than or equal to 2, the verification unit compares N0 with a preset verification comparison parameter M to judge whether to adjust the verification mode of the tracing module, wherein,
when N0 is larger than or equal to M, the verification unit judges that the verification mode of the tracing module is adjusted, and only identity verification is carried out when the verification unit verifies the access request of the tracing module in the current tracing process;
and when N0 is less than M, the verification unit verifies the tracing module in the original mode.
10. The block chain-based multi-source spatial data industry chain traceability system of claim 1, wherein a marker node cluster is further arranged in the block chain network, the marker 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 comprises production time of the product and the number of times that the industry chain data generated in each industry chain step of the product is uploaded to the block chain network, and a verification unit in each marked node only verifies the identity of the traceability module.
CN202211316402.3A 2022-10-26 2022-10-26 Multi-source spatial data industrial chain traceability system based on block chain Active CN115760150B (en)

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 true CN115760150A (en) 2023-03-07
CN115760150B 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109034833A (en) * 2018-06-16 2018-12-18 复旦大学 A kind of product back-tracing information management system and method based on block chain
CN109191003A (en) * 2018-09-25 2019-01-11 仲恺农业工程学院 Fruits and vegetables 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
US20210004840A1 (en) * 2018-03-07 2021-01-07 Beijing Anxunben Technology Co., Ltd Product having dual layer identification codes, product traceability and anti-counterfeit authentication method and apparatus
CN112733204A (en) * 2021-01-16 2021-04-30 阳江市链点创新科技发展有限公司 Anti-counterfeiting tracing method based on block chain and multiple signature technology
WO2021236762A1 (en) * 2020-05-19 2021-11-25 Covestro Llc Blockchain verification system for manufactured products
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210004840A1 (en) * 2018-03-07 2021-01-07 Beijing Anxunben Technology Co., Ltd Product having dual layer identification codes, product traceability and anti-counterfeit authentication method and apparatus
CN109034833A (en) * 2018-06-16 2018-12-18 复旦大学 A kind of product back-tracing information management system and method based on block chain
CN109191003A (en) * 2018-09-25 2019-01-11 仲恺农业工程学院 Fruits and vegetables 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
CN112733204A (en) * 2021-01-16 2021-04-30 阳江市链点创新科技发展有限公司 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

Also Published As

Publication number Publication date
CN115760150B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN109034833B (en) Product tracing information management system and method based on block chain
CN111737360B (en) Block chain-based equipment management method and device and computer equipment
CN110602239A (en) Block chain information storage method and related equipment
CN101902441B (en) Intrusion detection method capable of realizing sequence attacking event detection
CN107067157A (en) Business risk appraisal procedure, device and air control system
CN109191142B (en) Commodity tracing method, equipment and system
CN112131317B (en) Data storage safety system based on block chain technology
CN110493181A (en) User behavior detection method, device, computer equipment and storage medium
CN113902384B (en) Tracing method and system based on RFID and intelligent contract
CN110427424A (en) Business datum checking method, device, computer equipment and storage medium
CN113094761B (en) Method for monitoring federated learning data tamper-proofing and related device
CN109522988B (en) Method and system for updating product anti-counterfeiting electronic label information
CN109360008B (en) Product anti-counterfeiting authentication updating method and system
CN109284333A (en) Industrial chain data maintaining method and platform based on block chain
CN115208628B (en) Data integrity verification method based on block chain
CN105849739B (en) Authentication system and authentication method
CN105847009A (en) RFID bidirectional authentication method meeting requirement on backward security
CN115760150A (en) Multisource spatial data industrial chain traceability system based on block chain
CN104394166A (en) Certificate anti-fake authentication system and method for mobile terminal under cloud environment
CN103139136B (en) The management process of a kind of password and equipment
CN109583555B (en) Product anti-counterfeiting electronic tag authentication method and system
US9438425B2 (en) Robust MAC aggregation with short MAC tags
CN114726609B (en) Encryption data verification method and device based on block chain and electronic equipment
CN115392927A (en) Data tracing system and data tracing method based on block chain
CN114078061A (en) Electric power core data traceability system based on block chain

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