A Blockchain-Based Ecological Environment Monitoring Information Management System and Method

By using a blockchain-based method for managing ecological and environmental monitoring information, SHA-2 and AES encryption algorithms are employed to process ecological and environmental data, generate ciphertext, and store it on blockchain nodes. This solves the problems of malicious data modification and transmission errors, ensuring the accuracy and stability of ecological and environmental data and reducing the risk of ecological and environmental degradation.

CN119788261BActive Publication Date: 2026-03-06QINGDAO XIZHENG DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411907563.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2026-03-06
Estimated Expiration
2044-12-24

AI Technical Summary

Technical Problem

Traditional ecological environment monitoring information management systems are at risk of malicious data modification and errors are prone to occur during data transmission, resulting in significant discrepancies between ecological environment data and actual conditions, thus increasing the potential risk of ecological environment degradation.

Method used

An ecological environment monitoring information management method based on blockchain is adopted. The ecological environment information is encrypted using SHA-2 and AES encryption algorithms to generate SHA-256 ciphertext and AES-256 ciphertext. A standard data format is set, and the data is stored in the blockchain node according to the timestamp order to ensure the accuracy and stability of data transmission.

Benefits of technology

This improves the reliability of ecological environment monitoring information in storage and retrieval, reduces the potential risk of ecological environment degradation, and ensures the accuracy and consistency of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788261B_ABST
    Figure CN119788261B_ABST
Patent Text Reader

Abstract

This invention discloses a blockchain-based ecological environment monitoring information management system and method, relating to the field of ecological environment monitoring. It involves collecting real-time ecological environment information through environmental monitoring equipment; generating ecological environment information for each functional zone based on their location information; encrypting the ecological environment information of each functional zone using SHA-2 and AES encryption algorithms to generate corresponding SHA-256 and AES-256 ciphertexts; setting a standard data format; obtaining identifiers for the SHA-256 and AES-256 ciphertexts; determining the accuracy of the data transmitted via SHA-256 ciphertext; obtaining the AES-256 ciphertext bound to the accurate SHA-256 ciphertext and adding a timestamp to generate timestamped ciphertext data; sorting the timestamped ciphertext data according to the timestamp order and storing it in a blockchain node; obtaining blockchain node information based on user needs to generate ecological environment information; and setting ecological environment thresholds to monitor the real-time ecological environment information of each functional zone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ecological environment monitoring, specifically to a blockchain-based ecological environment monitoring information management system and method. Background Technology

[0002] The ecological environment monitoring information management system collects environmental data in real time through various sensors. With the help of multi-source data transmission technology, the data is securely transmitted to the data storage layer for integration and storage in the database. Blockchain is a distributed database technology that divides data into blocks, which are arranged in chronological order to form a chain-like structure.

[0003] Traditional ecological environment monitoring and information management systems are mostly based on centralized database architectures, with data storage and management authority concentrated on a few servers. This makes the data vulnerable to malicious modification, and the encryption methods used during data transmission are relatively simple, making the data susceptible to errors during transmission. This leads to deviations in the storage and retrieval stages, resulting in significant discrepancies between the acquired ecological environment data and the actual situation. Consequently, misjudgments of the current state of the ecological environment are made, greatly increasing the potential risk of ecological degradation and seriously affecting the smooth progress of ecological protection work and the sustainable development of ecosystems. Summary of the Invention

[0004] To address the aforementioned technical problems, this paper provides a blockchain-based ecological environment monitoring information management system and method. This technical solution resolves the risks of malicious modification of data and deviations in data storage and retrieval, which lead to significant discrepancies between the acquired ecological environment data and the actual situation, resulting in misjudgments of the current ecological environment status and greatly increasing the potential risk of ecological environment deterioration.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0006] A blockchain-based method for managing ecological environment monitoring information includes:

[0007] Obtain the location information of each functional zone in the ecological monitoring area;

[0008] Collect real-time ecological and environmental information, and generate ecological and environmental information for each functional zone based on the location information of each functional zone in the ecological monitoring area;

[0009] Based on the location information of each functional area, assign a unique identifier to each functional area;

[0010] Based on the SHA-2 and AES encryption algorithms, the encryption direction is set;

[0011] Based on the encryption direction, the ecological environment information of each functional zone is encrypted to generate corresponding SHA-256 ciphertext and AES-256 ciphertext;

[0012] Set a standard data format and obtain the identifiers of SHA-256 ciphertext and AES-256 ciphertext. Determine whether the data transmitted by SHA-256 ciphertext is accurate. Obtain the AES-256 ciphertext transmitted at the same time as the accurate SHA-256 ciphertext and generate ciphertext data with timestamps.

[0013] The encrypted data marked with timestamps is sorted according to the order of the timestamps and stored in the blockchain node;

[0014] Obtain user query requirements, read blockchain node information based on user query requirements, decode blockchain node information, and generate the required ecological environment information;

[0015] Set ecological and environmental thresholds, establish a data monitoring model, and determine whether the real-time ecological and environmental information of each functional zone is up to standard.

[0016] Preferably, the step of generating real-time ecological environment information for each functional zone based on the location information of each functional zone within the ecological monitoring area specifically includes:

[0017] Based on the location information of each functional zone in the ecological monitoring area, the ecological monitoring area is divided into geographical locations to generate geographical information for each ecological planning area. The geographical information for each ecological planning area includes altitude, vegetation location, planting area location, and water area location.

[0018] Select environmental monitoring equipment based on the function of each ecological planning area;

[0019] Based on the geographical information of each ecological planning area, environmental monitoring equipment is set up in open areas near water bodies, planting areas and vegetation, and environmental monitoring equipment is set up again at every 100 meters of altitude.

[0020] Ecological and environmental data are collected every hour and processed on a daily basis.

[0021] Obtain the ecological and environmental data of the previous cycle, generate the first ecological and environmental threshold, and determine whether there is any abnormality in the ecological and environmental data of the current cycle. If so, obtain the data from the surrounding environmental monitoring equipment for further analysis; otherwise, enter the ecological and environmental data of the current cycle into an Excel spreadsheet.

[0022] Further analyze the data from the surrounding environmental monitoring equipment to determine if the equipment is malfunctioning. If so, repair the equipment; otherwise, record the abnormal data in an Excel spreadsheet.

[0023] Preferably, the generation of the corresponding SHA-256 ciphertext and AES-256 ciphertext specifically includes:

[0024] Using Python, data in an Excel spreadsheet is converted to generate ecological and environmental data in CSV format.

[0025] Populate the ecological environment data in CSV format to generate 512-bit data;

[0026] Based on the hash function, the 512-bit byte data is converted into a 256-bit binary string, and then the 256-bit binary string is represented in hexadecimal to generate SHA-256 ciphertext.

[0027] A 32-byte initial key is generated using a random number generator, and the initial key is then arranged in a matrix.

[0028] Perform a shift transformation on the elements in the matrix to generate the round key constant;

[0029] Based on the encryption direction, multiply the column elements of the round key constant and the initial key to obtain the encryption method for each round;

[0030] Based on the encryption method of each round, the ecological environment data corresponding to the SHA-256 ciphertext is processed to generate AES-256 ciphertext;

[0031] Each storage node uses a different AES-256 encryption method, and the generated different AES-256 ciphertexts and SHA-256 ciphertexts are bound together and synchronously transmitted and stored to each storage node;

[0032] The initial key matrix is ​​specifically as follows:

[0033]

[0034] In the matrix, a1-a 32 All represent bytes, and each byte consists of 8 bits of binary data;

[0035] The specific formula for calculating the round key constant is as follows:

[0036]

[0037] In the formula, R con [i] represents the current round key constant, R con [i-1] represents the key constant of the previous round.

[0038] Preferably, the step of setting a standard data format, obtaining the identifiers of SHA-256 ciphertext and AES-256 ciphertext, and determining whether the data transmitted in SHA-256 ciphertext is accurate specifically includes:

[0039] Retrieve SHA-256 encrypted data from the storage node;

[0040] Based on the location information of each functional partition, the data of each storage node is classified and processed to generate ecological environment information data of the same partition;

[0041] Compare the SHA-256 ciphertexts of the ecological environment information data in the same partition to determine whether the SHA-256 ciphertexts of each storage node are the same. If they are the same, it means that the data of the storage nodes is consistent and there is no data loss or tampering. If not, it means that the information of the storage nodes is abnormal and further analysis is needed.

[0042] Retrieve the AES-256 ciphertext from the abnormal storage node, decrypt the AES-256 ciphertext according to the encryption method of the storage node, and generate the plaintext data of the abnormal storage node;

[0043] Obtain the AES-256 encryption method of the storage node with the same SHA-256 ciphertext, and decrypt the AES-256 ciphertext of the storage node with the same SHA-256 ciphertext to generate plaintext data of the normal storage node;

[0044] The plaintext data of the abnormal storage node is compared with the plaintext data of the normal storage node to determine whether the two data are the same. If they are the same, it means that the data was interfered with during transmission, resulting in data abnormality. If not, it means that the storage medium of the abnormal storage node has failed, and an abnormality alert is issued.

[0045] Preferably, the timestamped encrypted data is sorted according to the chronological order of the timestamps and stored in the blockchain node, specifically including:

[0046] Perform a correspondence check between the encrypted data and the timestamp to generate standard encrypted data;

[0047] The standard ciphertext data is integrated and processed according to the timestamp-ciphertext data, and the standard ciphertext data is arranged in chronological order according to the timestamps.

[0048] A timestamp pointer is generated based on the encrypted data corresponding to the timestamp. The timestamp pointer is used to point to the network address of the encrypted data storage node corresponding to the timestamp.

[0049] Store the timestamp pointers into the blockchain in chronological order.

[0050] Based on the identifier of the SHA-256 ciphertext, node pointers are established, the blockchain is divided, and blockchain nodes are generated. The node pointers are used to point to the network addresses where the ecological environment information of each functional zone is stored.

[0051] Based on the timestamp pointer and node pointer, the encrypted data corresponding to the timestamp is stored in the blockchain node.

[0052] Preferably, the step of reading blockchain node information according to user query requirements, decoding the blockchain node information, and generating the required ecological environment information specifically includes:

[0053] Generate the corresponding timestamp and location information based on the user's query requirements;

[0054] Based on the timestamp corresponding to the user's query request, determine the blockchain where the information the user needs to query is located;

[0055] Based on the location information corresponding to the user's query request, retrieve the blockchain node where the information the user needs to query is located, and combine the timestamp pointer corresponding to the user's query request to obtain the encrypted data and AES-256 encryption method of the storage node corresponding to the timestamp in each storage node.

[0056] Compare the SHA-256 ciphertext in each storage node to obtain the AES-256 ciphertext bound to the same SHA-256 ciphertext in the storage node;

[0057] Based on the AES-256 encryption method of the storage node, the AES-256 ciphertext bound to the same SHA-256 ciphertext is decoded to generate the required ecological environment information.

