CN111464658A - Tea leaf credible tracing system based on block chain and use method thereof - Google Patents

Tea leaf credible tracing system based on block chain and use method thereof Download PDF

Info

Publication number
CN111464658A
CN111464658A CN202010324064.2A CN202010324064A CN111464658A CN 111464658 A CN111464658 A CN 111464658A CN 202010324064 A CN202010324064 A CN 202010324064A CN 111464658 A CN111464658 A CN 111464658A
Authority
CN
China
Prior art keywords
data
layer
information
tea
block 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.)
Pending
Application number
CN202010324064.2A
Other languages
Chinese (zh)
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.)
Anhui Agricultural University AHAU
Original Assignee
Anhui Agricultural University AHAU
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 Anhui Agricultural University AHAU filed Critical Anhui Agricultural University AHAU
Priority to CN202010324064.2A priority Critical patent/CN111464658A/en
Publication of CN111464658A publication Critical patent/CN111464658A/en
Pending legal-status Critical Current

Links

Images

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/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]
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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
    • G06Q30/0185Product, service or business identity fraud
    • 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/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Bioethics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a block chain-based tea leaf credible tracing system and a using method thereof, and relates to the technical field of block chain-based tea leaf credible tracing systems, in particular to a block chain-based tea leaf credible tracing system and a using method thereof, wherein the block chain-based tea leaf credible tracing system comprises an application layer, a control layer, a business logic layer and a core data layer; meanwhile, when data is queried and verified, comparing the irreversible time read into the block chain with the storage time of the relational database in real time to ensure the integrity and the consistency of the data; after the information of the whole tea supply chain is truly recorded, the information safety and credible tracing can be effectively ensured.

Description

Tea leaf credible tracing system based on block chain and use method thereof
Technical Field
The invention relates to the technical field of a block chain-based tea leaf credible tracing system, in particular to a block chain-based tea leaf credible tracing system and a using method thereof.
Background
The traditional tracing technology combines the internet and the internet of things to guarantee the safety of tracing products in principle and theory, but a series of corresponding problem loopholes exist in the implementation in the actual environment. Especially, the automatic information acquisition technology, the data storage technology and other aspects are challenged, and secondly, the traditional tracing technology is centralized and rooted, so that various authoritative organizations and government organizations need to be involved, and the traditional tracing technology is used as a third-party trust intermediary to complete tracing. However, this not only affects the operation efficiency of the system, but also the security of the central server becomes important, which will raise the load and efficiency of the whole system, and affect the normal operation of the whole system. Based on this, as the popularity of Bittery coins grows worldwide, blockchain technology has also emerged. The blockchain attracts a great deal of attention as an emerging technology development direction and industry development field. Due to the characteristics of decentralization, difficult tampering and self-excitation, the block chain becomes a comprehensive subject driven by technology and deeply influencing the economy, finance, society, organization and management. Blockchains and their industries are also under development, and the technical essence of "code, i.e. law", is to enforce laws and social experiments, which must also be adapted to the social law system.
The existing traditional tea leaf tracing system structure has the centralized problem, the data of the tea leaf tracing system is easy to be falsified, and the data integrity of the tea leaf tracing information system cannot be verified.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a block chain-based tea leaf credible tracing system and a using method thereof, wherein a block chain-based distributed decentralized tracing information system is established, an information provider of a tracing link is brought into the tracing system, the data acquisition work of the system is distributed to the charge of each link actual operator or unit, each link actual operator or unit corresponds to a node on the block chain, and a share of data is maintained together; and reconstructing a data layer of the tracing system, improving a relational database which is maintained by a core unit in a product supply chain independently into a block chain and the relational database, and establishing a data tamper-proof and integrity verification mechanism to solve the technical problems.
(II) technical scheme
The tea leaf credible tracing system based on the block chain comprises an application layer, a control layer, a business logic layer and a core data layer, wherein the core data layer is a block chain data storage layer of the whole system and consists of a block chain platform Geth and a MySQ L, the business logic layer is built by adopting a Java SSH framework, the functions of adopting Spring + Hibernate are realized, the control layer is separated from the business logic layer and is divided into three layers of Controller, Service and Dao, the application layer is packaged by adopting a Struts technology, returned data are represented by the application layer through access ports and unified data interaction, the functions of inputting and inquiring source information and the like are realized, the business logic layer and the control layer are built by adopting the Java SSH framework and are divided into three layers of Controller, Service and Dao, the data layer is connected with a database and an operation database by using the Hibernate technology, the operations of adding, deleting, modifying and checking data are packaged, the data persistence and interaction and the data management layer is configured by adopting a JSP management layer, a management page is compiled by adopting a JSP management layer and a JSP management layer, a JSP management layer calls the corresponding control layer, a JSP and processes the data through a JSP.
The core data layer is used for realizing a double-database structure, a Geth database of block chain Geth client software and a traditional relation SQ L database, wherein the Geth database stores block data after Geth consensus, and the SQ L database stores data required by system logic application and data to be consensus;
geth is client software which is written by using Go language and realizes an Ethereum protocol, and functions of account management, contract deployment, mine excavation and the like can be realized by connecting and interacting the Geth client and a block chain Ethernet workshop network; building a block chain which needs to be accessed by the system through a custom specific creating block json file; adding a founding block file of the tea block chain system by a system user, and simultaneously recording each account for issuing data in the system;
the bottom-layer implementation mode of Ethereum platform data storage is as follows: the method comprises the steps that the common identification and updating of data blocks are realized through a PoW algorithm, data are issued in a Transaction mode, nodes formed by maintenance of each unit or individual in a system dig ores together, the nodes which finish digging ore firstly write the data into the blocks and issue the data to other nodes to finish the common identification, a min.Start () method and a sendTransaction () method are called, the data are sent to a Block chain Transaction pool in a Transaction mode of transactions, after verification is finished, the transactions issued by the transactions are packed into a Block, meanwhile, each Transaction encrypts the data information in the Block chain through Hash and sends the Hash value back to the Block chain for storage, a piece of Hash is returned at the same time, the Hash contains information such as the Block number where the data is located, and the Hash is stored in a database for query or verification;
the Web3j is a lightweight, Reactive, type-safe Java library, rich in Web3j interfaces, and is used for integrating with clients on an Ethereum network, the front end is connected to an Ethernet workshop through a Web3.js JavaScript library, and the library is bundled with front-end resources and provided to a browser by a Web server.
The method comprises the steps that a service logic layer obtains query condition information input by a user from a front end, the query condition information calls a written data access layer method, the data stored in a database are interactively searched with the database and returned to the front end for analysis and presentation, and after the tracing information is searched from the database, the tracing information stored in an SQ L database is subjected to Hash calculation and is compared with Hash values, obtained by block numbers stored in the block chain database of an Eeth platform, of the block chain database, whether product tracing information is calculated and changed or not is judged, and a data verification function is completed.
As optimization, the application layer adopts the traditional JSP technology, calls the business data of the Controller layer on the basis of Struts configuration, and simultaneously displays the business data through the page presentation layer.
A use method of a tea leaf credible tracing system based on a block chain comprises the following steps:
the method comprises the following steps: information entry: editing and increasing relevant farming operation information categories; recording unit information, land parcel information, input product information, warehouse information, production operation information of planting management, input product application information and the like under information management, and automatically generating corresponding application numbers;
step two: picking fresh leaves: recording relevant picking information in planting management-fresh leaf picking, and automatically generating corresponding picking numbers;
step three: inspecting and accepting fresh leaves: recording relevant picking information in quality control management-fresh leaf acceptance, and automatically generating corresponding fresh leaf acceptance numbers;
step four: primary processing of fresh leaves: recording related primary processing information in processing management-fresh leaf primary processing, and automatically generating corresponding fresh leaf primary processing numbers;
step five: and (4) checking and accepting the raw tea: recording relevant information of the acceptance of the raw tea in quality inspection management-raw tea acceptance, and automatically generating corresponding raw tea acceptance numbers;
step six: tea fine processing: recording related processing information in processing management-tea fine processing, and automatically generating corresponding fine processing numbers;
step seven: and (4) checking and accepting finished tea: recording relevant acceptance information in quality control management-finished tea acceptance, and automatically generating corresponding finished tea acceptance numbers;
step eight: tea packaging: recording packaging information in the tea packaging process of processing management, and automatically generating corresponding finished tea acceptance numbers;
step nine: and (3) product quality inspection: recording quality inspection related information in quality inspection management-product quality inspection, and automatically generating corresponding product quality inspection numbers;
step ten: tea storage: recording and storing relevant information in processing management-tea storage, and automatically generating corresponding storage numbers at the same time;
step eleven: generating a two-dimensional code tracing source: after all operations are finished, the two-dimension code of the product number can be checked in the processing management-tea storage, and the information of the complete supply chain of the traceable tea can be obtained by identifying the two-dimension code, so that the traceable tea is finished.
(III) advantageous effects
The invention provides a block chain-based tea leaf credible tracing system and a using method thereof. The method has the following beneficial effects:
1. according to the invention, a block chain-based distributed decentralized tracing information system is established, an information provider of a tracing link is brought into the tracing system, system data acquisition work is distributed to each link actual operator or unit for charge, each link actual operator or unit corresponds to a node on a block chain, and a share of data is maintained together;
2. according to the invention, through reconstructing a data layer of a traceability system, a relational database which is maintained by a core unit in a product supply chain independently is improved to be composed of a block chain and the relational database;
3. the invention establishes a data tamper-proof and integrity verification mechanism: (1) the node data storage in the block chain adopts a one-way hash algorithm, each newly generated block is strictly advanced according to a time linear sequence, and the irreversibility of time causes any behavior of trying to invade and tamper the data information in the block chain to be easily traced, so that the behavior is rejected by other nodes, and the related illegal behavior can be limited; (2) data are recorded and stored in a distributed mode, and all participating nodes are recorded and stored instead of being recorded in a centralized mode by a centralized mechanism; each node stores data or data fingerprints, and a user simultaneously calls database and block chain data when checking the data or the data fingerprints, and performs consistency and integrity comparison verification;
4. the method comprises the steps that query condition information input by a user is acquired from a front end through a service logic layer, the query condition information calls a written data access layer method, the data stored in a database is interactively searched with the database and returned to the front end for analysis and presentation, and the tracing information can be verified after being searched from the database in the way that Hash calculation is carried out on tracing related information stored in an SQ L database, consistency comparison is carried out on Hash values acquired by block numbers stored in the block chain database of an Eeth platform, whether product tracing information is calculated and changed or not is judged, and a data verification function is completed;
5. according to the method, the information of each link of a tea supply chain from the land to a tea table is credibly, transparently, completely and traceably stored based on a block chain tea traceability system, the technical characteristics of data storage are linearly promoted based on block chain blocks, a relational database is combined for storage, a database model is reconstructed, and distributed storage of the system is completed and is difficult to tamper; meanwhile, when data is queried and verified, comparing the irreversible time read into the block chain with the storage time of the relational database in real time to ensure the integrity and the consistency of the data; after the information of the whole tea supply chain is truly recorded, the information safety and credible tracing can be effectively ensured.
Drawings
FIG. 1 is an architecture diagram of a block chain-based tea leaf trusted traceability system of the present invention;
FIG. 2 is a block diagram of a bottom level implementation of Ethereum platform data storage in the present invention;
FIG. 3 is a flow chart of information query and integrity verification in the present invention;
FIG. 4 is a block diagram of a block chain-based tea leaf credibility tracing system in the invention;
fig. 5 is a schematic diagram of the steps of a block chain-based tea leaf credibility tracing system in the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in figures 1 to 5:
the invention provides a technical scheme that a tea leaf credibility tracing system based on a block chain comprises an application layer, a control layer, a business logic layer and a core data layer, wherein the core data layer is a block chain data storage layer of the whole system and consists of a block chain platform Geth and a MySQ L, the business logic layer is built by adopting a Java SSH framework, the functions of tracing source information entry query and the like are realized by adopting Spring + Hibernate, the control layer is separated from the business logic layer and is divided into three layers of a Controller, a Service and a Dao, the application layer is packaged by adopting a Struts technology, returned data is delivered to the application layer to be represented through an access port and unified data interaction, the functions of tracing source information entry query and the like are realized, the business logic layer and the control layer are built by adopting Java SSH frameworks which are divided into three layers of a Controller, a Service and a Dao, the Dao layer is connected with a database and an operation database by using the Hibernate, the operation of encapsulating, deleting, modifying and checking the operation of the data, the data is packaged, the persistence and the data management layer is configured by adopting a corresponding control database operation of the control layer, the management page of the corresponding control layer, the management of the application layer, the management page and the management page is compiled by combining the JSP, the management of the application layer, the management of the application layer and the management of the data, the management of the data, the management page, the management of the data, the management of.
In the embodiment, the core data layer realizes a double-database architecture, a Geth database of block chain Geth client software and a traditional relation SQ L database, wherein the Geth database stores block data after Geth consensus, and the SQ L database stores data required by system logic application and data to be consensus;
geth is client software which is written by using Go language and realizes an Ethereum protocol, and functions of account management, contract deployment, mine excavation and the like can be realized by connecting and interacting the Geth client and a block chain Ethernet workshop network; building a block chain which needs to be accessed by the system through a custom specific creating block json file; adding a founding block file of the tea block chain system by a system user, and simultaneously recording each account for issuing data in the system;
the bottom-layer implementation mode of Ethereum platform data storage is as follows: the method comprises the steps that the common identification and updating of data blocks are realized through a PoW algorithm, data are issued in a Transaction mode, nodes formed by maintenance of each unit or individual in a system dig ores together, the nodes which finish digging ore firstly write the data into the blocks and issue the data to other nodes to finish the common identification, a min.Start () method and a sendTransaction () method are called, the data are sent to a Block chain Transaction pool in a Transaction mode of transactions, after verification is finished, the transactions issued by the transactions are packed into a Block, meanwhile, each Transaction encrypts the data information in the Block chain through Hash and sends the Hash value back to the Block chain for storage, a piece of Hash is returned at the same time, the Hash contains information such as the Block number where the data is located, and the Hash is stored in a database for query or verification;
the Web3j is a lightweight, Reactive, type-safe Java library, rich in Web3j interfaces, and is used for integrating with clients on an Ethereum network, the front end is connected to an Ethernet workshop through a Web3.js JavaScript library, and the library is bundled with front-end resources and provided to a browser by a Web server.
In the embodiment, the business logic layer acquires query condition information input by a user from a front end, the query condition information calls a written data access layer method, the data stored in the database is interactively checked out with the database and returned to the front end for analysis and presentation, and the tracing information can be verified after being inquired out from the database by carrying out Hash calculation on tracing related information stored in an SQ L database, carrying out consistency comparison on Hash values acquired by block numbers stored in the block chain database of an Eeth platform with the tracing related information, judging whether the product tracing information is calculated and modified, and finishing a data verification function.
In this embodiment, the application layer uses a conventional JSP technology, calls the service data of the Controller layer based on the Struts configuration, and is expressed through the page expression layer.
A use method of a tea leaf credible tracing system based on a block chain comprises the following steps:
the method comprises the following steps: information entry: editing and increasing relevant farming operation information categories; recording unit information, land parcel information, input product information, warehouse information, production operation information of planting management, input product application information and the like under information management, and automatically generating corresponding application numbers;
step two: picking fresh leaves: recording relevant picking information in planting management-fresh leaf picking, and automatically generating corresponding picking numbers;
step three: inspecting and accepting fresh leaves: recording relevant picking information in quality control management-fresh leaf acceptance, and automatically generating corresponding fresh leaf acceptance numbers;
step four: primary processing of fresh leaves: recording related primary processing information in processing management-fresh leaf primary processing, and automatically generating corresponding fresh leaf primary processing numbers;
step five: and (4) checking and accepting the raw tea: recording relevant information of the acceptance of the raw tea in quality inspection management-raw tea acceptance, and automatically generating corresponding raw tea acceptance numbers;
step six: tea fine processing: recording related processing information in processing management-tea fine processing, and automatically generating corresponding fine processing numbers;
step seven: and (4) checking and accepting finished tea: recording relevant acceptance information in quality control management-finished tea acceptance, and automatically generating corresponding finished tea acceptance numbers;
step eight: tea packaging: recording packaging information in the tea packaging process of processing management, and automatically generating corresponding finished tea acceptance numbers;
step nine: and (3) product quality inspection: recording quality inspection related information in quality inspection management-product quality inspection, and automatically generating corresponding product quality inspection numbers;
step ten: tea storage: recording and storing relevant information in processing management-tea storage, and automatically generating corresponding storage numbers at the same time;
step eleven: generating a two-dimensional code tracing source: after all operations are finished, the two-dimension code of the product number can be checked in the processing management-tea storage, and the information of the complete supply chain of the traceable tea can be obtained by identifying the two-dimension code, so that the traceable tea is finished.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (5)

