A method and system for verifying asset data
By using asymmetric keys and hash value verification in the economic verification system, the problem of data loss and untimely updates during data transmission is solved, the accuracy and reliability of asset data are improved, and the accuracy of social assistance work is ensured. sex.
Patent Information
- Application Number
- CN202210936779.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-08-05
AI Technical Summary
The existing economic verification system is prone to data loss and untimely data updates during the asset data transmission process, resulting in asset data distortion and affecting the accuracy of social assistance work.
By setting a pair of asymmetric keys at the sending end and receiving end of the economic verification system, public key encryption and private key decryption are used to generate hash values for check code comparison to ensure the consistency of data transmission and pass Set time thresholds to constrain data updates.
It improves the accuracy and reliability of asset data, ensures the real-time and accuracy of data transmission, prevents data denial, and reminds administrators for follow-up processing.
Smart Images

Figure CN115314283B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and system for verifying asset data. Background Art
[0002] In the field of people's livelihood and social assistance, staff usually need to use the economic verification system to process and verify asset data in order to determine whether the applicant meets the conditions for applying for social assistance.
[0003] The current method of processing asset data in the economic verification system is to first collect the big data of the applicant's asset information, which is usually summarized and sorted by the various government functional departments as the data producer, and then the data producer sends the applicant's asset data to the economic verification system builder as the data user. When verifying the asset data, the data user receives the data sent by the data producer and determines whether the current applicant meets the conditions based on the threshold of the conditions for applying for social assistance, thereby obtaining a definite result.
[0004] However, in the current method of processing asset data in the economic verification system, since the data is not controlled during the transmission process, data loss and untimely data updating are prone to occur in the data producer, data receiver and data transmission process. Data loss or failure to update data in time during transmission will cause asset data distortion, affect the accuracy of asset data processing, and thus have a certain impact on the accuracy of social assistance work. Summary of the invention
[0005] The present application provides a method and system for verifying asset data to solve the problem that the methods in the prior art result in insufficient accuracy of asset data.
[0006] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:
[0007] A method for verifying asset data, the method comprising:
[0008] The data producer in the economic verification system is defined as a sender, and the data user in the economic verification system is defined as a receiver. The sender and receiver each have a pair of asymmetric keys, and the sender and receiver simultaneously obtain the public key of the other end.
[0009] The sending end obtains an asset data query request, wherein the asset data query request includes: a request timestamp, an applicant's name, and an applicant's ID number;
[0010] According to the obtained asset data query request, determine whether the time difference between the request timestamp and the local time is greater than the set time threshold;
[0011] If yes, return query error;
[0012] If not, the sending end generates a verification code by encrypting the hash value according to the request timestamp, the applicant's name, the applicant's ID number, and the asset data, and sends the request timestamp, the applicant's name, the applicant's ID number, the asset data, and the verification code to the receiving end;
[0013] The receiving end concatenates the request timestamp, the name of the applicant, the ID number of the applicant and the asset data of the applicant, and generates a first hash value using a hash algorithm, where the first hash value is a locally generated data hash value;
[0014] The receiving end decrypts the verification code using the public key of the sending end to obtain a second hash value, where the second hash value is a data hash value of the sending end;
[0015] comparing the first hash value with the second hash value;
[0016] If the first hash value is consistent with the second hash value, the asset data is determined to be credible data and the verification is successful;
[0017] If the first hash value is inconsistent with the second hash value, the asset data is determined to be untrustworthy data and the verification fails.
[0018] Optionally, after obtaining the verification result, the method further includes:
[0019] The receiving end returns receipt data to the sending end, and the receipt data includes: first receipt data indicating that the verification is passed and second receipt data indicating that the verification is not passed.
[0020] Optionally, the method for determining that the asset data is credible data and passing the verification, the receiving end returning receipt data to the sending end, includes:
[0021] The receiving end concatenates the request timestamp of the verified asset data, the first hash value, and the status code 0 used to indicate the verification is passed to generate a third hash value;
[0022] Encrypting the third hash value using a private key of the receiving end;
[0023] Convert the ciphertext encrypted by the third hash value into a first BASE64 code, and use the first BASE64 code as a first receipt verification code;
[0024] The first receipt data is composed of the first receipt verification code, the request timestamp of the verified asset data, the third hash value and the status code 0;
[0025] The first receipt data is returned to the sending end.
[0026] Optionally, when the asset data is determined to be untrustworthy data and verification fails, the method in which the receiving end returns receipt data to the sending end includes:
[0027] The receiving end concatenates the request timestamp of the asset data that failed the verification, the first hash value, and the status code 1 used to indicate the verification failure to generate a fourth hash value;
[0028] Encrypting the fourth hash value using a private key of the receiving end;
[0029] Convert the encrypted ciphertext of the fourth hash value into a second BASE64 code, and use the second BASE64 code as a second receipt verification code;
[0030] The second receipt data is composed using the second receipt verification code, the request timestamp of the asset data that failed the verification, the fourth hash value, and the status code 1;
[0031] The second receipt data is returned to the sending end.
[0032] Optionally, the sending end performs hash value encryption to generate a verification code according to the request timestamp, the applicant's name, the applicant's ID number and the asset data, and sends the request timestamp, the applicant's name, the applicant's ID number, the asset data and the verification code to the receiving end, including:
[0033] The sending end retrieves the asset data of the applicant from the local system according to the name and ID number of the applicant, wherein the asset data includes: the asset information of the applicant, the time of acquiring the assets, the income information and the time of acquiring the income;
[0034] After concatenating the request timestamp, the name of the applicant, the ID number of the applicant, the asset information of the applicant, the time of obtaining the assets, the income information, and the time of obtaining the income, a fifth hash value is generated using a hash algorithm;
[0035] encrypting the fifth hash value using a private key of the sender;
[0036] Convert the ciphertext encrypted by the fifth hash value into a third BASE64 code, and use the third BASE64 code as a check code;
[0037] The verification code is sent to a receiving end.
[0038] Optionally, after the receiving end returns the receipt data to the sending end, the method further includes:
[0039] The sending end verifies the receipt data and obtains a status code of the receipt data;
[0040] When the status code of the receipt data is 0, it is determined that the receipt data has been verified by the receiving end, and the sending end saves the receipt data;
[0041] When the status code of the receipt data is 1, it is determined that the receipt data has not been verified by the receiving end, and an alarm message is sent.
[0042] Optionally, the algorithm for encrypting the hash value is: RSA encryption algorithm or SM2 algorithm.
[0043] A system for verifying asset data, the system comprising:
[0044] A definition module is used to define the data producer in the economic verification system as a sender, and define the data user in the economic verification system as a receiver, and the sender and receiver each have a pair of asymmetric keys, and the sender and receiver simultaneously obtain the public key of the other end;
[0045] The sending end is used to obtain an asset data query request, wherein the asset data query request includes: a request timestamp, an applicant's name, and an applicant's ID number;
[0046] The sending end is further used to determine whether the time difference between the request timestamp and the local time is greater than a set time threshold according to the obtained asset data query request, and if so, return a query error; if not, perform hash value encryption to generate a verification code according to the request timestamp, the applicant's name, the applicant's ID number and the asset data, and send the request timestamp, the applicant's name, the applicant's ID number, the asset data and the verification code to the receiving end;
[0047] The receiving end is used to concatenate the request timestamp, the name of the applicant, the ID number of the applicant and the asset data of the applicant, and then generate a first hash value using a hash algorithm, where the first hash value is a locally generated data hash value;
[0048] The receiving end is further used to decrypt the verification code using the public key of the sending end to obtain a second hash value, where the second hash value is a data hash value of the sending end;
[0049] The receiving end is also used to compare the first hash value with the second hash value. If the first hash value is consistent with the second hash value, the asset data is determined to be credible data and the verification is successful. If the first hash value is inconsistent with the second hash value, the asset data is determined to be untrustworthy data and the verification is unsuccessful.
[0050] Optionally, the receiving end is further used to return receipt data to the sending end, and the receipt data includes: first receipt data indicating that the verification is passed and second receipt data indicating that the verification is not passed.
[0051] Optionally, the sending end is also used to verify the receipt data and obtain the status code of the receipt data. When the status code of the receipt data is 0, it is determined that the receipt data has been verified by the receiving end, and the sending end saves the receipt data. When the status code of the receipt data is 1, it is determined that the receipt data has not been verified by the receiving end, and an alarm message is sent.
[0052] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0053] The present application provides a method for verifying asset data. The method first defines the sending end and receiving end of the data, and each end has a pair of asymmetric keys. The present embodiment adopts an asymmetric key recognized by both the sending end and the receiving end, which can achieve consistency in data transmission between the two ends and improve verification efficiency. The sending end and the receiving end both have the public key of the other end, so as to decrypt with the public key of the other end. Then the sending end obtains the asset data query request from the receiving end, and determines whether it is within the query range according to the request timestamp in the request. If it is within the query range, the sending end performs hash value encryption based on the request information and the asset data to generate a verification code, and sends the transmission data and the verification code to the receiving end. The receiving end performs data splicing, and generates a first hash value using a hash algorithm, and decrypts the verification code using the public key of the sending end to generate a second hash value. Finally, the two hash values are compared to see if they are consistent. If they are consistent, the asset data is determined to be credible and the verification is passed. Otherwise, the verification is determined to be failed. In this embodiment, by setting a set time threshold, it is ensured that the next step of data verification can only be started when the time difference is less than or equal to the set time threshold, which is conducive to constraining the sending end and the receiving end of data exchange to update and maintain data in a timely manner, thereby improving the accuracy and reliability of asset data in the economic verification system. By comparing the first hash value and the second hash value, when the two are consistent, it is proved that the asset data is transmitted from the sending end to the receiving end, and the sending end cannot deny the data that has been sent. This verification method is conducive to improving the accuracy of asset data in the economic verification system. When the first hash value and the second hash value are inconsistent, it is proved that the asset data from the sending end is unreliable, and a data alarm can be issued to remind the administrator to perform subsequent processing.
[0054] After obtaining the verification result, the receiving end of this embodiment also returns receipt data to the sending end. Depending on whether the verification is successful, the receiving end returns different receipt data. By returning the receipt data, the sending end can obtain evidence that the receiving end has received the data. Since the receipt data includes the receipt verification code, the encrypted hash value, and the status code, even if the receiving end deletes the data, it cannot be denied, which is conducive to improving the accuracy of the asset data verification results, thereby improving the real-time and accuracy of the asset data.
[0055] In this embodiment, after the receiving end returns the receipt data to the sending end, the sending end also verifies the receipt data, thereby further confirming the reliability of the receipt data, which is conducive to further improving the accuracy and reliability of the asset data verification results.
[0056] The present application also provides a system for verifying asset data, which mainly includes: a definition module, a sending end and a receiving end. The definition module encrypts the sending end and the receiving end to provide a basis for subsequent data transmission and improve the efficiency of data transmission. The sending end in this embodiment can first determine whether the time difference is a query requirement according to the asset data query request of the receiving end. Only when the time difference is less than or equal to the set time threshold, the subsequent query is started, and the hash value is encrypted to generate a verification code. This method can constrain the sending end and the receiving end to update and maintain data in a timely manner. In this embodiment, the receiving end decrypts the verification code and compares the first hash value with the second hash value to confirm whether the asset is credible data. When the two are consistent, it proves that the asset data is transmitted from the sending end to the receiving end, and the sending end cannot deny the data that has been sent. This verification method is conducive to improving the accuracy of asset data in the economic verification system. When the first hash value and the second hash value are inconsistent, it proves that the asset data from the sending end is unreliable, and a data alarm can be issued to remind the administrator to perform subsequent processing.
[0057] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0060] Figure 1 A flowchart of a method for verifying asset data provided in an embodiment of the present application;
[0061] Figure 2 A schematic diagram of the structure of a system for verifying asset data provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0063] In order to better understand the present application, the implementation methods of the present application are explained in detail below with reference to the accompanying drawings.
[0064] Embodiment 1
[0065] See also Figure 1 , Figure 1 A flowchart of a method for verifying asset data provided by an embodiment of the present application. Figure 1 It can be seen that the method for verifying asset data in this embodiment mainly includes the following processes:
[0066] S0: The data producer in the economic verification system is defined as the sender, and the data user in the economic verification system is defined as the receiver. The sender and the receiver each have a pair of asymmetric keys, and the sender and the receiver obtain the public key of the other party at the same time.
[0067] Checking the economic status of resident households is an important pre-procedure for applying for social assistance. The verification report generated after the economic status verification directly affects whether the applicant's application is successful. When checking the economic status, an economic verification system is usually used, and the data of the economic status verification system mainly comes from various government functional departments, that is, the data producer, which is defined as the data sender in this embodiment. The economic verification system builder is the data user, which is defined as the data receiver in this embodiment.
[0068] In this embodiment, the sending end and the receiving end each have a pair of asymmetric keys, the private key is used for encryption, and the public key is used for decryption. The keys are generated by the data sending end and the receiving end respectively, and before data exchange, the sending end and the receiving end simultaneously obtain the public key of the other end, thereby ensuring the smooth verification of asset data.
[0069] S1: The sender obtains the asset data query request.
[0070] The receiving end first initiates an asset data query request, and the sending end can obtain the asset data query request. The asset data query request of this embodiment includes: request timestamp, applicant name, applicant ID number. The request timestamp is the number corresponding to the current request time.
[0071] Continue to see Figure 1It can be seen that after the sender obtains the asset data query request, step S2 is executed: according to the obtained asset data query request, it is determined whether the time difference between the request timestamp and the local time is greater than the set time threshold.
[0072] The time threshold set in this embodiment can be flexibly set according to user needs, for example, it can be determined according to the number of budget personnel currently applying for social assistance. Usually 1 second can be selected, that is, when the time difference between the request timestamp and the local time exceeds 1 second, a query error is returned and the process ends. Only when the time difference is less than or equal to 1 second will the subsequent asset data verification continue.
[0073] If the time difference between the request timestamp and the local time is less than or equal to the set time threshold, execute step S3: the sending end encrypts the hash value to generate a verification code based on the request timestamp, applicant name, applicant ID number and asset data, and sends the request timestamp, applicant name, applicant ID number, asset data and verification code to the receiving end.
[0074] Specifically, step S3 includes the following process:
[0075] S31: The sending end retrieves the applicant's asset data from the local system based on the applicant's name and ID number. The asset data includes: the applicant's asset information, the time of acquiring the assets, income information, and the time of acquiring the income.
[0076] S32: After concatenating the request timestamp, the applicant's name, the applicant's ID number, the applicant's asset information, the time of acquiring the assets, the income information, and the time of acquiring the income, a fifth hash value is generated using a hash algorithm.
[0077] The hash algorithm may adopt a HASH algorithm, and accordingly, a hash value generated by the hash algorithm is a HASH value.
[0078] S33: Encrypt the fifth hash value using the private key of the sender.
[0079] In this embodiment, the algorithm for encrypting the hash value may be: RSA encryption algorithm or SM2 algorithm.
[0080] S34: Convert the ciphertext encrypted by the fifth hash value into a third BASE64 code, and use the third BASE64 code as a verification code.
[0081] S35: Send the verification code to the receiving end.
[0082] The data format of the sending end in this embodiment is shown in Table 1 below:
[0083]
[0084]
[0085] Table 1 Data format generated by the sender
[0086] Continue to see Figure 1 It can be seen that after the sending end sends the request timestamp, the applicant's name, the applicant's ID number, the asset data and the verification code to the receiving end, step S4 is executed: the receiving end concatenates the request timestamp, the applicant's name, the applicant's ID number and the applicant's asset data, and generates a first hash value using a hash algorithm. The first hash value is a locally generated data hash value.
[0087] The receiving end takes out the request timestamp, applicant name, applicant ID number, applicant's asset information, time of asset acquisition, income information and time of income acquisition from the data replied by the sending end, concatenates these data and generates the first hash value using the hash algorithm as described above.
[0088] S5: The receiving end decrypts the verification code using the public key of the sending end to obtain a second hash value, where the second hash value is the data hash value of the sending end.
[0089] That is, the check code is restored, and after the check code is decrypted with the public key of the sender, the data hash value generated by the sender, that is, the second hash value, is obtained.
[0090] S6: Compare the first hash value and the second hash value.
[0091] If the first hash value is consistent with the second hash value, step S7 is executed: the asset data is determined to be credible data and the verification is successful.
[0092] If the first hash value is inconsistent with the second hash value, step S8 is executed: the asset data is determined to be untrustworthy data and the verification fails.
[0093] That is, if the first hash value is completely consistent with the second hash value, it means that the data currently being transmitted has been digitally signed by the sender and is credible data and can be saved as credible data. If the two are inconsistent, it means that the data currently being transmitted is not trusted and cannot be used.
[0094] Furthermore, after obtaining the verification result, step S9 is also included: the receiving end returns receipt data to the sending end, and the receipt data includes: first receipt data indicating that the verification is passed and second receipt data indicating that the verification is not passed.
[0095] Step S9 has different execution methods according to different receipt data. Specifically, when the asset data is determined to be credible data and the verification is passed, the method in which the receiving end returns the receipt data to the sending end includes the following process:
[0096] S911: The receiving end concatenates the request timestamp of the verified asset data, the first hash value, and the status code 0 used to indicate that the verification has passed, to generate a third hash value.
[0097] S912: Encrypt the third hash value using the private key of the receiving end.
[0098] S913: Convert the ciphertext encrypted by the third hash value into a first BASE64 code, and use the first BASE64 code as a first receipt verification code.
[0099] S914: The first receipt data is composed using the first receipt verification code, the request timestamp of the verified asset data, the third hash value and the status code 0.
[0100] S915: Return the first receipt data to the sending end.
[0101] When the asset data is determined to be untrustworthy data and the verification fails, the method in which the receiving end returns the receipt data to the sending end includes the following process:
[0102] S921: The receiving end concatenates the request timestamp of the asset data that failed the verification, the first hash value, and the status code 1 used to indicate the verification failure to generate a fourth hash value.
[0103] S922: Encrypt the fourth hash value using the private key of the receiving end.
[0104] S923: Convert the ciphertext encrypted by the fourth hash value into a second BASE64 code, and use the second BASE64 code as a second receipt verification code.
[0105] S924: The second receipt data is composed using the second receipt verification code, the request timestamp of the asset data that failed the verification, the fourth hash value and the status code 1.
[0106] S925: Return the second receipt data to the sending end.
[0107] In this embodiment, the data format of the receipt sent by the receiving end to the sending end can be shown in the following Table 2.
[0108]
[0109]
[0110] Table 2 Receiver receipt data format
[0111] Furthermore, after the receiving end returns the receipt data to the sending end, the following process is also included:
[0112] S101: The sending end verifies the receipt data and obtains the status code of the receipt data.
[0113] When the status code of the receipt data is 0, step S102 is executed: it is determined that the receipt data is verified by the receiving end, and the sending end saves the receipt data.
[0114] When the status code of the receipt data is 1, step S103 is executed: determining that the receipt data has not been verified by the receiving end, and sending an alarm message.
[0115] That is, for the asset data that has passed the verification, the sending end will concatenate the timestamp, hash value, and status code in the received receipt data to generate a local hash value, use the public key of the receiving end to decrypt the receipt verification code to obtain a new hash value, and compare it with the local hash value. If they are completely consistent, it means that the receipt information is credible; if they are not completely consistent, it means that the receipt information is not credible, and the system will notify the administrator through a warning log or other alarm method to coordinate the problem with the receiving end. For receipt information with a status code of 0, it means that the receiving end has verified the data, and the sending end will save the information locally for subsequent responsibility tracing; for receipt information with a status code of 1, it means that it has not been verified by the receiving end, and the system will notify the administrator through a warning log or other alarm method to coordinate the problem with the data sending end. Therefore, through steps S101-S103, the accuracy of the asset data verification results can be further improved, thereby improving the accuracy and reliability of asset data in the economic verification system.
[0116] Embodiment 2
[0117] exist Figure 1 Based on the embodiment shown, see Figure 2 , Figure 2 A schematic diagram of the structure of a system for verifying asset data provided by an embodiment of the present application. Figure 2 It can be seen that the system for verifying asset data in this embodiment mainly includes: a definition module, a sending end and a receiving end.
[0118] Among them, the definition module is used to define the data producer in the economic verification system as the sender, and the data user in the economic verification system as the receiver. The sender and the receiver each have a pair of asymmetric keys, and the sender and the receiver obtain the public key of the other party at the same time.
[0119] The sending end further includes: a query request acquisition module, a judgment module and an encryption module. Among them, the query request acquisition module is used to obtain an asset data query request, and the asset data query request includes: a request timestamp, an applicant's name, and an applicant's ID number. The judgment module is used to determine whether the time difference between the request timestamp and the local time is greater than a set time threshold based on the obtained asset data query request. If so, a query error is returned. If not, the encryption module is started. The encryption module is used to generate a verification code by hash value encryption based on the request timestamp, the applicant's name, the applicant's ID number, and the asset data when the time difference between the request timestamp and the local time is less than or equal to the set time threshold, and send the request timestamp, the applicant's name, the applicant's ID number, the asset data, and the verification code to the receiving end.
[0120] The receiving end further includes: a splicing module, a decryption module and a comparison module. Among them, the splicing module is used to splice the request timestamp, the applicant's name, the applicant's ID number and the applicant's asset data, and then use the hash algorithm to generate a first hash value, and the first hash value is a locally generated data hash value. The decryption module is used to decrypt the encrypted asset data using the public key of the sending end to obtain a second hash value, and the second hash value is the data hash value of the sending end. The comparison module is used to compare the first hash value with the second hash value. If the first hash value is consistent with the second hash value, the asset data is determined to be credible data and the verification is passed. If the first hash value is inconsistent with the second hash value, the asset data is determined to be untrustworthy data and the verification fails.
[0121] Furthermore, the receiving end of this embodiment also includes a receipt module, which is used to return receipt data to the sending end, and the receipt data includes: first receipt data indicating that the verification is passed and second receipt data indicating that the verification is not passed.
[0122] The sending end also includes a receipt verification module, which is used to verify the receipt data and obtain the status code of the receipt data. When the status code of the receipt data is 0, it is determined that the receipt data has been verified by the receiving end, and the sending end saves the receipt data. When the status code of the receipt data is 1, it is determined that the receipt data has not been verified by the receiving end, and an alarm message is sent.
[0123] The working principle and working method of the system for verifying asset data in this embodiment are as follows: Figure 1 The embodiments shown have been described in detail, and the two embodiments can refer to each other, which will not be described again here.
[0124] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features disclosed herein.
Claims
1. A method for verifying asset data, characterized in that: The method comprises: The data producer in the economic verification system is defined as a sender, and the data user in the economic verification system is defined as a receiver. The sender and receiver each have a pair of asymmetric keys, and the sender and receiver simultaneously obtain the public key of the other end. The sending end obtains an asset data query request, wherein the asset data query request includes: a request timestamp, an applicant's name, and an applicant's ID number; According to the obtained asset data query request, determine whether the time difference between the request timestamp and the local time is greater than the set time threshold; If yes, return query error; If not, the sending end generates a verification code by encrypting the hash value according to the request timestamp, the applicant's name, the applicant's ID number, and the asset data, and sends the request timestamp, the applicant's name, the applicant's ID number, the asset data, and the verification code to the receiving end; The receiving end concatenates the request timestamp, the name of the applicant, the ID number of the applicant and the asset data of the applicant, and generates a first hash value using a hash algorithm, where the first hash value is a locally generated data hash value; The receiving end decrypts the verification code using the public key of the sending end to obtain a second hash value, where the second hash value is a data hash value of the sending end; comparing the first hash value with the second hash value; If the first hash value is consistent with the second hash value, the asset data is determined to be credible data and the verification is successful; If the first hash value is inconsistent with the second hash value, the asset data is determined to be untrustworthy data and the verification fails; After obtaining the verification result, the method further includes: The receiving end returns receipt data to the sending end, the receipt data including: first receipt data indicating that the verification is successful and second receipt data indicating that the verification is unsuccessful; The method for determining that the asset data is credible data and, when the verification is passed, the receiving end returns receipt data to the sending end comprises: The receiving end concatenates the request timestamp of the verified asset data, the first hash value, and the status code 0 used to indicate the verification is passed to generate a third hash value; Encrypting the third hash value using a private key of the receiving end; Convert the ciphertext encrypted by the third hash value into a first BASE64 code, and use the first BASE64 code as a first receipt verification code; The first receipt data is composed of the first receipt verification code, the request timestamp of the verified asset data, the third hash value and the status code 0; The first receipt data is returned to the sending end.
2. A method for verifying asset data according to claim 1, characterized in that: When the asset data is determined to be untrustworthy data and the verification fails, the receiving end returns receipt data to the sending end, comprising: The receiving end concatenates the request timestamp of the asset data that failed the verification, the first hash value, and the status code 1 used to indicate the verification failure to generate a fourth hash value; Encrypting the fourth hash value using a private key of the receiving end; Convert the encrypted ciphertext of the fourth hash value into a second BASE64 code, and use the second BASE64 code as a second receipt verification code; The second receipt data is composed using the second receipt verification code, the request timestamp of the asset data that failed the verification, the fourth hash value, and the status code 1; The second receipt data is returned to the sending end.
3. A method for verifying asset data according to claim 1, characterized in that: The method in which the sending end performs hash value encryption to generate a verification code according to the request timestamp, the applicant's name, the applicant's ID number and the asset data, and sends the request timestamp, the applicant's name, the applicant's ID number, the asset data and the verification code to the receiving end includes: The sending end retrieves the asset data of the applicant from the local system according to the name and ID number of the applicant, wherein the asset data includes: the asset information of the applicant, the time of acquiring the assets, the income information and the time of acquiring the income; After concatenating the request timestamp, the name of the applicant, the ID number of the applicant, the asset information of the applicant, the time of obtaining the assets, the income information, and the time of obtaining the income, a fifth hash value is generated using a hash algorithm; encrypting the fifth hash value using a private key of the sender; Convert the ciphertext encrypted by the fifth hash value into a third BASE64 code, and use the third BASE64 code as a check code; The verification code is sent to a receiving end.
4. A method for verifying asset data according to claim 1, characterized in that: After the receiving end returns the receipt data to the sending end, the method further includes: The sending end verifies the receipt data and obtains a status code of the receipt data; When the status code of the receipt data is 0, it is determined that the receipt data has been verified by the receiving end, and the sending end saves the receipt data; When the status code of the receipt data is 1, it is determined that the receipt data has not been verified by the receiving end, and an alarm message is sent.
5. A method for verifying asset data according to any one of claims 1 to 4, characterized in that: The algorithm for hash value encryption is: RSA encryption algorithm or SM2 algorithm.
6. A system for verifying asset data, characterized in that: The system comprises: A definition module is used to define the data producer in the economic verification system as a sender, and define the data user in the economic verification system as a receiver, and the sender and receiver each have a pair of asymmetric keys, and the sender and receiver simultaneously obtain the public key of the other end; The sending end is used to obtain an asset data query request, wherein the asset data query request includes: a request timestamp, an applicant's name, and an applicant's ID number; The sending end is further used to determine whether the time difference between the request timestamp and the local time is greater than a set time threshold according to the obtained asset data query request, and if so, return a query error; if not, perform hash value encryption to generate a verification code according to the request timestamp, the applicant's name, the applicant's ID number and the asset data, and send the request timestamp, the applicant's name, the applicant's ID number, the asset data and the verification code to the receiving end; The receiving end is used to concatenate the request timestamp, the name of the applicant, the ID number of the applicant and the asset data of the applicant, and then generate a first hash value using a hash algorithm, where the first hash value is a locally generated data hash value; The receiving end is further used to decrypt the verification code using the public key of the sending end to obtain a second hash value, where the second hash value is a data hash value of the sending end; The receiving end is also used to compare the first hash value with the second hash value. If the first hash value is consistent with the second hash value, the asset data is determined to be credible data and the verification is successful. If the first hash value is inconsistent with the second hash value, the asset data is determined to be untrustworthy data and the verification is unsuccessful.
7. A system for verifying asset data according to claim 6, characterized in that: The receiving end is further used to return receipt data to the sending end, and the receipt data includes: first receipt data indicating that the verification is passed and second receipt data indicating that the verification is not passed.
8. A system for verifying asset data according to claim 6, characterized in that: The sending end is also used to verify the receipt data and obtain the status code of the receipt data. When the status code of the receipt data is 0, it is determined that the receipt data has been verified by the receiving end, and the sending end saves the receipt data. When the status code of the receipt data is 1, it is determined that the receipt data has not been verified by the receiving end, and an alarm message is sent.
