CN112215719A - Garden plant growth information traceability method based on block chain - Google Patents

Garden plant growth information traceability method based on block chain Download PDF

Info

Publication number
CN112215719A
CN112215719A CN202011105247.1A CN202011105247A CN112215719A CN 112215719 A CN112215719 A CN 112215719A CN 202011105247 A CN202011105247 A CN 202011105247A CN 112215719 A CN112215719 A CN 112215719A
Authority
CN
China
Prior art keywords
data
plant growth
information
growth information
algorithm
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
CN202011105247.1A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202011105247.1A priority Critical patent/CN112215719A/en
Publication of CN112215719A publication Critical patent/CN112215719A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Mining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/05Agriculture
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • G16Y20/10Information sensed or collected by the things relating to the environment, e.g. temperature; relating to location
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

Landscape plant growth information traceability system based on block chains. By means of the technical scheme of the database, the plant growth information is maintained through a dispersive and untrusted method, and the node is not required to be worried about being maliciously tampered. Blocks are created by using encryption on any number of nodes in the system, each block containing all growth data collected in the system over a period of time, by creating a digital identification mechanism, encrypted and decrypted using a different key, and used to verify the validity of the information and to connect with the next block. A novel garden plant growth system is constructed by utilizing a block chain technology, and the current situations that the existing information is extremely asymmetric and the circulation system is extremely unsound are changed. The chain is prompted to record garden plant growth information and a cargo flow on the chain, so that the garden plant growth information and the cargo flow can not be tampered, and the garden plant supply chain cost is effectively reduced; meanwhile, authenticity and traceability of growth information of landscape plants are achieved.

Description

Garden plant growth information traceability method based on block chain
Technical Field
The invention relates to the application field of traceability of a block chain in gardens, in particular to a traceability method of landscape plant growth information based on the block chain.
Background
With the continuous progress of agricultural technology, the yield of landscape plants is no longer the bottleneck of the development of the garden industry, and with the popularization and development of intellectualization, people have high requirements on the landscape plants.
In the life of people, a lot of garden plant greening not only is an effective measure for maintaining ecological balance and improving urban environment, but also is an effective mode for improving the living standard and the living quality of urban residents. With the improvement of the requirement of people on the quality of the surrounding environment of the living place and the pursuit of more delicate life, the requirement of understanding the growth information of garden plants is continuously improved, and in order to meet the requirement of people on the growth information of plants and ensure the authenticity and the non-tamper property of the information, it is necessary to establish a realization scheme of traceability based on block chains on the recording of the growth information of garden plants.
Most of existing garden plant growth information tracing systems are based on a centralized database technology, can only trace back to a planting production place generally through barcode tracing, do not go deep into the tracing of plant whole-process growth information, and especially lack plant growth information and production place environment information concerned by consumers. At present, the domestic main garden information traceability system is still in a pilot stage, and in addition, the standards are not unified, so that the popularization and application difficulty is very high. The Blockchain (Blockchain) is used as a decentralized distributed accounting technology, a distributed consensus mechanism of the Blockchain is disclosed, transparent recording, transmission and non-falsifiable storage are disclosed, and the most reliable safety and credibility are provided for various applications based on the Blockchain at present.
The blockchain itself is an encrypted distributed ledger system, formed by a series of linked combinations of blocks (blocks) that record transaction data generated according to a time sequence. The block chain is mainly characterized as follows: the first is the decentralization feature. The purpose of the blockchain system is to centralize and realize anonymity and establish a public trust mechanism in the system. The trust mechanism is established on the basis of asymmetric cryptography, and a system user can exchange trusted value without knowing the basic information of the other side, namely, the consensus is achieved under the condition of no central mechanism, and the efficiency of the traditional network transaction is improved. Secondly, the transaction data is transparent and public. In the blockchain system, when new transaction data is stored in a new block after being identified, nodes of the whole network synchronize the new blockchain. The method has the advantages that all network nodes have the backup of the transaction information of the complete block chain, and the fact that all transaction data are disclosed in the network nodes in a range can be guaranteed. Finally, the characteristic of open consensus is provided. Anyone can input own information on the blockchain at any time through the same technology, and the blockchain exists anonymously for all transaction objects on the basis of data transparency, so that the safety of private information is guaranteed to a certain extent. The method does not depend on a third party, but stores, verifies, transmits and exchanges network data through self distributed nodes, and solves the problems of overlarge third party intermediary operation cost and low network information security in the traditional internet transaction based on trust. The stored data formed by the block chain technology has a time stamp which cannot be tampered and forged, and transaction records in the block chain have a complete evidence chain and a highly trusted tracing link.
In the process of building the landscape plant growth information tracing system, another important problem is how to maintain the information in the growth process from being tampered. The core of the block chain is to establish a consensus foundation for the safety information, and plant growth information is maintained together by a scattered and untrusted method depending on the technical scheme of the database, so that the node is not required to be worried about being maliciously tampered. The technical scheme can create blocks by using any number of nodes in the system, each block contains all growth data collected in the system in a period of time, and the blocks are encrypted and decrypted by using different keys through creating a digital identification mechanism and are used for verifying the validity of information and connecting with the next block. By utilizing the block chain technology, a novel garden plant growth system can be constructed, and the current situations that the existing information is extremely asymmetric and the circulation system is extremely unsound are changed. By popularizing the technology, the chain is prompted to record landscape plant growth information and cargo flow on the chain, so that the landscape plant supply chain cost is effectively reduced; meanwhile, authenticity and traceability of growth information of landscape plants are achieved.
Disclosure of Invention
To solve the above existing problems. The invention provides a block chain-based garden plant growth information traceability system. Based on the ether house block chain environment, a traceability system of garden plant growth information is constructed by combining technologies such as a wireless sensor network, an intelligent front-end APP, a database and a two-dimensional code. The system generates a unique two-dimension code traceability label for each garden plant, garden plant production process data (field monitoring data, pictures and videos) are uploaded to block chain records through a wireless sensor network and an intelligent front-end APP, the records comprise information such as air temperature, humidity, illumination intensity and carbon dioxide concentration in the whole plant growth period process, and the information is guaranteed to be transparent and can not be tampered. People read the information of the block chain and the database through the APP of the client side to obtain the complete growth information of the plants.
To achieve this object:
the invention provides a block chain-based garden plant growth information traceability system, which maintains plant growth information through a dispersion and distrust-free method by depending on a database, and is characterized in that:
creating blocks by using any number of nodes in the system through encryption, wherein each block contains all growth data collected in the system in a period of time, and establishing a digital identification mechanism, encrypting and decrypting by using different keys, verifying the validity of information and connecting with the next block, and constructing a traceability system of the growth information of the garden plants by using a block chain technology;
the garden plant growth information traceability system is based on an Ethenhouse block chain environment, a wireless sensor network, an intelligent front-end APP, a database and a two-dimensional code technology structure are fused, the garden plant growth information traceability system generates a unique two-dimensional code traceability label for each garden plant, garden plant production process data are uploaded to a block chain record through the wireless sensor network system and the intelligent front-end APP, the information is guaranteed to be public and transparent and cannot be tampered, and people read the block chain and database information through the client APP to obtain complete growth information of the plants;
the encryption algorithm of the data in the block chain adopts an SHA-256 secure hash algorithm, and comprises the following steps:
firstly, input data with any length is compressed into 256 bits, but only 512 bits can be calculated each time in operation, so that the input data is required to be divided into blocks with 512 bits for calculation step by step; blocks of less than 512 bits are processed according to FIPS180-2, and for ease of understanding the subsequent algorithm derivation, the data processing algorithm is repeated as follows:
3) in register H0,H1,…,H7Putting the initial value into the middle;
4) performing operation on each block of 512-bit input data;
c) 512-bit data are divided into 16 32-bit data to be put into a register WtIn (t is more than or equal to 0 and less than 16;
d)For 16≤t≤63
{Wt=σ1 {256}(Wt-2)+Wt-70 {256}(Wt-15)+Wt-16}.
c)A=H0,B=H1,C=H2,D=H3
E=H4,F=H5,G=H6,H=H7.
d)For 0≤t≤163
{
Figure BDA0002726736510000041
Figure BDA0002726736510000042
H=G,G=F,F=E,E=D+T1,
D=C,C=B,B=A,A=T1+T2}.
e)H0=A+H0,H1=B+H1,H2=C+H2,
H3=D+H3,H4=E+H5,H5=F+H5,
H6=D+H3,H7=H+H7.
in the algorithm, the algorithm is carried out,
Ch(x,y,z)=(x&y)∧(~x&z),
Maj(x,y,z)=(x&y)∧(x&z)∧(y&z),
Figure BDA0002726736510000043
Figure BDA0002726736510000044
Figure BDA0002726736510000045
Figure BDA0002726736510000046
in the algorithm, any data with 512 bits is input, 256 bits of data after operation are output, the input data with any length can be compressed into 256 bits by applying the algorithm for multiple times, in the algorithm, the ROTR represents circular right shift operation, the SHR represents logic right shift operation, the superscripts of the ROTR and the SHR represent shifted bits, "&", "^" represents AND and XOR operation, and-represents non-operation respectively;
the algorithm is decomposed as follows:
according to the operation formulas of E and A in the step d), letting n be a certain period of operation, EnAnd AnThe operation result in the nth cycle is
Figure BDA0002726736510000047
Figure BDA0002726736510000048
Figure BDA0002726736510000051
For equations (1) and (2), equations (3) and (4) can be obtained according to the SHA-256 algorithm, respectively
Figure BDA0002726736510000052
Figure BDA0002726736510000053
According to formula (3), let
Figure BDA0002726736510000054
Ln-1=Gn-2+Mn-2, (6)
Then there is
Figure BDA0002726736510000055
According to (4), let
Figure BDA0002726736510000056
L'n-1=Gn-2+M'n-2, (9)
Then there is
Figure BDA0002726736510000057
Figure BDA0002726736510000058
Due to variable
Figure BDA0002726736510000059
Wn-1Is independent of the calculation of the variable A, E, etc., and can be applied to E according to the equations (5) to (11)nAnd AnThe operation of (2) is subjected to pipelining treatment, and each pipeline at most comprises two additions;
the variable E is obtained by performing flow classification using the formula (10), the formula (11) and the liken-1、Fn-1、Gn-1Ratio of need An-1When the variables are completed in one period, the variables can be completed in one clock by definitionn-1、Bn-1、Cn-1、Dn-1And En、Fn、Gn、HnI.e., the same round of operations of variables E, F, G and H. Accordingly, the variable AnThe operation of (2) can be executed in a pipelined manner, and the formula (5) is further derived according to the constraint condition;
Figure BDA0002726736510000061
the variable A in formula (12)n-4The SHA-256 algorithm is shown to achieve a relatively ideal result by using a four-stage pipeline design;
the introduction of the pipeline results in additional processing clock cycles, with this approach, 68 clock cycles are required to process a block of 512 data;
the balance of each flow line path is kept, the key path is shortened, and the effect of higher data processing speed is achieved.
As a further improvement of the invention, the wireless sensor network and the intelligent front-end APP enable garden plant production process data to comprise field monitoring data, pictures and videos.
As a further improvement of the invention, the block chain record data comprises the information of air temperature and humidity, illumination intensity and carbon dioxide concentration in the whole plant growth period.
As a further improvement of the invention, the wireless sensor network system comprises a sensor node, a sink node and a management node, the intelligent front-end APP is realized through Web application, a B/S client architecture and an applet interaction mode, the database comprises garden plant production place data, garden plant growth data and logistics distribution data, and the two-dimensional Code comprises a PDF417 Code, a QR Code, a Code 49 Code, a Code 16K Code and a Code One Code system.
As a further improvement of the invention, the data transmission mode of the wireless sensor network adopts a TCP/IP protocol, data is uploaded to a block chain system of a corresponding node through the TCP/IP protocol, and after the data of the plant growth information is successfully linked up, the block chain hash address is transferred to a garden plant data table of a background management database for storage.
As a further improvement of the invention, the sensor nodes are powered by a small-capacity battery, and each sensor node not only collects local information and processes data, but also stores, manages and fuses data transmitted by other nodes and cooperates with other nodes to complete corresponding formulated tasks.
The sink node is a gateway connecting the sensor network and the external network, realizes the conversion between two protocols, simultaneously issues the monitoring task from the management node to the sensor node, and forwards the data collected by the wireless sensor network to the external network, is a sensor node with enhanced function, has enough energy supply and transmits all information in more Flash and SRAM to the computer, converts the obtained information into an assembly file format through assembly software, thereby analyzing confidential information such as program codes, routing protocols, keys and the like stored by the sensor node, and simultaneously modifying the program codes and loading the program codes into the sensor node.
As a further improvement of the present invention, the management node is configured to dynamically manage the entire wireless sensor network, and an owner of the sensor network accesses resources of the wireless sensor network through the management node.
The block chain-based garden plant growth information traceability method maintains plant growth information through a scattered and untrusted method by means of the technical scheme of the database, and does not need to worry about malicious tampering of nodes. Blocks are created by using encryption on any number of nodes in the system, each block containing all growth data collected in the system over a period of time, by creating a digital identification mechanism, encrypted and decrypted using a different key, and used to verify the validity of the information and to connect with the next block. A novel garden plant growth system is constructed by utilizing a block chain technology, and the current situations that the existing information is extremely asymmetric and the circulation system is extremely unsound are changed. The chain is prompted to record garden plant growth information and a cargo flow on the chain, so that the garden plant growth information and the cargo flow can not be tampered, and the garden plant supply chain cost is effectively reduced; meanwhile, authenticity and traceability of growth information of landscape plants are achieved.
Drawings
FIG. 1 is a data transmission flow chart of a traceability system of landscape plant growth information;
Detailed Description
The invention provides a block chain-based garden plant growth information traceability system.
The invention is further described in the following detailed description with reference to the drawings in which:
the invention provides a block chain-based garden plant growth information traceability system, which is a novel garden plant growth information traceability system constructed by integrating technologies such as a wireless sensor network, an intelligent front-end APP, a database, a two-dimensional code and the like based on an ether house block chain environment. The system generates a unique two-dimension code traceability label for each garden plant, garden plant production process data (field monitoring data, pictures and videos) are uploaded to block chain records through a wireless sensor network and an intelligent front-end APP, the records comprise information such as air temperature, humidity, illumination intensity and carbon dioxide concentration in the whole plant growth period process, and the information is guaranteed to be transparent and can not be tampered. People read the information of the block chain and the database through the APP of the client side to obtain the complete growth information of the plants. Fig. 1 is a data transmission flow chart of a traceability system of landscape plant growth information.
The wireless sensor system comprises sensor nodes, sink nodes and management nodes. The intelligent front-end APP can be realized through interaction modes such as Web application, B/S client architecture and small programs. The database comprises garden plant producing area data, garden plant growth data and logistics distribution data. The two-dimensional Code comprises Code systems such as PDF417, QR Code, Code 49, Code 16K and Code One. The encryption algorithm of the data in the block chain adopts an SHA-256 secure hash algorithm.
The data transmission mode of the wireless sensor network adopts a TCP/IP protocol. And uploading the data to the blockchain system of the corresponding node through a TCP/IP protocol. And when the data of the plant growth information is successfully linked, the block chain hash address is transferred to a garden plant data table of the background management database for storage.
The processing capacity, the storage capacity and the communication capacity of the sensor nodes are relatively weak, and power is supplied through a small-capacity battery. Besides local information collection and data processing, each sensor node also stores, manages and fuses data forwarded by other nodes, and cooperates with other nodes to complete some specific tasks.
The sink node has relatively strong processing capacity, storage capacity and communication capacity, is a gateway for connecting a sensor network and external networks such as the Internet and the like, realizes conversion between two protocols, simultaneously issues a monitoring task from a management node to the sensor node, and forwards data collected by the wireless sensor network to the external networks. The method can be used for analyzing confidential information such as program codes, routing protocols and keys stored in the sensing nodes, and meanwhile, the program codes can be modified and loaded into the sensing nodes.
The management node is used for dynamically managing the whole wireless sensor network, and the owner of the sensor network accesses the resources of the wireless sensor network through the management node.
The encryption algorithm of the data in the block chain adopts SHA-256 secure hash algorithm. The basic principle comprises the following steps:
input data with any length is firstly compressed into 256 bits, but only 512 bits can be calculated at each time during operation. Therefore, it is necessary to divide the input data into blocks of 512 bits for calculation step by step; blocks with less than 512 bits are processed as specified by FIPS 180-2. To facilitate understanding of the subsequent algorithm development, the data processing algorithm is repeated as follows:
1) in register H0,H1,…,H7Putting the initial value into the middle;
2) performing operation on each block of 512-bit input data;
a) 512-bit data are divided into 16 32-bit data to be put into a register WtMiddle (t is more than or equal to 0 and less than 16)
b)For 16≤t≤63
{Wt=σ1 {256}(Wt-2)+Wt-70 {256}(Wt-15)+Wt-16}.
c)A=H0,B=H1,C=H2,D=H3
E=H4,F=H5,G=H6,H=H7.
d)For 0≤t≤163
{
Figure BDA0002726736510000081
Figure BDA0002726736510000082
H=G,G=F,F=E,E=D+T1,
D=C,C=B,B=A,A=T1+T2}.
e)H0=A+H0,H1=B+H1,H2=C+H2,
H3=D+H3,H4=E+H5,H5=F+H5,
H6=D+H3,H7=H+H7.
In the algorithm, the algorithm is carried out,
Ch(x,y,z)=(x&y)∧(~x&z),
Maj(x,y,z)=(x&y)∧(x&z)∧(y&z),
Figure BDA0002726736510000091
Figure BDA0002726736510000092
Figure BDA0002726736510000093
Figure BDA0002726736510000094
in the above algorithm, arbitrary data of 512 bits is input, and 256-bit data after calculation is output. By using the algorithm for multiple times, input data with any length can be compressed into 256 bits. In the algorithm, the ROTR represents a circular right shift operation, the SHR represents a logic right shift operation, the superscripts of the ROTR and the SHR represent the number of bits of the shift, "&", "^" represents AND, XOR operation, and-not operation respectively.
The algorithm is decomposed as follows:
according to the operation formulas of E and A in the step d), letting n be a certain period of operation, EnAnd AnThe operation result in the nth cycle is
Figure BDA0002726736510000095
Figure BDA0002726736510000096
For equations (1) and (2), equations (3) and (4) can be obtained according to the SHA-256 algorithm, respectively
Figure BDA0002726736510000101
Figure BDA0002726736510000102
According to formula (3), let
Figure BDA0002726736510000103
Ln-1=Gn-2+Mn-2, (6)
Then there is
Figure BDA0002726736510000104
According to (4), let
Figure BDA0002726736510000105
L'n-1=Gn-2+M'n-2, (9)
Then there is
Figure BDA0002726736510000106
Figure BDA0002726736510000107
Due to variable
Figure BDA0002726736510000108
Wn-1Is independent of the calculation of the variable A, E, etc., and can be applied to E according to the equations (5) to (11)nAnd AnThe operation (2) is pipelined, and each pipeline comprises at most two additions.
The variable E is obtained by performing flow classification using the formula (10), the formula (11) and the liken-1、Fn-1、Gn-1Ratio of need An-1The variables are completed one cycle earlier. In this way, only one clock is defined to complete An-1、Bn-1、Cn-1、Dn-1And En、Fn、Gn、HnI.e., the same round of operations of variables E, F, G and H. Accordingly, the variable AnThe operations of (a) may be performed in pipelined fashion. Equation (5) will be further derived for the constraint.
Figure BDA0002726736510000109
The variable A in formula (12)n-4The SHA-256 algorithm is shown to achieve more ideal results with a four-stage pipeline design.
The introduction of the pipeline results in some additional processing clock cycles. With this approach, processing a block of 512 data requires 68 clock cycles.
The balance of each flow line path is kept, so that the key path is shortened, and the effect of higher data processing speed is achieved.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, but any modifications or equivalent variations made according to the technical spirit of the present invention are within the scope of the present invention as claimed.

