Transaction verification method and device, computer equipment, readable storage medium and program product

By determining the main endorsement node and the secondary endorsement node in the alliance chain, verifying the transaction proposals, and combining the risk prediction results of the transaction credit risk assessment module, the problem of poor verification of the authenticity of transaction proposals in traditional technology is solved, and a more efficient and secure transaction verification process is achieved.

CN119809646APending Publication Date: 2025-04-11CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411894942.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-21
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The traditional alliance chain endorsement node selection method cannot effectively verify the authenticity of transaction proposals, resulting in low verification accuracy.

Method used

By receiving the transaction proposal submitted by the target enterprise client, it determines its corresponding main endorsement node, verify the transaction key content of the transaction proposal, and re-verify it through the secondary endorsement node if necessary, and combine the risk prediction results of the transaction credit risk assessment module to generate a proposal response message and return it to the client.

Benefits of technology

It improves the verification accuracy of transaction proposals, ensures the authenticity of transaction content, enhances information security, avoids unnecessary waste of computing resources, and improves verification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119809646A_ABST
    Figure CN119809646A_ABST
Patent Text Reader

Abstract

The invention relates to a transaction verification method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: receiving a transaction proposal submitted by a target enterprise client, wherein the transaction proposal comprises a transaction object, transaction time and transaction content; determining a main endorsement node corresponding to the transaction proposal, and verifying the transaction key content of the transaction proposal through the main endorsement node to obtain a proposal response message; and returning the proposal response message to the target enterprise client, so that the target enterprise client performs processing based on the proposal response message. By adopting the method, the authenticity of the key content of the transaction proposal can be verified, the validity of alliance chain verification is ensured, unnecessary waste of computing resources is avoided, the verification efficiency and the information security are improved, and the authenticity and the security of two transaction parties are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a transaction verification method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the continuous development of network technology, the business enabling platform can allow all parties in the industry to publish their business capabilities for third-party developers to call. In order to ensure the transparency and security of transactions, the platform introduces alliance chain technology. The Hyperledger Fabric alliance chain platform can record the details of each transaction (such as transaction price, timestamp and other key information) on the chain.

[0003] In traditional technology, the consortium chain endorsement node selection method generally randomly selects multiple nodes from the optional node set as endorsement nodes to verify the transaction proposal. The endorsement node can only verify the format integrity and signature validity of the transaction proposal based on the predetermined business logic, but cannot verify the authenticity of the information on the chain, resulting in low verification accuracy. Summary of the invention

[0004] Based on this, it is necessary to provide a transaction verification method, device, computer equipment, computer-readable storage medium and computer program product that can verify the authenticity of transaction content and improve verification accuracy in response to the above technical problems.

[0005] In a first aspect, the present application provides a transaction verification method, which is applied to a consortium chain, and the method includes:

[0006] Receive a transaction proposal submitted by a target enterprise client, wherein the transaction proposal includes a transaction object, a transaction time, and a transaction content;

[0007] Determine the primary endorsement node corresponding to the transaction proposal, verify the transaction key content of the transaction proposal through the primary endorsement node, and obtain a proposal response message;

[0008] The proposal response message is returned to the target enterprise client, so that the target enterprise client performs processing based on the proposal response message.

[0009] In one embodiment, determining the primary endorsing node corresponding to the transaction proposal includes:

[0010] Determine a transaction object corresponding to the target enterprise client in the transaction proposal;

[0011] Determine the endorsement node corresponding to the transaction object as the primary endorsement node.

[0012] In one embodiment, the verifying the transaction key content of the transaction proposal by the primary endorsement node to obtain a proposal response message includes:

[0013] Verifying the transaction resource data of the transaction proposal through the primary endorsement node;

[0014] If the verification is successful, the verification result of the primary endorsement node is determined to be the proposal response message.

[0015] In one embodiment, the method further comprises:

[0016] If the verification fails, the verification failure result of the primary endorsement node is obtained, and the secondary endorsement node is determined;

[0017] Receiving the risk prediction result sent by the transaction credit risk assessment module through the secondary endorsement node;

[0018] Based on the verification failure result of the primary endorsement node and the risk prediction result, a proposal response message is obtained.

[0019] In one embodiment, the transaction credit risk assessment module is a module in the business enabling platform, and the business enabling platform is connected to the alliance chain through an API interface. The risk prediction result is transmitted between the business enabling platform and the alliance chain through an encryption algorithm. The risk prediction result is obtained by the transaction credit risk assessment module after processing the transaction history information of the target enterprise and the transaction history information of the transaction object through a neural network.

[0020] In one embodiment, obtaining a proposal response message based on the verification failure result of the primary endorsement node and the risk prediction result includes:

[0021] Based on the risk prediction result, obtaining the verification result of the secondary endorsement node;

[0022] Based on the verification failure result of the primary endorsement node and the verification result of the secondary endorsement node, a proposal response message is obtained.

[0023] In one embodiment, the risk prediction result is a risk prediction value of the target enterprise and a risk prediction value of the transaction object; and obtaining the verification result of the secondary endorsement node based on the risk prediction result includes:

[0024] Comparing the risk prediction value of the target enterprise with the risk prediction value of the transaction object;

[0025] If the risk prediction value of the target enterprise is higher than the risk prediction value of the transaction object, determining the verification result of the secondary endorsement node as a verification failure result;

[0026] If the risk prediction value of the target enterprise is not higher than the risk prediction value of the transaction object, the verification result of the secondary endorsement node is determined to be a verification pass result.

[0027] In one embodiment, the risk prediction result is a verification pass result or a verification fail result of the secondary endorsement node; and obtaining the verification result of the secondary endorsement node based on the risk prediction result includes:

[0028] Based on the verification pass result or verification fail result carried by the risk prediction result, the verification result of the secondary endorsement node is obtained.

[0029] In one embodiment, returning the proposal response message to the target enterprise client so that the target enterprise client performs processing based on the proposal response message includes:

[0030] Returning a proposal response message carrying the verification result of the primary endorsement node to the target enterprise client, so that the target enterprise client performs the transaction process corresponding to the transaction proposal based on the verification result of the primary endorsement node; or

[0031] Returning a proposal response message carrying the verification failure result of the primary endorsement node and the verification success message of the secondary endorsement node to the target enterprise client, so that the target enterprise client performs the transaction process corresponding to the transaction proposal; or

[0032] A proposal response message carrying the verification failure result of the primary endorsement node and the verification failure message of the secondary endorsement node is returned to the target enterprise client, so that the target enterprise client determines that the transaction corresponding to the transaction proposal is invalid and stops the transaction.

[0033] In a second aspect, the present application further provides a transaction verification device, which is applied to a consortium chain, and the device includes:

[0034] A first receiving module is used to receive a transaction proposal submitted by a target enterprise client, wherein the transaction proposal includes a transaction object, a transaction time, and a transaction content;

[0035] A first determination module is used to determine the primary endorsement node corresponding to the transaction proposal, verify the transaction key content of the transaction proposal through the primary endorsement node, and obtain a proposal response message;

[0036] The first returning module is used to return the proposal response message to the target enterprise client, so that the target enterprise client performs processing based on the proposal response message.

[0037] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the embodiments of the present application when executing the computer program.

[0038] In a fourth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the embodiments of the present application are implemented.

[0039] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the embodiments of the present application when executed by a processor.

[0040] The transaction verification method, device, computer equipment, computer-readable storage medium and computer program product mentioned above, wherein the method comprises: receiving a transaction proposal submitted by a target enterprise client, the transaction proposal comprising a transaction object, transaction time and transaction content; determining the primary endorsement node corresponding to the transaction proposal, verifying the key transaction content of the transaction proposal through the primary endorsement node, and obtaining a proposal response message; returning the proposal response message to the target enterprise client, so that the target enterprise client processes based on the proposal response message. By adopting this method, the authenticity of the key content of the transaction proposal can be verified, the effectiveness of the alliance chain verification can be guaranteed, unnecessary waste of computing resources can be avoided, the verification efficiency and information security can be improved, and the authenticity and security of both parties to the transaction can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A diagram of an application environment of a transaction verification method in an embodiment;

[0043] Figure 2 A flowchart of a transaction verification method in one embodiment;

[0044] Figure 3 A schematic diagram of a flow chart of steps for obtaining a proposal response message in one embodiment;

[0045] Figure 4 A schematic diagram of a flow chart of steps for obtaining a proposal response message in one embodiment;

[0046] Figure 5A schematic diagram of a flow chart of steps for obtaining a proposal response message in one embodiment;

[0047] Figure 6 A schematic diagram of a flow chart of steps for obtaining a verification result of a secondary endorsement node in one embodiment;

[0048] Figure 7 A schematic diagram of a process flow of processing steps performed by a target enterprise client in one embodiment;

[0049] Figure 8 A schematic diagram of a communication architecture of a transaction verification method in one embodiment;

[0050] Fig. 9 A flowchart of a transaction verification method in another embodiment;

[0051] Fig.10 is a structural block diagram of a transaction verification device in one embodiment;

[0052] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] The transaction verification method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the alliance chain 100 includes multiple organizations, each organization includes multiple nodes, which may include a primary endorsement node and a secondary endorsement node; the alliance chain 100 is connected to the business enablement platform 200 through a dedicated external API (Application Programming Interface) interface, and the business enablement platform 200 includes a transaction credit risk assessment module. The secondary endorsement node on the alliance chain 100 can interact with the transaction credit risk assessment module on the business enablement platform 200 by calling the dedicated external API interface. The transaction credit risk assessment module can perform risk prediction, obtain risk prediction results, and encrypt and transmit the risk prediction results to the alliance chain. The alliance chain can return a proposal response message to the enterprise client based on the received risk prediction results, so that the enterprise client and the proposal response message perform transaction processing, such as continuing the subsequent transaction process or stopping the transaction.

[0055] In an exemplary embodiment, Figure 2 As shown, a transaction verification method is provided, which is applied to Figure 1The alliance chain in FIG. 1 is taken as an example to illustrate, including the following steps 202 to 206. Among them:

[0056] Step 202: receiving a transaction proposal submitted by a target enterprise client.

[0057] The transaction proposal includes the transaction object, transaction time, and transaction content. The target enterprise client may be a client used by the target enterprise. The transaction object may be an object that conducts transactions with the target enterprise. For example, the target enterprise may conduct transactions with the first enterprise. The target enterprise submits a transaction proposal through the client of the target enterprise. The transaction proposal is a transaction proposal submitted for the transaction between the target enterprise and the first enterprise, and the transaction object is the first enterprise. The transaction content may include transaction resource data, that is, transaction amount data, etc.

[0058] Specifically, the target enterprise conducts transactions with other enterprises, and based on the transactions, initiates an accounting request through the client of the target enterprise, and submits a transaction proposal to the alliance chain through the initiated accounting request. The transaction proposal at least includes the transaction object, transaction time, transaction content, etc. The alliance chain can receive the transaction proposal submitted by the client of the target enterprise.

[0059] Step 204, determine the primary endorsement node corresponding to the transaction proposal, verify the transaction key content of the transaction proposal through the primary endorsement node, and obtain a proposal response message.

[0060] The key transaction content of the transaction proposal may be content with a high degree of importance in the transaction proposal, such as transaction resource data, transaction type, and the like.

[0061] Specifically, based on the received transaction proposal, the alliance chain can designate a primary endorsement node for the transaction proposal based on the transaction object of the transaction proposal, and verify the key transaction content in the transaction proposal through the primary endorsement node, and obtain a proposal response message based on the verification result.

[0062] Step 206: Return a proposal response message to the target enterprise client, so that the target enterprise client performs processing based on the proposal response message.

[0063] Specifically, after receiving the proposal response message, the alliance chain can return the proposal response message to the target enterprise client. The target enterprise client can determine whether the transaction proposal has passed the verification of the endorsement node corresponding to the transaction proposal based on the proposal response message. Based on whether it has passed the verification of the endorsement node, the target enterprise client can process it, for example, it may include continuing to process subsequent transaction processes, or it may also include deeming the transaction invalid, stopping the transaction, etc.

[0064] In the above transaction verification method, a transaction proposal submitted by the target enterprise client is received, and the transaction proposal includes the transaction object, transaction time and transaction content; the main endorsement node corresponding to the transaction proposal is determined, and the key transaction content of the transaction proposal is verified through the main endorsement node to obtain a proposal response message; the proposal response message is returned to the target enterprise client, so that the target enterprise client processes based on the proposal response message. By adopting this method, the authenticity of the key content of the transaction proposal can be verified, the effectiveness of the alliance chain verification can be guaranteed, unnecessary waste of computing resources can be avoided, the verification efficiency and information security can be improved, and the authenticity and security of both parties to the transaction can be ensured.

[0065] In an exemplary embodiment, the specific implementation process of the step of “determining the primary endorsement node corresponding to the transaction proposal” may include:

[0066] Determine the transaction object corresponding to the target enterprise client in the transaction proposal. Determine the endorsement node corresponding to the transaction object as the primary endorsement node.

[0067] Specifically, the alliance chain can pre-store the corresponding relationship between each organization and the endorsement node corresponding to the organization. After receiving the transaction proposal submitted by the target enterprise client, the alliance chain can parse the transaction proposal, determine the transaction object with the target enterprise client, and based on the corresponding relationship between each organization and the endorsement node corresponding to the organization stored locally, determine the endorsement node corresponding to the organization where the transaction object is located, and designate the endorsement node as the main endorsement node of the transaction proposal.

[0068] Optionally, the organization to which the transaction object belongs can be the organization to which the transaction object belongs, or the transaction object can also be an organization; optionally, the alliance chain can store the redemption relationship between each enterprise and the endorsement nodes corresponding to each enterprise. After receiving the target enterprise client, the alliance chain can determine the transaction object with which the target enterprise conducts transactions, that is, the counterparty enterprise. The alliance chain can determine the endorsement node of the counterparty enterprise based on the corresponding relationship, and determine the endorsement node of the counterparty enterprise as the main endorsement node of the transaction proposal.

[0069] In this embodiment, by timely parsing the transaction proposal, the main endorsement node can be specified based on the transaction object obtained by the analysis, and the authenticity of the transaction content can be effectively verified. The verification is performed through the endorsement node corresponding to the transaction object, which effectively ensures the authenticity of the transaction proposal content and improves the verification efficiency.

[0070] In an exemplary embodiment, Figure 3 As shown in the figure, the specific implementation process of the step "verifying the key transaction content of the transaction proposal through the primary endorsement node to obtain the proposal response message" may include:

[0071] Step 302: Verify the transaction resource data of the transaction proposal through the primary endorsement node.

[0072] Among them, the transaction resource data can be the transaction amount, the transaction proposal can be submitted for a single transaction, and correspondingly, the transaction amount can be the transaction amount data of the single transaction; the transaction proposal can also be submitted for multiple transactions within a preset time period, and correspondingly, the transaction amount can be the transaction amount of each transaction and the total transaction amount data within the preset time period.

[0073] Specifically, the alliance chain can verify the key transaction content of the transaction proposal through the main endorsement node corresponding to the transaction proposal. For example, the main endorsement node can obtain the transaction resource data carried in the transaction proposal, and collect the transaction resource data recorded by the exchange corresponding to the transaction proposal from the local record information. The main endorsement node can compare the carried transaction resource data with the recorded transaction resource data. If they match, the main endorsement node can determine that the verification result of the main endorsement node is a verification pass result; if they do not match, the main endorsement node can determine that the verification result of the main endorsement node is a verification fail result.

[0074] Optionally, the primary endorsement node may also verify the specifications of the transaction proposal. The specification verification may be that the primary endorsement node verifies the format integrity, signature validity, submission repeatability of the transaction proposal, and whether the client submitting the transaction proposal has submission authority. If the above specifications are all verified, and the primary endorsement node determines that the transaction resource data has passed the verification, the primary endorsement node can determine that the verification result of the primary endorsement node is a verification pass result.

[0075] Optionally, if the above-mentioned specification aspects fail to pass verification or the primary endorsement node determines that the transaction resource data fails to pass verification, the primary endorsement node may determine that the verification result of the primary endorsement node is a verification failure result.

[0076] Step 304: If the verification is successful, the verification result of the primary endorsement node is determined as a proposal response message.

[0077] Specifically, when the primary endorsement node determines that the transaction key content of the transaction proposal has passed the verification, it can determine that the verification result of the primary endorsement node is a verification pass result, and the primary endorsement node can determine the verification pass result of the primary endorsement node as a proposal response message, that is, the proposal response message can carry the verification pass result of the primary endorsement node.

[0078] In this embodiment, by specifying the primary endorsement node of the transaction proposal, the authenticity of the transaction content of the transaction proposal can be effectively verified, ensuring the reliability of the alliance chain in verifying the transaction proposal and improving the comprehensiveness of the alliance chain in verifying the content of the transaction proposal.

[0079] In an exemplary embodiment, Figure 4 As shown, the transaction verification method also includes:

[0080] Step 402: If the verification fails, a verification failure result of the primary endorsement node is obtained, and a secondary endorsement node is determined.

[0081] Specifically, when the primary endorsement node determines that the transaction key content of the transaction proposal fails to pass the verification, it can determine that the verification result of the primary endorsement node is a verification failure result. In this way, the primary endorsement node can return the verification failure node of the primary endorsement node to the target enterprise client, and the primary endorsement node can determine the secondary endorsement node corresponding to the transaction proposal. The specific process of determining the secondary endorsement node can be that the alliance chain can determine the arbitration organization among the organizations included in the alliance chain, and determine the endorsement node corresponding to the arbitration organization as the secondary endorsement node of the transaction proposal, that is, the alliance chain can designate the endorsement node corresponding to the arbitration organization as the secondary endorsement node of the transaction proposal.

[0082] Step 404: Receive the risk prediction result sent by the transaction credit risk assessment module through the secondary endorsement node.

[0083] Among them, the transaction credit risk assessment module can be a module set in the business enabling platform, and the business enabling platform is connected to the alliance chain through a dedicated API interface.

