Blockchain-based data processing method and apparatus

By using blockchain technology and encryption algorithms to process the query and verification of electronic invoices, the problems of verifying the authenticity and reuse of invoices have been solved, achieving fast and accurate invoice verification and user privacy protection.

CN113672750BActive Publication Date: 2026-02-13ANT SHENGXIN (SHANGHAI) INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110923857.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2026-02-13
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

In the process of using electronic invoices, verifying the authenticity and reusability of invoices requires a lot of time and effort, and existing technologies are insufficient for efficient data processing to ensure their accuracy and uniqueness.

Method used

By using blockchain technology for invoice verification, combined with authentication and invoice database queries, the authenticity and uniqueness of invoices are ensured. The immutability of blockchain is leveraged to improve verification efficiency, and the SHA256 encryption algorithm is used to protect user privacy data.

Benefits of technology

It enables rapid and accurate verification of electronic invoices, ensuring the authenticity and uniqueness of invoice data, improving the accuracy and efficiency of project case review, and protecting users' data privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113672750B_ABST
    Figure CN113672750B_ABST
Patent Text Reader

Abstract

Embodiments of the present specification provide a blockchain-based data processing method and device, wherein a blockchain-based data processing method comprises: obtaining a ticket query request of a project case submitted by a server; the ticket query request contains a case identifier of the project case and an identification string of a ticket to be checked; performing authentication processing of the project case based on the case identifier; after the authentication passes, performing ticket query in a blockchain based on the identification string; if the query fails, performing ticket query in a ticket database based on the identification string, and returning the query result of the ticket to be checked to the server.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present document relates to the technical field of blockchains, and in particular to a data processing method and device based on a blockchain. BACKGROUND

[0002] With the development of Internet technology, electronic tickets have been widely used. Electronic tickets have the same code as ordinary paper tickets, which is uniformly issued by a tax authority, and thus have the same voucher effectiveness as ordinary paper tickets. However, electronic tickets are more convenient than ordinary paper tickets in various aspects such as ticketing and reimbursement. In the process of using tickets to guarantee claims, the authenticity of the tickets and whether the tickets are reused need to be audited. However, a large amount of time and effort is often required for ticket auditing. SUMMARY

[0003] One or more embodiments of the present specification provide a data processing method based on a blockchain, applied to a blockchain node in a blockchain, including: obtaining a ticket query request of a project case submitted by a server. The ticket query request contains a case identifier of the project case and an identifier string of a ticket to be audited. Performing authentication processing of the project case based on the case identifier. After authentication, performing ticket query in the blockchain based on the identifier string. If the query fails, performing ticket query in a ticket database based on the identifier string, and returning the query result of the ticket to be audited to the server.

[0004] One or more embodiments of the present specification provide another data processing method based on a blockchain, applied to a server accessing a blockchain node, including: obtaining a ticket to be audited submitted for a project case created according to a case application. Generating a ticket query request of the project case and submitting it to the blockchain node. The ticket query request contains a case identifier of the project case and an identifier string of the ticket to be audited. According to the query result of the ticket to be audited returned by the blockchain node, performing auditing processing of the project case.

[0005] One or more embodiments of the present specification provide a data processing device based on a blockchain, running in a blockchain node in a blockchain, including: a ticket query request obtaining module configured to obtain a ticket query request of a project case submitted by a server. The ticket query request contains a case identifier of the project case and an identifier string of a ticket to be audited. An authentication processing module configured to perform authentication processing of the project case based on the case identifier. A ticket query module configured to, after authentication, perform ticket query in the blockchain based on the identifier string. A query result returning module configured to, if the query fails, perform ticket query in a ticket database based on the identifier string, and return the query result of the ticket to be audited to the server.

[0006] One or more embodiments of the present specification provide another kind of blockchain-based data processing apparatus, running on a server accessing a blockchain node, comprising: a to-be-verified ticket obtaining module configured to obtain a to-be-verified ticket submitted for a project case created according to a case application. A ticket query request submitting module configured to generate a ticket query request of the project case and submit it to the blockchain node. The ticket query request contains a case identification of the project case and an identification string of the to-be-verified ticket. A case auditing processing module configured to perform auditing processing of the project case according to a query result of the to-be-verified ticket returned by the blockchain node.

[0007] One or more embodiments of the present specification provide a kind of blockchain-based data processing equipment, comprising: processor;And memory configured to store computer executable instructions, the computer executable instructions are executed when make the processor:Obtain the ticket query request of project case submitted by server. The ticket query request contains the case identification of the project case and the identification string of to-be-verified ticket. Based on the case identification, the project case is authenticated. After authentication, ticket query is carried out in the blockchain based on the identification string. If the query fails, ticket query is carried out in the ticket database based on the identification string, and the query result of the to-be-verified ticket is returned to the server.

[0008] One or more embodiments of the present specification provide another kind of blockchain-based data processing equipment, comprising: processor;And memory configured to store computer executable instructions, the computer executable instructions are executed when make the processor:Obtain the to-be-verified ticket submitted for a project case created according to a case application. The ticket query request of the project case is generated and submitted to the blockchain node. The ticket query request contains a case identification of the project case and an identification string of the to-be-verified ticket. According to the query result of the to-be-verified ticket returned by the blockchain node, the auditing processing of the project case is carried out.

[0009] One or more embodiments of the present specification provide a kind of storage medium for storing computer executable instructions, the computer executable instructions are executed when realize the following flow:Obtain the ticket query request of project case submitted by server. The ticket query request contains the case identification of the project case and the identification string of to-be-verified ticket. Based on the case identification, the project case is authenticated. After authentication, ticket query is carried out in the blockchain based on the identification string. If the query fails, ticket query is carried out in the ticket database based on the identification string, and the query result of the to-be-verified ticket is returned to the server.

[0010] The one or more embodiments of the specification provide another storage medium for storing computer executable instructions, which, when executed, implement the following process: obtaining a to-be-checked ticket submitted for a project case created according to a case application. A ticket query request of the project case is generated and submitted to a blockchain node. The ticket query request contains a case identifier of the project case and an identification string of the to-be-checked ticket. According to the query result of the to-be-checked ticket returned by the blockchain node, an audit process of the project case is performed. BRIEF DESCRIPTION OF DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the one or more embodiments of the specification or the prior art, the drawings needed in the embodiment or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the specification, and other drawings can be obtained by those skilled in the art without creative labor.

[0012] Figure 1 A blockchain-based data processing method processing flowchart is provided for the one or more embodiments of the specification;

[0013] Figure 2 A blockchain-based data processing method processing flowchart applied to a guarantee application scenario is provided for the one or more embodiments of the specification;

[0014] Figure 3 Another blockchain-based data processing method processing flowchart is provided for the one or more embodiments of the specification;

[0015] Figure 4 Another blockchain-based data processing method processing flowchart applied to a guarantee application scenario is provided for the one or more embodiments of the specification;

[0016] Figure 5 A blockchain-based data processing device schematic diagram is provided for the one or more embodiments of the specification;

[0017] Figure 6 Another blockchain-based data processing device schematic diagram is provided for the one or more embodiments of the specification;

[0018] Figure 7 A structure schematic diagram of a blockchain-based data processing device is provided for the one or more embodiments of the specification;

[0019] Figure 8 Another structure schematic diagram of a blockchain-based data processing device is provided for the one or more embodiments of the specification. DETAILED DESCRIPTION

[0020] In order to make the person skilled in the art better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be described clearly and completely in the following with reference to the drawings in one or more embodiments of the present specification. Obviously, the described embodiments are only part of the embodiments of the present specification, not all. Based on one or more embodiments of the present specification, all other embodiments obtained by those skilled in the art without creative labor should belong to the protection scope of the present document.

[0021] An embodiment of a data processing method based on a blockchain provided by the present specification is provided:

[0022] Referring to Figure 1 , a data processing method based on a blockchain provided by the present embodiment is shown in the flow chart, referring to Figure 2 , a data processing method based on a blockchain applied to the guarantee application scenario provided by the present embodiment is shown in the flow chart.

[0023] Referring to Figure 1 , the data processing method based on a blockchain provided by the present embodiment is applied to a blockchain node in a blockchain, and specifically includes steps S102 to S108.

[0024] Step S102, obtaining a ticket query request of a project case submitted by a server.

[0025] The data processing method based on a blockchain provided by the present embodiment introduces a blockchain for ticket query and check processing in the project case audit process. Specifically, for the ticket query request submitted by the server in the project case audit process, the blockchain node performs authentication processing on the ticket query request, and after the authentication is passed, the ticket query processing is performed in the blockchain. If the to-be-checked ticket is not queried in the blockchain, the ticket query is further performed in the ticket database. In this way, through the ticket query processing by the blockchain, the repeatability check of the to-be-checked ticket is realized, and finally the query result of the to-be-checked ticket is returned to the server as the basis for the server to conduct the project case audit. Therefore, under the condition that the authenticity and uniqueness of the ticket data are guaranteed by the "non-tamperable" feature of the blockchain, the accuracy and effectiveness of the ticket query and check processing are improved, and finally the guarantee for the project case audit is provided.

[0026] The project case described in this embodiment includes a guarantee application case in a guarantee project, such as a claim case of an insurance type insurance project and the like. In the process of making a guarantee application in the guarantee project, a user participating in the guarantee project makes a guarantee application, and a provider of the guarantee project audits the guarantee application made by the user. The process of making the guarantee application and the auditing process are in the form of a "case", so it is called a guarantee application case.

[0027] In the auditing process of the guarantee application case, the user's submitted bill or voucher for making a guarantee application often needs to be audited. For example, in the process of making an insurance claim application, the user submits the corresponding bill for making an insurance claim. In the auditing process of the claim case of the insurance project, the bill submitted by the user for making an insurance claim needs to be audited.

[0028] In specific implementation, the server creates a corresponding project case according to the case application submitted by the user, and obtains the to-be-audited bill submitted by the user for the project case, and then submits the bill query request of the generated to-be-audited bill to the blockchain node in the blockchain. After the blockchain node accessed by the server receives the submitted bill query request, the bill query request is processed from the bill query request.

[0029] Specifically, the bill query request contains the case identifier of the project case and the identifier string of the to-be-audited bill. Optionally, the identifier string is generated by encrypting the bill identifier of the to-be-audited bill and the identity identifier of the user to which the to-be-audited bill belongs by using an encryption algorithm, avoiding the transmission of the user's identity identifier in plaintext, and ensuring the user's data privacy and security, wherein the identity identifier includes the user's identity identifier recorded in the to-be-audited bill. For example, the bill ID and the user's identity ID recorded in the bill are encrypted by using the SHA256 encryption algorithm to obtain the encrypted string of the bill.

[0030] In actual application, since the case related data and bill data of the user's project case belong to the user's privacy data to some extent, in order to ensure the user's data privacy and security, the user's authorization is needed to perform the bill query and check processing in the blockchain. In an optional implementation provided in this embodiment, before the bill query processing in the blockchain, a case authorization request made by the user is responded to for case authorization processing, specifically including: receiving the case authorization request synchronized by the server; creating an authorization record of the project case to which the case identifier belongs according to the case identifier contained in the case authorization request and performing on-chain processing. Optionally, the case authorization request synchronized by the server is generated according to the authorization instruction submitted by the user for the project case.

[0031] Further, the authorization of the user to the project case in practice can also be initiated by the project provider or the project agent, and for this purpose, another optional implementation provided by the embodiment adopts the following manner for case authorization processing:

[0032] receiving the server-synchronized case authorization request; wherein the server-synchronized case authorization request is generated based on the agent authorization instruction submitted by the project provider or the project agent;

[0033] According to the case identifier contained in the case authorization request, create the authorization record of the project case to which the case identifier belongs and write it into the authorization database.

[0034] The project provider includes a guarantee institution that provides a guarantee project, and the project agent includes an agent institution that provides a guarantee project agent. In the embodiment, the blockchain includes a consortium chain, and the blockchain nodes in the blockchain include consortium chain nodes in the consortium chain. Optionally, when the blockchain is a consortium chain, the consortium chain is composed of consortium chain nodes corresponding to each guarantee institution or agent institution. It should be noted that, in the process of submitting the ticket query request to the consortium chain node in the consortium chain, the consortium chain node that submits the ticket query request is the consortium chain node corresponding to the guarantee institution to which the current project case belongs.

[0035] Step S104, performing the authentication processing of the project case based on the case identifier.

[0036] After receiving the case query request submitted by the server and containing the case identifier of the project case and the identifier string of the to-be-checked ticket, the case authentication processing is performed based on the case identifier contained in the case query request.

[0037] In specific implementation, the user authorization record of the user after the authorization processing of the project case can be stored in the blockchain or the authorization database. For these two cases, the following two authentication processing methods are provided by the embodiment:

[0038] Authentication processing method one:

[0039] Based on the case identifier, query whether there is a corresponding user authorization record in the blockchain, if yes, determine that the authentication is passed; if no, determine that the authentication is not passed;

[0040] Authentication processing method two:

[0041] Based on the case identifier, query whether there is a corresponding user authorization record in the authorization database, if yes, determine that the authentication is passed; if no, determine that the authentication is not passed.

[0042] Correspondingly, after the authentication processing of the project case is performed, if the authentication is passed, step S106 is performed; if the authentication is not passed, a prompt message that the authentication is not passed is returned to the server.

[0043] Step S106: After the authentication is passed, a ticket query is performed in the blockchain based on the identification string.

[0044] The above step completes the authentication processing of the project case and, in the case where the authentication result is that the authentication is passed, a ticket query is performed based on the identification string of the ticket to be checked included in the case query request. Specifically, in the process of the ticket query in the blockchain, since the tickets of the historical project cases are stored in the blockchain, whether there is a ticket with the same identification string as the identification string of the ticket to be checked is queried in the blockchain. If there is, it indicates that the ticket to be checked submitted by the server is likely to have been used in the historical project case. Conversely, if there is not (i.e., the query fails), a ticket query needs to be further performed in the ticket database to determine whether the ticket to be checked is used in the historical project.

[0045] In actual application, for the project provider or the project agent, an important aspect of the ticket query through the blockchain in the process of auditing the project case of the user is that the ticket data between different project providers and project agents is connected through the blockchain, so as to avoid that the user applies for a case to different project providers or project agents for the same ticket, which not only brings loss to the project provider or the project agent, but also disrupts the project guarantee system. In view of this, in an optional implementation provided by the embodiment, in the process of the ticket query in the blockchain, at least one ticket with the same identification string as the identification string of the ticket to be checked is queried in the blockchain; the at least one ticket queried is filtered according to a filtering rule to obtain a target ticket.

[0046] The filtering rule includes filtering out the tickets of the same project provider or project agent as the project provider or project agent to which the project case belongs. In addition, the tickets obtained by the query can also be filtered from the perspective of ticket content, such as filtering out the tickets with different ticket types from the ticket to be checked. Correspondingly, the filtering rule also includes filtering out the tickets with different ticket types from the ticket to be checked.

[0047] On this basis, in order to improve the sufficiency of the server's review of the project case, in an optional implementation provided by the embodiment, on the basis of querying the target ticket with the same identification string as the identification string of the to-be-reviewed ticket in the blockchain, the ticket information of the target ticket and the case information of the project case to which the target ticket belongs stored in the blockchain are read; the server is returned the query result carrying the ticket information of the target ticket and the case information of the project case to which the target ticket belongs.

[0048] Correspondingly, after receiving the query result carrying the ticket information of the target ticket and the case information of the project case to which the target ticket belongs, the server performs the review processing of the project case, specifically, according to the ticket information of the target ticket and the case information of the project case to which the target ticket belongs, it is judged whether the to-be-reviewed ticket submitted for the project case is an already used ticket; if yes, it is determined that the review of the project case fails; if no, it is determined that the review of the project case passes.

[0049] In step S108, if the query fails, the ticket database is queried based on the identification string, and the query result of the to-be-reviewed ticket is returned to the server.

[0050] In the embodiment, in order to improve the comprehensiveness of the ticket query and the applicability to various scenarios, a ticket database is introduced on the basis of the blockchain. The blockchain is used to store the historical project case tickets, but the blockchain does not store the historical project case tickets at the beginning. The historical project case tickets stored in the blockchain include the tickets uploaded to the blockchain in the process of ticket query, and the tickets uploaded to the blockchain after the synchronization of the server and the authentication processing. Therefore, the ticket database is introduced as the data source of the ticket query processing.

[0051] Optionally, the ticket database records ticket data, and the ticket data is written in the following manner:

[0052] The historical ticket data is structured, and the obtained structured ticket data is written into the ticket database;

[0053] And / or,

[0054] The image recognition technology is used to extract the historical ticket data contained in the historical ticket image; for example, the OCR (Optical Character Recognition) is used to identify the text information in the historical ticket image as ticket data;

[0055] The extracted historical ticket data is structured, and the obtained structured ticket data is written into the ticket database.

[0056] In one optional implementation of this embodiment, a bill query is performed in the bill database based on the identifier string, and the query result of the bill to be verified is returned to the server. This is specifically achieved in the following manner:

[0057] The system queries the invoice database to determine if at least one invoice exists that has the same identifier string as the invoice to be verified.

[0058] If it exists, the bill information of the at least one bill is processed on the blockchain, and a query result carrying the bill information of the at least one bill is returned to the server;

[0059] If it does not exist, return a query result to the server that the document to be verified was not found.

[0060] Accordingly, if the query result returned to the server carries the bill information of the at least one bill, then after receiving the bill information carrying the at least one bill, the server determines, based on the bill information of the at least one bill and the case information of the project case to which the at least one bill belongs, whether the bill to be reviewed submitted for the project case is a used bill; if yes, it determines that the review of the project case has not passed; if no, it determines that the review of the project case has passed.

[0061] If the query result returned to the server is that the invoice to be verified was not found, the server will perform the review process for the project case after receiving the query result that the invoice to be verified was not found. Specifically, this includes determining that the project case has been approved based on the query result that the invoice to be verified was not found.

[0062] As mentioned above, the bill data stored in the blockchain comes partly from the bill query process and partly from the server synchronization and authentication process. In one optional implementation of this embodiment, the bills synchronized by the server and uploaded to the blockchain after authentication are processed are processed on the blockchain in the following way:

[0063] The server retrieves case information of historical project cases and invoice information of historical invoices synchronized by the server. The server synchronizes the case information of historical project cases and invoice information of historical invoices after recording them into the historical database.

[0064] Based on the case identifier contained in the case information, query the blockchain to see if there is a corresponding user authorization record; if so, process the case information of the historical project case and the ticket information of the historical ticket on the blockchain; if not, no processing is required.

[0065] The following is a blockchain-based data processing method provided in this embodiment, which is applied to the application of the guarantee application scenario. For further description of the blockchain-based data processing method provided in this embodiment, see Figure 2 The blockchain-based data processing method applied to the guarantee application scenario specifically includes steps S202 to S218.

[0066] Step S202 receives a case authorization request generated by a server synchronization based on an authorization instruction submitted by a user for a guarantee application case.

[0067] Step S204 creates an authorization record of the guarantee application case to which the case identifier belongs according to the case identifier contained in the case authorization request and performs a chain processing.

[0068] Step S206 obtains a ticket query request of the guarantee application case submitted by the server.

[0069] The ticket query request contains the case identifier of the guarantee application case and the identification string of the ticket to be checked.

[0070] Step S208 queries whether there is a corresponding user authorization record in the blockchain based on the case identifier contained in the ticket query request.

[0071] If yes, it is determined that the authentication is passed, and step S210 is executed.

[0072] If not, it is determined that the authentication is not passed, and a reminder message of the authentication failure is returned to the server.

[0073] Step S210 queries whether there is at least one ticket with the same identification string as the identification string of the ticket to be checked in the blockchain.

[0074] If yes, steps S212 to S214 are executed.

[0075] If not, steps 216 to S218 are executed.

[0076] Step S212 filters the at least one ticket obtained by querying according to a filtering rule to obtain a target ticket.

[0077] Step S214 reads the ticket information of the target ticket stored in the blockchain and the case information of the guarantee application case to which the target ticket belongs and returns them to the server.

[0078] Step S216 queries whether there is at least one ticket with the same identification string as the identification string of the ticket to be checked in the ticket database.

[0079] If yes, step S218 is executed.

[0080] If not, return a query result of no queried ticket to be audited to the server.

[0081] In step S218, the ticket information of the at least one ticket queried is processed for chaining, and a query result carrying the ticket information of the at least one ticket is returned to the server.

[0082] Another embodiment of the blockchain-based data processing method provided in the specification is as follows:

[0083] In the above embodiment, a blockchain-based data processing method applied to a blockchain node is provided, and in cooperation therewith, the present embodiment also provides a blockchain-based data processing method applied to a server accessing the blockchain node, which will be described below with reference to the accompanying drawings.

[0084] Referring to Figure 3 , a flowchart of a blockchain-based data processing method provided in the present embodiment is shown, referring to Figure 4 , a flowchart of a blockchain-based data processing method applied to a guarantee application scenario provided in the present embodiment is shown.

[0085] Referring to Figure 3 , the present embodiment provides a blockchain-based data processing method applied to a server accessing a blockchain node, which specifically includes steps S302 to S306.

[0086] In step S302, a ticket to be audited submitted for a project case created according to a case application is acquired.

[0087] The project case described in the present embodiment includes a guarantee application case in a guarantee project, such as a claim case of an insurance project of an insurance type, etc. In the process of guarantee application in a guarantee project, a user participating in the guarantee project proposes a guarantee application, and a provider of the guarantee project audits the guarantee application proposed by the user. The process of proposing and auditing the guarantee application is in the form of a “case”, so it is called a guarantee application case. In the auditing process of the guarantee application case, the ticket or certificate submitted by the user for the guarantee application often needs to be audited. For example, in the process of proposing an insurance claim application, the user submits the corresponding ticket for the insurance claim application, and in the auditing process of the claim case of the insurance project, the ticket submitted by the user for the insurance claim needs to be audited.

[0088] In actual application, since the case-related data and the bill data of the project case of the user belong to the privacy data of the user to some extent, in order to ensure the data privacy and security of the user, the user needs to be authorized before the bill checking process is performed on the blockchain. In an optional implementation provided by the embodiment, a case authorization request is generated according to the authorization instruction submitted by the user for the project case, and the case authorization request is synchronized to the blockchain node, so that the blockchain node performs case authorization processing according to the case authorization request.

[0089] In addition, the authorization of the user to the project case can also be initiated by the project provider or the project agent. For this purpose, in another optional implementation provided by the embodiment, a case authorization request is generated according to the authorization instruction submitted by the project provider or the project agent for the project case, and the case authorization request is synchronized to the blockchain node, so that the blockchain node performs case authorization processing according to the case authorization request.

[0090] The project provider includes a guarantee institution providing a guarantee project, and the project agent includes an agency institution providing a guarantee project agency. In the embodiment, the blockchain includes a consortium chain, and the blockchain node in the blockchain includes a consortium chain node in the consortium chain. Optionally, when the blockchain is a consortium chain, the consortium chain is composed of the consortium chain nodes corresponding to the guarantee institutions or the agency institutions. It should be noted that, in the process of submitting the bill checking request to the consortium chain node in the consortium chain, the consortium chain node submitting the bill checking request is the consortium chain node corresponding to the guarantee institution to which the current project case belongs.

[0091] In step S304, the bill checking request of the project case is generated and submitted to the blockchain node.

[0092] In the execution process, the server creates a corresponding project case according to the case application submitted by the user. After the user submits the to-be-checked bill for the project case, the server submits the bill checking request of the to-be-checked bill to the blockchain node in the blockchain. After the blockchain node accessed by the server receives the submitted bill checking request, the bill checking process is performed from the bill checking request.

[0093] Specifically, the ticket query request includes a case identifier of the project case and an identification string of the ticket to be checked. Optionally, the identification string is generated by encrypting a ticket identifier of the ticket to be checked and an identity identifier of a user to which the ticket to be checked belongs by using an encryption algorithm, so as to avoid the identity identifier being transmitted in plaintext and ensure the data privacy and security of the user, where the identity identifier includes a user identity identifier recorded in the ticket to be checked. For example, the SHA256 encryption algorithm is used to encrypt the ticket ID and the user identity ID recorded in the ticket, to obtain an encrypted string of the ticket.

[0094] In a specific implementation, after the ticket query request of the project case is submitted to the blockchain node, the blockchain node performs authentication processing on the project case based on the case identifier, and performs ticket query in the blockchain based on the identification string after the authentication is passed. If the query fails, ticket query is performed in the ticket database based on the identification string, and the query result of the ticket to be checked is returned. If the authentication processing of the project case by the blockchain node fails, a prompt message that the authentication fails is returned, and the prompt message that the authentication fails returned by the blockchain node is received.

[0095] In a specific implementation, after the ticket query request of the project case is submitted to the blockchain node, the blockchain node performs authentication processing on the project case based on the case identifier, and performs ticket query in the blockchain based on the identification string after the authentication is passed. If the query fails, ticket query is performed in the ticket database based on the identification string, and the query result of the ticket to be checked is returned. If the authentication processing of the project case by the blockchain node fails, a prompt message that the authentication fails is returned, and the prompt message that the authentication fails returned by the blockchain node is received.

[0096] In a specific implementation, after the ticket query request of the project case is submitted to the blockchain node, the blockchain node performs authentication processing on the project case based on the case identifier, and performs ticket query in the blockchain based on the identification string after the authentication is passed. If the query fails, ticket query is performed in the ticket database based on the identification string, and the query result of the ticket to be checked is returned. If the authentication processing of the project case by the blockchain node fails, a prompt message that the authentication fails is returned, and the prompt message that the authentication fails returned by the blockchain node is received.

[0097] If the query result of the ticket to be checked returned by the blockchain node carries ticket information of a target ticket and case information of a project case to which the target ticket belongs, it indicates that the blockchain node queries the target ticket identical to the ticket to be checked. Optionally, according to the query result of the ticket to be checked returned by the blockchain node, the audit processing of the project case is performed, specifically including: determining whether the ticket to be checked submitted for the project case is an already used ticket according to the ticket information of the target ticket and the case information of the project case to which the target ticket belongs; if yes, determining that the audit of the project case fails; if no, determining that the audit of the project case passes.

[0098] Further, if the query result of the to-be-checked bill returned by the blockchain node is a query result of not finding the to-be-checked bill, and optionally, according to the query result of the to-be-checked bill returned by the blockchain node, the auditing process of the project case is performed, and specifically, according to the query result of not finding the to-be-checked bill, it is determined that the project case passes the auditing.

[0099] In this embodiment, in order to improve the comprehensiveness of bill query and the applicability to various scenarios, a bill database is introduced on the basis of the blockchain. The blockchain is used to store historical project case bills, but the blockchain does not store historical project case bills at the beginning. The historical project case bills stored in the blockchain include bills uploaded to the blockchain in the process of bill query, and bills uploaded to the blockchain after the synchronization of the server and the authentication process. Therefore, the bill database is introduced as a data source for bill query processing.

[0100] In an optional implementation of the data processing method provided in this embodiment, the following method is used to synchronize bills to the blockchain: the case information of the historical project case and the bill information of the historical bill are recorded to a historical database, and the case information of the historical project case and the bill information of the historical bill are synchronized to the blockchain node. Correspondingly, after receiving the synchronized case information of the historical project case and the bill information of the historical bill, the blockchain node queries whether there is a corresponding user authorization record in the blockchain according to the case identifier contained in the case information; if yes, the case information of the historical project case and the bill information of the historical bill are processed for chain; if no, no processing is performed.

[0101] The data processing method based on the blockchain provided in this embodiment is further described below by taking the application of the data processing method based on the blockchain in the guarantee application scenario as an example. Referring to Figure 4 , the data processing method based on the blockchain applied in the guarantee application scenario specifically includes steps S402 to S414.

[0102] Step S402: generating a case authorization request according to an authorization instruction submitted by a user for a guarantee application case, and synchronizing the case authorization request to a blockchain node.

[0103] Step S404: obtaining a to-be-checked bill submitted for a guarantee application case created according to a guarantee application.

[0104] Step S406: generating a bill query request for the guarantee application case and submitting the bill query request to the blockchain node.

[0105] The bill query request includes a case identifier of the guarantee application case and an identifier string of the to-be-checked bill.

[0106] Step S408, the receiving blockchain node returns a failed authentication prompt message in the case of failed authentication.

[0107] Step S410, the receiving blockchain node returns a query result carrying ticket information of the target ticket and case information of the target ticket's security application case.

[0108] Step S412, according to the ticket information of the target ticket and the case information of the target ticket's security application case, the security application case is audited and processed.

[0109] Step S414, according to the query result returned by the blockchain node that the to-be-inspected ticket is not found, it is determined that the security application case is passed.

[0110] The data processing device based on the blockchain provided in the specification implements, for example:

[0111] In the above embodiment, a data processing method based on a blockchain applied to a blockchain node is provided, and a data processing device based on a blockchain running on a blockchain node is also provided, which will be described below with reference to the accompanying drawings.

[0112] Reference Figure 5 which shows a data processing device based on a blockchain provided in the embodiment.

[0113] Since the device embodiment corresponds to the method embodiment, it is described more simply, and the related part can be referred to the above-mentioned corresponding description of the method embodiment. The device embodiment described below is only illustrative.

[0114] The data processing device based on the blockchain provided in the embodiment is running on a blockchain node in a blockchain, which comprises:

[0115] The ticket query request acquisition module 502 is configured to acquire a ticket query request of a project case submitted by a server; the ticket query request comprises a case identifier of the project case and an identification string of a to-be-inspected ticket;

[0116] The authentication processing module 504 is configured to perform authentication processing of the project case based on the case identifier;

[0117] The ticket query module 506 is configured to, after the authentication is passed, perform a ticket query in the blockchain based on the identification string;

[0118] The query result returning module 508 is configured to, if the query fails, perform a ticket query in a ticket database based on the identification string, and return a query result of the to-be-inspected ticket to the server.

[0119] Another blockchain-based data processing apparatus provided by the present specification implements the following, for example:

[0120] In the above embodiment, a blockchain-based data processing method applied to a server accessing a blockchain node is provided, and a corresponding blockchain-based data processing apparatus running on the server accessing the blockchain node is also provided, which will be described below with reference to the accompanying drawings.

[0121] Referring to Figure 6 which shows a schematic diagram of a blockchain-based data processing apparatus provided by the present embodiment.

[0122] Since the apparatus embodiment corresponds to the method embodiment, it is described more simply, and the relevant part can be referred to the corresponding description of the method embodiment provided above. The apparatus embodiment described below is only illustrative.

[0123] The present embodiment provides a blockchain-based data processing apparatus running on a server accessing a blockchain node, comprising:

[0124] The to-be-checked ticket acquisition module 602 is configured to acquire a to-be-checked ticket submitted for a project case created according to a case application;

[0125] The ticket query request submission module 604 is configured to generate a ticket query request of the project case and submit it to the blockchain node; the ticket query request contains a case identifier of the project case and an identification string of the to-be-checked ticket;

[0126] The case review processing module 606 is configured to perform review processing of the project case according to the query result of the to-be-checked ticket returned by the blockchain node.

[0127] A blockchain-based data processing device provided by the present specification implements the following, for example:

[0128] Corresponding to the above-described blockchain-based data processing method applied to a blockchain node, based on the same technical concept, one or more embodiments of the present specification also provide a blockchain-based data processing device for executing the above-provided blockchain-based data processing method, Figure 7 A structural schematic diagram of a blockchain-based data processing device provided by one or more embodiments of the present specification.

[0129] The blockchain-based data processing device provided by the present embodiment comprises:

[0130] As Figure 7As shown, the blockchain-based data processing device can have a large difference due to different configurations or performances, and can include one or more processors 701 and memories 702, and one or more storage applications or data can be stored in the memories 702. Among them, the memory 702 can be temporary storage or persistent storage. The application stored in the memory 702 can include one or more modules (not shown in the figure), and each module can include a series of computer executable instructions in the blockchain-based data processing device. Further, the processor 701 can be configured to communicate with the memory 702 and execute a series of computer executable instructions in the memory 702 on the blockchain-based data processing device. The blockchain-based data processing device can also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input / output interfaces 705, one or more keyboards 706, and the like.

[0131] In one specific embodiment, the blockchain-based data processing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs can include one or more modules, and each module can include a series of computer executable instructions in the blockchain-based data processing device, and the one or more processors configured to execute the one or more programs include computer executable instructions for:

[0132] Obtaining a ticket query request of a project case submitted by a server; the ticket query request includes a case identifier of the project case and an identification string of a ticket to be checked;

[0133] Performing authentication processing of the project case based on the case identifier;

[0134] After the authentication is passed, performing ticket query in the blockchain based on the identification string;

[0135] If the query fails, performing ticket query in a ticket database based on the identification string, and returning a query result of the ticket to be checked to the server.

[0136] Another blockchain-based data processing device implementation provided by the specification is as follows:

[0137] According to the blockchain-based data processing method of the application server described above, based on the same technical concept, one or more embodiments of the specification also provide a blockchain-based data processing device for executing the blockchain-based data processing method provided above, Figure 8A structural schematic diagram of a blockchain-based data processing device for one or more embodiments of the present specification.

[0138] The blockchain-based data processing device provided by the embodiment includes:

[0139] As shown in the following Figure 8 The blockchain-based data processing device can have great differences due to different configurations or performances, and can include one or more processors 801 and memories 802, and the memories 802 can store one or more storage applications or data. Among them, the memory 802 can be temporary storage or persistent storage. The application stored in the memory 802 can include one or more modules (not shown in the figure), and each module can include a series of computer executable instructions in the blockchain-based data processing device. Further, the processor 801 can be configured to communicate with the memory 802 and execute a series of computer executable instructions in the memory 802 on the blockchain-based data processing device. The blockchain-based data processing device can also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input / output interfaces 805, one or more keyboards 806, etc.

[0140] In a specific embodiment, the blockchain-based data processing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and the one or more programs can include one or more modules, and each module can include a series of computer executable instructions in the blockchain-based data processing device, and the one or more processors configured to execute the one or more programs include computer executable instructions for:

[0141] Obtaining a to-be-checked bill submitted for a project case created according to a case application;

[0142] Generating a bill query request of the project case and submitting to a blockchain node; the bill query request includes a case identifier of the project case and an identifier string of the to-be-checked bill;

[0143] According to the query result of the to-be-checked bill returned by the blockchain node, performing the auditing process of the project case.

[0144] The storage medium implementation provided by the present specification is as follows:

[0145] According to the above description, a blockchain-based data processing method applied to a blockchain node is provided, and based on the same technical concept, one or more embodiments of the present specification also provide a storage medium.

[0146] The storage medium provided by the embodiment is used for storing computer executable instructions, and the computer executable instructions realize the following process when executed.

[0147] Obtain a ticket query request of a project case submitted by a server; the ticket query request contains a case identifier of the project case and an identification string of a ticket to be checked;

[0148] Perform authentication processing of the project case based on the case identifier;

[0149] After the authentication passes, perform ticket query in the blockchain based on the identification string;

[0150] If the query fails, perform ticket query in a ticket database based on the identification string, and return the query result of the ticket to be checked to the server.

[0151] It should be noted that the embodiment of the storage medium in the present specification is based on the same inventive concept as the embodiment of the blockchain-based data processing method applied to the blockchain node in the present specification, and therefore the specific implementation of this embodiment can be referred to the implementation of the corresponding method described above, and the repeated parts will not be described again.

[0152] Another storage medium embodiment provided by the present specification is as follows:

[0153] According to the above description, a blockchain-based data processing method applied to a server is provided, and based on the same technical concept, one or more embodiments of the present specification also provide a storage medium.

[0154] The storage medium provided by the embodiment is used for storing computer executable instructions, and the computer executable instructions realize the following process when executed.

[0155] Obtain a ticket to be checked submitted for a project case created according to a case application;

[0156] Generate a ticket query request of the project case and submit it to a blockchain node; the ticket query request contains a case identifier of the project case and an identification string of the ticket to be checked;

[0157] According to the query result of the ticket to be checked returned by the blockchain node, perform the audit processing of the project case.

[0158] It should be noted that the embodiment of the storage medium in the present specification is based on the same inventive concept as the embodiment of the blockchain-based data processing method applied to the server in the present specification, and therefore the specific implementation of this embodiment can be referred to the implementation of the corresponding method described above, and the repeated parts will not be described again.

[0159] The above described embodiments of the present description have been described. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.

[0160] In the 1930s, it was clear to distinguish whether an improvement in a technology was in hardware (e.g., improvement in circuit structure of diodes, transistors, switches, etc.) or in software (e.g., improvement in method flow). However, as technology has evolved, many improvements in method flow today can be considered as direct improvements in hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented by a hardware entity module. For example, a programmable logic device (PLD) (e.g., a field programmable gate array (FPGA)) is an integrated circuit whose logic function is determined by user programming of the device. A digital system is "integrated" on a PLD by the designer programming it, rather than by asking a chip manufacturer to design and fabricate a custom integrated circuit chip. Moreover, instead of manually fabricating an integrated circuit chip, this programming is now mostly implemented by "logic compiler" software, which is similar to software compilers used in program development, and the original code to be compiled is written in a specific programming language, called a hardware description language (HDL), of which there are many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., the most commonly used being VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should be clear to those skilled in the art that, by simply logically programming a method flow in one of the above hardware description languages and programming it into an integrated circuit, a hardware circuit implementing the logical method flow can be easily obtained.

[0161] The controller can be implemented in any suitable way, e.g. the controller can take the form of a microprocessor or processor and a computer readable medium storing computer readable program code, e.g. software or firmware, executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller and an embedded microcontroller, examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91 SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to being implemented in pure computer readable program code form, the controller can perfectly well be implemented by means of logic programmed into logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded microcontrollers, etc. to perform the same functions. The controller can thus be considered a hardware component, and the means comprised therein for performing various functions can be considered structures within the hardware component. Alternatively, or even additionally, the means for performing various functions can be considered both software modules implementing the method and structures within the hardware component.

[0162] The systems, apparatuses, modules or units illustrated by the above embodiments can be implemented by computer chips or entities, or products with certain functions. A typical implementation device is a computer. Specifically, the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0163] For the sake of description, the above apparatuses are described in various units with functions respectively. Of course, the functions of the units can be implemented in one or more software and / or hardware in implementing the embodiments of the present specification.

[0164] Those skilled in the art will understand that one or more embodiments of the present specification can be provided as a method, a system or a computer program product. Therefore, one or more embodiments of the present specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROMs, optical storage devices, etc.) containing computer-usable program code.

[0165] The specification is presented with reference to flow diagrams and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams 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 processing element 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, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product according to embodiments of the specification, it can be understood that each block in the flow diagrams and / or block diagrams and combinations of blocks in the flow diagrams 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 processing element 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, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product according to embodiments of the specification, it can be understood that each block in the flow diagrams and / or block diagrams and combinations of blocks in the flow diagrams 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 processing element 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, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks.

[0166] These computer program instructions can also be loaded into a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product according to embodiments of the specification, it can be understood that each block in the flow diagrams and / or block diagrams and combinations of blocks in the flow diagrams 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 processing element 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, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product according to embodiments of the specification, it can be understood that each block in the flow diagrams and / or block diagrams and combinations of blocks in the flow diagrams 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 processing element 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, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks.

[0167] These computer program instructions can also be loaded into a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product according to embodiments of the specification, it can be understood that each block in the flow diagrams and / or block diagrams and combinations of blocks in the flow diagrams 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 processing element 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, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagrams and / or block diagrams in the specification can present a method, apparatus or computer program product according to embodiments of the specification. Although the flow diagrams and / or block diagrams can present a method, apparatus or computer program product according to embodiments of the specification, it can be understood that each block in the flow diagrams and / or block diagrams and combinations of blocks in the flow diagrams 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 processing element 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, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks.

[0168] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0169] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) for example. Mass storage can include, in examples, EEPROM, flash memory or other non-volatile memory. The memory is an example of computer readable media.

[0170] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0171] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusion, such that processes, methods, articles or devices that include a series of elements not only include those elements, but also include other elements not explicitly listed or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or device that includes the element.

[0172] One or more embodiments of the present specification can be described in the general context of computer-executable instructions being executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification can also be practiced in a distributed computing environment, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0173] Each embodiment in the present specification is described in a progressive manner, and the same or similar parts between each embodiment can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

[0174] The above merely provides the example of the present document and is not intended to limit the present document. For those skilled in the art, the present document can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present document shall be included in the scope of claims of the present document.

Claims

1. A blockchain-based data processing method applied to a blockchain node in a blockchain, comprising: obtaining a case query request of a project case submitted by a server; the case query request containing a case identifier of the project case and an identification string of a to-be-checked ticket; performing authentication processing of the project case based on the case identifier; after the authentication passes, performing ticket query in the blockchain based on the identification string; if the query fails, performing ticket query in a ticket database based on the identification string and returning a query result of the to-be-checked ticket to the server; if a target ticket is queried, reading ticket information of the target ticket and case information of a project case to which the target ticket belongs stored in the blockchain and returning to the server. 2.The blockchain-based data processing method of claim 1, wherein the authentication processing of the project case based on the case identifier comprises: based on the case identifier, querying whether there is a corresponding user authorization record in the blockchain, if yes, determining that the authentication passes; if no, determining that the authentication fails; or, based on the case identifier, querying whether there is a corresponding user authorization record in an authorization database, if yes, determining that the authentication passes; if no, determining that the authentication fails. 3.The blockchain-based data processing method of claim 2, further comprising, before the step of obtaining the case query request of the project case submitted by the server: receiving a case authorization request synchronized by the server; based on a case identifier contained in the case authorization request, creating an authorization record of a project case to which the case identifier belongs and performing on-chain processing; or, receiving a case authorization request synchronized by the server; based on a case identifier contained in the case authorization request, creating an authorization record of a project case to which the case identifier belongs and writing into the authorization database. 4.The blockchain-based data processing method of claim 3, wherein the case authorization request is generated based on an authorization instruction submitted by a user for the project case, or generated based on an agent authorization instruction submitted by a project provider or a project agent. 5.The blockchain-based data processing method of claim 1, further comprising, after the step of performing the authentication processing of the project case based on the case identifier: if the authentication fails, returning a reminder message of the authentication failure to the server. 6.The blockchain-based data processing method of claim 1, wherein the ticket query in the blockchain based on the identification string comprises: querying at least one ticket with an identification string same as the identification string of the to-be-checked ticket in the blockchain; performing filtering processing on the at least one ticket according to a filtering rule to obtain a target ticket. 7.The blockchain-based data processing method of claim 1, wherein the ticket query in a ticket database based on the identification string and the returning of the query result of the to-be-checked ticket to the server comprises: ​ ​ ​ querying the ticket database to determine whether there is at least one ticket with an identification string identical to the identification string of the to-be-checked ticket; if there is, performing a chain-up processing on the ticket information of the at least one ticket, and returning a query result carrying the ticket information of the at least one ticket to the server; if there is not, returning a query result of not finding the to-be-checked ticket to the server.

8. The blockchain-based data processing method according to claim 1, wherein the ticket database records ticket data, and the ticket data is written in the following manner: performing a structured processing on historical ticket data, and writing the obtained structured ticket data into the ticket database; and / or, extracting historical ticket data contained in historical ticket images by using image recognition technology; performing a structured processing on the extracted historical ticket data, and writing the obtained structured ticket data into the ticket database.

9. The blockchain-based data processing method according to claim 1, further comprising: obtaining case information of historical project cases and ticket information of historical tickets synchronized by the server; querying the blockchain to determine whether there is a corresponding user authorization record according to a case identification contained in the case information; if there is, performing a chain-up processing on the case information of the historical project cases and the ticket information of the historical tickets.

10. The blockchain-based data processing method according to any one of claims 1 to 9, wherein the blockchain comprises a consortium chain composed of consortium chain nodes corresponding to each guaranteeing agency or proxy agency.