1. A tea leaf credible tracing system based on a block chain is characterized by comprising an application layer, a control layer, a business logic layer and a core data layer, wherein the core data layer is a block chain data storage layer of the whole system and consists of a block chain platform Geth and a MySQ L, the business logic layer is built by adopting a Java SSH framework, the functions of tracing information entry query and the like are realized by adopting Spring + Hibernate to separate the control layer from the business logic layer and dividing the control layer into a Controller layer, a Service layer and a Dao layer, the application layer is packaged by adopting a Struts technology, returned data are delivered to the application layer to be represented by access ports and unified data interaction, the functions of tracing information entry query and the like are realized, the business logic layer and the control layer are built by adopting the Java SSH framework and are divided into the Controller layer, the Service layer and the Dao layer, the data layer is connected with a database and an operation database, the operations of adding, deleting, modifying and checking data are realized, the data persistence and the data management layer calls a corresponding control layer of the control layer, the application layer and the data management layer by adopting a JSP management layer and a JSP management layer, the JSP and a corresponding management page are processed by adopting a JSP management technology, and a JSP management page, and a JSP management layer.
2. The tea leaf credible tracing system based on the block chain as claimed in claim 1, is characterized in that the core data layer realizes a double-database architecture, a Geth database of a block chain Geth client software and a traditional relation SQ L database, wherein the Geth database stores block data after Geth consensus, the SQ L database stores data required by system logic application and data to be consensus, the data layer stores data types including block data and logic data, the block data is composed of a block header and data information, the block header comprises a timestamp for generating a block, a Hash value of a previous block, a Hash value of a current block and the like;
geth is client software which is written by using Go language and realizes an Ethereum protocol, and functions of account management, contract deployment, mine excavation and the like can be realized by connecting and interacting the Geth client and a block chain Ethernet workshop network; building a block chain which needs to be accessed by the system through a custom specific creating block json file; adding a founding block file of the tea block chain system by a system user, and simultaneously recording each account for issuing data in the system;
the bottom-layer implementation mode of Ethereum platform data storage is as follows: the method comprises the steps that the common identification and updating of data blocks are realized through a PoW algorithm, data are issued in a Transaction mode, nodes formed by maintenance of each unit or individual in a system dig ores together, the nodes which finish digging ore firstly write the data into the blocks and issue the data to other nodes to finish the common identification, a min.Start () method and a sendTransaction () method are called, the data are sent to a Block chain Transaction pool in a Transaction mode of transactions, after verification is finished, the transactions issued by the transactions are packed into a Block, meanwhile, each Transaction encrypts the data information in the Block chain through Hash and sends the Hash value back to the Block chain for storage, a piece of Hash is returned at the same time, the Hash contains information such as the Block number where the data is located, and the Hash is stored in a database for query or verification;
the Web3j is a lightweight, Reactive, type-safe Java library, rich in Web3j interfaces, and is used for integrating with clients on an Ethereum network, the front end is connected to an Ethernet workshop through a Web3.js JavaScript library, and the library is bundled with front-end resources and provided to a browser by a Web server.
3. The tea leaf credible tracing system based on the block chain is characterized in that the service logic layer acquires query condition information input by a user from a front end, the query condition information calls a written data access layer method, the data stored in the database is interactively searched with the database and returned to the front end for analysis and presentation, and after the tracing information is searched from the database, the tracing information can be realized in a verification mode that Hash calculation is carried out on tracing related information stored in an SQ L database, consistency comparison is carried out on the tracing related information acquired by a block number stored in the block chain database of an Eeth platform, whether the product tracing information is calculated and changed or not is judged, and a data verification function is completed.
4. The block chain-based tea leaf credible traceability system of claim 1, is characterized in that: the application layer adopts the traditional JSP technology, calls the business data of the Controller layer on the basis of Struts configuration, and is expressed through the page expression layer.
5. A use method of a tea leaf credible tracing system based on a block chain is characterized by comprising the following steps: the use method of the block chain-based tea leaf credible tracing system comprises the following steps:
the method comprises the following steps: information entry: editing and increasing relevant farming operation information categories; recording unit information, land parcel information, input product information, warehouse information, production operation information of planting management, input product application information and the like under information management, and automatically generating corresponding application numbers;
step two: picking fresh leaves: recording relevant picking information in planting management-fresh leaf picking, and automatically generating corresponding picking numbers;
step three: inspecting and accepting fresh leaves: recording relevant picking information in quality control management-fresh leaf acceptance, and automatically generating corresponding fresh leaf acceptance numbers;
step four: primary processing of fresh leaves: recording related primary processing information in processing management-fresh leaf primary processing, and automatically generating corresponding fresh leaf primary processing numbers;
step five: and (4) checking and accepting the raw tea: recording relevant information of the acceptance of the raw tea in quality inspection management-raw tea acceptance, and automatically generating corresponding raw tea acceptance numbers;
step six: tea fine processing: recording related processing information in processing management-tea fine processing, and automatically generating corresponding fine processing numbers;
step seven: and (4) checking and accepting finished tea: recording relevant acceptance information in quality control management-finished tea acceptance, and automatically generating corresponding finished tea acceptance numbers;
step eight: tea packaging: recording packaging information in the tea packaging process of processing management, and automatically generating corresponding finished tea acceptance numbers;
step nine: and (3) product quality inspection: recording quality inspection related information in quality inspection management-product quality inspection, and automatically generating corresponding product quality inspection numbers;
step ten: tea storage: recording and storing relevant information in processing management-tea storage, and automatically generating corresponding storage numbers at the same time;
step eleven: generating a two-dimensional code tracing source: after all operations are finished, the two-dimension code of the product number can be checked in the processing management-tea storage, and the information of the complete supply chain of the traceable tea can be obtained by identifying the two-dimension code, so that the traceable tea is finished.
CN202010324064.2A 2020-04-22 2020-04-22 Tea leaf credible tracing system based on block chain and use method thereof Pending CN111464658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010324064.2A CN111464658A (en) 2020-04-22 2020-04-22 Tea leaf credible tracing system based on block chain and use method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010324064.2A CN111464658A (en) 2020-04-22 2020-04-22 Tea leaf credible tracing system based on block chain and use method thereof