[0084] Specifically, the consortium chain can re-verify the transaction proposal through the secondary endorsement node. The specific process of re-verification can be that the secondary endorsement node can call a dedicated API interface through the client corresponding to the organization where the secondary endorsement node is located, and pass a risk prediction request to the transaction credit risk assessment module in the business enablement platform. After receiving the risk prediction request, the transaction credit risk assessment module can obtain the transaction history information of the two transaction parties and the transaction object corresponding to the transaction proposal, and process the transaction history information of the two transaction parties and the transaction object through the trained risk prediction model to obtain the risk prediction results of the two transaction parties. In this way, the transaction credit risk assessment module can return the risk prediction results of the target enterprise and the transaction object of the target enterprise to the secondary endorsement node.

[0085] Step 406: Based on the verification failure result of the primary endorsement node and the risk prediction result, a proposal response message is obtained.

[0086] Specifically, the alliance chain can obtain the verification result of the secondary endorsement node based on the received risk prediction result, and obtain the proposal response message corresponding to the transaction proposal based on the verification failure result of the primary endorsement node and the verification result of the secondary endorsement node.

[0087] In this embodiment, when the primary endorsement node fails the verification, the secondary endorsement node of the transaction proposal is promptly designated for re-verification. Based on the verification failure result of the primary endorsement node and the verification result of the secondary endorsement node, an accurate proposal response message is obtained, instructing the target enterprise client to perform subsequent transaction processing, thereby reducing the additional resources consumed by transaction verification and improving the accuracy of transaction verification.

[0088] In an exemplary embodiment, the transaction credit risk assessment module is a module in the business enabling platform. The business enabling platform is connected to the alliance chain through an API interface. The risk prediction results are transmitted between the business enabling platform and the alliance chain through an encryption algorithm. The risk prediction results are obtained by the transaction credit risk assessment module after processing the transaction history information of the target enterprise and the transaction object through a neural network.

[0089] Among them, the API interface is the interface that connects the business enabling platform with the alliance chain. This API interface is a dedicated API interface, a dedicated external API interface, an external dedicated API interface, and so on.

[0090] Specifically, the secondary endorsement node can send a risk prediction request corresponding to the transaction proposal to the transaction credit risk assessment module in the business enabling platform through a dedicated external API interface. The risk prediction request can carry the identifiers of both parties to the transaction, that is, the identifier of the target enterprise and the identifier of the transaction object of the target enterprise; the transaction credit risk assessment module can obtain the transaction history information of the target enterprise and the transaction history information of the transaction object of the target enterprise based on the identifier of the target enterprise and the identifier of the transaction object of the target enterprise, respectively, and process the transaction history information through the trained risk prediction model to obtain the risk prediction results of both parties to the transaction. In this way, the transaction credit risk assessment module can return the obtained risk prediction results of the target enterprise and the transaction object of the target enterprise to the secondary endorsement node. Optionally, the transaction credit risk assessment module can encrypt the risk prediction result through a preset encryption algorithm to obtain an encrypted result, and return the encrypted result to the secondary endorsement node on the alliance chain. Correspondingly, after receiving the encrypted result, the secondary endorsement node can decrypt the encrypted result based on the preset encryption algorithm to obtain the risk prediction result. The preset encryption algorithm can be a quantum encryption algorithm, or a national encryption algorithm, etc.

[0091] Optionally, the transaction history information may be transaction behavior information such as transaction evaluation information, transaction feedback information, etc.

[0092] In this embodiment, the security of data transmission can be enhanced through encrypted transmission, which effectively supports the authenticity of the verification of the content of the transaction proposal by the alliance chain endorsement node. By calling the module in the business enabling platform for risk prediction, the effectiveness of the transaction proposal verification is further guaranteed.

[0093] In one embodiment, Figure 5 As shown in the figure, the specific processing of the step "obtaining a proposal response message based on the verification failure result of the primary endorsement node and the risk prediction result" may include:

[0094] Step 502: Based on the risk prediction result, obtain the verification result of the secondary endorsement node.

[0095] Specifically, the alliance chain can obtain the verification result of the secondary endorsement node through the risk prediction result received by the secondary endorsement node. The verification result of the secondary endorsement node may include a verification pass result or a verification fail result.

[0096] Step 504: Based on the verification failure result of the primary endorsement node and the verification result of the secondary endorsement node, a proposal response message is obtained.

[0097] The verification result of the secondary endorsement node includes a verification failure result of the secondary endorsement node or a verification pass result of the secondary endorsement node.

[0098] Specifically, the alliance chain can generate a proposal response message based on the verification failure result of the primary endorsement node and the verification failure result of the secondary endorsement node, or the alliance chain can generate a proposal response message based on the verification failure result of the primary endorsement node and the verification pass result of the secondary endorsement node.

[0099] In this embodiment, when the primary endorsement node fails the verification, re-verification is performed through the secondary endorsement node, and the final verification result of the transaction proposal is obtained based on the re-verification result of the secondary endorsement node, thereby further ensuring the reliability of the transaction proposal verification.

[0100] In an exemplary embodiment, the risk prediction result is the risk prediction value of the target enterprise and the risk prediction value of the transaction object. Specifically, the risk prediction result obtained by the transaction credit risk assessment module through the trained risk prediction model can be the risk prediction value of the transaction parties corresponding to the transaction proposal, that is, the risk prediction value of the target enterprise and the risk prediction value of the transaction object of the target enterprise.

[0101] like Figure 6 As shown in FIG. 1 , the specific processing process of the step “obtaining the verification result of the secondary endorsement node based on the risk prediction result” includes:

[0102] Step 602, comparing the risk prediction value of the target enterprise with the risk prediction value of the transaction object.

[0103] Specifically, the alliance chain can obtain the risk prediction value of the target enterprise and the risk prediction value of the target enterprise's transaction object based on the received risk prediction results, and compare the risk prediction value of the target enterprise and the risk prediction value of the target enterprise's transaction object.

[0104] Step 604: If the risk prediction value of the target enterprise is higher than the risk prediction value of the transaction object, the verification result of the secondary endorsement node is determined to be a verification failure result.