Claims (8)

1. Garden plant growth information traceability system based on block chains, the garden plant growth information traceability system based on the block chains depends on a database, and maintains plant growth information through a dispersion and distrust-free method, and is characterized in that:
creating blocks by using any number of nodes in the system through encryption, wherein each block contains all growth data collected in the system in a period of time, and establishing a digital identification mechanism, encrypting and decrypting by using different keys, verifying the validity of information and connecting with the next block, and constructing a traceability system of the growth information of the garden plants by using a block chain technology;
the garden plant growth information traceability system is based on an Ethenhouse block chain environment, a wireless sensor network, an intelligent front-end APP, a database and a two-dimensional code technology structure are fused, the garden plant growth information traceability system generates a unique two-dimensional code traceability label for each garden plant, garden plant production process data are uploaded to a block chain record through the wireless sensor network system and the intelligent front-end APP, the information is guaranteed to be public and transparent and cannot be tampered, and people read the block chain and database information through the client APP to obtain complete growth information of the plants;
the encryption algorithm of the data in the block chain adopts an SHA-256 secure hash algorithm, and comprises the following steps:
firstly, input data with any length is compressed into 256 bits, but only 512 bits can be calculated each time in operation, so that the input data is required to be divided into blocks with 512 bits for calculation step by step; blocks of less than 512 bits are processed according to FIPS180-2, and for ease of understanding the subsequent algorithm derivation, the data processing algorithm is repeated as follows:
1) in register H0,H1,…,H7Putting the initial value into the middle;
2) performing operation on each block of 512-bit input data;
a) will be provided with512 bits of data are divided into 16 32 bits and put into a register WtIn (t is more than or equal to 0 and less than 16;
b)For 16≤t≤63
{Wt=σ1 {256}(Wt-2)+Wt-70 {256}(Wt-15)+Wt-16}.
c)A=H0,B=H1,C=H2,D=H3
E=H4,F=H5,G=H6,H=H7.
d)For 0≤t≤163
Figure FDA0002726736500000011
e)H0=A+H0,H1=B+H1,H2=C+H2,
H3=D+H3,H4=E+H5,H5=F+H5,
H6=D+H3,H7=H+H7.
in the algorithm, the algorithm is carried out,
Ch(x,y,z)=(x&y)∧(~x&z),
Maj(x,y,z)=(x&y)∧(x&z)∧(y&z),
Figure FDA0002726736500000012
Figure FDA0002726736500000013
Figure FDA0002726736500000021
Figure FDA0002726736500000022
in the algorithm, any data with 512 bits is input, 256 bits of data after operation are output, the input data with any length can be compressed into 256 bits by applying the algorithm for multiple times, in the algorithm, the ROTR represents circular right shift operation, the SHR represents logic right shift operation, the superscripts of the ROTR and the SHR represent shifted bits, "&", "^" represents AND and XOR operation, and-represents non-operation respectively;
the algorithm is decomposed as follows:
according to the operation formulas of E and A in the step d), letting n be a certain period of operation, EnAnd AnThe operation result in the nth cycle is
Figure FDA0002726736500000023
Figure FDA0002726736500000024
For equations (1) and (2), equations (3) and (4) can be obtained according to the SHA-256 algorithm, respectively
Figure FDA0002726736500000025
Figure FDA0002726736500000026
According to formula (3), let
Figure FDA0002726736500000027
Ln-1=Gn-2+Mn-2, (6)
Then there is
Figure FDA0002726736500000028
According to (4), let
Figure FDA0002726736500000029
L'n-1=Gn-2+M'n-2, (9)
Then there is
Figure FDA00027267365000000210
Figure FDA00027267365000000211
Due to variable
Figure FDA00027267365000000212
Wn-1Is independent of the calculation of the variable A, E, etc., and can be applied to E according to the equations (5) to (11)nAnd AnThe operation of (2) is subjected to pipelining treatment, and each pipeline at most comprises two additions;
the variable E is obtained by performing flow classification using the formula (10), the formula (11) and the liken-1、Fn-1、Gn-1Ratio of need An-1When the variables are completed in one period, the variables can be completed in one clock by definitionn-1、Bn-1、Cn-1、Dn-1And En、Fn、Gn、HnThat is, the same round of operations of variables E, F, G and H; accordingly, the variable AnThe operation of (2) can be executed in a pipelined manner, and the formula (5) is further derived according to the constraint condition;
Figure FDA0002726736500000031
the variable A in formula (12)n-4The SHA-256 algorithm is shown to achieve a relatively ideal result by using a four-stage pipeline design;
the introduction of the pipeline results in additional processing clock cycles, with this approach, 68 clock cycles are required to process a block of 512 data;
the balance of each flow line path is kept, the key path is shortened, and the effect of higher data processing speed is achieved.
2. The blockchain-based landscape plant growth information traceability system of claim 1, wherein:
landscape plant production process data including field monitoring data, pictures and videos are carried out to wireless sensor network and intelligent front end APP.
3. The blockchain-based landscape plant growth information traceability system of claim 1, wherein:
and the block chain record data comprises air temperature and humidity, illumination intensity and carbon dioxide concentration information in the whole plant growth period process.
4. The blockchain-based landscape plant growth information traceability system of claim 1, wherein:
the wireless sensor network system comprises sensor nodes, a sink node and a management node, the intelligent front-end APP is realized through Web application, a B/S client architecture and an applet interaction mode, the database comprises garden plant producing area data, garden plant growing data and logistics distribution data, and the two-dimensional Code comprises a PDF417, a QR Code, a Code 49, a Code 16K and a Code One Code system.
5. The blockchain-based landscape plant growth information traceability system of claim 4, wherein:
the data transmission mode of the wireless sensor network adopts a TCP/IP protocol, data are uploaded to a block chain system of a corresponding node through the TCP/IP protocol, and after data of plant growth information are successfully linked, block chain hash addresses are stored in a garden plant data table of a background management database.
6. The blockchain-based landscape plant growth information traceability system of claim 4, wherein:
the sensor nodes are powered by a low-capacity battery, each sensor node is used for carrying out local information collection and data processing, storing, managing and fusing data transmitted by other nodes, and is cooperated with other nodes to complete corresponding formulated tasks.
7. The blockchain-based landscape plant growth information traceability system of claim 4, wherein: the sink node is a gateway connecting the sensor network and an external network, realizes conversion between two protocols, simultaneously issues monitoring tasks from the management node to the sensor node, forwards data collected by the wireless sensor network to the external network, is a sensor node with an enhanced function, has enough energy supply and transmits all information in more Flash and SRAM to a computer, converts the obtained information into an assembly file format through assembly software, thereby analyzing confidential information such as program codes, routing protocols, keys and the like stored by the sensor node, and simultaneously modifying the program codes and loading the program codes into the sensor node.
8. The blockchain-based landscape plant growth information traceability system of claim 4, wherein: the management node is used for dynamically managing the whole wireless sensor network, and the owner of the sensor network accesses the resources of the wireless sensor network through the management node.
CN202011105247.1A 2020-10-15 2020-10-15 Garden plant growth information traceability method based on block chain Pending CN112215719A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011105247.1A CN112215719A (en) 2020-10-15 2020-10-15 Garden plant growth information traceability method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011105247.1A CN112215719A (en) 2020-10-15 2020-10-15 Garden plant growth information traceability method based on block chain