Publications (1)

Publication Number Publication Date
CN111464658A true CN111464658A (en) 2020-07-28

Family

ID=71680311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010324064.2A Pending CN111464658A (en) 2020-04-22 2020-04-22 Tea leaf credible tracing system based on block chain and use method thereof

Country Status (1)

Country Link
CN (1) CN111464658A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749976A (en) * 2020-12-22 2021-05-04 安徽农业大学 Credible vegetable tracing device based on block chain and Internet of things technology
CN112990947A (en) * 2021-04-01 2021-06-18 浙江工业大学 Tea production line remote management traceability system based on cloud service and block chain technology
CN113052701A (en) * 2021-04-02 2021-06-29 成都茶满仓物联网科技有限公司 Tea transaction management system and transaction method based on block chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111282A (en) * 2009-12-24 2011-06-29 上海杉达学院 Information management system architecture based on telecommunication service (TS) and building method thereof
CN110427374A (en) * 2019-07-24 2019-11-08 中南民族大学 Tealeaves information query method, equipment, storage medium and device
WO2019232739A1 (en) * 2018-06-07 2019-12-12 河南紫云云计算股份有限公司 Tracing anti-counterfeiting label based on block chain, processing process and application service platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111282A (en) * 2009-12-24 2011-06-29 上海杉达学院 Information management system architecture based on telecommunication service (TS) and building method thereof
WO2019232739A1 (en) * 2018-06-07 2019-12-12 河南紫云云计算股份有限公司 Tracing anti-counterfeiting label based on block chain, processing process and application service platform
CN110427374A (en) * 2019-07-24 2019-11-08 中南民族大学 Tealeaves information query method, equipment, storage medium and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张晓凌: "5.1.5 SSH框架", 《技术转移信息服务平台建设》 *
李绍稳: "基于移动溯源与图像分析的茶叶品级鉴定方法研究", 《中国农学通报》 *
林延昌: "基于区块链的食品安全追溯技术研究与实现 ——以牛肉追溯为例", 《信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749976A (en) * 2020-12-22 2021-05-04 安徽农业大学 Credible vegetable tracing device based on block chain and Internet of things technology
CN112749976B (en) * 2020-12-22 2023-06-20 安徽农业大学 Vegetable credible traceability device based on blockchain and Internet of things technology
CN112990947A (en) * 2021-04-01 2021-06-18 浙江工业大学 Tea production line remote management traceability system based on cloud service and block chain technology
CN113052701A (en) * 2021-04-02 2021-06-29 成都茶满仓物联网科技有限公司 Tea transaction management system and transaction method based on block chain