[0105] Specifically, if the risk prediction value of the target enterprise is higher than the risk prediction value of the transaction object, the alliance chain can determine that the risk value of the target enterprise is higher in the current state, and the secondary endorsement node can determine that the verification result (re-verification result) of the secondary endorsement node is a verification failure result.

[0106] Step 606: If the risk prediction value of the target enterprise is not higher than the risk prediction value of the transaction object, the verification result of the secondary endorsement node is determined to be a verification pass result.

[0107] Specifically, if the risk prediction value of the target enterprise is not higher than the risk prediction value of the transaction object, that is, the risk prediction value of the target enterprise is less than or equal to the risk prediction value of the transaction object of the target enterprise, then the alliance chain can determine that in the current state, the risk value of the transaction object of the target enterprise is higher, then the secondary endorsement node can determine that the verification result (re-verification result) of the secondary endorsement node is a verification pass result.

[0108] In this embodiment, the business enabling platform can directly transmit the risk prediction values ​​of both parties to the transaction to the alliance chain, ensure the timeliness and accuracy of information transmission, and improve the accuracy of re-verification of the secondary endorsement node.

[0109] In one embodiment, the risk prediction result is the verification pass result or verification fail result of the secondary endorsement node. Specifically, the output result of the trained risk prediction model by the transaction credit risk assessment module can be the risk prediction value of the two transaction parties corresponding to the transaction proposal, that is, the risk prediction value of the target enterprise and the risk prediction value of the target enterprise's transaction object. Then, the transaction credit risk assessment module can compare the risk prediction value of the target enterprise and the risk prediction value of the target enterprise's transaction object to obtain a comparison result, and obtain a risk prediction result based on the comparison result.

[0110] Optionally, the transaction credit risk assessment module may compare the risk prediction value of the target enterprise with the risk prediction value of the target enterprise's transaction object. If the risk prediction value of the target enterprise is higher than the risk prediction value of the transaction object, the transaction credit risk assessment module may determine that the risk value of the target enterprise is higher in the current state, and the transaction credit risk assessment module may determine that the risk prediction result is a verification failure result of the secondary endorsement node; if the risk prediction value of the target enterprise is not higher than the risk prediction value of the transaction object, the transaction credit risk assessment module may determine that the risk value of the target enterprise's transaction object is higher in the current state, and the transaction credit risk assessment module may determine that the risk prediction result is a verification pass result of the secondary endorsement node.

[0111] The specific processing of the step "obtaining the verification result of the secondary endorsement node based on the risk prediction result" includes:

[0112] Based on the verification pass result or verification fail result carried in the risk prediction result, the verification result of the secondary endorsement node is obtained.

[0113] Specifically, the secondary endorsement node can obtain the verification result of the secondary endorsement node based on the verification result of the secondary endorsement node carried by the risk prediction result. In this case, the verification result of the secondary endorsement node is a verification pass result; optionally, the secondary endorsement node can obtain the verification result of the secondary endorsement node based on the verification failure result of the secondary endorsement node carried by the risk prediction result. In this case, the verification result of the secondary endorsement node is a verification failure result.

[0114] In this embodiment, the business enabling platform can directly transmit the re-verification results of the secondary endorsement node to the alliance chain, further increasing the computing resources required by the alliance chain and improving the resource utilization of the alliance chain.

[0115] In one embodiment, Figure 7 As shown, the specific processing process of the step "returning the proposal response message to the target enterprise client so that the target enterprise client processes based on the proposal response message" includes:

[0116] Step 702, returning a proposal response message carrying the verification result of the primary endorsement node to the target enterprise client, so that the target enterprise client performs the transaction process corresponding to the transaction proposal based on the verification result of the primary endorsement node.

[0117] Specifically, the alliance chain can return a proposal response message carrying the verification result of the primary endorsement node to the target enterprise client. After receiving the proposal response message, the target enterprise client can parse the proposal response message to obtain the verification result of the primary endorsement node. In this way, the target enterprise client can determine that the transaction proposal has passed the endorsement verification of the required endorsement node (i.e., the primary endorsement node), and the target enterprise client can continue the subsequent transaction process of the transaction corresponding to the transaction proposal.

[0118] Step 704, a proposal response message carrying the verification failure result of the primary endorsement node and the verification success message of the secondary endorsement node is returned to the target enterprise client, so that the target enterprise client performs the transaction process corresponding to the transaction proposal.

[0119] Specifically, the alliance chain can return a message carrying the verification failure result of the primary endorsement node and the verification pass result of the secondary endorsement node to the target enterprise client. After receiving the proposal response message, the target enterprise client can parse the proposal response message to obtain the verification failure result of the primary endorsement node and the verification pass message of the secondary endorsement node. In this way, the target enterprise client can determine that the transaction proposal has failed the endorsement verification of the primary endorsement node but passed the endorsement verification of the secondary endorsement node, and the target enterprise client can also continue the subsequent transaction process of the transaction corresponding to the transaction proposal.

[0120] Step 706, a proposal response message carrying the verification failure result of the primary endorsement node and the verification failure message of the secondary endorsement node is returned to the target enterprise client, so that the target enterprise client determines that the transaction corresponding to the transaction proposal is invalid and stops the transaction.

[0121] Specifically, the alliance chain can return the verification failure result of the primary endorsement node and the verification failure message of the secondary endorsement node to the target enterprise client. After receiving the proposal response message, the target enterprise client can parse the proposal response message to obtain the verification failure result of the primary endorsement node and the verification failure message of the secondary endorsement node. In this way, the target enterprise client can determine that the transaction proposal has failed the endorsement verification of the primary endorsement node and has also failed the endorsement verification of the secondary endorsement node. Then, the target enterprise client determines that the transaction proposal is invalid and needs to stop the transaction corresponding to the transaction proposal, and will not submit the transaction to the alliance chain.

[0122] It should be noted that this embodiment does not limit the execution order of step 702, step 704 and step 706. The method provided in this embodiment can execute any one or any combination of step 702, step 704 and step 706 based on actual application scenarios.