[0058] Preferably, the step of setting ecological environment thresholds, establishing a data monitoring model, and determining whether the real-time ecological environment information of each functional zone is qualified specifically includes:

[0059] Based on the geographical information of each ecological planning area, a second ecological environment threshold is set;

[0060] A data supervision model is established using ecological and environmental thresholds as characteristic data.

[0061] The data monitoring model is used to analyze the ecological and environmental data to determine whether the real-time ecological and environmental information of each functional zone exceeds the ecological and environmental threshold. If so, the real-time ecological and environmental information of that functional zone is deemed unqualified and is marked as abnormal. If not, the real-time ecological and environmental information of that functional zone is deemed qualified.

[0062] Furthermore, a blockchain-based ecological environment monitoring information management system is proposed to implement the aforementioned blockchain-based ecological environment monitoring information management method, including:

[0063] The data acquisition module is used to collect ecological and environmental data from various environmental monitoring devices and transmit the collected ecological and environmental data to the data integration module.

[0064] The data encryption module is used to convert the format of the received data, fill the converted data, and encrypt the filled data to generate SHA-256 ciphertext and AES-256 ciphertext, and then transmit the data to the data storage module.

[0065] The data storage module is used to add timestamps to the acquired ciphertext data, generate timestamp-marked ciphertext data, generate timestamp pointers according to the ciphertext data corresponding to the timestamps, store the timestamp pointers in the blockchain according to the order of the timestamps, and transmit the data to the data query module.

[0066] The data query module is used to generate corresponding timestamps and location information according to user query requirements, determine the blockchain node where the information to be queried by the user is located, retrieve the timestamp of the blockchain node where the information to be queried by the user is located, determine the timestamp pointer corresponding to the user query requirements, obtain the encrypted data and AES-256 encryption method of the storage node corresponding to the timestamp in each storage node, and generate the required ecological environment information.

[0067] A data alert unit is used to mark and alert on abnormal data based on the data judgment results.

[0068] The data monitoring module is used to set a second ecological environment threshold based on the geographical information of each ecological planning area, establish a data monitoring model, analyze the ecological environment data based on the data monitoring model, and determine whether the real-time ecological environment information of each functional zone is qualified.

[0069] Optionally, the data encryption module specifically includes:

[0070] A key generation unit is used to generate a 32-byte initial key based on a random number generator, arrange the initial key in a matrix, obtain the encryption method for each round based on the round key constant and the column elements of the initial key, and generate the corresponding key.

[0071] Based on the AES encryption algorithm, the ecological environment information of each functional zone is encrypted.

[0072] An encryption unit is used to encrypt data. It uses the received ecological environment information and key to encrypt the ecological environment information according to the selected SHA-2 algorithm and AES encryption algorithm, converting it into ciphertext.

[0073] A key management unit, which is used to manage the storage, distribution and updating of keys.

[0074] Optionally, the data storage module specifically includes:

[0075] The first judgment unit is used to compare the SHA-256 ciphertext of the ecological environment information data in the same partition and determine whether the SHA-256 ciphertext of each storage node is the same.

[0076] The second judgment unit is used to compare the plaintext data of the abnormal storage node with the plaintext data of the normal storage node to determine whether the two data are the same.

[0077] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0078] This invention proposes a blockchain-based method for managing ecological environment monitoring information. It collects real-time ecological environment information through environmental monitoring equipment, generates ecological environment information for each functional zone based on the location information of each functional zone within the monitoring area, sets an encryption direction, and encrypts the ecological environment information of each functional zone using SHA-2 and AES encryption algorithms to generate corresponding SHA-256 and AES-256 ciphertexts. A standard data format is defined, and the identifiers of the SHA-256 and AES-256 ciphertexts are obtained. The accuracy of the data transmitted via SHA-256 ciphertext is determined, and the accurate SHA-256 ciphertext is obtained. Simultaneously transmitting AES-256 ciphertext and adding a timestamp, generating timestamp-marked ciphertext data, establishing blockchain nodes, sorting the timestamp-marked ciphertext data according to the order of the timestamps, and storing it in the blockchain nodes, retrieving blockchain node information according to user query requirements, generating the required ecological environment information, setting ecological environment thresholds, and judging whether the real-time ecological environment information of each functional area is qualified. In this way, data encryption can be effectively achieved, ensuring the accuracy and stability of data during transmission, improving the reliability of ecological environment monitoring information in storage and retrieval, and reducing the potential risk of ecological environment degradation. Attached Figure Description

[0079] Figure 1 This is a flowchart of the blockchain-based ecological environment monitoring information management method proposed in this invention.

[0080] Figure 2 This is a flowchart illustrating the steps involved in generating real-time ecological environment information for each functional zone in this invention.

[0081] Figure 3 This is a flowchart illustrating the process of determining the accuracy of data transmitted via SHA-256 ciphertext in this invention.

[0082] Figure 4 This is a flowchart illustrating the steps of storing timestamped encrypted data to a blockchain node in this invention.

[0083] Figure 5 This is a flowchart illustrating the steps of obtaining the required ecological and environmental information based on user query needs in this invention.

[0084] Figure 6 This is a structural diagram of the blockchain-based ecological environment monitoring information management system proposed in this invention. Detailed Implementation

[0085] The following description is intended to disclose the invention and enable those skilled in the art to implement it. The preferred embodiments described below are merely examples, and other obvious variations will occur to those skilled in the art.

