Construction resource management method and device based on block chain and Internet of Things
Through the construction resource management method that combines blockchain and the Internet of Things, hash values are used to verify construction data, which solves the problem of trusted mapping between offline construction behavior and on-chain resource transfer, and realizes transparent and secure management of construction information.
Patent Information
- Application Number
- CN202510933238.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-07
- Publication Date
- 2025-10-28
AI Technical Summary
Existing technologies are unable to effectively solve the problem of trusted verification between offline physical world construction behaviors and on-chain resource transfer instructions, resulting in insufficient transparency and lack of trust, and frequent violations such as misappropriation of funds and false reporting of project quantities.
A construction resource management method based on blockchain and the Internet of Things is adopted. Construction data is collected through IoT devices to generate hash values and store them in the behavior chain. The management chain is used to verify the legitimacy of resource transfer instructions to ensure a credible mapping of construction information and capital flow.
It achieves a credible connection between construction behavior and capital flow, improves transparency and security, prevents tampering, and improves audit efficiency and transparency of capital management.
Smart Images

Figure CN120850314A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of blockchain, and in particular to a construction resource management method and device based on blockchain and the Internet of Things. Background Technology
[0002] The current management of property maintenance funds generally faces the dual dilemma of insufficient transparency and lack of trust. Traditional management systems rely heavily on centralized institutions for fund approval and disbursement, making it difficult for homeowners to keep track of the actual progress of maintenance projects and the flow of funds in real time, leading to frequent violations such as misappropriation of funds and false reporting of project quantities.
[0003] Existing technologies attempt to improve transparency through blockchain-based evidence storage, but have failed to solve the problem of a reliable mapping between the offline physical world and on-chain data. Some systems store construction reports on the blockchain in PDF format; however, there is a significant gap between paper reports and actual construction activities, and tampering with reports is extremely low-cost and difficult to detect in a timely manner. Summary of the Invention
[0004] This application provides a construction resource management method and device based on blockchain and the Internet of Things to solve the technical problem of the disconnect between physical construction behavior and on-chain resource transfer instructions due to the lack of a trusted verification mechanism.
[0005] Firstly, this application provides a construction resource management method based on blockchain and the Internet of Things, including:
[0006] The construction information corresponding to the construction project and the construction identifier corresponding to the construction information are uploaded to the blockchain; the blockchain includes a behavior chain and a management chain.
[0007] Use IoT devices to collect the first construction data corresponding to the construction project;
[0008] Generate the first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier;
[0009] When a resource transfer instruction is triggered, the corresponding second hash value is determined based on the second construction data stored locally, and the first hash value corresponding to the second hash value is extracted from the behavior chain based on the construction identifier.
[0010] When the first hash value matches the second hash value, a resource transfer instruction is executed through the management chain.
[0011] When the first hash value and the second hash value are inconsistent, the management chain refuses to execute the resource transfer instruction.
[0012] Secondly, this application provides a construction resource management device based on blockchain and the Internet of Things, comprising:
[0013] The blockchain upload module is configured to upload the construction information corresponding to the construction project and the construction identifier corresponding to the construction information to the blockchain; the blockchain includes the behavior chain and the management chain;
[0014] The first construction data determination module is configured to collect the first construction data corresponding to the construction project using IoT devices.
[0015] The first hash value determination module is configured to generate the first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier;
[0016] The second hash value determination module is configured to determine the corresponding second hash value based on the second construction data stored locally when a resource transfer instruction is triggered, and to extract the first hash value corresponding to the second hash value from the behavior chain based on the construction identifier.
[0017] The instruction execution module is configured to execute a resource transfer instruction through the management chain when the first hash value matches the second hash value.
[0018] The instruction rejection module is configured to refuse to execute resource transfer instructions when the first hash value and the second hash value are inconsistent.
[0019] Thirdly, this application provides a readable medium including executable instructions, which, when executed by a processor of an electronic device, cause the electronic device to perform any of the methods described in the first aspect.
[0020] Fourthly, this application provides an electronic device including a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method as described in any of the first aspects.
[0021] This application provides a construction resource management method based on blockchain and the Internet of Things (IoT). The method uploads construction information and corresponding construction identifiers for construction projects to the blockchain. The blockchain includes a behavior chain and a management chain. First construction data corresponding to the construction project is collected using IoT devices. A first hash value corresponding to the first construction data is generated, stored in the behavior chain, and associated with the construction identifier. When a resource transfer instruction is triggered, a second hash value is determined based on locally stored second construction data, and the first hash value corresponding to the second hash value is retrieved from the behavior chain based on the construction identifier. When the first hash value and the second hash value match, the resource transfer instruction is executed through the management chain. When the first hash value and the second hash value do not match, the management chain refuses to execute the resource transfer instruction. This solves the problem of disconnect between offline operations and online records in maintenance fund management.
[0022] The further effects of the aforementioned non-conventional preferred method will be explained below in conjunction with specific embodiments. Attached Figure Description
[0023] To more clearly illustrate the embodiments of this application or the existing technical solutions, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 A schematic flowchart illustrating a construction resource management method based on blockchain and the Internet of Things, provided as an embodiment of this application;
[0025] Figure 2 A schematic flowchart illustrating another construction resource management method based on blockchain and the Internet of Things provided in an embodiment of this application;
[0026] Figure 3 A schematic flowchart illustrating another construction resource management method based on blockchain and the Internet of Things provided in an embodiment of this application;
[0027] Figure 4 This is a schematic diagram of another construction resource management method based on blockchain and the Internet of Things provided in an embodiment of this application;
[0028] Figure 5 This is a schematic diagram of the structure of a construction resource management device based on blockchain and the Internet of Things, provided in one embodiment of this application;
[0029] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0031] The current management of property maintenance funds generally faces the dual dilemma of insufficient transparency and lack of trust. Traditional management systems rely heavily on centralized institutions for fund approval and disbursement, making it difficult for homeowners to keep track of the actual progress of maintenance projects and the flow of funds in real time, leading to frequent violations such as misappropriation of funds and false reporting of project quantities.
[0032] Existing technologies attempt to improve transparency through blockchain-based evidence storage, but have failed to solve the problem of a reliable mapping between the offline physical world and on-chain data. Some systems store construction reports on the blockchain in PDF format; however, there is a significant gap between paper reports and actual construction activities, and tampering with reports is extremely low-cost and difficult to detect in a timely manner.
[0033] To address this issue, this application proposes a construction resource management method based on blockchain and the Internet of Things (IoT), aiming to solve the technical problem of the disconnect between physical construction activities and on-chain resource transfer instructions due to the lack of a trusted verification mechanism. In this embodiment, a construction resource management method based on blockchain and IoT includes:
[0034] Step 101: Upload the construction information corresponding to the construction project and the construction identifier corresponding to the construction information to the blockchain; the blockchain includes the behavior chain and the management chain.
[0035] Detailed construction information for each project, along with a specially generated construction identifier, is uploaded to the blockchain. The construction information includes key elements such as the project application materials, a detailed budget list, the construction company's qualification certificates, and resolutions passed by the owner. The construction identifier is generated using a unique coding system, typically composed of a project type code, a hash value generated from a precise timestamp, and specific geographic location information.
[0036] This blockchain network employs a unique dual-chain collaborative architecture, consisting of two chains with clearly defined functions but tightly interconnected logic: the behavior chain and the management chain. When construction information is uploaded, the system stores an encrypted version of the original construction information on the management chain via a pre-defined smart contract. Simultaneously, the system extracts a core metadata digest of this information (containing the construction identifier, data fingerprint, and its storage location pointer on the management chain) and writes it into a dedicated index block on the behavior chain. The two chains are connected via a secure cross-chain communication channel (relay). Once the management chain successfully stores the construction information, it automatically triggers a process to notify the behavior chain to complete the anchoring operation for the indexed information.
[0037] The construction identifier plays a crucial role in the entire dual-chain system, establishing a trusted link between physical world activities and on-chain records. On the management chain side, the construction identifier is a mandatory field that must be bound when initiating any fund (resource) payment instruction. This means that any fund transfer transaction must be explicitly associated with a valid and verified construction identifier. On the behavior chain side, this same construction identifier serves as a tag aggregating all construction data collected by the Internet of Things.
[0038] Step 102: Collect the first construction data corresponding to the construction project using IoT devices.
[0039] After a construction project commences, the system collects initial construction data in real time through a network of IoT devices deployed at the maintenance site. This data collection process typically involves two dimensions: construction activity monitoring and material verification, both completed collaboratively by different types of dedicated terminals.
[0040] The construction monitoring terminal is responsible for capturing the actual state of physical construction activities to form physical construction data, while the material verification terminal focuses on the authenticity and usage tracking of construction materials to form material data. Physical construction data and material data undergo spatiotemporal alignment processing through an IoT gateway. The aligned data are then merged according to preset rules: for example, in an elevator maintenance scenario, when a vibration sensor detects a specific frequency vibration peak generated by the tensioning of a steel wire rope, a camera is simultaneously triggered to capture the operation, and the associated power consumption and material consumption at that moment are packaged into an atomic record. The resulting standardized data package is the first construction data.
[0041] Step 103: Generate the first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier.
[0042] After the initial construction data is generated, the system initiates a tamper-proof hashing process. The raw data is first transformed by a standardization engine, unifying the diverse and heterogeneous IoT data into a computable structured format. The standardized data is then divided into time-series blocks according to preset time windows, forming continuous data block units. Each time-series data block calculates a unique fingerprint using a preset hash function.
[0043] The generated initial hash value is written to the behavior chain via a dedicated on-chain interface. For example, the storage process can employ a hierarchical tree structure: with the construction identifier as the root node and the hash values of different time-series blocks as leaf nodes, a Merkle tree summary hash is automatically generated every 24 hours. When a new block hash is uploaded to the chain, the smart contract automatically verifies its timestamp continuity (ensuring no data gaps) and the consistency of the hash pointers of preceding blocks (preventing intermediate block insertion attacks). All hash records carry a construction identifier tag, enabling discrete IoT data fingerprints to form a verifiable chain of evidence on the behavior chain, categorized by construction project.
[0044] Step 104: When a resource transfer instruction is triggered, determine the corresponding second hash value based on the second construction data stored locally, and extract the first hash value corresponding to the second hash value from the behavior chain based on the construction identifier.
[0045] When a maintenance project reaches the payment milestone stipulated in the contract, the system automatically triggers a resource transfer instruction. This instruction is generated on the management chain and carries key verification elements: the target receiving account, the payment amount, the associated construction identifier, and proof of payment fulfillment (such as a progress percentage certificate). At this time, the system simultaneously initiates a cross-chain verification process, the core of which is to verify the consistency between the currently locally stored construction data and the historical records of the behavior chain.
[0046] The system first locates the corresponding second construction data in the local storage pool based on the construction identifier explicitly stated in the resource transfer instruction. This data is a copy of the original information continuously collected by IoT devices, archived and stored according to the same time window rules. The location process employs a two-dimensional retrieval based on construction identifier and time range: if progress payments are made, new data from the previous payment cycle to the present is extracted; if final payments are made, data from the entire project lifecycle is extracted. After location is completed, the system performs standardization and time-series block processing on the dataset (the process is consistent with the preprocessing of the first construction data), and then calls a preset hash function to calculate the data fingerprint, generating a second hash value that is of the same origin as the behavior chain.
[0047] Simultaneously, a query request is initiated to the Behavior Chain via a relay node. The query instruction includes a construction identifier, the target data time range (strictly matching the local data extraction window), and a request type identifier. Upon receiving the request, the Behavior Chain's smart contract retrieves the relevant blocks under the construction identifier in the index tree, filters out consecutive block sequences based on the time range, and extracts the first hash value stored in these blocks.
[0048] Step 105: When the first hash value matches the second hash value, execute the resource transfer instruction through the management chain.
[0049] When the cross-chain verification module confirms that the first hash value and the second hash value are completely identical, the system generates a payment authorization certificate containing encrypted verification credentials. This certificate contains three core digital signatures: a data integrity certificate signed by the IoT gateway, a hash verification report signed by the cross-chain relay, and a compliance endorsement signed by the audit node. These signatures are generated using an elliptic curve digital signature algorithm, forming a non-repudiable basis for execution.
[0050] The payment authorization certificate then triggers the smart contract execution engine on the management chain. The contract first verifies the validity of the certificate signature: it decrypts the IoT gateway signature using a preset public key to verify that it matches the device certificate chain bound to the construction identifier; it verifies that the cross-chain report generation logic conforms to preset rules through zero-knowledge proofs; and finally, it compares the audit node signature with the identity of the regulatory agency registered on the chain. After all three verifications pass, the contract automatically constructs the resource transfer transaction data structure. This structure includes the payee's wallet address associated with the construction identifier, the payment amount accurate to the cent, and publicly verifiable evidence of the fulfillment of the payment conditions.
[0051] Fund transfers are executed off-chain via the bank consortium blockchain's API gateway. After payment is completed, the system automatically generates a visual traceability path for the fund transfer. Homeowners can scan the construction sign's QR code using a mobile app to view the payment status in real time.
[0052] Step 106: When the first hash value and the second hash value are inconsistent, the management chain refuses to execute the resource transfer instruction.
[0053] When the cross-chain verification module detects a difference between the first hash value H1 stored on the behavior chain and the second hash value H2 calculated locally, the system immediately triggers a multi-level defense mechanism. Upon receiving the exception code from the cross-chain module, the management chain's smart contract freezes all fund operation permissions under the associated construction identifier and generates a legally valid payment rejection certificate using digital signature technology.
[0054] When a resource transfer instruction is triggered, the current construction data corresponding to the construction project is collected using IoT devices; a third hash value corresponding to the current construction data is generated; when the third hash value matches the first hash value, the resource transfer instruction is executed through the management chain.
[0055] During the critical execution window following the triggering of the resource transfer command, the system can also initiate a real-time construction data re-verification mechanism. The system utilizes the IoT device network to perform a high-priority data snapshot acquisition. These real-time acquired raw data streams are transmitted to edge computing nodes via a dedicated secure channel, forming the current construction data.
[0056] Current construction data can be processed using an optimized lightweight hash pipeline. This process splits multi-source data streams into parallel computing channels based on IoT device type. Each channel generates an independent hash fragment using the SHA3-512 algorithm. Finally, all hash fragments are combined to form a third hash value. When the consistency verification between the third hash value and the first hash value passes, the management chain executes resource transfer instructions to complete the payment.
[0057] As can be seen from the above technical solutions, the beneficial effects of this embodiment are:
[0058] This application provides a construction resource management method based on blockchain and the Internet of Things (IoT). The method uploads construction information and corresponding construction identifiers for construction projects to the blockchain. The blockchain includes a behavior chain and a management chain. First construction data corresponding to the construction project is collected using IoT devices. A first hash value corresponding to the first construction data is generated, stored in the behavior chain, and associated with the construction identifier. When a resource transfer instruction is triggered, a second hash value is determined based on locally stored second construction data, and the first hash value corresponding to the second hash value is retrieved from the behavior chain based on the construction identifier. When the first hash value and the second hash value match, the resource transfer instruction is executed through the management chain. When the first hash value and the second hash value do not match, the management chain refuses to execute the resource transfer instruction. This solves the problem of disconnect between offline operations and online records in maintenance fund management.
[0059] Figure 1 The example shown is only a basic embodiment of a construction resource management method based on blockchain and the Internet of Things in this application. With certain optimizations and extensions, other preferred embodiments of a construction resource management method based on blockchain and the Internet of Things can be obtained.
[0060] like Figure 2 The image shown is another specific embodiment of a construction resource management method based on blockchain and the Internet of Things according to this application.
[0061] In this embodiment, a construction resource management method based on blockchain and the Internet of Things includes the following steps:
[0062] Step 201: Upload the construction information corresponding to the construction project and the construction identifier corresponding to the construction information to the blockchain; the blockchain includes the behavior chain and the management chain.
[0063] Step 202: Collect the first construction data corresponding to the construction project using IoT devices.
[0064] Step 203: Collect physical construction data corresponding to the construction project through the construction monitoring terminal.
[0065] Vibration sensors are used to monitor the construction intensity of the construction project to generate vibration data; smart meters are used to collect the water and electricity consumption of the construction project; cameras are used to capture the construction scenes of the construction project and the construction safety data of the construction project is identified based on the construction scenes; physical construction data are determined based on vibration data, water and electricity consumption, and construction safety data.
[0066] Construction monitoring terminals are responsible for capturing the real-world state of physical construction activities. For example, vibration sensors are closely installed on critical equipment (such as elevator guide rails or water pump bases) to monitor mechanical vibration waveforms during construction at a sampling frequency of 200 times per second. Their quantitative indicators (such as peak amplitude and frequency spectrum energy) directly reflect the construction intensity and operational compliance.
[0067] Smart water and electricity meters are connected in series on the main power and water supply lines at the maintenance site, recording current, voltage, water pressure, and cumulative consumption every 5 minutes, generating a timestamped energy consumption curve. High-definition cameras equipped with edge computing modules continuously capture panoramic video of the construction site at 1080P resolution. Through a pre-trained model, they identify safety compliance factors in real time, such as personnel wearing safety helmets and intrusion alarms in the work area. The vibration data, energy consumption curves, and safety identification results collected by these three types of terminals together constitute the physical construction data.
[0068] Step 204: Collect material data corresponding to the construction project through the material verification terminal.
[0069] RFID readers are used to read building material information corresponding to the construction project; electronic scales are used to record the weight of materials arriving on site and the amount of materials consumed for the construction project; and material data is determined based on building material information, material arrival weight, and material consumption.
[0070] The material verification terminal focuses on the authenticity and usage tracking of construction materials. Each batch of incoming building materials is affixed with an encrypted RFID tag, the chip of which contains an unalterable manufacturer's batch number, production date, and purchase order number. When materials are transported to the site, a fixed RFID reader automatically scans the tag information and matches the read electronic code with the purchase list pre-stored on the blockchain for verification.
[0071] The electronic scale is integrated into the material storage area. Pressure sensors record the initial weight of materials upon arrival in real time, and the weight is automatically deducted from inventory each time materials are requisitioned. When the concrete mixer dumps materials or the rebar cutter operates, the dynamic weighing data from the electronic scale is cross-validated with the construction progress. RFID verification information is combined with the electronic scale's inbound and outbound weight logs to form the material data.
[0072] Step 205: Determine the first construction data based on the physical construction data and material data.
[0073] After data collection, the system aggregates and processes the aforementioned physical construction data and material data to form a structured construction data set. This data not only fully reflects the actual status of construction activities but also provides reliable data evidence for subsequent on-chain notarization, hash verification, and triggering of resource payment instructions.
[0074] Step 206: Generate the first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier.
[0075] Step 207: When a resource transfer instruction is triggered, determine the corresponding second hash value based on the second construction data stored locally, and extract the first hash value corresponding to the second hash value from the behavior chain based on the construction identifier.
[0076] Step 208: When the first hash value matches the second hash value, execute the resource transfer instruction through the management chain.
[0077] Step 209: When the first hash value and the second hash value are inconsistent, the management chain refuses to execute the resource transfer instruction.
[0078] As can be seen from the above technical solution, the beneficial effects of this embodiment are: the system integrates physical construction data and material data according to time and logical relationships to construct structured first construction data, establishing a mapping foundation between physical world behavior and the blockchain. This data structure provides a unified input standard for subsequent data hash generation, on-chain notarization, and payment instruction verification, significantly enhancing the system's data integrity, verifiability, and tamper resistance, fundamentally improving the security, transparency, and audit efficiency of construction resource management.
[0079] like Figure 3 The image shows another specific embodiment of a construction resource management method based on blockchain and the Internet of Things according to this application. This embodiment is further described based on the foregoing embodiments.
[0080] In this embodiment, a construction resource management method based on blockchain and the Internet of Things includes the following steps:
[0081] Step 301: Upload the construction information corresponding to the construction project and the construction identifier corresponding to the construction information to the blockchain; the blockchain includes the behavior chain and the management chain.
[0082] Step 302: Collect the first construction data corresponding to the construction project using IoT devices.
[0083] Step 303: Generate the first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier.
[0084] Step 304: Standardize the first construction data to generate standard construction data.
[0085] The system standardizes the acquired initial construction data to generate standard construction data. Because the data from IoT devices is complex and diverse, including image data, vibration signals, water and electricity readings, and RFID information, directly using it for hash calculations would result in inconsistent dimensions, significant format differences, and data redundancy. Therefore, the system uses a set of predefined standardization rules to perform structural transformation and content regularization on the original construction data.
[0086] This process includes unit standardization, format normalization, outlier removal, and missing value imputation. The goal of standardization is to ensure that data from different sources are comparable in format and consistent in structure, thus laying the foundation for subsequent data segmentation and hash generation.
[0087] Step 305: Divide the standard construction data into time-series blocks according to a preset time window to generate time-series construction data.
[0088] The system divides standard construction data into time-series blocks according to preset time windows to generate time-series construction data. Since construction projects often last for days or even weeks, directly hashing the entire data segment would result in overly coarse-grained on-chain verification, hindering the detection of fine-grained data tampering. Therefore, the system divides standard construction data into several sub-segments according to preset time windows (e.g., every 30 minutes, every hour), constructing time-series construction data blocks.
[0089] Each time-series construction data point independently records the physical construction status and material usage within that time period, and retains its timestamp information. This time-series segmentation method not only improves the traceability and local auditing capabilities of on-chain data, but also enables the system to perform differentiated management of construction activities in different time periods.
[0090] Step 306: Calculate the first hash value corresponding to the time-series construction data using a preset hash function.
[0091] The system processes each time-series construction data block using a preset hash function to calculate its corresponding first hash value. The hash function employs a high-level encryption algorithm such as SHA-256, ensuring that any slight change in the input data will result in a significant difference in the output hash value, exhibiting strong collision resistance and irreversibility.
[0092] The calculated hash value serves as a unique fingerprint identifier for the construction activity during that time period. It is stored in the blockchain's activity chain and bound to the relevant construction identifier or task ID. This process ensures the immutability and verifiability of the data, playing a crucial role in subsequent payment instruction triggering and on-chain cross-verification. The existence of each hash value constructs a digital credit proof of a construction activity, achieving a trusted on-chain mapping of physical world activities.
[0093] Step 307: When a resource transfer instruction is triggered, determine the corresponding second hash value based on the second construction data stored locally, and extract the first hash value corresponding to the second hash value from the behavior chain based on the construction identifier.
[0094] Step 308: When the first hash value matches the second hash value, execute the resource transfer instruction through the management chain.
[0095] Step 309: When the first hash value and the second hash value are inconsistent, the management chain refuses to execute the resource transfer instruction.
[0096] As can be seen from the above technical solutions, the beneficial effects of this embodiment are as follows: Standardization ensures the semantic and unit consistency of data from different sources and in different formats, avoiding hash mismatch problems caused by data differences; the time-series block mechanism divides continuous construction activities into multiple independent data units according to time windows, improving the audit granularity and storage flexibility of data, enabling the system to quickly locate and respond when local data anomalies are detected; the application of the preset hash function generates a unique digital fingerprint for the construction activities in each time period, ensuring the immutability and integrity of the data, thereby providing reliable guarantees for subsequent key processes such as hash-based consistency verification, payment instruction verification, and anomaly alarms.
[0097] like Figure 4 The image shows another specific embodiment of a construction resource management method based on blockchain and the Internet of Things according to this application. This embodiment is further described based on the foregoing embodiments.
[0098] Step 401: Upload the construction information corresponding to the construction project and the construction identifier corresponding to the construction information to the blockchain; the blockchain includes the behavior chain and the management chain.
[0099] Step 402: Collect the first construction data corresponding to the construction project using IoT devices.
[0100] Step 403: Generate the first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier.
[0101] Step 404: When a resource transfer instruction is triggered, determine the corresponding second hash value based on the second construction data stored locally, and extract the first hash value corresponding to the second hash value from the behavior chain based on the construction identifier.
[0102] Step 405: Locate the locally stored second construction data based on the construction identifier.
[0103] The system locates the second construction data stored locally based on the construction identifier. The construction identifier is typically a unique identifier generated for each engineering task when a construction project starts. It is unique and traceable and is used to mark the identity and position of the construction activity throughout the management process.
[0104] When a resource transfer instruction is triggered, the system retrieves the construction identifier associated with the instruction from the management chain. Subsequently, the system searches for the construction data record corresponding to that construction identifier in local storage or edge device cache. Since this data is collected and backed up synchronously in real-time by IoT devices at the construction site, it has the expected consistency with on-chain evidence data in terms of time and content, thus serving as an important data source for hash consistency verification.
[0105] Step 406: Calculate the second hash value corresponding to the second construction data using a hash function.
[0106] The system uses a preset hash function to process the located second construction data and calculate its corresponding second hash value. This hash function must be consistent with the hash algorithm used in the initial evidence storage process to ensure that the output result remains constant when the same input data is used.
[0107] The system first performs the same standardization and time-series reconstruction operations on the second construction data as on the initial data to avoid errors introduced due to data processing deviations. Then, the result is input into a hash function to generate a new set of hash values, representing the integrity fingerprint of the currently stored data in its current state. This second hash value is then compared with the first hash value pre-stored in the blockchain behavior chain to verify data consistency.
[0108] Step 407: When the first hash value matches the second hash value, execute the resource transfer instruction through the management chain.
[0109] Step 408: When the first hash value and the second hash value are inconsistent, the management chain refuses to execute the resource transfer instruction.
[0110] As can be seen from the above technical solutions, the beneficial effects of this embodiment are: the construction identifier accurately locates the second construction data stored locally, and the hash function consistent with the on-chain evidence is used to perform hash calculation on it, which significantly improves the efficiency and credibility of construction data comparison and verification.
[0111] like Figure 5 The image shown is a specific embodiment of a construction resource management device based on blockchain and the Internet of Things (IoT) according to this application. This embodiment describes a construction resource management device based on blockchain and IoT, specifically used for executing... Figures 1-4A physical device for a construction resource management method based on blockchain and the Internet of Things (IoT) is described. Its technical solution is essentially the same as the embodiments described above, and the corresponding descriptions in the embodiments above also apply to this embodiment. This embodiment of a construction resource management device based on blockchain and IoT includes:
[0112] The blockchain upload module 501 is configured to upload the construction information corresponding to the construction project and the construction identifier corresponding to the construction information to the blockchain; the blockchain includes a behavior chain and a management chain.
[0113] The first construction data determination module 502 is configured to collect the first construction data corresponding to the construction project using IoT devices.
[0114] The first hash value determination module 503 is configured to generate a first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier;
[0115] The second hash value determination module 504 is configured to determine the corresponding second hash value based on the second construction data stored locally when a resource transfer instruction is triggered, and to extract the first hash value corresponding to the second hash value from the behavior chain based on the construction identifier.
[0116] The instruction execution module 505 is configured to execute a resource transfer instruction through the management chain when the first hash value matches the second hash value.
[0117] The instruction rejection module 506 is configured to refuse to execute a resource transfer instruction when the first hash value and the second hash value are inconsistent.
[0118] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include RAM, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk storage device. Of course, the electronic device may also include other hardware required for other services.
[0119] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0120] Memory is used to store instructions for execution. Specifically, instructions for execution are computer programs that can be executed. Memory can include main memory and non-volatile memory, and it provides the processor with execution instructions and data.
[0121] In one possible implementation, the processor reads the corresponding execution instructions from non-volatile memory into main memory and then executes them. Alternatively, it can obtain the corresponding execution instructions from other devices to logically form a construction resource management device based on blockchain and the Internet of Things (IoT). The processor executes the execution instructions stored in the memory to implement the construction resource management method based on blockchain and IoT provided in any embodiment of this application.
[0122] The above is as stated in this application. Figure 5The method implemented by the blockchain and IoT-based construction resource management device in the illustrated embodiment can be applied to or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed through integrated logic circuits in the processor's hardware or through software instructions. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor.
[0123] The steps of the method disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0124] This application also proposes a readable medium that stores execution instructions. When these instructions are executed by the processor of an electronic device, the electronic device can perform a construction resource management method based on blockchain and the Internet of Things provided in any embodiment of this application, and specifically execute, for example... Figure 1 or Figure 2 or Figure 3 or Figure 4 The method shown.
[0125] The electronic devices in the foregoing embodiments may be computers.
[0126] Those skilled in the art will understand that the embodiments of this application can be provided as methods or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or a combination of software and hardware.
[0127] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0128] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0129] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A construction resource management method based on blockchain and the Internet of Things, characterized in that, include: The construction information corresponding to the construction project and the construction identifier corresponding to the construction information are uploaded to the blockchain; the blockchain includes a behavior chain and a management chain. The first construction data corresponding to the construction project is collected using IoT devices; Generate a first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier; When a resource transfer instruction is triggered, the corresponding second hash value is determined based on the second construction data stored locally, and the first hash value corresponding to the second hash value is extracted from the behavior chain based on the construction identifier. When the first hash value matches the second hash value, the resource transfer instruction is executed through the management chain; When the first hash value is inconsistent with the second hash value, the management chain refuses to execute the resource transfer instruction.
2. The method according to claim 1, characterized in that, The first construction data corresponding to the construction project collected using IoT devices includes: Physical construction data corresponding to the construction project are collected through a construction monitoring terminal; Material data corresponding to the construction project is collected through a material verification terminal; The first construction data is determined based on the physical construction data and the material data.
3. The method according to claim 2, characterized in that, The construction monitoring terminal includes a vibration sensor, a smart meter, and a camera. The collection of physical construction data corresponding to the construction project through the construction monitoring terminal includes: The vibration sensor is used to monitor the construction intensity corresponding to the construction project in order to generate vibration data; The smart meter is used to collect the water and electricity consumption corresponding to the construction project. The camera is used to capture construction footage corresponding to the construction project, and construction safety data corresponding to the construction project is identified based on the construction footage. The physical construction data is determined based on the vibration data, the water and electricity consumption, and the construction safety data.
4. The method according to claim 2, characterized in that, The verification terminal includes an RFID reader and an electronic scale. The process of collecting material data corresponding to the construction project through the material verification terminal includes: The RFID reader is used to read the building material information corresponding to the construction project. The electronic scale is used to record the weight of materials arriving on site and the amount of materials consumed for the construction project. The material data is determined based on the building material information, the weight of the materials upon arrival, and the amount of materials consumed.
5. The method according to claim 1, characterized in that, The process of generating the first hash value corresponding to the first construction data includes: The first construction data is standardized to generate standard construction data; The standard construction data is divided into time-series blocks according to a preset time window to generate time-series construction data; The first hash value corresponding to the time-series construction data is calculated using a preset hash function.
6. The method according to claim 5, characterized in that, The step of determining the corresponding second hash value based on the locally stored second construction data includes: The second construction data stored locally is located based on the construction identifier; The hash function is used to calculate the second hash value corresponding to the second construction data.
7. The method according to any one of claims 1-6, characterized in that, Also includes: When a resource transfer command is triggered, the IoT device is used to collect the current construction data corresponding to the construction project. Generate a third hash value corresponding to the current construction data; When the third hash value matches the first hash value, the resource transfer instruction is executed through the management chain.
8. A construction resource management device based on blockchain and the Internet of Things, characterized in that, include: The blockchain upload module is configured to upload construction information corresponding to the construction project and construction identifiers corresponding to the construction information to the blockchain; the blockchain includes a behavior chain and a management chain. The first construction data determination module is configured to collect the first construction data corresponding to the construction project using Internet of Things (IoT) devices. The first hash value determination module is configured to generate a first hash value corresponding to the first construction data, store the first hash value in the behavior chain and associate it with the construction identifier; The second hash value determination module is configured to determine the corresponding second hash value based on the second construction data stored locally when a resource transfer instruction is triggered, and to extract the first hash value corresponding to the second hash value from the behavior chain based on the construction identifier. The instruction execution module is configured to execute the resource transfer instruction through the management chain when the first hash value matches the second hash value. The instruction rejection module is configured to refuse to execute the resource transfer instruction when the first hash value and the second hash value are inconsistent.
9. A computer-readable storage medium storing a computer program, characterized in that, The computer program is used to execute the construction resource management method based on blockchain and Internet of Things as described in any one of claims 1-7.
10. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the construction resource management method based on blockchain and Internet of Things as described in any one of claims 1-7.
Citation Information
Cited By
Indoor decoration material traceability management system based on block chain
CN121810317A
Blockchain-based interior decoration material traceability management system
CN121810317B