Publications (1)

Publication Number Publication Date
CN112215719A true CN112215719A (en) 2021-01-12

Family

ID=74054839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011105247.1A Pending CN112215719A (en) 2020-10-15 2020-10-15 Garden plant growth information traceability method based on block chain

Country Status (1)

Country Link
CN (1) CN112215719A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115131678A (en) * 2022-07-01 2022-09-30 杭州万林数链科技服务有限公司 Block chain architecture construction method and system for digital intelligent forestry
CN115936738A (en) * 2023-03-10 2023-04-07 西华大学 Agricultural product tracing method based on meta universe

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1836228A (en) * 2003-08-23 2006-09-20 联想(新加坡)私人有限公司 Method, system and device for mobile access of subscription content
CN108182482A (en) * 2017-11-20 2018-06-19 广东中科南海岸车联网技术有限公司 The cultivation monitoring method and device of long-term cropping based on block chain
CN109285014A (en) * 2018-10-28 2019-01-29 北京工业大学 A kind of agricultural product based on ether mill are traced to the source platform data storage inquiry system and method
CN111445272A (en) * 2020-04-08 2020-07-24 华南农业大学 Agricultural product traceability information processing system and method based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1836228A (en) * 2003-08-23 2006-09-20 联想(新加坡)私人有限公司 Method, system and device for mobile access of subscription content
CN108182482A (en) * 2017-11-20 2018-06-19 广东中科南海岸车联网技术有限公司 The cultivation monitoring method and device of long-term cropping based on block chain
CN109285014A (en) * 2018-10-28 2019-01-29 北京工业大学 A kind of agricultural product based on ether mill are traced to the source platform data storage inquiry system and method
CN111445272A (en) * 2020-04-08 2020-07-24 华南农业大学 Agricultural product traceability information processing system and method based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姚杰鹏: ""基于农业物联网的温室小气候环境监测系统的设计与节能研究"", 《中国优秀硕士学位论文全文数据库 农业科技辑》, no. 06, 14 June 2016 (2016-06-14), pages 043 - 1 *
戴进等: ""基于区块链技术的农产品信息流追溯体系建设"", 《物流工程与管理》, no. 7, 31 July 2019 (2019-07-31), pages 91 - 93 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115131678A (en) * 2022-07-01 2022-09-30 杭州万林数链科技服务有限公司 Block chain architecture construction method and system for digital intelligent forestry
CN115131678B (en) * 2022-07-01 2023-03-07 杭州万林数链科技服务有限公司 Block chain architecture construction method and system for digital intelligent forestry
CN115936738A (en) * 2023-03-10 2023-04-07 西华大学 Agricultural product tracing method based on meta universe