[0086] Reference Figure 1 As shown, a blockchain-based method for managing ecological environment monitoring information includes:

[0087] Obtain the location information of each functional zone in the ecological monitoring area;

[0088] Collect real-time ecological and environmental information, and generate ecological and environmental information for each functional zone based on the location information of each functional zone in the ecological monitoring area;

[0089] Based on the location information of each functional area, assign a unique identifier to each functional area;

[0090] Based on the SHA-2 and AES encryption algorithms, the encryption direction is set;

[0091] Based on the encryption direction, the ecological environment information of each functional zone is encrypted to generate corresponding SHA-256 ciphertext and AES-256 ciphertext;

[0092] Set a standard data format and obtain the identifiers of SHA-256 ciphertext and AES-256 ciphertext. Determine whether the data transmitted by SHA-256 ciphertext is accurate. Obtain the AES-256 ciphertext transmitted at the same time as the accurate SHA-256 ciphertext and generate ciphertext data with timestamps.

[0093] The encrypted data marked with timestamps is sorted according to the order of the timestamps and stored in the blockchain node;

[0094] Obtain user query requirements, read blockchain node information based on user query requirements, decode blockchain node information, and generate the required ecological environment information;

[0095] Set ecological and environmental thresholds, establish a data monitoring model, and determine whether the real-time ecological and environmental information of each functional zone is up to standard.

[0096] This solution collects real-time ecological and environmental information through environmental monitoring equipment. Based on the location information of each functional zone within the ecological monitoring area, it generates ecological and environmental information for each functional zone. An encryption direction is set, and the ecological and environmental information for each functional zone is encrypted using SHA-2 and AES encryption algorithms, generating corresponding SHA-256 and AES-256 ciphertexts. A standard data format is defined, and the identifiers of the SHA-256 and AES-256 ciphertexts are obtained. The accuracy of the data transmitted via SHA-256 ciphertext is determined. Simultaneously transmitted AES-256 ciphertext is obtained and timestamped, generating timestamped ciphertext data. A blockchain node is established, and the timestamped ciphertext data is sorted according to the timestamp order and stored on the blockchain node. Based on user query requirements, the blockchain node information is retrieved to generate the required ecological and environmental information. An ecological and environmental threshold is set to determine whether the real-time ecological and environmental information of each functional zone is qualified. This method improves the reliability of ecological and environmental monitoring information in storage and retrieval, and reduces the potential risk of ecological and environmental degradation.

[0097] Reference Figure 2 As shown, based on the location information of each functional zone in the ecological monitoring area, real-time ecological environment information for each functional zone is generated, specifically including:

[0098] Based on the location information of each functional zone in the ecological monitoring area, the ecological monitoring area is divided into geographical locations to generate geographical information for each ecological planning area. The geographical information for each ecological planning area includes altitude, vegetation location, planting area location, and water area location.

[0099] Select environmental monitoring equipment based on the function of each ecological planning area;

[0100] Based on the geographical information of each ecological planning area, environmental monitoring equipment is set up in open areas near water bodies, planting areas and vegetation, and environmental monitoring equipment is set up again at every 100 meters of altitude.

[0101] Ecological and environmental data are collected every hour and processed on a daily basis.

[0102] Obtain the ecological and environmental data of the previous cycle, generate the first ecological and environmental threshold, and determine whether there is any abnormality in the ecological and environmental data of the current cycle. If so, obtain the data from the surrounding environmental monitoring equipment for further analysis; otherwise, enter the ecological and environmental data of the current cycle into an Excel spreadsheet.

[0103] Further analyze the data from the surrounding environmental monitoring equipment to determine if the equipment is malfunctioning. If so, repair the equipment; otherwise, record the abnormal data in an Excel spreadsheet.

[0104] Understandably, different ecological planning areas have different functions, which lead to specific ecological and environmental problems and key areas of focus. In vegetated areas, the productivity of the ecosystem is assessed by measuring the total leaf area of ​​plants per unit land area and using the ratio of total leaf area to land area. In planted areas, the appropriate crops for planting are determined by testing the content of organic matter, macroelements such as nitrogen, phosphorus, and potassium, and microelements such as iron, manganese, and zinc in the soil. In water bodies, water temperature, color, and transparency are typically measured. Water temperature affects the metabolism and reproduction of aquatic organisms, while transparency reflects the amount of suspended particulate matter in the water, indirectly indicating the cleanliness of the water. Chemical indicators such as dissolved oxygen, chemical oxygen demand (COD), biochemical oxygen demand (BOD), ammonia nitrogen, total phosphorus, and total nitrogen are measured to determine the water quality. The degree of organic pollution in an ecosystem is assessed by detecting heavy metals (such as mercury, cadmium, lead, and chromium) and harmful substances (such as pesticides and petroleum pollutants) in the water. This evaluates whether the ecosystem poses a serious threat to human health. As altitude increases, temperature typically decreases, leading to climate change and impacting vegetation. Ecological processes such as material cycling and energy flow also vary with altitude. In aquatic ecosystems, water flow speed, water temperature, and dissolved nutrient content all differ due to altitude variations. Based on the previous period's ecological environment data, 5% of the previous period's data is used as the first ecological environment threshold. If the current period's ecological environment data exceeds this threshold, it indicates a significant change in the region's ecological environment or a malfunction in the environmental monitoring equipment.

[0105] Furthermore, the corresponding SHA-256 ciphertext and AES-256 ciphertext are generated, specifically including:

[0106] Using Python, data in an Excel spreadsheet is converted to generate ecological and environmental data in CSV format.

