Forest and grassland data integrity detection method based on blockchain and spatial data fingerprint

By defining smart contracts in the blockchain network and generating spatial data fingerprint cloud databases, the centralization, opaque and untraceable problems of data integrity detection in distributed forest and grass data recession scenarios are solved, and a decentralized, transparent and tamper-free detection process is realized, improving the flexibility and efficiency of detection.

CN119646898BActive Publication Date: 2025-04-22SICHUAN FORESTRY & GRASSLAND INVESTIGATION & PLANNING INST (SICHUAN FORESTRY & GRASSLAND ECOLOGICAL ENVIRONMENT MONITORING CENT) +3
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510161872.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2025-04-22
Estimated Expiration
2045-02-14

AI Technical Summary

Technical Problem

In the distributed forest and grass data recess scenario, the existing technology has the disadvantages of high computing power consumption, poor timeliness and centralized detection, and the detection process is opaque and the results cannot be traced. It is difficult to effectively protect the integrity of forest and grass data, especially when internal and external attacks are combined, malicious tampering is difficult to detect.

Method used

The forest and grass data integrity detection method based on blockchain and spatial data fingerprint is adopted, and the spatial data fingerprint cloud database is generated and opened through blockchain network initialization and smart contract definition to achieve data integrity detection and results that are not tampered with and traceable.

Benefits of technology

It realizes the decentralization, transparency, tamper-free and traceable process of forest and grass data integrity detection. The detection method is flexible, efficient and dynamically adjustable, effectively solving the data integrity detection problem during distributed forest and grass data remittance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119646898B_ABST
    Figure CN119646898B_ABST
Patent Text Reader

Abstract

The present invention relates to a forest and grassland data integrity detection method based on blockchain and spatial data fingerprint, comprising the following steps: S1, blockchain network initialization and smart contract definition; S2, server-side spatial data fingerprint cloud database generation and chaining; S3, client-side spatial data fingerprint database generation and submission detection; S4, server-side data integrity detection and chaining of detection results; S5, judging whether the data integrity detection is passed, if passed, executing step S7, if not, executing step S6; S6, security situation awareness and emergency disposal; S7, server-side returns integrity detection results; S8, end. The present invention realizes the decentralization of the forest and grassland data integrity detection process, the process is transparent, tamper-proof and traceable, and the detection method is flexible, efficient and dynamically adjustable, which effectively solves the problem of data integrity detection when multi-user and multi-frequency convergence of massive spatial data of forest and grassland.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet of Things security technology, and in particular to a forest and grassland data integrity detection method based on blockchain and spatial data fingerprint. Background Art

[0002] For the distributed forest and grassland data submission scenario, the traditional method of detecting the spatial data integrity of the forest and grassland base map based on spatial union or spatial intersection analysis has the disadvantages of high computing power consumption, poor timeliness and centralized detection. On the other hand, the detection process cannot be effectively monitored, the detection process is opaque and the results cannot be traced. Especially under the combination of internal and external attacks, malicious tampering attacks are difficult to detect, and the integrity of the submitted forest and grassland data cannot be effectively guaranteed.

[0003] To sum up, in the case of complex distributed environments where internal and external attack threats coexist, there is an urgent need to provide a forest and grassland data integrity detection method based on blockchain and spatial data fingerprints, with a decentralized, transparent, tamper-proof and traceable detection process, and a flexible, efficient and dynamically adjustable detection method. Summary of the invention

[0004] The purpose of the present invention is to provide a forest and grassland data integrity detection method based on blockchain and spatial data fingerprint, with a detection process that is decentralized, transparent, tamper-proof and traceable, and a detection method that is flexible, efficient and dynamically adjustable.

[0005] The above purpose is achieved through the following technical solution: A forest and grassland data integrity detection method based on blockchain and spatial data fingerprint, comprising the following steps:

[0006] S1, blockchain network initialization and smart contract definition: select the blockchain type and blockchain platform, initialize the blockchain network, complete the smart contract definition and chain code installation for spatial data fingerprint library generation, the smart contract definition and chain code installation for data integrity detection, and the smart contract definition and chain code installation for security situation awareness;

[0007] S2, server-side spatial data fingerprint cloud database generation and chaining: The server-side of the Lincao cloud platform generates a fingerprint cloud database by executing the steps of spatial data feature extraction and spatial data fingerprint generation, and sequentially chains the fingerprint cloud database generation session, fingerprint cloud database, and fingerprint cloud database chaining session;

[0008] S3, client spatial data fingerprint database generation and submission detection: the forestry and grassland client downloads and obtains the spatial data fingerprint database generation strategy, executes the steps of spatial data feature extraction and spatial data fingerprint generation, generates the client fingerprint database, and sends a data integrity detection request and the client fingerprint database to the forestry and grassland cloud platform server;

[0009] S4, the server side performs data integrity detection and uploads the detection results to the chain: After the Lincao Cloud Platform server side obtains the data integrity detection request in step S3 and receives the client fingerprint database, it performs spatial data fingerprint comparison and detection, obtains the data integrity detection results, and uploads the client data integrity detection request session, data integrity detection results, and data integrity detection results to the chain session to the chain;

[0010] S5, determine whether the data integrity test has passed: the server of the Lincao Cloud Platform reads the number of records in the data integrity test result database, and determines whether the data integrity test has passed according to the number of records. If it has passed, execute step S7; if it has not passed, execute step S6;

[0011] S6, security situation awareness and emergency disposal: The server of the Lincao cloud platform queries the Lincao client that failed the data integrity test in the blockchain network, obtains the number of failed access requests for the Lincao client, and determines whether there is a DOS attack threat;

[0012] S7, the server returns the integrity test result: the forest and grassland data server will return the data integrity test result to the forest and grassland client according to the business type;

[0013] S8, end.

[0014] The present invention defines spatial data fingerprint generation, data integrity detection, and security situation awareness smart contracts in the blockchain network, extracts spatial features and attribute features of spatial vector data on the server and client sides through spatial data features, executes the spatial data fingerprint generation smart contract to parse it into encrypted spatial data fingerprints, and then returns the integrity detection result and records the detection status through the execution of the data integrity detection smart contract. Finally, the security status of the system is dynamically monitored through the security situation awareness smart contract, so as to realize the decentralization, transparency, non-tamperability and traceability of the forest and grassland data integrity detection process. The detection method is flexible, efficient and dynamically adjustable, which effectively solves the problem of data integrity detection when massive spatial data of forest and grassland are submitted by multiple users and multiple frequencies.

[0015] A further technical solution is that step S1 specifically includes the following steps:

[0016] S1.1, blockchain network initialization;

[0017] S1.2, Spatial data fingerprint library generates smart contracts and chain code installation: The spatial data fingerprint library generates smart contracts including the strategies implemented by the forest and grass cloud platform in the blockchain network. The strategies include the following:

[0018] Fingerprint cloud database generated session chain strategy: Before the Lincao cloud platform performs data integrity detection, the server of the Lincao cloud platform initiates a transaction for the fingerprint cloud database generated session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tampering and traceability of fingerprint cloud database generation behavior;

[0019] Fingerprint cloud database on-chain session on-chain strategy: After the fingerprint cloud database is formed, the server of the Lincao cloud platform initiates a transaction for the fingerprint cloud database on-chain session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tampering and traceability of the fingerprint cloud database on-chain behavior;

[0020] Spatial data feature extraction strategy: The forest and grass cloud platform obtains the spatial features and attribute features of the spatial vector data in the server-side information library by executing the spatial feature extraction algorithm and the attribute feature extraction algorithm;

[0021] Spatial data fingerprint generation strategy: The forest and grass cloud platform connects the spatial features and attribute features extracted from spatial vector data through connectors, and uses a hash algorithm to perform information summary to form a spatial data fingerprint strategy;

[0022] Fingerprint cloud database generation strategy: The forestry and grassland cloud platform generates spatial data fingerprints for all elements of spatial vector data used for data integrity detection, and exports the administrative division and / or business division information describing the data area information, to generate a fingerprint cloud database strategy with pure attribute method and independent storage;

[0023] Fingerprint cloud database chain strategy: Before the Lincao cloud platform conducts data integrity detection, the server of the Lincao cloud platform will initiate a transaction with all the records of the fingerprint cloud database. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tamperability and traceability of the fingerprint cloud database data;

[0024] S1.3, Data integrity detection smart contract and chain code installation: The data integrity detection smart contract includes the strategies implemented by the Lincao Cloud Platform in the blockchain network. The strategies include the following:

[0025] Client data integrity detection request session on-chain strategy: After receiving the data submission and data integrity detection request from the Lincao client, the server of the Lincao cloud platform will initiate a transaction for the client data integrity detection request session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the tamper-proof and traceable strategy of the data submission and data integrity detection behavior of the Lincao client;

[0026] Spatial data fingerprint comparison and detection strategy: The Forestry Cloud Platform obtains the stored fingerprint cloud database from the blockchain network based on the client fingerprint database and detection area submitted by the Forestry Client. Through attribute query and comparison, the spatial data fingerprint of the client fingerprint database of the detection area and the spatial data fingerprint of the fingerprint cloud database are compared for consistency, and inconsistent spatial data fingerprints are marked.

[0027] Data integrity test result generation strategy: The forestry cloud platform stores the marked inconsistent spatial data fingerprints separately to form a data integrity test result database;

[0028] Data integrity test result chain strategy: After the Lincao Cloud Platform performs data integrity test, the server of the Lincao Cloud Platform will initiate a transaction with all the records in the data integrity test result database. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thus realizing the data integrity test result database data cannot be tampered with and can be traced;

[0029] Data integrity test execution result session chain strategy: After completing the data integrity test, the server of the Lincao Cloud Platform will initiate a transaction for the server-side data integrity test execution result session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tampering and traceability of data integrity test execution behavior;

[0030] S1.4, Security Situation Awareness Smart Contract Definition and Chain Code Installation: The Security Situation Awareness Smart Contract includes the strategies implemented by the Lincao Cloud Platform in the blockchain network. The strategies include the following:

[0031] DOS attack monitoring strategy: The Lincao cloud platform queries the Lincao client that failed the data integrity test in the blockchain network, obtains the number of failed access requests for the Lincao client, and determines whether the number of failed access exceeds the specified threshold. It determines that there is a DOS attack threat and triggers a security threat emergency disposal strategy;

[0032] Data integrity test result return strategy: The strategy of the Forestry and Grassland Cloud Platform to return the test results to the Forestry and Grassland Client based on the data integrity test results;

[0033] Among them, the spatial data fingerprint library generation smart contract, data integrity detection smart contract and security situation awareness smart contract definitions in steps S1.2~S1.4 are installed through the chain code of the server-side node of the Lincao Cloud Platform.

[0034] A further technical solution is that step S1.1 specifically includes the following steps: selecting a blockchain type and a blockchain platform based on the application scenario, carrying out organization registration, identity authentication and verification, issuing certificates for the organization's client user nodes, peer nodes, sorting nodes, and identity authentication nodes, and approving chain code definitions and endorsement policy definitions for each organization and completing storage on the channel ledger.

[0035] A further technical solution is that step S2 specifically includes the following steps:

[0036] S2.1, Fingerprint cloud database generates session on-chain: The server of the Lincao cloud platform executes the fingerprint cloud database generates session on-chain strategy, and the server of the Lincao cloud platform initiates the transaction of fingerprint cloud database generation session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the immutability and traceability of fingerprint cloud database generation behavior;

[0037] S2.2, spatial data feature extraction: The server of the forest and grass cloud platform executes the spatial data feature extraction strategy on the spatial database used for data integrity detection, and obtains the spatial features and attribute features of the spatial vector data in the server-side information library;

[0038] S2.3, spatial data fingerprint generation: the server of the forest and grass cloud platform executes the spatial data fingerprint generation strategy for the spatial data for data integrity detection that has acquired spatial features and attribute features, and obtains the spatial data fingerprint of the spatial database of the server of the forest and grass cloud platform;

[0039] S2.4, Fingerprint cloud database generation: The server of the forest and grass cloud platform obtains the spatial data with spatial data fingerprint for data integrity detection, executes the fingerprint cloud database generation strategy, and obtains the fingerprint cloud database of the server of the forest and grass cloud platform;

[0040] S2.5, Fingerprint cloud database on-chain session on-chain: The server of the Lincao cloud platform executes the fingerprint cloud database on-chain session on-chain strategy. The server of the Lincao cloud platform initiates a transaction for the fingerprint cloud database on-chain session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the immutability and traceability of the fingerprint cloud database on-chain session.

[0041] S2.6, Fingerprint cloud database on-chain: The server-side of the Lincao cloud platform executes the fingerprint cloud database on-chain strategy. The server-side of the Lincao cloud platform initiates a transaction with all the records of the fingerprint cloud database. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thus achieving the immutability and traceability of the fingerprint cloud database data.

[0042] A further technical solution is that step S3 specifically includes the following steps:

[0043] S3.1, the client obtains the spatial data fingerprint database generation strategy: the forestry client obtains, including but not limited to, the spatial data feature extraction strategy, the spatial data fingerprint generation strategy and the fingerprint database generation strategy by accessing the forestry cloud platform server or the blockchain network;

[0044] S3.2, client spatial data feature extraction: For the spatial database used for data integrity detection, the forest and grassland client locally executes the spatial data feature extraction strategy to obtain the spatial features and attribute features of the spatial vector data in the client spatial database;

[0045] S3.3, client spatial data fingerprint generation: the forest and grassland client obtains spatial features and attribute features for spatial data integrity detection, executes the spatial data fingerprint generation strategy, and obtains the spatial data fingerprint of the forest and grassland client spatial database;

[0046] S3.4, client fingerprint cloud database generation: the forest and grassland client obtains the spatial data with spatial data fingerprint for data integrity detection, executes the fingerprint cloud database generation strategy, and obtains the fingerprint cloud database of the forest and grassland client;

[0047] S3.5, the client sends a data integrity check request and client fingerprint database: the Lincao client sends a data integrity check request to the Lincao cloud platform server, and submits the client fingerprint database to complete the data integrity check.

