A BIM collaborative design method and system based on blockchain
By using blockchain technology to encrypt sensitive and non-sensitive components in BIM collaborative design, and combining IPFS and change detection smart contracts, the problems of BIM data security and version management are solved, and data protection and version traceability are realized. Effect.
Patent Information
- Application Number
- CN202311856351.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-12-29
AI Technical Summary
The lack of effective data management methods in BIM collaborative design leads to problems of sensitive data leakage and malicious tampering, and the lack of an appropriate version management mechanism makes it difficult to trace historical changes and compare version differences.
Using a blockchain-based method, the BIM model is differentially encrypted for sensitive and non-sensitive components, and the IPFS network and blockchain network are used for data storage and transmission, combined with change detection smart contract records and comparison of model changes. detail.
It effectively protects BIM sensitive data, ensures data security and integrity, improves version traceability in the collaborative design process, solves data leakage and tampering issues, and enables recording and comparison of historical changes.
Smart Images

Figure CN117834247B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of BIM collaborative design, and more specifically, relates to a BIM collaborative design method and system based on blockchain. Background Art
[0002] BIM (Building Information Modeling) is a building model based on various relevant information and data of construction projects. It is also a digital information simulation of the construction process. The collaborative work of engineering construction is a complex iterative process. The core of BIM collaborative design is to enable all participants to communicate and modify in real time on a unified platform to ensure the synchronization of design information and improve the overall efficiency of engineering construction. In the complex scenario of cross-iteration of business processes that require multiple participants to complete construction tasks in parts and share and exchange project information throughout the construction life cycle, the lack of effective management methods to ensure data controllability can easily lead to problems with the security and privacy of BIM collaborative design data.
[0003] BIM collaborative design involves a large amount of data sharing. Many project participants need to access and modify BIM models. The designs of different participants may follow different standards or protocols. Each team member's access and modification of the model may lead to the leakage and malicious tampering of sensitive data in BIM. Summary of the invention
[0004] In view of the above defects or improvement needs of the prior art, the present invention provides a BIM collaborative design method and system based on blockchain, which aims to avoid the leakage and malicious tampering of sensitive data in BIM.
[0005] A BIM collaborative design method based on blockchain, comprising:
[0006] Release Task: Design Task Release Node will be the initial BIM model BIM A Decomposition into sensitive components BIM i and non-sensitive component BIM j , using the symmetric key K i Incorporate sensitive components into BIM i After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID i , using the symmetric key K j BIM j After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID j , using the public key PK receiver CID for hash address i , symmetric key K iPerform RSA asymmetric encryption respectively to generate encrypted address ECID i and encryption key EK i ; Design tasks, including encrypted address ECID i TX i and contains the hash address CID j TX j , encryption key EK i and the symmetric key K j Send to the corresponding designer node through the blockchain network;
[0007] Modify sensitive components: have private key SK receiver The designer node obtains the transaction TX i and encryption key EK i , using the private key SK receiver For encrypted addresses ECID respectively i and encryption key EK i Decrypt and obtain the hash address CID i and the symmetric key K i , using hash address CID i Download encrypted sensitive BIM components from the IPFS network i And use the symmetric key K i Decryption and extraction of sensitive BIM components i Make modifications;
[0008] Modify non-sensitive components: Designer node obtains transaction TX j and the symmetric key K j , using hash address CID j Download encrypted non-sensitive BIM components from the IPFS network j And use the symmetric key K j Decryption and extraction of non-sensitive components BIM j Make modifications;
[0009] Upload modified components: Each designer node determines that the components they have modified belong to sensitive components BIM′ i or non-sensitive component BIM′ j , if it is a sensitive component BIM′ i , then use the symmetric key K′ i Incorporate sensitive components into BIM i After AES symmetric encryption, upload to the IPFS network and receive the returned unique corresponding hash address CID' i , using the public key PK′ receiver For hash address CID′ i and the symmetric key K′ iPerform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i , will contain the encrypted address ECID′ i Transaction TX′ i and encryption key EK′ i Published on the blockchain network, if it is a non-sensitive component BIM′ j , then use the symmetric key K′ j Incorporate non-sensitive components into BIM j Perform AES symmetric encryption and upload to the IPFS network and receive the returned unique corresponding hash address CID′ j , will contain the hash address CID′ j Transaction TX′ j and the symmetric key K′ j Send to the design task release node through the blockchain network;
[0010] Among them, the modified sensitive component BIM′ i and non-sensitive component BIM′ j Composition of updated BIM model BIM B , public key PK receiver With private key SK receiver correspond.
[0011] In one embodiment,
[0012] Transaction TX i ={ID sender ,Sig sender ,timestamp,ECID i};
[0013] Transaction TX j ={ID sender ,Sig sender ,timestamp,CID j};
[0014] Transaction TX′ i ={ID′ sender ,Sig′ sender ,timestamp′,ECID′ i};
[0015] Transaction TX′ j ={ID′ sender ,Sig′ sender ,timestamp′,CID′ j};
[0016] Among them, ID sender、Sig sender They represent the identity information and digital signature of the design task issuing node, timestamp represents the timestamp of the design task issuing node issuing the corresponding transaction, ID′ sender , Sig′ sender They represent the identity information and digital signature of the designer node respectively, and timestamp′ represents the timestamp when the designer node publishes the corresponding transaction.
[0017] In one embodiment, the method further comprises:
[0018] Get updated BIM model: Design task release node gets transaction TX′ i , transaction TX′ j , encryption key EK′ i and the symmetric key K′ j , using the private key SK′ receiver For the encrypted address ECID′ i and encryption key EK′ i Decrypt and obtain the hash address CID′ i and the symmetric key K′ i , using the hash address CID′ i Download the encrypted modification sensitive component BIM′ from the IPFS network i And use the symmetric key K′ i Decrypt and extract the modified sensitive components BIM′ i , using the hash address CID′ j Download the encrypted non-modified sensitive component BIM′ from the IPFS network j And use the symmetric key K′ j Decrypt and extract the modified non-sensitive component BIM′ j , combined with all sensitive components after modification BIM′ i and all non-sensitive components BIM′ j , get the updated BIM model BIM B ; Among them, the public key PK′ receiver With private key SK′ receiver correspond.
[0019] In one embodiment, the method further comprises:
[0020] Using change detection smart contract to check the initial BIM model A and updated BIM model BIM B Perform a comparison and record the comparison results, which include four categories: unchanged, modified components, newly added components, and deleted components.
[0021] In one embodiment, the change detection smart contract execution comparison process includes:
[0022] BIM Model A Convert each component to IFC format A , the model BIM B Convert each component to IFC format B , get the component IFC through hash operation A The hash value Hash(A) and the component IFC B The hash value Hash(B);
[0023] Compare the hash values Hash(A) and Hash(B):
[0024] If the two are equal, the comparison result is unchanged;
[0025] If the two are not equal, extract the component IFC A and component IFC B Components with equal hash values are considered as common components in IFC commen , extract component IFC A IFC commen Components with unequal hash values are used as distinguishing components ΔIFC A , extract component IFC B IFC commen Components with unequal hash values are used as distinguishing components ΔIFC B ; Compare the difference components ΔIFC A and the difference component ΔIFC B : If the component appears in different components at the same time ΔIFC A and the difference component ΔIFC B If the status of the component changes, the comparison result is the modified component; if the component only appears in the difference component ΔIFC A In the comparison, the component is deleted; if the component only appears in the difference component ΔIFC B , the comparison result is the newly added component.
[0026] In one embodiment, the method further comprises:
[0027] The change detection smart contract is used to determine whether there are abnormal modifications and feedback is sent to the design task publishing node through the blockchain network. The abnormal modifications include any of the following:
[0028] Components that should be deleted according to the design task were not deleted;
[0029] The components that should be added according to the design task were not added;
[0030] Components that should be modified according to the design task were not modified;
[0031] The designer node modification process has an impact on components that do not have modification permissions.
[0032] A blockchain-based BIM collaborative design system, including a blockchain network, a design task publishing node, a designer node and an IPFS network; wherein,
[0033] The design task release node is used to release tasks; the release task includes: A Decomposition into sensitive components BIM i and non-sensitive component BIM j , using the symmetric key K i Incorporate sensitive components into BIM i After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID i , using the symmetric key K j BIM j After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID j , using the public key PK receiver CID for hash address i , symmetric key K i Perform RSA asymmetric encryption respectively to generate encrypted address ECID i and encryption key EK i ; Design tasks, including encrypted address ECID i TX i and contains the hash address CID j TX j , encryption key EK i and the symmetric key K j Send to the corresponding designer node through the blockchain network;
[0034] The designer node includes a private key SK receiver The designer node does not have the private key SK receiver The designer node has a private key SK receiver The designer node has the authority to modify sensitive and non-sensitive components, but does not have the private key SK receiver Designer nodes only have the authority to modify non-sensitive components. Each designer node is used to modify different components according to its own modification authority, and then determine whether the components after modification belong to sensitive components BIM′ i or non-sensitive component BIM′ j And upload the modified component;
[0035] When a designer node modifies a sensitive component, it obtains the transaction TX i and encryption key EK i , using the private key SK receiver For encrypted addresses ECID respectively i and encryption key EK i Decrypt and obtain the hash address CID i and the symmetric key K i , using hash address CID i Download encrypted sensitive BIM components from the IPFS network i And use the symmetric key K i Decryption and extraction of sensitive BIM components i Make modifications; when the designer node modifies non-sensitive components, obtain transaction TX j and the symmetric key K j , using hash address CID j Download encrypted non-sensitive BIM components from the IPFS network j And use the symmetric key K j Decryption and extraction of non-sensitive components BIM j Modify; if the modified component is a sensitive component BIM′ i , then use the symmetric key K′ i Incorporate sensitive components into BIM i After AES symmetric encryption, upload to the IPFS network and receive the returned unique corresponding hash address CID' i , using the public key PK′ receiver For hash address CID′ i and the symmetric key K′ i Perform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i , will contain the encrypted address ECID′ i Transaction TX′ i and encryption key EK′ i Published to the blockchain network, if the modified component is a non-sensitive component BIM′ j , then use the symmetric key K′ j Incorporate non-sensitive components into BIM j Perform AES symmetric encryption and upload to the IPFS network and receive the returned unique corresponding hash address CID′ j , will contain the hash address CID′ j Transaction TX′ j and the symmetric key K′ j The modified sensitive component BIM′ is sent to the design task release node through the blockchain network.i and non-sensitive component BIM′ j Composition of updated BIM model BIM B , public key PK receiver With private key SK receiver correspond.
[0036] In one embodiment,
[0037] Transaction TX i ={ID sender ,Sig sender ,timestamp,ECID i};
[0038] Transaction TX j ={ID sender ,Sig sender ,timestamp,CID j};
[0039] Transaction TX′ i ={ID′ sender ,Sig′ sender ,timestamp′,ECID′ i};
[0040] Transaction TX′ j ={ID′ sender ,Sig′ sender ,timestamp′,CID′ j};
[0041] Among them, ID sender 、Sig sender They represent the identity information and digital signature of the design task issuing node, timestamp represents the timestamp of the design task issuing node issuing the corresponding transaction, ID′ sender , Sig′ sender They represent the identity information and digital signature of the designer node respectively, and timestamp′ represents the timestamp when the designer node publishes the corresponding transaction.
[0042] In one embodiment, a change detection smart contract is deployed on the blockchain network, and the change detection smart contract is used to detect the initial BIM model BIM A and updated BIM model BIM B Perform a comparison and record the comparison results, which include four categories: unchanged, modified components, newly added components, and deleted components.
[0043] In one embodiment, the change detection smart contract is used to perform the following process to obtain the comparison result:
[0044] BIM Model A Convert each component to IFC format A , the model BIM B Convert each component to IFC format B , get the component IFC through hash operation A The hash value Hash(A) and the component IFC B The hash value Hash(B);
[0045] Compare the hash values Hash(A) and Hash(B):
[0046] If the two are equal, the comparison result is unchanged;
[0047] If the two are not equal, extract the component IFC A and component IFC B Components with equal hash values are considered as common components in IFC commen , extract component IFC A IFC commen Components with unequal hash values are used as distinguishing components ΔIFC A , extract component IFC B IFC commen Components with unequal hash values are used as distinguishing components ΔIFC B ; Compare the difference components ΔIFC A and the difference component ΔIFC B : If the component appears in different components at the same time ΔIFC A and the difference component ΔIFC B If the status of the component changes, the comparison result is the modified component; if the component only appears in the difference component ΔIFC A In the comparison, the component is deleted; if the component only appears in the difference component ΔIFC B , the comparison result is the newly added component.
[0048] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0049] The present invention utilizes blockchain network technology to distinguish sensitive components BIM in the collaborative design process. i and non-sensitive component BIM j . BIM for sensitive components i , using the symmetric key K i Incorporate sensitive components into BIM i After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID i, using the public key PK receiver CID for hash address i , symmetric key K i Perform RSA asymmetric encryption respectively to generate encrypted address ECID i and encryption key EK i . BIM for non-sensitive components j , using the symmetric key K j BIM j After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID j The present invention is for sensitive components BIM i and non-sensitive component BIM j Differential encryption is performed, and different access rights are set according to whether the design tasks of different designers involve querying or modifying sensitive components. After the designer completes the component modification, he or she can perform BIM′ i and non-sensitive component BIM′ j Differentiated encryption is performed before publishing to the blockchain, thus solving the problem of difficulty in protecting BIM sensitive data during collaborative design.
[0050] Furthermore, another obvious problem with existing BIM collaborative design is the lack of an appropriate version management mechanism, which makes it impossible to record and compare historical changes, and it is difficult to trace the modifications to a specific version, making it difficult to identify differences between versions. In this embodiment, a change detection smart contract is deployed to record the change details of each BIM version, thereby improving the change traceability capability of different BIM versions during the collaborative design process. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 This is a schematic diagram of the structure of a BIM collaborative design system based on blockchain in one embodiment;
[0052] Figure 2 A flowchart of a BIM collaborative design method based on blockchain according to an embodiment;
[0053] Figure 3 A diagram of the encryption and transaction information interaction process in a BIM collaborative design method according to an embodiment;
[0054] Figure 4 A flowchart of the steps of comparing the execution of a change detection smart contract in one embodiment. DETAILED DESCRIPTION
[0055] In order to facilitate the understanding of the present application, in order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the preferred embodiments of the present application are given in the accompanying drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thoroughly understood. The present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0057] like Figure 1 The diagram shows the structure of a blockchain-based BIM collaborative design system in one embodiment, which includes an IPFS network, a blockchain network, a design task publishing node, and a designer node. The design task publishing node performs differential processing on the BIM model and publishes the design task; BIM design files and other design files with large storage capacity are stored in the IPFS network; transaction TX and secret key K / EK are sent through the blockchain network and leave traces; multiple designer nodes collaborate to complete the design task.
[0058] like Figure 2 FIG. 1 is a flowchart of a BIM collaborative design method based on blockchain in one embodiment. Figure 3 The figure shows the encryption and transaction information interaction process in the BIM collaborative design method in one embodiment. Figures 1 to 3 As shown in FIG, the blockchain-based BIM collaborative design method includes the steps of issuing tasks, modifying sensitive components and non-sensitive components, and uploading modified components. The analysis of the above steps is described in detail below.
[0059] The release task is completed by designing the task release node. The following steps are performed at the task release node:
[0060] Step S11: Initial BIM model BIM A Decomposition into sensitive components BIM i and non-sensitive component BIM j .
[0061] Specifically, the design task publisher defines the sensitive information in the BIM model, clarifies the design task, and converts the initial BIM model into a BIM A Decompose into sensitive components BIM according to whether it contains sensitive information i and non-sensitive component BIM j .
[0062] Sensitive information includes sensitive data in BIM design documents defined in accordance with laws, regulations, contractual agreements, industry standards, etc., including BIM data that may lead to the leakage of personal privacy, intellectual property rights and trade secrets if lost, tampered with or unauthorized access, and may lead to economic losses or security risks, and data that may not be disclosed to third parties according to contractual agreements.
[0063] Step S12: Use the symmetric key K i Incorporate sensitive components into BIM i After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID i , using the symmetric key K j BIM j After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID j .
[0064] Specifically, the design task publisher uses the symmetric key K i BIM i Perform AES symmetric encryption and use the symmetric key K j BIM j Perform AES symmetric encryption and send the encrypted BIM i and BIM j Upload them to the IPFS network respectively. The IPFS network is for each stored BIM i 、BIM j Returns the unique hash address CID respectively i 、CID j .
[0065] Step S13: Use public key PK receiver CID for hash address i , symmetric key K i Perform RSA asymmetric encryption respectively to generate encrypted address ECID i and encryption key EK i .
[0066] Specifically, the design task publisher uses the public key PK receiver BIM for each sensitive component i The hash address of CID i , symmetric key K iPerform RSA asymmetric encryption to generate ECID i and EK i .
[0067] Step S14: Design task, including encrypted address ECID i TX i and contains the hash address CID j TX j , encryption key EK i and the symmetric key K j Sent to the corresponding designer node through the blockchain network.
[0068] Specifically, transaction TX i Contains encrypted address ECID i , transaction TX j Contains hash address CID j In addition, the transaction may also carry other information, such as identity information, time information, etc. In one embodiment, for sensitive components, TX i ={ID sender ,Sig sender ,timestamp,ECID i}, where ID sender 、Sig sender Respectively represent the identity information and digital signature of the design task issuing node, and timestamp represents the timestamp of the corresponding transaction issued by the design task issuing node. For non-sensitive components, generate transaction TX j ={ID sender ,Sig sender ,timestamp,CID j}, where ID sender 、Sig sender They respectively represent the identity information and digital signature of the design task issuing node, and timestamp represents the timestamp of the corresponding transaction issued by the design task issuing node.
[0069] In one embodiment, according to the collaborative design task requirements, the design task issuing node can i , EK i and TX j , K j It is sent to the corresponding designer nodes through the blockchain network, and the designer nodes receive it through the blockchain network.
[0070] Through the above steps S11 to S14, the task release is completed.
[0071] Modifying sensitive components, modifying non-sensitive components, and uploading modified components are completed by the designer node, which includes a private key SK receiver The designer node does not have the private key SK receiver The designer node has a private key SK receiver The designer node has the authority to modify sensitive and non-sensitive components, but does not have the private key SK receiver The designer node only has the permission to modify non-sensitive components.
[0072] Modifying sensitive components requires having the private key SK receiver The designer node is completed, which includes the following steps:
[0073] S21: Get transaction TX i and encryption key EK i , using the private key SK receiver For encrypted addresses ECID respectively i and encryption key EK i Decrypt and obtain the hash address CID i and the symmetric key K i , using hash address CID i Download encrypted sensitive BIM components from the IPFS network i And use the symmetric key K i Decryption and extraction of sensitive BIM components i Make modifications.
[0074] Among them, the private key SK receiver With public key PK receiver Correspondingly, the design task publishing node can assign permissions to the designer node in advance and send the private key SK receiver Sent to the designated designer node, only those with the private key SK receiver The designer node can extract sensitive components for modification.
[0075] Specifically, for TX i and EK i , the designer first uses the private key SK receiver EK i and ECID i Decrypt and obtain K i and CID i , using CID i Download the corresponding design files and BIM in the IPFS network i , using the secret key K i Decrypt.
[0076] It is understandable that when the designer node modifies the sensitive component, the modified component must also be a sensitive component. The modified sensitive component is defined as the sensitive component BIM′ i Therefore, the designer node gets the sensitive component BIM′ i After that, continue to perform the following steps to upload sensitive component BIM′ i .
[0077] Step S22: Use the symmetric key K′ i Incorporate sensitive components into BIM i After AES symmetric encryption, upload to the IPFS network and receive the returned unique corresponding hash address CID' i .
[0078] Specifically, modify the sensitive component BIM′ i Afterwards, the designer node uses the symmetric key K′ i Incorporate sensitive components into BIM i Perform AES symmetric encryption and upload to the IPFS network. The IPFS network is used for each stored BIM′ i Returns the unique hash address CID′ i .
[0079] Step S23: Use public key PK′ receiver For hash address CID′ i and the symmetric key K′ i Perform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i .
[0080] Specifically, the designer uses the public key PK′ receiver For each sensitive component BIM′ i The hash address CID′ i and the symmetric key K′ i Perform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i Among them, the public key PK′ receiver Corresponding private key SK′ receiver , private key SK′ receiver Located on the design task release node.
[0081] Step S24: Contain the encrypted address ECID' i Transaction TX′ i and encryption key EK′ i Sent to the design task publishing node through the blockchain network.
[0082] Specifically, transaction TX′ i Contains encrypted address ECID' i In addition, the transaction may also carry other information, such as identity information, time information, etc. In one embodiment, for sensitive components, a transaction TX′ is generated. i ={ID′ sender ,Sig′ sender ,timestamp′,ECID′ i}, where ID′ sender , Sig′ sender They represent the identity information and digital signature of the designer node respectively, and timestamp′ represents the timestamp when the designer node publishes the corresponding transaction.
[0083] Modifying non-sensitive components can be done at any designer node, including the following steps:
[0084] Step S31: Get transaction TX j and the symmetric key K j , using hash address CID j Download encrypted non-sensitive BIM components from the IPFS network j And use the symmetric key K j Decryption and extraction of non-sensitive components BIM j Make modifications.
[0085] Specifically, for TX j and K j , designers use CID j Download the corresponding design files and BIM in the IPFS network j , using the secret key K j Decrypt.
[0086] BIM for non-sensitive components in designer nodes j After the modification, sensitive information may be added. Therefore, the modified component may become a sensitive component BIM′ i , it may also be a non-sensitive component, defined as a non-sensitive component BIM′ j .
[0087] If the designer node is non-sensitive component BIM j After modification, the sensitive component BIM′ is obtained i The designer node uploads the sensitive component BIM′ in the same steps as steps S22 to S24 i , specifically:
[0088] Step S32: Use the symmetric key K′ i Incorporate sensitive components into BIM iAfter AES symmetric encryption, upload to the IPFS network and receive the returned unique corresponding hash address CID' i .
[0089] Specifically, modify the sensitive component BIM′ i Afterwards, the designer node uses the symmetric key K′ i Incorporate sensitive components into BIM i Perform AES symmetric encryption and upload to the IPFS network. The IPFS network is used for each stored BIM′ i Returns the unique hash address CID′ i .
[0090] Step S33: Use public key PK′ receiver For hash address CID′ i and the symmetric key K′ i Perform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i .
[0091] Specifically, the designer uses the public key PK′ receiver For each sensitive component BIM′ i The hash address CID′ i and the symmetric key K′ i Perform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i Among them, the public key PK′ receiver Corresponding private key SK′ receiver , private key SK′ receiver Located on the design task release node.
[0092] Step S34: include the encrypted address ECID' i Transaction TX′ i and encryption key EK′ i Sent to the design task publishing node through the blockchain network.
[0093] If the designer node is non-sensitive component BIM j After modification, the non-sensitive component BIM′ is still obtained. j The designer node performs the following steps to upload the non-sensitive component BIM′ j :
[0094] Step S35: Use the symmetric key K′ j Incorporate non-sensitive components into BIM j Perform AES symmetric encryption and upload to the IPFS network and receive the returned unique corresponding hash address CID′j .
[0095] Step S36: include the hash address CID′ j Transaction TX′ j and the symmetric key K′ j Published on the blockchain network.
[0096] Specifically, transaction TX′ j Contains hash address CID' j In addition, the transaction may also carry other information, such as identity information, time information, etc. In one embodiment, for non-sensitive components, a transaction TX′ is generated. j ={ID′ sender ,Sig′ sender ,timestamp′,CID′ j}, where ID′ sender , Sig′ sender They represent the identity information and digital signature of the designer node respectively, and timestamp′ represents the timestamp when the designer node publishes the corresponding transaction.
[0097] The designer node will TX′ i TX′ j , EK′ i , K′ j Published to the blockchain network, all modified sensitive components BIM′ i and all non-sensitive components BIM′ j Composition of updated BIM model BIM B , the transaction will be recorded in the blockchain network, and nodes with relevant permissions can retrieve and download the relevant components that have been modified.
[0098] In one embodiment, the method further includes obtaining and updating the BIM model, which is completed by the design task publishing node, and the design task publishing node uses SK′ receiver For EK′ i and ECID′ i Decrypt and obtain K′ i and CID′ i , using CID′ i and K′ i Retrieve and download modified sensitive components in the IPFS network, using CID′ j and K′ j Retrieve and download the modified non-sensitive components in the IPFS network, and the modified sensitive components BIM′ i and non-sensitive component BIM′ j Composition of updated BIM model BIM B .
[0099] The process of obtaining and updating the BIM model at the design task release node includes:
[0100] Step S41: Get transaction TX' i , transaction TX′ j , encryption key EK′ i and the symmetric key K′ j , using the private key SK′ receiver For the encrypted address ECID′ i and encryption key EK′ i Decrypt and obtain the hash address CID′ i and the symmetric key K′ i , using the hash address CID′ i Download the encrypted modification sensitive component BIM′ from the IPFS network i And use the symmetric key K′ i Decrypt and extract the modified sensitive components BIM′ i .
[0101] Step S42: Using hash address CID′ j Download the encrypted non-modified sensitive component BIM′ from the IPFS network j And use the symmetric key K′ j Decrypt and extract the modified non-sensitive component BIM′ j .
[0102] Step S43: Combine the modified sensitive component BIM′ i and non-sensitive component BIM′ j , get the updated BIM model BIM B .
[0103] In one embodiment, a change detection smart contract is deployed on the blockchain network, and the method further includes:
[0104] Using change detection smart contract to check the initial BIM model A and updated BIM model BIM B Perform a comparison and record the comparison results, which include four categories: unchanged, modified components, newly added components, and deleted components.
[0105] Another obvious problem with existing BIM collaborative design is the lack of an appropriate version management mechanism. Historical changes cannot be recorded and compared, and it is difficult to trace the modifications to a specific version, which makes it difficult to identify the differences between versions. In this embodiment, the change detection smart contract is deployed to record the change details of each BIM version, thereby improving the change traceability capability of different BIM versions during the collaborative design process.
[0106] like Figure 4 The figure is a flowchart of the steps of executing and comparing the change detection smart contract in one embodiment, which mainly includes the following steps:
[0107] Step S51: BIM model A Convert each component to IFC format A , the model BIM B Convert each component to IFC format B , get the component IFC through hash operation A The hash value Hash(A) and the component IFC B The hash value Hash(B).
[0108] Understandably, Model BIM A IFC with multiple components A , each component IFC A Corresponding to a hash value Hash(A); model BIM B IFC with multiple components B , each component IFC B Corresponding to a hash value Hash(B).
[0109] Step S52: Compare the hash value Hash(A) and the hash value Hash(B). If the two are equal, output the comparison result as no change; if the two are not equal, it means that a change has occurred, and execute step S53.
[0110] Specifically, all hash values Hash(A) are compared with all hash values Hash(B). If the two are exactly the same, it means that the component information is exactly the same and the model has not changed.
[0111] Step S53: Extract component IFC A and component IFC B Components with equal hash values are considered as common components in IFC commen , extract component IFC A IFC commen Components with unequal hash values are used as distinguishing components ΔIFC A , extract component IFC B IFC commen Components with unequal hash values are used as distinguishing components ΔIFC B .
[0112] Specifically, all components of IFC A All components IFC form a set BConstruct a set, and the components with the same hash value in the two sets are used as common components IFC commen , and IFC A 、IFC B Compare and extract IFC commen With IFC A Different component ΔIFC A , extract IFC commen With IFC B Different component ΔIFC B .
[0113] Step S54: Compare the difference components ΔIFC A and the difference component ΔIFC B :
[0114] If the component appears in different components at the same time ΔIFC A and the difference component ΔIFC B But the state of the component changes, and the comparison result is the modified component;
[0115] If the component only appears in the different components ΔIFC A In , the comparison result is to delete the component;
[0116] If the component only appears in the different components ΔIFC B , the comparison result is the newly added component.
[0117] Through the above method, this embodiment can detect the modification details of the model between two versions and record them in the blockchain for traceability.
[0118] In one embodiment, the method further includes:
[0119] The change detection smart contract is used to determine whether there are abnormal modifications and feedback is sent to the design task publishing node through the blockchain network. The abnormal modifications include any of the following:
[0120] Components that should be deleted according to the design task were not deleted;
[0121] The components that should be added according to the design task were not added;
[0122] Components that should be modified according to the design task were not modified;
[0123] The designer node has an impact on components that you do not have permission to modify.
[0124] For example, the design task sent by the design task publishing node to one of the designer nodes involves multiple sensitive components and multiple non-sensitive components. iThe component should be deleted, and the change detection smart contract identifies the change type as a component modification, marks the design change as an abnormal modification, and sends the record to the design task release node through the blockchain network. For another example, the design task sent by the design task release node to one of the designer nodes involves multiple sensitive components and multiple non-sensitive components. For one of the sensitive components, BIM i Only viewing permission is available but no modification permission is available. The change detection smart contract identifies the designer's design process based on the change of the component hash value. i The design change is marked as an abnormal modification and the record is sent to the design task publishing node through the blockchain network.
[0125] Accordingly, the present invention also relates to a BIM collaborative design system based on blockchain, such as Figure 1 As shown, the system includes a blockchain network, a design task publishing node, a designer node and an IPFS network.
[0126] The task publisher node is used to publish tasks; publishing tasks include: A Decomposition into sensitive components BIM i and non-sensitive component BIM j , using the symmetric key K i Incorporate sensitive components into BIM i After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID i , using the symmetric key K j BIM j After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID j , using the public key PK receiver CID for hash address i , symmetric key K i Perform RSA asymmetric encryption respectively to generate encrypted address ECID i and encryption key EK i ; Design tasks, including encrypted address ECID i TX i and contains the hash address CID j TX j , encryption key EK i and the symmetric key K j Published on the blockchain network.
[0127] The designer node includes a private key SK receiver The designer node does not have the private key SK receiver The designer node has a private key SKreceiver The designer node has the authority to modify sensitive and non-sensitive components, but does not have the private key SK receiver Designer nodes only have the authority to modify non-sensitive components. Each designer node is used to complete different design tasks, and then determine whether the components modified by each designer belong to sensitive components BIM′ i or non-sensitive component BIM′ j And upload the modified component.
[0128] When a designer node modifies a sensitive component, it obtains the transaction TX i and encryption key EK i , using the private key SK receiver For encrypted addresses ECID respectively i and encryption key EK i Decrypt and obtain the hash address CID i and the symmetric key K i , using hash address CID i Download encrypted sensitive BIM components from the IPFS network i And use the symmetric key K i Decryption and extraction of sensitive BIM components i Make modifications.
[0129] When a designer node modifies a non-sensitive component, it obtains the transaction TX j and the symmetric key K j , using hash address CID j Download encrypted non-sensitive BIM components from the IPFS network j And use the encryption key EK j Decryption and extraction of non-sensitive components BIM j Make modifications.
[0130] If the modified component is a sensitive component BIM′ i , then use the symmetric key K′ i Incorporate sensitive components into BIM i After AES symmetric encryption, upload to the IPFS network and receive the returned unique corresponding hash address CID' i , using the public key PK′ receiver For hash address CID′ i and the symmetric key K′ i Perform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i , will contain the encrypted address ECID′ i Transaction TX′ i and encryption key EK′ iSent to the design task publishing node through the blockchain network.
[0131] If the modified component is a non-sensitive component BIM′ j , then use the symmetric key K′ j Incorporate non-sensitive components into BIM j Perform AES symmetric encryption and upload to the IPFS network and receive the returned unique corresponding hash address CID′ j , will contain the hash address CID′ j Transaction TX′ j and the symmetric key K′ j Sent to the design task publishing node through the blockchain network.
[0132] Among them, the modified sensitive component BIM′ i and non-sensitive component BIM′ j Composition of updated BIM model BIM B , public key PK receiver With private key SK receiver correspond.
[0133] In one embodiment, transaction TX i ={ID sender ,Sig sender ,timestamp,ECID i};
[0134] Transaction TX j ={ID sender ,Sig sender ,timestamp,CID j};
[0135] Transaction TX′ i ={ID′ sender ,Sig′ sender ,timestamp′,ECID′ i};
[0136] Transaction TX′ j ={ID′ sender ,Sig′ sender ,timestamp′,CID′ j};
[0137] Among them, ID sender 、Sig sender They represent the identity information and digital signature of the design task issuing node, timestamp represents the timestamp of the design task issuing node issuing the corresponding transaction, ID′ sender , Sig′ senderThey represent the identity information and digital signature of the designer node respectively, and timestamp′ represents the timestamp when the designer node publishes the corresponding transaction.
[0138] In one embodiment, a change detection smart contract is deployed on the blockchain network, and the change detection smart contract is used to detect the initial BIM model BIM A and updated BIM model BIM B Perform a comparison and record the comparison results, which include four categories: unchanged, modified components, newly added components, and deleted components.
[0139] In one embodiment, the change detection smart contract is used to perform the following process to obtain the comparison result:
[0140] BIM Model A Convert each component to IFC format A , the model BIM B Convert each component to IFC format B , get the component IFC through hash operation A The hash value Hash(A) and the component IFC B The hash value Hash(B);
[0141] Compare the hash values Hash(A) and Hash(B):
[0142] If the two are equal, the comparison result is unchanged;
[0143] If the two are not equal, extract the component IFC A and component IFC B Components with equal hash values are considered as common components in IFC commen , extract component IFC A IFC commen Components with unequal hash values are used as distinguishing components ΔIFC A , extract component IFC B IFC commen Components with unequal hash values are used as distinguishing components ΔIFC B ; Compare the difference components ΔIFC A and the difference component ΔIFC B : If the component appears in different components at the same time ΔIFC A and the difference component ΔIFC B If the status of the component changes, the comparison result is the modified component; if the component only appears in the difference component ΔIFC A In the comparison, the component is deleted; if the component only appears in the difference component ΔIFC B , the comparison result is the newly added component.
[0144] In one embodiment, the change detection smart contract is also used to determine whether there is an abnormal modification and to feed back to the design task issuing node through the blockchain network. The abnormal modification includes any of the following:
[0145] Components that should be deleted according to the design task were not deleted;
[0146] The components that should be added according to the design task were not added;
[0147] Components that should be modified according to the design task were not modified;
[0148] The designer node has an impact on components that you do not have permission to modify.
[0149] It can be understood that the above-mentioned blockchain-based BIM collaborative design system can implement the above-mentioned blockchain-based BIM collaborative design method. The functions of each part of the system correspond to the method. For details, please refer to the previous introduction and will not be repeated here.
[0150] The technical features of the above-described embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. It should be noted that "in one embodiment", "for example", "for example", etc. in this application are intended to illustrate this application, rather than to limit this application.
[0151] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A BIM collaborative design method based on blockchain, It is characterized in that include: Release Task: Design Task Release Node will be the initial BIM model BIM A Decomposition into sensitive components BIM i and non-sensitive component BIM j , using the symmetric key K i Incorporate sensitive components into BIM i After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID i , using the symmetric key K j BIM j After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID j , using the public key PK receiver CID for hash address i , symmetric key K i Perform RSA asymmetric encryption respectively to generate encrypted address ECID i and encryption key EK i ; Design tasks, including encrypted address ECID i TX i and contains the hash address CID j TX j , encryption key EK i and the symmetric key K j Send to the corresponding designer node through the blockchain network; Modify sensitive components: have private key SK receiver The designer node obtains the transaction TX i and encryption key EK i , using the private key SK receiver For encrypted addresses ECID respectively i and encryption key EK i Decrypt and obtain the hash address CID i and the symmetric key K i , using hash address CID i Download encrypted sensitive BIM components from the IPFS network i And use the symmetric key K i Decryption and extraction of sensitive BIM components i Make modifications; Modify non-sensitive components: Designer node obtains transaction TX j and the symmetric key K j , using hash address CID j Download encrypted non-sensitive BIM components from the IPFS network j And use the symmetric key K j Decryption and extraction of non-sensitive components BIM j Make modifications; Upload modified components: Each designer node determines that the components they have modified belong to sensitive components BIM′ i or non-sensitive component BIM′ j , if it is a sensitive component BIM′ i , then use the symmetric key K′ i Integrate sensitive components into BIM i After AES symmetric encryption, upload to the IPFS network and receive the returned unique corresponding hash address CID' i , using the public key PK′ receiver For hash address CID′ i and the symmetric key K′ i Perform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i , will contain the encrypted address ECID′ i Transaction TX′ i and encryption key EK′ i Published on the blockchain network, if it is a non-sensitive component BIM′ j , then use the symmetric key K′ j Incorporate non-sensitive components into BIM j Perform AES symmetric encryption and upload to the IPFS network and receive the returned unique corresponding hash address CID′ j , will contain the hash address CID′ j Transaction TX′ j and the symmetric key K′ j Send to the design task release node through the blockchain network; Among them, the modified sensitive component BIM′ i and non-sensitive component BIM′ j Composition of updated BIM model BIM B , public key PK receiver With private key SK receiver correspond; Transaction TX i ={ID sender ,Sig sender ,timestamp,ECID i }; Transaction TX j ={ID sender ,Sig sender ,timestamp,CID j }; Transaction TX′ i ={ID′ sender ,Sig′ sender ,timestamp′,ECID′ i }; Transaction TX′ j ={ID′ sender ,Sig′ sender ,timestamp′,CID′ j }; ID sender 、Sig sender They represent the identity information and digital signature of the design task issuing node, timestamp represents the timestamp of the design task issuing node issuing the corresponding transaction, ID′ sender , Sig′ sender They represent the identity information and digital signature of the designer node respectively, and timestamp′ represents the timestamp of the corresponding transaction released by the designer node; The method further comprises: Using change detection smart contract to check the initial BIM model A and updated BIM model BIM B Compare and record the comparison results, which include unchanged, modified components, newly added components and deleted components. The comparison process of the change detection smart contract includes: BIM Model A Convert each component to IFC format A , the model BIM B Convert each component to IFC format B , get the component IFC through hash operation A The hash value Hash(A) and the component IFC B The hash value Hash(B); Compare the hash values Hash(A) and Hash(B): If the two are equal, the comparison result is unchanged; If the two are not equal, extract the component IFC A and component IFC B Components with equal hash values are considered as common components in IFC commen , extract component IFC A IFC commen Components with unequal hash values are used as distinguishing components ΔIFC A , extract component IFC B IFC commen Components with unequal hash values are used as distinguishing components ΔIFC B ; Compare the difference components ΔIFC A and the difference component ΔIFC B : If the component appears in different components at the same time ΔIFC A and the difference component ΔIFC B If the status of the component changes, the comparison result is the modified component; if the component only appears in the difference component ΔIFC A In the comparison, the component is deleted; if the component only appears in the difference component ΔIFC B , the comparison result is the newly added component.
2. According to the blockchain-based BIM collaborative design method of claim 1, It is characterized in that The method further comprises: Get updated BIM model: Design task release node gets transaction TX′ i , transaction TX′ j , encryption key EK′ i and the symmetric key K′ j , using the private key SK′ receiver For the encrypted address ECID′ i and encryption key EK′ i Decrypt and obtain the hash address CID′ i and the symmetric key K′ i , using the hash address CID′ i Download the encrypted modification sensitive component BIM′ from the IPFS network i And use the symmetric key K′ i Decrypt and extract the modified sensitive components BIM′ i , using the hash address CID′ j Download the encrypted non-modified sensitive component BIM′ from the IPFS network j And use the symmetric key K′ j Decrypt and extract the modified non-sensitive component BIM′ j , combined with all sensitive components after modification BIM′ i and all non-sensitive components BIM′ j , get the updated BIM model BIM B ; Among them, the public key PK′ receiver With private key SK′ receiver correspond.
3. According to the blockchain-based BIM collaborative design method of claim 1, It is characterized in that The method further comprises: The change detection smart contract is used to determine whether there are abnormal modifications and feedback is sent to the design task publishing node through the blockchain network. The abnormal modifications include any of the following: Components that should be deleted according to the design task were not deleted; The components that should be added according to the design task were not added; Components that should be modified according to the design task were not modified; The designer node modification process has an impact on components that do not have modification permissions.
4. A BIM collaborative design system based on blockchain, It is characterized in that Including blockchain network, design task release node, designer node and IPFS network; among them, The design task release node is used to release tasks; the release task includes: A Decomposition into sensitive components BIM i and non-sensitive component BIM j , using the symmetric key K i Incorporate sensitive components into BIM i After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID i , using the symmetric key K j BIM j After AES symmetric encryption, upload it to the IPFS network and receive the returned unique corresponding hash address CID j , using the public key PK receiver CID for hash address i , symmetric key K i Perform RSA asymmetric encryption respectively to generate encrypted address ECID i and encryption key EK i ; Design tasks, including encrypted address ECID i TX i and contains the hash address CID j TX j , encryption key EK i and the symmetric key K j Send to the corresponding designer node through the blockchain network; The designer node includes a private key SK receiver The designer node does not have the private key SK receiver The designer node has a private key SK receiver The designer node has the authority to modify sensitive and non-sensitive components, but does not have the private key SK receiver Designer nodes only have the authority to modify non-sensitive components. Each designer node is used to modify different components according to its own modification authority, and then determine whether the components after modification belong to sensitive components BIM′ i or non-sensitive component BIM′ j And upload the modified component; When a designer node modifies a sensitive component, it obtains the transaction TX i and encryption key EK i , using the private key SK receiver For encrypted addresses ECID respectively i and encryption key EK i Decrypt and obtain the hash address CID i and the symmetric key K i , using hash address CID i Download encrypted sensitive BIM components from the IPFS network i And use the symmetric key K i Decryption and extraction of sensitive BIM components i Make modifications; when the designer node modifies non-sensitive components, obtain transaction TX j and the symmetric key K j , using hash address CID j Download encrypted non-sensitive BIM components from the IPFS network j And use the symmetric key K j Decryption and extraction of non-sensitive components BIM j Modify; if the modified component is a sensitive component BIM′ i , then use the symmetric key K′ i Integrate sensitive components into BIM i After AES symmetric encryption, upload to the IPFS network and receive the returned unique corresponding hash address CID' i , using the public key PK′ receiver For hash address CID′ i and the symmetric key K′ i Perform RSA asymmetric encryption respectively to generate encrypted address ECID′ i and encryption key EK′ i , will contain the encrypted address ECID′ i Transaction TX′ i and encryption key EK′ i Published to the blockchain network, if the modified component is a non-sensitive component BIM′ j , then use the symmetric key K′ j Incorporate non-sensitive components into BIM j Perform AES symmetric encryption and upload to the IPFS network and receive the returned unique corresponding hash address CID′ j , will contain the hash address CID′ j Transaction TX′ j and the symmetric key K′ j The modified sensitive component BIM′ is sent to the design task release node through the blockchain network. i and non-sensitive component BIM′ j Composition of updated BIM model BIM B , public key PK receiver With private key SK receiver correspond; Transaction TX i ={ID sender ,Sig sender ,timestamp,ECID i }; Transaction TX j ={ID sender ,Sig sender ,timestamp,CID j }; Transaction TX′ i ={ID′ sender ,Sig′ sender ,timestamp′,ECID′ i }; Transaction TX′ j ={ID′ sender ,Sig′ sender ,timestamp′,CID′ j }; ID sender 、Sig sender They represent the identity information and digital signature of the design task issuing node, timestamp represents the timestamp of the design task issuing node issuing the corresponding transaction, ID′ sender , Sig′ sender They represent the identity information and digital signature of the designer node respectively, and timestamp′ represents the timestamp of the corresponding transaction released by the designer node; A change detection smart contract is deployed on the blockchain network, and the change detection smart contract is used to detect the initial BIM model BIM A and updated BIM model BIM B Compare and record the comparison results, which include unchanged, modified components, newly added components and deleted components. The change detection smart contract is used to execute the following process to obtain the comparison results: BIM Model A Convert each component to IFC format A , the model BIM B Convert each component to IFC format B , get the component IFC through hash operation A The hash value Hash(A) and the component IFC B The hash value Hash(B); Compare the hash values Hash(A) and Hash(B): If the two are equal, the comparison result is unchanged; If the two are not equal, extract the component IFC A and component IFC B Components with equal hash values are considered as common components in IFC commen , extract component IFC A IFC commen Components with unequal hash values are used as distinguishing components ΔIFC A , extract component IFC B IFC commen Components with unequal hash values are used as distinguishing components ΔIFC B ; Compare the difference components ΔIFC A and the difference component ΔIFC B : If the component appears in different components at the same time ΔIFC A and the difference component ΔIFC B If the status of the component changes, the comparison result is the modified component; if the component only appears in the difference component ΔIFC A In the comparison, the component is deleted; if the component only appears in the difference component ΔIFC B , the comparison result is the newly added component.
