CN115022339B - Block chain-based supply chain tracing method and system and electronic equipment - Google Patents

Block chain-based supply chain tracing method and system and electronic equipment Download PDF

Info

Publication number
CN115022339B
CN115022339B CN202210589297.4A CN202210589297A CN115022339B CN 115022339 B CN115022339 B CN 115022339B CN 202210589297 A CN202210589297 A CN 202210589297A CN 115022339 B CN115022339 B CN 115022339B
Authority
CN
China
Prior art keywords
layer
information
blockchain
traceability
supply chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210589297.4A
Other languages
Chinese (zh)
Other versions
CN115022339A (en
Inventor
盖珂珂
肖强
董林华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Muguo Technology Co ltd
Original Assignee
Beijing Muguo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Muguo Technology Co ltd filed Critical Beijing Muguo Technology Co ltd
Priority to CN202210589297.4A priority Critical patent/CN115022339B/en
Publication of CN115022339A publication Critical patent/CN115022339A/en
Application granted granted Critical
Publication of CN115022339B publication Critical patent/CN115022339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1042Peer-to-peer [P2P] networks using topology management mechanisms
    • 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/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/126Applying verification of the received information the source of the received data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a system and a method for supply chain tracing based on a blockchain and electronic equipment. The system comprises: the Internet of things layer is used for collecting supply chain traceability information; the block chain layer comprises a plurality of block chain nodes and is used for storing supply chain tracing information; the data processing layer stores data from the Internet of things layer to corresponding blockchain nodes of the blockchain layer; an interface layer providing an interface to interact with the blockchain layer; and the application layer provides an operation interface for a user of the supply chain tracing information. The system according to the example embodiment can meet the requirement of truly tracing the traceability information, realize technical anti-counterfeiting, ensure the identification information of animal products to be truly and reliable, and facilitate each participant to inquire the traceability data of the related information.

Description

Block chain-based supply chain tracing method and system and electronic equipment
Technical Field
The application relates to the technical field of blockchains and supply chains, in particular to a blockchain-based method and system for supply chain tracing and electronic equipment.
Background
Currently, food safety is becoming increasingly important from individuals to government authorities, with particular attention being paid to the traceability of agricultural product safety. For example, in recent years, with rapid development of beef cattle supply chain industry, beef market demand is steadily increasing, and concerns of end consumers about beef production places and production processes make construction of product safety traceability systems schedule.
At present, the rapid development of digital technology, the information technology, which is mainly the Internet, is continuously penetrated in various industries, and the foundation and the guarantee are provided for the construction and the development of a traceability system. However, in the supply chain scenario, how to enable multiple parties with different access rights to participate in the whole period management of the commodity and ensure mutual trust of the parties is still a subject to be studied.
Disclosure of Invention
The application aims to provide a method and a system for supply chain tracing based on a blockchain and electronic equipment, and the method and the system can perform full-period trusted tracing on livestock products based on the blockchain and a multi-layer tracing framework.
The user characteristics and advantages of the present application will become apparent from the detailed description set forth below, or may be learned in part by practice of the application.
According to an aspect of the present application, there is provided a blockchain-based system for supply chain tracing, the system comprising: the Internet of things layer is used for collecting supply chain traceability information; the block chain layer comprises a plurality of block chain nodes and is used for storing supply chain tracing information; the data processing layer stores data from the Internet of things layer to corresponding blockchain nodes of the blockchain layer; an interface layer providing an interface to interact with the blockchain layer; and the application layer provides an operation interface for a user of the supply chain tracing information.
According to an aspect of the present application, there is provided a blockchain-based method for supply chain tracing, the method comprising: verifying the identity of the participant providing the traceability information; after the authentication is successful, the traceability information from the Internet of things layer is received; interact with the blockchain node to store the traceability information to the blockchain node.
According to another aspect of the present application, there is provided an electronic apparatus including: a processor; a memory having a computer program stored thereon; the aforementioned method is implemented when the processor executes the computer program.
According to the embodiment, the supply chain traceability system is constructed based on the blockchain technology, the blockchain technology is utilized for decentralization, traceability and tamper resistance of key data in the whole process are guaranteed through the technical characteristics of tamper resistance, and meanwhile, the supply chain participants can realize information security sharing through the system. The system according to the example embodiment can meet the requirement of truly tracing the traceability information, realize technical anti-counterfeiting, ensure the identification information of animal products to be truly and reliable, and facilitate each participant to inquire the traceability data of the related information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
FIG. 1 illustrates a blockchain-based system for supply chain tracing in accordance with an exemplary embodiment of the application.
FIG. 2 illustrates a schematic architecture of a blockchain layer for a supply chain in accordance with an example embodiment.
Fig. 3 shows a flow chart of a processing method for tracing information uplink according to an example embodiment.
Fig. 4 shows a flow chart of a method of obtaining trace-source information according to an example embodiment.
Fig. 5 shows a block diagram of an electronic device according to an example embodiment of the application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art will appreciate that the embodiments described herein may be combined with other embodiments.
Before describing embodiments of the present application, some terms related to the embodiments of the present application will be explained.
Js: an open source and cross-platform JavaScript runtime environment.
JSON: javaScript Object Notation, JS object numbered musical notation, is a lightweight data exchange format, is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves network transmission efficiency.
(Blockchain) channel: a channel is a dedicated "subnet" of communications between two or more particular network nodes in a blockchain system for conducting private transactions, other nodes not within the channel being unauthorized to view the corresponding information. All nodes in the same channel share the same account book data. Each transaction on the blockchain network is executed on one channel.
Dock vessel: a virtualization technique, similar to a virtual machine, but without limitation by physical devices, is to run in a docker container for each node, off the underlying device.
Fabric: fabric is a distributed ledger platform supporting intelligent contracts written across languages, and is maintained by IBM corporation and developed under Linux foundation.
LevelDB: a world state database, used by default in fabric, stores smart contract data in key-value pairs.
CouchDB: and storing the formatted intelligent contract data under the JSON format file. CouchDB is a backup world state database, which supports rich queries when the data to be stored in the network is JSON formatted, couchDB does not simply store key-value pair data, but rather is a database supporting storage of JSON formatted files.
Intelligent contract: smart contracts are essentially business logic that runs on a blockchain. Intelligent contracts can be simple and efficient for data updates, or can be as complex as contracts that perform additional conditions. The intelligent complex is commonly referred to as a chain code (Chaincode) in fabric.
In the supply chain scenario, there are many different parties, including manufacturers, processors, regulatory authorities, end consumers, etc. These parties are different with respect to the data access rights and the operations performed by the product. Taking a livestock product as an example, the transaction process of beef from a farm to a dining table is complex, and the beef has a plurality of participants. Traditional tracing modes are often centralized systems, and the system cannot realize that tracing information is disclosed and transparent and cannot ensure that the tracing information cannot be tampered maliciously. Meanwhile, each participant in the traditional traceability system has the defects of complicated data checking process and trust problem on a supply chain due to asymmetric information in the transaction process. These may result in the authenticity of the information store not being guaranteed and a significant amount of time being spent in performing the reconciliation operation.
The transparent credibility, non-falsification and high reliability of the block chain technology have important application value in the traceability field. The blockchain provides a brand new solution for tracing livestock products.
To this end, the present application proposes a blockchain-based method and system for supply chain traceability for full-cycle supply chain management of livestock products.
The technical scheme of the present application and advantages thereof will be described in detail with reference to examples.
FIG. 1 illustrates a blockchain-based system for supply chain tracing in accordance with an exemplary embodiment of the application.
The system shown in fig. 1 is applicable to livestock product supply chain management. The technical solution of the present application will be described below by taking beef cattle as livestock products as an example. It is easy to understand that this does not limit the technical solution and the protection scope of the present application, but rather to make it easier for a person skilled in the art to understand and understand the technical solution of the present application.
Referring to fig. 1, a blockchain-based system for supply chain tracing includes a tracing information uplink subsystem 110 and a tracing subsystem 120, the tracing information uplink subsystem 110 may include an internet of things layer 101, a blockchain layer 103, and a data processing layer 105, and the tracing subsystem 120 may include a blockchain layer 103, an interface layer 107, and an application layer 109.
The trace-source information upload subsystem 110 serves the role of needing data upload, and the trace-source subsystem 120 serves the consumer of the product. For example, after purchasing beef, a consumer may trace the product on the system according to the anti-counterfeiting tracing code on the package to obtain some information about the beef product, such as beef source, related participating enterprise information, and the like.
The internet of things layer 101 includes an internet of things information collection unit for collecting various traceability information (such as feeding information, production information, processing information, etc.). According to some embodiments, the traceability system may employ a large number of devices capable of automatically detecting and collecting traceability information, such as an electronic ear tag capable of positioning and identifying a cow, a sensor capable of monitoring indoor temperature and humidity, an internet of things body weight meter, an intelligent terminal, a traceability code generating device, a monitoring camera for monitoring factory conditions in real time, and the like, which may be used in a breeding enterprise. These devices are capable of automatically recording the growth status of cattle, as well as critical data in the farming environment, which data require access to personnel and cannot be modified. Some traceable information such as animal vaccine data and the like can be manually collected through the intelligent terminal.
According to some embodiments, a cow is tagged at birth and the corresponding ear tag is stored as the digital identity of the cow to the blockchain. All traceable data during the subsequent rearing, transporting, slaughtering and selling of the cattle are associated with the ear tag. If the identified ear tag is not stored on the chain, the associated data cannot be stored on the chain.
According to some embodiments, the cow ear tag can integrate devices such as RFID, wireless locator, temperature and humidity sensor, etc. so as to realize the binding of data acquisition and cow in each key link in the production, transportation, processing and logistics processes, and periodically and automatically collect the data, thereby realizing the full period management of cow traceability information. Such collected data may be automatically stored to the blockchain layer 103 by the data processing layer 105 or, in some cases, audited by the relevant participants and stored to the blockchain layer 103 by the data processing layer 105, thereby ensuring that the on-chain data is transparent and trusted by using a decentralized distributed storage ledger that is difficult to tamper with by the blockchain network.
According to some embodiments, in the slaughtering and selling process, a beef producer may generate a tracing code (for example, a two-dimensional code) for each piece of beef through the tracing code generating device and store the tracing code and corresponding identification information (for example, an ear tag) of the beef into the blockchain, so that a consumer may directly obtain tracing information of the product from the blockchain through the tracing code through the system. Because the information in the blockchain is not tamperable, the traceability information obtained through the traceability codes is trusted.
The blockchain layer 103 is the core of the whole system and comprises a plurality of blockchain nodes for storing supply chain tracing information. According to an example embodiment, fabric may be employed as the blockchain underlying platform, although the application is not limited in this regard. The blockchain layer may include traceable intelligence contracts, optional consensus mechanisms, membership management, blockchain distributed storage, etc., and is not described in detail herein.
According to an example embodiment, blockchain nodes may include nodes owned by a farming enterprise organization, a transportation enterprise organization, a slaughter enterprise organization, a sales organization, or the like. According to some embodiments, the blockchain nodes may also include nodes owned by a regulatory agency.
The data processing layer 105 processes the data from the internet of things layer 101, such as filtering and unifying formats, and then uploads the data to the blockchain for storage through the intelligent contracts deployed by the corresponding blockchain nodes.
According to some embodiments, the data processing layer 105 may use a data processing middleware tool such as ETL to perform classification summarization and the like on the data collected by the internet of things layer 101, and store the processed data in a specified format such as JSON in a database such as CouchDB or LevelDB for blockchain backup.
An interface layer 107 provides interfaces to manage and use these interfaces to interact with blockchains, such as node. Js SDKs provided by fabric authorities, and the like.
The application layer 109 is configured to provide a simple and easy-to-operate interface for a user of the system through some front-end modules, and provide corresponding operation interfaces for different users through the interface. For example, an enterprise may submit and manage data using an interface through which consumers may enter traceability codes to obtain product traceability information.
According to the technical scheme of the embodiment, the supervision mechanism can examine the traceability information in the blockchain through the nodes, and if a problem exists, the supervision mechanism can recall the product, so that the supervision of the whole process is realized. The final consumer can trace the whole chain of the whole period process of the product in an anti-counterfeiting verification mode.
According to the technical scheme of some embodiments, the whole-flow traceability information recording, supervision and inquiry can be carried out on the individual bovine by the traceability information acquisition mode of the Internet of things layer such as the bovine ear tag.
According to the technical scheme of the embodiment, by utilizing the characteristic of decentralization of the blockchain, the problem that the traceability information is maliciously tampered and the trust of the parties participating in the supply chain is solved, the authenticity of the traceability information obtained by a consumer is ensured, and the reliability of the traceability system is greatly improved.
Compared with the traditional centralized traceability scheme, the technical scheme according to the example embodiment adopts the blockchain to store the data, avoids the authority problem and the security problem of accessing the database across the main body, can improve the efficiency of data query, shortens the query time, and has higher data security. Under the supply chain scene, the data transaction of all parties of the blockchain participation is clearer and more transparent, the data trust problem during the transaction is solved, and the data reconciliation operation efficiency is higher.
Compared with other batch traceability schemes, the technical scheme according to the example embodiment can realize individual whole-process traceability of livestock, thereby providing more refined food traceability supervision and inquiry and defining the responsibility of each supply chain link.
FIG. 2 illustrates a schematic architecture of a blockchain layer for a supply chain in accordance with an example embodiment.
As shown in fig. 2, each participant on the beef cattle supply chain is designed as an organization, and the entire blockchain hierarchy includes a farming enterprise organization, a transportation enterprise organization, a slaughter enterprise organization, and a sales organization. In each organization, there is at least one node to interact with other parts of the blockchain layer. For example, there may be multiple farms in a farming enterprise organization that interact with slaughter house nodes and carrier orders through channels.
The channels may include public channels and private channels. Because there is a competitive relationship between different slaughter enterprise organizations or sales organizations, the private channel is set so that transaction information cannot be revealed, and the public channel is set for the functions of supervising the information of each party by the supervising mechanism. In the aspect of channel design, for example, the design can be performed according to the business flow of a beef cattle supply chain, and meanwhile, the characteristics of fabric multi-chain multi-channel are utilized, namely, each node can participate in a plurality of channels at the same time, and different account books are maintained respectively.
According to some embodiments, a channel may be created by a sh scripting language using a docker container command and adding nodes to the corresponding channel.
Fig. 3 shows a flow chart of a processing method for tracing information uplink according to an example embodiment.
Referring to fig. 3, at S301, the data processing layer verifies the identity of the participant. Authentication has two levels of work, one is to authenticate the identity of the participant providing the traceability information, interacting with the corresponding blockchain node according to the difference in roles of the referents. For example, when the participant role is a farming enterprise, the data processing layer may invoke the RPC protocol to interact with blockchain nodes of the farming enterprise. The identity verification of another layer is to verify the identity of the blockchain node to ensure whether the blockchain node belongs to the organization of the participant and has the authority to initiate the transaction.
According to some embodiments, the participants of the blockchain have digital identities encapsulated in digital certificates that determine the exact rights to the resources and access rights to the information that the participants possess in the blockchain layer. One farming enterprise may correspond to different nodes, each node determining the identity of the different nodes based on each other's digital identity certificate.
In S303, after the authentication is successful, the data processing layer receives the uplink data submitted by the internet of things layer, where the uplink data is traceable information. According to an example embodiment, the operations may include receiving uplink data manually submitted by the participant. The data processing layer may be limited with respect to the data format of the received data, and the data preconditions. For example, in the slaughter segment, one of the received data is the bovine ear tag, which must correspond to the outgoing bovine ear tag already present in the system. If the ear tag in slaughter data of a slaughtered cow is different from that of a breeding link, the system prompts illegal operation and returns failure information. This operation will ensure that the system will not show a phenomenon in which slaughter data does not correspond to farming data.
According to some embodiments, the traceability information includes feeding information, shipping information, processing information, sales information, and the like. According to some embodiments, the feeding information includes ear tags, temperature information, positioning information, video information, health information, and the like.
At S305, the data processing layer interacts with the block link points. For example, the data processing layer may interact with blockchain nodes using the RPC protocol.
At this point, the intelligent contracts deployed on blockchain nodes will be invoked. For example, a fabric-based smart contract stores the uplink information in blockchain nodes via a chain code communication protocol, the nodes will initiate transactions according to a consensus protocol configured in the network, and ordering and endorsing nodes in the network order and endorse the transactions. After the consensus protocol is achieved, the transaction result of the endorsement is broadcast in the fabric network, the data uploaded by the user is successfully stored in the blockchain account book of the network, and the tracing information uplink flow is finished.
Fig. 4 shows a flow chart of a method of obtaining trace-source information according to an example embodiment.
As shown in fig. 4, in S401, a consumer inputs an anti-counterfeiting tracing code.
According to an example embodiment, the primary service object of the traceability subsystem is a consumer of beef products. After purchasing the product, the consumer can trace and inquire the product on an application layer interface of the tracing subsystem according to the anti-counterfeiting tracing code on the product package so as to acquire tracing information about the beef product, such as beef source, related participation enterprise information and the like. According to some embodiments, a consumer may input the anti-counterfeiting tracing code by scanning a two-dimensional code.
In S403, the application layer uses the interface provided by the interface layer to interact with the blockchain node, and invokes the related query interface to query the maintained ledger for the blockchain node. The query process may retrieve whether the traceability code of each block is consistent with the inputted traceability code according to the time sequence of the blockchain chain structure, and if the traceability code information in a certain block is matched with the inputted traceability code, the traceability system will return the information of the block.
At S405, the application layer will screen and arrange the tile information and then visually present it to the consumer, for example in the form of a page. Thus, the consumer can realize the query of the tracing information only by simply inputting the tracing code.
As described above, the traceability code is a unique product identifier generated in the production process of the product, and since the traceability information of the product is essentially stored in the blockchain of the bottom layer of the traceability system, the traceability information including the traceability code is not tamperable, which ensures that the traceability code cannot be forged, or that the forged traceability code cannot obtain the relevant traceability information through the system.
Fig. 5 shows a block diagram of an electronic device according to an example embodiment of the application.
As shown in fig. 5, the electronic device 30 includes a processor 12 and a memory 14. The electronic device 30 may also include a bus 22, a network interface 16, and an I/O interface 18. The processor 12, memory 14, network interface 16, and I/O interface 18 may communicate with each other via a bus 22.
The processor 12 may include one or more general purpose CPUs (Central Processing Unit, central processing units), microprocessors, or application specific integrated circuits, etc. for executing associated program instructions.
Memory 14 may include machine-system-readable media in the form of volatile memory, such as Random Access Memory (RAM), read Only Memory (ROM), and/or cache memory. Memory 14 is used to store one or more programs including instructions as well as data. The processor 12 may read instructions stored in the memory 14 to perform the methods according to embodiments of the application described above. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile memory devices.
Electronic device 12 may also communicate with one or more networks through network interface 16. The network interface 16 may be a wired network interface or a wireless network interface, or may be a virtual network interface.
The electronic device 12 may also communicate with one or more external devices (e.g., audio input devices, audio output devices, cameras, keyboards, mice, displays, various types of sensors, etc.) through an input/output (I/O) interface 18.
Bus 22 may include an address bus, a data bus, a control bus, and the like. Bus 22 provides a path for exchanging information between the components.
It should be noted that, in the implementation process, the electronic device 30 may further include other components necessary for implementing normal operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method. The computer readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), network storage devices, cloud storage devices, or any type of media or device suitable for storing instructions and/or data.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above.
It will be clear to a person skilled in the art that the solution according to the application can be implemented by means of software and/or hardware. "Unit" and "module" in this specification refer to software and/or hardware capable of performing a specific function, either alone or in combination with other components, where the hardware may be, for example, a field programmable gate array, an integrated circuit, or the like.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application 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 may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The embodiments of the present application have been described and illustrated in detail above. It should be clearly understood that the present application describes how to make and use particular examples, but the present application is not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Those skilled in the art will readily appreciate from the disclosure of the exemplary embodiments that the present disclosure may be readily utilized as a basis for modifying or modifying other embodiments of the present disclosure.
According to the embodiment, the supply chain traceability system is constructed based on the blockchain technology, the blockchain technology is utilized for decentralization, traceability and tamper resistance of key data in the whole process are guaranteed through the technical characteristics of tamper resistance, and meanwhile, the supply chain participants can realize information security sharing through the system.
According to some embodiments, the final consumer can trace the source of the product through the application layer platform of the tracing system when consuming, so that the source is ensured to be safe and reliable.
The foregoing may be better understood in light of the following clauses:
1. a blockchain-based system for supply chain tracing, the system comprising:
The Internet of things layer is used for collecting supply chain traceability information;
The block chain layer comprises a plurality of block chain nodes and is used for storing supply chain tracing information;
The data processing layer stores data from the Internet of things layer to corresponding blockchain nodes of the blockchain layer;
an interface layer providing an interface to interact with the blockchain layer;
and the application layer provides an operation interface for a user of the supply chain tracing information.
2. The system of clause 1, wherein the internet of things layer comprises at least one of an electronic ear tag, a monitoring camera, an internet of things body weight meter, an intelligent terminal and a traceability code generating device.
3. The system of clause 2, wherein the electronic ear tag is integrated with an RFID, a wireless locator, and a temperature sensor.
4. The system of clause 1, wherein the data processing layer is configured to filter and unify format processing of the data.
5. The system of clause 4, wherein the data processing layer is further configured to verify the identity of the participant.
6. The system of clause 1, wherein the application layer is configured to obtain the supply chain trace information from the blockchain layer through the interface layer in response to a trace code entered by a user.
7. The system of clause 1, wherein the blockchain layer is configured to include public channels and private channels.
8. The system of clause 1, wherein the system is used for beef cattle supply chain traceability.
9. A blockchain-based method for supply chain tracing, the method comprising:
verifying the identity of the participant providing the traceability information;
after the authentication is successful, the traceability information from the Internet of things layer is received;
Interact with the blockchain node to store the traceability information to the blockchain node.
10. The method of clause 9, wherein the traceability information includes feeding information, shipping information, processing information, sales information.
11. The method of clause 10, wherein the feeding information includes one or more of ear tags, temperature information, positioning information, video information, health information.
12. An electronic device, comprising:
A processor;
a memory having a computer program stored thereon;
the method of any one of clauses 9-11 being implemented when the processor executes the computer program.
The exemplary embodiments of the present application have been particularly shown and described above. It is to be understood that this application is not limited to the precise arrangements, instrumentalities and instrumentalities described herein; on the contrary, the application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (8)

