Blockchain-based electronic records management methods, systems, terminal devices and media
By combining blockchain and biometric technologies, the shortcomings of electronic record systems in terms of security and reliability have been addressed, enabling secure updates and retrieval of electronic records, making it suitable for fields with high security requirements such as finance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2021-06-16
- Publication Date
- 2026-07-17
AI Technical Summary
Existing electronic record systems are inadequate in terms of security and reliability, making it difficult to meet the application needs of fields with high security requirements such as finance. In particular, they are easily tampered with and information is leaked during the process of updating and retrieving records.
By combining blockchain technology with biometrics, a summary is generated by hashing the user's biometric information and electronic record information and uploading it to the blockchain, thus enabling secure updates and retrieval of records.
This improves the legality, security, and reliability of the electronic record update process, prevents records from being tampered with, and ensures the integrity of information and the accuracy of queries.
Smart Images

Figure CN115481426B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of blockchain technology, and in particular to a blockchain-based electronic record management method, a blockchain-based electronic record management system, a terminal device, and a computer-readable storage medium. Background Technology
[0002] With the continuous development of technology, electronic archives have emerged. Compared to paper archives, electronic archives are more convenient and efficient. For example, in the banking system, issuing a guarantee requires preparing a large number of documents related to the guarantor, the guaranteed party, and the beneficiary's qualifications, assets, and company information. After issuing the guarantee, the bank also needs to frequently update the latest documents to monitor the execution risk of the guaranteed party. If paper archives are used, a large number of paper documents are required, and a lengthy approval process involving signatures from different responsible persons across departments and levels is necessary. The efficiency of the approval process is extremely low, and the subsequent maintenance and updating of archives is even more difficult. In contrast, using electronic archives can accelerate the efficiency of archive creation and updating.
[0003] Current electronic archive systems offer functions such as receiving archived electronic documents, organizing and filing electronic archives, handling changes to electronic archive files, compiling electronic archive retrieval catalogs, and viewing electronic archives. Their system architecture primarily revolves around the archive database, mainly involving user access control and business logic control (database entry, query, modification, and deletion). However, current electronic archive systems lack robust security mechanisms for updating and querying archives, potentially leading to unreliable update processes, tampering, and easy leakage of information. This hinders their widespread use in high-security sectors such as finance. Summary of the Invention
[0004] This disclosure provides a blockchain-based electronic record management method, system, terminal device, and computer-readable storage medium to at least solve the above-mentioned problems.
[0005] According to one aspect of the embodiments of this disclosure, a blockchain-based electronic records management method is provided, comprising:
[0006] Receive an update request from a first user for a certain electronic file, wherein the update request carries the first user's biometric information and the updated electronic file information;
[0007] Verify whether the first user has the authority to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file.
[0008] If the user has permission to update the requested electronic file, a hash calculation is performed on the first user's biometric information and the updated electronic file information to obtain a first file digest; and,
[0009] The updated electronic file information and the first file summary are uploaded to the blockchain, so that when the second user queries the updated electronic file information, the updated electronic file information can be obtained from the blockchain based on the first file summary.
[0010] In one implementation, after uploading the updated electronic archive information and the first archive summary to the blockchain, the method further includes:
[0011] The updated electronic archive information is associated with the first archive summary in the blockchain;
[0012] Receive a query request from the second user for the updated electronic file information, wherein the query request carries the biometric information of the second user;
[0013] A hash calculation is performed on the biometric information of the second user and the updated electronic file information to obtain a second file digest;
[0014] Retrieve the first file digest from the blockchain; and,
[0015] Determine whether the second file summary is consistent with the first file summary. If so, retrieve the updated electronic file information associated with the first file summary from the blockchain and authorize the second user to query the updated electronic file information.
[0016] In one embodiment, the method further includes:
[0017] Obtain current electronic file information of several electronic files, as well as biometric information of all authorized users of each of the several electronic files;
[0018] Hash calculations are performed on the current electronic file information of the plurality of electronic files and the biometric information of all authorized users of each of the plurality of electronic files to obtain the third file summary of all authorized users of each of the plurality of electronic files;
[0019] Based on the third archive summaries of all authorized users of each of the aforementioned electronic archives, the third archive summary information of each of the aforementioned electronic archives is obtained; and...
[0020] The third-level archive summary information of each of the aforementioned electronic archives is uploaded to the blockchain;
[0021] The step of verifying whether the first user has the authority to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file includes:
[0022] A fourth hash digest is obtained by hashing the biometric information of the first user and the current file information of the requested electronic file.
[0023] Retrieve the third document summary information of the electronic document requested by the first user from the blockchain; and
[0024] If the third file summary information of the electronic file requested by the first user is identical to the fourth file summary, then the first user is deemed to have the authority to update the requested electronic file.
[0025] In one implementation, uploading the third-level document summary information of each of the plurality of electronic documents to the blockchain includes:
[0026] Generate several blocks in the blockchain, each corresponding to one of the aforementioned electronic files; and
[0027] The third-level summary information of each of the aforementioned electronic archives is stored in its corresponding block.
[0028] In one implementation, each of the plurality of blocks includes its own archive root hash, the archive root hash being calculated based on the third archive digest information stored in the block to which it belongs, and the method further includes:
[0029] In a blockchain, the root hash of each block is associated with its corresponding electronic file.
[0030] The step of retrieving the third document summary information of the electronic document requested by the first user from the blockchain includes:
[0031] Obtain the file root hash associated with the electronic file requested by the first user, and locate its block based on the file root hash; and,
[0032] Retrieve the third archive digest information stored in the block where the archive root hash is located, as the third archive digest information of the electronic archive requested by the first user.
[0033] In one embodiment, the method further includes:
[0034] Collect the biometric information of the signatory from the updated electronic record information;
[0035] A hash calculation is performed on the biometric information of the signatory and the updated electronic file information to obtain a fifth file digest; and,
[0036] The fifth document summary is uploaded to the blockchain so that when the second user queries the updated electronic document information, the updated electronic document information can be obtained from the blockchain based on the first document summary and the fifth document summary.
[0037] According to another aspect of the embodiments of this disclosure, a blockchain-based electronic records management system is provided, comprising:
[0038] The first receiving module is configured to receive an update request from a first user for a certain electronic file, wherein the update request carries the first user's biometric information and the updated electronic file information.
[0039] The verification module is configured to verify whether the first user has the permission to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file.
[0040] A first calculation module is configured to, when the verification module verifies that the user has permission to update the requested electronic file, perform a hash calculation on the first user's biometric information and the updated electronic file information to obtain a first file digest; and,
[0041] The upload module is configured to upload the updated electronic file information and the first file summary to the blockchain, so that when the second user queries the updated electronic file information, the updated electronic file information can be obtained from the blockchain based on the first file summary.
[0042] In one embodiment, the system further includes:
[0043] The association module is configured to associate the updated electronic document information with the first document summary in the blockchain after the upload module uploads the first document summary to the blockchain;
[0044] The second receiving module is configured to receive a query request from the second user for the updated electronic file information, wherein the query request carries the biometric information of the second user.
[0045] The second calculation module is configured to perform a hash calculation on the biometric information of the second user and the updated electronic file information to obtain a second file summary.
[0046] The retrieval module is configured to retrieve the first file digest from the blockchain; and,
[0047] The judgment module is configured to determine whether the second file summary is consistent with the first file summary;
[0048] An authorization module is configured to retrieve updated electronic document information associated with the first document summary from the blockchain when the judgment module determines that the information matches, and authorize the second user to query the updated electronic document information. According to another aspect of this disclosure, a terminal device is provided, including a memory and a processor. The memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the blockchain-based electronic document management method.
[0049] According to another aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor performs the blockchain-based electronic record management method.
[0050] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0051] The blockchain-based electronic record management method provided in this disclosure involves receiving an update request from a first user for a specific electronic record. The update request carries the first user's biometric information and the updated electronic record information. The method verifies whether the first user has permission to update the requested electronic record based on the first user's biometric information and the current record information of the requested electronic record. If the first user has permission to update the requested electronic record, a hash calculation is performed on the first user's biometric information and the updated electronic record information to obtain a first record digest. The updated electronic record information and the first record digest are then uploaded to the blockchain. This disclosure utilizes the tamper-proof nature of blockchain to effectively ensure the legality, security, and reliability of the electronic record update process.
[0052] Other features and advantages of this disclosure will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the disclosure. The objects and other advantages of this disclosure may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description
[0053] The accompanying drawings are provided to further understand the technical solutions of this disclosure and constitute a part of the specification. They are used together with the embodiments of this disclosure to explain the technical solutions of this disclosure and do not constitute a limitation on the technical solutions of this disclosure.
[0054] Figure 1A flowchart illustrating a blockchain-based electronic records management method provided in this embodiment of the disclosure;
[0055] Figure 2 A flowchart illustrating a blockchain-based electronic records management method, as provided in another embodiment of this disclosure;
[0056] Figure 3 This is a schematic diagram of the block structure in another embodiment of this disclosure;
[0057] Figure 4 A schematic diagram of the structure of a blockchain-based electronic records management system provided in this embodiment of the disclosure;
[0058] Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Detailed Implementation
[0059] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the specific implementation methods of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific implementation methods described herein are for illustration and explanation only and are not intended to limit this disclosure.
[0060] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence; furthermore, in the absence of conflict, the embodiments and features in the embodiments of this disclosure can be arbitrarily combined with each other.
[0061] In the following description, the use of suffixes such as “module,” “part,” or “unit” to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, “module,” “part,” or “unit” may be used interchangeably.
[0062] Blockchain technology originated in 2008. Its core principle is to record all past transactions and historical data through a jointly maintained and tamper-proof database. All data is distributed, open, and transparent. Under this technology, any strangers on the internet can reach a consensus on trust through contracts, peer-to-peer ledgers, and digital encryption, without the need for any central trust institution. Blockchain technology has two main characteristics: First, the authenticity of information is immutable. Blockchain emphasizes the authenticity of content; once information is recorded on the blockchain, it is immutable and verifiable. Second, it employs a distributed system. The decentralized distributed system of blockchain has the advantage of avoiding system crashes. Because there is no unified central authority, there is no need to worry about data loss due to earthquakes, power outages, hacker attacks, etc.
[0063] Biometric technology refers to the analysis of organisms using mathematical and statistical methods. It now primarily refers to computer technology that distinguishes individuals based on their biological characteristics (generally referring to humans). This mainly includes voice, face, fingerprint, palm print, iris, retina, body shape, and personal habits (such as the force and frequency of keystrokes, signatures), with corresponding recognition technologies including speaker recognition, facial recognition, fingerprint recognition, palm print recognition, iris recognition, retinal recognition, body shape recognition, keystroke recognition, signature recognition, and finger vein recognition.
[0064] This application proposes a novel electronic record management scheme that combines blockchain and biometric technologies. Upon receiving a record document requiring updating, the user's fingerprint information is collected, the scanned document is merged with the fingerprint information, a hash calculation is performed, and the summary information is stored in the blockchain network. The scanned document is then stored in a database. To verify the authenticity of a document, the fingerprint information is simply collected again, merged with the document in the database, hashed, and compared with the summary information stored in the blockchain. This process makes record creation more efficient and convenient, effectively avoiding problems such as low reliability and susceptibility to tampering during record creation, enabling the widespread application of electronic records and compensating for the shortcomings of paper records.
[0065] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a blockchain-based electronic record management method provided in an embodiment of the present disclosure. The method includes steps S101-S104.
[0066] In step S101, an update request for a certain electronic file from a first user is received. The update request carries the first user's biometric information and the updated electronic file information.
[0067] In this embodiment, the user's biometric information is the user's fingerprint information, which can be converted into hexadecimal encoded information during calculation. In some embodiments, other biometric information may also be used. The electronic file information is the electronic file, which can also be converted into hexadecimal encoded information during calculation.
[0068] In step S102, the system verifies whether the first user has the permission to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file. If the first user has the permission to update the requested electronic file, then step S103 is executed.
[0069] Specifically, the security of the file management process can be ensured by calculating the hash digest of the first user's biometric information and the requested file's electronic file information. This involves merging the electronic file with the first user's fingerprint information, performing a hash calculation (SHA256 algorithm), and obtaining an electronic file digest value containing the first user's information. This digest is then compared with the hash digest of the requested file's electronic file information and the fingerprint information of a pre-stored file maintainer (i.e., an administrator who can update the file). In some embodiments, there may be multiple file maintainers; in this case, the hash value between each maintainer and the requested file information is calculated separately to determine if the first user is one of them. If none of the maintainers are present, the first user does not have the authority to update the file. In this embodiment, verifying the identity and permissions of the user requesting the update effectively ensures the security of the file management process.
[0070] It is understandable that electronic record update requests, including those for creating initial electronic records (i.e., creating electronic records from scratch), can rely solely on biometric verification for user authentication if it's for creating initial electronic records. It is also understandable that the system pre-stores the biometric information of users with the authority to update electronic records. Specifically, the system generates an electronic record digest by first acquiring the paper record document, then using optical scanning to obtain the electronic document, converting it into hexadecimal encoding information. Next, it collects the fingerprint information of the record maintainer, preprocesses and enhances the collected fingerprint information, extracts feature values, converts the feature values into hexadecimal encoding information, and then calculates the record digest value between the record maintainer's fingerprint information and the electronic record document. In some embodiments, the system also collects the fingerprint information of the signer in the record and performs a hash calculation on the signer and the electronic record document to obtain a hash digest value, which is then uploaded to the blockchain.
[0071] In practical applications, typically only the archivist has the authority to update archives. However, for electronic archives, it can sometimes be difficult to distinguish whether the user updating the archive is the archivist or someone else with the authority to update the archive. This embodiment improves the reliability of the archive creation process and prevents problems such as archive tampering by verifying user permissions during the electronic archive update process.
[0072] In step S103, a hash calculation is performed on the biometric information of the first user and the updated electronic file information to obtain a first file digest; and,
[0073] In step S104, the updated electronic file information and the first file summary are uploaded to the blockchain, so that when the second user queries the updated electronic file information, the updated electronic file information can be obtained from the blockchain based on the first file summary.
[0074] In this embodiment, after verifying the user's update permissions, the updated electronic archive information is stored. Compared to related technologies that only store electronic archives locally or in the cloud and use key-based access for querying and updating permissions, this embodiment calculates the hash values of the user's biometric information and the electronic archive information, and uses blockchain technology to upload the updated electronic archive information and the archive hash digest to the blockchain. Based on the blockchain's synchronization and tamper-proof characteristics, the reliability of the electronic archive information is ensured. Simultaneously, when a user needs to query or update electronic archive information, the user is first verified based on the first archive digest, and then the updated electronic archive information is retrieved for the user using the first archive digest. To facilitate the retrieval of electronic archive files, the updated electronic archive information and the requested electronic archive information are stored in the same block of the blockchain.
[0075] It should be noted that this embodiment only lists the query permissions of the archive maintainer for the updated electronic archive information. In some embodiments, there can be multiple authorized users. When there are multiple authorized users other than the archive maintainer, the biometric information of other authorized users (who may only have query permissions but not update permissions) can be obtained first. Then, the biometric information of the multiple authorized users and the updated electronic archive information are hashed to obtain multiple first archive digests. Finally, the multiple first archive digests are uploaded to the same block in the blockchain for storage.
[0076] Specifically, after uploading the updated electronic file information and the first file summary to the blockchain (step S104), the following steps are also included:
[0077] The updated electronic record information is associated with the first record summary in the blockchain.
[0078] In this embodiment, the updated electronic file information and the first file summary can be stored in different areas of the blockchain. By associating the two, when the verification process based on the first file summary is authorized, the corresponding updated electronic file information can be retrieved based on their association.
[0079] Receive a query request from a second user for the updated electronic file information, wherein the query request carries the biometric information of the second user;
[0080] A hash calculation is performed on the biometric information of the second user and the updated electronic file information to obtain a second file digest;
[0081] Retrieve the first file digest from the blockchain; and,
[0082] Determine whether the second file summary is consistent with the first file summary. If so, retrieve the updated electronic file information associated with the first file summary from the blockchain and authorize the second user to query the updated electronic file information.
[0083] It should be noted that the above-mentioned query of electronic record information takes the record maintainer as an example, that is, only the record maintainer has the right to update and query. In some embodiments, multiple users may be authorized to query the updated electronic record information, as described above, and will not be repeated here.
[0084] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a blockchain-based electronic record management method according to another embodiment of the present disclosure. Based on the previous embodiment, this embodiment further illustrates a user update permission verification scheme to improve the security of the electronic record update process. Compared with Embodiment 1, in addition to steps S101-S104, the method also includes steps S201-S204, and step S102 is further divided into steps S1021-S1023.
[0085] In step S201, the current electronic file information of several electronic files and the biometric information of all authorized users of each of the several electronic files are obtained.
[0086] Specifically, the system can receive multiple electronic files simultaneously. It can obtain multiple scanned electronic files by optically scanning the paper files to be archived, and then obtain the biometric information of all authorized users, who are the users who can update and query the multiple electronic files.
[0087] In step S202, hash calculations are performed on the current electronic file information of the plurality of electronic files and the biometric information of all authorized users to obtain the third file summary of all authorized users of each of the plurality of electronic files;
[0088] In step S203, based on the third archive digests of all authorized users of each of the plurality of electronic archives, the third archive digest information of each of the plurality of electronic archives is obtained; and,
[0089] In step S204, the third archive summary information of each of the several electronic archives is uploaded to the blockchain.
[0090] The step of verifying whether the first user has the permission to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file (i.e., step S102) includes the following steps:
[0091] Step S1021: Perform hash calculation on the biometric information of the first user and the current file information of the requested electronic file to obtain a fourth hash digest;
[0092] Step S1022: Retrieve the third file summary information of the electronic file requested by the first user from the blockchain; and,
[0093] Step S1023: Determine whether there is a third file summary in the third file summary information of the electronic file requested by the first user that is the same as the fourth file summary. If so, determine that the first user has the permission to update the requested electronic file, and execute step S103.
[0094] In one implementation, uploading the third-level document summary information of each of the plurality of electronic documents to the blockchain includes:
[0095] Generate several blocks in the blockchain, each corresponding to one of the aforementioned electronic files;
[0096] The third-level summary information of each of the aforementioned electronic archives is stored in its corresponding block.
[0097] In one implementation, each of the plurality of blocks includes its own archive root hash, the archive root hash being calculated based on the third archive digest information stored in the block to which it belongs, and the method further includes:
[0098] In a blockchain, the root hash of each block is associated with its corresponding electronic file.
[0099] The step of retrieving the third document summary information of the electronic document requested by the first user from the blockchain includes the following steps:
[0100] Obtain the file root hash associated with the electronic file requested by the first user, and locate its block based on the file root hash; and,
[0101] Retrieve the third archive digest information stored in the block where the archive root hash is located, as the third archive digest information of the electronic archive requested by the first user.
[0102] In this embodiment, each block of the blockchain consists of a block header and a block body. Combined with... Figure 3As shown, the block header includes the parent hash value of the previous block, the current blockchain network version number, the root hash of the archive obtained by hashing all archive digests together, and the timestamp of the block generation. The block body can contain the number of archive files and the values of all archive digests containing signer and maintainer (authorized user) information. The root hash is calculated by hashing all archive digests in all block bodies together. All archive digests under the same archive number are stored in one block; archives with different numbers are stored in different blocks, forming a chain-like storage structure. All electronic archive images under the same archive number are uploaded to the blockchain for storage and associated with the root hash value of the signer archive.
[0103] In one embodiment, the method further includes the following steps:
[0104] Collect the biometric information of the signatory from the updated electronic record information;
[0105] A hash calculation is performed on the biometric information of the signatory and the updated electronic file information to obtain a fifth file digest; and,
[0106] The fifth document summary is uploaded to the blockchain so that when the second user queries the updated electronic document information, the updated electronic document information can be obtained from the blockchain based on the first document summary and the fifth document summary.
[0107] Specifically, in order to facilitate the traceability of electronic record information, this embodiment collects not only the biometric information of the electronic record maintainer, but also the biometric information of the signer in the electronic record information, calculates its fifth record summary, and then uploads it to the blockchain. For example, the signer has the authority to update the record. The fifth record summary and the first record summary are stored in the same block. If there are multiple signers, the biometric information of all signers is collected, and their fifth record summaries are calculated separately to form the fifth record summary information, which is stored in the same block as the first record summary.
[0108] Based on the same technical concept, this disclosure also provides a blockchain-based electronic records management system, such as... Figure 4 As shown, the system includes:
[0109] The first receiving module 41 is configured to receive an update request from a first user for a certain electronic file, wherein the update request carries the first user's biometric information and the updated electronic file information.
[0110] The verification module 42 is configured to verify whether the first user has the permission to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file.
[0111] The first calculation module 43 is configured to, when the verification module verifies that the user has the permission to update the requested electronic file, perform a hash calculation on the first user's biometric information and the updated electronic file information to obtain a first file digest; and,
[0112] The upload module 44 is configured to upload the updated electronic file information and the first file summary to the blockchain, so that when the second user queries the updated electronic file information, he / she can obtain the updated electronic file information from the blockchain based on the first file summary.
[0113] In one embodiment, the system further includes:
[0114] The association module is configured to associate the updated electronic document information with the first document summary in the blockchain after the upload module uploads the first document summary to the blockchain;
[0115] The second receiving module is configured to receive a query request from a second user for the updated electronic file information, wherein the query request carries the biometric information of the second user.
[0116] The second calculation module is configured to perform a hash calculation on the biometric information of the second user and the updated electronic file information to obtain a second file summary.
[0117] The retrieval module is configured to retrieve the first file digest from the blockchain; and,
[0118] The judgment module is configured to determine whether the second file summary is consistent with the first file summary;
[0119] The authorization module is configured to retrieve the updated electronic archive information associated with the first archive summary from the blockchain when the judgment module determines that they are consistent, and authorize the second user to query the updated electronic archive information.
[0120] In one embodiment, the system further includes:
[0121] The first acquisition module is configured to acquire the current electronic file information of several electronic files, as well as the biometric information of all authorized users of each of the several electronic files;
[0122] The third calculation module is configured to perform hash calculations on the current electronic file information of the plurality of electronic files and the biometric information of all authorized users of each of the plurality of electronic files to obtain the third file summary of all authorized users of each of the plurality of electronic files;
[0123] The second acquisition module is configured to obtain the third archive summary information of each of the plurality of electronic archives based on the third archive summaries of all authorized users of each of the plurality of electronic archives; and...
[0124] The upload module 44 is further configured to upload the third archive summary information of each of the plurality of electronic archives to the blockchain respectively;
[0125] The verification module 42 includes:
[0126] The computing unit is configured to perform hash calculation on the biometric information of the first user and the file information of the requested electronic file to obtain a fourth hash digest;
[0127] A query unit is configured to retrieve, from the blockchain, the third document summary information of the electronic document requested by the first user; and,
[0128] The judgment unit is configured to determine whether there is a third file summary in the third file summary information of the electronic file requested by the first user that is the same as the fourth file summary. If so, it is determined that the first user has the right to update the requested electronic file.
[0129] In one embodiment, the upload module 42 includes:
[0130] A generation unit, configured to generate several blocks in the blockchain corresponding to the aforementioned electronic files; and,
[0131] The storage unit is configured to store the third archive summary information of each of the plurality of electronic archives in their respective blocks.
[0132] In one implementation, each of the plurality of blocks includes its own archive root hash, and the archive root hash is calculated based on the third archive digest information stored in the block to which it belongs. The system further includes:
[0133] The second management module is configured to associate the file root hash of each block with its corresponding electronic file in the blockchain;
[0134] The query unit is specifically configured to obtain the root hash of the requested electronic file associated with it, and to find its corresponding storage block based on the root hash; and to retrieve the third file summary information corresponding to the requested electronic file from the storage block.
[0135] In one embodiment, the system further includes:
[0136] The data acquisition module is configured to collect the biometric information of the signatory in the updated electronic file information.
[0137] The fourth calculation module is configured to perform a hash calculation on the biometric information of the signatory and the updated electronic file information to obtain a fifth file digest; and,
[0138] The upload module 44 is further configured to upload the fifth document summary to the blockchain, so that when the second user queries the updated electronic document information, the updated electronic document information can be obtained from the blockchain based on the first document summary and the fifth document summary.
[0139] Based on the same technical concept, this disclosure also provides a terminal device, such as... Figure 5 As shown, the terminal device includes a memory 51 and a processor 52. The memory 51 stores a computer program. When the processor 52 runs the computer program stored in the memory 51, the processor 52 executes the blockchain-based electronic record management method.
[0140] Based on the same technical concept, this disclosure also provides a computer-readable storage medium storing a computer program thereon, wherein when the computer program is executed by a processor, the processor executes the blockchain-based electronic record management method.
[0141] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0142] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure.
Claims
1. A blockchain-based electronic records management method, characterized in that, include: Receive an update request from a first user for a certain electronic file, wherein the update request carries the first user's biometric information and the updated electronic file information; Verify whether the first user has the authority to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file. If the user has permission to update the requested electronic file, a hash calculation is performed on the first user's biometric information and the updated electronic file information to obtain a first file summary. as well as, The updated electronic file information and the first file summary are uploaded to the blockchain, so that when the second user queries the updated electronic file information, the updated electronic file information can be obtained from the blockchain based on the first file summary; Also includes: Obtain current electronic file information of several electronic files, as well as biometric information of all authorized users of each of the several electronic files; Hash calculations are performed on the current electronic file information of the plurality of electronic files and the biometric information of all authorized users of each of the plurality of electronic files to obtain the third file summary of all authorized users of each of the plurality of electronic files; Based on the third archive summaries of all authorized users of each of the aforementioned electronic archives, the third archive summary information of each of the aforementioned electronic archives is obtained; and... The third-level archive summary information of each of the aforementioned electronic archives is uploaded to the blockchain; The step of verifying whether the first user has the authority to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file includes: A fourth hash digest is obtained by hashing the biometric information of the first user and the current file information of the requested electronic file. Retrieve the third document summary information of the electronic document requested by the first user from the blockchain; and Determine whether there is a third file digest in the third file digest information of the electronic file requested by the first user that is the same as the fourth hash digest. If so, determine that the first user has the right to update the requested electronic file. The step of uploading the third-level document summary information of each of the plurality of electronic documents to the blockchain includes: Generate several blocks in the blockchain, each corresponding to one of the aforementioned electronic files; and The third-level summary information of each of the aforementioned electronic archives is stored in its corresponding block; The plurality of blocks each include their own archive root hash, which is calculated based on the third archive digest information stored in the block to which it belongs; The method further includes: In a blockchain, the root hash of each block is associated with its corresponding electronic file. The step of retrieving the third document summary information of the electronic document requested by the first user from the blockchain includes: Obtain the file root hash associated with the electronic file requested by the first user, and locate its block based on the file root hash; and, Retrieve the third archive digest information stored in the block where the archive root hash is located, as the third archive digest information of the electronic archive requested by the first user.
2. The method according to claim 1, characterized in that, After uploading the updated electronic file information and the first file summary to the blockchain, the process further includes: The updated electronic archive information is associated with the first archive summary in the blockchain; Receive a query request from the second user for the updated electronic file information, wherein the query request carries the biometric information of the second user; A hash calculation is performed on the biometric information of the second user and the updated electronic file information to obtain a second file digest; Retrieve the first file digest from the blockchain; and, Determine whether the second file summary is consistent with the first file summary. If so, retrieve the updated electronic file information associated with the first file summary from the blockchain and authorize the second user to query the updated electronic file information.
3. The method according to claim 1, characterized in that, Also includes: Collect the biometric information of the signatory from the updated electronic record information; A hash calculation is performed on the biometric information of the signatory and the updated electronic file information to obtain the fifth file digest; as well as, The fifth document summary is uploaded to the blockchain so that when the second user queries the updated electronic document information, the updated electronic document information can be obtained from the blockchain based on the first document summary and the fifth document summary.
4. A blockchain-based electronic records management system, characterized in that, include: The first receiving module is configured to receive an update request from a first user for a certain electronic file, wherein the update request carries the first user's biometric information and the updated electronic file information. The verification module is configured to verify whether the first user has the permission to update the requested electronic file based on the first user's biometric information and the current file information of the requested electronic file. The first calculation module is configured to perform a hash calculation on the first user's biometric information and the updated electronic file information to obtain a first file digest when the verification module verifies that the user has the permission to update the requested electronic file. as well as, The upload module is configured to upload the updated electronic file information and the first file summary to the blockchain, so that when the second user queries the updated electronic file information, the updated electronic file information can be obtained from the blockchain based on the first file summary; The system also includes: The first acquisition module is configured to acquire the current electronic file information of several electronic files, as well as the biometric information of all authorized users of each of the several electronic files; The third calculation module is configured to perform hash calculations on the current electronic file information of the plurality of electronic files and the biometric information of all authorized users of each of the plurality of electronic files to obtain the third file summary of all authorized users of each of the plurality of electronic files; The second acquisition module is configured to obtain the third archive summary information of each of the several electronic archives based on the third archive summary of all authorized users of each of the several electronic archives. The upload module is further configured to upload the third archive summary information of each of the plurality of electronic archives to the blockchain; The verification module includes: The computing unit is configured to perform hash calculation on the biometric information of the first user and the file information of the requested electronic file to obtain a fourth hash digest; A query unit is configured to retrieve, from the blockchain, the third document summary information of the electronic document requested by the first user; and, The judgment unit is configured to determine whether there is a third file digest information in the third file digest information of the electronic file requested by the first user that is the same as the fourth hash digest. If so, the first user is determined to have the right to update the requested electronic file. The upload module includes: A generation unit, configured to generate several blocks in the blockchain corresponding to the aforementioned electronic files; and, The storage unit is configured to store the third archive summary information of each of the plurality of electronic archives in their respective blocks; The plurality of blocks each include their own archive root hash, which is calculated based on the third archive digest information stored in the block to which it belongs; The system also includes: The second management module is configured to associate the file root hash of each block with its corresponding electronic file in the blockchain; The query unit is specifically configured to obtain the root hash of the requested electronic file associated with it, and to find its corresponding storage block based on the root hash; and to retrieve the third file summary information corresponding to the requested electronic file from the storage block.
5. The system according to claim 4, characterized in that, Also includes: The association module is configured to associate the updated electronic document information with the first document summary in the blockchain after the upload module uploads the first document summary to the blockchain; The second receiving module is configured to receive a query request from the second user for the updated electronic file information, wherein the query request carries the biometric information of the second user. The second calculation module is configured to perform a hash calculation on the biometric information of the second user and the updated electronic file information to obtain a second file summary. The retrieval module is configured to retrieve the first file digest from the blockchain; as well as, The judgment module is configured to determine whether the second file summary is consistent with the first file summary; The authorization module is configured to retrieve the updated electronic archive information associated with the first archive summary from the blockchain when the judgment module determines that the two files are consistent, and authorize the second user to query the updated electronic archive information.
6. A terminal device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the blockchain-based electronic record management method according to any one of claims 1 to 3.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the processor performs the blockchain-based electronic record management method according to any one of claims 1 to 3.