CN117113419A - Information sharing method and device based on multi-stage supply chain - Google Patents

Information sharing method and device based on multi-stage supply chain Download PDF

Info

Publication number
CN117113419A
CN117113419A CN202311350727.8A CN202311350727A CN117113419A CN 117113419 A CN117113419 A CN 117113419A CN 202311350727 A CN202311350727 A CN 202311350727A CN 117113419 A CN117113419 A CN 117113419A
Authority
CN
China
Prior art keywords
chain
agricultural product
data
hash value
storage
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
CN202311350727.8A
Other languages
Chinese (zh)
Other versions
CN117113419B (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.)
Shenzhen Zhongnong Yixun Information Technology Co ltd
Original Assignee
Shenzhen Zhongnong Yixun Information 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 Shenzhen Zhongnong Yixun Information Technology Co ltd filed Critical Shenzhen Zhongnong Yixun Information Technology Co ltd
Priority to CN202311350727.8A priority Critical patent/CN117113419B/en
Publication of CN117113419A publication Critical patent/CN117113419A/en
Application granted granted Critical
Publication of CN117113419B publication Critical patent/CN117113419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Agronomy & Crop Science (AREA)
  • Mining & Mineral Resources (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Primary Health Care (AREA)
  • Animal Husbandry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of agricultural data sharing, and discloses a multistage supply chain-based information sharing method, which comprises the following steps: the method comprises the steps of starting a multi-stage supply chain formed by an agricultural product packing chain and an agricultural product storage chain, wherein the agricultural product packing chain and the agricultural product storage chain are formed by a plurality of processing units, the processing units can generate processing data comprising sensitive data and non-sensitive data, the non-sensitive data comprises structured data and monitoring videos, tree hash values are set to serve as access passwords for accessing the structured data, the monitoring videos are stored in a central storage space or an associated storage space, the sensitive data are stored in a second storage space, the second storage space is managed by a sensitive data management system comprising a re-encryption node and a data correction node, and when the processing units need to access the sensitive data, the sensitive data are acquired by the re-encryption node and the data correction node and sent to the processing units. The invention mainly aims to solve the problem of low information sharing efficiency and safety.

Description

Information sharing method and device based on multi-stage supply chain
Technical Field
The invention relates to a multi-stage supply chain-based information sharing method, and belongs to the technical field of agricultural data sharing.
Background
Along with the continuous development of science and technology, the intelligent agricultural products are gradually realized from planting to selling, and more agricultural product management is introduced into a multi-stage supply chain mode, so that the management efficiency of the agricultural products is improved.
A precondition for improving the management efficiency of agricultural products from planting to selling using a multi-stage supply chain is to share data of each supply chain in time. The data sharing of the agricultural product multi-stage supply chain can realize the transparency of the agricultural product supply chain, improve the quality safety and traceability of agricultural products, and simultaneously, the data sharing can also improve the efficiency of the agricultural product supply chain, reduce the transitional consumption of manpower and time in the middle link, thereby improving the response speed of the agricultural product supply chain.
At present, information sharing based on a multi-level supply chain mainly adopts a password access mode, namely: the processing data generated by each processing unit of the multi-stage supply chain is stored in a designated database, and then a corresponding access password is generated, and the access password of each processing unit may be different, so that each processing unit can access the processing data in the database based on the access password.
The method can realize information sharing of a multi-stage supply chain, but has relatively low safety, part of processing data generated by each processing unit in the supply chain belongs to extremely private sensitive data, and part of the processing data is insensitive, but has higher updating speed.
Disclosure of Invention
The invention provides a multi-stage supply chain-based information sharing method, a multi-stage supply chain-based information sharing device and a computer-readable storage medium, and mainly aims to solve the problems that efficiency is low and data security cannot be guaranteed during information sharing.
In order to achieve the above object, the present invention provides a multi-stage supply chain based information sharing method, including:
receiving an information sharing instruction of a multi-stage supply chain, wherein the multi-stage supply chain consists of an agricultural product packing chain and an agricultural product storage chain, the agricultural product packing chain and the agricultural product storage chain are provided with a plurality of processing units, the agricultural product packing chain comprises an agricultural product collecting unit and a quality inspection packing unit, the agricultural product storage chain comprises a cold chain conveying unit, a discharging and checking unit and a warehousing storage unit, the number of the agricultural product packing chains is only 1, the number of the agricultural product storage chains is at least 2, and each agricultural product storage chain acquires agricultural products from a unique agricultural product packing chain;
accessing each processing unit of the multi-level supply chain according to the information sharing instruction, and when the access is successful, acquiring processing data of the agricultural products processed by each processing unit, wherein the processing data consists of sensitive data and non-sensitive data, the non-sensitive data comprises structured data and monitoring video of the agricultural products, the sensitive data comprises residence time and quality loss of the agricultural products in the current processing unit, and characteristic data of the current processing unit, and the characteristic data comprises the number of available staff, weather and throughput of the agricultural products processed per hour of the processing unit;
Summarizing and removing repeated structured data to obtain structured summarized data, after generating a tree hash value of the structured summarized data, sending the tree hash value to each processing unit, simultaneously storing the structured summarized data into a first database, and setting the tree hash value as an access password for accessing the structured summarized data;
a first storage space for storing monitoring videos is built in a first database, wherein the first storage space consists of a central storage space and associated storage spaces, the central storage space is used for storing the monitoring videos of the agricultural product packing chains, the associated storage spaces are used for storing the monitoring videos of the agricultural product storage chains, the number of the central storage spaces is only 1, and the number of the associated storage spaces is the same as that of the agricultural product storage chains;
according to whether the monitoring video belongs to a storage agricultural product packing chain or an agricultural product storage chain, correspondingly storing the monitoring video in a central storage space or an associated storage space, and setting a corresponding access password according to the tree hash value;
storing the sensitive data into a second storage space, wherein the second storage space is managed by a pre-built sensitive data management system, and the sensitive data management system further comprises an authorized access node, a re-encryption node and a data proofreading node;
When the processing unit needs to access the sensitive data, the authorized access node is used for judging the validity of the processing unit, and when the validity passes, the re-encryption node and the data check node are used for acquiring the sensitive data and sending the sensitive data to the processing unit, so that the information sharing of the multi-stage supply chain is completed.
Optionally, the generating a tree hash value of the structured summary data includes:
generating a hash value of the structured data of each processing unit to obtain a structured hash value;
obtaining a supply number of each processing unit in a multi-stage supply chain, and performing hash operation again on the supply number and the structured hash value to obtain a supply number hash value;
and arranging the supply number hash value of each processing unit according to the tree structure to obtain a tree hash value.
Optionally, the acquiring the supply number of each processing unit in the multi-stage supply chain includes:
confirming the version number of the multi-stage supply chain for executing the information sharing and the number of agricultural product storage chains included in the multi-stage supply chain;
sequentially numbering an agricultural product packing chain or an agricultural product storage chain to obtain a chain number, wherein the numbering mode is as follows: the packing chain of the agricultural products is numbered 1, the 1 st agricultural product storage chain is numbered 2, the 2 nd agricultural product storage chain is numbered 3, … nThe number of the agricultural product storage chain isn+1Wherein, the method comprises the steps of, wherein,nindicating the number of agricultural product storage chains;
confirming the operation sequence number of each processing unit in the agricultural product packing chain or the agricultural product storage chain;
and constructing and obtaining the supply number according to the rule of the version number, the chain number and the operation sequence number.
Optionally, the arranging the supply number hash value of each processing unit according to the tree structure to obtain a tree hash value includes:
generating unique identifiers of tree root nodes by taking a multi-stage supply chain as the tree root nodes to obtain the root node identifiers, wherein the number of the tree root nodes is only 1;
taking the agricultural product packing chain as a first non-leaf node, generating a first non-leaf identifier of the first non-leaf node, taking the agricultural product storage chain as a second non-leaf node, and generating a second non-leaf identifier of the second non-leaf node;
and generating a tree hash value according to the root node identifier, the first non-leaf identifier, the second non-leaf identifier and the supply number hash value, wherein the number of nodes of the first non-leaf node is only 1, the number of nodes of the second non-leaf node is the same as the number of chains of the agricultural product storage chain, the second non-leaf node is connected with the first non-leaf node, the first non-leaf node is connected with the root node of the tree, the supply number hash value belonging to the agricultural product packing chain is connected with the first non-leaf node, and the supply number hash value belonging to different agricultural product storage chains is respectively connected with the corresponding second non-leaf node.
Optionally, the constructing a first storage space in the first database for storing the surveillance video includes:
creating a central storage space in a first database, wherein the central storage space consists of Ha Xitou, storage units and hash tails, and the number of the storage units is the same as the number of processing units included in an agricultural product packing chain;
acquiring a first non-leaf identifier of the agricultural product packing chain from the tree hash value, and placing the first non-leaf identifier in Ha Xitou;
obtaining a supply number hash value of each processing unit of the agricultural product packing chain, and connecting each supply number hash value end to end according to the sequence of the processing units in the agricultural product packing chain to obtain a packing hash chain of a central storage space;
after the packed hash chain is placed in Ha Xiwei, a plurality of associated storage spaces are generated by taking the central storage space as the center, wherein the number of the associated storage spaces is the same as that of the agricultural product storage chains, each associated storage space is connected with the central storage space and consists of Ha Xitou, storage units and hash tails, and the number of the storage units is the same as that of the processing units included in the corresponding agricultural product storage chains;
The first non-leaf identifier and the corresponding second non-leaf identifier of the agricultural product storage chain are placed in the hash header of the associated storage space in the form of the first non-leaf identifier + the second non-leaf identifier, and,
obtaining a supply number hash value of each processing unit of a corresponding agricultural product storage chain, and connecting each supply number hash value end to end according to the sequence of the processing units in the agricultural product storage chain to obtain a storage hash chain of an associated storage space;
a central storage space including a plurality of associated storage spaces is formed as a first storage space for storing a surveillance video.
Optionally, the storing the monitoring video in the central storage space or the associated storage space according to whether the monitoring video belongs to a storage agricultural product packing chain or an agricultural product storage chain includes:
the method comprises the steps of giving a supply number of each storage unit in a central storage space and an associated storage space, wherein the supply numbers of the storage units and the processing units are the same;
and storing the monitoring video generated by each processing unit into a storage unit with the same supply number.
Optionally, the setting the corresponding access password according to the tree hash value includes:
Setting an access password for accessing the first storage space to obtain a first access password, wherein the first access password is required to be different from the tree-shaped hash value;
splitting the tree hash value after the first access password is set, and obtaining a plurality of provisioning serial number hash values;
setting an access password of each storage unit to obtain a unit access password, wherein the access password comprises a first access password and a unit access password, and the unit access password is a corresponding supply number hash value;
and uniformly transmitting the first access password to each processing unit, and simultaneously informing each processing unit to access the corresponding monitoring video to supply the serial number hash value for the monitoring video.
Optionally, the setting the corresponding access password according to the tree hash value further includes:
if one processing unit wants to share the monitoring video with other processing units, confirming that the processing unit which wants to share the monitoring video is a sharing initiating unit, and the processing unit which is requested to share the monitoring video is a sharing receiving unit;
obtaining a supply number hash value of a sharing initiating unit and generating a sharing video instruction comprising the supply number hash value;
and sending the shared video instruction to a shared receiving unit, and if the shared receiving unit agrees to share the monitoring video, automatically sending the hash value of the supply number of the shared receiving unit to a sharing initiating unit, thereby completing the sharing operation of the monitoring video among the processing units.
Optionally, the storing the sensitive data in the second storage space includes:
generating a hash value of the sensitive data generated by each processing unit to obtain a sensitive hash value;
encrypting the sensitive data of each processing unit by using the re-encryption node to obtain a re-encryption ciphertext, wherein the encryption process comprises the following steps:
generating a public-private key pair of the processing unit, and performing primary encryption on sensitive data by utilizing the public key to obtain a first encrypted ciphertext;
generating an encrypted ciphertext, randomly generating an access public key, and generating a re-encryption key based on the access public key and a public-private key pair;
re-encrypting the first encrypted ciphertext by using a re-encryption key to obtain the re-encrypted ciphertext;
and sending the hash value of the sensitive data to a data proofreading node, and simultaneously, storing each re-encrypted ciphertext into a second storage space separately.
Optionally, the obtaining sensitive data by using the re-encryption node and the data calibration node and sending the sensitive data to the processing unit includes:
obtaining a private key in the public-private key pair from the re-encryption node, and decrypting the re-encryption ciphertext in the second storage space by using the private key to obtain decrypted data;
performing hash operation on the decrypted data to obtain a hash value of the decrypted data;
Transmitting the hash value of the decrypted data to a data proofreading node, and judging whether the hash value of the decrypted data is consistent with the hash value of the sensitive data in the data proofreading node;
if not, rejecting the access of the processing unit to the sensitive data, and if so, sending the sensitive data to the processing unit.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to implement the multi-level supply chain based information sharing method described above.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one instruction that is executed by a processor in an electronic device to implement the multi-stage supply chain-based information sharing method described above.
Compared with the prior art, the multi-stage supply chain is firstly constructed, the multi-stage supply chain is composed of the agricultural product packing chain and the agricultural product storage chain, the agricultural product packing chain and the agricultural product storage chain are composed of a plurality of processing units, the agricultural product packing chain comprises an agricultural product collecting unit and a quality inspection packing unit, the agricultural product storage chain comprises a cold chain conveying unit, a discharging and checking unit and a warehousing storage unit, the number of the agricultural product packing chains is only 1, the number of the agricultural product storage chains is at least 2, and each agricultural product storage chain acquires agricultural products from the only agricultural product packing chain. And accessing each processing unit of the multi-stage supply chain according to the information sharing instruction, and acquiring processing data of each processing unit for processing agricultural products when the access is successful, wherein the processing data consists of sensitive data and non-sensitive data, the non-sensitive data comprises structural data and monitoring video of the agricultural products, and the invention mainly adopts the same information sharing method but is divided into sensitive data and non-sensitive data based on the data characteristics of the supply chain, wherein the non-sensitive data adopts a high-efficiency information sharing method, and the sensitive data adopts a high-security method. Correspondingly, summarizing and eliminating repeated structured data to obtain structured summarized data, after generating tree hash values of the structured summarized data, sending the tree hash values to each processing unit, simultaneously storing the structured summarized data in a first database, setting the tree hash values as access passwords for accessing the structured summarized data, and constructing a first storage space for storing monitoring video in the first database, wherein the first storage space consists of a central storage space and associated storage spaces, the central storage space is used for storing monitoring video of an agricultural product packing chain, the associated storage spaces are used for storing monitoring video of the agricultural product storage chain, the number of the associated storage spaces is the same as the number of the agricultural product storage chains, and according to whether the monitoring video belongs to the agricultural product packing chain or the agricultural product storage chain, the tree hash values are correspondingly stored in the central storage space or the associated storage spaces, and setting corresponding access passwords according to the tree hash values The processing units of the agricultural product storage chain separately store the monitoring videos, the storage processes do not affect each other to store the monitoring videos independently, namely, the independence of the monitoring videos in storage is guaranteed, and the integrity is formed based on the structure of the first storage space. Finally, in order to improve the security of the sensitive data during sharing, the sensitive data is stored in a second storage space, wherein the second storage space is managed by a pre-built sensitive data management system, the sensitive data management system further comprises an authorized access node, a re-encryption node and a data checking node, and the nodes coordinate with each other to improve the security of the shared sensitive data.
Drawings
FIG. 1 is a flow chart of a multi-level supply chain based information sharing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device implementing the multi-level supply chain information sharing method according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
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 application.
The embodiment of the application provides a multi-level supply chain based information sharing method. The execution subject of the multi-level supply chain information sharing method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the multi-level supply chain based information sharing method may be performed by software or hardware installed at a terminal device or a server device. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Example 1:
referring to fig. 1, a flow chart of a multi-level supply chain information sharing method according to an embodiment of the application is shown. In this embodiment, the multi-level supply chain based information sharing method includes:
S1, receiving an information sharing instruction of a multi-stage supply chain, wherein the multi-stage supply chain is composed of an agricultural product packing chain and an agricultural product storage chain, the agricultural product packing chain and the agricultural product storage chain are composed of a plurality of processing units, the agricultural product packing chain comprises an agricultural product collecting unit and a quality inspection packing unit, the agricultural product storage chain comprises a cold chain conveying unit, a discharging and checking unit and a warehousing storage unit, the number of the agricultural product packing chains is only 1, the number of the agricultural product storage chains is at least 2, and each agricultural product storage chain acquires agricultural products from a unique agricultural product packing chain.
It should be explained that the information sharing instruction is generally initiated by a manager of the multi-level supply chain. Illustratively, the sheetlet is a supply chain manager of an agricultural company currently planning to distribute 1000 mu of agricultural products from a planting point to a point of sale, in order to reasonably distribute the agricultural products to each point of sale, to improve the optimal distribution of the agricultural products at the planting point to each point of sale, and to prevent each point of sale from excessively high or excessively low storage of the agricultural products, so that the sheetlet initiates the information sharing instruction, and the main purpose of the sheetlet is to share processing information of each processing unit in real time when the processing of the agricultural products is performed, so that the agricultural products at the planting point are optimally scheduled.
It is emphasized that in embodiments of the present invention, the multi-level supply chain is comprised of a produce baling chain and a produce storage chain. And the agricultural product packing chain comprises an agricultural product collecting unit and a quality inspection packing unit, and the agricultural product storage chain comprises a cold chain conveying unit, a discharging and checking unit and a warehousing storage unit. For example, 1000 mu of agricultural products need to be delivered from a planting point to a point of sale, the quality of each agricultural product capable of being delivered needs to be confirmed, for example, 900KG of agricultural products are collected from the 1000 mu of planting point, 10KG which does not meet the sales condition is removed through quality inspection, and the remaining 890KG of agricultural products can be packaged, so that the agricultural product packaging chain can be formed by collection, quality inspection and packaging.
Further, after packaging is completed, the packaged 890KG agricultural products need to be distributed to different sales points, for example, the small sheets need to be distributed to A, B and C three sales points at this time, 3 sales points form 3 agricultural product storage chains, and each agricultural product storage chain consists of a cold chain conveying unit, a unloading checking unit and a warehousing storage unit.
It is important to note that, from the above description, there are only 1 agricultural product packing chain, and there are at least 2 agricultural product storage chains, that is, the agricultural products obtained by each agricultural product storage chain are all derived from the same agricultural product packing chain.
S2, accessing each processing unit of the multi-stage supply chain according to the information sharing instruction, and when the access is successful, acquiring processing data of the agricultural products processed by each processing unit, wherein the processing data consists of sensitive data and non-sensitive data, the non-sensitive data comprises structured data and monitoring video of the agricultural products, the sensitive data comprises residence time and quality loss of the agricultural products in the current processing unit, and characteristic data of the current processing unit, and the characteristic data comprises the number of staff, weather and throughput of the agricultural products processed per hour which can be dominated by the processing unit.
It should be explained that each processing unit has different processing tasks. For example, the processing task of the agricultural product collecting unit is to collect saleable agricultural products from a 1000 mu planting point, the processing task of the quality inspection packaging unit is to remove low-quality agricultural products collected by the agricultural product collecting unit, package the remaining agricultural products, and the like, and each processing unit generates corresponding processing data when processing the agricultural products.
In order to improve the intelligence of information sharing, the embodiment of the invention divides the processing data generated by the processing unit into sensitive data and non-sensitive data. The non-sensitive data comprises structural data of agricultural products and monitoring video. Further, the structured data of the agricultural product includes the kind of the agricultural product, the picking time when picking from the planting point, the planting time at the planting point, the seed model, the container model, the volume used by the processing unit when processing the agricultural product, and the like. Meanwhile, when each processing unit processes agricultural products, the system further comprises a monitoring video in order to improve processing standardization and safety.
Furthermore, the non-sensitive data can be shared by each processing unit at the same time, so that the main purpose of the non-sensitive data is to improve the breadth of information sharing, and therefore, each processing unit can conveniently achieve the purpose of information sharing, but the key point is that the sensitive data cannot be shared by each processing unit because the sensitive data relates to the actual condition of processing agricultural products by each processing unit, so as to improve the management capability of a multi-stage supply chain and strengthen the information security of the multi-stage supply chain.
The sensitive data includes residence time of the agricultural product in the current processing unit, quality loss, and characteristic data of the current processing unit, wherein the characteristic data includes the number of available employees of the processing unit, weather, and throughput of processed agricultural product per hour. For example, when the quality inspection packaging unit is used for processing tomatoes with total weight of 300KG, but the quality loss is 50KG when the tomatoes with the weight of 50KG are broken due to improper packaging operation, and in addition, the main reason for breaking the tomatoes is that the quality inspection packaging unit and the characteristic data of the processing unit do not meet the actual requirements, the number of staff can be controlled by the quality inspection packaging unit to be only 2, and the weather is storm.
And S3, summarizing and eliminating repeated structured data to obtain structured summarized data, after generating a tree-shaped hash value of the structured summarized data, sending the tree-shaped hash value to each processing unit, simultaneously storing the structured summarized data into a first database, and setting the tree-shaped hash value as an access password for accessing the structured summarized data.
It can be understood that the structured data collected by each processing unit may have the same data and different data, so in order to prevent the waste of storage resources, the embodiment of the invention needs to reject repeated structured data. Illustratively, the above-mentioned structured data of the agricultural product collecting unit includes the kind of agricultural product, picking time when picking from the planting point, etc., and the quality inspection packing unit includes the kind of agricultural product, picking time, and also includes the container model number, volume used for packing the agricultural product, so that the structured summarized data is obtained after eliminating the repeated data of the kind of agricultural product, picking time, etc.
Further, the generating a tree hash value of the structured summary data includes:
generating a hash value of the structured data of each processing unit to obtain a structured hash value;
obtaining a supply number of each processing unit in a multi-stage supply chain, and performing hash operation again on the supply number and the structured hash value to obtain a supply number hash value;
and arranging the supply number hash value of each processing unit according to the tree structure to obtain a tree hash value.
It should be explained that the hash algorithm is a function that can take as input data of arbitrary length and then map it to a string of fixed length. For example, the corresponding hash value may be generated according to the structured data of the cold chain transport unit, that is, the structured hash value of the cold chain transport unit.
In detail, the acquiring the supply number of each processing unit in the multi-stage supply chain includes:
confirming the version number of the multi-stage supply chain for executing the information sharing and the number of agricultural product storage chains included in the multi-stage supply chain;
sequentially numbering an agricultural product packing chain or an agricultural product storage chain to obtain a chain number, wherein the numbering mode is as follows: the packing chain of the agricultural products is numbered 1, the 1 st agricultural product storage chain is numbered 2, the 2 nd agricultural product storage chain is numbered 3, …nThe number of the agricultural product storage chain isn+1Wherein, the method comprises the steps of, wherein,nindicating the number of agricultural product storage chains;
confirming the operation sequence number of each processing unit in the agricultural product packing chain or the agricultural product storage chain;
and constructing and obtaining the supply number according to the rule of the version number, the chain number and the operation sequence number.
In addition, each processing unit has a unique supply number in the multi-stage supply chain, and if the unloading checking unit belongs to the agricultural product storage chain of the multi-stage supply chain, the supply number may be: KT927-3-2, wherein KT927 represents a multi-stage supply chain, 3 represents a 2 nd agricultural product packing chain in the multi-stage supply chain, 2 represents that in the 2 nd agricultural product packing chain, the unloading inspection unit belongs to the 2 nd step according to the operation flow, namely the operation sequence number is 2, and the like, and the supply number of the quality inspection packing unit can be: KT927-1-2, the intermediate numeral 1 is denoted as the chain number of the agricultural product packing chain. As can be seen from the above description, in the embodiment of the present invention, the supply numbers KT927-3-2, KT927-1-2 and the structured hash values corresponding to the supply numbers are used as the input of the hash algorithm again, and the hash operation is performed again, so as to obtain the hash value of the supply number.
In detail, the arranging the supply number hash value of each processing unit according to the tree structure to obtain a tree hash value includes:
generating unique identifiers of tree root nodes by taking a multi-stage supply chain as the tree root nodes to obtain the root node identifiers, wherein the number of the tree root nodes is only 1;
taking the agricultural product packing chain as a first non-leaf node, generating a first non-leaf identifier of the first non-leaf node, taking the agricultural product storage chain as a second non-leaf node, and generating a second non-leaf identifier of the second non-leaf node;
and generating a tree hash value according to the root node identifier, the first non-leaf identifier, the second non-leaf identifier and the supply number hash value, wherein the number of nodes of the first non-leaf node is only 1, the number of nodes of the second non-leaf node is the same as the number of chains of the agricultural product storage chain, the second non-leaf node is connected with the first non-leaf node, the first non-leaf node is connected with the root node of the tree, the supply number hash value belonging to the agricultural product packing chain is connected with the first non-leaf node, and the supply number hash value belonging to different agricultural product storage chains is respectively connected with the corresponding second non-leaf node.
It should be noted that, the identifiers of the root node identifier, the first non-leaf identifier, and the second non-leaf identifier may be a hash algorithm, an elliptic encryption algorithm, or a simple function mapping, which are not described herein.
In particular, when the structured data of each processing unit is shared, the embodiment of the invention adopts a tree coding mode, and compared with the traditional encryption mode under shared data, the tree hash value generated by tree coding has more outstanding advantages, and in the traditional method, if the data is shared, all the structured data are firstly packed uniformly, then the packed structured data are encrypted to obtain encrypted structured data and an access password, and each processing unit accesses the encrypted structured data through the access password. Although structured data sharing can be realized, a great amount of resource waste is caused, for example, the warehouse-in storage unit temporarily dispatches the foam boxes firstly because of insufficient number of containers for storing agricultural products, so that the structured data of the warehouse-in storage unit needs to be updated, and according to the traditional data sharing method, all structured data needs to be packed again, so that resource waste is caused. In contrast, if the tree structure arrangement is adopted, when the structured data of the warehousing storage unit needs to be updated, only the structured data changed by the warehousing storage unit needs to be updated in the structured summary data, the supply number hash value corresponding to the warehousing storage unit is updated at the same time, and the updated supply number hash value is used for replacing the supply number hash value in the original tree hash value, so that a new tree hash value is generated for continuously accessing the structured summary data.
S4, constructing a first storage space for storing monitoring videos in a first database, wherein the first storage space consists of a central storage space and associated storage spaces, the central storage space is used for storing the monitoring videos of the agricultural product packing chains, the associated storage spaces are used for storing the monitoring videos of the agricultural product storage chains, the number of the central storage spaces is only 1, and the number of the associated storage spaces is the same as that of the agricultural product storage chains.
It should be explained that, compared with the structured data, the data volume of the monitoring video is more huge, and because the update speed of the monitoring video is far higher than that of the structured data, the monitoring video needs to have an efficient storage structure while ensuring real-time sharing, so that each processing unit can access the required monitoring video in time.
In detail, the constructing a first storage space for storing the monitoring video in the first database includes:
creating a central storage space in a first database, wherein the central storage space consists of Ha Xitou, storage units and hash tails, and the number of the storage units is the same as the number of processing units included in an agricultural product packing chain;
acquiring a first non-leaf identifier of the agricultural product packing chain from the tree hash value, and placing the first non-leaf identifier in Ha Xitou;
Obtaining a supply number hash value of each processing unit of the agricultural product packing chain, and connecting each supply number hash value end to end according to the sequence of the processing units in the agricultural product packing chain to obtain a packing hash chain of a central storage space;
after the packed hash chain is placed in Ha Xiwei, a plurality of associated storage spaces are generated by taking the central storage space as the center, wherein the number of the associated storage spaces is the same as that of the agricultural product storage chains, each associated storage space is connected with the central storage space and consists of Ha Xitou, storage units and hash tails, and the number of the storage units is the same as that of the processing units included in the corresponding agricultural product storage chains;
the first non-leaf identifier and the corresponding second non-leaf identifier of the agricultural product storage chain are placed in the hash header of the associated storage space in the form of the first non-leaf identifier + the second non-leaf identifier, and,
obtaining a supply number hash value of each processing unit of a corresponding agricultural product storage chain, and connecting each supply number hash value end to end according to the sequence of the processing units in the agricultural product storage chain to obtain a storage hash chain of an associated storage space;
A central storage space including a plurality of associated storage spaces is formed as a first storage space for storing a surveillance video.
It can be understood that, compared with the traditional storage space, the first storage space constructed by the embodiment of the invention has more complete structure, and fully utilizes the characteristic of the tree hash value to construct the storage space conforming to the multi-level supply chain structure, namely the first storage space.
The embodiment of the invention constructs the first storage space according to the structural characteristics of the attribute hash value, conceivably, the central storage space is directly used for storing the monitoring video of the agricultural product packing chain, and each storage unit of the central storage space is used for storing the monitoring video generated by the corresponding processing unit in a refined manner. Similarly, the number of associated storage spaces is the same as the number of agricultural product storage chains, and the associated storage spaces are used to store the monitoring video of the corresponding agricultural product storage chains in the same manner as the central storage space.
S5, according to whether the monitoring video belongs to a storage agricultural product packing chain or an agricultural product storage chain, correspondingly storing the monitoring video in a central storage space or an associated storage space, and setting a corresponding access password according to the tree hash value.
In detail, the storing the monitoring video to the central storage space or the associated storage space according to whether the monitoring video belongs to the storage agricultural product packing chain or the agricultural product storage chain comprises the following steps:
the method comprises the steps of giving a supply number of each storage unit in a central storage space and an associated storage space, wherein the supply numbers of the storage units and the processing units are the same;
and storing the monitoring video generated by each processing unit into a storage unit with the same supply number.
From the above, the monitoring video generated by the processing unit belonging to the agricultural product packing chain is directly stored in the storage unit in the central storage space, the storage unit and the processing unit have the same supply number, the monitoring video generated by the processing unit belonging to the agricultural product storage chain is directly stored in the storage unit in the associated storage space, and each storage unit directly does not affect each other to be independently stored, namely, the independence of the monitoring video during storage is ensured, and the integrity is formed based on the structure of the first storage space.
In detail, the setting the corresponding access password according to the tree hash value includes:
setting an access password for accessing the first storage space to obtain a first access password, wherein the first access password is required to be different from the tree-shaped hash value;
Splitting the tree hash value after the first access password is set, and obtaining a plurality of provisioning serial number hash values;
setting an access password of each storage unit to obtain a unit access password, wherein the access password comprises a first access password and a unit access password, and the unit access password is a corresponding supply number hash value;
and uniformly transmitting the first access password to each processing unit, and simultaneously informing each processing unit to access the corresponding monitoring video to supply the serial number hash value for the monitoring video.
For example, when the quality inspection packaging unit needs to access the monitoring video, the qualification of accessing the first storage space is obtained through the received first access password, and then the quality inspection packaging unit stores the supply number hash value in itself, so that the corresponding monitoring video can be accessed by using the supply number hash value of itself.
In addition, when the processing units want to share the monitoring video with each other, an exchange operation of the hash value of the provisioning number needs to be performed, and in detail, the setting of the corresponding access password according to the tree-shaped hash value further includes:
if one processing unit wants to share the monitoring video with other processing units, confirming that the processing unit which wants to share the monitoring video is a sharing initiating unit, and the processing unit which is requested to share the monitoring video is a sharing receiving unit;
Obtaining a supply number hash value of a sharing initiating unit and generating a sharing video instruction comprising the supply number hash value;
and sending the shared video instruction to a shared receiving unit, and if the shared receiving unit agrees to share the monitoring video, automatically sending the hash value of the supply number of the shared receiving unit to a sharing initiating unit, thereby completing the sharing operation of the monitoring video among the processing units.
The method and the device have the advantages that the monitoring video belongs to non-sensitive data, so that when the processing units want to mutually access the monitoring video, the supply number hash values are required to be exchanged, and according to the steps, the supply number hash values are known to have dynamic variability, so that if the supply number hash values of the quality inspection packaging unit are changed, the last exchange of the supply number hash values is judged to be invalid, and the exchange is required to be executed again.
For example, if the cold chain transport unit wants to access the surveillance video of the warehousing storage unit, the shared video command is initiated, and obviously, the shared video command includes a hash value of the supply number of the cold chain transport unit, if the warehousing storage unit feels that the confidentiality of the cold chain transport unit on the software level is poor, the shared video command can be refused to be received, after waiting for the warehousing storage unit to improve the confidentiality, the shared video command is received again, and the hash value of the supply number of the warehousing storage unit is automatically sent to the warehousing storage unit, so that the sharing of the surveillance video of the warehousing storage unit and the cold chain transport unit is realized.
And S6, storing the sensitive data into a second storage space, wherein the second storage space is managed by a pre-built sensitive data management system, and the sensitive data management system further comprises an authorized access node, a re-encryption node and a data correction node.
In detail, the storing the sensitive data in the second storage space includes:
generating a hash value of the sensitive data generated by each processing unit to obtain a sensitive hash value;
encrypting the sensitive data of each processing unit by using the re-encryption node to obtain a re-encryption ciphertext, wherein the encryption process comprises the following steps:
generating a public-private key pair of the processing unit, and performing primary encryption on sensitive data by utilizing the public key to obtain a first encrypted ciphertext;
generating an encrypted ciphertext, randomly generating an access public key, and generating a re-encryption key based on the access public key and a public-private key pair;
re-encrypting the first encrypted ciphertext by using a re-encryption key to obtain the re-encrypted ciphertext;
and sending the hash value of the sensitive data to a data proofreading node, and simultaneously, storing each re-encrypted ciphertext into a second storage space separately.
It should be explained that, the hash algorithm is an irreversible encryption algorithm, and the sensitive hash value generated by the hash algorithm can be used to determine the integrity of the original sensitive data, so as to achieve the effect of data proofreading. In addition, the embodiment of the invention performs encryption on the sensitive data based on the re-encryption means, so as to generate a re-encrypted ciphertext, wherein the re-encryption means is a currently disclosed technology and is not described herein.
And S7, when the processing unit needs to access the sensitive data, judging the legitimacy of the processing unit by using the authorized access node, and when the legitimacy passes, acquiring the sensitive data by using the re-encryption node and the data checking node and sending the sensitive data to the processing unit to finish information sharing of the multi-stage supply chain.
It should be explained that in the embodiment of the present invention, there are many means for judging the validity of the processing unit, such as according to the IP address of the processing unit, the operation information of the operator logging in the processing unit, the history violation record of the processing unit, and so on. Further, after confirming that the processing unit has validity, the obtaining sensitive data by using the re-encryption node and the data checking node and sending the sensitive data to the processing unit includes:
obtaining a private key in the public-private key pair from the re-encryption node, and decrypting the re-encryption ciphertext in the second storage space by using the private key to obtain decrypted data;
performing hash operation on the decrypted data to obtain a hash value of the decrypted data;
transmitting the hash value of the decrypted data to a data proofreading node, and judging whether the hash value of the decrypted data is consistent with the hash value of the sensitive data in the data proofreading node;
If not, rejecting the access of the processing unit to the sensitive data, and if so, sending the sensitive data to the processing unit.
It should be explained that, the hash algorithm adopted in the embodiment of the present invention has operation consistency, that is, after the same sensitive data is operated by the same hash function each time, the generated hash values are the same, so that the embodiment of the present invention can execute the above-mentioned judgment. Moreover, it should be emphasized that since the sensitive data involves the security problem of the multi-stage supply chain, an access sharing manner is adopted, that is, when there is a processing unit that needs to access the sensitive data of the multi-stage supply chain, the above operation needs to be performed, so as to realize data sharing.
Compared with the prior art, the multi-stage supply chain is firstly constructed, the multi-stage supply chain is composed of the agricultural product packing chain and the agricultural product storage chain, the agricultural product packing chain and the agricultural product storage chain are composed of a plurality of processing units, the agricultural product packing chain comprises an agricultural product collecting unit and a quality inspection packing unit, the agricultural product storage chain comprises a cold chain conveying unit, a discharging and checking unit and a warehousing storage unit, the number of the agricultural product packing chains is only 1, the number of the agricultural product storage chains is at least 2, and each agricultural product storage chain acquires agricultural products from the only agricultural product packing chain. And accessing each processing unit of the multi-stage supply chain according to the information sharing instruction, and acquiring processing data of each processing unit for processing agricultural products when the access is successful, wherein the processing data consists of sensitive data and non-sensitive data, the non-sensitive data comprises structural data and monitoring video of the agricultural products, and the invention mainly adopts the same information sharing method but is divided into sensitive data and non-sensitive data based on the data characteristics of the supply chain, wherein the non-sensitive data adopts a high-efficiency information sharing method, and the sensitive data adopts a high-security method. Correspondingly, summarizing and eliminating repeated structured data to obtain structured summarized data, after generating tree hash values of the structured summarized data, sending the tree hash values to each processing unit, simultaneously storing the structured summarized data in a first database, setting the tree hash values as access passwords for accessing the structured summarized data, and constructing a first storage space for storing monitoring video in the first database, wherein the first storage space consists of a central storage space and associated storage spaces, the central storage space is used for storing monitoring video of an agricultural product packing chain, the associated storage spaces are used for storing monitoring video of the agricultural product storage chain, the number of the associated storage spaces is the same as the number of the agricultural product storage chains, and according to whether the monitoring video belongs to the agricultural product packing chain or the agricultural product storage chain, the tree hash values are correspondingly stored in the central storage space or the associated storage spaces, and setting corresponding access passwords according to the tree hash values The processing units of the agricultural product storage chain separately store the monitoring videos, the storage processes do not affect each other to store the monitoring videos independently, namely, the independence of the monitoring videos in storage is guaranteed, and the integrity is formed based on the structure of the first storage space. Finally, in order to improve the security of the sensitive data during sharing, the sensitive data is stored in a second storage space, wherein the second storage space is managed by a pre-built sensitive data management system, the sensitive data management system further comprises an authorized access node, a re-encryption node and a data checking node, and the nodes coordinate with each other to improve the security of the shared sensitive data.
Example 2:
fig. 2 is a schematic structural diagram of an electronic device implementing a multi-level supply chain information sharing method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a bus 12 and a communication interface 13, and may further comprise a computer program stored in the memory 11 and executable on the processor 10, such as a multi-level supply chain based information sharing program.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard) or the like, provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes based on a multi-stage supply chain information sharing program, etc., but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (CentralProcessingunit, CPU), microprocessors, digital processing chips, graphics processors, a combination of various control chips, and the like. The processor 10 is a control unit (control unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, executes programs or modules stored in the memory 11 (for example, based on a multi-stage supply chain information sharing program or the like) by running or executing the programs or modules, and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process the data.
The bus may be an Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 2 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 2 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (organic light-emitting diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The multi-level supply chain based information sharing program stored by the memory 11 in the electronic device 1 is a combination of instructions that, when executed in the processor 10, may implement:
receiving an information sharing instruction of a multi-stage supply chain, wherein the multi-stage supply chain consists of an agricultural product packing chain and an agricultural product storage chain, the agricultural product packing chain and the agricultural product storage chain are provided with a plurality of processing units, the agricultural product packing chain comprises an agricultural product collecting unit and a quality inspection packing unit, the agricultural product storage chain comprises a cold chain conveying unit, a discharging and checking unit and a warehousing storage unit, the number of the agricultural product packing chains is only 1, the number of the agricultural product storage chains is at least 2, and each agricultural product storage chain acquires agricultural products from a unique agricultural product packing chain;
Accessing each processing unit of the multi-level supply chain according to the information sharing instruction, and when the access is successful, acquiring processing data of the agricultural products processed by each processing unit, wherein the processing data consists of sensitive data and non-sensitive data, the non-sensitive data comprises structured data and monitoring video of the agricultural products, the sensitive data comprises residence time and quality loss of the agricultural products in the current processing unit, and characteristic data of the current processing unit, and the characteristic data comprises the number of available staff, weather and throughput of the agricultural products processed per hour of the processing unit;
summarizing and removing repeated structured data to obtain structured summarized data, after generating a tree hash value of the structured summarized data, sending the tree hash value to each processing unit, simultaneously storing the structured summarized data into a first database, and setting the tree hash value as an access password for accessing the structured summarized data;
a first storage space for storing monitoring videos is built in a first database, wherein the first storage space consists of a central storage space and associated storage spaces, the central storage space is used for storing the monitoring videos of the agricultural product packing chains, the associated storage spaces are used for storing the monitoring videos of the agricultural product storage chains, the number of the central storage spaces is only 1, and the number of the associated storage spaces is the same as that of the agricultural product storage chains;
According to whether the monitoring video belongs to a storage agricultural product packing chain or an agricultural product storage chain, correspondingly storing the monitoring video in a central storage space or an associated storage space, and setting a corresponding access password according to the tree hash value;
storing the sensitive data into a second storage space, wherein the second storage space is managed by a pre-built sensitive data management system, and the sensitive data management system further comprises an authorized access node, a re-encryption node and a data proofreading node;
when the processing unit needs to access the sensitive data, the authorized access node is used for judging the validity of the processing unit, and when the validity passes, the re-encryption node and the data check node are used for acquiring the sensitive data and sending the sensitive data to the processing unit, so that the information sharing of the multi-stage supply chain is completed.
Specifically, the specific implementation method of the above instruction by the processor 10 may refer to descriptions of related steps in the corresponding embodiments of fig. 1 to 2, which are not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-only memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
receiving an information sharing instruction of a multi-stage supply chain, wherein the multi-stage supply chain consists of an agricultural product packing chain and an agricultural product storage chain, the agricultural product packing chain and the agricultural product storage chain are provided with a plurality of processing units, the agricultural product packing chain comprises an agricultural product collecting unit and a quality inspection packing unit, the agricultural product storage chain comprises a cold chain conveying unit, a discharging and checking unit and a warehousing storage unit, the number of the agricultural product packing chains is only 1, the number of the agricultural product storage chains is at least 2, and each agricultural product storage chain acquires agricultural products from a unique agricultural product packing chain;
accessing each processing unit of the multi-level supply chain according to the information sharing instruction, and when the access is successful, acquiring processing data of the agricultural products processed by each processing unit, wherein the processing data consists of sensitive data and non-sensitive data, the non-sensitive data comprises structured data and monitoring video of the agricultural products, the sensitive data comprises residence time and quality loss of the agricultural products in the current processing unit, and characteristic data of the current processing unit, and the characteristic data comprises the number of available staff, weather and throughput of the agricultural products processed per hour of the processing unit;
Summarizing and removing repeated structured data to obtain structured summarized data, after generating a tree hash value of the structured summarized data, sending the tree hash value to each processing unit, simultaneously storing the structured summarized data into a first database, and setting the tree hash value as an access password for accessing the structured summarized data;
a first storage space for storing monitoring videos is built in a first database, wherein the first storage space consists of a central storage space and associated storage spaces, the central storage space is used for storing the monitoring videos of the agricultural product packing chains, the associated storage spaces are used for storing the monitoring videos of the agricultural product storage chains, the number of the central storage spaces is only 1, and the number of the associated storage spaces is the same as that of the agricultural product storage chains;
according to whether the monitoring video belongs to a storage agricultural product packing chain or an agricultural product storage chain, correspondingly storing the monitoring video in a central storage space or an associated storage space, and setting a corresponding access password according to the tree hash value;
storing the sensitive data into a second storage space, wherein the second storage space is managed by a pre-built sensitive data management system, and the sensitive data management system further comprises an authorized access node, a re-encryption node and a data proofreading node;
When the processing unit needs to access the sensitive data, the authorized access node is used for judging the validity of the processing unit, and when the validity passes, the re-encryption node and the data check node are used for acquiring the sensitive data and sending the sensitive data to the processing unit, so that the information sharing of the multi-stage supply chain is completed.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. A multi-level supply chain based information sharing method, the method comprising:
receiving an information sharing instruction of a multi-stage supply chain, wherein the multi-stage supply chain consists of an agricultural product packing chain and an agricultural product storage chain, the agricultural product packing chain and the agricultural product storage chain are provided with a plurality of processing units, the agricultural product packing chain comprises an agricultural product collecting unit and a quality inspection packing unit, the agricultural product storage chain comprises a cold chain conveying unit, a discharging and checking unit and a warehousing storage unit, the number of the agricultural product packing chains is only 1, the number of the agricultural product storage chains is at least 2, and each agricultural product storage chain acquires agricultural products from a unique agricultural product packing chain;
accessing each processing unit of the multi-level supply chain according to the information sharing instruction, and when the access is successful, acquiring processing data of the agricultural products processed by each processing unit, wherein the processing data consists of sensitive data and non-sensitive data, the non-sensitive data comprises structured data and monitoring video of the agricultural products, the sensitive data comprises residence time and quality loss of the agricultural products in the current processing unit, and characteristic data of the current processing unit, and the characteristic data comprises the number of available staff, weather and throughput of the agricultural products processed per hour of the processing unit;
Summarizing and removing repeated structured data to obtain structured summarized data, after generating a tree hash value of the structured summarized data, sending the tree hash value to each processing unit, simultaneously storing the structured summarized data into a first database, and setting the tree hash value as an access password for accessing the structured summarized data;
a first storage space for storing monitoring videos is built in a first database, wherein the first storage space consists of a central storage space and associated storage spaces, the central storage space is used for storing the monitoring videos of the agricultural product packing chains, the associated storage spaces are used for storing the monitoring videos of the agricultural product storage chains, the number of the central storage spaces is only 1, and the number of the associated storage spaces is the same as that of the agricultural product storage chains;
according to whether the monitoring video belongs to a storage agricultural product packing chain or an agricultural product storage chain, correspondingly storing the monitoring video in a central storage space or an associated storage space, and setting a corresponding access password according to the tree hash value;
storing the sensitive data into a second storage space, wherein the second storage space is managed by a pre-built sensitive data management system, and the sensitive data management system further comprises an authorized access node, a re-encryption node and a data proofreading node;
When the processing unit needs to access the sensitive data, the authorized access node is used for judging the validity of the processing unit, and when the validity passes, the re-encryption node and the data check node are used for acquiring the sensitive data and sending the sensitive data to the processing unit, so that the information sharing of the multi-stage supply chain is completed.
2. The multi-level supply chain based information sharing method as claimed in claim 1, wherein the generating a tree hash value of the structured summary data comprises:
generating a hash value of the structured data of each processing unit to obtain a structured hash value;
obtaining a supply number of each processing unit in a multi-stage supply chain, and performing hash operation again on the supply number and the structured hash value to obtain a supply number hash value;
and arranging the supply number hash value of each processing unit according to the tree structure to obtain a tree hash value.
3. The multi-stage supply chain based information sharing method as claimed in claim 2, wherein said acquiring the supply number of each processing unit in the multi-stage supply chain comprises:
confirming the version number of the multi-stage supply chain for executing the information sharing and the number of agricultural product storage chains included in the multi-stage supply chain;
Sequentially numbering an agricultural product packing chain or an agricultural product storage chain to obtain a chain number, wherein the numbering mode is as follows: the packing chain of the agricultural products is numbered 1, the 1 st agricultural product storage chain is numbered 2, the 2 nd agricultural product storage chain is numbered 3, …nThe number of the agricultural product storage chain isn+1Wherein, the method comprises the steps of, wherein,nindicating the number of agricultural product storage chains;
confirming the operation sequence number of each processing unit in the agricultural product packing chain or the agricultural product storage chain;
and constructing and obtaining the supply number according to the rule of the version number, the chain number and the operation sequence number.
4. The multi-level supply chain information sharing method as set forth in claim 3, wherein the arranging the supply number hash value of each processing unit according to the tree structure to obtain the tree hash value includes:
generating unique identifiers of tree root nodes by taking a multi-stage supply chain as the tree root nodes to obtain the root node identifiers, wherein the number of the tree root nodes is only 1;
taking the agricultural product packing chain as a first non-leaf node, generating a first non-leaf identifier of the first non-leaf node, taking the agricultural product storage chain as a second non-leaf node, and generating a second non-leaf identifier of the second non-leaf node;
And generating a tree hash value according to the root node identifier, the first non-leaf identifier, the second non-leaf identifier and the supply number hash value, wherein the number of nodes of the first non-leaf node is only 1, the number of nodes of the second non-leaf node is the same as the number of chains of the agricultural product storage chain, the second non-leaf node is connected with the first non-leaf node, the first non-leaf node is connected with the root node of the tree, the supply number hash value belonging to the agricultural product packing chain is connected with the first non-leaf node, and the supply number hash value belonging to different agricultural product storage chains is respectively connected with the corresponding second non-leaf node.
5. The multi-level supply chain based information sharing method as claimed in claim 4, wherein said constructing a first storage space for storing the monitoring video in the first database comprises:
creating a central storage space in a first database, wherein the central storage space consists of Ha Xitou, storage units and hash tails, and the number of the storage units is the same as the number of processing units included in an agricultural product packing chain;
acquiring a first non-leaf identifier of the agricultural product packing chain from the tree hash value, and placing the first non-leaf identifier in Ha Xitou;
Obtaining a supply number hash value of each processing unit of the agricultural product packing chain, and connecting each supply number hash value end to end according to the sequence of the processing units in the agricultural product packing chain to obtain a packing hash chain of a central storage space;
after the packed hash chain is placed in Ha Xiwei, a plurality of associated storage spaces are generated by taking the central storage space as the center, wherein the number of the associated storage spaces is the same as that of the agricultural product storage chains, each associated storage space is connected with the central storage space and consists of Ha Xitou, storage units and hash tails, and the number of the storage units is the same as that of the processing units included in the corresponding agricultural product storage chains;
the first non-leaf identifier and the corresponding second non-leaf identifier of the agricultural product storage chain are placed in the hash header of the associated storage space in the form of the first non-leaf identifier + the second non-leaf identifier, and,
obtaining a supply number hash value of each processing unit of a corresponding agricultural product storage chain, and connecting each supply number hash value end to end according to the sequence of the processing units in the agricultural product storage chain to obtain a storage hash chain of an associated storage space;
A central storage space including a plurality of associated storage spaces is formed as a first storage space for storing a surveillance video.
6. The multi-level supply chain based information sharing method as claimed in claim 5, wherein said storing the monitoring video in the central storage space or the associated storage space according to whether the monitoring video belongs to the storage agricultural product packing chain or the agricultural product storage chain comprises:
the method comprises the steps of giving a supply number of each storage unit in a central storage space and an associated storage space, wherein the supply numbers of the storage units and the processing units are the same;
and storing the monitoring video generated by each processing unit into a storage unit with the same supply number.
7. The multi-level supply chain based information sharing method as claimed in claim 6, wherein the setting the corresponding access password according to the tree hash value comprises:
setting an access password for accessing the first storage space to obtain a first access password, wherein the first access password is required to be different from the tree-shaped hash value;
splitting the tree hash value after the first access password is set, and obtaining a plurality of provisioning serial number hash values;
setting an access password of each storage unit to obtain a unit access password, wherein the access password comprises a first access password and a unit access password, and the unit access password is a corresponding supply number hash value;
And uniformly transmitting the first access password to each processing unit, and simultaneously informing each processing unit to access the corresponding monitoring video to supply the serial number hash value for the monitoring video.
8. The multi-level supply chain based information sharing method as claimed in claim 7, wherein the setting of the corresponding access password according to the tree hash value further comprises:
if one processing unit wants to share the monitoring video with other processing units, confirming that the processing unit which wants to share the monitoring video is a sharing initiating unit, and the processing unit which is requested to share the monitoring video is a sharing receiving unit;
obtaining a supply number hash value of a sharing initiating unit and generating a sharing video instruction comprising the supply number hash value;
and sending the shared video instruction to a shared receiving unit, and if the shared receiving unit agrees to share the monitoring video, automatically sending the hash value of the supply number of the shared receiving unit to a sharing initiating unit, thereby completing the sharing operation of the monitoring video among the processing units.
9. The multi-level supply chain based information sharing method as claimed in claim 1, wherein said saving the sensitive data to the second storage space comprises:
Generating a hash value of the sensitive data generated by each processing unit to obtain a sensitive hash value;
encrypting the sensitive data of each processing unit by using the re-encryption node to obtain a re-encryption ciphertext, wherein the encryption process comprises the following steps:
generating a public-private key pair of the processing unit, and performing primary encryption on sensitive data by utilizing the public key to obtain a first encrypted ciphertext;
generating an encrypted ciphertext, randomly generating an access public key, and generating a re-encryption key based on the access public key and a public-private key pair;
re-encrypting the first encrypted ciphertext by using a re-encryption key to obtain the re-encrypted ciphertext;
and sending the hash value of the sensitive data to a data proofreading node, and simultaneously, storing each re-encrypted ciphertext into a second storage space separately.
10. The multi-level supply chain based information sharing method as claimed in claim 9, wherein the acquiring the sensitive data by the re-encryption node and the data proofreading node and transmitting the sensitive data to the processing unit comprises:
obtaining a private key in the public-private key pair from the re-encryption node, and decrypting the re-encryption ciphertext in the second storage space by using the private key to obtain decrypted data;
performing hash operation on the decrypted data to obtain a hash value of the decrypted data;
Transmitting the hash value of the decrypted data to a data proofreading node, and judging whether the hash value of the decrypted data is consistent with the hash value of the sensitive data in the data proofreading node;
if not, rejecting the access of the processing unit to the sensitive data, and if so, sending the sensitive data to the processing unit.
CN202311350727.8A 2023-10-18 2023-10-18 Information sharing method and device based on multi-stage supply chain Active CN117113419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311350727.8A CN117113419B (en) 2023-10-18 2023-10-18 Information sharing method and device based on multi-stage supply chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311350727.8A CN117113419B (en) 2023-10-18 2023-10-18 Information sharing method and device based on multi-stage supply chain

Publications (2)

Publication Number Publication Date
CN117113419A true CN117113419A (en) 2023-11-24
CN117113419B CN117113419B (en) 2024-02-09

Family

ID=88796804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311350727.8A Active CN117113419B (en) 2023-10-18 2023-10-18 Information sharing method and device based on multi-stage supply chain

Country Status (1)

Country Link
CN (1) CN117113419B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704539A (en) * 2019-09-30 2020-01-17 山东爱城市网信息技术有限公司 Supply chain management method and device
CN112347194A (en) * 2021-01-08 2021-02-09 南京锦隆金属制品有限公司 Steel supply chain product traceability system based on block chain technology
CN112905693A (en) * 2021-02-01 2021-06-04 中国农业科学院农业信息研究所 Agricultural supply chain data management system and method based on block chain technology
CN115840787A (en) * 2023-02-20 2023-03-24 塔比星信息技术(深圳)有限公司 Supply chain data sharing method, device, equipment and medium based on block chain
CN116401417A (en) * 2023-06-07 2023-07-07 深圳市中农网有限公司 Hierarchical storage method based on massive agricultural product data
CN116542681A (en) * 2023-04-19 2023-08-04 河南省农业科学院农业经济与信息研究所 Planting industry agricultural product tracing method based on multi-chain fusion

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704539A (en) * 2019-09-30 2020-01-17 山东爱城市网信息技术有限公司 Supply chain management method and device
CN112347194A (en) * 2021-01-08 2021-02-09 南京锦隆金属制品有限公司 Steel supply chain product traceability system based on block chain technology
CN112905693A (en) * 2021-02-01 2021-06-04 中国农业科学院农业信息研究所 Agricultural supply chain data management system and method based on block chain technology
CN115840787A (en) * 2023-02-20 2023-03-24 塔比星信息技术(深圳)有限公司 Supply chain data sharing method, device, equipment and medium based on block chain
CN116542681A (en) * 2023-04-19 2023-08-04 河南省农业科学院农业经济与信息研究所 Planting industry agricultural product tracing method based on multi-chain fusion
CN116401417A (en) * 2023-06-07 2023-07-07 深圳市中农网有限公司 Hierarchical storage method based on massive agricultural product data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨晨雪;孙志国;: "基于区块链技术的农产品供应链数据管理系统设计", 农业大数据学报, no. 02, pages 75 - 84 *

Also Published As

Publication number Publication date
CN117113419B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US11379785B2 (en) Decentralized shipping network using blockchains
US11956357B2 (en) Traceable key block-chain ledger
CN106874461B (en) A kind of workflow engine supports multi-data source configuration security access system and method
US20190205563A1 (en) User controlled storage and sharing of personal user information on a blockchain
CN110135986B (en) Method for realizing searchable encrypted file data based on blockchain intelligent contract
CN112732297B (en) Method and device for updating federal learning model, electronic equipment and storage medium
CN114615094B (en) Storage method and device based on Internet of things and security chip
CN113420049B (en) Data circulation method, device, electronic equipment and storage medium
CN115270193B (en) Data file secure sharing method and device based on block chain and collaborative synchronization
CN103024035A (en) Safe and energy-saving encryption searching method based on mobile cloud platform
CN104202361A (en) Cloud data protection method based on mobile agent
CN115378658B (en) Park communication data transmission method based on Internet of things cloud edge collaboration
CN113822675A (en) Block chain based message processing method, device, equipment and storage medium
CN106406980A (en) Deployment method and device for virtual machines
CN115222410A (en) Block chain based transaction uplink method and device, electronic equipment and storage medium
Hsiao et al. Utilizing blockchain technology to improve WSN security for sensor data transmission
CN117113419B (en) Information sharing method and device based on multi-stage supply chain
CN111597191A (en) Method and system for managing drug informatization tracing data
CN112217646A (en) Device and method for realizing SM3 password hash algorithm
CN114760073B (en) Block chain-based warehouse commodity distribution method and device, electronic equipment and medium
CN113918517A (en) Multi-type file centralized management method, device, equipment and storage medium
CN114978664A (en) Data sharing method and device and electronic equipment
CN112988888A (en) Key management method, key management device, electronic equipment and storage medium
CN115630409B (en) Data storage control method and device
CN113626533B (en) Ultraviolet power detection method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant