Personnel file traceability management method based on blockchain
By checking hash values and timestamps of personnel files and digital signatures on the blockchain, the problem of data loss and tampering and traceability of personnel files is solved, and the secure storage and convenient traceability of data are realized.
Patent Information
- Application Number
- CN202211255634.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-13
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-10-13
AI Technical Summary
In the prior art, the electronic storage of personnel files has the problem of data loss and tampering and traceability difficulties, especially when the storage subject fails, data is easily lost and difficult to trace.
Adopt blockchain-based personnel archive traceability management method, generate hash values and timestamps through personal archive nodes and issuance and review nodes, perform information verification and digital signatures, and conduct consensus and on-chain storage on the blockchain to ensure data authenticity and immutability.
It effectively avoids the risk of leakage and tampering of personnel files, reduces the storage pressure of blockchain, and improves the security of data and the convenience of traceability management.
Smart Images

Figure CN115834072B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security management, and in particular to a personnel file traceability management method based on blockchain. Background Art
[0002] Personnel files record and reflect personal experience, education, social relations, ideology and morality, professional ability, work status, rewards and punishments, etc. They are an important basis for state agencies and social organizations in the process of training, selecting and employing personnel. They are historical records in text, tables and other forms that are centrally stored on an individual basis for reference. With the development of society, personnel files have transitioned from paper storage to electronic storage, mainly through centralized storage of database applications and Internet application technologies. There is a transitional dependence on the storage subject, and the personnel file data stored is easily lost when the storage subject fails, and it is difficult to trace the source of data tampering. Summary of the invention
[0003] In order to solve at least one of the above technical problems, the present invention proposes a personnel file traceability management method based on blockchain.
[0004] The purpose of the present invention is achieved through the following technical solutions:
[0005] The present invention provides a personnel file traceability management method based on blockchain. The node types of the blockchain network include personal archive nodes and issuance review nodes. The personal archive nodes and issuance review nodes both include hash modules for generating hash values for personnel files. The management method includes archiving personnel files. The specific steps are as follows:
[0006] S1. The issuing and reviewing node generates a personal personnel file for the personal archive node and sends it to the personal archive node for archive information verification;
[0007] S2. After verifying the archived information, the personal archive node feeds back the verification result to the issuing and review node;
[0008] S3. After the issuing and reviewing node confirms that the verification result is correct, it generates an archive hash value and archive timestamp based on the personal personnel file and sends them to the personal archive node for hash value verification;
[0009] S4. The personal archive node generates a personal hash value based on the personal personnel file, and checks the personal hash value with the archive hash value. After the check is consistent, the archive hash value and archive timestamp are digitally signed and the archive information is sent to the issuing review node;
[0010] S5. The issuing and reviewing node digitally signs the archived information and sends it to the blockchain for consensus and on-chain storage;
[0011] S6. After completing the storage process, the blockchain returns the blockchain storage address and block number of the archive hash value to the personal archive node.
[0012] As a further improvement, after the personnel file information changes, the archived personnel file needs to be updated. The management method includes updating the personnel file. The specific steps are as follows:
[0013] S11. The issuing and reviewing node initiates a file update request to the personal archiving node;
[0014] S12. The personal archive node feeds back the historical personnel files and the blockchain address corresponding to the historical personnel files to the issuing and reviewing node according to the file update requirements;
[0015] S13. The issuing and reviewing node generates a historical hash value based on the historical personnel file fed back, queries the archived hash value and the issued archived signature of the historical personnel file based on the fed back blockchain address, and compares the historical hash value with the archived hash value. After the verification is consistent, the issuing and reviewing node updates the personnel file for the personal archive node and sends it to the personal archive node for updated information verification;
[0016] S14, the personal archive node verifies the updated information and then feeds back the verification result to the issuing and reviewing node;
[0017] S15. After the issuing and reviewing node confirms that the verification result is correct, it generates a file update hash value and an update timestamp based on the updated personnel file, and sends them together with the issuance and archiving signature of the historical personnel file and the blockchain address of the historical personnel file to the personal archiving node for hash value verification;
[0018] S16. The personal archive node generates a personal update hash value based on the updated personnel file, and checks the personal update hash value with the file update hash value. After the check is consistent, it signs and forms an update archive information including the file update hash value, update timestamp, historical personnel file archive signature and historical personnel file blockchain address, and sends it to the issuing review node;
[0019] S17. The issuing and reviewing node digitally signs the updated archive information and sends it to the blockchain for consensus and on-chain storage;
[0020] S18. After completing the storage process, the blockchain returns the blockchain storage address and block number of the archive update hash value to the personal archive node.
[0021] As a further improvement, both the personal archive node and the issuing and review node include a key module for generating an asymmetric key. In the steps S1 and S13, after the issuing and review node generates a personnel file for the personal archive node, it obtains the personal archive public key of the personal archive node to encrypt the personnel file, and uses the issuing and review node generated The issuing archive private key is used to digitally sign the encrypted personnel file and then encrypts it and sends it to the personal archive node for information verification; in the steps S2 and S14, the personal archive node obtains the issuing and review node's issuing archive public key to decrypt the digital signature of the encrypted personnel file, and then uses the personal archive private key to decrypt the personnel file and verify the information, and then feeds back the verification result to the issuing and review node.
[0022] As a further improvement, in steps S4 and S16, after the hash values are verified to be consistent, the personal archive node generates a personal hash private key, digitally signs the hash value and timestamp, and encrypts and sends them to the issuing review node.
[0023] As a further improvement, in steps S5 and S17, the issuing and reviewing node generates a signing hash private key to digitally sign the archived information, and then encrypts and sends it to the blockchain for consensus and on-chain storage.
[0024] As a further improvement, the node type of the blockchain network includes a verification node, and the verification node includes a hash module that generates a hash value for the personnel file. The management method includes verification of the personnel file by the verification node, and the specific steps are as follows:
[0025] S21. The verification node sends a file verification request to the personal archive node and performs a digital signature;
[0026] S22. After the personal archive node confirms the identity of the verification node based on the digital signature of the archive verification request, it feeds back the personnel file and its corresponding blockchain storage address to the verification node;
[0027] S23. The verification node generates a verification hash value based on the fed-back personnel file, queries the archived hash value of the personnel file based on the fed-back blockchain storage address, compares the verification hash value with the archived hash value and feeds back the comparison result to the personal archive node.
[0028] As a further improvement, the verification node includes a key module for generating an asymmetric key. In the step S21, the verification node generates a verification identity private key to digitally sign the archive verification request. In the step S22, the personal archive node decrypts the digital signature through the verification identity public key and then confirms the identity of the verification node.
[0029] As a further improvement, in step S22, the personal archive node obtains the verification file public key to encrypt the personnel file and its corresponding blockchain storage address, generates a personal verification private key, digitally signs it, and then encrypts and feeds it back to the verification node. In step S23, the verification node obtains the personal verification public key to decrypt the digital signature, decrypts the personnel file using the verification file private key, and then generates a verification hash value.
[0030] As a further improvement, the management method includes the verification node to trace the personnel files. The specific steps are as follows:
[0031] S31. The verification node sends an archive traceability request to the personal archive node and performs a digital signature;
[0032] S32. After the personal archive node confirms the identity of the verification node based on the digital signature of the archive traceability request, it feeds back the personnel file and its corresponding blockchain storage address to the verification node;
[0033] S33. The verification node generates a verification hash value based on the personnel file, queries the archived hash value of the personnel file based on the blockchain storage address, and compares the verification hash value with the archived hash value;
[0034] S34. After verification, the verification node obtains the historical personnel files and the blockchain address of the historical personnel files according to the blockchain storage address, and determines whether the historical personnel files and the blockchain address of the historical personnel files exist. If they do, jump to step S33; if not, jump to step S35.
[0035] S35, feeding back the verification result to the personal archive node;
[0036] As a further improvement, the key module generates an asymmetric key including the following steps:
[0037] S41, randomly define two prime numbers p and q, and calculate n=p*q;
[0038] S42, calculate the Euler function of n: φ(n)=(p-1)*(q-1);
[0039] S43, randomly define an integer e that satisfies the following conditions: 1<e<φ(n), and e and φ(n) are relatively prime;
[0040] S44. Define an integer d and calculate ed≡1(modφ(n));
[0041] S45. Obtain public key PK=(n, e) and private key SK=(n, d).
[0042] The personnel file traceability management method based on blockchain provided by the present invention comprises a blockchain network node type including a personal archive node and an issuance review node, both the personal archive node and the issuance review node include a hash module for generating a hash value for the personnel file, and the management method comprises the steps of archiving the personnel file: S1, the issuance review node generates a personal personnel file for the personal archive node, and sends it to the personal archive node for archiving information verification; S2, the personal archive node verifies the archive information and then feeds back the verification result to the issuance review node; S3, after the issuance review node confirms that the verification result is correct, Generate an archive hash value and archive timestamp based on the personal personnel file and send them to the personal archive node for hash value verification; S4, the personal archive node generates a personal hash value based on the personal personnel file, and verifies the personal hash value with the archive hash value. After the verification is consistent, the archive hash value and archive timestamp are digitally signed and archive information is formed and sent to the issuing and reviewing node; S5, the issuing and reviewing node digitally signs the archive information and sends it to the blockchain for consensus and chain storage; S6, after the blockchain completes the storage process, it returns the blockchain storage address and block number of the archive hash value to the personal archive node. The issuing and reviewing node of the present invention generates a personal personnel file, sends it to the personal archive node for storage and verification, generates a personnel file hash value through the issuing and reviewing node, and is verified and digitally signed by the personal archive node. At the same time, the issuing and reviewing node digitally signs again to ensure the authenticity of the personnel file corresponding to the stored hash value. The personnel file hash value is stored on the chain and obtained by other blockchain nodes, avoiding the risk of personnel file leakage and tampering, reducing the amount of chain information storage, and reducing the block storage pressure of the blockchain. In the process of uploading data to the chain, the transaction content and transaction address of the personnel files are packaged and archived to facilitate the traceability management of the personnel files. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is an overall schematic diagram of the personnel file traceability management of the present invention;
[0044] Figure 2 A schematic diagram of the process of archiving personnel files of the present invention;
[0045] Figure 3 A schematic diagram of the process of updating the personnel file of the present invention;
[0046] Figure 4 It is a flow chart of the personnel file tracing process of the present invention. DETAILED DESCRIPTION
[0047] The present invention relates to the following glossary:
[0048] Blockchain: It is a shared distributed ledger that solves the problem of digital trust by securely recording important information in a public space, where transactions are permanently recorded through additional blocks, and the data stored on the blocks exists in a shared and constantly coordinated state, which is traceable and prevents data from being tampered with.
[0049] Asymmetric encryption: includes corresponding public keys and private keys. The ciphertext encrypted by the public key must be decrypted using the private key paired with the public key.
[0050] Hash function: It is often used as a compression function in the field of cryptography to generate data of fixed length through compression.
[0051] Combination Figure 1 As shown, an embodiment of the present invention provides a personnel file traceability management method based on blockchain. The management method includes archiving, updating, verification and tracing of personnel files. Personnel involved in the management method register and log in to the blockchain system, so that the node types of the blockchain network include personal archiving nodes and issuance review nodes, which are mainly used for archiving and updating personnel files, as well as coordinating verification and tracing. According to the characteristics of the blockchain, smart contracts are deployed on the blockchain nodes, and specific conditions are set to execute the contents involved in the method. The personal archiving node is the personal owner of the personnel file, and the issuance review node performs issuance operations when archiving the personnel file, as well as audit operations when the personnel file is updated. The personal archiving node and the issuance review node both include a hash module that generates a hash value for the personnel file. The hash module mainly includes a hash function, and a hash value is generated for the personnel file through the hash function. The specific steps for archiving personnel files are as follows:
[0052] S1. The issuing and reviewing node generates a personal personnel file for the personal archive node and sends it to the personal archive node for archive information verification;
[0053] S2. After verifying the archived information, the personal archive node feeds back the verification result to the issuing and review node;
[0054] S3. After the issuing and reviewing node confirms that the verification result is correct, it generates an archive hash value and archive timestamp based on the personal personnel file and sends them to the personal archive node for hash value verification;
[0055] S4. The personal archive node generates a personal hash value based on the personal personnel file, and checks the personal hash value with the archive hash value. After the check is consistent, the archive hash value and archive timestamp are digitally signed and the archive information is sent to the issuing review node;
[0056] S5. The issuing and reviewing node digitally signs the archived information and sends it to the blockchain for consensus and on-chain storage;
[0057] S6. After completing the storage process, the blockchain returns the blockchain storage address and block number of the archive hash value to the personal archive node.
[0058] In order to avoid the leakage of plaintext information of personnel files transmitted between personal archiving nodes and issuing and review nodes when archiving personnel files, both personal archiving nodes and issuing and review nodes include key modules for generating asymmetric keys, which encrypt and decrypt the plaintext information of personnel files before transmission, thereby improving the security of file transmission.
[0059] The key module generates the public key PK and private key SK of the asymmetric key including the following steps:
[0060] S41, randomly define two prime numbers p and q, and calculate n=p*q;
[0061] S42, calculate the Euler function of n: φ(n)=(p-1)*(q-1);
[0062] S43, randomly define an integer e that satisfies the following conditions: 1<e<φ(n), and e and φ(n) are relatively prime;
[0063] S44. Define an integer d and calculate ed≡1(modφ(n)) such that ed-1 is a multiple of φ(n);
[0064] S45. Obtain public key PK=(n, e) and private key SK=(n, d).
[0065] The encryption and decryption involved in the file transmission of personnel files during archiving are as follows: in step S1, after the issuing and reviewing node generates a personnel file for the personal archiving node, it obtains the personal archiving public key of the personal archiving node to encrypt the personnel file, and uses the issuing and reviewing node to digitally sign the encrypted personnel file and encrypt it and send it to the personal archiving node for information verification; in step S2, the personal archiving node obtains the issuing and reviewing node's issuing and reviewing public key to decrypt the personal archiving node digital signature of the encrypted personnel file, and then uses the personal archiving private key to decrypt the personnel file and verify the archived information and then feedback the verification result to the issuing and reviewing node; in step S4, after the personal hash value is verified to be consistent with the archived hash value, the personal archiving node generates a personal hash private key to digitally sign the archived hash value and archived timestamp and encrypt it and send it to the issuing and reviewing node. In step S5, the issuing and reviewing node generates a issuing hash private key to digitally sign the archived information and encrypt it and send it to the blockchain for consensus and on-chain storage.
[0066] As a further preferred implementation method, as the personnel file information of personal experience, education, social relations, ideology and morality, professional ability, work status and rewards and penalties changes, it is necessary to update the archived personnel files. The management method includes updating the personnel files. The specific steps are as follows:
[0067] S11. The issuing and reviewing node initiates a file update request to the personal archiving node;
[0068] S12. The personal archive node feeds back the historical personnel files and the blockchain address corresponding to the historical personnel files to the issuing and reviewing node according to the file update requirements;
[0069] S13. The issuing and reviewing node generates a historical hash value based on the historical personnel file fed back, queries the archived hash value and the issued archived signature of the historical personnel file based on the fed back blockchain address, and compares the historical hash value with the archived hash value. After the verification is consistent, the issuing and reviewing node updates the personnel file for the personal archive node and sends it to the personal archive node for updated information verification;
[0070] S14, the personal archive node verifies the updated information and then feeds back the verification result to the issuing and reviewing node;
[0071] S15. After the issuing and reviewing node confirms that the verification result is correct, it generates a file update hash value and an update timestamp according to the updated personnel file, and sends them together with the issuance and archiving signature of the historical personnel file and the blockchain address of the historical personnel file to the personal archive node for hash value verification. It should be noted that for the update of this personnel file, the historical personnel file here refers to, if the last personnel file operation is to archive the personnel file, then what is sent to the personal archive node here is the issuance and archiving signature of the last personnel file and the blockchain address of the last personnel file archive; if the last operation of the historical personnel file is to update the personnel file, then what is sent to the personal archive node here is the issuance and update signature of the last personnel file and the blockchain address of the last personnel file update;
[0072] S16. The personal archive node generates a personal update hash value based on the updated personnel file, and checks the personal update hash value with the file update hash value. After the check is consistent, it signs and forms an updated archive information including the file update hash value, update timestamp, archive signature of the historical personnel file and the blockchain address of the historical personnel file, and sends it to the issuing review node;
[0073] S17. The issuing and reviewing node digitally signs the updated archive information and sends it to the blockchain for consensus and on-chain storage;
[0074] S18. After completing the storage process, the blockchain returns the blockchain storage address and block number of the archive update hash value to the personal archive node.
[0075] In the embodiment of the present invention, the issuing and reviewing node generates a personal personnel file, sends it to the personal archive node for storage and verification, generates a personnel file hash value through the issuing and reviewing node, verifies and digitally signs it by the personal archive node, and digitally signs it again at the same time, to ensure the authenticity of the personnel file corresponding to the stored hash value. The personnel file hash value is stored on the chain and obtained by other blockchain nodes, avoiding the risk of leakage and tampering of the personnel file. Compared with the block storage structure of the blockchain, the amount of information stored on the chain is reduced, and the block storage pressure of the blockchain is reduced. In the process of data on the chain, the transaction content and transaction address of the personnel file are packaged to facilitate the subsequent update, verification and traceability management of the personnel file.
[0076] In order to avoid the leakage of plaintext information of personnel files transmitted between personal archive nodes and issuance and review nodes when personnel files are updated, both personal archive nodes and issuance and review nodes include key modules for generating asymmetric keys, which encrypt and decrypt the plaintext information of personnel files before transmission, thereby improving the security of file transmission. The encryption and decryption involved in the file transmission when the personnel file is updated are as follows: in the step S13, after the issuing and reviewing node generates the personnel file for the personal archive node, it obtains the personal archive public key of the personal archive node to encrypt the personnel file, and uses the issuing and reviewing node to digitally sign the encrypted personnel file and encrypt it and send it to the personal archive node for update information verification; in the step S14, the personal archive node obtains the issuing and reviewing node's issuing and reviewing public key, decrypts the issuing and reviewing node's digital signature of the encrypted personnel file, and then uses the personal archive private key to decrypt the personnel file and verify the update information, and then feeds back the verification result to the issuing and reviewing node; in the step S16, after the personal update hash value and the file update hash value are verified to be consistent, the personal archive node generates a personal hash private key, digitally signs the file update hash value and the update timestamp, and encrypts and sends them to the issuing and reviewing node; in the step S17, the issuing and reviewing node generates a issuing hash private key, digitally signs the archive information, and then encrypts and sends it to the blockchain for consensus and on-chain storage.
[0077] It should be noted that the personal archive public key and personal archive private key as well as the personal hash public key and personal hash private key of the personal archive node can be the same pair of asymmetric keys generated, or they can be two pairs of asymmetric keys generated separately. The issuance archive public key and the issuance archive private key as well as the issuance hash public key and the issuance hash private key of the issuance and review node can be the same pair of asymmetric keys generated, or they can be two pairs of asymmetric keys generated separately. If the two groups are the same pair of asymmetric keys, only one asymmetric key needs to be generated during encryption and decryption. When the two groups are two pairs of asymmetric keys, it is more conducive to the security of information during transmission. There is no limitation here and it can be selected according to application requirements.
[0078] As a further preferred implementation, the node type of the blockchain network includes a verification node, and the verification node includes a hash module that generates a hash value for the personnel file. The management method includes verification of the personnel file by the verification node, and the specific steps are as follows:
[0079] S21. The verification node sends a file verification request to the personal archive node and performs a digital signature. The file verification request includes an archive verification request or an update verification request.
[0080] S22. After the personal archive node confirms the identity of the verification node based on the digital signature of the archive verification request, it feeds back the personnel file and its corresponding blockchain storage address to the verification node;
[0081] S23. The verification node generates a verification hash value based on the fed-back personnel file, queries the archived hash value or updates the hash value of the personnel file based on the fed-back blockchain storage address, compares the verification hash value with the archived hash value and feeds back the comparison result to the personal archive node.
[0082] As a further preferred implementation, the verification node includes a key module for generating an asymmetric key. In the step S21, the verification node generates a verification identity private key to digitally sign the archive verification request. In the step S22, the personal archive node decrypts the digital signature through the verification identity public key and then confirms the identity of the verification node.
[0083] As a further preferred implementation, in step S22, after the personal archive node obtains the verification archive public key to encrypt the personnel file and its corresponding blockchain storage address, it generates a personal verification private key to perform digital signature and then encrypts and feeds back to the verification node. In step S23, after the verification node obtains the personal verification public key to decrypt the digital signature, it uses the verification archive private key to decrypt the personnel file and generates a verification hash value. The archive hash value of the personnel file is queried according to the feedback blockchain storage address. In this step, if the blockchain storage address is encrypted when archiving or updating the personnel file, the blockchain storage address at this time needs to first obtain the issuance hash public key to decrypt the digital signature of the issuance review node of the archive information, obtain the personal hash public key of the personal archive node to decrypt the personal archive node digital signature, and then obtain the archive hash value and archive timestamp or update hash value and update timestamp, and then check the verification hash value with the archive hash value or update hash value.
[0084] As a further preferred implementation, the management method includes tracing the personnel files by the verification node, and the specific steps are as follows:
[0085] S31. The verification node sends an archive traceability request to the personal archive node and performs a digital signature;
[0086] S32. After the personal archive node confirms the identity of the verification node based on the digital signature of the archive traceability request, it feeds back the personnel file and its corresponding blockchain storage address to the verification node;
[0087] S33. The verification node generates a verification hash value based on the personnel file, queries the archived hash value of the personnel file based on the blockchain storage address, and compares the verification hash value with the archived hash value;
[0088] S34. After the verification is consistent, the verification node obtains the historical personnel file and the blockchain address of the historical personnel file according to the blockchain storage address, and determines whether the historical personnel file and the blockchain address of the historical personnel file exist. If they exist, it means that the current personnel file has been updated after being archived, and jumps to step S33 until there is no traceable historical personnel file for the current personnel file; if they do not exist, it means that the current personnel file has only been archived, and jumps to step S35;
[0089] S35. Feedback the verification result to the personal archive node.
[0090] It should be noted that when the verification node traces the personnel file, if it involves encryption and decryption in the file transmission process, please refer to the file transmission encryption and decryption involved in the archiving, updating and verification steps of the personnel file. It will not be repeated here, and it should have the same or corresponding technical effect.
[0091] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0092] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A personnel file traceability management method based on blockchain, characterized in that: The node types of the blockchain network include personal archive nodes and issuance review nodes. Both the personal archive nodes and the issuance review nodes include a hash module that generates a hash value for the personnel file. The management method includes archiving the personnel file. The specific steps are as follows: S1. The issuing and reviewing node generates a personal personnel file for the personal archive node and sends it to the personal archive node for archive information verification; S2. After verifying the archived information, the personal archive node feeds back the verification result to the issuing and review node; S3. After the issuing and reviewing node confirms that the verification result is correct, it generates an archive hash value and archive timestamp based on the personal personnel file and sends them to the personal archive node for hash value verification; S4. The personal archive node generates a personal hash value based on the personal personnel file, and checks the personal hash value with the archive hash value. After the check is consistent, the archive hash value and archive timestamp are digitally signed and the archive information is sent to the issuing review node; S5. The issuing and reviewing node digitally signs the archived information and sends it to the blockchain for consensus and on-chain storage; S6. After completing the storage process, the blockchain returns the blockchain storage address and block number of the archive hash value to the personal archive node.
2. According to the blockchain-based personnel file traceability management method of claim 1, it is characterized in that: After the personnel file information changes, the archived personnel file needs to be updated. The management method includes updating the personnel file. The specific steps are as follows: S11. The issuing and reviewing node initiates a file update request to the personal archiving node; S12. The personal archive node feeds back the historical personnel files and the blockchain address corresponding to the historical personnel files to the issuing and reviewing node according to the file update requirements; S13. The issuing and reviewing node generates a historical hash value based on the historical personnel file fed back, queries the archived hash value and the issued archived signature of the historical personnel file based on the fed back blockchain address, and compares the historical hash value with the archived hash value. After the verification is consistent, the issuing and reviewing node updates the personnel file for the personal archive node and sends it to the personal archive node for updated information verification; S14, the personal archive node verifies the updated information and then feeds back the verification result to the issuing and reviewing node; S15. After the issuing and reviewing node confirms that the verification result is correct, it generates a file update hash value and an update timestamp based on the updated personnel file, and sends them together with the issuance and archiving signature of the historical personnel file and the blockchain address of the historical personnel file to the personal archiving node for hash value verification; S16. The personal archive node generates a personal update hash value based on the updated personnel file, and checks the personal update hash value with the file update hash value. After the check is consistent, it signs and forms an update archive information including the file update hash value, update timestamp, historical personnel file archive signature and historical personnel file blockchain address, and sends it to the issuing review node; S17. The issuing and reviewing node digitally signs the updated archive information and sends it to the blockchain for consensus and on-chain storage; S18. After completing the storage process, the blockchain returns the blockchain storage address and block number of the archive update hash value to the personal archive node.
3. The personnel file traceability management method based on blockchain according to claim 2 is characterized in that: Both the personal archive node and the issuing and review node include a key module for generating an asymmetric key. In the steps S1 and S13, after the issuing and review node generates a personnel file for the personal archive node, it obtains the personal archive public key of the personal archive node to encrypt the personnel file, and uses the issuing and review node generated The issuing archive private key is used to digitally sign the encrypted personnel file and then encrypts it and sends it to the personal archive node for information verification; in the steps S2 and S14, the personal archive node obtains the issuing and review node's issuing archive public key to decrypt the digital signature of the encrypted personnel file, and then uses the personal archive private key to decrypt the personnel file and verify the information, and then feeds back the verification result to the issuing and review node.
4. The personnel file traceability management method based on blockchain according to claim 3 is characterized in that: In the steps S4 and S16, after the hash values are verified to be consistent, the personal archive node generates a personal hash private key, digitally signs the hash value and timestamp, and encrypts and sends them to the issuing review node.
5. The personnel file traceability management method based on blockchain according to claim 4 is characterized in that: In steps S5 and S17, the issuing and reviewing node generates a signing hash private key to digitally sign the archived information, and then encrypts and sends it to the blockchain for consensus and on-chain storage.
6. The personnel file traceability management method based on blockchain according to claim 5 is characterized in that: The node types of the blockchain network include verification nodes, and the verification nodes include a hash module that generates a hash value for the personnel file. The management method includes verification of the personnel file by the verification node, and the specific steps are as follows: S21. The verification node sends a file verification request to the personal archive node and performs a digital signature; S22. After the personal archive node confirms the identity of the verification node based on the digital signature of the archive verification request, it feeds back the personnel file and its corresponding blockchain storage address to the verification node; S23. The verification node generates a verification hash value based on the fed-back personnel file, queries the archived hash value of the personnel file based on the fed-back blockchain storage address, compares the verification hash value with the archived hash value and feeds back the comparison result to the personal archive node.
7. The personnel file traceability management method based on blockchain according to claim 6 is characterized in that: The verification node includes a key module for generating an asymmetric key. In the step S21, the verification node generates a verification identity private key to digitally sign the archive verification request. In the step S22, the personal archive node decrypts the digital signature through the verification identity public key and then confirms the identity of the verification node.
8. The personnel file traceability management method based on blockchain according to claim 7 is characterized in that: In step S22, the personal archive node obtains the verification file public key to encrypt the personnel file and its corresponding blockchain storage address, generates a personal verification private key, digitally signs it, and then encrypts and feeds it back to the verification node. In step S23, the verification node obtains the personal verification public key to decrypt the digital signature, decrypts the personnel file using the verification file private key, and then generates a verification hash value.
9. The personnel file traceability management method based on blockchain according to claim 6, 7 or 8 is characterized in that: The management method includes verifying the traceability of personnel files by the node. The specific steps are as follows: S31. The verification node sends an archive traceability request to the personal archive node and performs a digital signature; S32. After the personal archive node confirms the identity of the verification node based on the digital signature of the archive traceability request, it feeds back the personnel file and its corresponding blockchain storage address to the verification node; S33. The verification node generates a verification hash value based on the personnel file, queries the archived hash value of the personnel file based on the blockchain storage address, and compares the verification hash value with the archived hash value; S34. After the verification is consistent, the verification node obtains the historical personnel file and the blockchain address of the historical personnel file according to the blockchain storage address, and determines whether the historical personnel file and the blockchain address of the historical personnel file exist. If yes, jump to step S33; if not, jump to step S35; S35. Feedback the verification result to the personal archive node.
10. The personnel file traceability management method based on blockchain according to claim 3 or 7 is characterized in that: The key module generates an asymmetric key including the following steps: S41, randomly define two prime numbers p and q, and calculate n=p*q; S42, calculate the Euler function of n: φ(n)=(p-1)*(q-1); S43, randomly define an integer e that satisfies the following conditions: 1<e<φ(n), and e and φ(n) are relatively prime; S44. Define an integer d and calculate ed≡1(modφ(n)); S45. Obtain public key PK=(n, e) and private key SK=(n, d).