[0123] In this embodiment, the proposal response message returned by the alliance chain can quickly and accurately determine whether it has passed the endorsement verification of the required endorsement node, thereby achieving effective verification of the authenticity of the transaction content, ensuring the authenticity of the transaction proposal content, and providing a reliable data basis for the target enterprise client to process various transactions.

[0124] In the following, in conjunction with a specific embodiment, a detailed description of the specific implementation process of the transaction verification method may include:

[0125] The limitation of alliance chain verification in related technologies is that if the transaction content of a transaction proposal cannot be verified through the set logic, the alliance chain cannot guarantee the authenticity of the information on the chain, that is, it cannot verify whether the transaction resource data in the transaction proposal is correct, etc. The verification method in traditional technologies cannot support the authenticity of the verification, which is easy to cause transaction disputes, affect the reputation of the alliance chain platform, and also affect the interests of both parties to the transaction. Based on this, a transaction verification method provided in this embodiment is a transaction proposal verification method based on the Hyperledger Fabric alliance chain, which can effectively verify the authenticity of the transaction proposal content, reduce unnecessary waste of computing resources, improve verification efficiency, enhance information security, and meet diverse business needs.

[0126] Based on this, this embodiment proposes a new transaction proposal verification mechanism for a business enabling architecture based on alliance chain technology, which includes a method for selecting endorsement nodes, a verification method, and an external data acquisition method. The authenticity of the transaction content can be verified based on the current specifications of the Hyperledger Fabric (an open source enterprise-level licensed distributed ledger technology platform designed for use in an enterprise environment and a blockchain technology platform) alliance chain. A transaction verification method provided in this embodiment can ensure the authenticity and security of transactions between the two parties, and can also reduce resource waste, improve verification efficiency, reduce the need for manual review, reduce operating costs and time, enhance the security of information transmission, and provide support for new business enabling architectures.

[0127] Among them, the transaction verification method provided in this embodiment can realize the endorsement node selection. The alliance chain can specify the primary and secondary endorsement nodes according to the actual situation, and verify the transaction proposal in a serial manner, which can avoid the problems of resource waste, energy consumption, reduced efficiency and increased latency caused by selecting too many endorsement nodes in traditional technologies.

[0128] A transaction verification method provided in this embodiment can verify the transaction proposal through the endorsement node, verify the authenticity of the transaction content, and effectively ensure the authenticity of the transaction proposal content; the business enabling platform involved in the transaction verification method provided in this embodiment adds a transaction credit risk assessment module. The transaction credit risk assessment module is based on the transaction behavior information such as the evaluation and feedback of the two parties to the transaction on the blockchain platform, and uses a machine learning algorithm to predict the transaction credit risk value of both parties in the current state to assist in verifying the authenticity of the transaction proposal, further improving the verification accuracy of the transaction proposal. A dedicated external API interface connecting the transaction credit risk assessment module and the Hyperledger Fabric alliance chain is also added. The external data that assists in verifying the authenticity of the transaction proposal is transmitted to the alliance chain. According to the current business scenario requirements, a new information confidentiality function is added. The external data can also be encrypted and transmitted through quantum encryption to improve the security and accuracy of the information.

[0129] For example, the alliance chain first designates the main endorsement node to verify the transaction proposal. If the verification passes, the subsequent transaction process will be executed directly. If the verification fails, the main endorsement node questions the content of the proposal, and then designates the secondary endorsement node to re-verify the transaction content, connect to the business enablement platform through a dedicated external API interface, obtain the transaction credit risk value of both parties in the current state, and determine whether to pass the current transaction proposal verification based on this value. If the verification passes, that is, the verification of the secondary endorsement node passes, it indicates that the current transaction proposal is valid and the subsequent transaction process can be carried out.

[0130] like Figure 8 As shown, it may be a scenario applied by the present embodiment, which includes a business enabling platform and an alliance chain. The business enabling platform and the alliance chain are connected through a dedicated external API interface, wherein a transaction credit risk assessment module is provided in the business enabling platform, and the alliance chain includes multiple organizations, such as organization 1, organization 2, organization 3, ...; each organization includes a corresponding endorsement node, for example, each organization may correspond to a primary endorsement node, a secondary endorsement node, an endorsement node, and so on.

[0131] like Fig. 9 As shown, it can be a specific implementation of the transaction verification method provided in this embodiment:

[0132] Step 1: Enterprise A submits a transaction proposal. Specifically, Enterprise A initiates a bookkeeping request in the consortium chain through Enterprise A's client and submits a transaction proposal. Enterprise A is the target enterprise, and the enterprise that conducts transactions with Enterprise A is the transaction object.

[0133] Step 2: Designate the primary endorsement node. Specifically, based on the content of the transaction proposal, the consortium chain designates the endorsement node of the transaction object as the primary endorsement node for the transaction proposal.

[0134] Step 3, the main endorsement node verifies the transaction proposal; specifically, the verification content of the main endorsement node includes current specification verification and key content verification of the transaction proposal, the key content can be transaction resource data, the transaction resource data can be transaction amount data, etc.; if the verification is passed, the proposal response message (which carries the verification result of the main endorsement node) is returned to the client of enterprise A, and the execution proceeds to step 6. However, if the organization to which the main endorsement node belongs questions the authenticity of the proposal content and does not endorse the proposal, it means that the transaction proposal has not been verified by the main endorsement node, that is, the alliance chain determines that the verification result of the main endorsement node is a verification failure result, then the alliance chain can return the verification failure result of the main endorsement node to the client of enterprise A; and the alliance chain can specify the secondary endorsement node of the transaction proposal and order the secondary endorsement node to re-verify the transaction proposal.

[0135] Step 4: The secondary endorsement node obtains the transaction credit risk values ​​of both parties from the business enablement platform and verifies the transaction proposal. Specifically, the secondary endorsement node calls a dedicated external API interface through the client of its organization, connects to the transaction credit risk assessment module in the business enablement platform, re-verifies the transaction proposal, and determines whether the primary endorsement node's doubts are valid and whether the current transaction proposal is valid, that is, obtains the verification result of the secondary endorsement node.