1.A blockchain-based system for supply chain traceability, the system for a beef cattle supply chain, the system comprising:
The Internet of things layer is used for collecting supply chain traceability information, in the slaughtering and selling process, beef production enterprises generate traceability codes for each piece of beef through the traceability code generating device, the traceability information comprises feeding information, transportation information, processing information and sales information, wherein the feeding information comprises ear marks, temperature information, positioning information, video information and health information;
The system comprises a blockchain layer and a management layer, wherein the blockchain layer comprises a plurality of blockchain nodes and a management layer, the blockchain layer is used for storing supply chain traceability information, each node determines the identity of different nodes according to digital identity certificates of each node, at least one node is owned in each organization so as to interact with other parts of the blockchain layer, the blockchain layer comprises a plurality of channels, each channel comprises a public channel and a private channel, the private channels are arranged so that transaction information cannot leak, the public channel is arranged for the functions of supervising the information of each party by a supervision organization and the like, and each node participates in the channels simultaneously to maintain different account books respectively;
The data processing layer is used for storing data from the Internet of things layer to corresponding blockchain nodes of the blockchain layer, the data processing layer is configured to screen and unify format processing of the data, the data processing layer is also configured to verify the identity of a participant, the data processing layer limits the data format of the received data and the data preconditions, the data processing layer uses a data processing middleware tool to classify and summarize the data collected by the Internet of things layer, and the processed data is stored in a database for standby of the blockchain according to a specified format;
an interface layer providing an interface to interact with the blockchain layer;
and the application layer provides an operation interface for a user of the supply chain tracing information.
2. The system of claim 1, wherein the internet of things layer comprises at least one of an electronic ear tag, a monitoring camera, an internet of things body weight meter, an intelligent terminal, and a traceability code generation device.
3. The system of claim 2, wherein the electronic ear tag is integrated with an RFID, a wireless locator, and a temperature sensor.
4. The system of claim 1, wherein the application layer is configured to obtain the supply chain trace information from the blockchain layer through the interface layer in response to a trace code entered by a user.
5. The system of claim 1, wherein the blockchain layer is configured to include public channels and private channels.
6. The system of claim 1, wherein the system is used for livestock supply chain traceability.
7. A blockchain-based method for supply chain tracing, characterized in that the method is for a system according to any of claims 1-6, the method comprising:
verifying the identity of the participant providing the traceability information;
after the authentication is successful, the traceability information from the Internet of things layer is received;
Interact with the blockchain node to store the traceability information to the blockchain node.
8. An electronic device, comprising:
A processor;
a memory having a computer program stored thereon;
The method of any of claims 7 is implemented when the processor executes the computer program.
CN202210589297.4A 2022-05-26 2022-05-26 Block chain-based supply chain tracing method and system and electronic equipment Active CN115022339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210589297.4A CN115022339B (en) 2022-05-26 2022-05-26 Block chain-based supply chain tracing method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210589297.4A CN115022339B (en) 2022-05-26 2022-05-26 Block chain-based supply chain tracing method and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN115022339A CN115022339A (en) 2022-09-06
CN115022339B true CN115022339B (en) 2024-04-26

