People's Livelihood Archives System Based on Blockchain
Through the blockchain-based people's livelihood archive system, the credible evidence storage and privacy protection of electronic archives are achieved, the inconvenience of paper archive management is solved, storage resources are saved, and the efficiency of access is improved.
Patent Information
- Application Number
- CN202210147233.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-02-17
AI Technical Summary
The existing people's livelihood archive management system lacks reliable electronic management methods, which makes it inconvenient to preserve and access paper archives, and makes it difficult to protect the privacy of archives.
A blockchain-based people's livelihood archive system is adopted to realize the trusted evidence and permission management of electronic archives through archive reception, evidence and storage modules, use hash values and fuzzy schemes to protect sensitive information, and combine common templates to compress storage space.
It realizes the credible storage of electronic archives, reduces the need to preserve paper archives, saves storage costs, protects the privacy of archives, and improves the convenience of access.
Smart Images

Figure CN114611121B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a people's livelihood archive system based on blockchain. Background Art
[0002] Livelihood archives encompass various specialized archives related to livelihoods. They are authentic records generated during the work of safeguarding and improving livelihoods, touching upon the vital interests of the general public and serving as the original evidence for safeguarding their various rights and interests. They are a crucial foundation for safeguarding and improving livelihoods. Proper management of livelihood archives helps safeguard the rights and interests of the people and maintains social stability. With the advancement of computer and information technology, a large number of paper archives have been fully digitized, eliminating the need for paper transportation and storage and saving significant administrative costs. However, livelihood archives involve the vital interests of the people and require credible documentation, so they are still primarily maintained in paper form. Using paper archives not only requires dedicated storage facilities but is also inconvenient to access and retrieve. Therefore, it is necessary to research electronic management systems for livelihood archives. Summary of the Invention
[0003] This invention aims to address the current lack of an electronic archive management system capable of providing trusted credentials. This paper proposes a blockchain-based civil archive system that uses blockchain to provide trusted proof of electronically stored archives, simplifying the management of civil archives.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: a people's livelihood archive system based on blockchain, including an archive receiving module, an archive scheduling module, an archive evidence module and an archive storage module, the archive receiving module receives archives and archive description information, the archives are electronic archives or paper archive scans, the archive description information records the archive type, retrieval key and permission information, the archive description information of the paper archive scan also includes fields and field areas, the permission information records fields and corresponding allowed permission levels, the archive scheduling module establishes an archive index for the archive, the archive index records the archive storage location, archive type, retrieval key and permission information, the archive evidence module extracts the hash value of the archive and records it as the archive hash The hash value of each field and field value of the electronic archive is extracted as the field hash value, the hash value of each field area of the paper archive scan is extracted as the field hash value, the archive hash value and all field hash values are extracted together as the evidence hash value, and the evidence hash value is uploaded to the blockchain for storage. The archive storage module associates and stores the archive and field hash values, the archive hash value and the evidence hash value. The institution or the public sends a request to retrieve the archive to the archive scheduling module. The archive scheduling module hides the electronic archive field values that do not meet the authority level according to the authority level given to the institution and the public in advance, covers the field area of the paper archive scan that does not meet the authority level, and provides them to the requester together with the field hash value, the archive hash value and the evidence hash value.
[0005] Preferably, the archive scheduling module generates several fuzzy schemes for each numeric field and sets an authority level for each fuzzy scheme. When the requester who sends the archive retrieval request does not have sufficient authority to view the original value of the numeric field, the archive scheduling module displays the value of the corresponding fuzzy scheme according to the authority level. The fuzzy scheme divides the value range of the numeric field into several intervals and replaces the original value with the interval range. The lower the authority level of the fuzzy scheme, the fewer intervals are divided.
[0006] Preferably, when the archive notarization module extracts the field hash value of the electronic archive, it associates a randomly generated string with the field value, extracts the hash value of the field value and the string together as the field hash value, and stores the name of the string-associated field. When the archive is retrieved, the archive scheduling module provides the field value and string that meet the requester's authority level to the requester.
[0007] Preferably, the archive notarization module associates a randomly generated integer N with the electronic archive, and when extracting the field hash value of the electronic archive, generates a substitute value for the field value, the modulo of the substitute value with the integer N is equal to the original value of the field, and extracts the hash value of the substitute value as the field hash value. When the archive is retrieved, the archive scheduling module provides the integer N and the field substitute to the requester.
[0008] Preferably, the file retrieval request includes the retrieval purpose, and the file scheduling module adds a watermark with the retrieval purpose at the electronic seal position of the electronic file, and adds a watermark with the retrieval purpose at the signature or seal position of the paper file scan, and then provides it to the requester.
[0009] Preferably, the archive storage module periodically checks the number of archives under each archive type. When the number of archives of the same type reaches a preset threshold, the percentage of duplicate content in the archive is determined. If the percentage of duplicate content exceeds the preset threshold, a common template is established, and the archive is represented as a superposition of the common template and unique content. The unique content of the archive is associated with the common template identifier and the archive identifier for storage. When retrieving the archive, the unique content of the archive is read, and the common template is read according to the common template identifier. The unique content and the common template are superimposed to restore the archive. After verifying the archive's stored hash value, it is provided to the archive scheduling module.
[0010] Preferably, when establishing a common template for electronic archives, the archive storage module performs the following steps: extracting the value of each field of a preset number of electronic archives; obtaining the distribution probability of the value of each field; using the value with the highest probability as the default value of the field, and the default values of all fields constitute the common template; when receiving a new electronic archive of the same type, only retaining the values of the fields whose values are not equal to the default values; obtaining the values of the retained fields as unique content.
[0011] Preferably, when establishing a common template for paper archive scans, the archive storage module performs the following steps: reading a preset number of scans to form a sample set; counting the mean value of each pixel in the sample set scans; obtaining a common pixel set, at the pixels in the common pixel set, the difference between the pixel value of the scans in the sample set and the pixel mean is lower than a preset threshold; establishing a blank scan, setting the pixels recorded in the common pixel set to the pixel mean to form a common template; dividing the scan area into several rectangular areas and numbering each rectangular area; calculating the difference between the pixel value at the same position of the scan and the common template in each rectangular area, and if there is a non-zero difference in the rectangular area, storing the difference in association with the rectangular area number; the difference values of all rectangular areas and the associated rectangular area numbers constitute unique content.
[0012] Preferably, when the file receiving module receives a scan of a paper file of the same type, it fine-tunes the pixel value of the scan within a preset range so that the scan has the most pixels that are identical to the common template. After confirmation by the scanner, the file receiving module receives the adjusted scan.
[0013] The substantial effects of the present invention are: by using blockchain to store archives and provide proof of authenticity, archives do not need to be stored in paper form, only electronic versions are required, saving archive storage costs; by using field hash values to store evidence, after some fields that need to be kept confidential are blocked, the requester can still verify the authenticity of the remaining fields, which is conducive to protecting the privacy of archive records; by compressing the space occupied by archive storage, the equipment expenses required for storing archives are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a schematic diagram of the people's livelihood archive system in Example 1.
[0015] Figure 2 This is a schematic diagram of the field area of Example 1.
[0016] Figure 3 This is a schematic diagram of establishing a common template for electronic files in Example 2.
[0017] Figure 4 Schematic diagram of establishing a common template for file scans in Example 2.
[0018] Among them: 10. File receiving module, 20. Blockchain, 30. File evidence module, 40. File storage module, 50. File scheduling module, 61. Field area, 62. Rectangular area. DETAILED DESCRIPTION
[0019] The specific implementation of the present invention will be further described below with reference to specific embodiments and in conjunction with the accompanying drawings.
[0020] Example 1:
[0021] For the people's livelihood archive system based on blockchain 20, please refer to the attached Figure 1 , including a file receiving module 10, a file scheduling module 50, a file evidence module 30 and a file storage module 40. The file receiving module 10 receives files and file description information. The files are electronic files or paper file scans. The file description information records the file type, search key value and permission information. The file description information of the paper file scan also includes fields and field areas 61. Please refer to the attached Figure 2The signature area and date filling area are field area 61, and the corresponding fields are signature and date respectively. The permission information records the field and the corresponding allowed permission level. The file scheduling module 50 establishes an archive index for the archive. The archive index records the archive storage location, archive type, retrieval key value and permission information. The archive evidence module 30 extracts the hash value of the archive and records it as the archive hash value. The hash value of each field and field value of the electronic archive is extracted as the field hash value. The hash value of each field area 61 of the paper archive scan is extracted as the field hash value. The archive hash value and all field hash values are extracted together as the evidence hash value. The evidence hash value is uploaded to the blockchain 20 for storage. The archive storage module 40 associates and stores the archive and field hash values, the archive hash value and the evidence hash value. The institution or the public sends a request to retrieve the archive to the archive scheduling module 50. The archive scheduling module 50 hides the electronic archive field values that do not meet the permission level according to the permission level previously assigned to the institution and the public, and covers the field area 61 of the paper archive scan that does not meet the permission level, and provides it to the requester together with the field hash value, the archive hash value and the evidence hash value.
[0022] The archive scheduling module 50 generates several fuzzy schemes for each numeric field and sets an authority level for each fuzzy scheme. When the authority of the requester who sends the archive retrieval request is insufficient to view the original value of the numeric field, the archive scheduling module 50 displays the value of the corresponding fuzzy scheme according to the authority level. The fuzzy scheme divides the value range of the numeric field into several intervals and replaces the original value with the interval range. The lower the authority level, the fewer intervals are divided. As shown in Table 1, the age obtained by a high authority level displays the real value, and the requester with a medium authority level can obtain a more detailed interval representation, that is, the fuzzy scheme has a relatively low degree of fuzziness for age, while the interval division obtained by the requester with a low authority level is relatively broad, that is, the degree of fuzziness is higher. In this way, a more flexible balance can be achieved between the availability of archive record content and the protection of privacy.
[0023] Table 1 Fuzzy scheme for age
[0024] Permission Level age high True value middle Interval: (0,10], (10,18], (18,30], (30,50], (50,80], (80,150] Low Range: (0, 18], (18,50], (50,150]
[0025] Although it is usually not feasible to infer the original value from the hash value, some fields have a limited range of values. By exhaustively enumerating the values within the range, calculating a hash value for each value, and comparing it with the hash value returned by the file scheduling module 50, the original value can be obtained. This embodiment provides two technical solutions to avoid inferring the original value through comparison.
[0026] The first solution obfuscates the hash value by adding a random string, making it difficult to reverse engineer the original value. Specifically, when the archive evidence module 30 extracts the hash value of a field in the electronic archive, it associates the randomly generated string with the field value. The hash value of both the field value and the string is then extracted as the field hash value. The string is then associated with the field name and stored. When the archive is retrieved, the archive scheduling module 50 provides the requester with the field value and string that match the requester's permission level.
[0027] The second solution is to use a substitute value, which specifically includes: the archive notarization module 30 associates a randomly generated integer N with the electronic archive, and when extracting the hash value of the field of the electronic archive, generates a substitute value for the value of the field, the remainder of the substitute value with the integer N is equal to the original value of the field, and the hash value of the substitute value is extracted as the field hash value. When the archive is retrieved, the archive scheduling module 50 provides the integer N and the substitute of the field to the requester. For example, in the age field, when N takes the value 150 and the age recorded in the archive is 56, 206, 356, 4706, etc. can be used as substitute values. When the substitute value is 4706, the hash value of 4706 is extracted for notarization. After the requester verifies that 4706 is the real value, the age value can be obtained by taking the remainder of 4706 with 150. The use of this technical solution can also prevent the value of the field from being reversely deduced through the field hash value.
[0028] The request for retrieving files includes the purpose of retrieval. The file scheduling module 50 adds a watermark of the purpose of retrieval to the electronic seal position of the electronic file, and adds a watermark of the purpose of retrieval to the signature or seal position of the scanned paper file before providing it to the requester.
[0029] The beneficial technical effects of this embodiment are: by storing archives through blockchain 20 and providing proof of authenticity, the archives do not need to be stored in paper form, only electronic versions are needed, saving archive storage costs; by storing archives through field hash values, even if some fields that need to be kept confidential are blocked, the requester can still verify the authenticity of the remaining fields, which is conducive to protecting the privacy of archive records.
[0030] Example 2:
[0031] Based on the blockchain 20, the livelihood archive system of this embodiment, based on the first embodiment, makes specific improvements to the archive storage module 40 to reduce the storage space required for archive storage and reduce storage hardware expenses. In this embodiment, the archive storage module 40 periodically checks the number of archives under each archive type. When the number of archives of the same type reaches a preset threshold, it determines the percentage of duplicate content in the archives. If the percentage of duplicate content exceeds the preset threshold, a common template is established, representing the archive as a superposition of the common template and unique content. The unique content of the archive is associated with the common template identifier and the archive identifier for storage. When retrieving the archive, the unique content of the archive is read, and the common template is read based on the common template identifier. The unique content and the common template are superimposed to restore the archive. After verifying the archive's stored hash value, it is provided to the archive scheduling module 50.
[0032] Please see the attached Figure 3 When establishing a common template for electronic files, the file storage module 40 performs the following steps: Step A01) extracting the values of each field from a preset number of electronic files; Step A02) obtaining the distribution probability of the values for each field; Step A03) selecting the value with the highest probability as the default value for the field. The default values of all fields constitute the common template; Step A04) when receiving a new electronic file of the same type, retaining only the values of fields whose values are not equal to the default values; Step A05) obtaining the values of the retained fields as unique content. An electronic file refers to a data file stored in pairs of fields and values, such as XML-formatted files. Files in electronic image format do not fall within the meaning of this embodiment. While fields in electronic files of the same type are identical, the values of corresponding fields may differ for different applicants. For a specific administrative service window, among the large number of electronic files received, several fields may share the same values. For example, the values of province, city, and ethnicity in these three fields are essentially the same across all electronic files received by a given window. Recording these fields using default values can significantly save storage space. When encountering different value situations, do not use the default value, and store the actual value. When restoring, if the field does not have a stored value, fill in the default value with the corresponding value. If the field value is stored, directly read the stored file.
[0033] Please see the attached Figure 4When establishing a common template for a paper file scan, the file storage module 40 performs the following steps: Step B01) reading a preset number of scans to form a sample set; Step B02) calculating the mean value of each pixel in the sample set scans; Step B03) obtaining a common pixel set, wherein the difference between the pixel value of the scans in the sample set and the pixel mean value is lower than a preset threshold value at the pixels in the common pixel set; Step B04) creating a blank scan, setting the pixels recorded in the common pixel set as the pixel mean value to form a common template; Step B05) dividing the scan area into a plurality of rectangular areas 62 and numbering each rectangular area 62; Step B06) calculating the difference between the pixel value at the same position of the scan and the common template in each rectangular area 62; if there is a non-zero difference in the rectangular area 62, the difference is associated with the number of the rectangular area 62 and stored; Step B07) the difference values of all rectangular areas 62 and the associated rectangular area 62 numbers constitute unique content. A given window receives numerous paper application forms or qualification certification documents, each with formatted terms and requiring only basic information and signatures in a few designated areas. Therefore, the majority of pixel values in these scanned documents are identical, regardless of differences in scanning equipment and lighting. For example, various informed consent forms contain identical content and require signatures from the individual at the end. These informed consent forms are crucial for determining liability in subsequent disputes and must be retained for a predetermined period before being destroyed. In this embodiment, the signed informed consent forms are scanned, a hash value is extracted, and the hash value is uploaded to the blockchain 20 for storage, after which the paper documents can be destroyed. Scanned documents stored on the blockchain 20 are legally binding, reducing the number of physical paper documents required. However, when the number of these scanned documents is large, storing them in the archive storage module 40 requires significant storage space. In this embodiment, a common template is established to store only the signature area of the informed consent form as unique content, while the remaining portion is stored as a single copy of the common template. When reading, the separately stored signature area and the common template are spliced together, and the hash value is extracted after splicing. The hash value extracted from the correctly spliced file will be consistent with the hash value stored in the blockchain 20, proving the authenticity of the file, thereby saving a lot of storage space.
[0034] When scanning paper documents, pixel values in the same content area may vary due to variations in scanning equipment or lighting conditions. A specific solution is proposed. In this embodiment, upon receiving a scan of a paper document of the same type, the document receiving module 10 fine-tunes the pixel values of the scanned document within a preset range to maximize the number of pixels that are identical between the scanned document and the common template. After confirmation by the scanner, the document receiving module 10 accepts the adjusted scanned document.
[0035] The method for fine-tuning the pixel values of a scanned document within a preset range includes: calculating the difference between each pixel value of the scanned document and a common template; if the absolute value of the difference is less than a preset threshold, setting the corresponding pixel value to the same as the common template; extracting the boundary of the scanned document before adjustment and the boundary of the scanned document after adjustment, where the boundary is a set of pixels whose pixel value differs from the adjacent pixel values by more than a preset threshold; if the boundary has not changed, the adjustment is completed; if the boundary has changed, the pixels near the changed boundary are restored to their pre-adjustment pixel values, and the adjustment is completed. When the pixel adjustment value is not large, but the adjustment is clever, a boundary can still be formed, thereby forming an observable line or ink mark, affecting the authenticity of the document. Therefore, this embodiment limits the occurrence of boundaries exceeding the preset threshold during the adjustment process. This embodiment reduces the equipment expenses required for storing archives by compressing the space occupied by archive storage.
[0036] The embodiment described above is only a preferred solution of the present invention and does not limit the present invention in any form. Other variations and modifications are possible without exceeding the technical solution described in the claims.
Claims
1. The people's livelihood archive system based on blockchain is characterized by: The system comprises an archive receiving module, an archive scheduling module, an archive evidence storage module and an archive storage module. The archive receiving module receives archives and archive description information. The archives are electronic archives or paper archive scans. The archive description information records the archive type, search key value and permission information. The archive description information of the paper archive scan also includes fields and field areas. The permission information records fields and corresponding permission levels. The archive scheduling module establishes an archive index for the archive. The archive index records archive storage location, archive type, search key value and permission information. The archive evidence storage module extracts the hash value of the archive and records it as the archive hash value. The system extracts the hash value of each field and the value of each field in the electronic archive. The hash value is used as the field hash value, and the hash value of each field area of the paper archive scan is extracted as the field hash value. The archive hash value and all field hash values are extracted together to form a hash value as the evidence hash value. The evidence hash value is uploaded to the blockchain for storage. The archive storage module associates and stores the archive and field hash values, the archive hash value, and the evidence hash value. The institution or the public sends a request to retrieve the archive to the archive scheduling module. The archive scheduling module hides the electronic archive field values that do not meet the authority level according to the authority level previously assigned to the institution and the public, and covers the field areas of the paper archive scan that do not meet the authority level, and then provides them to the requester together with the field hash value, the archive hash value, and the evidence hash value. The archive storage module periodically checks the number of archives under each archive type. When the number of archives of the same type reaches a preset threshold, the percentage of duplicate content in the archive is determined. If the percentage of duplicate content exceeds the preset threshold, a common template is established, and the archive is represented as a superposition of the common template and unique content. The unique content of the archive is associated with the common template identifier and the archive identifier for storage. When retrieving the archive, the unique content of the archive is read, and the common template is read according to the common template identifier. The unique content and the common template are superimposed to restore the archive. After verifying the archive's stored hash value, it is provided to the archive scheduling module.
2. The blockchain-based people's livelihood archive system according to claim 1 is characterized in that: The file scheduling module generates several fuzzy schemes for each numeric field and sets an authority level for each fuzzy scheme. When the requester who sends the file retrieval request does not have sufficient authority to view the original value of the numeric field, the file scheduling module displays the value of the corresponding fuzzy scheme according to the authority level. The fuzzy scheme divides the value range of the numeric field into several intervals and replaces the original value with the interval range. The lower the authority level of the fuzzy scheme, the fewer intervals are divided.
3. The blockchain-based people's livelihood archive system according to claim 1 or 2 is characterized in that: When the archive notarization module extracts the field hash value of the electronic archive, it associates a randomly generated string with the field value, extracts the hash value of the field value and the string together as the field hash value, and stores the name of the string associated with the field. When the archive is retrieved, the archive scheduling module provides the field value and string that meet the requester's authority level to the requester.
4. The blockchain-based people's livelihood archive system according to claim 1 or 2 is characterized in that: The archive notarization module associates a randomly generated integer N with the electronic archive. When extracting the field hash value of the electronic archive, it generates a substitute value for the field value. The remainder of the substitute value modulo the integer N is equal to the original value of the field. The hash value of the substitute value is extracted as the field hash value. When the archive is retrieved, the archive scheduling module provides the integer N and the substitute value of the field to the requester.
5. The blockchain-based people's livelihood archive system according to claim 1 or 2 is characterized in that: The file retrieval request includes the retrieval purpose. The file scheduling module adds a watermark with the retrieval purpose at the electronic seal position of the electronic file, and adds the watermark with the retrieval purpose at the signature or seal position of the paper file scan, and then provides it to the requester.
6. The blockchain-based people's livelihood archive system according to claim 1 is characterized in that: When establishing a common template for electronic archives, the archive storage module performs the following steps: Extract the value of each field of a preset number of electronic records; Get the distribution probability of each field value; The value with the highest probability is used as the default value of the field, and the default values of all fields constitute a common template; When receiving a new electronic file of the same type, only the values of the fields that are not equal to the default value are retained; Gets the value of a reserved field as unique content.
7. The blockchain-based people's livelihood archive system according to claim 1 is characterized in that: When establishing a common template for scanned paper archives, the archive storage module performs the following steps: Read a preset number of scans to form a sample set; Calculate the mean value of each pixel in the statistical sample set scans; Obtaining a common pixel set, wherein the difference between the pixel value of the scanned pieces in the sample set and the pixel mean value is lower than a preset threshold value for the pixels in the common pixel set; Create a blank scan, set the pixels recorded in the common pixel set as the pixel mean, and form a common template; Divide the scan area into several rectangular areas and number each rectangular area; Calculate the difference between the pixel values at the same position of the scanned image and the common template within each rectangular area. If there is a non-zero difference within the rectangular area, store the difference in association with the rectangular area number. The difference values of all rectangular areas and the associated rectangular area numbers constitute unique content.
8. The blockchain-based people's livelihood archive system according to claim 7 is characterized in that: When the file receiving module receives a scanned copy of a paper file of the same type, it fine-tunes the pixel value of the scanned copy within a preset range so that the number of pixels that are identical to the common template is maximized. After confirmation by the scanner, the file receiving module receives the adjusted scanned copy.
Citation Information
Patent Citations
Document generation method and device, terminal equipment and medium
CN110866382A
Dynamic desensitization system and method based on database plug-in
CN112115512A
Notarization file information processing method, system and platform, equipment and storage medium
CN112163241A