Similar Documents

Publication Publication Date Title
CN110347719B (en) Enterprise foreign trade risk early warning method and system based on big data
CN111464658A (en) Tea leaf credible tracing system based on block chain and use method thereof
US8340995B2 (en) Method and system of using artifacts to identify elements of a component business model
Li et al. Research on the application of blockchain in the traceability system of agricultural products
CN109472568A (en) A kind of block chain method of commerce, device, management system, equipment and storage medium
US20130080197A1 (en) Evaluating a trust value of a data report from a data processing tool
Wang et al. Research on Metaverse: Concept, development and standard system
CN111445272A (en) Agricultural product traceability information processing system and method based on block chain
CN111612483B (en) Tea leaf credible tracing system based on decentralization and centralization cooperation
CN104102702A (en) Software and hardware combined application-oriented big data system and method
CN111552728B (en) Data processing method, system, terminal and storage medium of block chain
CN108346110A (en) A kind of information interaction system based on manufacture block chain
CN114707430B (en) Multi-user encryption based federated learning visualization system and method
Yang et al. Research and analysis of blockchain data
CN112163017B (en) Knowledge mining system and method
CN109002470A (en) Knowledge mapping construction method and device, client
Ekici et al. Data cleaning for process mining with smart contract
Khan et al. Graph-based management and mining of blockchain data
CN110162521A (en) A kind of payment system transaction data processing method and system
Chu Optimization method of fresh agricultural products cross-border e-commerce supply chain based on blockchain technology
Härer Towards Interoperability of Open and Permissionless Blockchains: A Cross-Chain Query Language
CN116049159A (en) Data-element-oriented power basic data structuring processing method and equipment
CN113179294B (en) Schema unified access method based on intelligent contract
CN111783318B (en) Assembly quality data analysis and visualization method based on three-dimensional model
US20140067874A1 (en) Performing predictive analysis

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728

RJ01 Rejection of invention patent application after publication