11. A blockchain-based data processing method applied to a server accessing a blockchain node, comprising: obtaining a to-be-checked ticket submitted for a project case created according to a case application; generating a case query request of the project case and submitting the case query request to the blockchain node; the case query request contains a case identification of the project case and an identification string of the to-be-checked ticket; the blockchain node performs an authentication processing of the project case based on the case identification, performs a ticket query in the blockchain based on the identification string after the authentication is passed, and performs a ticket query in a ticket database based on the identification string to obtain a query result of the to-be-checked ticket in the case of query failure; and performs an audit processing of the project case according to ticket information of a target ticket carried in the query result of the to-be-checked ticket returned by the blockchain node and case information of a project case to which the target ticket belongs.

12. The blockchain-based data processing method according to claim 11, further comprising: generating a case authorization request according to an authorization instruction submitted by a user for the project case, and synchronizing the case authorization request to the blockchain node; or, generating a case authorization request according to an authorization instruction submitted by a project provider or a project agent for the project case, and synchronizing the case authorization request to the blockchain node.

13. The blockchain-based data processing method of claim 11, after the step of generating the case query request of the project case and submitting to the blockchain node, and before the step of performing the auditing process of the project case according to the ticket information of the target ticket returned by the blockchain node and the case information of the project case to which the target ticket belongs, further comprising: receiving a prompt message returned by the blockchain node that the authentication fails.

14. The blockchain-based data processing method of claim 11, wherein the identification string is generated by encrypting the ticket identification of the ticket to be audited and the identity identification of the user to which the ticket to be audited belongs using an encryption algorithm. wherein The identity identification includes the user identity identification recorded in the ticket to be audited.

15. The blockchain-based data processing method of claim 11, wherein the step of performing the auditing process of the project case according to the ticket information of the target ticket returned by the blockchain node and the case information of the project case to which the target ticket belongs comprises: determining whether the ticket to be audited submitted for the project case is an already used ticket according to the ticket information of the target ticket and the case information of the project case to which the target ticket belongs; if yes, determining that the auditing of the project case fails; if no, determining that the auditing of the project case passes.

16. The blockchain-based data processing method of claim 11, after the step of generating the case query request of the project case and submitting to the blockchain node, further comprising: if a query result returned by the blockchain node that the ticket to be audited is not found is received; determining that the auditing of the project case passes according to the query result that the ticket to be audited is not found.

17. The blockchain-based data processing method of claim 11, further comprising: recording the case information of the historical project case and the ticket information of the historical ticket to a historical database; synchronizing the case information of the historical project case and the ticket information of the historical ticket to the blockchain node.

18. A blockchain-based data processing apparatus running in a blockchain node in a blockchain, comprising: a ticket query request acquisition module configured to acquire a case query request of a project case submitted by a server; the case query request contains a case identification of the project case and an identification string of a ticket to be audited; an authentication processing module configured to perform authentication processing of the project case based on the case identification; a ticket query module configured to perform ticket query in the blockchain based on the identification string after the authentication passes; a query result returning module configured to perform ticket query in a ticket database based on the identification string and return a query result of the ticket to be audited to the server if the query fails; if a target ticket is found, reading ticket information of the target ticket and case information of the project case to which the target ticket belongs stored in the blockchain and returning to the server. 19.A blockchain-based data processing apparatus, running on a server accessing a blockchain node, comprising: a to-be-verified ticket obtaining module configured to obtain a to-be-verified ticket submitted for a project case created according to a case application; a ticket query request submitting module configured to generate a case query request for the project case and submit the case query request to the blockchain node; the case query request containing a case identifier of the project case and an identification string of the to-be-verified ticket; the blockchain node performing authentication processing of the project case based on the case identifier, performing ticket query in the blockchain based on the identification string after the authentication is passed, and performing ticket query in a ticket database based on the identification string to obtain a query result of the to-be-verified ticket in case of query failure; a case auditing processing module configured to perform auditing processing of the project case according to ticket information of a target ticket carried in the query result of the to-be-verified ticket returned by the blockchain node and case information of the project case to which the target ticket belongs. 20.A blockchain-based data processing apparatus, comprising: a processor; and a memory configured to store computer executable instructions which, when executed, cause the processor to: obtain a case query request for a project case submitted by a server; the case query request containing a case identifier of the project case and an identification string of a to-be-verified ticket; perform authentication processing of the project case based on the case identifier; after the authentication is passed, perform ticket query in the blockchain based on the identification string; if the query fails, perform ticket query in a ticket database based on the identification string and return a query result of the to-be-verified ticket to the server; if a target ticket is queried, read ticket information of the target ticket stored in the blockchain and case information of a project case to which the target ticket belongs and return the same to the server. 21.A blockchain-based data processing apparatus, comprising: a processor; and a memory configured to store computer executable instructions which, when executed, cause the processor to: obtain a to-be-verified ticket submitted for a project case created according to a case application; generate a case query request for the project case and submit the case query request to a blockchain node; the case query request containing a case identifier of the project case and an identification string of the to-be-verified ticket; the blockchain node performing authentication processing of the project case based on the case identifier, performing ticket query in the blockchain based on the identification string after the authentication is passed, and performing ticket query in a ticket database based on the identification string to obtain a query result of the to-be-verified ticket in case of query failure; performing auditing processing of the project case according to ticket information of a target ticket carried in the query result of the to-be-verified ticket returned by the blockchain node and case information of the project case to which the target ticket belongs. 22.A storage medium for storing computer executable instructions which, when executed, implement the following processes: Obtaining a case query request of a project case submitted by a server, wherein the case query request contains a case identifier of the project case and an identification string of a to-be-checked ticket; Performing authentication processing of the project case based on the case identifier; After the authentication is passed, performing ticket query in a blockchain based on the identification string; If the query fails, performing ticket query in a ticket database based on the identification string and returning a query result of the to-be-checked ticket to the server; If a target ticket is queried, reading ticket information of the target ticket and case information of a project case to which the target ticket belongs stored in the blockchain and returning to the server.

23. A storage medium for storing computer executable instructions, the computer executable instructions, when executed, implement the following processes: Obtaining a to-be-checked ticket submitted for a project case created according to a case application; generating a case query request of the project case and submitting to a blockchain node; the case query request contains a case identifier of the project case and an identification string of the to-be-verified bill; The blockchain node performs authentication processing of the project case based on the case identifier, performs ticket query in a blockchain based on the identification string after the authentication is passed, and performs ticket query in a ticket database based on the identification string to obtain a query result of the to-be-checked ticket in the case of query failure; According to the ticket information of the target ticket and the case information of the project case to which the target ticket belongs carried in the query result of the to-be-checked ticket returned by the blockchain node, performing auditing processing of the project case.

Citation Information

Patent Citations

  • Blockchain-based electronic bill query method and device, and electronic equipment

    CN111026789A