Judicial investigation and control credibility monitoring method, monitoring device and monitoring system
Patent Information
- Application Number
- CN202411102362.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2044-08-12
AI Technical Summary
[0007]本申请的主要目的在于提供一种司法查控可信性监控方法、司法查控可信性监控装置、计算机程序产品和司法查控可信性监控系统,以至少解决现有技术中在回溯反馈等场景下回执文书存在被篡改的风险的问题
[0018]应用本申请的技术方案,将查控回执文书的哈希值即第一哈希值上传至区块链,得到第一区块链交易号,在回溯反馈等场景下,即若权机关交易服务请求前置交易服务再次发送查控回执文书和查控结果至有权机关交易服务,查控回执文书存储在分布式存储服务器的时间较长,此过程,分布式存储服务器中的查控回执文书可能被篡改,此时,计算分布式存储服务器中的查控回执文书的哈希值即第三哈希值,并依据数据库中的第一区块链交易号,从区块链上获取第一哈希值,基于区块链无法被篡改的特性,若第三哈希值与第一哈希值相同,则表示分布式存储服务器中的查控回执文书未被篡改,此时,将分布式存储服务器中的查控回执文书和分布式存储服务器中的查控结果发送至前置交易服务,从而解决了现有技术中在回溯反馈等场景下回执文书存在被篡改的风险的问题。
Smart Images

Figure CN118916425B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of judicial investigation and control credibility monitoring technology, specifically 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 Technology
[0002] During the judicial investigation and control of banks by state authorities, the bank's front-end transaction service receives and parses the investigation and control request information from various state authorities. The bank's core transaction service 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 then returns the receipt and investigation and control results to the state authorities. Some problems exist in this investigation and control process, as follows:
[0003] In scenarios where the pre-transaction service fails and is re-followed up, there is a risk that the receipt document may be tampered with.
[0004] In scenarios such as retrospective feedback, there is a risk that receipt documents may be tampered with;
[0005] It is impossible to ensure the non-repudiation of the investigation and control request information and the investigation and control results, and it is impossible to prove the credibility of the investigation and control.
[0006] Currently, there is no solution to the above problems. Summary of the Invention
[0007] The main purpose of this application is to provide a judicial investigation and control credibility monitoring method, judicial investigation and control credibility monitoring device, computer program product, and judicial investigation and control credibility monitoring system, so as to at least solve the problem of the risk of tampering with receipt documents in scenarios such as retrospective feedback in the prior art.
[0008] To achieve the above objectives, according to one aspect of this application, a method for monitoring the credibility of judicial investigation and control is provided. The method is applied to a judicial investigation and control credibility monitoring service, which is deployed on a local server and is connected to a core transaction service, a distributed storage server, a blockchain, a database, and a front-end transaction service and communication. The method includes: upon receiving an investigation and control result sent by the core transaction service, generating an investigation and control receipt document based on the investigation and control result, and storing the investigation and control receipt document and the investigation and control result on the local server and the distributed storage server. The investigation and control result represents the result of performing a judicial inquiry operation on a 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; processing the investigation and control receipt document using a hash algorithm to obtain... The system obtains a first hash value, uploads it to the blockchain to obtain a first blockchain transaction number, and stores the first blockchain transaction number in the database. If the front-end transaction service fails and then resumes normal operation, the system retrieves the first blockchain transaction number from the database and, based on this number, obtains the first hash value from the blockchain. The system also retrieves the control receipt and the control result from the local server and processes the control receipt in the local server using a hash algorithm to obtain a second hash value. If the first hash value and the second hash value are the same, it is determined that the control receipt in the local server has not been tampered with, and the control receipt and the control result in the local server are sent to the front-end transaction service.
[0009] Optionally, the pre-transaction service communicates with the authorized agency's transaction service. After processing the control inquiry 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: if the pre-transaction service does not fail, retrieving the control inquiry receipt document and the control inquiry result from the local server, sending the control inquiry receipt document and the control inquiry result from the local server to the pre-transaction service, and deleting the control inquiry receipt document and the control inquiry result from the local server; detecting whether the pre-transaction service has received a retrospective request information sent by the authorized agency's transaction service, the retrospective request information indicating a request for the pre-transaction service to resend the control inquiry receipt document and the control inquiry result. The investigation and control results are sent to the authorized agency's transaction service; when the front-end transaction service receives the retrospective request information sent by the authorized agency's transaction service, the investigation and control receipt document and the investigation and control results are obtained from the distributed storage server, and the investigation and control receipt document in the distributed storage server is processed using a hash algorithm to obtain a third hash value; the first blockchain transaction number is obtained from the database; based on the first blockchain transaction number in the database, the first hash value is obtained from the blockchain; if the first hash value and the third hash value are the same, it is determined that the investigation and control receipt document in the distributed storage server has not been tampered with, and the investigation and control receipt document and the investigation and control results in the distributed storage server are sent to the front-end transaction service.
[0010] Optionally, the investigation 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 investigation and control request information to the blockchain, and the third blockchain transaction number is obtained by uploading the investigation and control result to the blockchain. The investigation and control request information indicates a request to perform the judicial inquiry operation or the judicial control operation on the target account. Sending the investigation and control receipt document and the investigation and control result in the local server to the pre-transaction service includes: obtaining a first target blockchain transaction number and a second target blockchain transaction number, where the first target blockchain transaction number is the second blockchain transaction number in the investigation and control receipt document in the local server, and the second target blockchain transaction number is the third blockchain transaction number in the investigation 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 both the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain, sending the investigation and control receipt document and the investigation and control result in the local server to the pre-transaction service.
[0011] Optionally, the investigation 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 investigation and control request information to the blockchain, and the third blockchain transaction number is obtained by uploading the investigation and control result to the blockchain. The investigation and control request information indicates a request to perform the judicial inquiry operation or the judicial control operation on the target account. Sending the investigation and control receipt document and the investigation and control result in the distributed storage server to the pre-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 investigation and control receipt document in the distributed storage server, and the fourth target blockchain transaction number is the third blockchain transaction number in the investigation 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 investigation and control receipt document and the investigation and control result in the distributed storage server to the pre-transaction service.
[0012] Optionally, the pre-transaction service is communicatively connected to the authorized agency's transaction service, and generates a control receipt document based on the control result, including: upon receiving a control request information sent by the authorized agency's transaction service, the pre-transaction service uploads the control request information to the blockchain to obtain a second blockchain transaction number, wherein the control request information indicates a request to perform the judicial inquiry operation or the judicial control operation on the target account; sends the control request information to the core transaction service, which, upon receiving the control request information, sends the control result to the judicial control credibility monitoring service; uploads the control result to the blockchain at least once to obtain a third blockchain transaction number; and generates the control receipt document based on the control result, the second blockchain transaction number, and the third blockchain transaction number.
[0013] Optionally, uploading the investigation and control results to the blockchain to obtain the third blockchain transaction number includes: when the investigation and control request information indicates that the judicial inquiry operation is performed on the target account and the number of bytes of the investigation and control results meets a predetermined condition, packaging the investigation and control results 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 investigation and control results is greater than or equal to a predetermined number of bytes; and when the investigation and control request information indicates that the judicial inquiry operation is performed on the target account and the number of bytes of the investigation and control results does not meet the predetermined condition, uploading the investigation and control results to the blockchain to obtain the third blockchain transaction number.
[0014] Optionally, at least the search and control results are uploaded to the blockchain to obtain the third blockchain transaction number, including: when the search and control request information indicates that the judicial control operation is to be carried out on the target account, the search and control results are uploaded to the blockchain to obtain the third blockchain transaction number.
[0015] According to another aspect of this application, a judicial investigation and control credibility monitoring device is provided. The device is applied to a judicial investigation and control credibility monitoring service, which is deployed on a local server and is connected to a core transaction service, a distributed storage server, a blockchain, a database, and a front-end transaction service and communication. The device includes: a generation and storage unit, used to generate an investigation and control receipt document based on the investigation and control result sent by the core transaction service, and store the investigation and control receipt document and the investigation and control result on the local server and the distributed storage server. The investigation and control result represents the result of performing a judicial inquiry operation on a 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; and a processing and uploading storage unit, used to process the investigation and control receipt document using a hash algorithm to obtain a first hash value, and then upload the result to the local server and the distributed storage server. 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 acquire 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 to acquire the first hash value from the blockchain based on the first blockchain transaction number in the database; a first acquisition processing unit is used to acquire the query and control receipt document and the query and control result from the local server, and to process the query and control receipt document in the local server using a hash algorithm to obtain a second hash value; a first determination and sending unit is used to determine that the query 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 to send the query and control receipt document and the query and control result in the local server to the front-end transaction service.
[0016] According to another aspect of this application, a computer program product is provided, including a computer program / instruction that, when executed by a processor, implements any of the aforementioned judicial investigation and control credibility monitoring methods.
[0017] According to another aspect of this 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 for communication connection with the transaction service of the competent authority; and a judicial investigation and control credibility monitoring service, the judicial investigation and control credibility monitoring service being communication connection with the core transaction service, the distributed storage server, the blockchain, the database, and the front-end transaction service, the judicial investigation and control credibility monitoring service being used to execute any of the judicial investigation and control credibility monitoring methods described above.
[0018] By applying the technical solution of this application, the hash value of the control and seizure 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, i.e., if the competent authority's transaction service requests the pre-transaction service to resend the control and seizure receipt document and the control and seizure result to the competent authority's transaction service, and the control and seizure receipt document is stored on the distributed storage server for a long time, during which time the control and seizure receipt document in the distributed storage server may be tampered with. At this time, the hash value of the control and seizure 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 immutable characteristic of the blockchain, if the third hash value is the same as the first hash value, it means that the control and seizure receipt document in the distributed storage server has not been tampered with. At this time, the control and seizure receipt document and the control and seizure result in the distributed storage server are sent to the pre-transaction service, thereby solving the problem of the risk of the receipt document being tampered with in scenarios such as retrospective feedback in the prior art. Attached Figure Description
[0019] Figure 1 A hardware structure block diagram of a judicial investigation and control credibility monitoring system provided in an embodiment of this application is shown;
[0020] Figure 2 A flowchart illustrating a judicial investigation and control credibility monitoring method according to an embodiment of this application is shown.
[0021] Figure 3 A flowchart illustrating another judicial investigation and control credibility monitoring method provided according to an embodiment of this application is shown.
[0022] Figure 4 A flowchart illustrating another judicial investigation and control credibility monitoring method provided according to an embodiment of this application is shown.
[0023] Figure 5 A flowchart illustrating yet another judicial investigation and control credibility monitoring method provided according to an embodiment of this 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 this application is shown. Detailed Implementation
[0025] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort 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, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] For ease of description, the following explains some of the nouns or terms used in the embodiments of this application:
[0029] Pre-transaction service: Different countries have different ways of initiating judicial investigations and controls. The pre-transaction service is used to receive and analyze judicial investigation and control request information from the competent authorities of various countries, and to provide feedback on the receipt documents and investigation and control results.
[0030] Core transaction services: Invoke multiple internal related systems, process judicial investigation and control request information, and assemble investigation and control results.
[0031] Related systems: These are typically the various core business systems and peripheral systems within a bank, handling transactions related to actual judicial inquiries and judicial control.
[0032] Blockchain: Blockchain is a decentralized, distributed, and tamper-proof data storage technology. It consists of blocks linked sequentially. Each block stores encrypted information of the data record and a reference to the previous block, and is distributed among multiple computer nodes to achieve consensus. Therefore, blockchain inherently has the characteristics of being verifiable and trustworthy.
[0033] Receipt document: After a competent state authority initiates an investigation or control measure with the bank's dedicated online investigation and control system, the system generates a document with an electronic seal and attachments, and sends the results back to the competent state authority. This document is called a "receipt document".
[0034] A blockchain transaction number (Transaction ID) is a unique identifier used to identify transactions occurring on a blockchain network. Each transaction is assigned a unique Transaction ID, which can be used to track the status of the transaction and confirm its validity. In Bitcoin and other cryptocurrency networks, a blockchain Transaction ID typically consists of a string of numbers and letters, similar to "0x1a2b3c4d5e6f7g8h9i". When users send cryptocurrency or conduct other transactions, they can use this Transaction ID to view detailed transaction information, including the sender, recipient, transaction amount, and transaction time.
[0035] As described in the background section, existing technologies pose a risk of tampering with receipt documents in scenarios such as retrospective feedback. To address this risk, embodiments of this 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 of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0037] This embodiment provides a judicial investigation and control credibility monitoring system, such as Figure 1 As shown, the above system includes:
[0038] Core transaction services;
[0039] Distributed storage server;
[0040] Blockchain;
[0041] database;
[0042] The aforementioned pre-transaction service is used for communication connections with the transaction service of authorized agencies;
[0043] The judicial investigation and control credibility monitoring service is deployed on a local server and is connected to the core transaction service, the distributed storage server, the blockchain, the database, and the front-end transaction service for communication. The judicial investigation and control credibility monitoring service is used to execute any one of the aforementioned judicial investigation and control credibility monitoring methods.
[0044] This embodiment provides a judicial investigation and control credibility monitoring method running on a judicial investigation and control credibility monitoring service. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than that shown here.
[0045] Figure 2 This is a flowchart of a judicial investigation and control credibility monitoring method according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:
[0046] Step S201: Upon receiving the investigation and control results sent by the core transaction service, generate an investigation and control receipt document based on the investigation and control results, and store the investigation and control receipt document and the investigation and control results in the local server and the distributed storage server.
[0047] The aforementioned investigation and control results refer to the results of judicial inquiry operations on the target account or the results of judicial control operations on the target account, and the aforementioned investigation and control receipt is a receipt document representing the aforementioned investigation and control results;
[0048] Specifically, the aforementioned judicial inquiry operation can be to inquire about basic information such as the opening time and location of a bank account, or transaction details, etc.; the aforementioned judicial control operation can be to freeze a bank account, etc.; the result of the aforementioned judicial inquiry operation can be basic information such as the opening time and location of a bank account, or transaction details, etc.; the result of the aforementioned judicial control operation can be whether the freezing of a bank account was successful or unsuccessful, etc.
[0049] In one alternative approach, the aforementioned pre-transaction service is communicatively connected to the authorized authority's transaction service, and step S201 can be implemented as follows:
[0050] Step S2011: After receiving the inquiry and control request information sent by the transaction service of the competent authority, the inquiry and control request information is uploaded to the blockchain to obtain the second blockchain transaction number. The inquiry and control request information indicates a request to conduct the judicial inquiry operation 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. Therefore, the judicial investigation and control credibility monitoring service can detect whether the pre-transaction service has received investigation and control request information sent by the competent authority's transaction service, and can obtain investigation and control request information from the pre-transaction service.
[0052] Specifically, the aforementioned judicial inquiry operations can be used to inquire about basic information such as the opening time and location of a bank account, or transaction details, while the aforementioned judicial control operations can be used to freeze, stop payment, or deduct funds from a bank account.
[0053] Step S2012: The above-mentioned investigation and control request information is sent to the above-mentioned core transaction service. The above-mentioned core transaction service is used to send the above-mentioned investigation and control result to the above-mentioned judicial investigation and control credibility monitoring service upon receiving the above-mentioned investigation and control request information.
[0054] Step S2013: Upload the above-mentioned investigation and control results to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number;
[0055] In one alternative approach, step S2013 above can be implemented as follows:
[0056] 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 meets the predetermined conditions, the above-mentioned inquiry and control result is packaged to obtain a data packet, the above-mentioned data packet is processed by a hash algorithm to obtain a fourth hash value, and the above-mentioned fourth hash value is uploaded to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number. The above-mentioned predetermined conditions are that the number of bytes of the above-mentioned inquiry and control result is greater than or equal to the predetermined number of bytes.
[0057] Specifically, the results of judicial inquiries may involve transaction details, resulting in a large number of bytes in the inquiry and control results. Uploading these results to the blockchain would consume a lot of resources. When the number of bytes in the inquiry and control results is greater than or equal to the predetermined number of bytes, the results are packaged into a data packet. The data packet is then processed using a hash algorithm to obtain a fourth hash value. This fourth hash value is then uploaded to the blockchain to obtain a third blockchain transaction number, thereby avoiding resource waste.
[0058] If the aforementioned investigation and control request information indicates that the aforementioned judicial inquiry operation has been performed on the aforementioned target account and the number of bytes of the aforementioned investigation and control result does not meet the aforementioned predetermined conditions, the aforementioned investigation and control result will be uploaded to the aforementioned blockchain to obtain the aforementioned third blockchain transaction number.
[0059] In one alternative approach, step S2013 above can be implemented as follows:
[0060] When the aforementioned investigation and control request information indicates that the aforementioned judicial control operation is to be carried out on the aforementioned target account, the aforementioned investigation and control results are uploaded to the aforementioned blockchain to obtain the aforementioned third blockchain transaction number.
[0061] Specifically, the result of judicial control operations is generally a feedback of failure or success. The number of bytes in the control results is very small. In this case, the control results can be directly uploaded to the blockchain without consuming a lot of resources.
[0062] Step S2014: Based on the above-mentioned investigation and control results, the above-mentioned second blockchain transaction number, and the above-mentioned third blockchain transaction number, generate the above-mentioned investigation and control receipt document.
[0063] Specifically, the investigation and control request information is uploaded to the blockchain to obtain a second blockchain transaction number, and the investigation and control result is uploaded to the blockchain to obtain a third blockchain transaction number. The second and third blockchain transaction numbers are embedded in the investigation and control receipt document. Based on the immutable nature of the blockchain, the immutability of the investigation and control request information and the investigation and control result is guaranteed, thereby ensuring the credibility of the investigation and control.
[0064] Step S202: The above-mentioned control receipt document is processed using a hash algorithm to obtain a first hash value, and the first hash value is uploaded to the above-mentioned blockchain to obtain a first blockchain transaction number, and the first blockchain transaction number is stored in the above-mentioned database;
[0065] In an alternative embodiment, the aforementioned pre-transaction service is communicatively connected to the authorized agency's transaction service. Following step S202, the method further includes:
[0066] Step S301: If the aforementioned pre-transaction service does not malfunction, retrieve the aforementioned investigation and control receipt and the aforementioned investigation and control result from the aforementioned local server, send the aforementioned investigation and control receipt and the aforementioned investigation and control result from the aforementioned local server to the aforementioned pre-transaction service, and delete the aforementioned investigation and control receipt and the aforementioned investigation and control result from the aforementioned local server.
[0067] Specifically, the judicial investigation and control credibility monitoring service is connected to the pre-transaction service, so the judicial investigation and control credibility monitoring service can detect whether the pre-transaction service is malfunctioning.
[0068] Specifically, if the pre-transaction service is functioning properly, the investigation and control receipt documents are stored on the local server for a short period of time, and the investigation and control receipt documents on the local server cannot be tampered with. In this case, the investigation and control receipt documents and the investigation and control results on the local server are sent to the pre-transaction service.
[0069] Step S302: Detect whether the aforementioned pre-transaction service has received the retrospective request information sent by the aforementioned authorized agency transaction service. The retrospective request information indicates that the aforementioned pre-transaction service is requested to resend the aforementioned investigation and control receipt and the aforementioned investigation and control results to the aforementioned authorized agency transaction service.
[0070] Step S303: When the aforementioned pre-transaction service receives the aforementioned retrospective request information sent by the aforementioned authorized agency transaction service, the aforementioned investigation and control receipt document and the aforementioned investigation and control result are obtained from the aforementioned distributed storage server, and the aforementioned investigation and control receipt document in the aforementioned distributed storage server is processed using the hash algorithm to obtain the third hash value;
[0071] Step S304: Obtain the first blockchain transaction number from the aforementioned database;
[0072] Step S305: Obtain the first hash value from the blockchain based on the first blockchain transaction number in the database.
[0073] Step S306: If 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 and the control result in the distributed storage server are sent to the pre-transaction service.
[0074] Specifically, the hash value of the control and seizure 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, i.e., if the authority's transaction service requests the front-end transaction service to resend the control and seizure receipt document and the control and seizure result to the authority's transaction service, and the control and seizure receipt document is stored on the distributed storage server for a long time, during which time the control and seizure receipt document in the distributed storage server may be tampered with. At this time, the hash value of the control and seizure 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 immutable characteristic of the blockchain, if the third hash value is the same as the first hash value, it means that the control and seizure receipt document in the distributed storage server has not been tampered with. At this time, the control and seizure receipt document and the control and seizure result in the distributed storage server are sent to the front-end transaction service, thereby solving the problem of the risk of the receipt document being tampered with in scenarios such as retrospective feedback in the existing technology.
[0075] In an optional solution, the step S306 above, which involves sending the aforementioned inquiry and control receipt document and the aforementioned inquiry and control result from the distributed storage server to the aforementioned pre-transaction service, can be implemented as follows:
[0076] Obtain the third target blockchain transaction number and the fourth target blockchain transaction number. The third target blockchain transaction number is the second blockchain transaction number in the aforementioned control and investigation receipt document in the aforementioned distributed storage server, and the fourth target blockchain transaction number is the third blockchain transaction number in the aforementioned control and investigation receipt document in the aforementioned distributed storage server.
[0077] Determine whether the aforementioned third target blockchain transaction number and the aforementioned fourth target blockchain transaction number exist on the aforementioned blockchain;
[0078] If the aforementioned third target blockchain transaction number and the aforementioned fourth target blockchain transaction number exist on the aforementioned blockchain, the aforementioned investigation and control receipt document and the aforementioned investigation and control result in the aforementioned distributed storage server will be sent to the aforementioned front-end transaction service.
[0079] Specifically, the second and third blockchain transaction numbers are obtained from the control and investigation receipt documents in the distributed storage server. The existence of the second and third blockchain transaction numbers is checked in the blockchain. If they exist, it means that the control and investigation request information and the control and investigation results are factual and have not been tampered with, and the control and investigation process is complete and without omissions. At this time, the control and investigation receipt documents and the control and investigation results in the distributed storage server are sent to the front-end transaction service.
[0080] Specifically, this application does not require additional hardware deployment in the process of detecting whether the investigation and control process is complete and without omissions, which reduces system complexity, reduces dependence on external conditions, and can simultaneously achieve anti-tampering of investigation and control receipt documents and verification of the credibility of the investigation and control process.
[0081] Step S203: If the aforementioned pre-transaction service fails and then resumes normal operation, the first blockchain transaction number is obtained from the database, and the first hash value is obtained from the blockchain based on 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. Therefore, the judicial investigation and control credibility monitoring service can detect whether the pre-transaction service has malfunctioned and whether it has returned to normal operation.
[0083] Step S204: Obtain the aforementioned inquiry and control receipt and the aforementioned inquiry and control result from the aforementioned local server, and process the aforementioned inquiry and control receipt in the aforementioned local server using a hash algorithm to obtain a second hash value;
[0084] Step S205: If the first hash value and the second hash value are the same, determine that the control receipt document in the local server has not been tampered with, and send the control receipt document and the control result in the local server to the pre-transaction service.
[0085] Specifically, the hash value of the control inquiry 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 then resumes normal operation, the control inquiry receipt document will be stored on the local server for a long time. During this process, the control inquiry receipt document on the local server may be tampered with. At this time, the hash value of the control inquiry receipt document on the local server, i.e., the second hash value, is calculated. Based on the first blockchain transaction number in the database, the first hash value is obtained from the blockchain. Based on the immutable characteristic of the blockchain, if the second hash value is the same as the first hash value, it means that the control inquiry receipt document on the local server has not been tampered with. At this time, the control inquiry receipt document and the control inquiry result on the local server are sent to the front-end transaction service, thereby solving the problem of the risk of the receipt document being tampered with in the scenario of re-feedback after the front-end transaction service fails in the existing technology.
[0086] Specifically, since troubleshooting the pre-transaction service usually requires manual intervention and takes a certain amount of time, the query and control receipt documents on the local server may be tampered with.
[0087] Specifically, the judicial investigation and control credibility monitoring method of this application only needs to upload the hash value of the investigation and control receipt document, i.e. the first hash value, to the blockchain, without uploading 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 implementation, the step S205 above, which involves sending the aforementioned control and investigation receipt document and the aforementioned control and investigation result from the local server to the aforementioned pre-transaction service, can be achieved as follows:
[0089] Obtain the first target blockchain transaction number and the second target blockchain transaction number, wherein the first target blockchain transaction number is the second blockchain transaction number in the aforementioned control and seizure receipt document on the aforementioned local server, and the second target blockchain transaction number is the third blockchain transaction number in the aforementioned control and seizure receipt document on the aforementioned local server;
[0090] Determine whether the aforementioned first target blockchain transaction number and the aforementioned second target blockchain transaction number exist on the aforementioned blockchain;
[0091] If the aforementioned first target blockchain transaction number and the aforementioned second target blockchain transaction number exist on the aforementioned blockchain, the aforementioned investigation and control receipt document and the aforementioned investigation and control result in the aforementioned local server will be sent to the aforementioned pre-transaction service.
[0092] Specifically, the second and third blockchain transaction numbers are obtained from the control and investigation receipt documents on the local server. The existence of the second and third blockchain transaction numbers is checked on the blockchain. If they exist, it means that the control and investigation request information and the control and investigation results are factual and have not been tampered with, and the control and investigation process is complete and without omissions. At this time, the control and investigation receipt documents and the control and investigation results on the local server are sent to the front-end transaction service.
[0093] Through the above embodiments, the hash value of the control inquiry 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 then resumes normal operation, the control inquiry receipt document will be stored on the local server for a long time. During this process, the control inquiry receipt document on the local server may be tampered with. At this time, the hash value of the control inquiry receipt document on the local server, i.e., the second hash value, is calculated. Based on the first blockchain transaction number in the database, the first hash value is obtained from the blockchain. Based on the immutability of the blockchain, if the second hash value is the same as the first hash value, it means that the control inquiry receipt document on the local server has not been tampered with. At this time, the control inquiry receipt document and the control inquiry result on the local server are sent to the front-end transaction service, thereby solving the problem of the risk of the receipt document being tampered with in the scenario of re-feedback after the front-end transaction service fails in the prior art.
[0094] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the judicial investigation and control credibility monitoring method of this application will be described in detail below with reference to specific embodiments.
[0095] This embodiment relates to a specific method for monitoring the credibility of judicial investigation and control, such as... Figure 3 As shown, it includes the following steps:
[0096] Step S11: When the front-end transaction service receives the inquiry and control request information sent by the transaction service of the competent 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 to conduct judicial inquiry operations on the target account or to conduct judicial control operations on the target account.
[0097] Step S12: Send the investigation and control request information to the core transaction service. The core transaction service is used to send the investigation and control result to the judicial investigation and control credibility monitoring service upon receiving the investigation and control request information.
[0098] Step S13: Receive the search and control results sent by the core transaction service. The search and control results represent the results of judicial inquiry operations on the target account or judicial control operations on the target account. The search and control receipt is a receipt document representing the search and control results.
[0099] Step S14: Upload the investigation and control results to the blockchain at least to obtain a third blockchain transaction number, including:
[0100] When the information in the inquiry and control request indicates that a judicial inquiry operation is being performed on the target account and the number of bytes in the inquiry and control result meets the predetermined conditions, the inquiry and control result is packaged to obtain a data packet. The data packet is then processed using a hash algorithm to obtain a fourth hash value (QrfHash). The fourth hash value is then uploaded to the blockchain to obtain a third blockchain transaction number (at this time, the third blockchain transaction number is QrfTxID). The predetermined condition is that the number of bytes in the inquiry and control result is greater than or equal to the predetermined number of bytes.
[0101] If the information in the inquiry and control request indicates that a judicial inquiry operation is being performed on the target account and the number of bytes in the inquiry and control result does not meet the predetermined conditions, the inquiry and control result will be uploaded to the blockchain to obtain a third blockchain transaction number (at this time, the third blockchain transaction number is QrTxID).
[0102] When the information in the investigation and control request indicates that a judicial control operation is to be carried out on the target account, the investigation and control results are uploaded to the blockchain to obtain the third blockchain transaction number (at this time, the third blockchain transaction number is CrTxID);
[0103] Step S15: Generate an investigation and control receipt document based on the investigation and control results, the second blockchain transaction number, and the third blockchain transaction number;
[0104] Step S16: Process the inquiry and control receipt document using a hash algorithm to obtain the first hash value (when the inquiry and control request information indicates a judicial inquiry operation on the target account, the first hash value is QrdHash; when the inquiry and control request information indicates 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 to obtain the first blockchain transaction number (in the case of a judicial inquiry operation on the target account represented by the inquiry and control request information, the first blockchain transaction number is QrdTxID; in the case of a judicial control operation on the target account represented by the inquiry and control request information, the first blockchain transaction number is CrdTxID), and store the first blockchain transaction number in the database.
[0106] Step S18: Store the investigation and control receipt and the investigation and control results to the local server and the distributed storage server.
[0107] This embodiment relates to a specific method for monitoring the credibility of judicial investigation and control, such as... Figure 4 As shown, it includes the following steps:
[0108] Step S21: If the front-end transaction service fails and then resumes normal operation, retrieve the first blockchain transaction number from the database (if the inquiry and control request information indicates a judicial inquiry operation on the target account, the first blockchain transaction number is QrdTxID; if the inquiry and control request information indicates a judicial control operation on the target account, the first blockchain transaction number is CrdTxID), and based on the first blockchain transaction number in the database, retrieve the first hash value from the blockchain (if the inquiry and control request information indicates a judicial inquiry operation on the target account, the first hash value is QrdHash; if the inquiry and control request information indicates a judicial control operation on the target account, the first hash value is CrdHash).
[0109] Step S22: Obtain the control inquiry receipt and control result from the local server, and process the control inquiry receipt in the local server using a hash algorithm to obtain the second hash value (DHash);
[0110] Step S23: If the first hash value and the second hash value are the same, determine that the control receipt document in the local server has not been tampered with, and send the control receipt document in the local server and the control result in the local server to the front-end transaction service.
[0111] This embodiment relates to a specific method for monitoring the credibility of judicial investigation and control, such as... Figure 5 As shown, it includes the following steps:
[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 investigation and control receipt document on the local server. The second target blockchain transaction number is the third blockchain transaction number in the investigation and control receipt document on the local server (when the investigation and control request information indicates a judicial inquiry operation on the target account, the third blockchain transaction number is QrfTxID or QrTxID; when the investigation and control request information indicates 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 investigation and control request information indicates that a judicial inquiry operation is being carried out on the target account, determine whether ReqTxID and QrfTxID exist on the blockchain, or, determine whether ReqTxID and QrTxID exist on the blockchain, in the case where the investigation and control request information indicates that a judicial control operation is being carried out on the target account, determine whether ReqTxID and CrTxID exist on the blockchain);
[0114] Step S33: If a first target blockchain transaction number and a second target blockchain transaction number exist on the blockchain, send the inquiry and control receipt document and the inquiry and control result in the local server to the front-end transaction service.
[0115] It should be noted that the steps shown in the flowchart in 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 may be executed in a different order than that shown here.
[0116] This application also provides a judicial investigation and control credibility monitoring device. It should be noted that this judicial investigation and control credibility monitoring device can be used to execute the judicial investigation and control credibility monitoring method provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0117] The following describes the judicial investigation and control credibility monitoring device provided in the embodiments of this application.
[0118] Figure 6 This is a structural block diagram of a judicial investigation and control credibility monitoring device according to an embodiment of this application. Figure 6 As shown, the device includes:
[0119] The storage unit 10 is used to generate a control receipt document based on the control result sent by the core transaction service, and to store the control receipt document and the control result in the local server and the distributed storage server.
[0120] The aforementioned investigation and control results refer to the results of judicial inquiry operations on the target account or the results of judicial control operations on the target account, and the aforementioned investigation and control receipt is a receipt document representing the aforementioned investigation and control results;
[0121] In one alternative embodiment, the aforementioned pre-transaction service is communicatively connected to the authorized authority's transaction service, and the aforementioned generation storage unit includes:
[0122] The first upload module is used to receive the inquiry and control request information sent by the transaction service of the competent authority in the aforementioned pre-transaction service, upload the inquiry and control request information to the aforementioned blockchain, and obtain the second blockchain transaction number. The inquiry and control request information indicates a request to perform the aforementioned judicial inquiry operation or the aforementioned judicial control operation on the aforementioned target account.
[0123] The sending module is used to send the above-mentioned investigation and control request information to the above-mentioned core transaction service. The above-mentioned core transaction service is used to send the above-mentioned investigation and control result to the above-mentioned judicial investigation and control credibility monitoring service upon receiving the above-mentioned investigation and control request information.
[0124] The second upload module is used to upload the above-mentioned investigation and control results to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number;
[0125] In one alternative embodiment, the aforementioned second upload module includes:
[0126] The upload processing submodule is used to package the above-mentioned investigation and control results into a data packet when the above-mentioned investigation and control request information indicates that the above-mentioned judicial inquiry operation has been performed on the above-mentioned target account and the number of bytes of the above-mentioned investigation and control results meets the predetermined conditions. The data packet is then processed using a hash algorithm to obtain a fourth hash value, and the fourth hash value is uploaded to the above-mentioned blockchain to obtain the above-mentioned third blockchain transaction number. The predetermined conditions are that the number of bytes of the above-mentioned investigation and control results is greater than or equal to the predetermined number of bytes.
[0127] The first upload submodule is used to upload the above-mentioned investigation and control results to the above-mentioned blockchain when the above-mentioned investigation and control request information indicates that the above-mentioned judicial inquiry operation has been performed on the above-mentioned target account and the number of bytes of the above-mentioned investigation and control results does not meet the above-mentioned predetermined conditions, so as to obtain the above-mentioned third blockchain transaction number.
[0128] In one alternative embodiment, the aforementioned second upload module includes:
[0129] The second upload submodule is used to upload the above-mentioned investigation and control results to the above-mentioned blockchain when the above-mentioned investigation and control request information indicates that the above-mentioned judicial control operation is carried out on the above-mentioned target account, so as to obtain the above-mentioned third blockchain transaction number.
[0130] The generation module is used to generate the aforementioned investigation and control receipt document based on the aforementioned investigation and control results, the aforementioned second blockchain transaction number, and the aforementioned third blockchain transaction number.
[0131] The processing upload storage unit 20 is used to process the above-mentioned control and inspection receipt document using a hash algorithm to obtain a first hash value, and upload the first hash value to the above-mentioned blockchain to obtain a first blockchain transaction number, and store the first blockchain transaction number in the above-mentioned database;
[0132] In one alternative embodiment, the above-mentioned apparatus further includes:
[0133] The acquisition, sending, and deletion unit is used to, in the absence of a failure in the aforementioned pre-transaction service, acquire the aforementioned control receipt and the aforementioned control result from the aforementioned local server, send the aforementioned control receipt and the aforementioned control result from the aforementioned local server to the aforementioned pre-transaction service, and delete the aforementioned control receipt and the aforementioned control result from the aforementioned local server.
[0134] The detection unit is used to detect whether the aforementioned pre-transaction service has received the retrospective request information sent by the aforementioned authorized agency transaction service. The retrospective request information indicates that the aforementioned pre-transaction service is requested to resend the aforementioned investigation and control receipt and the aforementioned investigation and control results to the aforementioned authorized agency transaction service.
[0135] The first acquisition and processing unit is used to, when the aforementioned front-end transaction service receives the aforementioned retrospective request information sent by the aforementioned authorized agency transaction service, retrieve the aforementioned investigation and control receipt document and the aforementioned investigation and control result from the aforementioned distributed storage server, and process the aforementioned investigation and control receipt document in the aforementioned distributed storage server using the hash algorithm to obtain a third hash value;
[0136] The second acquisition unit is used to acquire the first blockchain transaction number from the database mentioned above.
[0137] The third acquisition unit is used to acquire the first hash value from the blockchain based on the first blockchain transaction number in the database.
[0138] The second determining sending unit is used to determine that the control receipt document in the distributed storage server has not been tampered with when the first hash value and the third hash value are the same, and to send the control receipt document in the distributed storage server and the control result in the distributed storage server to the front-end transaction service.
[0139] In one alternative embodiment, the second determining and transmitting unit comprises:
[0140] The first acquisition module is used to acquire the third target blockchain transaction number and the fourth target blockchain transaction number. The third target blockchain transaction number is the second blockchain transaction number in the aforementioned control and investigation receipt document in the aforementioned distributed storage server, and the fourth target blockchain transaction number is the third blockchain transaction number in the aforementioned control and investigation receipt document in the aforementioned distributed storage server.
[0141] The first determining module is used to determine whether the aforementioned third target blockchain transaction number and the aforementioned fourth target blockchain transaction number exist on the aforementioned blockchain;
[0142] The first sending module is used to send the aforementioned investigation and control receipt document and the aforementioned investigation and control result in the aforementioned distributed storage server to the aforementioned front-end transaction service when the aforementioned third target blockchain transaction number and the aforementioned fourth target blockchain transaction number exist on the aforementioned blockchain.
[0143] The first acquisition unit 30 is used to acquire the first blockchain transaction number from the database and acquire the first hash value from the blockchain based on the first blockchain transaction number in the database when the aforementioned front-end transaction service fails and the aforementioned front-end transaction service resumes normal operation.
[0144] The first acquisition and processing unit 40 is used to acquire the aforementioned inquiry and control receipt document and the aforementioned inquiry and control result from the aforementioned local server, and to process the aforementioned inquiry and control receipt document in the aforementioned local server using a hash algorithm to obtain a second hash value;
[0145] The first determining sending unit 50 is used to determine that the 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 to send the control receipt document and the control result in the local server to the pre-transaction service.
[0146] In one alternative embodiment, the aforementioned determining transmission unit includes:
[0147] The second acquisition module is used to acquire the first target blockchain transaction number and the second target blockchain transaction number, wherein the first target blockchain transaction number is the second blockchain transaction number in the aforementioned control and inspection receipt document in the aforementioned local server, and the second target blockchain transaction number is the third blockchain transaction number in the aforementioned control and inspection receipt document in the aforementioned local server.
[0148] The second determining module is used to determine whether the first target blockchain transaction number and the second target blockchain transaction number exist on the aforementioned blockchain.
[0149] The second sending module is used to send the aforementioned investigation and control receipt document and the aforementioned investigation and control result in the local server to the aforementioned front-end transaction service when the aforementioned first target blockchain transaction number and the aforementioned second target blockchain transaction number exist in the aforementioned blockchain.
[0150] Through the above embodiments, the hash value of the control inquiry 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 then resumes normal operation, the control inquiry receipt document will be stored on the local server for a long time. During this process, the control inquiry receipt document on the local server may be tampered with. At this time, the hash value of the control inquiry receipt document on the local server, i.e., the second hash value, is calculated. Based on the first blockchain transaction number in the database, the first hash value is obtained from the blockchain. Based on the immutability of the blockchain, if the second hash value is the same as the first hash value, it means that the control inquiry receipt document on the local server has not been tampered with. At this time, the control inquiry receipt document and the control inquiry result on the local server are sent to the front-end transaction service, thereby solving the problem of the risk of the receipt document being tampered with in the scenario of re-feedback after the front-end transaction service fails in the prior art.
[0151] The aforementioned judicial investigation and control credibility monitoring device includes a processor and a memory. The aforementioned generation storage unit, processing upload storage unit, first acquisition unit, first acquisition processing unit, and first determination sending unit are all stored as program units in the memory. The processor executes these program units stored in the memory to achieve their respective functions. All of the above modules are located in the same processor; alternatively, the various modules may be located in different processors in any combination.
[0152] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the risk of document tampering in scenarios such as backtracking and feedback, a problem present in existing technologies.
[0153] The memory may include non-permanent memory in computer-readable media, such as 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] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the judicial investigation and control credibility monitoring method.
[0155] Specifically, methods for monitoring the credibility of judicial investigations and controls include:
[0156] Step S201: Upon receiving the investigation and control results sent by the core transaction service, generate an investigation and control receipt document based on the investigation and control results, and store the investigation and control receipt document and the investigation and control results in the local server and the distributed storage server.
[0157] The aforementioned investigation and control results refer to the results of judicial inquiry operations on the target account or the results of judicial control operations on the target account, and the aforementioned investigation and control receipt is a receipt document representing the aforementioned investigation and control results;
[0158] Step S202: The above-mentioned control receipt document is processed using a hash algorithm to obtain a first hash value, and the first hash value is uploaded to the above-mentioned blockchain to obtain a first blockchain transaction number, and the first blockchain transaction number is stored in the above-mentioned database;
[0159] Step S203: If the aforementioned pre-transaction service fails and then resumes normal operation, the first blockchain transaction number is obtained from the database, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database.
[0160] Step S204: Obtain the aforementioned inquiry and control receipt and the aforementioned inquiry and control result from the aforementioned local server, and process the aforementioned inquiry and control receipt in the aforementioned local server using a hash algorithm to obtain a second hash value;
[0161] Step S205: If the first hash value and the second hash value are the same, determine that the control receipt document in the local server has not been tampered with, and send the control receipt document and the control result in the local server to the pre-transaction service.
[0162] This invention provides a processor for running a program, wherein the program executes the judicial investigation and control credibility monitoring method during operation.
[0163] Specifically, methods for monitoring the credibility of judicial investigations and controls include:
[0164] Step S201: Upon receiving the investigation and control results sent by the core transaction service, generate an investigation and control receipt document based on the investigation and control results, and store the investigation and control receipt document and the investigation and control results in the local server and the distributed storage server.
[0165] The aforementioned investigation and control results refer to the results of judicial inquiry operations on the target account or the results of judicial control operations on the target account, and the aforementioned investigation and control receipt is a receipt document representing the aforementioned investigation and control results;
[0166] Step S202: The above-mentioned control receipt document is processed using a hash algorithm to obtain a first hash value, and the first hash value is uploaded to the above-mentioned blockchain to obtain a first blockchain transaction number, and the first blockchain transaction number is stored in the above-mentioned database;
[0167] Step S203: If the aforementioned pre-transaction service fails and then resumes normal operation, the first blockchain transaction number is obtained from the database, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database.
[0168] Step S204: Obtain the aforementioned inquiry and control receipt and the aforementioned inquiry and control result from the aforementioned local server, and process the aforementioned inquiry and control receipt in the aforementioned local server using a hash algorithm to obtain a second hash value;
[0169] Step S205: If the first hash value and the second hash value are the same, determine that the control receipt document in the local server has not been tampered with, and send the control receipt document and the control result in the local server to the pre-transaction service.
[0170] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:
[0171] Step S201: Upon receiving the investigation and control results sent by the core transaction service, generate an investigation and control receipt document based on the investigation and control results, and store the investigation and control receipt document and the investigation and control results in the local server and the distributed storage server.
[0172] The aforementioned investigation and control results refer to the results of judicial inquiry operations on the target account or the results of judicial control operations on the target account, and the aforementioned investigation and control receipt is a receipt document representing the aforementioned investigation and control results;
[0173] Step S202: The above-mentioned control receipt document is processed using a hash algorithm to obtain a first hash value, and the first hash value is uploaded to the above-mentioned blockchain to obtain a first blockchain transaction number, and the first blockchain transaction number is stored in the above-mentioned database;
[0174] Step S203: If the aforementioned pre-transaction service fails and then resumes normal operation, the first blockchain transaction number is obtained from the database, and the first hash value is obtained from the blockchain based on the first blockchain transaction number in the database.
[0175] Step S204: Obtain the aforementioned inquiry and control receipt and the aforementioned inquiry and control result from the aforementioned local server, and process the aforementioned inquiry and control receipt in the aforementioned local server using a hash algorithm to obtain a second hash value;
[0176] Step S205: If the first hash value and the second hash value are the same, determine that the control receipt document in the local server has not been tampered with, and send the control receipt document and the control result in the local server to the pre-transaction service.
[0177] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0178] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0179] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0180] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0181] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function 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] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0184] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0185] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0186] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0187] 1) In the judicial investigation and control credibility monitoring method of this 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 then resumes normal operation, the investigation and control receipt document will be stored on the local server for a long time. During this process, the investigation and control receipt document on the local server may be tampered with. At this time, the hash value of the investigation and control receipt document on the local server, i.e., the second hash value, is calculated. Based on the first blockchain transaction number in the database, the first hash value is obtained from the blockchain. Based on the immutability of the blockchain, if the second hash value is the same as the first hash value, it means that the investigation and control receipt document on the local server has not been tampered with. At this time, the investigation and control receipt document and the investigation and control result on the local server are sent to the front-end transaction service, thereby solving the problem of the risk of the receipt document being tampered with in the scenario of the front-end transaction service failure recovery and re-feedback in the prior art.
[0188] 2) In the judicial investigation and control credibility monitoring device of this 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 then resumes normal operation, the investigation and control receipt document will be stored on the local server for a long time. During this process, the investigation and control receipt document on the local server may be tampered with. At this time, the hash value of the investigation and control receipt document on the local server, i.e., the second hash value, is calculated. Based on the first blockchain transaction number in the database, the first hash value is obtained from the blockchain. Based on the immutability of the blockchain, if the second hash value is the same as the first hash value, it means that the investigation and control receipt document on the local server has not been tampered with. At this time, the investigation and control receipt document and the investigation and control result on the local server are sent to the front-end transaction service, thereby solving the problem of the risk of the receipt document being tampered with in the scenario of the front-end transaction service failure recovery and re-feedback in the prior art.
[0189] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this 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 connected to a core transaction service, a distributed storage server, a blockchain, a database, and a front-end transaction service and communication system. The method includes: Upon receiving the investigation and control results sent by the core transaction service, an investigation and control receipt is generated based on the investigation and control results, and the investigation and control receipt and the investigation and control results are stored in the local server and the distributed storage server. The investigation and control results represent 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 investigation and control receipt is a receipt representing the investigation and control results. The control and inspection receipt is processed using a hash algorithm to obtain a first hash value, which is then uploaded to the blockchain to obtain a first blockchain transaction number, which is then stored in the database. In the event that the front-end transaction service fails and then resumes normal operation, the first blockchain transaction number is retrieved from the database, and the first hash value is retrieved from the blockchain based on the first blockchain transaction number in the database. The control and investigation receipt and the control and investigation result are obtained from the local server, and the control and investigation receipt in the local server is processed by a hash algorithm to obtain a second hash value; If the first hash value and the second hash value are the same, it is determined that the control receipt document in the local server has not been tampered with, and the control receipt document and the control result in the local server are sent to the front-end transaction service.
2. The method according to claim 1, characterized in that, The pre-transaction service communicates with the authorized agency's transaction service. 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: If the pre-transaction service does not fail, the control receipt and the control result are retrieved from the local server, and the control receipt and the control result in the local server are sent to the pre-transaction service, and the control receipt and the control result in the local server are deleted. The system detects whether the pre-transaction service has received a retrospective request from the authorized agency's transaction service. The retrospective request indicates a request for the pre-transaction service to resend the investigation and control receipt and the investigation and control result to the authorized agency's transaction service. When the front-end transaction service receives the retrospective request information sent by the authorized agency transaction service, it retrieves the investigation and control receipt document and the investigation and control result from the distributed storage server, and processes the investigation and control receipt document in the distributed storage server using the hash algorithm to obtain a third hash value; Retrieve the first blockchain transaction number from the database; Based on the first blockchain transaction number in the database, obtain the first hash value from the blockchain; If the first hash value and the third hash value are the same, it is determined that the query and control receipt document in the distributed storage server has not been tampered with, and the query and control receipt document in the distributed storage server and the query and control result in the distributed storage server are sent to the front-end transaction service.
3. The method according to claim 1, characterized in that, The investigation 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 investigation and control request information to the blockchain, and the third blockchain transaction number is obtained by uploading the investigation and control result to the blockchain. The investigation and control request information indicates a request to perform the judicial inquiry operation or the judicial control operation on the target account. Sending the investigation and control receipt document and the investigation and control result from the local server to the pre-transaction service includes: Obtain 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 control and investigation receipt document in the local server, and the second target blockchain transaction number is the third blockchain transaction number in the control and investigation 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; If the first target blockchain transaction number and the second target blockchain transaction number exist on the blockchain, the inquiry and control receipt document and the inquiry and control result in the local server are sent to the front-end transaction service.
4. The method according to claim 2, characterized in that, The investigation 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 investigation and control request information to the blockchain, and the third blockchain transaction number is obtained by uploading the investigation and control result to the blockchain. The investigation and control request information indicates a request to perform the judicial inquiry operation or the judicial control operation on the target account. Sending the investigation and control receipt document and the investigation and control result in the distributed storage server to the front-end transaction service includes: 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 control and investigation receipt document in the distributed storage server, and the fourth target blockchain transaction number is the third blockchain transaction number in the control and investigation 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; If the third target blockchain transaction number and the fourth target blockchain transaction number exist on the blockchain, the retrieval and control receipt document and the retrieval and control result in the distributed storage server are sent to the front-end 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 competent authority, and generates an investigation and control receipt document based on the investigation and control results, including: Upon receiving the investigation and control request information sent by the authorized agency's transaction service in the pre-transaction service, the investigation and control request information is uploaded to the blockchain to obtain a second blockchain transaction number. The investigation 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. The investigation and control request information is sent to the core transaction service, and the core transaction service is used to send the investigation and control result to the judicial investigation and control credibility monitoring service upon receiving the investigation and control request information; The investigation and control results should be uploaded to the blockchain at least to obtain the third blockchain transaction number; Based on the investigation and control results, the second blockchain transaction number, and the third blockchain transaction number, the investigation and control receipt document is generated.
6. The method according to claim 5, characterized in that, At least the investigation and control results are uploaded to the blockchain to obtain the third blockchain transaction number, including: When the search and control request information indicates that the judicial search operation is performed on the target account and the number of bytes of the search and control result meets a predetermined condition, the search 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. The predetermined condition is that the number of bytes of the search and control result is greater than or equal to a predetermined number of bytes. If the search and control request information indicates that the judicial search operation is performed on the target account and the number of bytes of the search and control result does not meet the predetermined conditions, the search 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 the investigation and control results are uploaded to the blockchain to obtain the third blockchain transaction number, including: When the investigation and control request information indicates that the judicial control operation is to be carried out on the target account, the investigation 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 a judicial investigation and control credibility monitoring service, which is deployed on a local server and is connected to a core transaction service, a distributed storage server, a blockchain, a database, and a front-end transaction service and communication system. The device includes: A storage unit is generated to generate a search and control receipt document based on the search and control result sent by the core transaction service, and to store the search and control receipt document and the search and control result in the local server and the distributed storage server. The search 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. The search and control receipt document is a receipt document representing the search and control result. The processing upload storage unit is used to process the query and control receipt document using a hash algorithm to obtain a first hash value, upload the first hash value to the blockchain to obtain a first blockchain transaction number, and store the first blockchain transaction number in the database; The first acquisition unit is configured to, when the front-end transaction service fails and the front-end transaction service resumes normal operation, acquire the first blockchain transaction number from the database, and acquire the first hash value from the blockchain based on the first blockchain transaction number in the database; The first acquisition and processing unit is used to acquire the inquiry and control receipt document and the inquiry and control result from the local server, and to process the inquiry and control receipt document in the local server using a hash algorithm to obtain a second hash value; The first determining sending unit is configured to determine, when the first hash value and the second hash value are the same, that the query and control receipt document in the local server has not been tampered with, and to send the query and control receipt document in the local server and the query and control result in the local server to the front-end transaction service.
9. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the judicial investigation and control credibility monitoring method as described in any one of claims 1 to 7.
10. A judicial investigation and control credibility monitoring system, characterized in that, The system includes: Core transaction services; Distributed storage server; Blockchain; database; The pre-transaction service is used for communication connection with the transaction service of the competent 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 connected and communicated 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 is used to execute the judicial investigation and control credibility monitoring method according to 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