[0048] A further technical solution is that step S4 specifically includes the following steps:

[0049] S4.1, the server side uploads the client data integrity check request session to the chain: the server side of the Lincao cloud platform executes the fingerprint cloud database to generate the session chain strategy, and the server side of the Lincao cloud platform initiates the transaction of the client data integrity check request session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the tamper-proof and traceability of the Lincao client data submission and data integrity check behavior;

[0050] S4.2, server-side spatial data fingerprint comparison and detection: The server-side of the forest and grass cloud platform executes the spatial data fingerprint comparison and detection strategy, takes the client fingerprint database submitted by the client for detection as input, obtains the fingerprint cloud database from the blockchain network, and compares the consistency of the spatial data fingerprint of the client fingerprint database and the spatial data fingerprint of the fingerprint cloud database through attribute query comparison, and marks the inconsistent spatial data fingerprints;

[0051] S4.3, the server side obtains the data integrity test result: the server side of the forest and grass cloud platform executes the spatial data fingerprint test result generation strategy, and separately stores the spatial data fingerprints marked as inconsistent in the fingerprint database provided by the client to form a data integrity test result database;

[0052] S4.4, server-side data integrity test results are uploaded to the chain: After the Lincao Cloud Platform performs data integrity test, the server-side of the Lincao Cloud Platform executes the data integrity test result upload strategy, initiates a transaction with all records in the data integrity test result database, and forms a new block storage after calculation through the blockchain network consensus algorithm, which enters the blockchain network to achieve the data integrity test result database data cannot be tampered with and can be traced;

[0053] S4.5, server-side data integrity check execution result session chaining: The Lincao Cloud Platform server-side data integrity check execution result session chaining strategy initiates a transaction for the server-side data integrity check execution result session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thereby achieving the tamper-proof and traceable nature of the data integrity check execution behavior.

[0054] A further technical solution is that step S6 specifically includes the following steps: when the data integrity check fails, the Lincao cloud platform server executes the DOS attack monitoring strategy of the security situation awareness smart contract, and the Lincao cloud platform queries the Lincao client that failed the data integrity check in the blockchain network, obtains the number of failed accesses of the Lincao client that requested the check, and determines whether the number of failed accesses exceeds a specified threshold. If it exceeds the specified threshold, it is determined that there is a DOS attack threat and the security threat emergency disposal strategy is triggered. If it does not exceed the specified threshold, step S7 is executed.

[0055] A further technical solution is that step S7 specifically includes the following steps: the Lincao cloud platform server-side executes the data integrity detection result return strategy of the security situation awareness smart contract, and for the one-way data integrity check business, after the data integrity detection passes, returns True to the Lincao client, otherwise, returns False; for the data aggregation business, after the data integrity detection passes, agrees to submit the data submitted by the Lincao client into the Lincao cloud platform server-side data, otherwise, returns the data integrity detection result database to the customer.

[0056] To achieve the above purpose, the present invention also provides a forest and grass data integrity detection system based on blockchain and spatial data fingerprint, which is used to implement any of the above-mentioned forest and grass data integrity detection methods based on blockchain and spatial data fingerprint. The forest and grass data integrity detection system based on blockchain and spatial data fingerprint is established on a blockchain network, and the forest and grass cloud platform detects the spatial data integrity of forest and grass terminals by calling and executing smart contracts. The forest and grass data integrity detection system based on blockchain and spatial data fingerprint includes:

[0057] Blockchain initialization and smart contract definition module: used to initialize the blockchain network, complete the smart contract definition and chain code installation for spatial data fingerprint library generation, the smart contract definition and chain code installation for data integrity detection, and the smart contract definition and chain code installation for security situation awareness;

[0058] Server-side spatial data fingerprint cloud database generation and chaining module: used for the server-side of the forest and grass cloud platform to perform spatial data feature extraction and spatial data fingerprint generation, generate a fingerprint cloud database, and chain the fingerprint cloud database generation session, fingerprint cloud database and fingerprint cloud database chaining session in sequence;

[0059] Spatial data fingerprint database generation strategy client download module: used by the forestry and grassland client to download and obtain the spatial data fingerprint database generation strategy from the forestry and grassland cloud platform, and then the forestry and grassland client performs spatial data feature extraction and spatial data fingerprint generation locally to generate a client fingerprint database;

[0060] Server-side data integrity detection and detection result chaining module: It is used for the server-side of the forest and grass cloud platform to obtain the data integrity detection request of the forest and grass client and receive the client fingerprint database, then to carry out spatial data fingerprint comparison and detection, obtain the data integrity detection result, and chain the client data integrity detection request session, data integrity detection result, and data integrity detection result chaining session in sequence;

[0061] Data integrity test result judgment module: used for the server side of the forestry and grass cloud platform to read the number of records in the data integrity test result database and determine whether the test has passed;

[0062] DOS attack monitoring strategy module: used by the forestry and grassland data server to query the forestry and grassland clients that failed the data integrity test in the blockchain network, obtain the number of failed access requests for forestry and grassland clients, and determine whether there is a DOS attack threat;

[0063] The server-side returns the integrity test result module: it is used by the forest and grassland data server to return the data integrity test result to the forest and grassland client.

[0064] Compared with the prior art, the technical solution of the present invention has the following advantages:

[0065] (1) Decentralization and distribution: Deployed on the blockchain through smart contracts, the grass data integrity detection method has decentralized and distributed characteristics. There is no single central point that can control or tamper with access rights, which enhances the security and robustness of the system.

[0066] (2) Transparency and immutability: All smart contract executions and transactions are recorded on the blockchain network, ensuring transparency and immutability. This can effectively prevent malicious actors, especially internal attackers, from tampering with server-side data to evade data integrity detection.

[0067] (3) Dynamicity and flexibility: The generation of spatial data fingerprint database can be automatically executed according to preset rules and conditions, and the fingerprint database is replaced by an encrypted attribute database instead of a geospatial database. This allows data integrity detection strategies to be shared in a distributed network, and forest and grassland clients can obtain them in real time and perform calculations locally, increasing the flexibility and adaptability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The accompanying drawings, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0069] Figure 1 A schematic flow chart of a method for detecting forest and grass data integrity based on blockchain and spatial data fingerprints according to an embodiment of the present invention;

[0070] Figure 2 A flowchart of a blockchain initialization and smart contract definition process according to an embodiment of the present invention;

[0071] Figure 3 A schematic diagram of the process of generating a server-side spatial data fingerprint database and storing it on a chain according to an embodiment of the present invention;

[0072] Figure 4 A schematic diagram of a process of submitting a fingerprint database and detecting a session on-chain by a client according to an embodiment of the present invention;

[0073] Figure 5 A schematic diagram of a flow chart of a process of executing forest and grass data integrity detection by a server side involved in an implementation mode of the present invention;

[0074] Figure 6 This is a structural block diagram of a forest and grass data integrity detection system based on blockchain and spatial data fingerprint involved in one embodiment of the present invention;

[0075] Figure 7 This is a schematic diagram of the execution flow of a forest and grassland data integrity detection system based on blockchain and spatial data fingerprint involved in one embodiment of the present invention. DETAILED DESCRIPTION

[0076] The present invention is described in detail below in conjunction with the accompanying drawings. The description in this part is only exemplary and explanatory and should not have any limiting effect on the scope of protection of the present invention. In addition, those skilled in the art can make corresponding combinations of the features in the embodiments and in different embodiments in this document based on the description of this document.

[0077] The embodiments of the present invention are as follows, referring to Figure 1 , a forest and grassland data integrity detection method based on blockchain and spatial data fingerprint, comprising the following steps:

[0078] S1, blockchain network initialization and smart contract definition: select the blockchain type and blockchain platform, initialize the blockchain network, complete the smart contract definition and chain code installation for spatial data fingerprint library generation, the smart contract definition and chain code installation for data integrity detection, and the smart contract definition and chain code installation for security situation awareness;

[0079] like Figure 2 , the specific steps in step S1 are as follows:

[0080] S1.1, blockchain network initialization: select the appropriate blockchain type and specific blockchain platform according to the application scenario, carry out organization registration, identity authentication and verification, define the alliance for the organization according to the actual business and create a channel for the alliance, issue certificates to the organization's client user nodes, peer nodes, sorting nodes, and identity authentication nodes through the certificate authority (CA), and each organization approves the chain code definition and endorsement policy definition and completes the storage on the channel ledger;

[0081] For the distributed forestry and grassland data submission scenario, considering that the users are mainly forestry and grassland management departments, the data has strong industry attributes and needs to be connected to the Internet for information exchange. It is most appropriate to use a consortium chain, and Hyperledger Fabric is one of the most widely used consortium chain platforms in the world. Therefore, the Fabric blockchain platform is recommended for the method of the present invention;

[0082] For the forestry and grassland data submission system, forestry and grassland management departments at all levels are organizations, and usually establish organizations and alliances according to administrative levels. For example, city and county forestry and grassland management departments are organizations, and provincial alliances are established. Channels are built to enable organizations to communicate with each other and maintain a common account book.

[0083] Each organization is an organization administrator registered in the Fabric blockchain network MSP, and sends requests and obtains services to the Lincao server node deployed on the Lincao cloud platform through the client user node.

[0084] S1.2, Spatial data fingerprint library generation smart contract and chain code installation: Spatial data fingerprint library generation smart contract includes the Lincao cloud platform carrying out fingerprint cloud database generation session chain strategy, spatial data feature extraction strategy, spatial data fingerprint generation strategy, fingerprint cloud database generation strategy, fingerprint cloud database chain strategy and fingerprint cloud database chain session chain strategy in the blockchain network, and installing the chain code through the server-side node of the Lincao cloud platform;

[0085] Among them, the strategy of on-chain generation of fingerprint cloud database session is: before the Lincao cloud platform performs data integrity detection, the server of the Lincao cloud platform initiates the transaction of fingerprint cloud database generation session, and after calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tamperability and traceability of fingerprint cloud database generation behavior;

[0086] For the Lincao Cloud Platform system, the data format of the session is consistent. The structure of the session is as follows:

[0087] Sessions (session ID, session type, session subject, session object, session send time, session receive time, session status) are stored in key-value pairs.

[0088] The session ID is the unique number of the session;

[0089] Session types include but are not limited to fingerprint cloud database generation session, fingerprint cloud database on-chain session, client data integrity detection request session, and data integrity detection execution result session;

[0090] The session subject is the attribute of the session generator and sender, which can be represented by a single attribute or a composite key value;

[0091] The session topic is the receiver and storage attributes of the session, which can be represented by a single attribute or a composite key value;

[0092] The session sending time is the time when the session subject sends the session;

[0093] The session receiving time is the time when the session object receives the session;

[0094] The session status describes the current status of the session, including but not limited to sent, received, failed to send, and failed to receive.

[0095] For example, for a client data integrity check request session, the session record is (session_ID: 20210000001, session_Type: “Client data integrity check request session”, session_subject: {“sjy_ID”: SJ001, deviceID: C2300101000XXX01, MAC: 48: e2: xx: xx: 6f: f9}, session_object: {“sjy_ID”: SJ001, deviceID: C2300101000XXX01, MAC: 48: e2: xx: xx: 6f: f9}, createTime: 202104022038, endTime: 202104022039, session_result: “Sent”);

[0096] Fingerprint cloud database on-chain session on-chain strategy: After the fingerprint cloud database is formed, the server of the Lincao cloud platform initiates a transaction for the fingerprint cloud database on-chain session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of fingerprint cloud database on-chain behavior that cannot be tampered with and can be traced;

[0097] Spatial data feature extraction strategy: The forest and grass cloud platform obtains the spatial features and attribute features of the spatial vector data in the server-side information library by executing the spatial feature extraction algorithm and the attribute feature extraction algorithm;

[0098] The spatial specific extraction algorithm calculates the centroid X-coordinate, Y-coordinate, feature information and spatial coordinate system of the spatial vector data in the server-side information library, and forms a spatial feature with unique identification information through connectors. The feature information is the length of the line for line features and the area of ​​the patch for surface features. Under the premise that the topological relationship of the spatial elements is correct, the extracted spatial features are unique; for example, the X-coordinate of the spatial vector data patch calculated is 349087.34, the Y-coordinate is 35452784.98, the feature value is the area, which is 34.557875, the spatial coordinate system is CGCS2000_3_Degree_GK_CM_99E, and the connector is "-", then the spatial feature is "349087.34-35452784.98-34.557875-CGCS2000_3_Degree_GK_CM_99E".

[0099] The attribute feature extraction algorithm is to calculate the key attribute factors used for data integrity detection in the spatial vector data of the server-side information database, and form attribute identification information through connectors; for example, the county code of the attribute information of the spatial vector data map is 3327, the township code is 101, the village code is 101, the small class number is 0001, the tree species code is 601, the forest category code is 11, the authority code is 10, the forest land grade code is 1, the origin code is 11, and the connector is "-", then the attribute feature is "3327-101-101-0001-601-11-10-1-11".

[0100] Spatial data fingerprint generation strategy: The forest and grass cloud platform connects the spatial features and attribute features extracted from spatial vector data through connectors, and uses a hash algorithm to perform information summary to form a spatial data fingerprint strategy; for example, the spatial feature of a spatial vector data patch is "349087.34-35452784.98-34.557875-CGCS2000_3_Degree_GK_CM_99E", and the attribute feature is "3327-101-101-0001-601-11-10-1-11", and the connector The character is "-", and after connection, it is "349087.34-35452784.98-34.557875-CGCS2000_3_Degree_GK_CM_99E-3327-101-101-0001-601-11-10-1-11". The national secret SM3 hash algorithm is used for information summary, and the output Base64 encoding format of the spatial data fingerprint is "gSfb59rXqb1htCmqntJfFJ0bvQnUVwQStD4Nzu / 7tho="

[0101] Fingerprint cloud database generation strategy: The forestry and grassland cloud platform generates spatial data fingerprints for all elements of spatial vector data used for data integrity detection, and exports the administrative division and / or business division information describing the data area information, to generate a fingerprint cloud database strategy with pure attribute method and independent storage;

[0102] For example, administrative division information includes but is not limited to provinces, cities, counties, townships, and villages; business division information includes but is not limited to forestry bureaus, forest grasslands, operating areas, forest classes, small classes, and detailed classes.

[0103] Fingerprint cloud database chain strategy: Before the Lincao Cloud Platform conducts data integrity detection, the server side of the Lincao Cloud Platform will initiate a transaction with all the records of the fingerprint cloud database. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thus realizing the strategy of non-tamperability and traceability of the fingerprint cloud database data.

[0104] S1.3, Data integrity detection smart contract and chain code installation: The data integrity detection smart contract includes the client data integrity detection request session chain strategy, spatial data fingerprint comparison and detection strategy, data integrity detection result generation strategy, data integrity detection result chain strategy, data integrity detection execution result session chain strategy in the blockchain network, and the chain code is installed through the server-side node of the Lincao Cloud Platform;

[0105] Among them, the client data integrity detection request session on-chain strategy is: after receiving the data submission and data integrity detection request from the Lincao client, the server of the Lincao cloud platform will initiate a transaction for the client data integrity detection request session, and after calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the tamper-proof and traceable strategy of the data submission and data integrity detection behavior of the Lincao client;

[0106] Spatial data fingerprint comparison and detection strategy: The Forestry Cloud Platform obtains the stored fingerprint cloud database from the blockchain network based on the client fingerprint database and detection area submitted by the Forestry Client. Through attribute query and comparison, the spatial data fingerprint of the client fingerprint database of the detection area and the spatial data fingerprint of the fingerprint cloud database are compared for consistency, and the inconsistent spatial data fingerprints are marked.

[0107] Spatial data fingerprint detection result generation strategy: It is the strategy of the forestry cloud platform to store the marked inconsistent spatial data fingerprints separately to form a data integrity detection result database;

[0108] The strategy of uploading data integrity test results to the blockchain: After the Lincao Cloud Platform performs data integrity test, the server of the Lincao Cloud Platform will initiate a transaction with all the records in the data integrity test result database. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thus realizing the strategy of making the data in the data integrity test result database non-tamperable and traceable.

[0109] The data integrity test execution result session chain strategy is that after the Lincao Cloud Platform server completes the data integrity test, the server of the Lincao Cloud Platform initiates a transaction for the server-side data integrity test execution result session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the data integrity test execution behavior that cannot be tampered with and can be traced;

[0110] S1.4, Security Situation Awareness Smart Contract Definition and Chain Code Installation: The Security Situation Awareness Smart Contract includes the DOS attack monitoring strategy and data integrity detection result return strategy of the Lincao Cloud Platform in the blockchain network, and the chain code is installed through the client node of the Lincao Cloud Platform;

[0111] Among them, the DOS attack monitoring strategy is: the Lincao cloud platform queries the Lincao clients that failed the data integrity test in the blockchain network, obtains the number of failed access requests for detection of the Lincao clients, and determines whether the number of failed access exceeds the specified threshold. It determines that there is a DOS attack threat and triggers an emergency response strategy for security threats.

[0112] Data integrity test result return strategy: This is the strategy of the Lincao Cloud Platform to return the test results to the Lincao client based on the data integrity test results. According to the business type, for one-way data integrity check business, after the data integrity test passes, True is returned to the Lincao client, otherwise, False is returned; for data aggregation business, after the data integrity test passes, it is agreed that the data submitted by the client will be submitted to the server-side data, otherwise, the data integrity test result database is returned to the customer.

[0113] S2, server-side spatial data fingerprint cloud database generation and chaining: The server-side of the Lincao cloud platform generates a fingerprint cloud database by executing the steps of spatial data feature extraction and spatial data fingerprint generation, and sequentially chains the fingerprint cloud database generation session, fingerprint cloud database, and fingerprint cloud database chaining session;

[0114] like Figure 3 , the step S2 specifically includes the following steps:

[0115] S2.1, Fingerprint cloud database generates session on-chain: The server of the Lincao cloud platform executes the fingerprint cloud database generates session on-chain strategy, and the server of the Lincao cloud platform initiates the transaction of fingerprint cloud database generation session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the immutability and traceability of fingerprint cloud database generation behavior;

[0116] S2.2, spatial data feature extraction: The server of the forest and grass cloud platform executes the spatial data feature extraction strategy on the spatial database used for data integrity detection, and obtains the spatial features and attribute features of the spatial vector data in the server-side information library;

[0117] Usually, two text fields, spatial features and attribute features, are added to the spatial database used for data integrity detection. The calculated spatial features and attribute features are stored;

[0118] S2.3, spatial data fingerprint generation: the server of the forest and grass cloud platform executes the spatial data fingerprint generation strategy for the spatial data for data integrity detection that has acquired spatial features and attribute features, and obtains the spatial data fingerprint of the spatial database of the server of the forest and grass cloud platform;

[0119] Usually, a text field of data fingerprint is added to the spatial database used for data integrity detection to store the spatial data fingerprint in Base64 encoding format obtained by calculation;

[0120] S2.4, Fingerprint cloud database generation: The server of the forest and grass cloud platform obtains the spatial data with spatial data fingerprint for data integrity detection, executes the fingerprint cloud database generation strategy, and obtains the fingerprint cloud database of the server of the forest and grass cloud platform;

[0121] S2.5, Fingerprint cloud database on-chain session on-chain: The server of the Lincao cloud platform executes the fingerprint cloud database on-chain session on-chain strategy. The server of the Lincao cloud platform initiates a transaction for the fingerprint cloud database on-chain session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the immutability and traceability of the fingerprint cloud database on-chain session.

[0122] S2.6, Fingerprint cloud database on-chain: The server-side of the Lincao cloud platform executes the fingerprint cloud database on-chain strategy. The server-side of the Lincao cloud platform initiates a transaction with all the records of the fingerprint cloud database. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thus achieving the immutability and traceability of the fingerprint cloud database data.

[0123] S3, client spatial data fingerprint database generation and submission detection: the forestry and grassland client downloads and obtains the spatial data fingerprint database generation strategy, executes the steps of spatial data feature extraction and spatial data fingerprint generation, generates the client fingerprint database, and sends a data integrity detection request and the client fingerprint database to the forestry and grassland cloud platform server;

[0124] like Figure 4 , the step S3 specifically includes the following steps:

[0125] S3.1, the client obtains the spatial data fingerprint database generation strategy: the forestry client obtains, including but not limited to, the spatial data feature extraction strategy, spatial data fingerprint generation strategy and fingerprint database generation strategy by accessing the forestry cloud platform server or the blockchain network;

[0126] These strategies are open to all clients and can be freely accessed on the Forestry and Grassland Cloud Platform to ensure the accuracy and timeliness of data integrity testing;

[0127] S3.2, client spatial data feature extraction: For the spatial database used for data integrity detection, the forest and grassland client locally executes the spatial data feature extraction strategy to obtain the spatial features and attribute features of the spatial vector data in the client spatial database;

[0128] As with the server side, two text fields, spatial features and attribute features, are usually added to the spatial database used for data integrity detection. The calculated spatial features and attribute features are stored;

[0129] S3.3, client spatial data fingerprint generation: the forest and grassland client obtains spatial features and attribute features for spatial data integrity detection, executes the spatial data fingerprint generation strategy, and obtains the spatial data fingerprint of the forest and grassland client spatial database;

[0130] As with the server side, a text field of data fingerprint is usually added to the spatial database used for data integrity detection to store the spatial data fingerprint in Base64 encoding format obtained by calculation;

[0131] S3.4, client fingerprint cloud database generation: the forest and grassland client obtains the spatial data with spatial data fingerprint for data integrity detection, executes the fingerprint cloud database generation strategy, and obtains the fingerprint cloud database of the forest and grassland client;

[0132] S3.5, the client sends a data integrity check request and client fingerprint database: the Lincao client sends a data integrity check request to the Lincao cloud platform server, and submits the client fingerprint database to complete the data integrity check.

[0133] S4, the server side performs data integrity detection and uploads the detection results to the chain: After the Lincao Cloud Platform server side obtains the data integrity detection request in step S3 and receives the client fingerprint database, it performs spatial data fingerprint comparison and detection, obtains the data integrity detection results, and uploads the client data integrity detection request session, data integrity detection results, and data integrity detection results to the chain session to the chain;

[0134] like Figure 5 , the step S4 specifically includes the following steps:

[0135] S4.1, the server side uploads the client data integrity check request session to the chain: the server side of the Lincao cloud platform executes the fingerprint cloud database to generate the session chain strategy, and the server side of the Lincao cloud platform initiates the transaction of the client data integrity check request session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the tamper-proof and traceability of the Lincao client data submission and data integrity check behavior;

[0136] S4.2, server-side spatial data fingerprint comparison and detection: The server-side of the forest and grass cloud platform executes the spatial data fingerprint comparison and detection strategy, takes the client fingerprint database submitted by the client for detection as input, obtains the fingerprint cloud database from the blockchain network, and compares the consistency of the spatial data fingerprint of the client fingerprint database and the spatial data fingerprint of the fingerprint cloud database through attribute query comparison, and marks the inconsistent spatial data fingerprints;

[0137] S4.3, the server side obtains the data integrity test result: the server side of the forest and grass cloud platform executes the spatial data fingerprint test result generation strategy, and separately stores the spatial data fingerprints marked as inconsistent in the fingerprint database provided by the client to form a data integrity test result database;

[0138] S4.4, server-side data integrity test results are uploaded to the chain: After the Lincao Cloud Platform performs data integrity test, the server-side of the Lincao Cloud Platform executes the data integrity test result upload strategy, initiates a transaction with all records in the data integrity test result database, and forms a new block storage after calculation through the blockchain network consensus algorithm, which enters the blockchain network to achieve the data integrity test result database data cannot be tampered with and can be traced;

[0139] S4.5, server-side data integrity check execution result session chaining: The Lincao Cloud Platform server-side data integrity check execution result session chaining strategy initiates a transaction for the server-side data integrity check execution result session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thereby achieving the tamper-proof and traceable nature of the data integrity check execution behavior.

[0140] S5, determine whether the data integrity test has passed: the server of the Lincao Cloud Platform reads the number of records in the data integrity test result database, and determines whether the data integrity test has passed according to the number of records. If it has passed, execute step S7; if it has not passed, execute step S6;

[0141] S6, security situation awareness and emergency disposal: The server of the Lincao cloud platform queries the Lincao client that failed the data integrity test in the blockchain network, obtains the number of failed access requests for the Lincao client, and determines whether there is a DOS attack threat;

[0142] When the data integrity test fails, the server of the Lincao cloud platform executes the DOS attack monitoring strategy of the security situation awareness smart contract. The Lincao cloud platform queries the Lincao client that failed the data integrity test in the blockchain network, obtains the number of failed accesses of the Lincao client that requested the test, and determines whether the number of failed accesses exceeds the specified threshold. If it exceeds the specified threshold, it is determined that there is a DOS attack threat and triggers the security threat emergency disposal strategy. If it does not exceed the specified threshold, step S7 is executed;

[0143] S7, the server returns the integrity test result: the forest and grassland data server will return the data integrity test result to the forest and grassland client according to the business type;

[0144] The Lincao Cloud Platform server executes the data integrity test result return strategy of the security situation awareness smart contract. For the one-way data integrity check business, after the data integrity test passes, it returns True to the Lincao client, otherwise, it returns False; for the data aggregation business, after the data integrity test passes, it agrees to submit the data submitted by the Lincao client to the Lincao Cloud Platform server-side data, otherwise, it returns the data integrity test result database to the customer.

[0145] S8, end.

[0146] The present invention also provides a forest and grass data integrity detection system based on blockchain and spatial data fingerprint, which is used to implement any of the above-mentioned forest and grass data integrity detection methods based on blockchain and spatial data fingerprint. The embodiments are as follows: Figure 6 :The forest and grassland data integrity detection system based on blockchain and spatial data fingerprint is established on the blockchain network. The forest and grassland cloud platform detects the spatial data integrity of forest and grassland terminals by calling and executing smart contracts. The forest and grassland data integrity detection system based on blockchain and spatial data fingerprint includes:

[0147] Blockchain initialization and smart contract definition module: used to initialize the blockchain network, complete the smart contract definition and chain code installation for spatial data fingerprint library generation, the smart contract definition and chain code installation for data integrity detection, and the smart contract definition and chain code installation for security situation awareness;

[0148] Server-side spatial data fingerprint cloud database generation and chaining module: used for the server-side of the forest and grass cloud platform to perform spatial data feature extraction and spatial data fingerprint generation, generate a fingerprint cloud database, and chain the fingerprint cloud database generation session, fingerprint cloud database and fingerprint cloud database chaining session in sequence;

[0149] Spatial data fingerprint database generation strategy client download module: used by the forestry and grassland client to download and obtain the spatial data fingerprint database generation strategy from the forestry and grassland cloud platform, and then the forestry and grassland client performs spatial data feature extraction and spatial data fingerprint generation locally to generate a client fingerprint database;

[0150] Server-side data integrity detection and detection result chaining module: It is used for the server-side of the forest and grass cloud platform to obtain the data integrity detection request of the forest and grass client and receive the client fingerprint database, then to carry out spatial data fingerprint comparison and detection, obtain the data integrity detection result, and chain the client data integrity detection request session, data integrity detection result, and data integrity detection result chaining session in sequence;

[0151] Data integrity test result judgment module: used for the server side of the forestry and grass cloud platform to read the number of records in the data integrity test result database and determine whether the test has passed;

[0152] DOS attack monitoring strategy module: used by the forestry and grassland data server to query the forestry and grassland clients that failed the data integrity test in the blockchain network, obtain the number of failed access requests for forestry and grassland clients, and determine whether there is a DOS attack threat;

[0153] The server-side returns the integrity test result module: it is used by the forest and grassland data server to return the data integrity test result to the forest and grassland client.