Family

ID=83071587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210589297.4A Active CN115022339B (en) 2022-05-26 2022-05-26 Block chain-based supply chain tracing method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN115022339B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115829595B (en) * 2023-02-14 2023-05-05 江西服装学院 Clothing product supply chain traceability system based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197718A (en) * 2018-01-18 2018-06-22 北京晒呗科技有限公司 A kind of Internet of Things equipment operation system and method based on block chain
CN110706006A (en) * 2019-10-09 2020-01-17 北京物资学院 Supply chain logistics traceability system with block chain multi-chain cooperation
CN111539750A (en) * 2020-04-27 2020-08-14 中山大学 Commodity traceability system based on block chain and big data technology
CN111681015A (en) * 2020-06-10 2020-09-18 复旦大学 Product tracing method, system and equipment based on alliance chain
CN113051609A (en) * 2021-03-12 2021-06-29 广西综合交通大数据研究院 Food material traceability system, method, equipment and storage medium based on block chain
CN113793157A (en) * 2021-08-27 2021-12-14 大连理工大学 Free-range pig traceability anti-counterfeiting system based on alliance chain and Internet of things

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197718A (en) * 2018-01-18 2018-06-22 北京晒呗科技有限公司 A kind of Internet of Things equipment operation system and method based on block chain
CN110706006A (en) * 2019-10-09 2020-01-17 北京物资学院 Supply chain logistics traceability system with block chain multi-chain cooperation
CN111539750A (en) * 2020-04-27 2020-08-14 中山大学 Commodity traceability system based on block chain and big data technology
CN111681015A (en) * 2020-06-10 2020-09-18 复旦大学 Product tracing method, system and equipment based on alliance chain
CN113051609A (en) * 2021-03-12 2021-06-29 广西综合交通大数据研究院 Food material traceability system, method, equipment and storage medium based on block chain
CN113793157A (en) * 2021-08-27 2021-12-14 大连理工大学 Free-range pig traceability anti-counterfeiting system based on alliance chain and Internet of things

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于可信区块链的食品追踪溯源系统研究》;刘颖慧,郭阳楠,蒋文保;《信息科技》;20211031;第12卷(第5期);全文 *