[0107] Populate the ecological environment data in CSV format to generate 512-bit data;

[0108] Based on the hash function, the 512-bit byte data is converted into a 256-bit binary string, and then the 256-bit binary string is represented in hexadecimal to generate SHA-256 ciphertext.

[0109] A 32-byte initial key is generated using a random number generator, and the initial key is then arranged in a matrix.

[0110] Perform a shift transformation on the elements in the matrix to generate the round key constant;

[0111] Based on the encryption direction, multiply the column elements of the round key constant and the initial key to obtain the encryption method for each round;

[0112] Based on the encryption method of each round, the ecological environment data corresponding to the SHA-256 ciphertext is processed to generate AES-256 ciphertext;

[0113] Each storage node uses a different AES-256 encryption method, and the generated different AES-256 ciphertexts and SHA-256 ciphertexts are bound together and synchronously transmitted and stored to each storage node;

[0114] The initial key matrix is ​​specifically as follows:

[0115]

[0116] In the matrix, a1-a 32 All represent bytes, and each byte consists of 8 bits of binary data;

[0117] The specific formula for calculating the round key constant is as follows:

[0118]

[0119] In the formula, R con [i] represents the current round key constant, R con [i-1] represents the key constant of the previous round.

[0120] It is understandable that data encryption is a fixed logical procedure that requires ensuring the uniformity of the input data format. Therefore, the ecological environment data needs to be formatted and filled to generate 512-bit byte data. The encryption direction is an important factor in determining data encryption. Encryption direction can be divided into one-way encryption and two-way encryption. In this embodiment, one-way encryption is used to generate SHA-256 ciphertext, and two-way encryption is used to generate AES-256 ciphertext. In one-way encryption, the data can only be encrypted, and the original data cannot be deduced from the encrypted result. However, the accuracy of the data can be ensured by comparing the encrypted ciphertext. The encryption direction of two-way encryption is reversible. The plaintext can be restored from the ciphertext using the key. However, it is not possible to determine whether the transmitted data is accurate by comparing the ciphertext. In order to ensure the independence of the data, the AES-256 ciphertext of each storage node adopts a different encryption method. The round key constant can be deduced from the initial key matrix, and then the AES-256 decryption method can be obtained.

[0121] Reference Figure 3 As shown, a standard data format is set, and the identifiers of SHA-256 ciphertext and AES-256 ciphertext are obtained. The accuracy of the data transmitted via SHA-256 ciphertext is then determined, specifically including:

[0122] Retrieve SHA-256 encrypted data from the storage node;

[0123] Based on the location information of each functional partition, the data of each storage node is classified and processed to generate ecological environment information data of the same partition;

[0124] Compare the SHA-256 ciphertexts of the ecological environment information data in the same partition to determine whether the SHA-256 ciphertexts of each storage node are the same. If they are the same, it means that the data of the storage nodes is consistent and there is no data loss or tampering. If not, it means that the information of the storage nodes is abnormal and further analysis is needed.

[0125] Retrieve the AES-256 ciphertext from the abnormal storage node, decrypt the AES-256 ciphertext according to the encryption method of the storage node, and generate the plaintext data of the abnormal storage node;

[0126] Obtain the AES-256 encryption method of the storage node with the same SHA-256 ciphertext, and decrypt the AES-256 ciphertext of the storage node with the same SHA-256 ciphertext to generate plaintext data of the normal storage node;

[0127] The plaintext data of the abnormal storage node is compared with the plaintext data of the normal storage node to determine whether the two data are the same. If they are the same, it means that the data was interfered with during transmission, resulting in data abnormality. If not, it means that the storage medium of the abnormal storage node has failed, and an abnormality alert is issued.

[0128] It is understandable that because SHA-256 ciphertext uses one-way encryption, the ciphertext generated after encrypting the same data is the same. By comparing the SHA-256 ciphertext of each storage node, it is possible to determine whether the data of the storage node has been corrupted or lost.

[0129] Reference Figure 4 As shown, the encrypted data marked with timestamps is sorted according to the order of the timestamps and stored in the blockchain node, specifically including:

[0130] Perform a correspondence check between the encrypted data and the timestamp to generate standard encrypted data;

[0131] The standard ciphertext data is integrated and processed according to the timestamp-ciphertext data, and the standard ciphertext data is arranged in chronological order according to the timestamps.

[0132] A timestamp pointer is generated based on the encrypted data corresponding to the timestamp. The timestamp pointer is used to point to the network address of the encrypted data storage node corresponding to the timestamp.

[0133] Store the timestamp pointers into the blockchain in chronological order.

[0134] Based on the identifier of the SHA-256 ciphertext, node pointers are established, the blockchain is divided, and blockchain nodes are generated. The node pointers are used to point to the network addresses where the ecological environment information of each functional zone is stored.

[0135] Based on the timestamp pointer and node pointer, the encrypted data corresponding to the timestamp is stored in the blockchain node.

[0136] It is understandable that blockchain requires a specific format for stored data. Converting encrypted data to this specific format may corrupt the content of the encrypted data, making it impossible to correctly parse and verify the stored encrypted data. Therefore, this embodiment uses pointers to connect the data. By marking the encrypted data with timestamps, timestamp pointers are generated based on the timestamps and stored in the blockchain. Using the identifier of the SHA-256 ciphertext, the blockchain where the timestamp pointers are stored is internally divided to generate blockchain nodes. Based on the source location of the SHA-256 ciphertext, node pointers are generated and stored in the blockchain nodes, realizing dual storage of encrypted data.