[0136] Step 5: The transaction credit risk assessment module can encrypt the risk prediction results through quantum encryption methods and transmit them to the secondary endorsement node. If the result shows that the risk value of enterprise A is higher, the secondary endorsement node considers that the current transaction proposal verification fails and does not endorse the proposal, that is, the verification result of the secondary endorsement node of the transaction proposal is determined to be a verification failure result; otherwise, the questioning of the primary endorsement node is considered invalid, the current transaction proposal is valid, and the transaction proposal verification is passed. The proposal is endorsed and signed, that is, the verification result of the secondary endorsement node of the transaction proposal is determined to be a verification pass result. In this way, the alliance chain can obtain a proposal response message based on the verification result of the secondary endorsement node and return the proposal response message to the client of enterprise A.

[0137] Step 6: After receiving the proposal response message returned by the alliance chain, the client of enterprise A checks whether it has passed the endorsement verification of the required endorsement node. If it has passed the endorsement verification of the primary endorsement node, the subsequent transaction process can be carried out directly, reducing the resource consumption of redundant endorsement nodes and improving the verification efficiency. If the primary endorsement node verification fails but the secondary endorsement node verification passes, the subsequent transaction process can also be carried out, ensuring the authenticity of the transaction proposal content. If both fail, the transaction proposal is deemed invalid and will not be submitted to the alliance chain.

[0138] In one example, the business enablement platform has added a transaction credit risk assessment module, which uses machine learning algorithms to predict the transaction credit risk values ​​of both parties in the current state based on transaction behavior information such as evaluations and feedback from both parties on the platform, in order to assist the secondary endorsement node in verifying the authenticity of the transaction proposal. The level of risk value directly reflects the credit of the transaction proposal submitted by the organization: the higher the risk value, the lower the credit of the transaction proposal submitted by the organization. Compared with the general credit calculation method, the introduction of machine learning algorithms improves the accuracy of endorsement nodes in verifying transaction proposals.

[0139] A new dedicated external API interface is added to connect the alliance chain with the transaction credit risk assessment module. The organizations in the alliance chain call the dedicated external API interface through the client to connect to the business enablement platform to obtain the required information. The existing alliance chain endorsement node acquisition external data method does not consider the confidentiality of the data. Quantum encryption technology is applied during data transmission to achieve encrypted transmission to ensure data security and accuracy. The alliance chain can designate the endorsement node corresponding to the arbitration organization in the alliance chain as the secondary endorsement node to assist in verifying the authenticity of the transaction proposal content.

[0140] In another example, the consortium chain first designates the main endorsement node to verify the transaction proposal and verify the key content of the transaction proposal. If the verification passes, the subsequent transaction process is directly executed; if the verification fails, the main endorsement node questions the content of the proposal, and then designates the secondary endorsement node to re-verify the transaction content, and connects to the business enablement platform through the designed dedicated external API interface to obtain the transaction credit risk value of both parties in the current state. Based on this value, it determines whether the doubt is valid and whether the current transaction proposal verification is passed. If the verification passes, it means that the current transaction proposal is valid and the subsequent transaction process can be carried out to solve the problem that the existing endorsement node verification method is difficult to verify the authenticity of the transaction content, and effectively ensure the authenticity of the transaction proposal content.

[0141] Optionally, the consortium chain first selects the endorsement node related to the current transaction as the primary endorsement node; introduces an arbitration organization into the consortium chain, and selects the endorsement node of the arbitration organization as the secondary endorsement node. When the primary endorsement node doubts the authenticity of the current transaction proposal and does not verify it, the secondary endorsement node re-verifies the current transaction proposal, which reduces the resource waste and energy consumption caused by redundant endorsement nodes, reduces the verification delay of transaction proposals, and improves verification efficiency.

[0142] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0143] Based on the same inventive concept, the embodiment of the present application also provides a transaction verification device for implementing the transaction verification method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more transaction verification device embodiments provided below can refer to the limitations on the transaction verification method above, and will not be repeated here.

[0144] In an exemplary embodiment, Fig.10 As shown, a transaction verification device 1000 is provided, which is applied to a consortium chain, and includes:

[0145] The first receiving module 1002 is used to receive a transaction proposal submitted by a target enterprise client, where the transaction proposal includes a transaction object, transaction time, and transaction content.

[0146] The first determination module 1004 is used to determine the primary endorsement node corresponding to the transaction proposal, verify the transaction key content of the transaction proposal through the primary endorsement node, and obtain a proposal response message.

[0147] The first returning module 1006 is configured to return a proposal response message to the target enterprise client, so that the target enterprise client performs processing based on the proposal response message.

[0148] In one of the embodiments, the first determination module is specifically used to: determine the transaction object corresponding to the target enterprise client in the transaction proposal; determine the endorsement node corresponding to the transaction object as the main endorsement node.

[0149] In one embodiment, the first determining module is specifically configured to:

[0150] Verifying the transaction resource data of the transaction proposal through the primary endorsement node;

[0151] If the verification is successful, the verification result of the primary endorsement node is determined to be the proposal response message.

[0152] In one embodiment, the device further comprises:

[0153] A second determination module is used to obtain a verification failure result of the primary endorsement node and determine a secondary endorsement node if the verification fails;

[0154] A second receiving module, configured to receive the risk prediction result sent by the transaction credit risk assessment module through the secondary endorsement node;

[0155] The third determination module is used to obtain a proposal response message based on the verification failure result of the primary endorsement node and the risk prediction result.

[0156] In one embodiment, the transaction credit risk assessment module is a module in the business enabling platform, and the business enabling platform is connected to the alliance chain through an API interface. The risk prediction result is transmitted between the business enabling platform and the alliance chain through an encryption algorithm. The risk prediction result is obtained by the transaction credit risk assessment module after processing the transaction history information of the target enterprise and the transaction history information of the transaction object through a neural network.

[0157] In one embodiment, the third determination module is specifically used to:

[0158] Based on the risk prediction result, a verification result of the secondary endorsement node is obtained; based on the verification failure result of the primary endorsement node and the verification result of the secondary endorsement node, a proposal response message is obtained.

