Urban construction archive management method and device, equipment, storage medium and product
By using blockchain technology to encrypt and store urban construction archives, the problem of poor security in traditional urban construction archive management has been solved, and the archives have been made immutable and traceable, thus improving the security of archive management.
Patent Information
- Application Number
- CN202510795714.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-11-11
AI Technical Summary
Traditional urban construction archive management methods suffer from poor security, with paper archives being easily forged and electronic archives being easily tampered with, making it difficult to cope with content tampering and trust crises.
By using blockchain technology, the file name and metadata are encrypted through smart contracts, generating an on-chain identifier, which is then stored on the blockchain platform to achieve the immutability and traceability of the files.
To build a security system covering the entire lifecycle of archives, eliminate the risk of forgery, enhance the anti-counterfeiting capabilities of electronic archives, and improve the security of archive management.
Smart Images

Figure CN120930157A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of blockchain technology, specifically to a method, device, equipment, storage medium, and product for managing urban construction archives. Background Technology
[0002] Currently, traditional record management typically relies on manual review and centralized technology, meaning that archivists check paper or electronic documents page by page, and manual operations lack end-to-end traceability. In this situation, it is difficult to cope with frequent content tampering and trust crises, leading to the problem that paper records are easily forged and electronic records are easily tampered with. Therefore, current traditional urban construction record management methods suffer from security problems such as difficulty in traceability and susceptibility to tampering, resulting in poor record management security. Summary of the Invention
[0003] In view of this, this application provides a method, device, equipment, storage medium and product for urban construction archives management, the main purpose of which is to solve the problem of poor security in the current traditional urban construction archives management methods.
[0004] Firstly, this application provides a method for managing urban construction archives, including:
[0005] Obtain the target urban construction archives, which include the archive name, archive metadata, and archive files;
[0006] The archive metadata and the archive file are preprocessed to obtain first archive information; the first archive information includes archive information generated when the target urban construction archive is stored.
[0007] Based on the blockchain platform, the smart contract processes the file name and the first file information on the blockchain to generate the on-chain identifier of the target urban construction file.
[0008] The on-chain identifier of the target urban construction file is stored.
[0009] Optionally, the first archive information includes the first metadata encryption result and the first hash result of the target urban construction archive; the preprocessing of the archive metadata and the archive file to obtain the first archive information includes: encrypting the archive metadata based on a symmetric encryption algorithm to obtain the first metadata encryption result; and processing the archive file based on a hash algorithm to obtain the first hash result.
[0010] Optionally, based on a smart contract of a blockchain platform, the file name and the first file information are processed on the blockchain to generate an on-chain identifier for the target urban construction file. This includes: processing the file on the blockchain based on a smart contract of a blockchain platform, storing the encryption result of the first metadata and the first hash result, and returning the on-chain identifier for the target urban construction file.
[0011] Optionally, after storing the on-chain identifier of the target urban construction file, the method further includes: in response to a user-input verification command and the name of the target urban construction file, verifying the target scheme based on the on-chain identifier of the target urban construction file.
[0012] Optionally, in response to the user-input verification command and the name of the target urban construction file, the target scheme is verified based on the on-chain identifier of the target urban construction file, including: calculating the second file information of the target urban construction file, the second file information including the second metadata encryption result and the second hash result generated by the target urban construction file during verification; retrieving the first file information through a smart contract based on the on-chain identifier; comparing and verifying the first metadata encryption result and the second metadata encryption result, as well as the first hash result and the second hash result, to obtain a verification result.
[0013] Optionally, the archive file may also include signature information, which is used to trace the signatory.
[0014] Secondly, this application provides a city construction archive management device, comprising:
[0015] The acquisition unit is configured to acquire target urban construction archives, which include archive name, archive metadata, and archive file.
[0016] The processing unit is configured to preprocess the archive metadata and the archive file to obtain first archive information; the first archive information includes archive information generated when the target urban construction archive is stored.
[0017] The generation unit is configured as a smart contract based on a blockchain platform to perform on-chain processing on the file name and the first file information to generate an on-chain identifier for the target urban construction file.
[0018] The storage unit is configured to store the on-chain identifier of the target urban construction file.
[0019] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the urban construction archive management method described in the first aspect.
[0020] Fourthly, this application provides an electronic device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the computer program to implement the urban construction archive management method described in the first aspect.
[0021] Fifthly, this application provides a computer program product having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the urban construction archive management method described in the first aspect.
[0022] By employing the aforementioned technical solution, this application provides a method, apparatus, equipment, storage medium, and product for managing urban construction archives. First, the target urban construction archive is acquired, including the archive name, archive metadata, and archive files. Then, the archive metadata and archive files are preprocessed to obtain first archive information, which includes archive information generated during the storage of the target urban construction archive. Based on a smart contract on a blockchain platform, the archive name and first archive information are processed on the blockchain to generate an on-chain identifier for the target urban construction archive, which is then stored. Compared to related technologies, utilizing the immutable and traceable characteristics of blockchain technology enables the construction of a security system covering the entire lifecycle of archives, thereby eliminating the risk of forgery and enhancing the anti-counterfeiting capabilities of electronic archives, thus improving the security of archive management.
[0023] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0024] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0025] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 A flowchart illustrating a method for managing urban construction archives provided in an embodiment of this application is shown.
[0027] Figure 2 A flowchart illustrating another urban construction archive management method provided in an embodiment of this application is shown;
[0028] Figure 3 This paper shows a schematic diagram of the structure of an urban construction archive management device provided in an embodiment of this application. Detailed Implementation
[0029] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0030] The urban construction archive management method proposed in this embodiment is applied to an urban construction archive management device or electronic device. The device or electronic device can be installed or integrated into the archive management system and can execute any of the urban construction archive management methods mentioned below during operation.
[0031] To address the shortcomings of traditional record management, which relies on manual review and centralized technology, paper records are easily forged, and electronic records are easily tampered with, making it difficult to cope with the frequent issues of content tampering and trust crises. This embodiment proposes a method for urban construction record management, such as... Figure 1 As shown, the method includes:
[0032] S101, Obtain the target city construction file;
[0033] The target urban construction archives include the archive name, archive metadata, and archive files. Here, target urban construction archives refer to archives that need to be managed; these can be electronic archives already stored on the electronic archive platform, or paper or electronic archives not yet stored on the platform. The urban construction archive management system also allows for online compilation of urban construction archives to obtain target urban construction archives. Furthermore, archive metadata is structured data describing the attributes of the target urban construction archives, including basic information, creation / modification time, management information, storage location (off-chain storage location), business information, file format, file size, etc.; archive files refer to the electronic components of the target urban construction archives, containing the physical content of the target urban construction archive files, including, for example, drawings, construction documents, acceptance records, permits, audio and video materials, etc. In other words, archive metadata refers to information describing the archive's own attributes. Archive files refer to the actual content data of the archives.
[0034] S102, preprocess the archive metadata and archive files to obtain the first archive information;
[0035] The first archive information includes the archive information generated when the target urban construction archive is stored. Correspondingly, this embodiment may also include the second archive information generated when the target urban construction archive is verified. The verification is then performed by comparing the first archive information with the second archive information, thereby further improving the verification security.
[0036] S103, a smart contract based on a blockchain platform, processes the file name and first file information on the blockchain to generate an on-chain identifier for the target urban construction file;
[0037] A blockchain platform is a distributed system built on blockchain technology, consisting of a decentralized network of numerous nodes. Each node maintains a complete copy of the blockchain data and interacts and verifies data through the network, collectively maintaining the normal operation of the blockchain. A smart contract is an automatically executable computer program stored on the blockchain platform. When preset conditions are met, the smart contract automatically executes the corresponding operation. On-chain processing refers to the process of packaging data such as the file name and initial file information into a transaction and adding it to the blockchain according to the rules and format of the blockchain platform. The on-chain identifier is a unique identifier generated by the blockchain platform based on relevant information in the block after the file name and initial file information are successfully added to the blockchain. The smart contract on the blockchain platform performs on-chain processing, stores the encryption result and hash result of the initial metadata, and returns the on-chain identifier of the target urban construction file.
[0038] S104, store the on-chain identifier of the target urban construction file.
[0039] The on-chain identifier for storing target urban construction archives allows for quick retrieval of the original data on the blockchain when information such as the archive's transfer process and modification records are needed. Through this identifier, complete information about the archive at the time it was uploaded to the blockchain can be obtained and compared with the currently held archive to determine if it has been tampered with. The on-chain identifier for storing target urban construction archives links these data together, forming a complete data chain.
[0040] Traditional archival management relies heavily on manual review processes and centralized storage technologies. Paper archives are easily forged during circulation due to a lack of effective anti-counterfeiting technologies, posing a significant threat to their authenticity. While electronic archives are easier to store and transmit, they also face the risk of tampering and struggle to effectively resist frequent content alterations, leading to serious trust crises and impacting the normal use of the archives. In this embodiment, the target urban construction archive is first acquired, including the archive name, metadata, and file. The metadata and file are then preprocessed to obtain first archive information, which includes information generated during the storage of the target urban construction archive. Based on a blockchain platform's smart contract, the archive name and first archive information are uploaded to the blockchain to generate an on-chain identifier for the target urban construction archive, which is then stored. Compared to related technologies, leveraging the immutable and traceable characteristics of blockchain technology enables the construction of a security system covering the entire lifecycle of archives, thereby eliminating forgery risks and enhancing the anti-counterfeiting capabilities of electronic archives, thus improving the security of archival management.
[0041] Optionally, the first archive information includes the first metadata encryption result and the first hash result of the target urban construction archive; preprocessing the archive metadata and archive file to obtain the first archive information includes: encrypting the archive metadata based on a symmetric encryption algorithm to obtain the first metadata encryption result; and processing the archive file based on a hash algorithm to obtain the first hash result.
[0042] In this embodiment, the first archival information includes the first metadata encryption result and the first hash result of the target urban construction archive. The archive metadata is encrypted using a symmetric encryption algorithm to obtain the first metadata encryption result; the archive file is processed using a hash algorithm to obtain the first hash result. The archive metadata is encrypted using a symmetric encryption algorithm to protect its confidentiality. Without decryption using the key, the original metadata content cannot be read. The archive file is calculated using a hash algorithm to ensure its integrity. A hash algorithm is a mathematical function that converts input data of arbitrary length (such as files, messages, or strings) into a fixed-length unique string. This output result is called a hash value, digest, or fingerprint. A hash algorithm (such as SHA-256) converts a file of any size into a fixed-length, highly unique "digital fingerprint" (hash value). Any slight change in the file content will result in a significant change in the hash value, thus obtaining a hash value representing a unique identifier of the archive file content, called the first hash result.
[0043] Optionally, based on a smart contract on a blockchain platform, the file name and first file information are processed on the blockchain to generate an on-chain identifier for the target urban construction file. This includes: processing the file on the blockchain using a smart contract on a blockchain platform, storing the encryption result of the first metadata and the first hash result, and returning the on-chain identifier for the target urban construction file.
[0044] In this embodiment, "on-chain" refers to the process of permanently recording data into the blockchain network through blockchain transactions, which has the characteristics of irreversibility and traceability. Irreversibility means that once data is on-chain, it cannot be modified or deleted (only new records can be added); and the data is jointly verified and stored by all nodes in the network, without relying on a single institution; traceability means that the complete historical record can be queried through a blockchain explorer. A smart contract is an automated program deployed on the blockchain that executes operations according to preset rules, responsible for receiving input data and writing it into the blockchain ledger. The smart contract packages the file name, the first metadata encryption result, and the first hash result into the distributed ledger of the blockchain, generating an on-chain identifier for the target urban construction file, which is the unique transaction certificate returned by the blockchain. This identifier is used to obtain the result of this storage in subsequent verification processes. It should be noted that this embodiment is not simply saving the file through on-chain processing. The objects of on-chain processing are the first metadata encryption result and the first hash result. Here, the metadata encryption result reflects the file attribute information; the hash result is only the hash value of the file's essential content and not the file entity, ensuring file integrity. Therefore, putting only the key summary information on the blockchain also solves the problem of limited blockchain storage space.
[0045] Optionally, after storing the on-chain identifier of the target urban construction file, the method further includes: in response to the user-input verification command and the name of the target urban construction file, verifying the target scheme based on the on-chain identifier of the target urban construction file.
[0046] In this embodiment, the user actively initiates a verification request (e.g., by clicking "Verify File" in the system) and provides the name of the target urban construction file. The on-chain identifier of the target urban construction file is used as the verification basis to validate the target scheme. For example, the process is as follows:
[0047] Step 1: On-chain data retrieval
[0048] The original storage information of the file is read from the blockchain using the on-chain identifier: the first metadata encryption result (encrypted metadata) and the first hash result (the initial hash fingerprint of the file).
[0049] Step 2: Local data recalculation
[0050] Based on the target urban construction file name specified by the user, locate the corresponding current file in the local system. Recalculate its hash value using the same hash algorithm (such as SHA-256) to obtain the current hash result.
[0051] Step 3: Comparison and Verification
[0052] File integrity verification: Compare the current hash result with the first hash result stored on the chain.
[0053] (1) If they match, the file has not been tampered with.
[0054] (2) If inconsistent, the file content has been changed (damaged or maliciously modified).
[0055] Metadata authenticity verification: Decrypt the encrypted result of the first metadata in the chain using the key to obtain the original metadata. Compare it with the metadata in the current system to confirm whether the attributes are consistent (such as author, creation time).
[0056] Optionally, in response to the user-input verification command and the name of the target urban construction file, the target scheme is verified based on the on-chain identifier of the target urban construction file, including: calculating the second file information of the target urban construction file, the second file information including the second metadata encryption result and the second hash result generated by the target urban construction file during verification; retrieving the first file information through a smart contract based on the on-chain identifier; comparing and verifying the first metadata encryption result and the second metadata encryption result, as well as the first hash result and the second hash result, to obtain the verification result.
[0057] In this embodiment, the second archive information of the target urban construction archive is calculated. This second archive information includes a second metadata encryption result (after receiving the target urban construction archive input by the user, the archive metadata is encrypted using a symmetric encryption algorithm to obtain the second metadata encryption result) and a second hash result (based on a hash algorithm, the target urban construction archive input by the user is processed to obtain the second hash result). A smart contract automatically retrieves the first archive information (i.e., the first metadata encryption result and the first hash result) stored on the blockchain when the archive was initially uploaded. Subsequently, the real-time calculated second metadata encryption result is compared with the first metadata encryption result on the blockchain, and simultaneously, the second hash result is compared with the first hash result. If they are completely identical, the verification passes, proving that the archive has not been tampered with; if they are inconsistent, it indicates that the archive may have been modified, and the verification fails. By verifying the authenticity of the original electronic archive and its metadata, the problems of easy forgery of traditional paper archives and easy tampering of electronic archives are solved.
[0058] Optionally, the archival documents may also include signature information, which is used to trace the signatory.
[0059] In this embodiment, signature information is an important component of the overall content of the archival document. Signature information includes key identifying information about the signatory, such as their name, position, affiliated unit, or organization name and official seal number. Using signature information to trace the signatory allows for the identification of the responsible party and the tracking of their actions. Tracing the signatory through signature information ensures the authenticity and reliability of the archives, identifies the responsible party, and protects the rights of the legitimate signatory.
[0060] Furthermore, the urban construction archive management method applied in this embodiment is described. This embodiment illustrates the interaction process between the electronic urban construction archive platform and the blockchain platform. It should be noted that the blockchain platform may not be an actual operating platform; specifically, it can be a virtual system with a communication interface with the electronic urban construction archive platform, or it can be a part of the electronic urban construction archive platform. Figure 2 The diagram shows a flowchart of another urban construction archive management method proposed in this embodiment.
[0061] Electronic record platform:
[0062] (1) Compilation Module: Compile urban construction archives online, generating archive metadata and archive documents awaiting signature.
[0063] Note: Users can create and edit urban construction-related documents online through the compilation module of the electronic archives platform. During this process, the system will generate metadata for the archives (such as basic information about the archives, creation time, etc.) and archive files awaiting signature.
[0064] (2) Signature storage module: online signing, storage of metadata and electronic originals with signature information.
[0065] Note: After the archival documents are compiled, users can sign them online using the signature module. Once signed, the archival documents will include the signature information, ensuring the authenticity and completeness of the documents.
[0066] (3) Encryption and on-chain module: The metadata is encrypted using a symmetric encryption algorithm, and the hash digest of the electronic original is calculated using a hash algorithm.
[0067] The metadata is encrypted using a symmetric encryption algorithm to obtain the first metadata encryption result, and the electronic components of the archive file are calculated using a hash algorithm to obtain the first hash value.
[0068] Note: To protect the security of the archive's metadata, the encryption module uses a symmetric encryption algorithm to encrypt the metadata, generating the first encrypted metadata result. Simultaneously, for the electronic components of the archive file, a hash algorithm is used to calculate their first hash value for subsequent verification.
[0069] (4) Storage module: Stores the on-chain identifier
[0070] Note: After the archival information is uploaded to the blockchain, the blockchain platform will return an upload identifier. The storage module of the electronic archival platform is responsible for storing this upload identifier for subsequent querying and verification.
[0071] (5) Verification Module: Upon receiving the urban construction archive verification module, the module obtains the on-chain identifier based on the electronic original ID, encrypts the metadata using a symmetric encryption algorithm, and calculates the hash digest of the electronic original using a hash algorithm.
[0072] Note: When verifying a file, the verification module retrieves the corresponding on-chain identifier from the storage module based on the file's ID. Then, it recalculates the file's second metadata encryption information and second hash value for comparison with the information stored on the blockchain platform.
[0073] (6) Verification result output module: Outputs the verification result and indicates whether the file or metadata has been tampered with.
[0074] Note: After the verification module completes the verification, the result output module will output the verification result (such as verification passed or failed) for the user to view.
[0075] Blockchain platform:
[0076] (1) Evidence Storage Smart Contract Module: Uploads the ID, hash value, and encrypted metadata of the electronic original to the blockchain and returns the blockchain upload identifier.
[0077] Note: The smart contract storage module of the blockchain platform receives the urban construction document ID, first metadata encryption information, and first hash value sent by the electronic archives platform, and stores this information on the blockchain. After the on-chain storage is completed, an on-chain identifier is returned to the electronic archives platform.
[0078] (2) Smart Contract Verification Module: The on-chain identifier, hash value, and encrypted metadata of the electronic component are transmitted to the smart contract. The smart contract retrieves the on-chain data through the on-chain identifier, compares it with the transmitted data, verifies whether the transmitted data has been tampered with, and returns the verification result.
[0079] Explanation: Upon receiving a verification request from the electronic archives platform, the smart contract verification module retrieves the first metadata encryption information and the first hash value stored on the blockchain based on the on-chain identifier. Then, it compares this information with the second metadata encryption information and the second hash value sent by the electronic archives platform to determine whether the archive has been tampered with.
[0080] The overall process is as follows:
[0081] 1. Users compile urban construction documents on the electronic archives platform, generating archive metadata and documents awaiting signature.
[0082] 2. Users sign online, creating an archive file with the signature information.
[0083] 3. The electronic archive platform encrypts metadata and calculates hash values for archive files.
[0084] 4. Send the urban construction document ID, encrypted metadata, and hash value to the blockchain platform for on-chain storage and obtain the on-chain identifier.
[0085] 5. Electronic archive platform storage on-chain identifier.
[0086] 6. When it is necessary to verify the archive, the electronic archive platform obtains the on-chain identifier based on the archive ID and recalculates the metadata encryption information and hash value.
[0087] 7. The blockchain platform retrieves the stored information based on the on-chain identifier and compares and verifies it with the information sent by the electronic archive platform.
[0088] 8. The electronic archive platform outputs the verification results.
[0089] Through the above process, the electronic archives platform and the blockchain platform work together to ensure the authenticity, integrity and immutability of urban construction archives.
[0090] Furthermore, as Figure 1 and Figure 2 The specific implementation of the method shown in this embodiment provides an urban construction archive management device, such as... Figure 3 As shown, the device includes: an acquisition unit 301, a processing unit 302, a generation unit 303, and a storage unit 304.
[0091] The acquisition unit 301 is configured to acquire target urban construction archives, wherein the target urban construction archives include archive name, archive metadata and archive file;
[0092] Processing unit 302 is configured to preprocess the archive metadata and the archive file to obtain first archive information; the first archive information includes archive information generated when the target urban construction archive is stored;
[0093] The generation unit 303 is configured as a smart contract based on a blockchain platform to perform on-chain processing on the file name and the first file information to generate the on-chain identifier of the target urban construction file.
[0094] Storage unit 304 is configured to store the on-chain identifier of the target urban construction file.
[0095] In a specific application scenario, the processing unit 302 is specifically configured to encrypt the archive metadata using a symmetric encryption algorithm to obtain the first metadata encryption result; and to process the archive file using a hash algorithm to obtain the first hash result.
[0096] In specific application scenarios, the generation unit 303 is further configured to perform on-chain processing based on a smart contract on a blockchain platform, store the first metadata encryption result and the first hash result, and return the on-chain identifier of the target urban construction file.
[0097] In specific application scenarios, the generation unit 303 is further configured to respond to the user-input verification command and the target urban construction file name, and verify the target scheme based on the on-chain identifier of the target urban construction file.
[0098] In a specific application scenario, the generation unit 303 is further configured to calculate the second archive information of the target urban construction archive, the second archive information including the second metadata encryption result and the second hash result generated by the target urban construction archive during verification; based on the on-chain identifier, retrieve the first archive information through a smart contract; compare and verify the first metadata encryption result and the second metadata encryption result, as well as the first hash result and the second hash result, to obtain a verification result.
[0099] In specific application scenarios, storage unit 304 is further configured to contain signature information, which is used to trace the signer.
[0100] It should be noted that other corresponding descriptions of the functional units involved in the urban construction archive management device provided in this embodiment can be found in the following references. Figure 1 and Figure 2 The corresponding descriptions in [the document] will not be repeated here.
[0101] Based on the above, Figure 1 and Figure 2 Accordingly, this embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method. Figure 1 and Figure 2 The method shown.
[0102] Based on the above, Figure 1 and Figure 2 Accordingly, this embodiment also provides a computer program product having a computer program stored thereon, which, when executed by a processor, implements the above-described method. Figure 1 and Figure 2 The method shown.
[0103] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of this application.
[0104] Based on the above, Figure 1 and Figure 2 The method shown, and Figure 3 To achieve the above objectives, this application also provides an electronic device, which can be configured on a computer side, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-described objectives. Figure 1 and Figure 2 The method shown.
[0105] Based on the above, Figure 1 and Figure 2 The method shown, and Figure 3 To achieve the above objectives, the present application also provides a chip in the illustrated virtual device embodiment, including one or more interface circuits and one or more processors; the interface circuits are used to receive signals from the memory of an electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the above-described... Figure 1 and Figure 2 The method shown.
[0106] Optionally, the aforementioned physical devices may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.
[0107] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.
[0108] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.
[0109] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented using software plus necessary general-purpose hardware platforms, or it can be implemented through hardware. By applying the solution of this embodiment, compared with related technologies, by utilizing the immutable and traceable characteristics of blockchain technology, a security system covering the entire lifecycle of archives can be constructed, thereby eliminating the risk of forgery and improving the anti-counterfeiting capabilities of electronic archives, thus improving the security of archive management.
[0110] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" or any other variations thereof is 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 a process, method, article, or apparatus. Without further limitations, 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 said element.
[0111] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for managing urban construction archives, characterized in that, include: Obtain the target urban construction archives, which include the archive name, archive metadata, and archive files; The archive metadata and the archive file are preprocessed to obtain the first archive information; The first set of archive information includes the archive information generated when the target urban construction archive is stored; Based on the blockchain platform, the smart contract processes the file name and the first file information on the blockchain to generate the on-chain identifier of the target urban construction file. The on-chain identifier of the target urban construction file is stored.
2. The method according to claim 1, characterized in that, The first archive information includes the first metadata encryption result and the first hash result of the target urban construction archive; The preprocessing of the archive metadata and the archive file to obtain the first archive information includes: The archive metadata is encrypted using a symmetric encryption algorithm to obtain the first metadata encryption result; The archive file is processed using a hash algorithm to obtain the first hash result.
3. The method according to claim 2, characterized in that, Based on a blockchain platform, a smart contract processes the file name and the first file information on the blockchain to generate an on-chain identifier for the target urban construction file, including: The smart contract based on the blockchain platform performs on-chain processing, stores the encryption result of the first metadata and the first hash result, and returns the on-chain identifier of the target urban construction file.
4. The method according to claim 3, characterized in that, After storing the on-chain identifier of the target urban construction file, the method further includes: In response to the user-input verification command and the name of the target urban construction file, the target scheme is verified based on the on-chain identifier of the target urban construction file.
5. The method according to claim 4, characterized in that, The process of responding to a user-inputted verification command and the name of the target urban construction file, and verifying the target scheme based on the on-chain identifier of the target urban construction file, includes: Calculate the second archive information of the target urban construction archive, the second archive information including the second metadata encryption result and the second hash result generated by the target urban construction archive during verification; Based on the on-chain identifier, the first file information is retrieved via a smart contract; The encryption results of the first and second metadata, as well as the hash results of the first and second hash results, are compared and verified to obtain a verification result.
6. The method according to claim 1, characterized in that, The archive documents also include signature information, which is used to trace the signatory.
7. A device for managing urban construction archives, characterized in that, include: The acquisition unit is configured to acquire target urban construction archives, which include archive name, archive metadata, and archive file. The processing unit is configured to preprocess the archive metadata and the archive file to obtain first archive information; The first set of archive information includes the archive information generated when the target urban construction archive is stored; The generation unit is configured as a smart contract based on a blockchain platform to perform on-chain processing on the file name and the first file information to generate an on-chain identifier for the target urban construction file. The storage unit is configured to store the on-chain identifier of the target urban construction file.
8. An electronic device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.
10. A computer program product having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.