[0137] Reference Figure 5 As shown, based on the user's query requirements, blockchain node information is read, decoded, and the required ecosystem information is generated, specifically including:

[0138] Generate the corresponding timestamp and location information based on the user's query requirements;

[0139] Based on the timestamp corresponding to the user's query request, determine the blockchain where the information the user needs to query is located;

[0140] Based on the location information corresponding to the user's query request, retrieve the blockchain node where the information the user needs to query is located, and combine the timestamp pointer corresponding to the user's query request to obtain the encrypted data and AES-256 encryption method of the storage node corresponding to the timestamp in each storage node.

[0141] Compare the SHA-256 ciphertext in each storage node to obtain the AES-256 ciphertext bound to the same SHA-256 ciphertext in the storage node;

[0142] Based on the AES-256 encryption method of the storage node, the AES-256 ciphertext bound to the same SHA-256 ciphertext is decoded to generate the required ecological environment information.

[0143] Understandably, based on the user's query requirements, the system can obtain the required time and location information, compare the required query time with the timestamp, determine the blockchain and timestamp pointer where the user's requested information is located, obtain the corresponding blockchain node pointer based on the query location, and retrieve the corresponding SHA-256 and AES-256 ciphertext from each storage node based on the timestamp pointer and node pointer. By comparing the SHA-256 ciphertext in each storage node, the accuracy of the storage node data is determined, and the AES-256 ciphertext of the storage node is obtained. Based on the AES-256 encryption method of the storage node, the wheel key constant is deduced to obtain the AES-256 decryption method, and the AES-256 ciphertext is decoded to generate the required ecological environment information, which is then transmitted to the user terminal.

[0144] Furthermore, ecological and environmental thresholds are set, a data monitoring model is established, and the real-time ecological and environmental information of each functional zone is judged to be qualified. Specifically, this includes:

[0145] Based on the geographical information of each ecological planning area, a second ecological environment threshold is set;

[0146] A data supervision model is established using ecological and environmental thresholds as characteristic data.

[0147] The data monitoring model is used to analyze the ecological and environmental data to determine whether the real-time ecological and environmental information of each functional zone exceeds the ecological and environmental threshold. If so, the real-time ecological and environmental information of that functional zone is deemed unqualified and is marked as abnormal. If not, the real-time ecological and environmental information of that functional zone is deemed qualified.

[0148] Understandably, in fertile black soil distribution areas, the soil fertility is high, providing abundant nutrients and good water and fertilizer retention capacity. The threshold for soil organic matter content in this area can be set between 3% and 5%, and the content of major nutrients such as nitrogen, phosphorus, and potassium should also be maintained at a certain level. For example, the total nitrogen content should not be less than 0.15%, the available phosphorus content should not be less than 10 mg / kg, and the available potassium content should not be less than 100 mg / kg, in order to maintain high soil productivity. In the upper reaches of rivers, the water quality is usually better. As a water source protection area, the threshold for chemical oxygen demand in the water should not exceed 15 mg / L, the threshold for ammonia nitrogen content should not exceed 0.5 mg / L, and the threshold for total phosphorus content should not exceed 0.05 mg / L, in order to ensure the cleanliness and safety of the water source and meet the water quality requirements for downstream residents' domestic and industrial use. In the lower reaches of the river, due to the potential impact of urban sewage discharge, industrial wastewater pollution and agricultural non-point source pollution, it is necessary to ensure basic aquatic ecological functions. For example, the oxygen demand threshold can be set below 40 mg / L, the ammonia nitrogen content threshold should not exceed 2 mg / L, and the total phosphorus content threshold should not exceed 0.2 mg / L.

[0149] Furthermore, refer to Figure 6 As shown, based on the same concept as the aforementioned blockchain-based ecological environment monitoring information management method, a blockchain-based ecological environment monitoring information management system is proposed, comprising:

[0150] The data acquisition module is used to collect ecological and environmental data from various environmental monitoring devices and transmit the collected ecological and environmental data to the data integration module.

[0151] The data encryption module is used to convert the format of the received data, fill the converted data, and encrypt the filled data to generate SHA-256 ciphertext and AES-256 ciphertext, and then transmit the data to the data storage module.

[0152] The data storage module is used to add timestamps to the acquired ciphertext data, generate timestamp-marked ciphertext data, generate timestamp pointers according to the ciphertext data corresponding to the timestamps, store the timestamp pointers in the blockchain according to the order of the timestamps, and transmit the data to the data query module.

[0153] The data query module is used to generate corresponding timestamps and location information according to user query requirements, determine the blockchain node where the information to be queried by the user is located, retrieve the timestamp of the blockchain node where the information to be queried by the user is located, determine the timestamp pointer corresponding to the user query requirements, obtain the encrypted data and AES-256 encryption method of the storage node corresponding to the timestamp in each storage node, and generate the required ecological environment information.

[0154] A data alert unit is used to mark and alert on abnormal data based on the data judgment results.

[0155] The data monitoring module is used to set a second ecological environment threshold based on the geographical information of each ecological planning area, establish a data monitoring model, analyze the ecological environment data based on the data monitoring model, and determine whether the real-time ecological environment information of each functional zone is qualified.

[0156] Furthermore, the data encryption module specifically includes:

[0157] A key generation unit is used to generate a 32-byte initial key based on a random number generator, arrange the initial key in a matrix, obtain the encryption method for each round based on the round key constant and the column elements of the initial key, and generate the corresponding key.

