CN112215719A - Garden plant growth information traceability method based on block chain - Google Patents
Garden plant growth information traceability method based on block chain Download PDFInfo
- 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
Links
- 230000008635 plant growth Effects 0.000 title claims abstract description 51
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000012010 growth Effects 0.000 claims abstract description 19
- 238000005516 engineering process Methods 0.000 claims abstract description 15
- 230000007246 mechanism Effects 0.000 claims abstract description 8
- 238000004422 calculation algorithm Methods 0.000 claims description 38
- 238000012545 processing Methods 0.000 claims description 14
- 238000004519 manufacturing process Methods 0.000 claims description 9
- CURLTUGMZLYLDI-UHFFFAOYSA-N Carbon dioxide Chemical compound O=C=O CURLTUGMZLYLDI-UHFFFAOYSA-N 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 6
- 229910002092 carbon dioxide Inorganic materials 0.000 claims description 4
- 239000001569 carbon dioxide Substances 0.000 claims description 4
- 238000005286 illumination Methods 0.000 claims description 4
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 claims description 3
- 238000007792 addition Methods 0.000 claims description 3
- 238000013459 approach Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000013461 design Methods 0.000 claims description 3
- 238000009826 distribution Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 claims description 3
- 230000003993 interaction Effects 0.000 claims description 3
- 238000009795 derivation Methods 0.000 claims description 2
- 239000006185 dispersion Substances 0.000 claims description 2
- 230000006872 improvement Effects 0.000 description 7
- 238000003860 storage Methods 0.000 description 5
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000009956 central mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
- G06Q50/02—Agriculture; Fishing; Mining
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods 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/0022—Methods 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/0025—Methods 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06037—Record 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
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y10/00—Economic sectors
- G16Y10/05—Agriculture
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y20/00—Information sensed or collected by the things
- G16Y20/10—Information sensed or collected by the things relating to the environment, e.g. temperature; relating to location
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y30/00—IoT infrastructure
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y40/00—IoT characterised by the purpose of the information processing
- G16Y40/10—Detection; Monitoring
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y40/00—IoT characterised by the purpose of the information processing
- G16Y40/50—Safety; Security of things, users, data or systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-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
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-7+σ0 {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
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),
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
For equations (1) and (2), equations (3) and (4) can be obtained according to the SHA-256 algorithm, respectively
According to formula (3), let
Ln-1=Gn-2+Mn-2, (6)
Then there is
According to (4), let
L'n-1=Gn-2+M'n-2, (9)
Then there is
Due to variableWn-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;
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-7+σ0 {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
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),
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
For equations (1) and (2), equations (3) and (4) can be obtained according to the SHA-256 algorithm, respectively
According to formula (3), let
Ln-1=Gn-2+Mn-2, (6)
Then there is
According to (4), let
L'n-1=Gn-2+M'n-2, (9)
Then there is
Due to variableWn-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.
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-7+σ0 {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
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),
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
For equations (1) and (2), equations (3) and (4) can be obtained according to the SHA-256 algorithm, respectively
According to formula (3), let
Ln-1=Gn-2+Mn-2, (6)
Then there is
According to (4), let
L'n-1=Gn-2+M'n-2, (9)
Then there is
Due to variableWn-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;
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.
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)
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)
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 |
-
2020
- 2020-10-15 CN CN202011105247.1A patent/CN112215719A/en active Pending
Patent Citations (4)
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)
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)
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 |