A blockchain-based intelligent file control system
Through the blockchain-based archive intelligent control system, the problem of high cost of reuse of people's livelihood files after storage is solved, efficient storage and secure sharing of archives are realized, saving costs are reduced, and the convenience and value of archives are improved.
Patent Information
- Application Number
- CN202210212854.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-06
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2042-03-06
AI Technical Summary
At present, the cost of re-using of people's livelihood files after storage is high, and paper files have high storage costs, inconvenient access, and risks of damage and leakage.
The blockchain-based archive intelligent control system is adopted. Through the receiving subsystem, paper files are received and scanned copies are generated, hash values are extracted for blockchain storage, scanned copies are assigned and stored, and archive type catalogs, archive index catalogs and permission tables are established to realize efficient storage and secure sharing of archives.
Through blockchain evidence storage, scanned documents have authenticity vouchers, reduce archive preservation costs, improve the convenience of archive search, transmission and sharing, and enable archives to be used for more purposes and give full play to the value of archives.
Smart Images

Figure CN114610780B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to an archive intelligent control system based on blockchain. Background Art
[0002] People's livelihood archives are real records formed by various departments and units of the Party and the government in the work of ensuring and improving people's livelihood. They involve the vital interests of the broad masses of the people and are the original vouchers for safeguarding the rights and interests of the people. Specifically, they refer to archives related to various aspects of people's livelihood formed by organs, groups, enterprises and institutions, including party, government and military organs, state-owned and private enterprises, various institutions, neighborhood committees and village committees, various economic or social organizations, and individuals. Such as archives required for social security, marriage, retirement, second child, house purchase, etc. Although electronic office has begun to be promoted in recent years, a large number of application forms and qualification certificates are still made in paper form. Paper documents are not only expensive to preserve, but also very inconvenient to consult and transport, and there is also the risk of damage and leakage of archives. As a result, it is difficult for people's livelihood archives to play a role. Therefore, it is necessary to study new archive storage and use technologies.
[0003] For example, Chinese patent CN114005499A, published on February 1, 2022, discloses a blockchain-based archive sharing management platform, including the following steps: Step 1: Archive entry: enter the required archive information into the system; use the system to store archives; Step 2: Archive sorting: sort the input archives, trace and track the information in the archives in a targeted manner, and prevent tampering; Step 3: Archive classification: distinguish them according to the type of archives; the whole is divided into three major types: general archives; key archives and special archives; Step 4: Archive analysis: analyze the management encryption required according to the type of archives. Its technical solution can prevent internal information from being leaked; it also prevents internal information from being tampered with, and can improve the safety of use. However, its technical solution cannot solve the problem of low value utilization of archives at present. Summary of the invention
[0004] The technical problem to be solved by the present invention is that the cost of reusing the current livelihood archives after storage is high. A blockchain-based archive intelligent control system is proposed, which uses blockchain to give legal effect to scanned copies, so that scanned copies can provide a variety of services and better play the value of archives.
[0005] To solve the above technical problems, the technical solution adopted by the present invention is as follows: An intelligent file control system based on blockchain, including a receiving subsystem, a storage subsystem, and an intelligent sharing subsystem. The receiving subsystem receives batch paper files and file description information. The file description information includes the file source department, file type, file blank template, and file creation time. The receiving subsystem scans the paper files to obtain scanned copies, extracts the hash value of the scanned copies as the evidence hash value, and uploads the evidence hash value to the blockchain for storage. The storage subsystem assigns file names to the scanned copies and stores them. The intelligent sharing subsystem establishes a file type directory, a file index directory, and a permission table. The file type directory records the fields, field area locations, field types, and field permission levels contained in each file type. The file index directory records the file type, storage address, evidence hash value, block height, and several query key values. The query key values are the values of several preset fields. The permission table records the identity identifiers of the requesters who have the right to view the scanned copies and the corresponding permission levels. The intelligent sharing subsystem receives the identity identifier and file query request sent by the requester. After verifying the identity identifier of the requester, it queries the file index directory and provides the scanned copies that meet the file query request and the requester's permission level to the requester.
[0006] Preferably, the receiving subsystem divides the scanned copy into multiple regions, extracts the hash value of each region respectively, denoted as the region hash value. All the region hash values form a region hash value set. The region hash value set is further extracted to obtain the evidence hash value. The file index directory records the region hash value set and the storage location of each region. The storage subsystem stores the multiple regions separately. The intelligent sharing subsystem reads all regions of the scanned copy according to the file index directory and splices the regions to restore the scanned copy.
[0007] Preferably, when the receiving subsystem divides the scanned copy, the division positions of the scanned copies of the same file type are the same. The storage subsystem reads multiple regions at the same position of the same file type, calculates the pixel value mean of each pixel position of the multiple regions. The pixel value means of all pixel positions form a region template. Calculate the pixel value difference between the region of the scanned copy and the corresponding region template at each pixel position, and use a preset byte length to represent the pixel value difference to obtain a difference image. Establish an exception set to record the exception pixel points whose pixel differences exceed the numerical range represented by the preset byte length. The exception set records the pixel coordinates and pixel values of the exception pixel points. When the intelligent sharing subsystem reads the region, it overlays the difference image and the region template, and then replaces the corresponding pixel positions with the exception pixel points to obtain the restored region. The regions are spliced to obtain the restored scanned copy.
[0008] Preferably, the splitting positions of each file type are set manually so that each area contains at most one field area, where the field area is the area where the value of the file field is located. The area containing the field area is associated with the corresponding field name, and the hash value of each area is extracted and included in the area hash value set. The intelligent sharing subsystem creates an item table to record the list of fields required for handling items. The file query request includes the handling item. When the intelligent sharing subsystem restores the scanned document, it obtains the fields that are not required for the handling item according to the item table, generates a covering color to cover the unnecessary fields, and provides the scanned document with the covering color, the area hash value set, the deposit hash value, and the block height to the requester. After the requester verifies the area hash value of the un-covered area, it verifies the deposit hash value. If both verifications pass, it is determined that the received scanned document is authentic and reliable.
[0009] Preferably, the intelligent sharing subsystem receives a file information verification request, which includes several query key values and several field values. After verifying the permission level of the requester who sends the file information verification request, the intelligent sharing subsystem queries the file index directory. If there is a scanned document that matches the query key value, it runs an image recognition program to identify the content recorded within the corresponding field area position of the scanned document, and determines whether the content recognized by the image recognition matches the several field values included in the file information verification request. If they match, it feeds back that the corresponding field value verification passes; if they do not match, it feeds back that the corresponding field value verification fails; if no content is recognized, it feeds back that the corresponding field verification fails, and provides the corresponding sliced area to the requester.
[0010] The substantial effect of the present invention is that through blockchain deposit, the scanned document has an authenticity certificate, which technically gives the scanned document probative force and can be used as the basis for other file registration or item handling, so that the file management agency no longer needs to preserve paper files, reducing the file preservation cost; the electronic scanned document can be searched, transmitted, and shared more conveniently, enabling the file to be used for more purposes and giving play to the value of the file; using the improved storage method of the file scanned document reduces the storage space occupied by the scanned document, further saving the cost of file preservation. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a schematic diagram of the file intelligent control system in Embodiment 1.
[0012] Figure 2 It is a schematic diagram of the divided areas of the scanned document in Embodiment 1.
[0013] Figure 3 It is a schematic diagram of the area template in Embodiment 1.
[0014] Figure 4 It is a schematic diagram of area fine-tuning in Embodiment 2.
[0015] Figure 5 Schematic diagram of adding a covering color to the field area in the second embodiment.
[0016] Wherein: 10, receiving subsystem; 20, blockchain; 30, storage subsystem; 40, intelligent sharing subsystem; 50, requester; 61, area; 62, set of area hash values; 63, deposit hash value; 64, area template; 65, difference image; 66, exception set; 67, field area; 68, covering color. Detailed implementation manners
[0017] The following will further specifically describe the detailed implementation manners of the present invention through specific embodiments in conjunction with the accompanying drawings.
[0018] Embodiment 1:
[0019] An archive intelligent control system based on blockchain, please refer to the attached Figure 1 drawing, which includes a receiving subsystem 10, a storage subsystem 30, and an intelligent sharing subsystem 40. The receiving subsystem 10 receives batch paper archives and archive description information. The archive description information includes the archive source department, archive type, archive blank template, and archive establishment time. The receiving subsystem 10 scans the paper archives to obtain scanned copies, extracts the hash values of the scanned copies as the deposit hash value 63, and uploads the deposit hash value 63 to the blockchain 20 for storage. The storage subsystem 30 assigns file names to the scanned copies and stores them. The intelligent sharing subsystem 40 establishes an archive type directory, an archive index directory, and a permission table. The archive type directory records the fields included in each archive type, the positions of the field areas 67, field types, and field permission levels. The archive index directory records the archive type, storage address, deposit hash value 63, block height, and several query key values. The query key values are the values of several preset fields. The permission table records the identity identifiers of the requesters 50 who are authorized to view the scanned copies and the corresponding permission levels. The intelligent sharing subsystem 40 receives the identity identifier and the archive query request sent by the requester 50. After verifying the identity identifier of the requester 50, it queries the archive index directory and provides the scanned copies that meet the archive query request and the permission level of the requester 50 to the requester 50. The authenticity of the archives is guaranteed by the archive source department. The technology described in this embodiment can prevent the situation where real archives are tampered with during storage and transmission. By using the blockchain 20 for deposit, after the requester 50 obtains the scanned copy of the archive, it can conveniently verify through the blockchain 20 whether the received scanned copy is the same as the scanned copy during the previous deposit. If they are the same, it proves that the scanned copy received by the requester 50 is authentic and reliable. Thus, during archive sharing, authenticity assurance can be obtained, and it can be used as a certificate for handling other matters.
[0020] The file index directory can quickly retrieve the stored files, improving the reuse rate of the files. As shown in Table 1, the basic information of the files is recorded through the file index directory. When retrieving a file, the corresponding file can be quickly found according to the file index directory.
[0021] Table 1 File Index Directory
[0022] File Name DANGAN2022000054 DANGAN20220000555 File Type Registration Form for Low-Income Population Registration Form for Low-Income Population Storage Address data / dangan / 0054.jpg data / dangan / 0055.jpg Deposit Hash Value 63 D5F312…8E7201 FE06E3…18D775 Block Height 3214451023 3214451023 Query Key Value {Name: Zhang XX} {Name: Zheng XX}
[0023] Please refer to the appendix Figure 2 The receiving subsystem 10 divides the scanned document into multiple regions 61, extracts the hash values of the regions 61 respectively, denoted as the hash values of the regions 61. All the hash values of the regions 61 form the region hash value set 62. The region hash value set 62 extracts the hash value again as the evidence storage hash value 63. The file index directory records the region hash value set 62 and the storage location of each region 61. The storage subsystem 30 dispersedly stores the multiple regions 61. The intelligent sharing subsystem 40 reads all the regions 61 of the scanned document according to the file index directory and splices and restores the regions 61 to form the scanned document. By dispersedly storing the scanned document, the storage security of the scanned document can be improved. Even if part of the stored data is leaked, it will not cause the leakage of all the content of a specific file. Only some of the regions 61 will be leaked, and the storage security is higher.
[0024] When the receiving subsystem 10 divides the scanned document, the dividing positions of the scanned documents of the same file type are the same. The storage subsystem 30 reads multiple regions 61 of the same file type and at the same position, calculates the pixel value average of each pixel position of the multiple regions 61, and all the pixel positions take the pixel average to form the region template 64. Please refer to the appendix Figure 3 Calculate the pixel value difference between the region 61 of the scanned document and the corresponding region template 64 at each pixel position, use the preset byte length to represent the pixel value difference, obtain the difference image 65, establish an exception set 66 to record the exception pixel points whose pixel differences exceed the numerical range represented by the preset byte length. The exception set 66 records the pixel coordinates and pixel values of the exception pixel points. When the intelligent sharing subsystem 40 reads the region 61, it superimposes the difference image 65 and the region template 64, and then replaces the corresponding pixel positions with the exception pixel points to obtain the restored region 61. The regions 61 are spliced to obtain the restored scanned document.
[0025] A large number of paper application forms or qualification certification documents generated by grass-roots people's livelihood service agencies have formatted clauses in their content, and only need to fill in basic information and sign at a small number of specified positions. For example, various informed consent forms have the same recorded content, and the masses need to sign at the end. Such informed consent forms are important documents for determining liability in post-dispute cases and need to be saved for a preset period of time before being destroyed. Therefore, without considering the differences in scanning devices and light, most of the pixel values in such scanned documents are the same.
[0026] The scanned copies are stored in picture format. The pixels of the pictures are represented using the RGB color system. Each pixel uses 3 channels, and the channel value of each channel is represented by 1 byte, that is, the value range of each channel is [0, 255]. The set of the three channel values constitutes the pixel value, and each pixel value occupies 3 bytes. Since the scanned copies of a large number of the same type of files are highly similar in the image within the same area 61. Therefore, the difference between the pixel value at the same pixel position of each scanned copy and the shared slice will be small. Half a byte is sufficient to represent it. That is, the value range of the difference of each channel is [0, 15], plus 1 bit to represent the positive or negative sign of the difference. Figure 3 The difference image 65 has a lighter color because the image of the area has little difference from the area template 64 compared with the area template 64. The formation of the difference is mainly due to the hardware differences during each scan of the scanning device. The differences caused by the placement position of the files are not discussed in this implementation. Conventional techniques should be used for cropping and alignment, or a scanning device with an alignment function should be used. If the white balance of the scanned copy is performed using conventional techniques, better technical effects can be obtained. For the pixel points where the difference exceeds [0, 15], the exception set 66 is used to separately record such pixel points. Since the shared slice only needs to be stored once, most pixels can be stored using pixel differences, and the space occupied by each pixel is reduced by half. Although a small number of pixels need to occupy the space of the exception set 66, for the same area 61 of the same type of files, the number of exception pixels should be small, so that less storage space is occupied overall. By using the solution provided in this embodiment with the help of the shared slice, pixel differences, and the exception set 66, the storage space occupied by the slice area 61 is reduced. After scanning the paper file, within the preset pixel value change range, the scanned copy is fine-tuned to minimize the pixel difference between the area 61 and the area template 64. After fine-tuning, the number of exception pixels recorded in the exception set 66 can be reduced, and the storage space occupied by the exception set 66 can be reduced.
[0027] The intelligent sharing subsystem 40 receives a file information verification request, which includes several query key values and several field values. After verifying the permission level of the requester 50 who sends the file information verification request, the intelligent sharing subsystem 40 queries the file index directory. If there is a scanned copy that matches the query key value, it runs an image recognition program to recognize the content recorded within the corresponding field area 67 position of the scanned copy, and determines whether the content recognized by the image recognition matches the several field values included in the file information verification request. If it matches, it feeds back that the corresponding field value verification is passed. If it does not match, it feeds back that the corresponding field value verification fails. If no content is recognized, it feeds back that the corresponding field verification fails, and provides the corresponding slice area 61 to the requester 50.
[0028] When the public handles affairs in other departments or institutions and provides relevant information, the handling department or institution submits the information filled in by the public to the intelligent sharing subsystem 40 for file information verification. If the verification passes, the affairs can be handled according to the information filled in by the public. There is no need to restore the scanned copy, nor to transmit the scanned copy over the network, which can more effectively protect the privacy and security of the files.
[0029] The beneficial technical effects of this embodiment are as follows: By using the blockchain 20 for deposit and evidence, the scanned copy has an authenticity certificate, which technically gives the scanned copy probative force and can be used as the basis for other file registrations or matter handling. As a result, the file management agency no longer needs to preserve paper files, reducing the file preservation cost; the electronic scanned copy can be more conveniently searched, transmitted and shared, enabling the file to be used for more purposes and giving play to the value of the file.
[0030] Embodiment 2:
[0031] A blockchain-based file intelligent control system. In this embodiment, on the basis of Embodiment 1, a new improvement scheme for the storage of scanned copies is proposed. Please refer to the appendix Figure 4 In this embodiment, after the area 61 is slightly adjusted, if the pixel difference between the area 61 and the area template 64 is less than the preset threshold and the exceptional pixel points recorded in the exception set 66 are not continuous, then the area 61 is modified to be the same as the area template 64, and the hash value of the target in the area 61 is extracted as the area 61 hash value and incorporated into the area hash value set 62. The storage module does not store the area 61, and in the file index directory, it is marked that the corresponding area 61 is not stored. When the intelligent sharing subsystem 40 restores the scanned copy, if it reads the storage location of the area 61 and reads the mark that the area 61 is not stored, then the corresponding area template 64 is used to restore the scanned copy. The non-continuity of the exceptional pixel points means that the exceptional pixels do not record any useful information, which is noise caused by the scanning conditions.
[0032] Manually set the segmentation position for each file type so that the area 61 contains at most one field area 67. The field area 67 is the area 61 where the value of the file field is located. The area 61 containing the field area 67 is associated with the corresponding field name, and the hash value of each area 61 is extracted and incorporated into the area hash value set 62. The intelligent sharing subsystem 40 creates a matter table to record the field list required for handling matters. The file query request includes the handling matter. When the intelligent sharing subsystem 40 restores the scanned copy, it obtains the fields that are not required for the handling matter according to the matter table and generates a covering color 68 to cover the unnecessary fields. Please refer to the appendix Figure 5, provide the scanned document with the covering color 68, the set of regional hash values 62, the certified hash value 63, and the block height to the requester 50. After the requester 50 verifies the regional hash value of the uncovered area 61, verify the certified hash value 63. If both verifications pass, it is determined that the received scanned document is authentic and reliable.
[0033] Table 2 List of matters recorded in this embodiment
[0034] Matters to be Handled Field List Matter 1 {Field Name 1@Type 1, Field Name 2@Type 1, Field Name 3@Type 2} Matter 2 {Field Name 2@Type 1, Field Name 3@Type 2, Field Name 4@Type 2} Matter 3 {Field Name 1@Type 1, Field Name 5@Type 2, Field Name 6@Type 3} … … Matter n {Field Name 2@Type 1, Field Name 7@Type 4 or Type 5}
[0035] As shown in Table 2, in this embodiment, a list of matters is established to record the field names required for each handling matter and the file types where they are located. For a given field name, there may be multiple file types that record it. In the list of matters, use the keyword "or" to connect multiple file types. For example, the field name 7 recorded in the table can be found in two file types, type four and type five. When handling matter 1, find the files that match the retrieval key value from two file types, type one and type two, and obtain the values corresponding to field name 1, field name 2, and field name 3. The intelligent sharing subsystem 40 covers the slice areas 61 other than the slice areas 61 corresponding to field name 1, field name 2, and field name 3 with the covering color 68 and provides them to the requester 50. This can hide other information in the file from the requester 50. That is, it does not affect the handling of matter 1 while controlling the scope of the spread of file information.
[0036] This embodiment uses an improved storage method for scanned documents, reducing the storage space occupied by the scanned documents and further saving the cost of file storage. Manually label the field names of the field areas 67 included in each slice area 61. The intelligent sharing subsystem 40 selects the corresponding slice areas 61 according to the fields required by the requester 50 to handle matters and provides them to the requester 50. The remaining slice areas 61 are covered with the covering color 68, effectively controlling the scope of the spread of file privacy.
[0037] The above-described embodiments are only a preferred solution of the present invention and do not impose any form of limitation on the present invention. There are other variations and modifications without exceeding the technical solutions recorded in the claims.
Claims
1. A blockchain-based intelligent file control system, characterized in that, it includes a receiving subsystem, a storage subsystem, and an intelligent sharing subsystem. The receiving subsystem receives batch paper files and file description information. The file description information includes the file source department, file type, file blank template, and file creation time. The receiving subsystem scans the paper files to obtain scanned copies, extracts the hash value of the scanned copies as the evidence hash value, and uploads the evidence hash value to the blockchain for storage. The storage subsystem assigns file names to the scanned copies and stores them. The intelligent sharing subsystem establishes a file type directory, a file index directory, and a permission table. The file type directory records the fields, field area locations, field types, and field permission levels contained in each file type. The file index directory records the file type, storage address, evidence hash value, block height, and several query key values. The query key values are the values of several preset fields. The permission table records the identity identifiers of the requesters who are authorized to view the scanned copies and the corresponding permission levels. The intelligent sharing subsystem receives the identity identifier and file query request sent by the requester. After verifying the identity identifier of the requester, it queries the file index directory and provides the scanned copies that meet the file query request and the requester's permission level to the requester; The receiving subsystem divides the scanned copy into multiple regions, extracts the hash value of each region respectively, denoted as the region hash value. All the region hash values form a region hash value set. The region hash value set is further extracted to obtain the evidence hash value. The file index directory records the region hash value set and the storage location of each region. The storage subsystem stores the multiple regions separately. The intelligent sharing subsystem reads all regions of the scanned copy according to the file index directory and splices the regions to restore the scanned copy; When the receiving subsystem divides the scanned copy, the division positions of scanned copies of the same file type are the same. The storage subsystem reads multiple regions at the same position of the same file type, calculates the pixel value mean at each pixel position of the multiple regions. The pixel value means at all pixel positions form a region template. Calculate the pixel value difference between the region of the scanned copy and the corresponding region template at each pixel position, and use a preset byte length to represent the pixel value difference to obtain a difference image. Establish an exception set to record the exception pixel points whose pixel differences exceed the numerical range represented by the preset byte length. The exception set records the pixel coordinates and pixel values of the exception pixel points. When the intelligent sharing subsystem reads the region, it superimposes the difference image and the region template, and then replaces the corresponding pixel positions with the exception pixel points to obtain the restored region. The regions are spliced to obtain the restored scanned copy.
2. The blockchain-based intelligent file control system according to claim 1, characterized in that, manually set the division position of each file type so that the region contains at most one field area. The field area is the area where the value of the file field is located. Associate the region containing the field area with the corresponding field name, extract the hash value of each region, and include it in the region hash value set. The intelligent sharing subsystem creates a list of fields required for handling matters in the matter table. The file query request includes the matters to be handled. When the intelligent sharing subsystem restores the scanned document, it obtains the fields that are not required for the matters to be handled according to the matter table, generates a covering color to cover the unnecessary fields, and provides the scanned document with the covering color, the set of regional hash values, the deposit hash value, and the block height to the requester. After the requester verifies the regional hash values of the un-covered areas, it verifies the deposit hash value. If both verifications pass, it is determined that the received scanned document is authentic and reliable.
3. An archive intelligent control system based on blockchain according to claim 2, characterized in that the intelligent sharing subsystem receives a file information verification request, and the file information verification request includes a number of query key values and a number of field values. After the intelligent sharing subsystem verifies the permission level of the requester who sends the file information verification request, it queries the file index directory. If there is a scanned document that matches the query key value, it runs an image recognition program to identify the content recorded within the corresponding field area of the scanned document, and determines whether the content recognized by the image recognition matches the number of field values included in the file information verification request. If they match, it feeds back that the verification of the corresponding field value passes. If they do not match, it feeds back that the verification of the corresponding field value fails. If no content is recognized, it feeds back that the verification of the corresponding field fails, and provides the corresponding sliced area to the requester.
Citation Information
Patent Citations
Block chain-based archive sharing management platform
CN114005499A
Archive management method based on block chain
CN111611460A
Notarization file information processing method, system and platform, equipment and storage medium
CN112163241A
Block chain evidence storage method and system based on isomorphic multi-chain architecture
CN113326317A