[0158] Based on the AES encryption algorithm, the ecological environment information of each functional zone is encrypted.

[0159] An encryption unit is used to encrypt data. It uses the received ecological environment information and key to encrypt the ecological environment information according to the selected SHA-2 algorithm and AES encryption algorithm, converting it into ciphertext.

[0160] A key management unit, which is used to manage the storage, distribution and updating of keys.

[0161] Furthermore, the data storage module specifically includes:

[0162] The first judgment unit is used to compare the SHA-256 ciphertext of the ecological environment information data in the same partition and determine whether the SHA-256 ciphertext of each storage node is the same.

[0163] The second judgment unit is used to compare the plaintext data of the abnormal storage node with the plaintext data of the normal storage node to determine whether the two data are the same.

[0164] In summary, the advantages of this invention are: it can effectively encrypt data, ensure the accuracy of data in the storage and retrieval process, make the acquired ecological environment data consistent with the actual situation, and greatly reduce the potential risk of ecological environment degradation.

[0165] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the claimed invention. The scope of protection claimed by the appended claims and their equivalents is defined.

Claims

1.A blockchain-based method for managing ecological environment detection information, characterized in that, The method comprises the following steps: Obtain the location information of each functional subarea in the ecological detection area; Collect real-time ecological environment information and generate ecological environment information for each functional subarea according to the location information of each functional subarea in the ecological detection area; Assign a unique identifier to each functional subarea according to the location information of each functional area; Set the encryption direction based on the SHA-2 algorithm and the AES encryption algorithm; According to the encryption direction, the ecological environment information of each functional subarea is encrypted to generate corresponding SHA-256 ciphertext and AES-256 ciphertext; Set the standard data format and obtain the identifier of the SHA-256 ciphertext and the AES-256 ciphertext, judge whether the data transmitted by the SHA-256 ciphertext is accurate, obtain the AES-256 ciphertext transmitted at the same time as the accurate SHA-256 ciphertext, and generate timestamp marked ciphertext data; Sort the timestamp marked ciphertext data according to the timestamp sequence and store it in the blockchain node; Obtain user query requirements, read the blockchain node information according to the user query requirements, decode the blockchain node information, and generate the required ecological environment information; Set the ecological environment threshold and establish a data supervision model to determine whether the real-time ecological environment information of each functional subarea is qualified; The generation of corresponding SHA-256 ciphertext and AES-256 ciphertext specifically includes: Based on Python language, convert the data in the Excel table to generate CSV format ecological environment data; Fill in the CSV format ecological environment data to generate 512 bit byte data; Based on the hash function, convert the 512 bit byte data to a 256 bit binary string, then represent the 256 bit binary string in hexadecimal, and generate SHA-256 ciphertext; Generate a 32 byte initial key based on a random number generator and arrange the initial key in a matrix; Shift the elements in the matrix to generate a round key constant; According to the encryption direction, multiply the round key constant and the column elements of the initial key to obtain the encryption mode of each round; According to the encryption mode of each round, process the ecological environment data corresponding to the SHA-256 ciphertext to generate the AES-256 ciphertext; Each storage node uses a different AES-256 encryption mode to bind the generated different AES-256 ciphertext and SHA-256 ciphertext and synchronously transmit and store them to each storage node; The initial key matrix is specifically: ; in the matrix, - each byte consisting of 8 bits of binary; The calculation formula of the round key constant is specifically: wherein, denotes the current round key constant, denotes the previous round key constant. 2.The blockchain-based ecological environment detection information management method of claim 1, wherein, The generation of real-time ecological environment information for each functional subarea according to the location information of each functional subarea in the ecological detection area specifically includes: According to the location information of each functional subarea in the ecological detection area, divide the geographical position of the ecological detection area to generate geographical information of each ecological planning area, and the geographical information of each ecological planning area includes altitude, vegetation position, planting land position and water area position; According to the function of each ecological planning area, select an environmental detection device; According to geographical information of each ecological planning area, environmental detection devices are arranged in open areas close to water areas, planting areas and vegetation, and the environmental detection devices are arranged again every 100 meters in altitude; Ecological environment data is collected once an hour, and the ecological environment data is sorted in a day cycle; The ecological environment data of the last cycle is obtained, a first ecological environment threshold is generated, it is judged whether the ecological environment data of the current cycle is abnormal, if yes, the data of the surrounding environmental detection devices is obtained for further analysis, if no, the ecological environment data of the current cycle is recorded in an Excel table; The data of the surrounding environmental detection devices is further analyzed, it is judged whether the environmental detection devices are malfunctioning, if yes, the environmental detection devices are repaired, if no, the abnormal data is recorded in the Excel table. 3.The blockchain-based ecological environment detection information management method of claim 1, wherein, The standard data format is set, and the identifiers of the SHA-256 ciphertext and the AES-256 ciphertext are obtained, it is judged whether the data transmitted by the SHA-256 ciphertext is accurate, specifically including: The SHA-256 ciphertext data of the storage node is obtained; According to the position information of each functional partition, the data of each storage node is classified and processed to generate the same-partition ecological environment information data; The SHA-256 ciphertext of the same-partition ecological environment information data is compared to determine whether the SHA-256 ciphertext of each storage node is the same, if yes, it means that the data of the storage node is consistent and there is no data loss or tampering, if no, it means that the information of the storage node is abnormal and needs further analysis; The AES-256 ciphertext in the abnormal storage node is obtained, and the AES-256 ciphertext is decrypted according to the encryption method of the storage node to generate the plaintext data of the abnormal storage node; The AES-256 encryption method of the SHA-256 ciphertext same storage node is obtained, and the AES-256 ciphertext of the SHA-256 ciphertext same storage node is decrypted to generate the plaintext data of the normal storage node; The plaintext data of the abnormal storage node and the plaintext data of the normal storage node are compared to determine whether the data is the same, if yes, it means that the data is disturbed in the transmission process, resulting in abnormal data, if no, it means that the storage medium of the abnormal storage node is malfunctioning, and an abnormal reminder is given. 4.The blockchain-based ecological environment detection information management method of claim 3, wherein, The timestamp marked ciphertext data is sorted according to the timestamp sequence, and stored in the blockchain node, specifically including: The corresponding relationship between the ciphertext data and the timestamp is checked to generate standard ciphertext data; The standard ciphertext data is integrated according to the timestamp-ciphertext data, and the standard ciphertext data is arranged according to the timestamp sequence; According to the ciphertext data corresponding to the timestamp, a timestamp pointer is generated, which is used to point to the network address of the timestamp corresponding ciphertext data storage node; The timestamp pointer is stored in the blockchain according to the timestamp sequence; According to the identifier of the SHA-256 ciphertext, a node pointer is established to divide the blockchain and generate a blockchain node, the node pointer is used to point to the network address of the ecological environment information storage of each functional partition; The timestamp corresponding ciphertext data is stored in the blockchain node according to the timestamp pointer and the node pointer. 5.The blockchain-based ecological environment detection information management method of claim 4, wherein, The method comprises the following steps: According to the user's query requirements, the corresponding timestamp and location information are generated; According to the timestamp corresponding to the user's query requirements, the blockchain where the user's query information is located is determined; According to the location information corresponding to the user's query requirements, the blockchain node where the user's query information is located is searched, and the ciphertext data and AES-256 encryption mode of the timestamp corresponding storage node in each storage node are obtained in combination with the timestamp pointer corresponding to the user's query requirements; The SHA-256 ciphertext in each storage node is compared to obtain the AES-256 ciphertext bound to the same SHA-256 ciphertext; According to the AES-256 encryption mode of the storage node, the AES-256 ciphertext bound to the same SHA-256 ciphertext is decoded to generate the required ecological environment information. 6.The blockchain-based ecological environment detection information management method of claim 5, wherein, The method comprises the following steps: According to the geographical information of each ecological planning area, the second ecological environment threshold is set; The data supervision model is established by taking the ecological environment threshold as the characteristic data; According to the data supervision model, the ecological environment data is analyzed to determine whether the real-time ecological environment information of each functional area exceeds the ecological environment threshold. If yes, it is determined that the real-time ecological environment information of the functional area is unqualified, and the real-time ecological environment information of the functional area is marked as abnormal. If not, it is determined that the real-time ecological environment information of the functional area is qualified. 7.A blockchain-based ecological environment detection information management system, characterized in that, The method comprises the following steps: A data acquisition module is arranged for collecting ecological environment data from various environmental detection devices and transmitting the collected ecological environment data to a data integration module; A data encryption module is arranged for performing format conversion on the received data, filling the converted data, and encrypting the filled data to generate SHA-256 ciphertext and AES-256 ciphertext, and transmitting the data to a data storage module; A data storage module is arranged for adding a timestamp to the obtained ciphertext data to generate timestamp marked ciphertext data, generating a timestamp pointer according to the timestamp corresponding ciphertext data, storing the timestamp pointer in a blockchain according to the sequence of the timestamp, and transmitting the data to a data query module; A data query module is arranged for generating corresponding timestamp and location information according to user query requirements, determining the blockchain node where the user's query information is located, searching the timestamp of the blockchain node where the user's query information is located, determining the timestamp pointer corresponding to the user's query requirements, obtaining the ciphertext data and AES-256 encryption mode of the timestamp corresponding storage node in each storage node, and generating the required ecological environment information; A data warning unit is arranged for marking and reminding the abnormal data according to the data judgment result. The data monitoring module is configured to set a second ecological environment threshold according to geographical information of each ecological planning area, establish a data monitoring model, analyze ecological environment data according to the data monitoring model, and determine whether real-time ecological environment information of each functional subarea is qualified. 8.The blockchain-based ecological environment detection information management system according to claim 7, characterized in that, The data encryption module specifically includes: A key generation unit is configured to generate a 32-byte initial key based on a random number generator, arrange the initial key in a matrix, obtain an encryption mode of each round according to a round key constant and a column element of the initial key, and generate a corresponding key; Based on the AES encryption algorithm, the ecological environment information of each functional subarea is encrypted, An encryption unit is configured to perform an encryption operation on data, encrypt ecological environment information according to a selected SHA-2 algorithm and AES encryption algorithm by using the received ecological environment information and the key, and convert the ecological environment information into ciphertext; A key management unit is configured to manage storage, distribution, and update of the key. 9.The blockchain-based ecological environment detection information management system of claim 8, wherein, The data storage module specifically includes: A first judgment unit is configured to compare SHA-256 ciphertext of the same subarea ecological environment information data, and determine whether the SHA-256 ciphertext of each storage node is the same; A second judgment unit is configured to compare abnormal storage node plaintext data and normal storage node plaintext data, and determine whether the data is the same.

Citation Information

Patent Citations

  • Block chain architecture-based ecological environment monitoring system and implementation method thereof

    CN106407481A

  • Data encryption and decryption method and device, equipment and storage medium

    CN114448714A