CN111401898B - Transaction information verification method and electronic equipment - Google Patents

Transaction information verification method and electronic equipment Download PDF

Info

Publication number
CN111401898B
CN111401898B CN202010183431.1A CN202010183431A CN111401898B CN 111401898 B CN111401898 B CN 111401898B CN 202010183431 A CN202010183431 A CN 202010183431A CN 111401898 B CN111401898 B CN 111401898B
Authority
CN
China
Prior art keywords
information
transaction
preset
transaction information
endorsement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010183431.1A
Other languages
Chinese (zh)
Other versions
CN111401898A (en
Inventor
王云浩
杨四雄
李永鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010183431.1A priority Critical patent/CN111401898B/en
Publication of CN111401898A publication Critical patent/CN111401898A/en
Application granted granted Critical
Publication of CN111401898B publication Critical patent/CN111401898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Abstract

The application discloses a transaction information verification method and electronic equipment, which are used for reducing the probability of leakage of transaction information by endorsement nodes and improving the security of the transaction information. The method comprises the following steps: performing identification operation on a target endorsement node in the block chain; under the condition that transaction information is received, carrying out preset processing on the transaction information, wherein the preset processing is used for enabling the transaction information to be added with consensus information by the target endorsement node; broadcasting the transaction information after the preset processing in a block chain; and executing an operation corresponding to the consensus information under the condition that the consensus information returned by the target endorsement node for the transaction information is received. By adopting the scheme provided by the application, the transaction information is prevented from being revealed to unsafe endorsement nodes, the probability of revealing the transaction information by the endorsement nodes is reduced, and the security of the transaction information is improved.

Description

Transaction information verification method and electronic equipment
Technical Field
The present disclosure relates to the field of the internet, and in particular, to a transaction information verification method and an electronic device.
Background
Blockchain technology is aimed at enabling distributed reliable storage of data. In recent years, the blockchain technology has developed rapidly, but due to the specificity of the blockchain, data on a public chain is completely shared, and the data is still in a shared state in a license chain, so that the transaction security problem caused by the fact that the privacy of the blockchain cannot be ensured is regarded as a big and short plate which restricts the healthy development of the industry.
For example, during consensus of transaction information, endorsement nodes are fully visible to all content in the transaction information, but some endorsement nodes are not necessarily secure in nature, i.e., endorsement nodes are also the primary channels for information leakage. Therefore, how to reduce the probability of leakage of transaction information by endorsement nodes, thereby improving the security of the transaction information is a technical problem to be solved urgently.
Disclosure of Invention
An object of the embodiments of the present application is to provide a transaction information verification method and an electronic device, which are used for reducing the probability of leakage of transaction information by an endorsement node and improving the security of the transaction information.
In order to solve the technical problems, the embodiment of the application adopts the following technical scheme: a transaction information verification method, comprising:
performing identification operation on a target endorsement node in the block chain;
under the condition that transaction information is received, carrying out preset processing on the transaction information, wherein the preset processing is used for enabling the transaction information to be added with consensus information by the target endorsement node;
broadcasting the transaction information after the preset processing in a block chain;
and executing an operation corresponding to the consensus information under the condition that the consensus information returned by the target endorsement node for the transaction information is received.
The beneficial effects of this application lie in: performing identification operation on a target endorsement node in the block chain; under the condition of receiving transaction information, carrying out preset processing on the transaction information, so that the transaction information can only be added with consensus information by an endorsement node after identification operation; and the endorsement node which does not perform the identification operation cannot add the consensus information to the endorsement node, so that the transaction information is prevented from being leaked to the unsafe endorsement node, the probability of the endorsement node to leak the transaction information is reduced, and the security of the transaction information is improved.
In one embodiment, the identifying the target endorsement node in the blockchain includes:
and sending preset attributes and preset types of public parameters to a submitting node in a blockchain, wherein the submitting node is used for acquiring an endorsement node with the preset attributes in the blockchain as a target endorsement node and sending the preset types of public parameters to the target endorsement node in the blockchain.
In one embodiment, the performing the preset processing on the transaction information includes:
generating a target strategy based on the preset attribute;
encrypting the transaction information based on the target policy and the information related to the public parameter together to form encrypted transaction information.
In one embodiment, the encrypted transaction information allows for the addition of consensus information to endorsement nodes that are able to decrypt it and meet the target policy.
In one embodiment, the consensus information includes signature data packets and prompt information for verification failure;
the performing an operation corresponding to the consensus information includes:
receiving signature data packets returned by an endorsement node aiming at the transaction information and/or prompt information of verification failure;
judging whether the transaction meets preset conditions or not according to the signature data packet and/or prompt information of verification failure;
recording the transaction in a blockchain under the condition that the transaction meets the preset condition;
and under the condition that the transaction does not accord with the preset condition, sending prompt information of transaction failure to a transaction initiating party corresponding to the transaction information.
In one embodiment, the determining whether the transaction meets the preset condition according to the signature data packet and/or the prompt information of verification failure includes:
receiving signature data packets returned by an endorsement node aiming at the transaction information and/or prompt information of verification failure;
determining the number of endorsement nodes transmitting the consensus information;
judging whether the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio or not;
and under the condition that the ratio of the number of the received signature data packets to the number of the endorsement nodes sending the consensus information reaches a preset ratio, determining that the transaction meets a preset condition.
The beneficial effects of this embodiment lie in: under the condition that the ratio of the number of the received signature data packets to the number of the endorsement nodes sending the consensus information reaches a preset ratio, the transaction is determined to accord with the preset condition, so that all endorsement nodes participating in the consensus are not required to return the signature data packets, the transaction is also determined to accord with the preset condition, malicious endorsement of unsafe endorsement nodes still exist in the endorsement nodes participating in the consensus, and the accuracy of transaction information verification is improved.
In one embodiment, the determining whether the transaction meets the preset condition according to the signature data packet and/or the prompt information of verification failure includes:
receiving signature data packets returned by an endorsement node aiming at the transaction information and/or prompt information of verification failure;
judging whether the number of the received signature data packets reaches a preset number or not;
and under the condition that the number of the received signature data packets reaches the preset number, determining that the transaction meets the preset condition.
The application also provides an electronic device comprising:
the identification module is used for carrying out identification operation on the target endorsement node in the blockchain;
the processing module is used for carrying out preset processing on the transaction information under the condition that the transaction information is received, and the preset processing is used for enabling the transaction information to be added with consensus information by the target endorsement node;
the broadcasting module is used for broadcasting the encrypted transaction information in the blockchain;
and the execution module is used for executing the operation corresponding to the consensus information under the condition that the consensus information returned by the target endorsement node for the transaction information is received.
In one embodiment, the identification module comprises:
the system comprises a sending sub-module, a target endorsement node and a target endorsement node, wherein the sending sub-module is used for sending preset attributes and preset types of public parameters to a submitting node in a blockchain, and the submitting node is used for acquiring the endorsement node with the preset attributes in the blockchain as the target endorsement node and sending the preset types of public parameters to the target endorsement node in the blockchain.
In one embodiment, the processing module comprises:
the generation sub-module is used for generating a target strategy based on the preset attribute;
and the encryption sub-module is used for encrypting the transaction information based on the target strategy and the information related to the public parameter together so as to form encrypted transaction information.
In one embodiment, the encrypted transaction information allows for the addition of consensus information to endorsement nodes that are able to decrypt it and meet the target policy.
In one embodiment, the consensus information includes a signature packet and a hint that the verification failed;
the execution module comprises:
the receiving sub-module is used for receiving signature data packets returned by the endorsement node aiming at the transaction information and/or prompt information of verification failure;
the judging sub-module is used for judging whether the transaction accords with a preset condition according to the signature data packet and/or prompt information of verification failure;
a recording sub-module, configured to record the transaction in a blockchain if the transaction meets a preset condition;
and the prompting sub-module is used for sending prompting information of transaction failure to the transaction initiating party corresponding to the transaction information under the condition that the transaction does not accord with the preset condition.
In one embodiment, the judging submodule is configured to:
receiving signature data packets returned by an endorsement node aiming at the transaction information and/or prompt information of verification failure;
determining the number of endorsement nodes transmitting the consensus information;
judging whether the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio or not;
and under the condition that the ratio of the number of the received signature data packets to the number of the endorsement nodes sending the consensus information reaches a preset ratio, determining that the transaction meets a preset condition.
In one embodiment, the judging submodule is configured to:
receiving signature data packets returned by an endorsement node aiming at the transaction information and/or prompt information of verification failure;
judging whether the number of the received signature data packets reaches a preset number or not;
and under the condition that the number of the received signature data packets reaches the preset number, determining that the transaction meets the preset condition.
Drawings
FIG. 1 is a flow chart of a transaction information verification method according to an embodiment of the present application;
FIG. 2 is a flow chart of a transaction information verification method according to another embodiment of the present application;
FIG. 3 is a block diagram of an electronic device in an embodiment of the present application;
FIG. 4 is a block diagram of an electronic device in another embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to yet another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the application herein. Therefore, the above description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of this application will occur to those skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It is also to be understood that, although the present application has been described with reference to some specific examples, a person skilled in the art will certainly be able to achieve many other equivalent forms of the present application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The foregoing and other aspects, features, and advantages of the present application will become more apparent in light of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application will be described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application with unnecessary or excessive detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the word "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments as per the application.
As shown in fig. 1, the transaction information verification method in the embodiment of the application includes the following steps S11 to S14:
in step S11, performing identification operation on a target endorsement node in the blockchain;
in step S12, under the condition that the transaction information is received, performing a preset process on the transaction information, where the preset process is used to enable the transaction information to be added with consensus information by the target endorsement node;
in step S13, broadcasting the transaction information after the preset processing in the blockchain;
in step S14, in the case where the consensus information returned by the target endorsement node for the transaction information is received, an operation corresponding to the consensus information is performed.
In the embodiment, the identification operation is performed on the target endorsement node in the blockchain; the identification operation is performed by the submitting node.
Specifically, a preset attribute and a common parameter of a preset type are sent to a submitting node in a blockchain, so that the submitting node screens target endorsement nodes with the preset attribute in the blockchain, and then the common parameter of the preset type is sent to the target endorsement nodes, so that only the target endorsement nodes with the preset attribute have authority to endorse transaction information.
Under the condition that transaction information is received, carrying out preset processing on the transaction information, wherein the preset processing is used for enabling the transaction information to be added with consensus information by a target endorsement node;
specifically, the target policy may be generated based on the preset attribute, and then the transaction information is encrypted based on the target policy and the information related to the common parameter together, so as to form encrypted transaction information.
Broadcasting the transaction information after the preset processing in a block chain;
after the transaction information is broadcast in the blockchain, all endorsement nodes can see the broadcast, but because the transaction information is encrypted based on the information related to the target strategy and the public parameters, the transaction information can be identified only by the endorsement node which needs to meet the target strategy and can decrypt the transaction information, and the target endorsement nodes all contain the preset attribute, so that the target strategy generated based on the preset attribute can be met, and the target endorsement nodes all receive the public parameters sent by the submitting node and can decrypt the transaction information, so that the target endorsement node has authority to endorse the transaction information, and other endorsement nodes cannot decrypt and do not meet the target strategy, therefore, the endorsement of the transaction information cannot be carried out, the specific content of the transaction information cannot be seen, the transaction information is prevented from being leaked to unsafe endorsement nodes, the probability of the endorsement node leaking the transaction information is reduced, and the security of the transaction information is improved.
And executing the operation corresponding to the consensus information under the condition that the consensus information returned by the target endorsement node for the transaction information is received.
It will be appreciated that: the transactions referred to in this application relate to data exchange in a blockchain, one embodiment of which is as follows:
the client submits a data transfer application to a submitting node, for example, the data of the client is transferred to another client (the data can be data corresponding to encrypted currency or other types of data), the submitting node performs whole-network broadcasting to endorsement nodes in the blockchain, then the endorsement nodes verify transaction information, the verification result is fed back to the submitting node, the submitting node performs subsequent processing based on the verification result, for example, when the verification is passed, the submitting node performs in-chain operation on the transaction information, namely, anchors the transaction on the blockchain, when the verification is not passed, the data transfer application proposed by the client is refused, and prompt information which is not passed is fed back to the client. Thus, the transaction corresponding to the transaction information mentioned in the present application is essentially an information interaction and processing procedure.
The beneficial effects of this application lie in: performing identification operation on a target endorsement node in the block chain; under the condition of receiving the transaction information, carrying out preset processing on the transaction information, so that the transaction information can only be added with consensus information by the endorsement node after the identification operation; and the endorsement node which does not perform the identification operation cannot add the consensus information to the endorsement node, so that the transaction information is prevented from being leaked to the unsafe endorsement node, the probability of the endorsement node to leak the transaction information is reduced, and the security of the transaction information is improved.
In one embodiment, the step S11 may be implemented as the following steps:
and sending the preset attribute and the preset type common parameter to a submitting node in the blockchain, wherein the submitting node is used for acquiring an endorsement node with the preset attribute in the blockchain as a target endorsement node and sending the preset type common parameter to the target endorsement node in the blockchain.
For example, the preset attribute and the common parameter of the preset type are sent locally to the submitting node in the blockchain, for example, the preset attribute may be an endorsement server of an endorsement mechanism capable of characterizing that the endorsement node is international authentication or multi-country joint authentication, for example, the preset attribute may be an international authentication identifier, then, the endorsement node with the international authentication identifier is a target endorsement node, only the target endorsement node with the international authentication identifier is selected by the submitting node, and the common parameter for decryption is sent to the target endorsement node.
In one embodiment, the preset processing of the transaction information in the step S12 may be implemented as the following steps S21-S22:
in step S21, a target policy is generated based on the preset attribute;
in step S22, the transaction information is encrypted based on the target policy and the information related to the common parameter together to form encrypted transaction information.
For example, assuming that the preset attribute is an international authentication identifier, the target policy generated based on the preset attribute may be an endorsement node having the international authentication identifier as an endorsement node meeting the condition, and, of course, the target policy may be further defined on this basis, for example, the endorsement node needs to have the international authentication identifier and also needs to be located in a specific country, so that the endorsement node may be further screened, of course, the target policy may be further defined, or a plurality of conditions may be set to be in a relation, so long as the endorsement node can meet one of the conditions, and the target policy may be freely set according to a specific situation, which is not described herein.
After the target policy is generated, encrypting the transaction information based on the target policy and the information related to the public parameters together to form encrypted transaction information, for example, after the encryption of the public parameters, adding the target policy into the transaction information, which is equivalent to secondary encryption, when the endorsement node is successful in decryption, matching is required to be performed based on the target policy and the attribute set of the endorsement node, if the matching is successful, the transaction information can be endorsed, and if the matching is unsuccessful, the endorsement cannot be performed.
In one embodiment, the encrypted transaction information allows endorsement nodes that are able to decrypt it and meet the target policy to add consensus information.
In this embodiment, the encrypted transaction information allows the endorsement node capable of decrypting the transaction information and meeting the target policy to add the consensus information, and the target endorsement nodes all contain the preset attribute, so that the target policy generated based on the preset attribute can be met, and the target endorsement nodes all receive the public parameters sent by the submitting node and can decrypt the transaction information, so that the target endorsement node has authority to endorse the transaction information, and other endorsement nodes cannot decrypt the transaction information and do not meet the target policy, so that the endorsement cannot endorse the transaction information and cannot see the specific content of the transaction information, the transaction information is prevented from being leaked to unsafe endorsement nodes, the probability of the endorsement node leaking the transaction information is reduced, and the security of the transaction information is improved.
In one embodiment, the consensus information includes a signature packet and a hint that the verification failed;
the operation performed in the above-described step S14 corresponding to the identification information may be implemented as the following steps A1 to A4:
in step A1, receiving a signature data packet returned by an endorsement node aiming at transaction information and/or prompt information of verification failure;
in step A2, judging whether the transaction meets preset conditions according to the signature data packet and/or prompt information of verification failure;
in step A3, under the condition that the transaction meets the preset condition, recording the transaction in the blockchain;
in step A4, if the transaction does not meet the preset condition, a prompt message of transaction failure is sent to the party initiating the transaction corresponding to the transaction information.
In the embodiment, receiving a signature data packet returned by an endorsement node aiming at transaction information and/or prompt information of verification failure; specifically, it is assumed that 10 endorsement nodes endorse transaction information, wherein 7 endorsement nodes verify that the transaction corresponding to the transaction information is legal, so that the 7 endorsement nodes generate a signature data packet, and the other 3 endorsement nodes verify that the transaction corresponding to the transaction information is illegal, and the 3 endorsement nodes return prompt information of failure in verification. Judging whether the transaction meets preset conditions according to the signature data packet and/or prompt information of verification failure; assuming that the preset condition is that the transaction is legal when the ratio of the number of signature data packets to the total number of endorsement nodes is greater than or equal to 60%, in the above example, the ratio of the number of signature data packets to the total number of endorsement nodes is 70%, and thus the transaction meets the preset condition, the transaction is recorded in the blockchain; and under the condition that the transaction does not accord with the preset condition, sending prompt information of transaction failure to a transaction initiating party corresponding to the transaction information. It should be understood that the transaction referred to herein refers to a transaction corresponding to the transaction information described in the present application.
In one embodiment, the above step A2 may be implemented as steps B1-B4 as follows:
in the step B1, receiving a signature data packet returned by an endorsement node aiming at transaction information and/or prompt information of verification failure;
in step B2, determining the number of endorsement nodes that transmit the consensus information;
in step B3, judging whether the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio;
in step B4, when the ratio of the number of received signature data packets to the number of endorsement nodes transmitting the consensus information reaches a preset ratio, it is determined that the transaction meets a preset condition.
In the embodiment, receiving a signature data packet returned by an endorsement node aiming at transaction information and/or prompt information of verification failure; determining the number of endorsement nodes transmitting the consensus information; judging whether the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio or not; and under the condition that the ratio of the number of the received signature data packets to the number of the endorsement nodes sending the consensus information reaches a preset ratio, determining that the transaction meets the preset condition.
For example, assuming that the preset proportion is 60%, there are 10 endorsement nodes that send the consensus information, wherein 7 endorsement nodes verify that the transaction corresponding to the transaction information is legal, so that the 7 endorsement nodes want to locally send signature data packets, and the other 3 endorsement nodes verify that the transaction corresponding to the transaction information is illegal, and the 3 endorsement nodes return prompt information of verification failure. The ratio of the number of the received signature data packets to the number of the endorsement nodes transmitting the consensus information is 70%, and the preset ratio is reached, so that the transaction meets the preset condition.
In addition, it is understood that the signature data packet and/or the prompt information of verification failure in the present application refers to that the present application may only receive the signature data packet and not receive the prompt information of verification failure, or only receive the prompt information of verification failure and not receive the signature data packet, or receive both the signature data packet and the prompt information of verification failure. For example, 10 endorsement nodes send consensus information, and if the 10 endorsement nodes pass the verification result of the transaction information, only 10 signature data packets are locally received, and no prompt information of verification failure exists. If the verification result of 7 nodes on the transaction information is passed and the verification result of 3 endorsement nodes on the transaction information is failed in the 10 nodes, 7 signature data packets and 3 prompt messages of verification failure are received locally. If the 10 endorsement nodes fail to verify the transaction information, only 10 prompt messages with failed verification are received locally, and no signature data packet exists.
The beneficial effects of this embodiment lie in: under the condition that the ratio of the number of the received signature data packets to the number of the endorsement nodes sending the consensus information reaches a preset ratio, the transaction is determined to accord with the preset condition, so that all endorsement nodes participating in the consensus are not required to return the signature data packets, the transaction is also determined to accord with the preset condition, malicious endorsement of unsafe endorsement nodes still exist in the endorsement nodes participating in the consensus, and the accuracy of transaction information verification is improved.
In one embodiment, the above step A2 may be implemented as the following steps C1-C3:
in step C1, receiving a signature data packet returned by an endorsement node for transaction information and/or prompt information of verification failure;
in step C2, judging whether the number of the received signature data packets reaches a preset number;
in step C3, when the number of received signature data packets reaches the preset number, it is determined that the transaction meets the preset condition.
For example, assuming that the preset number is 3, after receiving the signature data packet returned by the endorsement node for the transaction information and/or the prompt information of verification failure, counting whether the number in the signature data packet is greater than or equal to 3, if so, determining that the transaction meets the preset condition, and if not, if so, determining that the transaction meets the preset condition.
The embodiment of the application also provides an electronic device, as shown in fig. 3, including:
the identification module 31 is used for carrying out identification operation on the target endorsement node in the blockchain;
the processing module 32 is configured to perform preset processing on the transaction information when the transaction information is received, where the preset processing is used to enable the transaction information to be added with consensus information by the target endorsement node;
a broadcasting module 33 for broadcasting the encrypted transaction information in the blockchain;
and the execution module 34 is used for executing the operation corresponding to the consensus information under the condition that the consensus information returned by the target endorsement node for the transaction information is received.
In one embodiment, as shown in FIG. 4, the identification module 31 includes:
the sending sub-module 41 is configured to send the preset attribute and the preset type of common parameter to a submitting node in the blockchain, where the submitting node is configured to obtain an endorsement node with the preset attribute in the blockchain as a target endorsement node, and send the preset type of common parameter to the target endorsement node in the blockchain.
In one embodiment, as shown in FIG. 5, the processing module 32 includes:
a generating sub-module 51, configured to generate a target policy based on preset attributes;
the encryption sub-module 52 is configured to encrypt the transaction information based on the target policy and the information related to the public parameter together to form encrypted transaction information.
In one embodiment, the encrypted transaction information allows endorsement nodes that are able to decrypt it and meet the target policy to add consensus information.
In one embodiment, the consensus information includes a signature packet and a hint that the verification failed;
an execution module comprising:
the receiving sub-module is used for receiving signature data packets returned by the endorsement node aiming at the transaction information and/or prompt information of verification failure;
the judging sub-module is used for judging whether the transaction accords with preset conditions according to the signature data packet and/or prompt information of verification failure;
the recording sub-module is used for recording the transaction in the blockchain under the condition that the transaction meets the preset condition;
and the prompting sub-module is used for sending prompting information of transaction failure to the transaction initiating party corresponding to the transaction information under the condition that the transaction does not accord with the preset condition.
In one embodiment, the judging submodule is configured to:
receiving signature data packets returned by an endorsement node aiming at transaction information and/or prompt information of verification failure;
determining the number of endorsement nodes transmitting the consensus information;
judging whether the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio or not;
and under the condition that the ratio of the number of the received signature data packets to the number of the endorsement nodes sending the consensus information reaches a preset ratio, determining that the transaction meets the preset condition.
In one embodiment, the judging submodule is configured to:
receiving signature data packets returned by an endorsement node aiming at transaction information and/or prompt information of verification failure;
judging whether the number of the received signature data packets reaches a preset number or not;
and under the condition that the number of the received signature data packets reaches the preset number, determining that the transaction meets the preset condition.
The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application, the scope of which is defined by the claims. Various modifications and equivalent arrangements may be made to the present application by those skilled in the art, which modifications and equivalents are also considered to be within the scope of the present application.

Claims (8)

1. A transaction information verification method, comprising:
performing identification operation on a target endorsement node in the block chain;
under the condition that transaction information is received, carrying out preset processing on the transaction information, wherein the preset processing is used for enabling the transaction information to be added with consensus information by the target endorsement node, and the consensus information comprises a signature data packet and prompt information of verification failure;
broadcasting the transaction information after the preset processing in a block chain;
and executing the operation corresponding to the consensus information under the condition that the consensus information returned by the target endorsement node for the transaction information is received, wherein the operation comprises the following steps:
receiving a signature data packet and/or prompt information of verification failure returned by an endorsement node aiming at the transaction information, and judging whether the transaction meets preset conditions according to the signature data packet and/or the prompt information of verification failure, wherein the method comprises the following steps: receiving signature data packets returned by an endorsement node aiming at the transaction information and/or prompt information of verification failure; determining the number of endorsement nodes transmitting the consensus information; judging whether the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio or not; under the condition that the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio, determining that the transaction meets a preset condition;
recording the transaction in a blockchain under the condition that the transaction meets the preset condition; and
and under the condition that the transaction does not accord with the preset condition, sending prompt information of transaction failure to a transaction initiating party corresponding to the transaction information.
2. The method of claim 1, the identifying a target endorsement node in a blockchain, comprising:
and sending preset attributes and preset types of public parameters to a submitting node in a blockchain, wherein the submitting node is used for acquiring an endorsement node with the preset attributes in the blockchain as a target endorsement node and sending the preset types of public parameters to the target endorsement node in the blockchain.
3. The method of claim 2, wherein the pre-setting the transaction information comprises:
generating a target strategy based on the preset attribute;
encrypting the transaction information based on the target policy and the information related to the public parameter together to form encrypted transaction information.
4. A method as claimed in claim 3, wherein the encrypted transaction information allows for the addition of consensus information to endorsement nodes that are able to decrypt and meet a target policy.
5. The method of claim 1, wherein the determining whether the transaction meets the preset condition according to the signature data packet and/or the prompt message of verification failure comprises:
receiving signature data packets returned by an endorsement node aiming at the transaction information and/or prompt information of verification failure;
judging whether the number of the received signature data packets reaches a preset number or not;
and under the condition that the number of the received signature data packets reaches the preset number, determining that the transaction meets the preset condition.
6. An electronic device, comprising:
the identification module is used for carrying out identification operation on the target endorsement node in the blockchain;
the processing module is used for carrying out preset processing on the transaction information under the condition of receiving the transaction information, wherein the preset processing is used for enabling the transaction information to be added with consensus information by the target endorsement node, and the consensus information comprises a signature data packet and prompt information of verification failure;
the broadcasting module is used for broadcasting the encrypted transaction information in the blockchain;
the execution module is used for executing the operation corresponding to the consensus information under the condition that the consensus information returned by the target endorsement node for the transaction information is received, and comprises the following steps:
receiving a signature data packet and/or prompt information of verification failure returned by an endorsement node aiming at the transaction information, and judging whether the transaction meets preset conditions according to the signature data packet and/or the prompt information of verification failure, wherein the method comprises the following steps: receiving signature data packets returned by an endorsement node aiming at the transaction information and/or prompt information of verification failure; determining the number of endorsement nodes transmitting the consensus information; judging whether the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio or not; under the condition that the ratio of the number of the received signature data packets to the number of endorsement nodes sending the consensus information reaches a preset ratio, determining that the transaction meets a preset condition;
recording the transaction in a blockchain under the condition that the transaction meets the preset condition; and
and under the condition that the transaction does not accord with the preset condition, sending prompt information of transaction failure to a transaction initiating party corresponding to the transaction information.
7. The electronic device of claim 6, the identification module comprising:
the system comprises a sending sub-module, a target endorsement node and a target endorsement node, wherein the sending sub-module is used for sending preset attributes and preset types of public parameters to a submitting node in a blockchain, and the submitting node is used for acquiring the endorsement node with the preset attributes in the blockchain as the target endorsement node and sending the preset types of public parameters to the target endorsement node in the blockchain.
8. The electronic device of claim 7, the processing module comprising:
the generation sub-module is used for generating a target strategy based on the preset attribute;
and the encryption sub-module is used for encrypting the transaction information based on the target strategy and the information related to the public parameter together so as to form encrypted transaction information.
CN202010183431.1A 2020-03-16 2020-03-16 Transaction information verification method and electronic equipment Active CN111401898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010183431.1A CN111401898B (en) 2020-03-16 2020-03-16 Transaction information verification method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010183431.1A CN111401898B (en) 2020-03-16 2020-03-16 Transaction information verification method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111401898A CN111401898A (en) 2020-07-10
CN111401898B true CN111401898B (en) 2024-02-27

Family

ID=71431048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010183431.1A Active CN111401898B (en) 2020-03-16 2020-03-16 Transaction information verification method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111401898B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333160A (en) * 2020-10-23 2021-02-05 浪潮(北京)电子信息产业有限公司 Block chain transaction information processing method and system, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118765A (en) * 2018-09-04 2019-01-01 京东方科技集团股份有限公司 Break in traffic rules and regulations recording method and device based on block chain
CN109767212A (en) * 2018-10-11 2019-05-17 平安科技(深圳)有限公司 Assets exchanging method, system, terminal and storage medium based on block chain
CN110210238A (en) * 2019-05-31 2019-09-06 联想(北京)有限公司 A kind of data processing method, data processing equipment and computer system
CN110599069A (en) * 2019-09-29 2019-12-20 腾讯科技(深圳)有限公司 Application evaluation method and device based on block chain network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9886701B1 (en) * 2013-12-06 2018-02-06 Google Llc Endorsement abuse detection via social interactions
US11494344B2 (en) * 2018-03-06 2022-11-08 International Business Machines Corporation Customized endorsement logic for blockchain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118765A (en) * 2018-09-04 2019-01-01 京东方科技集团股份有限公司 Break in traffic rules and regulations recording method and device based on block chain
CN109767212A (en) * 2018-10-11 2019-05-17 平安科技(深圳)有限公司 Assets exchanging method, system, terminal and storage medium based on block chain
CN110210238A (en) * 2019-05-31 2019-09-06 联想(北京)有限公司 A kind of data processing method, data processing equipment and computer system
CN110599069A (en) * 2019-09-29 2019-12-20 腾讯科技(深圳)有限公司 Application evaluation method and device based on block chain network

Also Published As

Publication number Publication date
CN111401898A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN108876374B (en) Block chain network identity document authentication method and system
US7620824B2 (en) Data communicating apparatus, data communicating method, and program
CN112311735B (en) Credible authentication method, network equipment, system and storage medium
CN110914851A (en) Improving integrity of communications between blockchain networks and external data sources
CN111444273B (en) Data authorization method and device based on block chain
CN108768618B (en) IP soft core authorization method, device and medium based on block chain
CN110096894B (en) Data anonymous sharing system and method based on block chain
CN114139203B (en) Block chain-based heterogeneous identity alliance risk assessment system and method and terminal
CN110855624A (en) Safety verification method based on web interface and related equipment
US11637817B2 (en) Method and apparatus for effecting a data-based activity
US11533186B2 (en) Proprietor's identity confirmation system, terminal management server, and proprietor's identity confirmation method
CN114553480B (en) Cross-domain single sign-on method and device, electronic equipment and readable storage medium
CN111401898B (en) Transaction information verification method and electronic equipment
CN112261002B (en) Data interface docking method and device
TWI422206B (en) Tolerant key verification method
JP4604418B2 (en) Communication apparatus and communication method
US8782406B2 (en) Secure digital communications
CN111106929B (en) Hash-based approval method
US11729231B2 (en) Secure multi-party random bit generation
US11469905B2 (en) Device and method for processing public key of user in communication system that includes a plurality of nodes
CN113556365B (en) Authentication result data transmission system, method and device
CN112398820B (en) Data management method and device
CN116506120B (en) Key loading method, key system and readable storage medium
CN114844716B (en) Digital signature message processing method, device, equipment and computer medium
EP4210276A1 (en) Method and apparatus for generating certified user data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant