CN110706106B - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN110706106B
CN110706106B CN201910917897.7A CN201910917897A CN110706106B CN 110706106 B CN110706106 B CN 110706106B CN 201910917897 A CN201910917897 A CN 201910917897A CN 110706106 B CN110706106 B CN 110706106B
Authority
CN
China
Prior art keywords
endorsement
node
transaction
executed
modified
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
CN201910917897.7A
Other languages
Chinese (zh)
Other versions
CN110706106A (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 CN201910917897.7A priority Critical patent/CN110706106B/en
Publication of CN110706106A publication Critical patent/CN110706106A/en
Application granted granted Critical
Publication of CN110706106B publication Critical patent/CN110706106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The embodiment of the invention discloses an information processing method, which comprises the following steps: determining a first endorsement node corresponding to a transaction to be executed in a block chain network; generating a revised endorsement policy proposal based on the transaction to be executed, and submitting the proposal to a second endorsement node; and if a prompt message that the execution of the endorsement modification strategy proposal is successful is monitored, submitting a transaction proposal to be executed to the first endorsement node. The embodiment of the invention also provides equipment.

Description

Information processing method and equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an information processing method and device.
Background
With the rapid development of the blockchain technology, the application of the blockchain is more and more extensive, and the blockchain is not limited to bitcoin transactions and is applied to various fields such as finance, trade, credit investigation, internet of things, sharing economy and the like. In the prior art, the blockchain can be generally divided into a public chain (public chain) and a permitted chain (permitted chain), wherein the permitted chain can be further divided into a federation chain (consortium) and a private chain (private chain) according to whether the data maintainer is a single entity (entity). The enterprise-level block chain is applied with a strict admission permission mechanism and requires a strong privacy protection requirement in a mode of sharing an account book, and a federation chain such as a mainstream federation link basic framework open source project hyper account book (Hyperhedger Fabric) is provided with a member admission permission mechanism, a channel isolation mechanism, a data isolation storage mechanism and other mechanisms, and the federation chain has a certain privacy protection scheme, so that the application of the federation chain in an enterprise is more.
However, in the existing federation chain, for example, the data isolation storage mechanism only guarantees the isolation of data in the final storage position, and the multi-node transaction endorsement mechanism of the federation chain is executed according to an endorsement policy agreed at the time of intelligent contract deployment and established for the whole intelligent contract in the whole transaction simulation execution endorsement process. That is, the endorsement policy is not established according to the actual transaction, and therefore, during the transaction, it may cause the private data, such as transaction plaintext data, to be sent to a plurality of organization nodes specified by the smart contract, including the organization node in which the transaction participates and the organization node in which the transaction does not participate, to execute the simulated transaction endorsement. Therefore, although the organization node which does not participate in the transaction cannot store the transaction plaintext data finally due to the data isolation storage mechanism, the organization node can intercept the transaction plaintext data received in the process of simulating transaction endorsement, so that the risk that the privacy data is acquired by an illegal related party is high, potential safety hazards are caused, and the safety of an alliance chain is reduced.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present invention are expected to provide an information processing method and an information processing apparatus, so as to solve the potential safety hazard caused by low security of a federation chain in the prior art, reduce the risk of acquiring private data, and improve the security of the federation chain.
The technical scheme of the invention is realized as follows:
in a first aspect, an information processing method includes:
determining a first endorsement node corresponding to a transaction to be executed in a block chain network;
generating a modified endorsement policy proposal based on the transaction to be executed, and submitting the modified endorsement policy proposal to a second endorsement node; wherein the second endorsement node is at least two endorsement nodes in communication with the client node as specified by a preset endorsement policy in the intelligent contract, the second endorsement nodes comprising the first endorsement node, the modified endorsement policy proposal to instruct the second endorsement node to modify the endorsement policy of the second endorsement node to execute the transaction to be executed between the client node and the first endorsement node;
if a prompt message that the endorsement modification strategy proposal is successfully executed is monitored, submitting a transaction proposal to be executed to the first endorsement node; the prompt message is broadcasted after the second endorsement node receives a first block submitted by a sequencing node and accounts, the first block is generated by the sequencing node based on a modified endorsement policy transaction submitted by the client node, the modified endorsement policy transaction is obtained by the client node based on the modified endorsement policy proposal, and the to-be-executed transaction proposal is used for instructing the first endorsement node to simulate the execution of the to-be-executed transaction to realize a target transaction.
Optionally, after generating a modified endorsement policy proposal based on the transaction to be executed and submitting the modified endorsement policy proposal to a second endorsement node, if a prompt message indicating that the modified endorsement policy proposal is successfully executed is monitored, and before submitting the transaction proposal to be executed to the first endorsement node, the method further includes:
receiving a modified endorsement policy execution result submitted by the second endorsement node; wherein, the execution result of the endorsement modification policy is that the second endorsement node executes the endorsement modification policy proposal and performs endorsement generation;
packaging the execution result of the endorsement modification strategy to obtain an endorsement modification strategy transaction, and submitting the endorsement modification strategy transaction to the sequencing node; wherein the modified endorsement policy transaction is used for sorting through the sorting node and is recorded in a blockchain.
Optionally, after the prompt message that the modified endorsement policy proposal is successfully executed is monitored and the transaction proposal to be executed is submitted to the first endorsement node, the method further includes:
receiving a transaction execution result to be executed submitted by the first endorsement node; the transaction execution result to be executed is that the first endorsement node simulates and executes the transaction proposal to be executed and generates an endorsement;
packaging the transaction execution result to be executed to obtain a target transaction, and submitting the target transaction to the sequencing node; wherein the target transaction is used for sorting through the sorting node and is recorded in the blockchain.
Optionally, the determining a first endorsement node corresponding to the transaction to be executed in the blockchain network includes:
detecting whether the transaction to be executed comprises private information;
and if the transaction to be executed comprises the privacy information, determining the first endorsement node corresponding to the transaction to be executed in the block chain network.
In a second aspect, an information processing method includes:
receiving a modified endorsement policy transaction submitted by a client node;
sorting the modified endorsement policy transactions and generating a first block;
submitting the first block to a second endorsement node; wherein the first block is to verify, account, and synchronize the modified endorsement policy transaction in the first block through the second endorsement node.
Optionally, after submitting the first block to the second endorsement node, the method further includes:
receiving a target transaction submitted by the client node; the target transaction is obtained by packaging a to-be-executed transaction execution result submitted by a first endorsement node through the client node, the to-be-executed transaction execution result is obtained by submitting a to-be-executed transaction proposal to the first endorsement node after receiving a prompt message for indicating that the second endorsement node passes verification of the modified endorsement policy transaction in the first block, and the first endorsement node performs simulated execution;
sequencing the target transactions and generating a second block;
submitting the second block to the second endorsement node; wherein the second block is for the second endorsement node to verify, account for, and synchronize the second block for the target transaction.
In a third aspect, an information processing method includes:
receiving a proposal of an endorsement modification strategy submitted by a client node;
and simulating to execute the proposal of the endorsement modification strategy to obtain the endorsement strategy after modification, namely executing the transaction to be executed between the client node and the first endorsement node.
Optionally, the simulating executes the proposal of the endorsement modification policy, and after the modified endorsement policy is obtained by executing a transaction to be executed between the client node and the first endorsement node, the method further includes:
determining the modified endorsement policy as a second simulation execution result of simulating the execution of the modified endorsement policy proposal;
generating a modified endorsement policy execution result based on the second simulation execution result and the endorsement signature of the second endorsement node;
and submitting the execution result of the modified endorsement policy to the client node.
Optionally, after submitting the result of executing the modified endorsement policy to the client node, the method further includes:
receiving a second block sent by the sequencing node; the second block is obtained by sequencing target transactions submitted by the client node through the sequencing node, the target transactions are generated by submitting transaction proposals to be executed to the first endorsement node after monitoring prompt messages broadcast by the second endorsement node through the client node, and receiving execution results of the transactions to be executed, which are submitted by the first endorsement node and are obtained based on the transaction proposals to be executed, the prompt messages are generated after verification of modified endorsement policy transactions in the first block sent by the sequencing node through the second endorsement node;
if the target transaction in the second block meets the modified endorsement policy, recording the target transaction into an account book of the second endorsement node;
deleting the modified endorsement policy in the second endorsement node;
and acquiring a preset endorsement policy in the intelligent contract, and setting the preset endorsement policy as the endorsement policy of the second endorsement node.
In a fourth aspect, an electronic device, the electronic device comprising: a processor, a memory, and a communication bus, wherein:
the memory to store executable instructions;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the information processing program stored in the memory, and implement the information processing method according to any one of the above.
The embodiment of the invention provides an information processing method and equipment, wherein a first endorsement node corresponding to a transaction to be executed in a block quantity network is determined, a modified endorsement policy proposal is generated based on the transaction to be executed and submitted to a second endorsement node, the modified endorsement policy proposal submitted by a client node is received, the modified endorsement policy proposal is simulated to be executed, a modified endorsement policy is obtained, the modified endorsement policy is executed between the client node and the first endorsement node, the modified endorsement policy transaction submitted by the client node is received, the modified endorsement policy transaction is sequenced and generated into a first block, the first block is submitted to the second endorsement node, and if a prompt message that the modified endorsement policy proposal is successfully executed is monitored, the transaction proposal to be executed is submitted to the first endorsement node. Therefore, before the client node carries out the transaction to be executed, the first endorsement node carrying out the transaction to be executed is determined, then the second endorsement node which is appointed in the intelligent contract and communicated with the client node is informed to modify the endorsement policy to only carry out the transaction with the first endorsement node, so that the subsequent transaction to be executed can be carried out normally, the transaction to be executed is ensured to be only executed between the client node and the first endorsement node, the potential safety hazard caused by lower safety of the alliance chain in the prior art is solved, the risk of acquiring private data is reduced, and the safety of the alliance chain is improved.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart of another information processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another information processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a further information processing method according to an embodiment of the present invention;
fig. 5 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a client node according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides an information processing method, which is applied to a client node in a blockchain network and is shown in fig. 1, and the method includes the following steps:
step 101, determining a first endorsement node corresponding to a transaction to be executed in a block chain network.
In the embodiment of the invention, the transaction in the transaction to be executed is not a financial transaction, but an interactive operation carried out by realizing a certain operation in the blockchain network can influence the ledger in the blockchain. The first endorsement node can be specified by the user in the client node when the client node carries out the transaction to be executed, or can be determined according to the transaction information in the transaction to be executed. A node to which clients or applications representing entities operated by end users are connected is referred to as a client node, which may be an accounting node or a sequencing service node (referred to as a sequencing node for short), through which communications with the blockchain network are effected. The accounting node is responsible for verifying the transaction in the slave sequencing node block and maintaining the state data and the copy of the ledger, namely accounting. The node that performs the transaction and endorses the result is called the endorsement node. It should be noted that the endorsement node is dynamic, and is the endorsement node only when the client node initiates a transaction endorsement request to a certain node, and is the accounting node at other times. Some nodes can be an endorsement node and a billing node at the same time or only the billing node.
And 102, generating a modified endorsement policy proposal based on the transaction to be executed, and submitting the modified endorsement policy proposal to a second endorsement node.
The second endorsement node comprises a first endorsement node, and the modified endorsement policy proposal is used for instructing the second endorsement node to modify the endorsement policy of the second endorsement node to execute the transaction to be executed between the client node and the first endorsement node.
In the embodiment of the invention, since the transaction object of the transaction to be executed aims at part of endorsement nodes in the second endorsement nodes, namely the first endorsement nodes, the client node generates a modified endorsement policy proposal for dynamically modifying the endorsement policy for the transaction to be executed, and the modified endorsement policy proposal can be an endorsement request. The second endorsement nodes are all endorsement nodes which are specified by the preset endorsement strategy of the intelligent contract and are communicated with the client-side node, and the second endorsement nodes comprise at least two endorsement nodes.
And 103, if a prompt message of successfully executing the modified endorsement policy proposal is monitored, submitting a transaction proposal to be executed to the first endorsement node.
The prompt message is broadcasted after the second endorsement node receives and accounts a first block submitted by the sequencing node, the first block is generated by the sequencing node based on the modified endorsement policy transaction submitted by the client node, the modified endorsement policy transaction is obtained by the client node based on a modified endorsement policy proposal, and the to-be-executed transaction proposal is used for indicating the first endorsement node to simulate execution of the to-be-executed transaction to realize target transaction.
In the embodiment of the invention, the client node monitors by receiving the broadcast message to realize the monitoring of the prompt message.
The embodiment of the invention provides an information processing method, which comprises the steps of determining a first endorsement node corresponding to a transaction to be executed in a block quantity network, generating a modified endorsement policy proposal based on the transaction to be executed, submitting the modified endorsement policy proposal to a second endorsement node, and submitting the transaction proposal to be executed to the first endorsement node if a prompt message for successfully executing the modified endorsement policy proposal is monitored. Therefore, before the client node carries out the transaction to be executed, the first endorsement node carrying out the transaction to be executed is determined, then the second endorsement node which is appointed in the intelligent contract and communicated with the client node is informed to modify the endorsement policy to only carry out the transaction with the first endorsement node, so that the subsequent transaction to be executed can be carried out normally, the transaction to be executed is ensured to be only executed between the client node and the first endorsement node, the potential safety hazard caused by lower safety of the alliance chain in the prior art is solved, the risk of acquiring private data is reduced, and the safety of the alliance chain is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides an information processing method, which is applied to a sorting node in a blockchain network and is shown in fig. 2, where the method includes the following steps:
step 201, receiving the transaction of the modified endorsement policy submitted by the client node.
In an embodiment of the invention, the modified endorsement policy transaction comprises a second endorsement node simulating a second simulation execution result of the modified endorsement policy proposal, and the endorsement node endorses the second simulation execution result. After all the second simulation execution results and endorsement signatures sent by the client node to the second endorsement node, modified endorsement policy transactions are generated according to the received endorsement signatures and can be submitted to the sequencing node in a broadcast mode. The process of the client node generating the transaction is as follows: and packaging the transaction proposal, proposal response and endorsement signature to obtain the transaction when confirming that the received simulation execution results of all endorsement nodes meet the preset requirement partially or completely.
Step 202, the modified endorsement policy transactions are sorted and a first block is generated.
In the embodiment of the present invention, the ordering node may order the modified endorsement policy transactions according to the receiving order of the transactions on each channel. Note that the sequencing node does not read the contents of the transaction.
Step 203, submit the first block to the second endorsement node.
Wherein the first block is configured to verify, account for, and synchronize the modified endorsement policy transactions in the first block via the second endorsement node.
In this embodiment of the present invention, the sequencing node may submit the first block to the second endorsement node in a broadcast manner, the second endorsement node verifies the validity of the transaction in the first block after receiving the first block, and submits the transaction to the account book of the second endorsement node for recording, and after the second endorsement node verifies the validity of the transaction in the first block and performs accounting, the second endorsement node updates the first block to the local block chain of the second endorsement node.
The embodiment of the invention provides an information processing method which comprises the steps of receiving a modification endorsement strategy transaction submitted by a client node, sequencing the modification endorsement strategy transaction, generating a first block, and submitting the first block to a second endorsement node. Therefore, before the client node conducts the transaction to be executed, the first endorsement node conducting the transaction to be executed is determined, and then the second endorsement node which is specified in the intelligent contract and communicated with the client node is informed to modify the endorsement policy to conduct the transaction only with the first endorsement node, so that the follow-up transaction to be executed can be guaranteed to be conducted normally, the transaction to be executed is guaranteed to be conducted only between the client node and the first endorsement node, the potential safety hazard caused by low safety of the alliance chain in the prior art is solved, the risk that private data are obtained is reduced, and the safety of the alliance chain is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides an information processing method, as shown in fig. 3, where the method is applied to a second endorsement node in a block chain network, and the method includes the following steps:
step 301, receiving a modified endorsement policy proposal submitted by the client node.
In an embodiment of the invention, the modified endorsement policy proposal is used to instruct the second endorsement node to modify the endorsement policy.
Step 302, simulating to execute the modified endorsement policy proposal, wherein the obtained modified endorsement policy is to execute the transaction to be executed between the client node and the first endorsement node.
In the embodiment of the invention, the second endorsement node simulates and executes the proposal of the endorsement modification strategy, modifies the endorsement strategy in the second endorsement node, and executes the corresponding endorsement strategy content between the client node and the first endorsement node for the transaction to be executed. Therefore, the transaction to be executed can be normally carried out when the subsequent client node sends the transaction proposal to be executed to the first endorsement node only.
The embodiment of the invention provides an information processing method, which is used for receiving a revised endorsement policy proposal submitted by a client node, simulating and executing the revised endorsement policy proposal to obtain a revised endorsement policy, and executing a transaction to be executed between the client node and a first endorsement node. Therefore, before the client node conducts the transaction to be executed, the first endorsement node conducting the transaction to be executed is determined, and then the second endorsement node which is specified in the intelligent contract and communicated with the client node is informed to modify the endorsement policy to conduct the transaction only with the first endorsement node, so that the follow-up transaction to be executed can be guaranteed to be conducted normally, the transaction to be executed is guaranteed to be conducted only between the client node and the first endorsement node, the potential safety hazard caused by low safety of the alliance chain in the prior art is solved, the risk that private data are obtained is reduced, and the safety of the alliance chain is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides an information processing method, which is applied to an electronic device and shown in fig. 4, and includes the following steps:
step 401, the client node determines a first endorsement node corresponding to a transaction to be executed in the block chain network.
In the embodiment of the present invention, the client node, the sorting node, and the second endorsement node in the block chain network may correspond to the same electronic device or may correspond to different electronic devices. The transaction to be executed may or may not include private information.
In other embodiments of the present invention, step 401 may be implemented by the following steps:
step a, a client node detects whether a transaction to be executed comprises privacy information.
And b, if the transaction to be executed comprises the privacy information, the client node determines a first endorsement node corresponding to the transaction to be executed in the block chain network.
Step 402, the client node generates a modified endorsement policy proposal based on the transaction to be executed, and submits the proposal to a second endorsement node.
The second endorsement node comprises a first endorsement node, and the modified endorsement policy proposal is used for indicating the second endorsement node to modify the endorsement policy of the second endorsement node to execute the transaction to be executed between the client node and the first endorsement node.
And step 403, the second endorsement node receives the modified endorsement policy proposal submitted by the client node.
And step 404, the second endorsement node simulates and executes the proposal of the modified endorsement policy, and the obtained modified endorsement policy is to execute the transaction to be executed between the client node and the first endorsement node.
Step 405, the second endorsement node determines that the modified endorsement policy is a second simulation execution result of the simulation execution of the modified endorsement policy proposal.
And 406, the second endorsement node generates a modified endorsement policy execution result based on the second simulation execution result and the endorsement signature of the second endorsement node.
And step 407, the second endorsement node submits the execution result of the modified endorsement policy to the client node.
And step 408, the client node receives the modified endorsement policy execution result submitted by the second endorsement node.
And the modified endorsement policy execution result is that the second endorsement node executes the modified endorsement policy proposal and performs endorsement generation.
And 409, packaging the execution result of the endorsement modification strategy by the second endorsement node to obtain a modified endorsement strategy transaction, and submitting the modified endorsement strategy transaction to the sequencing node.
And the modified endorsement policy transaction is used for sorting through the sorting nodes and is recorded in the block chain.
Step 410, the sequencing node receives the modified endorsement policy transaction submitted by the client node.
Step 411, the sorting node sorts the modified endorsement policy transactions and generates a first block.
Step 412, the sort node submits the first block to the second endorsement node.
The first block is used for verifying and accounting the modified endorsement policy transaction in the first block through the second endorsement node and synchronizing the first block.
In step 413, the second endorsement node receives the first block sent by the sorting node.
The first block is generated by sequencing modification endorsement strategy transactions submitted by the client node through a sequencing node, and the modification endorsement strategy transactions are obtained by packaging the execution results of the modification endorsement strategy through the client node.
Step 414, the second endorsement node validates the modified endorsement policy transaction based on the first block.
Step 415, if the modified endorsement policy transaction is verified, the second endorsement node generates a prompt message indicating that the modified endorsement policy transaction is successfully executed, and accounts the first block in an account book of the second endorsement node and synchronizes the first block.
And step 416, the second endorsement node broadcasts a prompt message.
Step 417, if a prompt message that the endorsement policy modification proposal is successfully executed is monitored, the client node submits the pending transaction proposal to the first endorsement node.
The prompt message is broadcasted after the second endorsement node receives and accounts a first block submitted by the sequencing node, the first block is generated by the sequencing node based on the modified endorsement policy transaction submitted by the client node, the modified endorsement policy transaction is obtained by the client node based on a modified endorsement policy proposal, and the to-be-executed transaction proposal is used for indicating the first endorsement node to simulate execution of the to-be-executed transaction to realize target transaction.
And 418, the first endorsement node receives the transaction proposal to be executed sent by the client node, and simulates and executes the transaction proposal to be executed and endorses the transaction proposal to be executed to obtain a transaction execution result to be executed.
Step 419, the client node receives the transaction execution result to be executed submitted by the first endorsement node.
And the transaction execution result to be executed is that the first endorsement node simulates and executes the transaction proposal to be executed and generates the endorsement.
And step 420, the client node packs the transaction execution result to be executed to obtain a target transaction, and submits the target transaction to the sequencing node.
The target transaction is used for being sorted through the sorting node and recorded in the blockchain.
Step 421, the sequencing node receives the target transaction submitted by the client node.
The target transaction is obtained by packaging a to-be-executed transaction execution result submitted by the first endorsement node through the client node, the to-be-executed transaction execution result is obtained by submitting a to-be-executed transaction proposal to the first endorsement node after receiving a prompt message for indicating that the second endorsement node passes verification of the modified endorsement policy transaction in the first block through the client node, and the first endorsement node performs simulated execution.
At step 422, the sorting node sorts the target transactions and generates a second block.
Step 423, the sorting node submits the second block to the second endorsement node.
The second block is used for verifying, accounting and synchronizing the target transaction by the second endorsement node.
At step 424, the second endorsement node receives the second block sent by the sorting node.
The second block is obtained by sequencing target transactions submitted by the client nodes through the sequencing nodes, the target transactions are generated by monitoring prompt messages broadcast by the second endorsement nodes through the client nodes, submitting transaction proposals to be executed to the first endorsement nodes and receiving transaction execution results to be executed, submitted by the first endorsement nodes and obtained based on the transaction proposals to be executed, and the prompt messages are generated by verifying modified endorsement strategy transactions in the first block sent by the sequencing nodes through the second endorsement nodes.
Step 425, if the target transaction in the second block meets the modified endorsement policy, the second endorsement node records the target transaction in the ledger of the second endorsement node.
Step 426, the second endorsement node deletes the modified endorsement policy in the second endorsement node.
And 427, the second endorsement node acquires the preset endorsement policy in the intelligent contract and sets the preset endorsement policy as the endorsement policy of the second endorsement node.
Based on the foregoing embodiments, an application scenario is provided in an embodiment of the present invention, and as shown in fig. 5, the application scenario includes a client, a node 1, a node 2, a node 3, and a sequencing node, where the client represents a client node, and the node 1, the node 2, and the node 3 correspond to a second endorsement node in this application. The client side has a transaction to be executed at present, determines that the transaction to be executed contains private information, and determines that only the node 2 and the node 3 are transaction objects related to the transaction to be executed; the client generates a request for dynamically modifying the endorsement strategy for the transaction to be executed, namely the proposal of the endorsement strategy after modification in the application; (1) the client sends a request for dynamically modifying the endorsement policy to the node 1, the node 2 and the node 3; the node 1, the node 2 and the node 3 respectively simulate and execute the request of dynamically modifying the endorsement strategy to obtain respective simulation results, and endorse the respective simulation results to obtain endorsement results, (2) and respectively feed back the corresponding endorsement results to the client; after receiving endorsement results sent by the node 1, the node 2 and the node 3, the client packs all endorsement results to obtain modified endorsement policy transaction, (3) submits the modified endorsement policy transaction to a sequencing node; sequencing the transaction of the modified endorsement strategy by the sequencing node to generate a block; (4) submitting the block to a node 1, a node 2 and a node 3 for modification of endorsement policy transaction accounting; after the node 1, the node 2 and the node 3 carry out successful bookkeeping of the modified endorsement policy transaction, a prompt message for indicating the successful bookkeeping of the modified endorsement policy transaction is broadcasted; after the client monitors the prompt information, generating a to-be-executed transaction proposal from plaintext data of the real transaction, (5) sending the to-be-executed transaction proposal to the node 2 and the node 3 only in an endorsement request mode; the nodes 2 and 3 carry out transaction endorsement on a transaction proposal to be executed to obtain a transaction endorsement result; (6) and submitting the transaction endorsement result to the client; the client packs the real transaction content and the transaction endorsement result of the transaction to be executed to obtain a target transaction, (7) the target transaction is submitted to a sequencing node; sequencing target transactions by a sequencing node to generate blocks, (8) submitting the blocks to nodes 1, 2 and 3, wherein a data storage isolation (Collection) mechanism can ensure that the blocks received by the node 1 do not contain private data, and the nodes 1, 2 and 3 verify the target transactions which meet the modified endorsement strategy that only the nodes 2 and 3 need to perform transaction endorsement, so that the target transactions are accepted and submitted to an account book; after the target transaction is submitted to the account book, the nodes 1, 2 and 3 recover the endorsement policy to be the preset endorsement policy in the intelligent contract. The arrows in fig. 5 indicate the data flow direction, and (1) (2) (3) (4) (5) (6) (7) (8) in fig. 5 correspond to the above (1) (2) (3) (4) (5) (6) (7) (8) one-to-one.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
The embodiment of the invention provides an information processing method, which comprises the steps of determining a first endorsement node corresponding to a transaction to be executed in a block quantity network, generating a modified endorsement policy proposal based on the transaction to be executed, submitting the modified endorsement policy proposal to a second endorsement node, receiving the modified endorsement policy proposal submitted by a client node, simulating and executing the modified endorsement policy proposal to obtain a modified endorsement policy, executing the transaction to be executed between the client node and the first endorsement node, receiving the modified endorsement policy transaction submitted by the client node, sequencing the modified endorsement policy transaction, generating a first block, submitting the first block to the second endorsement node, and submitting the transaction proposal to be executed to the first endorsement node if a prompt message that the modified endorsement policy proposal is executed successfully is monitored. Therefore, before the client node carries out the transaction to be executed, the first endorsement node carrying out the transaction to be executed is determined, then the second endorsement node which is appointed in the intelligent contract and communicated with the client node is informed to modify the endorsement policy to only carry out the transaction with the first endorsement node, so that the subsequent transaction to be executed can be carried out normally, the transaction to be executed is ensured to be only executed between the client node and the first endorsement node, the potential safety hazard caused by lower safety of the alliance chain in the prior art is solved, the risk of acquiring private data is reduced, and the safety of the alliance chain is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides a client node of a blockchain network, where the client node may be applied in the information processing method provided in the embodiments corresponding to fig. 1 and 4, and as shown in fig. 6, the client node 5 may include: a processor 51, a memory 52, and a communication bus 53, wherein:
the communication bus 53 is used for realizing communication connection between the processor 51 and the memory 52;
the processor 51 is configured to execute the information processing program stored in the memory 52 to implement the following steps:
determining a first endorsement node corresponding to a transaction to be executed in a block chain network;
generating a modified endorsement policy proposal based on the transaction to be executed, and submitting the modified endorsement policy proposal to a second endorsement node; the second endorsement node comprises a first endorsement node, and the modified endorsement policy proposal is used for indicating the second endorsement node to modify the endorsement policy of the second endorsement node to be executed between the client node and the first endorsement node for the transaction to be executed;
if a prompt message of successfully executing the modified endorsement policy proposal is monitored, submitting a transaction proposal to be executed to a first endorsement node; the prompt message is broadcast after the second endorsement node receives the first block submitted by the sequencing node and accounts, the first block is generated by the sequencing node based on the modified endorsement policy transaction submitted by the client node, the modified endorsement policy transaction is obtained by the client node based on the modified endorsement policy proposal, and the to-be-executed transaction proposal is used for indicating the first endorsement node to simulate and execute the to-be-executed transaction to realize the target transaction.
In other embodiments of the present invention, after generating the modified endorsement policy proposal based on the transaction to be executed and submitting the modified endorsement policy proposal to the second endorsement node, if a prompt message indicating that the modified endorsement policy proposal is successfully executed is monitored, and before submitting the transaction proposal to be executed to the first endorsement node, the processor is further configured to execute the following steps:
receiving a modified endorsement policy execution result submitted by a second endorsement node; the modified endorsement policy execution result is that the second endorsement node executes the modified endorsement policy proposal and performs endorsement generation;
packaging the execution result of the endorsement modification strategy to obtain an endorsement modification strategy transaction, and submitting the endorsement modification strategy transaction to a sequencing node; and the modified endorsement policy transaction is used for sorting through the sorting nodes and is recorded in the block chain.
In another embodiment of the present invention, if a prompt message indicating that the endorsement policy revision is successful in execution is monitored, and after the transaction proposal to be executed is submitted to the first endorsement node, the processor is further configured to execute the following steps:
receiving a transaction execution result to be executed submitted by a first endorsement node; the transaction execution result to be executed is that the first endorsement node simulates and executes a transaction proposal to be executed and generates an endorsement;
packing a transaction execution result to be executed to obtain a target transaction, and submitting the target transaction to a sequencing node; the target transaction is used for sorting through the sorting node and is recorded in the block chain.
In other embodiments of the present invention, the processor is configured to perform the steps of:
detecting whether a transaction to be executed comprises private information;
and if the transaction to be executed comprises the privacy information, determining a first endorsement node corresponding to the transaction to be executed in the block chain network.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to an implementation process in the information processing method provided in the embodiments corresponding to fig. 1 and 4, and details are not described here again.
The embodiment of the invention provides a client node of a block chain network, which comprises a first endorsement node, a second endorsement node, a modified endorsement policy proposal and a simulation execution of the modified endorsement policy proposal, wherein the first endorsement node corresponds to a transaction to be executed in a block quantity network, the modified endorsement policy proposal is generated based on the transaction to be executed and submitted to the second endorsement node, the modified endorsement policy proposal submitted by the client node is received, the modified endorsement policy proposal is obtained and executed in a simulation mode, the modified endorsement policy proposal is executed between the client node and the first endorsement node, the modified endorsement policy transaction submitted by the client node is received, the modified endorsement policy transaction is sequenced, a first block is generated, the first block is submitted to the second endorsement node, and if a prompt message that the modified endorsement policy proposal is executed successfully is monitored, the transaction proposal to be executed is submitted to the first endorsement node. Therefore, before the client node carries out the transaction to be executed, the first endorsement node carrying out the transaction to be executed is determined, then the second endorsement node which is appointed in the intelligent contract and communicated with the client node is informed to modify the endorsement policy to only carry out the transaction with the first endorsement node, so that the subsequent transaction to be executed can be carried out normally, the transaction to be executed is ensured to be only executed between the client node and the first endorsement node, the potential safety hazard caused by lower safety of the alliance chain in the prior art is solved, the risk of acquiring private data is reduced, and the safety of the alliance chain is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides a sorting node of a blockchain network, where the sorting node may be applied to the information processing methods provided in the embodiments corresponding to fig. 2 and 4, and the sorting node may include: a processor, a memory, and a communication bus, wherein:
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the information processing program stored in the memory so as to realize the following steps:
receiving a modified endorsement policy transaction submitted by a client node;
sorting the modified endorsement policy transactions and generating a first block;
submitting the first block to a second endorsement node; wherein the first block is configured to verify, account for, and synchronize the modified endorsement policy transactions in the first block via the second endorsement node.
In other embodiments of the present invention, after the first block is submitted to the second endorsement node, the processor is further configured to perform the following steps:
receiving a target transaction submitted by a client node; the target transaction is obtained by packaging a to-be-executed transaction execution result submitted by the first endorsement node through the client node, the to-be-executed transaction execution result is obtained by submitting a to-be-executed transaction proposal to the first endorsement node after receiving a prompt message for indicating that the modified endorsement policy transaction in the first block is verified through the second endorsement node through the client node, and the first endorsement node performs simulation execution;
sequencing the target transactions and generating a second block;
submitting the second block to a second endorsement node; the second block is used for verifying and accounting the target transaction by the second endorsement node and synchronizing the second block.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to the implementation process in the information processing method provided in the embodiments corresponding to fig. 2 and 4, and details are not described here again.
The embodiment of the invention provides a sequencing node of a block chain network, which comprises a first endorsement node corresponding to a transaction to be executed in a block quantity network, a modified endorsement policy proposal generated based on the transaction to be executed and submitted to a second endorsement node, a modified endorsement policy proposal submitted by a client node and simulated execution of the modified endorsement policy proposal to obtain a modified endorsement policy, namely executing the transaction to be executed between the client node and the first endorsement node, receiving the modified endorsement policy transaction submitted by the client node, sequencing the modified endorsement policy transaction and generating a first block, submitting the first block to the second endorsement node, and submitting the transaction proposal to be executed to the first endorsement node if a prompt message that the modified endorsement policy proposal is successfully executed is monitored. Therefore, before the client node conducts the transaction to be executed, the first endorsement node conducting the transaction to be executed is determined, and then the second endorsement node which is specified in the intelligent contract and communicated with the client node is informed to modify the endorsement policy to conduct the transaction only with the first endorsement node, so that the follow-up transaction to be executed can be guaranteed to be conducted normally, the transaction to be executed is guaranteed to be conducted only between the client node and the first endorsement node, the potential safety hazard caused by low safety of the alliance chain in the prior art is solved, the risk that private data are obtained is reduced, and the safety of the alliance chain is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides a second endorsement node of a block chain network, where the sorting node may be applied in the information processing method provided in the embodiments corresponding to fig. 3 and 4, and the second endorsement node may include: a processor, a memory, and a communication bus, wherein:
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the information processing program stored in the memory so as to realize the following steps:
receiving a modification endorsement policy proposal submitted by a client node;
and simulating to execute the modified endorsement policy proposal to obtain the modified endorsement policy, namely executing the transaction to be executed between the client node and the first endorsement node.
In other embodiments of the present invention, after simulating to execute the modified endorsement policy proposal and obtaining the modified endorsement policy as the transaction to be executed between the client node and the first endorsement node, the processor is further configured to execute the following steps:
determining the modified endorsement policy as a second simulation execution result of the simulation execution of the modified endorsement policy proposal;
generating a modified endorsement policy execution result based on the second simulation execution result and the endorsement signature of the second endorsement node;
and submitting the execution result of the endorsement modification strategy to the client node.
In other embodiments of the present invention, after submitting the modified endorsement policy enforcement result to the client node, the processor is further configured to:
receiving a second block sent by the sequencing node; the second block is obtained by sequencing target transactions submitted by the client nodes through sequencing nodes, the target transactions are generated by monitoring prompt messages broadcast by the second endorsement nodes through the client nodes, submitting transaction proposals to be executed to the first endorsement nodes and receiving transaction execution results to be executed, submitted by the first endorsement nodes and obtained based on the transaction proposals to be executed, and the prompt messages are generated by verifying modified endorsement strategy transactions in the first block sent by the second endorsement nodes to the sequencing nodes;
if the target transaction in the second block meets the modified endorsement policy, recording the target transaction into an account book of the second endorsement node;
deleting the modified endorsement policy in the second endorsement node;
and acquiring a preset endorsement policy in the intelligent contract, and setting the preset endorsement policy as the endorsement policy of the second endorsement node.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to an implementation process in the information processing method provided in the embodiments corresponding to fig. 3 and 4, and details are not described here again.
The embodiment of the invention provides a sequencing node of a block chain network, which comprises a first endorsement node corresponding to a transaction to be executed in a block quantity network, a modified endorsement policy proposal generated based on the transaction to be executed and submitted to a second endorsement node, a modified endorsement policy proposal submitted by a client node and simulated execution of the modified endorsement policy proposal to obtain a modified endorsement policy, namely executing the transaction to be executed between the client node and the first endorsement node, receiving the modified endorsement policy transaction submitted by the client node, sequencing the modified endorsement policy transaction and generating a first block, submitting the first block to the second endorsement node, and submitting the transaction proposal to be executed to the first endorsement node if a prompt message that the modified endorsement policy proposal is successfully executed is monitored. Therefore, before the client node carries out the transaction to be executed, the first endorsement node carrying out the transaction to be executed is determined, then the second endorsement node which is appointed in the intelligent contract and communicated with the client node is informed to modify the endorsement policy to only carry out the transaction with the first endorsement node, so that the subsequent transaction to be executed can be carried out normally, the transaction to be executed is ensured to be only executed between the client node and the first endorsement node, the potential safety hazard caused by lower safety of the alliance chain in the prior art is solved, the risk of acquiring private data is reduced, and the safety of the alliance chain is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, which can be applied in the methods provided in the embodiments corresponding to fig. 1 and 4, and the computer-readable storage medium stores one or more programs, which are executable by one or more processors to implement the following steps:
determining a first endorsement node corresponding to a transaction to be executed in a block chain network;
generating a modified endorsement policy proposal based on the transaction to be executed, and submitting the modified endorsement policy proposal to a second endorsement node; the second endorsement node comprises a first endorsement node, and the modified endorsement policy proposal is used for indicating the second endorsement node to modify the endorsement policy of the second endorsement node to execute the transaction to be executed between the client node and the first endorsement node;
if a prompt message that the endorsement policy revision proposal is successfully executed is monitored, submitting a transaction proposal to be executed to a first endorsement node; the prompt message is broadcasted after the second endorsement node receives and accounts a first block submitted by the sequencing node, the first block is generated by the sequencing node based on the modified endorsement policy transaction submitted by the client node, the modified endorsement policy transaction is obtained by the client node based on a modified endorsement policy proposal, and the to-be-executed transaction proposal is used for indicating the first endorsement node to simulate execution of the to-be-executed transaction to realize target transaction.
In other embodiments of the present invention, after generating the modified endorsement policy proposal based on the transaction to be executed and submitting the modified endorsement policy proposal to the second endorsement node, if a prompt message indicating that the modified endorsement policy proposal is successfully executed is monitored, and before submitting the transaction proposal to be executed to the first endorsement node, the processor is further configured to execute the following steps:
receiving a modified endorsement policy execution result submitted by a second endorsement node; the modified endorsement policy execution result is that the second endorsement node executes the modified endorsement policy proposal and performs endorsement generation;
packaging the execution result of the endorsement modification strategy to obtain a modified endorsement strategy transaction, and submitting the modified endorsement strategy transaction to a sequencing node; and the modified endorsement policy transaction is used for sorting through the sorting nodes and is recorded in the block chain.
In another embodiment of the present invention, if a prompt message indicating that the endorsement policy revision is successful in execution is monitored, and after the transaction proposal to be executed is submitted to the first endorsement node, the processor is further configured to execute the following steps:
receiving a transaction execution result to be executed submitted by a first endorsement node; the transaction execution result to be executed is that the first endorsement node simulates and executes the transaction proposal to be executed and generates an endorsement;
packaging a transaction execution result to be executed to obtain a target transaction, and submitting the target transaction to a sequencing node; the target transaction is used for sorting through the sorting node and is recorded in the block chain.
In other embodiments of the present invention, the processor is configured to perform the steps of:
detecting whether a transaction to be executed comprises privacy information;
and if the transaction to be executed comprises the privacy information, determining a first endorsement node corresponding to the transaction to be executed in the block chain network.
It should be noted that, in the embodiment of the present invention, the one or more programs may be explained by the steps of the one or more processors, and refer to the implementation process in the information processing method provided in the embodiment corresponding to fig. 1 and 4, which is not described herein again.
Based on the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, which can be applied in the methods provided in the embodiments corresponding to fig. 2 and 4, and the computer-readable storage medium stores one or more programs, which are executable by one or more processors to implement the following steps:
receiving a modified endorsement policy transaction submitted by a client node;
sorting the modified endorsement policy transactions and generating a first block;
submitting the first block to a second endorsement node; the first block is used for verifying and accounting the modified endorsement policy transaction in the first block through the second endorsement node and synchronizing the first block.
In other embodiments of the present invention, after submitting the first block to the second endorsement node, the processor is further configured to:
receiving a target transaction submitted by a client node; the target transaction is obtained by packaging a to-be-executed transaction execution result submitted by the first endorsement node through the client node, the to-be-executed transaction execution result is obtained by submitting a to-be-executed transaction proposal to the first endorsement node after receiving a prompt message for indicating that the second endorsement node passes verification on the modified endorsement policy transaction in the first block through the client node, and the first endorsement node performs simulated execution;
sequencing the target transactions and generating a second block;
submitting the second block to a second endorsement node; the second block is used for verifying and accounting the target transaction by the second endorsement node and synchronizing the second block.
It should be noted that, in the embodiment of the present invention, the explanation of the steps of the one or more programs by the one or more processors may refer to the implementation process in the information processing method provided in the embodiment corresponding to fig. 2 and 4, and details are not described here again.
Based on the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, which can be applied in the methods provided in the embodiments corresponding to fig. 3 and 4, and the computer-readable storage medium stores one or more programs, which are executable by one or more processors to implement the following steps:
receiving a proposal of an endorsement modification strategy submitted by a client node;
and simulating to execute the endorsement modification strategy proposal, wherein the obtained endorsement strategy is a strategy for executing the transaction to be executed between the client node and the first endorsement node.
In other embodiments of the present invention, after simulating to execute the modified endorsement policy proposal and obtaining the modified endorsement policy as the transaction to be executed between the client node and the first endorsement node, the processor is further configured to execute the following steps:
determining the modified endorsement policy as a second simulation execution result of the simulation execution of the modified endorsement policy proposal;
generating a modified endorsement policy execution result based on the second simulation execution result and the endorsement signature of the second endorsement node;
and submitting the execution result of the endorsement modification strategy to the client node.
In other embodiments of the present invention, after submitting the modified endorsement policy enforcement result to the client node, the processor is further configured to:
receiving a second block sent by the sequencing node; the second block is obtained by sequencing target transactions submitted by the client node through the sequencing node, the target transactions are submitted to the first endorsement node after a prompt message broadcasted by the second endorsement node is monitored by the client node, a transaction proposal to be executed is received and generated based on a transaction execution result to be executed and submitted by the first endorsement node, and the prompt message is generated after the verification of the modified endorsement strategy transaction in the first block sent by the sequencing node by the second endorsement node is passed;
if the target transaction in the second block meets the modified endorsement policy, recording the target transaction into an account book of a second endorsement node;
deleting the modified endorsement policy in the second endorsement node;
and acquiring a preset endorsement policy in the intelligent contract, and setting the preset endorsement policy as the endorsement policy of the second endorsement node.
It should be noted that, in the embodiment of the present invention, the one or more programs may be explained by the steps of the one or more processors, and refer to the implementation process in the information processing method provided in the embodiment corresponding to fig. 3 and 4, which is not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (7)

1. An information processing method, the method comprising:
determining a first endorsement node corresponding to a transaction to be executed in a block chain network;
generating a modified endorsement policy proposal based on the transaction to be executed, and submitting the modified endorsement policy proposal to a second endorsement node; wherein the second endorsement node is at least two endorsement nodes in communication with the client node as specified by a preset endorsement policy in the intelligent contract, the second endorsement nodes comprising the first endorsement node, the modified endorsement policy proposal to instruct the second endorsement node to modify the endorsement policy of the second endorsement node to execute the transaction to be executed between the client node and the first endorsement node;
if a prompt message that the execution of the endorsement modification strategy proposal is successful is monitored, submitting a transaction proposal to be executed to the first endorsement node; the prompt message is broadcasted after the second endorsement node receives a first block submitted by a sequencing node and accounts, the first block is generated by the sequencing node based on a modified endorsement policy transaction submitted by the client node, the modified endorsement policy transaction is obtained by the client node based on the modified endorsement policy proposal, and the to-be-executed transaction proposal is used for instructing the first endorsement node to simulate the execution of the to-be-executed transaction to realize a target transaction.
2. The method of claim 1, wherein after generating a modified endorsement policy proposal based on the transaction to be executed and submitting the modified endorsement policy proposal to a second endorsement node, if a prompt message indicating that the modified endorsement policy proposal is successfully executed is monitored, and before submitting the transaction proposal to be executed to the first endorsement node, the method further comprises:
receiving a modified endorsement policy execution result submitted by the second endorsement node; wherein, the execution result of the endorsement modification policy is that the second endorsement node executes the endorsement modification policy proposal and performs endorsement generation;
packaging the execution result of the endorsement modification strategy to obtain an endorsement modification strategy transaction, and submitting the endorsement modification strategy transaction to the sequencing node; wherein the modified endorsement policy transaction is used for sorting by the sorting node and is recorded in a blockchain.
3. The method of claim 1, wherein after the submitting the transaction proposal to be executed to the first endorsement node if the prompting message indicating that the execution of the modified endorsement policy proposal is successful is monitored, the method further comprises:
receiving a transaction execution result to be executed submitted by the first endorsement node; the transaction execution result to be executed is that the first endorsement node simulates and executes the transaction proposal to be executed and generates an endorsement;
packaging the transaction execution result to be executed to obtain a target transaction, and submitting the target transaction to the sequencing node; wherein the target transaction is used for sorting through the sorting node and is recorded in the blockchain.
4. The method of any one of claims 1 to 3, wherein determining the first endorsement node in the blockchain network corresponding to the transaction to be performed comprises:
detecting whether the transaction to be executed comprises private information;
and if the transaction to be executed comprises the privacy information, determining the first endorsement node corresponding to the transaction to be executed in the block chain network.
5. An information processing method, the method comprising:
receiving a modified endorsement policy transaction submitted by a client node;
sorting the modified endorsement policy transactions and generating a first block;
submitting the first block to a second endorsement node; wherein the first block is to verify, account for, and synchronize the modified endorsement policy transaction in the first block through the second endorsement node;
receiving a target transaction submitted by the client node; the target transaction is obtained by packaging a to-be-executed transaction execution result submitted by a first endorsement node through the client node, the to-be-executed transaction execution result is obtained by submitting a to-be-executed transaction proposal to the first endorsement node after receiving a prompt message for indicating that the second endorsement node passes verification of the modified endorsement policy transaction in the first block, and the first endorsement node performs simulated execution;
sorting the target transactions and generating a second block;
submitting the second block to the second endorsement node; wherein the second block is for the second endorsement node to verify, account for, and synchronize the target transaction.
6. An information processing method, the method comprising:
receiving a modification endorsement policy proposal submitted by a client node;
simulating and executing the proposal of the endorsement modification strategy to obtain the endorsement strategy after modification, namely executing the transaction to be executed between the client node and the first endorsement node;
determining the modified endorsement policy as a second simulation execution result of simulating the execution of the modified endorsement policy proposal;
generating a modified endorsement policy execution result based on the second simulation execution result and an endorsement signature of a second endorsement node;
submitting the execution result of the endorsement modification strategy to the client node;
receiving a second block sent by the sequencing node; the second block is obtained by sequencing target transactions submitted by the client node through the sequencing node, the target transactions are generated by submitting transaction proposals to be executed to the first endorsement node after monitoring prompt messages broadcast by the second endorsement node through the client node, and receiving execution results of the transactions to be executed, which are submitted by the first endorsement node and are obtained based on the transaction proposals to be executed, the prompt messages are generated after verification of modified endorsement policy transactions in the first block sent by the sequencing node through the second endorsement node;
if the target transaction in the second block meets the modified endorsement policy, recording the target transaction into an account book of the second endorsement node;
deleting the modified endorsement policy in the second endorsement node;
and acquiring a preset endorsement policy in the intelligent contract, and setting the preset endorsement policy as the endorsement policy of the second endorsement node.
7. An electronic device, the electronic device comprising: a processor, a memory, and a communication bus, wherein:
the memory to store executable instructions;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor, which executes the information processing program stored in the memory, implements the information processing method according to any one of claims 1 to 6.
CN201910917897.7A 2019-09-26 2019-09-26 Information processing method and device Active CN110706106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910917897.7A CN110706106B (en) 2019-09-26 2019-09-26 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910917897.7A CN110706106B (en) 2019-09-26 2019-09-26 Information processing method and device

Publications (2)

Publication Number Publication Date
CN110706106A CN110706106A (en) 2020-01-17
CN110706106B true CN110706106B (en) 2022-07-26

Family

ID=69197182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910917897.7A Active CN110706106B (en) 2019-09-26 2019-09-26 Information processing method and device

Country Status (1)

Country Link
CN (1) CN110706106B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414634B (en) * 2020-03-18 2023-09-19 联想(北京)有限公司 Information processing method and device
CN111368344B (en) * 2020-03-31 2023-03-21 西安理工大学 Method for improving fault tolerance of endorsement node based on dynamic election
CN112287400A (en) * 2020-09-29 2021-01-29 卓尔智联(武汉)研究院有限公司 Transaction sequencing method and device in super account book and computer equipment
CN114531490A (en) * 2020-11-04 2022-05-24 中国移动通信有限公司研究院 Endorsement request processing method, block chain system and electronic equipment
CN113112354A (en) * 2021-03-04 2021-07-13 卓尔智联(武汉)研究院有限公司 Transaction processing method of block chain network, block chain network and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108122159A (en) * 2017-12-22 2018-06-05 中链科技有限公司 A kind of factoring information processing method and system based on block chain
CN109118214A (en) * 2017-06-26 2019-01-01 华为技术有限公司 The method and apparatus for running intelligent contract

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11494344B2 (en) * 2018-03-06 2022-11-08 International Business Machines Corporation Customized endorsement logic for blockchain
CN110033373A (en) * 2019-03-12 2019-07-19 平安科技(深圳)有限公司 Device, method and the storage medium endorsed in block chain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118214A (en) * 2017-06-26 2019-01-01 华为技术有限公司 The method and apparatus for running intelligent contract
CN108122159A (en) * 2017-12-22 2018-06-05 中链科技有限公司 A kind of factoring information processing method and system based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于区块链的数字化智能合约研究;方译、丛林虎等;《计算机系统应用》;20190915;第28卷(第9期);第225-231页 *

Also Published As

Publication number Publication date
CN110706106A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN110706106B (en) Information processing method and device
Androulaki et al. Hyperledger fabric: a distributed operating system for permissioned blockchains
CN109493204B (en) Service accounting method based on block chain and terminal equipment
CN111629039B (en) Block chain consensus method, client, endorsement node and sequencing node
CN109447643B (en) Data sharing system and data sharing method based on block chain
CN108769173B (en) Block chain implementation method and equipment for running intelligent contracts
CN110428257B (en) Password cracking task processing method, equipment and storage medium
Kiayias et al. Fair and robust multi-party computation using a global transaction ledger
EP3559874B1 (en) Event-driven blockchain workflow processing
CN109246197B (en) Data processing method and device based on intelligent contract
CN109698752A (en) A kind of ERP System based on block chain
CN109003185B (en) Intelligent contract establishing method and device, computing equipment and storage medium
CN109460405A (en) For the block generation method of block chain network, synchronous method, storage medium, calculate equipment
CN110795709B (en) Method and device for performing business operation, electronic equipment and storage medium
CN111598436A (en) Voucher management system, method and medium
CN109981279B (en) Block chain system, communication method, device, equipment and medium
CN112508566A (en) Alliance chain-based cross-chain private transaction method and equipment
CN103516687A (en) Security information interaction system, equipment and method thereof
CN110634068A (en) Community-chain-based credit investigation data processing method and system
CN112381651A (en) Block chain cross-chain transaction method and device based on Internet of things
Kothapalli et al. Smartcast: An incentive compatible consensus protocol using smart contracts
CN114567643A (en) Cross-block-chain data transfer method, device and related equipment
CN109918867B (en) Peer-to-peer system file tracing method based on block chain
CN112231755A (en) Data authorization method, device and system based on block chain
Ouranos et al. Formal analysis of TESLA protocol in the timed OTS/CafeOBJ method

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