Similar Documents

Publication Publication Date Title
Vangala et al. Smart secure sensing for IoT-based agriculture: Blockchain perspective
Maroufi et al. On the convergence of blockchain and internet of things (iot) technologies
Kumari et al. Blockchain-based massive data dissemination handling in IIoT environment
CN112215719A (en) Garden plant growth information traceability method based on block chain
Bista et al. A new sensitive data aggregation scheme for protecting integrity in wireless sensor networks
CN114615094A (en) Storage method and device based on Internet of things and security chip
Yang et al. Application of blockchain in internet of things
Saputhanthri et al. Survey on blockchain-based IoT payment and marketplaces
Pham et al. Enhanced security of IoT data sharing management by smart contracts and blockchain
Hsiao et al. Utilizing blockchain technology to improve WSN security for sensor data transmission
He et al. Efficient identity-based proxy re-encryption scheme in blockchain-assisted decentralized storage system
Cazorla et al. Survey and benchmark of lightweight block ciphers for MSP430 16‐bit microcontroller
Rana et al. RBFK cipher: a randomized butterfly architecture-based lightweight block cipher for IoT devices in the edge computing environment
CN111352999A (en) National data circulation and data right confirming method and platform based on block chain
Patel IoT privacy preservation using blockchain
Singhal et al. POSMETER: proof-of-stake blockchain for enhanced smart meter data security
CN110225028A (en) A kind of distribution anti-counterfeiting system and its method
CN114580011A (en) Power facility security situation sensing method and system based on federal privacy training
Dong et al. A traceability method based on blockchain and internet of things
Lu et al. Towards a decentralized digital engineering assets marketplace: empowered by model-based systems engineering and distributed ledger technology
Ekramifard et al. A systematic literature review on blockchain-based solutions for iot security
Shree et al. Scope and Challenges of IoT and Blockchain Integration
Sakthivel et al. Automated Irrigation System Using Improved Fuzzy Neural Network in Wireless Sensor Networks.
CN113626860A (en) Electric power data privacy protection method based on block chain
Guo et al. A Blockchain Based Framework for Smart Greenhouse Data Management

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