[0154] In order to better understand the technical solution of the present invention, an embodiment of the execution process of the forest and grass data integrity detection system based on blockchain and spatial data fingerprint of the present invention is provided as follows: Figure 7 :

[0155] (1) The system administrator executes the blockchain initialization and smart contract definition module to initialize the blockchain network and define smart contracts in the Lincao Cloud Platform.

[0156] (2) The server side of the forest and grass cloud platform executes the server side spatial data fingerprint cloud database generation and chain module to generate a fingerprint cloud database.

[0157] (3) The forest and grassland client executes the spatial data fingerprint database generation strategy client download module to generate the client fingerprint database.

[0158] (4) The server side of the Lincao Cloud Platform executes the server side data integrity check and the test result chain module to obtain the data integrity test results.

[0159] (5) The server side of the Lincao Cloud Platform executes the data integrity test result judgment module to determine whether the test has passed. If passed, execute step (7); if not, execute step (6).

[0160] (6) The server side of the Lincao Cloud Platform executes the DOS attack monitoring strategy module to determine whether there is a DOS attack threat.

[0161] (7) The server side of the Forestry and Grassland Cloud Platform executes the server side return integrity check result module and returns the data integrity check result to the Forestry and Grassland Client.

[0162] (8) End the process.

[0163] For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the scope of protection of the present invention.

Claims

1. A forest and grass data integrity detection method based on blockchain and spatial data fingerprint, characterized in that: The steps include: S1, blockchain network initialization and smart contract definition: select the blockchain type and blockchain platform, initialize the blockchain network, complete the space data fingerprint library generation smart contract definition and chain code installation, data integrity detection smart contract definition and chain code installation, and security situation awareness smart contract definition and chain code installation; step S1 specifically includes the following steps: S1.1, blockchain network initialization; S1.2, Spatial data fingerprint library generates smart contracts and chain code installation: The spatial data fingerprint library generates smart contracts including the strategies implemented by the forest and grass cloud platform in the blockchain network. The strategies include the following: Fingerprint cloud database generated session chain strategy: Before the Lincao cloud platform performs data integrity detection, the server of the Lincao cloud platform initiates a transaction for the fingerprint cloud database generated session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tampering and traceability of fingerprint cloud database generation behavior; Fingerprint cloud database on-chain session on-chain strategy: After the fingerprint cloud database is formed, the server of the Lincao cloud platform initiates a transaction for the fingerprint cloud database on-chain session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tampering and traceability of the fingerprint cloud database on-chain behavior; Spatial data feature extraction strategy: The forest and grass cloud platform obtains the spatial features and attribute features of the spatial vector data in the server-side information library by executing the spatial feature extraction algorithm and the attribute feature extraction algorithm; Spatial data fingerprint generation strategy: The forest and grass cloud platform connects the spatial features and attribute features extracted from spatial vector data through connectors, and uses a hash algorithm to perform information summary to form a spatial data fingerprint strategy; Fingerprint cloud database generation strategy: The forestry and grassland cloud platform generates spatial data fingerprints for all elements of spatial vector data used for data integrity detection, and exports the administrative division and / or business division information describing the data area information, to generate a fingerprint cloud database strategy with pure attribute method and independent storage; Fingerprint cloud database chain strategy: Before the Lincao cloud platform conducts data integrity detection, the server of the Lincao cloud platform will initiate a transaction with all the records of the fingerprint cloud database. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tamperability and traceability of the fingerprint cloud database data; S1.3, Data integrity detection smart contract and chain code installation: The data integrity detection smart contract includes the strategies implemented by the Lincao Cloud Platform in the blockchain network. The strategies include the following: Client data integrity detection request session on-chain strategy: After receiving the data submission and data integrity detection request from the Lincao client, the server of the Lincao cloud platform will initiate a transaction for the client data integrity detection request session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the tamper-proof and traceable strategy of the data submission and data integrity detection behavior of the Lincao client; Spatial data fingerprint comparison and detection strategy: The Forestry Cloud Platform obtains the stored fingerprint cloud database from the blockchain network based on the client fingerprint database and detection area submitted by the Forestry Client. Through attribute query and comparison, the spatial data fingerprint of the client fingerprint database of the detection area and the spatial data fingerprint of the fingerprint cloud database are compared for consistency, and inconsistent spatial data fingerprints are marked. Data integrity test result generation strategy: The forestry cloud platform stores the marked inconsistent spatial data fingerprints separately to form a data integrity test result database; Data integrity test result chain strategy: After the Lincao Cloud Platform performs data integrity test, the server of the Lincao Cloud Platform will initiate a transaction with all the records in the data integrity test result database. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thus realizing the data integrity test result database data cannot be tampered with and can be traced; Data integrity test execution result session chain strategy: After completing the data integrity test, the server of the Lincao Cloud Platform will initiate a transaction for the server-side data integrity test execution result session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, realizing the strategy of non-tampering and traceability of data integrity test execution behavior; S1.4, Security Situation Awareness Smart Contract Definition and Chain Code Installation: The Security Situation Awareness Smart Contract includes the strategies implemented by the Lincao Cloud Platform in the blockchain network. The strategies include the following: DOS attack monitoring strategy: The Lincao cloud platform queries the Lincao client that failed the data integrity test in the blockchain network, obtains the number of failed access requests for the Lincao client, and determines whether the number of failed access exceeds the specified threshold. It determines that there is a DOS attack threat and triggers a security threat emergency disposal strategy; Data integrity test result return strategy: The strategy of the Forestry and Grassland Cloud Platform to return the test results to the Forestry and Grassland Client based on the data integrity test results; Among them, the space data fingerprint library generation smart contract, data integrity detection smart contract and security situation awareness smart contract definition in steps S1.2 to S1.4 are installed through the server-side node of the Lincao Cloud Platform through chain code; S2, server-side spatial data fingerprint cloud database generation and chaining: The server-side of the Lincao cloud platform generates a fingerprint cloud database by executing the steps of spatial data feature extraction and spatial data fingerprint generation, and sequentially chains the fingerprint cloud database generation session, fingerprint cloud database, and fingerprint cloud database chaining session; S3, client spatial data fingerprint database generation and submission detection: the forestry and grassland client downloads and obtains the spatial data fingerprint database generation strategy, executes the steps of spatial data feature extraction and spatial data fingerprint generation, generates the client fingerprint database, and sends a data integrity detection request and the client fingerprint database to the forestry and grassland cloud platform server; S4, the server side performs data integrity detection and uploads the detection results to the chain: After the Lincao Cloud Platform server side obtains the data integrity detection request in step S3 and receives the client fingerprint database, it performs spatial data fingerprint comparison and detection, obtains the data integrity detection result, and uploads the client data integrity detection request session, data integrity detection result, and data integrity detection result chain session to the chain; the step S4 specifically includes the following steps: S4.1, the server side uploads the client data integrity check request session to the chain: the server side of the Lincao cloud platform executes the fingerprint cloud database to generate the session chain strategy, and the server side of the Lincao cloud platform initiates the transaction of the client data integrity check request session. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the tamper-proof and traceability of the Lincao client data submission and data integrity check behavior; S4.2, server-side spatial data fingerprint comparison and detection: The server-side of the forest and grass cloud platform executes the spatial data fingerprint comparison and detection strategy, takes the client fingerprint database submitted by the client for detection as input, obtains the fingerprint cloud database from the blockchain network, and compares the consistency of the spatial data fingerprint of the client fingerprint database and the spatial data fingerprint of the fingerprint cloud database through attribute query comparison, and marks the inconsistent spatial data fingerprints; S4.3, the server side obtains the data integrity test result: the server side of the forest and grass cloud platform executes the spatial data fingerprint test result generation strategy, and separately stores the spatial data fingerprints marked as inconsistent in the fingerprint database provided by the client to form a data integrity test result database; S4.4, server-side data integrity test results are uploaded to the chain: After the Lincao Cloud Platform performs data integrity test, the server-side of the Lincao Cloud Platform executes the data integrity test result upload strategy, initiates a transaction with all records in the data integrity test result database, and forms a new block storage after calculation through the blockchain network consensus algorithm, which enters the blockchain network to achieve the data integrity test result database data cannot be tampered with and can be traced; S4.5, Server-side data integrity detection execution result session chaining: The Lincao Cloud Platform server-side data integrity detection execution result session chaining strategy initiates a transaction for the server-side data integrity detection execution result session, and after calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to achieve the tamper-proof and traceability of the data integrity detection execution behavior; S5, determine whether the data integrity test has passed: the server of the Lincao Cloud Platform reads the number of records in the data integrity test result database, and determines whether the data integrity test has passed according to the number of records. If it has passed, execute step S7; if it has not passed, execute step S6; S6, security situation awareness and emergency disposal: The server of the Lincao cloud platform queries the Lincao client that failed the data integrity test in the blockchain network, obtains the number of failed access requests for the Lincao client, and determines whether there is a DOS attack threat; S7, the server returns the integrity test result: the forest and grassland data server will return the data integrity test result to the forest and grassland client according to the business type; S8, end.

