Judicial investigation and control credibility monitoring method, monitoring device and monitoring system
By using a hash algorithm in the judicial investigation and control system to process the check and control receipt documents and upload them to the blockchain, it verifies its integrity in the judicial investigation and control process, and solves the problem of tampering with the receipt documents in the backtracking feedback scenario, and realizes the Trustworthiness monitoring of the results of checking and controlling.
Patent Information
- Application Number
- CN202411102362.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-08-12
AI Technical Summary
During the judicial investigation and control process, the receipt documents are at risk of being tampered with in scenarios such as backtrack feedback, and the resistance of the request information and the results of the investigation and control cannot be achieved, and the credibility of the investigation and control cannot be proved.
By generating check and control receipt documents in local servers and distributed storage servers, and uploading the hash value to the blockchain after processing using hash algorithms to obtain the blockchain transaction number, ensuring failure recovery or backtracking of the pre-transaction service In the feedback scenario, the integrity of the receipt document is verified through the immutable characteristics of the blockchain.
It effectively solves the risk of tampering with receipt documents in scenarios such as backtracking feedback, ensures the immutability and credibility of the inspection and control results, and enhances the integrity and reliability of the inspection and control process.
Smart Images

Figure CN118916425A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of judicial investigation and control credibility monitoring, and in particular, to a judicial investigation and control credibility monitoring method, a judicial investigation and control credibility monitoring device, a computer program product and a judicial investigation and control credibility monitoring system. Background Art
[0002] During the judicial investigation and control of banks by the state authorities, the front-end transaction service on the bank side is used to receive and parse the investigation and control request information from the services of the state authorities. The core transaction service on the bank side processes the investigation and control request information issued by the front-end transaction service, assembles the investigation and control results and returns them to the front-end transaction service. The front-end transaction service returns the receipt document and the investigation and control results to the service of the state authorities. There are some problems in the investigation and control process, as follows:
[0003] In the scenario of pre-transaction service failure recovery and re-feedback, there is a risk that the receipt document may be tampered with;
[0004] In scenarios such as retrospective feedback, there is a risk that the receipt document may be tampered with;
[0005] It is impossible to ensure the non-repudiation of the inquiry and control request information and the inquiry and control results, and it is impossible to prove the credibility of the inquiry and control.
[0006] Currently, there is no solution to the above problem. Summary of the invention
[0007] The main purpose of this application is to provide a judicial investigation and control credibility monitoring method, a judicial investigation and control credibility monitoring device, a computer program product and a judicial investigation and control credibility monitoring system, so as to at least solve the problem in the prior art that receipt documents are at risk of being tampered with in scenarios such as retrospective feedback.
[0008] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for monitoring the credibility of judicial investigation and control is provided, the method is applied to the credibility monitoring service of judicial investigation and control, the credibility monitoring service of judicial investigation and control is deployed on a local server, the credibility monitoring service of judicial investigation and control is respectively connected to the core transaction service, distributed storage server, blockchain, database and front-end transaction service and communication, the method comprises: when receiving the investigation and control result sent by the core transaction service, generating an investigation and control receipt document according to the investigation and control result, and storing the investigation and control receipt document and the investigation and control result to the local server and the distributed storage server, the investigation and control result represents the result of performing a judicial query operation on the target account or the result of performing a judicial control operation on the target account, the investigation and control receipt document is a receipt document representing the investigation and control result; the investigation and control receipt document is processed by a hash algorithm to obtain to a first hash value, and upload the first hash value to the blockchain, obtain a first blockchain transaction number, and store the first blockchain transaction number in the database; when the front-end transaction service fails and the front-end transaction service resumes normal operation, obtain the first blockchain transaction number from the database, and obtain the first hash value from the blockchain according to the first blockchain transaction number in the database; obtain the check and control receipt document and the check and control result from the local server, and use a hash algorithm to process the check and control receipt document in the local server to obtain a second hash value; when the first hash value and the second hash value are the same, determine that the check and control receipt document in the local server has not been tampered with, and send the check and control receipt document in the local server and the check and control result in the local server to the front-end transaction service.
[0009] Optionally, the pre-transaction service is connected in communication with the transaction service of the competent authority, and after processing the inquiry and control receipt document using a hash algorithm to obtain a first hash value, and uploading the first hash value to the blockchain to obtain a first blockchain transaction number, the method includes: obtaining the inquiry and control receipt document and the inquiry and control result from the local server when the pre-transaction service has not failed, and sending the inquiry and control receipt document and the inquiry and control result in the local server to the pre-transaction service, and deleting the inquiry and control receipt document and the inquiry and control result in the local server; detecting whether the pre-transaction service has received a traceback request message sent by the transaction service of the competent authority, wherein the traceback request message indicates a request for the pre-transaction service to send the inquiry and control receipt document and the inquiry and control result again. The control result is sent to the authorized authority transaction service; when the front-end transaction service receives the traceback request information sent by the authorized authority transaction service, the control receipt document and the control result are obtained from the distributed storage server, and the control receipt document in the distributed storage server is processed by the hash algorithm to obtain a third hash value; the first blockchain transaction number is obtained from the database; according to the first blockchain transaction number in the database, the first hash value is obtained from the blockchain; when the first hash value and the third hash value are the same, it is determined that the control receipt document in the distributed storage server has not been tampered with, and the control receipt document in the distributed storage server and the control result in the distributed storage server are sent to the front-end transaction service.
[0010] Optionally, the check and control receipt document includes: a second blockchain transaction number and a third blockchain transaction number, the second blockchain transaction number is obtained by uploading the check and control request information to the blockchain, the third blockchain transaction number is obtained by uploading the check and control result to the blockchain, the check and control request information indicates a request to perform the judicial inquiry operation on the target account or the judicial control operation on the target account, and sending the check and control receipt document in the local server and the check and control result in the local server to the front-end transaction service includes: obtaining a first target blockchain transaction number and a second target blockchain transaction number, the first target blockchain transaction number is the second blockchain transaction number in the check and control receipt document in the local server, and the second target blockchain transaction number is the third blockchain transaction number in the check and control receipt document in the local server; determining whether the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain; and if the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain, sending the check and control receipt document in the local server and the check and control result in the local server to the front-end transaction service.
[0011] Optionally, the check and control receipt document includes: a second blockchain transaction number and a third blockchain transaction number, the second blockchain transaction number is obtained by uploading the check and control request information to the blockchain, the third blockchain transaction number is obtained by uploading the check and control result to the blockchain, the check and control request information indicates a request to perform the judicial inquiry operation on the target account or the judicial control operation on the target account, and sending the check and control receipt document in the distributed storage server and the check and control result in the distributed storage server to the front-end transaction service includes: obtaining a third target blockchain transaction number and a fourth target blockchain transaction number, the third target blockchain transaction number is the second blockchain transaction number in the check and control receipt document in the distributed storage server, and the fourth target blockchain transaction number is the third blockchain transaction number in the check and control receipt document in the distributed storage server; determining whether the third target blockchain transaction number and the fourth target blockchain transaction number exist on the blockchain; and if the third target blockchain transaction number and the fourth target blockchain transaction number exist on the blockchain, sending the check and control receipt document in the distributed storage server and the check and control result in the distributed storage server to the front-end transaction service.
[0012] Optionally, the front-end transaction service is communicatively connected with the transaction service of the competent authority, and generates an inquiry and control receipt document according to the inquiry and control result, including: the front-end transaction service receives the inquiry and control request information sent by the transaction service of the competent authority, uploads the inquiry and control request information to the blockchain, and obtains a second blockchain transaction number, the inquiry and control request information indicates a request to perform the judicial inquiry operation on the target account or the judicial control operation on the target account; sends the inquiry and control request information to the core transaction service, and the core transaction service is used to send the inquiry and control result to the judicial inquiry and control credibility monitoring service when receiving the inquiry and control request information; at least uploads the inquiry and control result to the blockchain to obtain the third blockchain transaction number; generates the inquiry and control receipt document according to the inquiry and control result, the second blockchain transaction number and the third blockchain transaction number.
[0013] Optionally, at least uploading the check and control result to the blockchain to obtain the third blockchain transaction number includes: when the check and control request information represents that the judicial inquiry operation is performed on the target account and the number of bytes of the check and control result meets a predetermined condition, packaging the check and control result to obtain a data packet, processing the data packet using a hash algorithm to obtain a fourth hash value, and uploading the fourth hash value to the blockchain to obtain the third blockchain transaction number, wherein the predetermined condition is that the number of bytes of the check and control result is greater than or equal to a predetermined number of bytes; when the check and control request information represents that the judicial inquiry operation is performed on the target account and the number of bytes of the check and control result does not meet the predetermined condition, uploading the check and control result to the blockchain to obtain the third blockchain transaction number.
[0014] Optionally, at least uploading the check and control result to the blockchain to obtain the third blockchain transaction number includes: when the check and control request information represents the judicial control operation on the target account, uploading the check and control result to the blockchain to obtain the third blockchain transaction number.
[0015] According to another aspect of the present application, a judicial investigation and control credibility monitoring device is provided, the device is applied to the judicial investigation and control credibility monitoring service, the judicial investigation and control credibility monitoring service is deployed on a local server, the judicial investigation and control credibility monitoring service is respectively connected to the core transaction service, the distributed storage server, the blockchain, the database and the front-end transaction service and communication, the device includes: a generation storage unit, which is used to generate an investigation and control receipt document according to the investigation and control result sent by the core transaction service when receiving the investigation and control result, and store the investigation and control receipt document and the investigation and control result to the local server and the distributed storage server, the investigation and control result represents the result of performing a judicial query operation on the target account or the result of performing a judicial control operation on the target account, and the investigation and control receipt document is a receipt document representing the investigation and control result; a processing and uploading storage unit is used to process the investigation and control receipt document using a hash algorithm to obtain a first hash value, and upload the obtained The first hash value is uploaded to the blockchain to obtain a first blockchain transaction number, and the first blockchain transaction number is stored in the database; a first acquisition unit is used to obtain the first blockchain transaction number from the database when the front-end transaction service fails and the front-end transaction service resumes normal operation, and obtain the first hash value from the blockchain according to the first blockchain transaction number in the database; a first acquisition processing unit is used to obtain the check and control receipt document and the check and control result from the local server, and use a hash algorithm to process the check and control receipt document in the local server to obtain a second hash value; a first determination and sending unit is used to determine that the check and control receipt document in the local server has not been tampered with when the first hash value and the second hash value are the same, and send the check and control receipt document in the local server and the check and control result in the local server to the front-end transaction service.
[0016] According to another aspect of the present application, a computer program product is provided, including a computer program / instruction, which implements any one of the methods for monitoring the credibility of judicial investigation and control when executed by a processor.
[0017] According to another aspect of the present application, a judicial investigation and control credibility monitoring system is provided, the system comprising: a core transaction service; a distributed storage server; a blockchain; a database; a front-end transaction service, the front-end transaction service being used to communicate and connect with the transaction service of an authorized authority; a judicial investigation and control credibility monitoring service, the judicial investigation and control credibility monitoring service being respectively communicated and connected with the core transaction service, the distributed storage server, the blockchain, the database and the front-end transaction service, and the judicial investigation and control credibility monitoring service being used to execute any one of the judicial investigation and control credibility monitoring methods.
[0018] By applying the technical solution of the present application, the hash value of the check and control receipt document, i.e., the first hash value, is uploaded to the blockchain to obtain the first blockchain transaction number. In scenarios such as retrospective feedback, that is, if the authority transaction service requests the front-end transaction service to send the check and control receipt document and the check and control result to the authority transaction service again, the check and control receipt document is stored in the distributed storage server for a long time. During this process, the check and control receipt document in the distributed storage server may be tampered with. At this time, the hash value of the check and control receipt document in the distributed storage server, i.e., the third hash value, is calculated, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database. Based on the characteristic that the blockchain cannot be tampered with, if the third hash value is the same as the first hash value, it indicates that the check and control receipt document in the distributed storage server has not been tampered with. At this time, the check and control receipt document in the distributed storage server and the check and control result in the distributed storage server are sent to the front-end transaction service, thereby solving the problem in the prior art that the receipt document is at risk of being tampered with in scenarios such as retrospective feedback. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A hardware structure block diagram of a credibility monitoring system for judicial investigation and control provided in an embodiment of the present application is shown;
[0020] Figure 2 A schematic diagram of a process of monitoring the credibility of judicial investigation and control provided according to an embodiment of the present application is shown;
[0021] Figure 3 A schematic diagram of a process of another judicial investigation and control credibility monitoring method provided according to an embodiment of the present application is shown;
[0022] Figure 4 A flowchart of another method for monitoring the credibility of judicial investigation and control provided according to an embodiment of the present application is shown;
[0023] Figure 5 A flowchart of another method for monitoring the credibility of judicial investigation and control provided according to an embodiment of the present application is shown;
[0024] Figure 6 A structural block diagram of a judicial investigation and control credibility monitoring device provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution 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 this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0029] Pre-transaction service: The ways in which competent national authorities initiate judicial investigations and controls vary. Pre-transaction services are used to receive and analyze judicial investigation and control request information from competent national authorities, and provide feedback on receipt documents and investigation and control results.
[0030] Core transaction services: call multiple internal related systems, process judicial investigation and control request information, and assemble the investigation and control results.
[0031] Related systems: usually the core business systems and peripheral systems within the bank, which handle actual judicial inquiries and judicial control transactions.
[0032] Blockchain: Blockchain is a decentralized, distributed, and tamper-proof data storage technology. It is composed of blocks linked in sequence. Each block stores encrypted information of data records and a reference to the previous block, and is distributed among multiple computer nodes to achieve consensus. Therefore, blockchain is inherently verifiable and trustworthy.
[0033] Receipt document: After the national authority initiates inspection and control measures to the bank's dedicated network inspection and control system, the bank's dedicated network inspection and control system will form a document with an electronic seal and attachments and feedback the inspection and control results to the national authority. This document is called a "receipt document."
[0034] Blockchain transaction number: is a unique identifier used to identify transactions that occur on the blockchain network. Each transaction is assigned a unique transaction number that can be used to track the status of the transaction and confirm the validity of the transaction. In Bitcoin and other cryptocurrency networks, blockchain transaction numbers are usually composed of a string of numbers and letters, similar to "0x1a2b3c4d5e6f7g8h9i". When users send cryptocurrency or make other transactions, they can use this transaction number to view the details of the transaction, including the sender, receiver, transaction amount, and transaction time.
[0035] As introduced in the background technology, in the prior art, there is a risk of receipt documents being tampered with in scenarios such as retrospective feedback. In order to solve the problem of the prior art that receipt documents are at risk of being tampered with in scenarios such as retrospective feedback, the embodiments of the present application provide a judicial investigation and control credibility monitoring method, a judicial investigation and control credibility monitoring device, a computer program product and a judicial investigation and control credibility monitoring system.
[0036] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0037] In this embodiment, a judicial investigation and control credibility monitoring system is provided. Figure 1 As shown, the above system includes:
[0038] Core transaction services;
[0039] Distributed storage server;
[0040] Blockchain;
[0041] database;
[0042] Pre-transaction services, which are used to communicate with the transaction services of the competent authority;
[0043] Judicial investigation and control credibility monitoring service, the above-mentioned judicial investigation and control credibility monitoring service is deployed on a local server, the above-mentioned judicial investigation and control credibility monitoring service is respectively connected to the above-mentioned core transaction service, the above-mentioned distributed storage server, the above-mentioned blockchain, the above-mentioned database and the above-mentioned front-end transaction service and communication, and the above-mentioned judicial investigation and control credibility monitoring service is used to execute any of the above-mentioned judicial investigation and control credibility monitoring methods.
[0044] In this embodiment, a method for monitoring the credibility of judicial investigation and control that runs on a judicial investigation and control credibility monitoring service is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0045] Figure 2 FIG. 1 is a flow chart of a method for monitoring the credibility of judicial investigation and control according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0046] Step S201, when receiving the check and control result sent by the core transaction service, generating a check and control receipt document according to the check and control result, and storing the check and control receipt document and the check and control result in the local server and the distributed storage server;
[0047] The above-mentioned check and control result indicates the result of executing a judicial inquiry operation on the target account or the result of executing a judicial control operation on the target account, and the above-mentioned check and control receipt document indicates the receipt document representing the above-mentioned check and control result;
[0048] Specifically, the above-mentioned judicial inquiry operation may be to inquire about the basic information or transaction details of a bank account such as the account opening time and account opening location, etc., the above-mentioned judicial control operation may be to freeze a bank account, etc., the result of the above-mentioned judicial inquiry operation may be the basic information or transaction details of a bank account such as the account opening time and account opening location, etc., the result of the above-mentioned judicial control operation may be the success or failure of freezing a bank account, etc.
[0049] In an optional solution, the above-mentioned pre-transaction service is connected to the transaction service of the authority in communication, and the above-mentioned step S201 can be implemented as follows:
[0050] Step S2011, after the front-end transaction service receives the inquiry and control request information sent by the authority transaction service, the inquiry and control request information is uploaded to the blockchain to obtain a second blockchain transaction number, wherein the inquiry and control request information indicates a request to perform the judicial inquiry operation on the target account or the judicial control operation on the target account;
[0051] Specifically, the judicial investigation and control credibility monitoring service is connected to the pre-transaction service in communication, so the judicial investigation and control credibility monitoring service can detect whether the pre-transaction service has received the investigation and control request information sent by the transaction service of the competent authority, and can obtain the investigation and control request information from the pre-transaction service.
[0052] Specifically, the judicial inquiry operation may be to inquire about basic information such as the opening time and location of a bank account or transaction details, and the judicial control operation may be to freeze, stop payment, deduct funds, etc. from a bank account.
[0053] Step S2012, sending the above-mentioned inquiry and control request information to the above-mentioned core transaction service, and the above-mentioned core transaction service is used to send the above-mentioned inquiry and control result to the above-mentioned judicial inquiry and control credibility monitoring service when receiving the above-mentioned inquiry and control request information;
[0054] Step S2013, at least uploading the above-mentioned check and control result to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number;
[0055] In an optional solution, the above step S2013 can be implemented as follows:
[0056] In the case where the query request information indicates that the judicial query operation is performed on the target account and the number of bytes of the query result meets a predetermined condition, the query result is packaged to obtain a data packet, the data packet is processed using a hash algorithm to obtain a fourth hash value, and the fourth hash value is uploaded to the blockchain to obtain the third blockchain transaction number, and the predetermined condition is that the number of bytes of the query result is greater than or equal to the predetermined number of bytes;
[0057] Specifically, the results of the judicial inquiry operation may involve transaction details, resulting in a large number of bytes in the inquiry and control results, and uploading the results to the blockchain will consume a lot of resources. When the number of bytes of the inquiry and control results is greater than or equal to the predetermined number of bytes, the inquiry and control results are packaged to obtain a data packet, and the data packet is processed using a hash algorithm to obtain a fourth hash value, and the fourth hash value is uploaded to the blockchain to obtain a third blockchain transaction number, thereby avoiding waste of resources.
[0058] When the above-mentioned inquiry and control request information indicates that the above-mentioned judicial inquiry operation is performed on the above-mentioned target account and the number of bytes of the above-mentioned inquiry and control result does not meet the above-mentioned predetermined condition, the above-mentioned inquiry and control result is uploaded to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number.
[0059] In an optional solution, the above step S2013 can be implemented as follows:
[0060] In the case where the above-mentioned inquiry and control request information represents the above-mentioned judicial control operation on the above-mentioned target account, the above-mentioned inquiry and control result is uploaded to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number.
[0061] Specifically, the result of the judicial control operation is generally a feedback of the failure or success of the operation, and the number of bytes of the control result is very small. At this time, the control result can be directly uploaded to the blockchain without consuming a lot of resources.
[0062] Step S2014: Generate the above-mentioned inquiry and control receipt document based on the above-mentioned inquiry and control results, the above-mentioned second blockchain transaction number and the above-mentioned third blockchain transaction number.
[0063] Specifically, the check and control request information is uploaded to the blockchain to obtain the second blockchain transaction number, the check and control result is uploaded to the blockchain to obtain the third blockchain transaction number, and the second blockchain transaction number and the third blockchain transaction number are embedded in the check and control receipt document. Based on the tamper-proof nature of the blockchain, the check and control request information and the check and control result are guaranteed to be tamper-proof, thereby ensuring the credibility of the check and control.
[0064] Step S202: Process the control receipt document using a hash algorithm to obtain a first hash value, upload the first hash value to the blockchain, obtain a first blockchain transaction number, and store the first blockchain transaction number in the database;
[0065] In an optional solution, the pre-transaction service is connected to the transaction service of the authority in communication. After the step S202, the method further includes:
[0066] Step S301, when the pre-transaction service does not fail, the check and control receipt document and the check and control result are obtained from the local server, and the check and control receipt document and the check and control result in the local server are sent to the pre-transaction service, and the check and control receipt document and the check and control result in the local server are deleted;
[0067] Specifically, the judicial investigation and control credibility monitoring service is connected in communication with the pre-transaction service, so the judicial investigation and control credibility monitoring service can detect whether a failure occurs in the pre-transaction service.
[0068] Specifically, if the pre-transaction service does not fail, the check and control receipt document is stored in the local server for a short time, and the check and control receipt document in the local server cannot be tampered with. At this time, the check and control receipt document in the local server and the check and control results in the local server are sent to the pre-transaction service.
[0069] Step S302, detecting whether the pre-transaction service has received the traceback request information sent by the authority transaction service, wherein the traceback request information indicates a request for the pre-transaction service to resend the control receipt document and the control result to the authority transaction service;
[0070] Step S303, when the front-end transaction service receives the traceback request information sent by the authority transaction service, the front-end transaction service obtains the control receipt document and the control result from the distributed storage server, and processes the control receipt document in the distributed storage server using the hash algorithm to obtain a third hash value;
[0071] Step S304, obtaining the first blockchain transaction number from the database;
[0072] Step S305, obtaining the first hash value from the blockchain according to the first blockchain transaction number in the database;
[0073] Step S306, when the first hash value and the third hash value are the same, it is determined that the inquiry and control receipt document in the distributed storage server has not been tampered with, and the inquiry and control receipt document in the distributed storage server and the inquiry and control result in the distributed storage server are sent to the front-end transaction service.
[0074] Specifically, the hash value of the check and control receipt document, that is, the first hash value, is uploaded to the blockchain to obtain the first blockchain transaction number. In scenarios such as retrospective feedback, that is, if the authority transaction service requests the front transaction service to send the check and control receipt document and the check and control results to the authority transaction service again, the check and control receipt document is stored in the distributed storage server for a long time. During this process, the check and control receipt document in the distributed storage server may be tampered with. At this time, the hash value of the check and control receipt document in the distributed storage server, that is, the third hash value, is calculated, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database. Based on the characteristic that the blockchain cannot be tampered with, if the third hash value is the same as the first hash value, it means that the check and control receipt document in the distributed storage server has not been tampered with. At this time, the check and control receipt document in the distributed storage server and the check and control results in the distributed storage server are sent to the front transaction service, thereby solving the problem in the prior art that the receipt document is at risk of being tampered with in scenarios such as retrospective feedback.
[0075] In an optional solution, the step S306 of sending the query and control receipt document in the distributed storage server and the query and control result in the distributed storage server to the pre-transaction service may be implemented as follows:
[0076] Obtain a third target blockchain transaction number and a fourth target blockchain transaction number, wherein the third target blockchain transaction number is the second blockchain transaction number in the inquiry and control receipt document in the distributed storage server, and the fourth target blockchain transaction number is the third blockchain transaction number in the inquiry and control receipt document in the distributed storage server;
[0077] Determine whether the third target blockchain transaction number and the fourth target blockchain transaction number exist on the blockchain;
[0078] When the third target blockchain transaction number exists on the blockchain and the fourth target blockchain transaction number exists, the inquiry and control receipt document in the distributed storage server and the inquiry and control result in the distributed storage server are sent to the pre-transaction service.
[0079] Specifically, the second blockchain transaction number and the third blockchain transaction number are obtained from the inquiry and control receipt document in the distributed storage server, and the blockchain is queried whether the second blockchain transaction number and the third blockchain transaction number exist. If they exist, it means that the inquiry and control request information and the inquiry and control result are factual and have not been tampered with, and the inquiry and control process is complete and without omissions. At this time, the inquiry and control receipt document in the distributed storage server and the inquiry and control result in the distributed storage server are sent to the front-end transaction service.
[0080] Specifically, in the process of detecting whether the inspection and control process is complete and without omissions, the present application does not require the deployment of additional hardware equipment, reduces system complexity, reduces dependence on external conditions, and can simultaneously achieve tamper-proofing of inspection and control receipt documents and credibility verification of the inspection and control process.
[0081] Step S203, when the front-end transaction service fails and the front-end transaction service resumes normal operation, obtaining the first blockchain transaction number from the database, and obtaining the first hash value from the blockchain according to the first blockchain transaction number in the database;
[0082] Specifically, the judicial investigation and control credibility monitoring service is connected to the pre-transaction service in communication, so the judicial investigation and control credibility monitoring service can detect whether the pre-transaction service fails and whether it has recovered to a normal operating state.
[0083] Step S204, obtaining the above-mentioned inquiry and control receipt document and the above-mentioned inquiry and control result from the above-mentioned local server, and processing the above-mentioned inquiry and control receipt document in the above-mentioned local server by using a hash algorithm to obtain a second hash value;
[0084] Step S205, when the first hash value and the second hash value are the same, determine that the inquiry and control receipt document in the local server has not been tampered with, and send the inquiry and control receipt document in the local server and the inquiry and control result in the local server to the pre-transaction service.
[0085] Specifically, the hash value of the inquiry and control receipt document, i.e., the first hash value, is uploaded to the blockchain to obtain the first blockchain transaction number. If the front-end transaction service fails and the front-end transaction service resumes normal operation, the inquiry and control receipt document is stored in the local server for a long time. During this process, the inquiry and control receipt document on the local server may be tampered with. At this time, the hash value of the inquiry and control receipt document in the local server, i.e., the second hash value, is calculated, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database. Based on the characteristic that the blockchain cannot be tampered with, if the second hash value is the same as the first hash value, it indicates that the inquiry and control receipt document in the local server has not been tampered with. At this time, the inquiry and control receipt document in the local server and the inquiry and control result in the local server are sent to the front-end transaction service, thereby solving the problem in the prior art that the receipt document is at risk of being tampered with in the scenario of front-end transaction service failure recovery and re-feedback.
[0086] Specifically, since troubleshooting of pre-transaction services usually requires manual work and takes a certain amount of time, the local server's inquiry and control receipt document may be tampered with.
[0087] Specifically, the judicial investigation and control credibility monitoring method of the present application only needs to upload the hash value of the investigation and control receipt document, i.e., the first hash value, to the blockchain, and does not need to upload the investigation and control receipt document to the blockchain, thereby reducing resource waste and ensuring the confidentiality of the investigation and control receipt document.
[0088] In an optional solution, the step S205 of sending the inquiry and control receipt document in the local server and the inquiry and control result in the local server to the pre-transaction service can be implemented as follows:
[0089] Obtaining a first target blockchain transaction number and a second target blockchain transaction number, wherein the first target blockchain transaction number is the second blockchain transaction number in the inquiry and control receipt document in the local server, and the second target blockchain transaction number is the third blockchain transaction number in the inquiry and control receipt document in the local server;
[0090] Determine whether the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain;
[0091] When the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain, the inquiry and control receipt document in the local server and the inquiry and control result in the local server are sent to the pre-transaction service.
[0092] Specifically, the second blockchain transaction number and the third blockchain transaction number are obtained from the inquiry and control receipt document in the local server, and the blockchain is queried whether the second blockchain transaction number and the third blockchain transaction number exist. If they exist, it means that the inquiry and control request information and the inquiry and control result are factual and have not been tampered with, and the inquiry and control process is complete and without omissions. At this time, the inquiry and control receipt document in the local server and the inquiry and control result in the local server are sent to the front-end transaction service.
[0093] Through the above embodiment, the hash value of the inquiry and control receipt document, that is, the first hash value, is uploaded to the blockchain to obtain the first blockchain transaction number. If the front-end transaction service fails and the front-end transaction service resumes normal operation, the inquiry and control receipt document is stored in the local server for a long time. During this process, the inquiry and control receipt document of the local server may be tampered with. At this time, the hash value of the inquiry and control receipt document in the local server, that is, the second hash value, is calculated, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database. Based on the characteristic that the blockchain cannot be tampered with, if the second hash value is the same as the first hash value, it means that the inquiry and control receipt document in the local server has not been tampered with. At this time, the inquiry and control receipt document in the local server and the inquiry and control result in the local server are sent to the front-end transaction service, thereby solving the problem in the prior art that the receipt document is at risk of being tampered with in the scenario of front-end transaction service failure recovery and re-feedback.
[0094] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the judicial investigation and control credibility monitoring method of the present application will be described in detail below in combination with specific embodiments.
[0095] This embodiment relates to a specific judicial investigation and control credibility monitoring method, such as Figure 3 As shown, the following steps are included:
[0096] Step S11: When the front-end transaction service receives the inquiry and control request information sent by the transaction service of the authority, the inquiry and control request information is uploaded to the blockchain to obtain the second blockchain transaction number (ReqTxID). The inquiry and control request information indicates a request for a judicial inquiry operation on the target account or a judicial control operation on the target account;
[0097] Step S12: sending the check and control request information to the core transaction service, and the core transaction service is used to send the check and control result to the judicial check and control credibility monitoring service when receiving the check and control request information;
[0098] Step S13: receiving the check and control result sent by the core transaction service, where the check and control result indicates the result of executing a judicial inquiry operation on the target account or the result of executing a judicial control operation on the target account, and the check and control receipt document indicates the receipt document representing the check and control result;
[0099] Step S14: at least upload the check and control result to the blockchain to obtain a third blockchain transaction number, including:
[0100] When the query and control request information indicates that a judicial query operation is performed on the target account and the number of bytes of the query and control result meets a predetermined condition, the query and control result is packaged to obtain a data packet, the data packet is processed using a hash algorithm to obtain a fourth hash value (QrfHash), and the fourth hash value is uploaded to the blockchain to obtain a third blockchain transaction number (in this case, the third blockchain transaction number is QrfTxID), and the predetermined condition is that the number of bytes of the query and control result is greater than or equal to the predetermined number of bytes;
[0101] If the query request information indicates that a judicial query operation is performed on the target account and the number of bytes of the query result does not meet the predetermined conditions, the query result is uploaded to the blockchain to obtain a third blockchain transaction number (in this case, the third blockchain transaction number is QrTxID);
[0102] In the case where the inquiry and control request information indicates a judicial control operation on the target account, the inquiry and control result is uploaded to the blockchain to obtain a third blockchain transaction number (in this case, the third blockchain transaction number is CrTxID);
[0103] Step S15: Generate a check and control receipt document based on the check and control result, the second blockchain transaction number and the third blockchain transaction number;
[0104] Step S16: Process the control receipt document using a hash algorithm to obtain a first hash value (when the control request information represents a judicial inquiry operation on the target account, the first hash value is QrdHash; when the control request information represents a judicial control operation on the target account, the first hash value is CrdHash);
[0105] Step S17: Upload the first hash value to the blockchain, obtain the first blockchain transaction number (when the query and control request information represents a judicial query operation on the target account, the first blockchain transaction number is QrdTxID, and when the query and control request information represents a judicial control operation on the target account, the first blockchain transaction number is CrdTxID), and store the first blockchain transaction number in the database;
[0106] Step S18: Store the control receipt document and the control result to the local server and the distributed storage server.
[0107] This embodiment relates to a specific judicial investigation and control credibility monitoring method, such as Figure 4 As shown, the following steps are included:
[0108] Step S21: when the front-end transaction service fails and the front-end transaction service resumes normal operation, obtain the first blockchain transaction number from the database (when the query and control request information represents a judicial query operation on the target account, the first blockchain transaction number is QrdTxID, and when the query and control request information represents a judicial control operation on the target account, the first blockchain transaction number is CrdTxID), and obtain the first hash value from the blockchain according to the first blockchain transaction number in the database (when the query and control request information represents a judicial query operation on the target account, the first hash value is QrdHash, and when the query and control request information represents a judicial control operation on the target account, the first hash value is CrdHash);
[0109] Step S22: Obtain the control receipt document and the control result from the local server, and process the control receipt document in the local server using a hash algorithm to obtain a second hash value (DHash);
[0110] Step S23: When the first hash value and the second hash value are the same, determine that the check and control receipt document in the local server has not been tampered with, and send the check and control receipt document in the local server and the check and control result in the local server to the front-end transaction service.
[0111] This embodiment relates to a specific judicial investigation and control credibility monitoring method, such as Figure 5 As shown, the following steps are included:
[0112] Step S31: Obtain the first target blockchain transaction number (ReqTxID) and the second target blockchain transaction number, the first target blockchain transaction number is the second blockchain transaction number in the inquiry and control receipt document in the local server, and the second target blockchain transaction number is the third blockchain transaction number in the inquiry and control receipt document in the local server (when the inquiry and control request information represents a judicial inquiry operation on the target account, the third blockchain transaction number is QrfTxID or QrTxID, and when the inquiry and control request information represents a judicial control operation on the target account, the third blockchain transaction number is CrTxID);
[0113] Step S32: Determine whether the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain (in the case where the query and control request information represents a judicial query operation on the target account, determine whether ReqTxID exists on the blockchain and whether QrfTxID exists, or, determine whether ReqTxID exists on the blockchain and whether QrTxID exists, and in the case where the query and control request information represents a judicial control operation on the target account, determine whether ReqTxID exists on the blockchain and whether CrTxID exists);
[0114] Step S33: When the first target blockchain transaction number exists on the blockchain and the second target blockchain transaction number exists, the inquiry and control receipt document in the local server and the inquiry and control result in the local server are sent to the front-end transaction service.
[0115] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0116] The embodiment of the present application also provides a judicial investigation and control credibility monitoring device. It should be noted that the judicial investigation and control credibility monitoring device of the embodiment of the present application can be used to execute the judicial investigation and control credibility monitoring method provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0117] The following is an introduction to the judicial investigation and control credibility monitoring device provided in the embodiment of the present application.
[0118] Figure 6 1 is a structural block diagram of a judicial control credibility monitoring device according to an embodiment of the present application. Figure 6 As shown, the device comprises:
[0119] A storage unit 10 is generated, which is used to generate a check and control receipt document according to the check and control result when receiving the check and control result sent by the core transaction service, and store the check and control receipt document and the check and control result in the local server and the distributed storage server;
[0120] The above-mentioned check and control result indicates the result of executing a judicial inquiry operation on the target account or the result of executing a judicial control operation on the target account, and the above-mentioned check and control receipt document indicates the receipt document representing the above-mentioned check and control result;
[0121] In an optional solution, the above-mentioned pre-transaction service is connected to the transaction service of the authority in communication, and the above-mentioned generation storage unit includes:
[0122] A first uploading module is used for, when the pre-transaction service receives the inquiry and control request information sent by the transaction service of the authority, uploading the inquiry and control request information to the blockchain to obtain a second blockchain transaction number, wherein the inquiry and control request information indicates a request to perform the judicial inquiry operation on the target account or the judicial control operation on the target account;
[0123] A sending module, used to send the above-mentioned inquiry and control request information to the above-mentioned core transaction service, and the above-mentioned core transaction service is used to send the above-mentioned inquiry and control result to the above-mentioned judicial inquiry and control credibility monitoring service when receiving the above-mentioned inquiry and control request information;
[0124] A second uploading module is used to upload at least the above-mentioned query and control result to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number;
[0125] In an optional solution, the second uploading module includes:
[0126] a processing upload submodule, for packaging the above-mentioned query and control result to obtain a data packet, processing the above-mentioned data packet using a hash algorithm to obtain a fourth hash value, and uploading the above-mentioned fourth hash value to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number, when the above-mentioned query and control request information indicates that the above-mentioned judicial query operation is performed on the above-mentioned target account and the number of bytes of the above-mentioned query and control result meets a predetermined condition;
[0127] The first uploading submodule is used to upload the above-mentioned inquiry and control result to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number when the above-mentioned inquiry and control request information indicates that the above-mentioned judicial inquiry operation is performed on the above-mentioned target account and the number of bytes of the above-mentioned inquiry and control result does not meet the above-mentioned predetermined condition.
[0128] In an optional solution, the second uploading module includes:
[0129] The second uploading submodule is used to upload the above-mentioned inquiry and control results to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number when the above-mentioned inquiry and control request information represents the above-mentioned judicial control operation on the above-mentioned target account.
[0130] A generation module is used to generate the above-mentioned inspection and control receipt document according to the above-mentioned inspection and control results, the above-mentioned second blockchain transaction number and the above-mentioned third blockchain transaction number.
[0131] The processing and uploading storage unit 20 is used to process the above-mentioned inspection and control receipt document using a hash algorithm to obtain a first hash value, and upload the above-mentioned first hash value to the above-mentioned blockchain to obtain a first blockchain transaction number, and store the above-mentioned first blockchain transaction number in the above-mentioned database;
[0132] In an optional solution, the above device also includes:
[0133] an acquisition, sending and deletion unit, used for acquiring the above-mentioned inquiry and control receipt document and the above-mentioned inquiry and control result from the above-mentioned local server when the above-mentioned pre-transaction service does not fail, and sending the above-mentioned inquiry and control receipt document and the above-mentioned inquiry and control result in the above-mentioned local server to the above-mentioned pre-transaction service, and deleting the above-mentioned inquiry and control receipt document and the above-mentioned inquiry and control result in the above-mentioned local server;
[0134] a detection unit, used to detect whether the pre-transaction service has received the traceback request information sent by the competent authority transaction service, wherein the traceback request information indicates a request for the pre-transaction service to resend the inspection and control receipt document and the inspection and control result to the competent authority transaction service;
[0135] a first acquisition processing unit, configured to acquire the check and control receipt document and the check and control result from the distributed storage server when the front-end transaction service receives the traceback request information sent by the authorized authority transaction service, and process the check and control receipt document in the distributed storage server using the hash algorithm to obtain a third hash value;
[0136] A second acquisition unit is used to obtain the first blockchain transaction number from the database;
[0137] A third acquisition unit, configured to acquire the first hash value from the blockchain according to the first blockchain transaction number in the database;
[0138] The second determination and sending unit is used to determine that the above-mentioned inquiry and control receipt document in the above-mentioned distributed storage server has not been tampered with when the above-mentioned first hash value and the above-mentioned third hash value are the same, and send the above-mentioned inquiry and control receipt document in the above-mentioned distributed storage server and the above-mentioned inquiry and control result in the above-mentioned distributed storage server to the above-mentioned front-end transaction service.
[0139] In an optional solution, the second determination sending unit includes:
[0140] A first acquisition module is used to acquire a third target blockchain transaction number and a fourth target blockchain transaction number, wherein the third target blockchain transaction number is the second blockchain transaction number in the inquiry and control receipt document in the distributed storage server, and the fourth target blockchain transaction number is the third blockchain transaction number in the inquiry and control receipt document in the distributed storage server;
[0141] A first determination module is used to determine whether the third target blockchain transaction number and the fourth target blockchain transaction number exist on the blockchain;
[0142] The first sending module is used to send the above-mentioned inquiry and control receipt document in the above-mentioned distributed storage server and the above-mentioned inquiry and control result in the above-mentioned distributed storage server to the above-mentioned front-end transaction service when the above-mentioned third target blockchain transaction number exists on the above-mentioned blockchain and the above-mentioned fourth target blockchain transaction number exists.
[0143] A first acquisition unit 30 is used to acquire the first blockchain transaction number from the database when the pre-transaction service fails and the pre-transaction service resumes normal operation, and acquire the first hash value from the blockchain according to the first blockchain transaction number in the database;
[0144] The first acquisition processing unit 40 is used to obtain the above-mentioned inspection and control receipt document and the above-mentioned inspection and control result from the above-mentioned local server, and use a hash algorithm to process the above-mentioned inspection and control receipt document in the above-mentioned local server to obtain a second hash value;
[0145] The first determination sending unit 50 is used to determine that the check and control receipt document in the above-mentioned local server has not been tampered with when the above-mentioned first hash value and the above-mentioned second hash value are the same, and send the above-mentioned check and control receipt document in the above-mentioned local server and the above-mentioned check and control result in the above-mentioned local server to the above-mentioned front-end transaction service.
[0146] In an optional solution, the determining and sending unit includes:
[0147] A second acquisition module is used to acquire a first target blockchain transaction number and a second target blockchain transaction number, wherein the first target blockchain transaction number is the second blockchain transaction number in the inquiry and control receipt document in the local server, and the second target blockchain transaction number is the third blockchain transaction number in the inquiry and control receipt document in the local server;
[0148] A second determination module is used to determine whether the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain;
[0149] The second sending module is used to send the above-mentioned inquiry and control receipt document in the above-mentioned local server and the above-mentioned inquiry and control result in the above-mentioned local server to the above-mentioned pre-transaction service when the above-mentioned first target blockchain transaction number exists and the above-mentioned second target blockchain transaction number exists on the above-mentioned blockchain.
[0150] Through the above embodiment, the hash value of the inquiry and control receipt document, that is, the first hash value, is uploaded to the blockchain to obtain the first blockchain transaction number. If the front-end transaction service fails and the front-end transaction service resumes normal operation, the inquiry and control receipt document is stored in the local server for a long time. During this process, the inquiry and control receipt document of the local server may be tampered with. At this time, the hash value of the inquiry and control receipt document in the local server, that is, the second hash value, is calculated, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database. Based on the characteristic that the blockchain cannot be tampered with, if the second hash value is the same as the first hash value, it means that the inquiry and control receipt document in the local server has not been tampered with. At this time, the inquiry and control receipt document in the local server and the inquiry and control result in the local server are sent to the front-end transaction service, thereby solving the problem in the prior art that the receipt document is at risk of being tampered with in the scenario of front-end transaction service failure recovery and re-feedback.
[0151] The above-mentioned judicial investigation and control credibility monitoring device includes a processor and a memory. The above-mentioned generation storage unit, processing upload storage unit, first acquisition unit, first acquisition processing unit and first determination sending unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.
[0152] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the problem in the prior art that the receipt document is at risk of being tampered with in scenarios such as backtracking feedback.
[0153] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0154] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the judicial investigation and control credibility monitoring method.
[0155] Specifically, the credibility monitoring methods of judicial investigation and control include:
[0156] Step S201, when receiving the check and control result sent by the core transaction service, generating a check and control receipt document according to the check and control result, and storing the check and control receipt document and the check and control result in the local server and the distributed storage server;
[0157] The above-mentioned check and control result indicates the result of executing a judicial inquiry operation on the target account or the result of executing a judicial control operation on the target account, and the above-mentioned check and control receipt document indicates the receipt document representing the above-mentioned check and control result;
[0158] Step S202: Process the control receipt document using a hash algorithm to obtain a first hash value, upload the first hash value to the blockchain, obtain a first blockchain transaction number, and store the first blockchain transaction number in the database;
[0159] Step S203, when the front-end transaction service fails and the front-end transaction service resumes normal operation, obtaining the first blockchain transaction number from the database, and obtaining the first hash value from the blockchain according to the first blockchain transaction number in the database;
[0160] Step S204, obtaining the above-mentioned inquiry and control receipt document and the above-mentioned inquiry and control result from the above-mentioned local server, and processing the above-mentioned inquiry and control receipt document in the above-mentioned local server by using a hash algorithm to obtain a second hash value;
[0161] Step S205, when the first hash value and the second hash value are the same, determine that the inquiry and control receipt document in the local server has not been tampered with, and send the inquiry and control receipt document in the local server and the inquiry and control result in the local server to the pre-transaction service.
[0162] An embodiment of the present invention provides a processor, which is used to run a program, wherein the judicial investigation and control credibility monitoring method is executed when the program is running.
[0163] Specifically, the credibility monitoring methods of judicial investigation and control include:
[0164] Step S201, when receiving the check and control result sent by the core transaction service, generating a check and control receipt document according to the check and control result, and storing the check and control receipt document and the check and control result in the local server and the distributed storage server;
[0165] The above-mentioned check and control result indicates the result of executing a judicial inquiry operation on the target account or the result of executing a judicial control operation on the target account, and the above-mentioned check and control receipt document indicates the receipt document representing the above-mentioned check and control result;
[0166] Step S202: Process the control receipt document using a hash algorithm to obtain a first hash value, upload the first hash value to the blockchain, obtain a first blockchain transaction number, and store the first blockchain transaction number in the database;
[0167] Step S203, when the front-end transaction service fails and the front-end transaction service resumes normal operation, obtaining the first blockchain transaction number from the database, and obtaining the first hash value from the blockchain according to the first blockchain transaction number in the database;
[0168] Step S204, obtaining the above-mentioned inquiry and control receipt document and the above-mentioned inquiry and control result from the above-mentioned local server, and processing the above-mentioned inquiry and control receipt document in the above-mentioned local server by using a hash algorithm to obtain a second hash value;
[0169] Step S205, when the first hash value and the second hash value are the same, determine that the inquiry and control receipt document in the local server has not been tampered with, and send the inquiry and control receipt document in the local server and the inquiry and control result in the local server to the pre-transaction service.
[0170] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0171] Step S201, when receiving the check and control result sent by the core transaction service, generating a check and control receipt document according to the check and control result, and storing the check and control receipt document and the check and control result in the local server and the distributed storage server;
[0172] The above-mentioned check and control result indicates the result of executing a judicial inquiry operation on the target account or the result of executing a judicial control operation on the target account, and the above-mentioned check and control receipt document indicates the receipt document representing the above-mentioned check and control result;
[0173] Step S202: Process the control receipt document using a hash algorithm to obtain a first hash value, upload the first hash value to the blockchain, obtain a first blockchain transaction number, and store the first blockchain transaction number in the database;
[0174] Step S203, when the front-end transaction service fails and the front-end transaction service resumes normal operation, obtaining the first blockchain transaction number from the database, and obtaining the first hash value from the blockchain according to the first blockchain transaction number in the database;
[0175] Step S204, obtaining the above-mentioned inquiry and control receipt document and the above-mentioned inquiry and control result from the above-mentioned local server, and processing the above-mentioned inquiry and control receipt document in the above-mentioned local server by using a hash algorithm to obtain a second hash value;
[0176] Step S205, when the first hash value and the second hash value are the same, determine that the inquiry and control receipt document in the local server has not been tampered with, and send the inquiry and control receipt document in the local server and the inquiry and control result in the local server to the pre-transaction service.
[0177] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0178] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0179] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0180] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0181] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0182] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0183] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0184] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0185] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0186] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0187] 1) In the judicial investigation and control credibility monitoring method of the present application, the hash value of the investigation and control receipt document, i.e., the first hash value, is uploaded to the blockchain to obtain the first blockchain transaction number. If the front-end transaction service fails and the front-end transaction service resumes normal operation, the investigation and control receipt document is stored in the local server for a long time. During this process, the investigation and control receipt document of the local server may be tampered with. At this time, the hash value of the investigation and control receipt document in the local server, i.e., the second hash value, is calculated, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database. Based on the characteristic that the blockchain cannot be tampered with, if the second hash value is the same as the first hash value, it indicates that the investigation and control receipt document in the local server has not been tampered with. At this time, the investigation and control receipt document in the local server and the investigation and control result in the local server are sent to the front-end transaction service, thereby solving the problem in the prior art that the receipt document is at risk of being tampered with in the scenario of front-end transaction service failure recovery and re-feedback.
[0188] 2) In the judicial investigation and control credibility monitoring device of the present application, the hash value of the investigation and control receipt document, i.e., the first hash value, is uploaded to the blockchain to obtain the first blockchain transaction number. If the front-end transaction service fails and the front-end transaction service resumes normal operation, the investigation and control receipt document is stored in the local server for a long time. During this process, the investigation and control receipt document of the local server may be tampered with. At this time, the hash value of the investigation and control receipt document in the local server, i.e., the second hash value, is calculated, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database. Based on the characteristic that the blockchain cannot be tampered with, if the second hash value is the same as the first hash value, it indicates that the investigation and control receipt document in the local server has not been tampered with. At this time, the investigation and control receipt document in the local server and the investigation and control result in the local server are sent to the front-end transaction service, thereby solving the problem in the prior art that the receipt document is at risk of being tampered with in the scenario of front-end transaction service failure recovery and re-feedback.
[0189] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for monitoring the credibility of judicial investigation and control, characterized in that: The method is applied to a judicial investigation and control credibility monitoring service, which is deployed on a local server and is respectively connected to a core transaction service, a distributed storage server, a blockchain, a database, and a front-end transaction service and communication, and the method includes: In the case of receiving the check and control result sent by the core transaction service, generating a check and control receipt document according to the check and control result, and storing the check and control receipt document and the check and control result in the local server and the distributed storage server, wherein the check and control result represents the result of performing a judicial inquiry operation on the target account or the result of performing a judicial control operation on the target account, and the check and control receipt document is a receipt document representing the check and control result; Processing the control receipt document using a hash algorithm to obtain a first hash value, uploading the first hash value to the blockchain, obtaining a first blockchain transaction number, and storing the first blockchain transaction number in the database; When the front-end transaction service fails and the front-end transaction service resumes normal operation, obtaining the first blockchain transaction number from the database, and obtaining the first hash value from the blockchain according to the first blockchain transaction number in the database; Obtaining the control receipt document and the control result from the local server, and processing the control receipt document in the local server using a hash algorithm to obtain a second hash value; When the first hash value and the second hash value are the same, it is determined that the inquiry and control receipt document in the local server has not been tampered with, and the inquiry and control receipt document in the local server and the inquiry and control result in the local server are sent to the pre-transaction service.
2. The method according to claim 1, characterized in that The front-end transaction service is connected to the transaction service of the authority in communication, and after the check and control receipt document is processed by a hash algorithm to obtain a first hash value, and the first hash value is uploaded to the blockchain to obtain a first blockchain transaction number, the method includes: In the case that the pre-transaction service does not fail, the inquiry and control receipt document and the inquiry and control result are obtained from the local server, and the inquiry and control receipt document and the inquiry and control result in the local server are sent to the pre-transaction service, and the inquiry and control receipt document and the inquiry and control result in the local server are deleted; Detecting whether the pre-transaction service has received a traceback request message sent by the authority transaction service, wherein the traceback request message indicates a request for the pre-transaction service to resend the control receipt document and the control result to the authority transaction service; When the front-end transaction service receives the traceback request information sent by the authorized authority transaction service, the front-end transaction service obtains the check and control receipt document and the check and control result from the distributed storage server, and processes the check and control receipt document in the distributed storage server using the hash algorithm to obtain a third hash value; Obtaining the first blockchain transaction number from the database; Obtaining the first hash value from the blockchain according to the first blockchain transaction number in the database; When the first hash value and the third hash value are the same, it is determined that the inquiry and control receipt document in the distributed storage server has not been tampered with, and the inquiry and control receipt document in the distributed storage server and the inquiry and control result in the distributed storage server are sent to the pre-transaction service.
3. The method according to claim 1, characterized in that The check and control receipt document includes: a second blockchain transaction number and a third blockchain transaction number, wherein the second blockchain transaction number is obtained by uploading the check and control request information to the blockchain, and the third blockchain transaction number is obtained by uploading the check and control result to the blockchain, wherein the check and control request information indicates a request to perform the judicial inquiry operation on the target account or to perform the judicial control operation on the target account, and the check and control receipt document in the local server and the check and control result in the local server are sent to the front-end transaction service, including: Obtaining a first target blockchain transaction number and a second target blockchain transaction number, wherein the first target blockchain transaction number is the second blockchain transaction number in the inquiry and control receipt document in the local server, and the second target blockchain transaction number is the third blockchain transaction number in the inquiry and control receipt document in the local server; Determine whether the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain; When the first target blockchain transaction number exists on the blockchain and the second target blockchain transaction number exists, the inquiry and control receipt document in the local server and the inquiry and control result in the local server are sent to the pre-transaction service.
4. The method according to claim 2, characterized in that: The check and control receipt document includes: a second blockchain transaction number and a third blockchain transaction number, wherein the second blockchain transaction number is obtained by uploading the check and control request information to the blockchain, and the third blockchain transaction number is obtained by uploading the check and control result to the blockchain, wherein the check and control request information indicates a request to perform the judicial inquiry operation on the target account or to perform the judicial control operation on the target account, and the check and control receipt document in the distributed storage server and the check and control result in the distributed storage server are sent to the front-end transaction service, including: Obtaining a third target blockchain transaction number and a fourth target blockchain transaction number, wherein the third target blockchain transaction number is the second blockchain transaction number in the inquiry and control receipt document in the distributed storage server, and the fourth target blockchain transaction number is the third blockchain transaction number in the inquiry and control receipt document in the distributed storage server; Determine whether the third target blockchain transaction number and the fourth target blockchain transaction number exist on the blockchain; When the third target blockchain transaction number exists on the blockchain and the fourth target blockchain transaction number exists, the inquiry and control receipt document in the distributed storage server and the inquiry and control result in the distributed storage server are sent to the pre-transaction service.
5. The method according to claim 3 or 4, characterized in that: The pre-transaction service is connected to the transaction service of the authority in communication, and generates a check and control receipt document according to the check and control result, including: The front-end transaction service receives the inquiry and control request information sent by the authority transaction service, uploads the inquiry and control request information to the blockchain, and obtains a second blockchain transaction number, wherein the inquiry and control request information indicates a request to perform the judicial inquiry operation on the target account or the judicial control operation on the target account; Sending the inquiry and control request information to the core transaction service, wherein the core transaction service is used to send the inquiry and control result to the judicial inquiry and control credibility monitoring service when receiving the inquiry and control request information; At least uploading the check and control result to the blockchain to obtain the third blockchain transaction number; The inspection and control receipt document is generated according to the inspection and control result, the second blockchain transaction number and the third blockchain transaction number.
6. The method according to claim 5, characterized in that At least uploading the check and control result to the blockchain to obtain the third blockchain transaction number includes: When the query and control request information indicates that the judicial query operation is performed on the target account and the number of bytes of the query and control result meets a predetermined condition, the query and control result is packaged to obtain a data packet, the data packet is processed using a hash algorithm to obtain a fourth hash value, and the fourth hash value is uploaded to the blockchain to obtain the third blockchain transaction number, and the predetermined condition is that the number of bytes of the query and control result is greater than or equal to the predetermined number of bytes; When the query and control request information indicates that the judicial query operation is performed on the target account and the number of bytes of the query and control result does not meet the predetermined condition, the query and control result is uploaded to the blockchain to obtain the third blockchain transaction number.
7. The method according to claim 5, characterized in that At least uploading the check and control result to the blockchain to obtain the third blockchain transaction number includes: In the case where the inquiry and control request information represents the judicial control operation on the target account, the inquiry and control result is uploaded to the blockchain to obtain the third blockchain transaction number.
8. A judicial investigation and control credibility monitoring device, characterized in that: The device is applied to the judicial investigation and control credibility monitoring service, which is deployed on a local server. The judicial investigation and control credibility monitoring service is respectively connected to the core transaction service, the distributed storage server, the blockchain, the database and the front-end transaction service and communication, and the device includes: a generating storage unit, configured to generate a check and control receipt document according to the check and control result when receiving the check and control result sent by the core transaction service, and store the check and control receipt document and the check and control result to the local server and the distributed storage server, wherein the check and control result represents a result of a judicial inquiry operation performed on a target account or a result of a judicial control operation performed on the target account, and the check and control receipt document is a receipt document representing the check and control result; a processing and uploading storage unit, configured to process the control receipt document using a hash algorithm to obtain a first hash value, upload the first hash value to the blockchain, obtain a first blockchain transaction number, and store the first blockchain transaction number in the database; A first acquisition unit is configured to acquire the first blockchain transaction number from the database when the front-end transaction service fails and the front-end transaction service recovers to a normal operating state, and acquire the first hash value from the blockchain according to the first blockchain transaction number in the database; A first acquisition processing unit, configured to acquire the control receipt document and the control result from the local server, and process the control receipt document in the local server using a hash algorithm to obtain a second hash value; The first determination and sending unit is used to determine that the check and control receipt document in the local server has not been tampered with when the first hash value and the second hash value are the same, and send the check and control receipt document in the local server and the check and control result in the local server to the pre-transaction service.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the method for monitoring the credibility of judicial investigation and control as described in any one of claims 1 to 7 is implemented.
10. A judicial investigation and control credibility monitoring system, characterized in that: The system comprises: Core transaction services; Distributed storage server; Blockchain; database; Pre-transaction service, which is used to communicate with the transaction service of the authority; A judicial investigation and control credibility monitoring service, wherein the judicial investigation and control credibility monitoring service is deployed on a local server, and the judicial investigation and control credibility monitoring service is respectively connected to the core transaction service, the distributed storage server, the blockchain, the database and the front-end transaction service and communication, and the judicial investigation and control credibility monitoring service is used to execute the judicial investigation and control credibility monitoring method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Judicial evidence supervision method and system based on block chain, and computer storage medium
CN114968951A
Data tamper-proofing method and device based on block chain
CN115618422A
Document detection method and device, equipment, storage medium and program product
CN116628307A
Alcoholic beverage for meat containing soy sauce
KR102611995B1