Also Published As

Publication number Publication date
CN115022339A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
US11108863B2 (en) Tag operating system
Chen et al. Processes, benefits, and challenges for adoption of blockchain technologies in food supply chains: a thematic analysis
US20200364525A1 (en) Rf tag operating system with iot connector core
US11709819B2 (en) Validating test results using a blockchain network
CN111507709B (en) Data tracing system
CN111210331A (en) Agricultural supply chain financial service platform based on block chain
US11570214B2 (en) Crowdsourced innovation laboratory and process implementation system
CN111383020B (en) Block chain-based article anti-counterfeiting management method, device, equipment and storage medium
CN110060750A (en) Medical data method for pushing, system, computer equipment and readable storage medium storing program for executing
CN115022339B (en) Block chain-based supply chain tracing method and system and electronic equipment
WO2019157122A1 (en) Rf tag operating system with iot connector core
Zhang et al. A traceability public service cloud platform incorporating IDcode system and colorful QR code technology for important product
Voulgaridis et al. Digital product passports as enablers of digital circular economy: a framework based on technological perspective
CN115168822A (en) System and method for managing live asset electronic file and electronic device
CN116596551A (en) Supply chain product tracing method based on block chain, storage medium and electronic equipment
Al-Dhlan et al. Customizable encryption algorithms to manage data assets based on blockchain technology in smart city
Ji et al. A Regulated Anticounterfeiting Traceability Metamodel Based on Blockchain in Supply Chain in the Era of IR 4.0
CN114581111A (en) Chinese herbal medicine tracing system based on block chain and Internet of things
CN208401889U (en) A kind of cloud platform management system
Zhou Research review of agricultural product traceability system based on blockchain technology
Veisi Visualizing provenance in a supply chain using ethereum blockchain
CN208637143U (en) Customer information control system
Miryala Analysis of Blockchain Technology Challenges and Potential Research Directions Faced by the Agricultural Industry
Xiao et al. Research and Application of System with Bayberry Blockchain Based on Hyperledger Fabric
Yap et al. Smart Contract Data Monitoring and Visualization

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