[0159] In one of the embodiments, the risk prediction result is the risk prediction value of the target enterprise and the risk prediction value of the transaction object; the third determination module is specifically used to: compare the risk prediction value of the target enterprise and the risk prediction value of the transaction object; if the risk prediction value of the target enterprise is higher than the risk prediction value of the transaction object, determine that the verification result of the secondary endorsement node is a verification failure result; if the risk prediction value of the target enterprise is not higher than the risk prediction value of the transaction object, determine that the verification result of the secondary endorsement node is a verification pass result.

[0160] In one embodiment, the risk prediction result is a verification pass result or a verification fail result of the secondary endorsement node; and obtaining the verification result of the secondary endorsement node based on the risk prediction result includes:

[0161] Based on the verification pass result or verification fail result carried by the risk prediction result, the verification result of the secondary endorsement node is obtained.

[0162] In one of the embodiments, the first return module is specifically used to: return a proposal response message carrying the verification result of the primary endorsement node to the target enterprise client, so that the target enterprise client performs the transaction process corresponding to the transaction proposal based on the verification result of the primary endorsement node; or, return a proposal response message carrying the verification failure result of the primary endorsement node and the verification success message of the secondary endorsement node to the target enterprise client, so that the target enterprise client performs the transaction process corresponding to the transaction proposal; or, return a proposal response message carrying the verification failure result of the primary endorsement node and the verification failure message of the secondary endorsement node to the target enterprise client, so that the target enterprise client determines that the transaction corresponding to the transaction proposal is invalid and stops the transaction.

[0163] Each module in the transaction verification device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0164] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store transaction proposal data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a transaction verification method is implemented.

[0165] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0166] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the embodiments of the present application when executing the computer program.

[0167] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the embodiments of the present application are implemented.

[0168] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the embodiments of the present application when executed by a processor.

[0169] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0170] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0171] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0172] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A transaction verification method, characterized in that: Applied to the alliance chain, the method includes: Receive a transaction proposal submitted by a target enterprise client, wherein the transaction proposal includes a transaction object, a transaction time, and a transaction content; Determine the primary endorsement node corresponding to the transaction proposal, verify the transaction key content of the transaction proposal through the primary endorsement node, and obtain a proposal response message; The proposal response message is returned to the target enterprise client, so that the target enterprise client performs processing based on the proposal response message.

2. The method according to claim 1, characterized in that The determining the primary endorsement node corresponding to the transaction proposal includes: Determine a transaction object corresponding to the target enterprise client in the transaction proposal; Determine the endorsement node corresponding to the transaction object as the primary endorsement node.

3. The method according to claim 1, characterized in that The transaction key content of the transaction proposal is verified by the primary endorsement node to obtain a proposal response message, including: Verifying the transaction resource data of the transaction proposal through the primary endorsement node; If the verification is successful, the verification result of the primary endorsement node is determined to be the proposal response message.

4. The method according to claim 3, characterized in that The method further comprises: If the verification fails, the verification failure result of the primary endorsement node is obtained, and the secondary endorsement node is determined; Receiving the risk prediction result sent by the transaction credit risk assessment module through the secondary endorsement node; Based on the verification failure result of the primary endorsement node and the risk prediction result, a proposal response message is obtained.

5. The method according to claim 4, characterized in that The transaction credit risk assessment module is a module in the business enabling platform, which is connected to the alliance chain through an API interface. The risk prediction result is transmitted between the business enabling platform and the alliance chain through an encryption algorithm. The risk prediction result is obtained by the transaction credit risk assessment module after processing the transaction history information of the target enterprise and the transaction history information of the transaction object through a neural network.

6. The method according to claim 4, characterized in that The proposal response message is obtained based on the verification failure result of the primary endorsement node and the risk prediction result, including: Based on the risk prediction result, obtaining the verification result of the secondary endorsement node; Based on the verification failure result of the primary endorsement node and the verification result of the secondary endorsement node, a proposal response message is obtained.

7. The method according to claim 6, characterized in that The risk prediction result is a risk prediction value of the target enterprise and a risk prediction value of the transaction object; the verification result of the secondary endorsement node is obtained based on the risk prediction result, including: Comparing the risk prediction value of the target enterprise with the risk prediction value of the transaction object; If the risk prediction value of the target enterprise is higher than the risk prediction value of the transaction object, determining the verification result of the secondary endorsement node as a verification failure result; If the risk prediction value of the target enterprise is not higher than the risk prediction value of the transaction object, the verification result of the secondary endorsement node is determined to be a verification pass result.

8. The method according to claim 6, characterized in that The risk prediction result is a verification pass result or a verification fail result of the secondary endorsement node; the verification result of the secondary endorsement node is obtained based on the risk prediction result, including: Based on the verification pass result or verification fail result carried by the risk prediction result, the verification result of the secondary endorsement node is obtained.

9. The method according to claim 6, characterized in that The returning the proposal response message to the target enterprise client so that the target enterprise client performs processing based on the proposal response message includes: Returning a proposal response message carrying the verification result of the primary endorsement node to the target enterprise client, so that the target enterprise client performs the transaction process corresponding to the transaction proposal based on the verification result of the primary endorsement node; or Returning a proposal response message carrying the verification failure result of the primary endorsement node and the verification success message of the secondary endorsement node to the target enterprise client, so that the target enterprise client performs the transaction process corresponding to the transaction proposal; or A proposal response message carrying the verification failure result of the primary endorsement node and the verification failure message of the secondary endorsement node is returned to the target enterprise client, so that the target enterprise client determines that the transaction corresponding to the transaction proposal is invalid and stops the transaction.

10. A transaction verification device, characterized in that: Applied to the alliance chain, the device includes: A first receiving module is used to receive a transaction proposal submitted by a target enterprise client, wherein the transaction proposal includes a transaction object, a transaction time, and a transaction content; A first determination module is used to determine the primary endorsement node corresponding to the transaction proposal, verify the transaction key content of the transaction proposal through the primary endorsement node, and obtain a proposal response message; The first returning module is used to return the proposal response message to the target enterprise client, so that the target enterprise client performs processing based on the proposal response message.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.