2. The forest and grassland data integrity detection method based on blockchain and spatial data fingerprint according to claim 1 is characterized in that: The step S1.1 specifically includes the following steps: selecting the blockchain type and blockchain platform according to the application scenario, carrying out organization registration, identity authentication and verification, issuing certificates for the organization's client user nodes, peer nodes, sorting nodes, and identity authentication nodes, and approving the chain code definition and endorsement policy definition of each organization and completing the storage on the channel ledger.

3. The forest and grass data integrity detection method based on blockchain and spatial data fingerprint according to claim 1 is characterized in that: The step S2 specifically includes the following steps: S2.1, Fingerprint cloud database generates session on-chain: The server of the Lincao cloud platform executes the fingerprint cloud database generates session on-chain strategy, and the server of the Lincao cloud platform initiates the transaction of fingerprint cloud database generation session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the immutability and traceability of fingerprint cloud database generation behavior; S2.2, spatial data feature extraction: The server of the forest and grass cloud platform executes the spatial data feature extraction strategy on the spatial database used for data integrity detection, and obtains the spatial features and attribute features of the spatial vector data in the server-side information library; S2.3, spatial data fingerprint generation: the server of the forest and grass cloud platform executes the spatial data fingerprint generation strategy for the spatial data for data integrity detection that has acquired spatial features and attribute features, and obtains the spatial data fingerprint of the spatial database of the server of the forest and grass cloud platform; S2.4, Fingerprint cloud database generation: The server of the forest and grass cloud platform obtains the spatial data with spatial data fingerprint for data integrity detection, executes the fingerprint cloud database generation strategy, and obtains the fingerprint cloud database of the server of the forest and grass cloud platform; S2.5, Fingerprint cloud database on-chain session on-chain: The server of the Lincao cloud platform executes the fingerprint cloud database on-chain session on-chain strategy. The server of the Lincao cloud platform initiates a transaction for the fingerprint cloud database on-chain session. After calculation by the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, so as to realize the immutability and traceability of the fingerprint cloud database on-chain session. S2.6, Fingerprint cloud database on-chain: The server-side of the Lincao cloud platform executes the fingerprint cloud database on-chain strategy. The server-side of the Lincao cloud platform initiates a transaction with all the records of the fingerprint cloud database. After calculation through the blockchain network consensus algorithm, a new block is formed and stored in the blockchain network, thus achieving the immutability and traceability of the fingerprint cloud database data.

4. The forest and grass data integrity detection method based on blockchain and spatial data fingerprint according to claim 3 is characterized in that: The step S3 specifically includes the following steps: S3.1, the client obtains the spatial data fingerprint database generation strategy: the forestry client obtains, including but not limited to, the spatial data feature extraction strategy, the spatial data fingerprint generation strategy and the fingerprint database generation strategy by accessing the forestry cloud platform server or the blockchain network; S3.2, client spatial data feature extraction: For the spatial database used for data integrity detection, the forest and grassland client locally executes the spatial data feature extraction strategy to obtain the spatial features and attribute features of the spatial vector data in the client spatial database; S3.3, client spatial data fingerprint generation: the forest and grassland client obtains spatial features and attribute features for spatial data integrity detection, executes the spatial data fingerprint generation strategy, and obtains the spatial data fingerprint of the forest and grassland client spatial database; S3.4, client fingerprint cloud database generation: the forest and grassland client obtains the spatial data with spatial data fingerprint for data integrity detection, executes the fingerprint cloud database generation strategy, and obtains the fingerprint cloud database of the forest and grassland client; S3.5, the client sends a data integrity check request and client fingerprint database: the Lincao client sends a data integrity check request to the Lincao cloud platform server, and submits the client fingerprint database to complete the data integrity check.

5. The forest and grassland data integrity detection method based on blockchain and spatial data fingerprint according to claim 1 is characterized in that: The step S6 specifically includes the following steps: when the data integrity check fails, the Lincao cloud platform server executes the DOS attack monitoring strategy of the security situation awareness smart contract, and the Lincao cloud platform queries the Lincao client that failed the data integrity check in the blockchain network, obtains the number of failed accesses of the Lincao client that requested the check, and determines whether the number of failed accesses exceeds the specified threshold. If it exceeds the specified threshold, it is determined that there is a DOS attack threat and the security threat emergency disposal strategy is triggered. If it does not exceed the specified threshold, step S7 is executed.

6. The forest and grass data integrity detection method based on blockchain and spatial data fingerprint according to claim 5 is characterized in that: The step S7 specifically includes the following steps: the Lincao cloud platform server executes the data integrity test result return strategy of the security situation awareness smart contract. For the one-way data integrity check business, after the data integrity test passes, it returns True to the Lincao client, otherwise, it returns False; for the data aggregation business, after the data integrity test passes, it agrees to submit the data submitted by the Lincao client to the Lincao cloud platform server-side data, otherwise, it returns the data integrity test result database to the customer.

Citation Information

Patent Citations

  • Forest and grass Internet of Things access control method and system based on smart contract and KP-ABE

    CN119561674A