CN110633328B - Information processing method, device and computer readable storage medium - Google Patents

Information processing method, device and computer readable storage medium Download PDF

Info

Publication number
CN110633328B
CN110633328B CN201910912223.8A CN201910912223A CN110633328B CN 110633328 B CN110633328 B CN 110633328B CN 201910912223 A CN201910912223 A CN 201910912223A CN 110633328 B CN110633328 B CN 110633328B
Authority
CN
China
Prior art keywords
service
endorsement
identifier
client
parameter
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
CN201910912223.8A
Other languages
Chinese (zh)
Other versions
CN110633328A (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.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Cloud Computing Beijing Co 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 Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Cloud Computing Beijing Co Ltd
Priority to CN201910912223.8A priority Critical patent/CN110633328B/en
Publication of CN110633328A publication Critical patent/CN110633328A/en
Application granted granted Critical
Publication of CN110633328B publication Critical patent/CN110633328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses an information processing method and device, wherein the method is applied to endorsement nodes in a blockchain and comprises the following steps: receiving an endorsement request from a client, wherein the endorsement request carries a first identifier and a first parameter, the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract; a service request is sent to a service system, the service request carries a first identifier and/or a first parameter, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not; receiving a service response from the service system; and sending an endorsement response to the client according to the service response. The embodiment of the invention can improve the rationality of the service.

Description

Information processing method, device and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an information processing method, an information processing device and a computer readable storage medium.
Background
With the continuous development of computer technology, the application range of blockchains is wider and wider, such as business processing. At present, a common business processing method comprises the following steps: and the endorsement node receives an endorsement request from the client, performs simulation based on the information of the endorsement request, determines an endorsement result according to the simulation result, and sends the endorsement result to the client. In the method, only the endorsement node carries out auditing on the business corresponding to the endorsement request, and the business corresponding to the endorsement request cannot be audited based on external conditions, so that the auditing strength of the business is reduced, and the rationality of the business is reduced.
Disclosure of Invention
The embodiment of the invention discloses an information processing method, an information processing device and a computer readable storage medium, which are used for improving the rationality of business.
The first aspect discloses an information processing method, which is applied to an endorsement node and includes:
receiving an endorsement request from a client, wherein the endorsement request carries a first identifier and a first parameter, the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
a service request is sent to a service system, wherein the service request carries the first identifier and/or the first parameter, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not;
receiving a service response from the service system;
and sending an endorsement response to the client according to the service response.
As a possible implementation manner, the endorsement request further carries a second identifier, where the second identifier is an identifier of the client, and the method further includes:
verifying whether the client corresponding to the second identifier is a legal client or not;
and under the condition that the client corresponding to the second identifier is a legal client, executing sending a service request to a service system.
As a possible implementation manner, the service response is used to indicate that the service is a legal service.
As a possible implementation manner, the service response carries a verification result, and the sending an endorsement response to the client according to the service response includes:
if the verification result is that the service is legal, an endorsement response is sent to the client, wherein the endorsement response is used for indicating that endorsement is successful; or alternatively
And generating an endorsement result according to the verification result, and sending an endorsement response carrying the endorsement result to the client.
As a possible implementation manner, the method further comprises:
simulating the business by using the first parameter and the first identification corresponding intelligent contract;
the service request further carries a simulation result, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not, including:
and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal or not according to the simulation result.
As a possible implementation, the endorsement response carries the simulation result.
A second aspect discloses an information processing method, which is applied to a service system, including:
receiving a service request carrying a first identifier and/or a first parameter from an endorsement node, wherein the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not;
and sending service response to the endorsement node according to the verification result.
As a possible implementation manner, the verifying whether the service corresponding to the first identifier and/or the first parameter is a legal service includes:
judging whether the simulation result of the service is consistent with the storage result of the service, and determining that the service is legal under the condition that the simulation result of the service is consistent with the storage result of the service.
As a possible implementation manner, the service request also carries the simulation result; or alternatively
In the case that the service request carries the first identifier and the first parameter, the method further includes:
and simulating the service by using the first parameter and the intelligent contract corresponding to the first identifier to obtain the simulation result.
As a possible implementation manner, the sending a service response to the endorsement node according to the verification result includes:
if the verification result is that the service is legal, sending a service response to the endorsement node, wherein the service response is used for indicating that the service is legal; or alternatively
And sending a service response carrying the verification result to the endorsement node.
A third aspect discloses an information processing apparatus, the apparatus being provided in an endorsement node, comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving an endorsement request from a client, the endorsement request carries a first identifier and a first parameter, the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
the sending unit is used for sending a service request to a service system, wherein the service request carries the first identifier and/or the first parameter, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not;
the receiving unit is further used for receiving service response from the service system;
and the sending unit is further used for sending an endorsement response to the client according to the service response.
As a possible implementation manner, the endorsement request further carries a second identifier, where the second identifier is an identifier of the client, and the apparatus further includes:
and the verification unit is used for verifying whether the client corresponding to the second identifier is a legal client, and the sending unit is used for sending a service request to the service system under the condition that the client corresponding to the second identifier is the legal client.
As a possible implementation manner, the service response is used to indicate that the service is a legal service.
As a possible implementation manner, the service response carries a verification result, and the sending unit sends an endorsement response to the client according to the service response includes:
if the verification result is that the service is legal, an endorsement response is sent to the client, wherein the endorsement response is used for indicating that endorsement is successful; or alternatively
And generating an endorsement result according to the verification result, and sending an endorsement response carrying the endorsement result to the client.
As a possible implementation manner, the device further comprises:
the simulation unit is used for simulating the business by using the first parameter and the intelligent contract corresponding to the first identifier;
the service request further carries a simulation result, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not, including:
and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal or not according to the simulation result.
As a possible implementation, the endorsement response carries the simulation result.
A fourth aspect discloses an information processing apparatus provided in a business system, comprising:
the receiving unit is used for receiving a service request carrying a first identifier and/or a first parameter from an endorsement node, wherein the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
the verification unit is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not;
and the sending unit is used for sending service response to the endorsement node according to the verification result.
As a possible implementation manner, the verification unit is specifically configured to determine whether the simulation result of the service is consistent with the storage result of the service, and determine that the service is a legal service when it is determined that the simulation result of the service is consistent with the storage result of the service.
As a possible implementation manner, the service request also carries the simulation result; or alternatively
In the case that the service request carries the first identifier and the first parameter, the apparatus further includes:
and the simulation unit is used for simulating the business by using the first parameter and the intelligent contract corresponding to the first identifier to obtain the simulation result.
As a possible implementation manner, the sending unit is specifically configured to:
if the verification result is that the service is legal, sending a service response to the endorsement node, wherein the service response is used for indicating that the service is legal; or alternatively
And sending a service response carrying the verification result to the endorsement node.
A fifth aspect discloses an information processing apparatus, the communication apparatus including a processor, a memory for storing a set of computer program codes, an input interface for receiving information from other apparatuses than the apparatus, and an output interface for outputting information to other apparatuses than the apparatus. The computer program code stored in the memory, when used by a processor, causes the processor to perform the information processing method disclosed in the first aspect or any possible implementation manner of the first aspect, or the information processing method disclosed in the second aspect or any possible implementation manner of the second aspect.
A sixth aspect discloses a computer readable storage medium having stored thereon a computer program or computer instructions which, when run, implement an information processing method as disclosed in the first aspect or any possible implementation manner of the first aspect, or in the second aspect or any possible implementation manner of the second aspect.
A seventh aspect discloses a computer program product which, when run on a computer, causes the computer to perform the information processing method disclosed in the first aspect or any possible implementation manner of the first aspect, or in the second aspect or any possible implementation manner of the second aspect.
In the embodiment of the invention, an endorsement request carrying a first identifier and a first parameter from a client is received, a service request for verifying whether the carried first identifier and/or the service corresponding to the first parameter is legal or not is sent to a service system, a service response from the service system is received, and the endorsement response is sent to the client according to the service response. As the endorsement response is sent to the client according to the service response, it can be seen that not only the endorsement node performs an audit on the service corresponding to the endorsement request, but also an external service system performs an audit on the service corresponding to the endorsement request, so that the audit intensity of the service is increased, and the rationality of the service can be improved.
Drawings
FIG. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a service processing disclosed in an embodiment of the present invention;
FIG. 3 is a schematic flow chart of an information processing method according to an embodiment of the present invention;
FIG. 4 is a flow chart of another information processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart of yet another information processing method disclosed in an embodiment of the present invention;
fig. 6 is a schematic diagram of a structure of an information processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a structure of another information processing apparatus disclosed in an embodiment of the present invention;
fig. 8 is a schematic structural view of still another information processing apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention discloses an information processing method, an information processing device and a computer readable storage medium, which are used for improving the rationality of business. The following will describe in detail.
In order to better understand an information processing method, an information processing device and a computer readable storage medium disclosed in the embodiments of the present invention, a network architecture used in the embodiments of the present invention is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention. As shown in fig. 1, the network architecture may include a client 101, an endorsement node 102, a business system 103, a sorting node 104, and an accounting node 105. The client 101 is configured to generate a service proposal according to an operation of a user, and send an endorsement request to the endorsement node 102 according to the service proposal. An endorsement node 102, configured to receive an endorsement request from the client 101, verify whether the client 101 is a legal client, simulate a service corresponding to the service proposal if the client 101 is verified to be a legal client, and send a service request to the service system 103. The service system 103 is configured to receive a service request from the client 102, verify whether a service corresponding to the service proposal is a legal service according to the service request, and send an endorsement response to the endorsement node 102 according to the verification result. The endorsement node 102 is further configured to receive a service response from the service system 103, and send an endorsement response to the client 101 according to the service response. The client 101 is further configured to determine whether to execute the service proposal according to the endorsement response and the endorsement policy, and generate a service according to the service proposal and the endorsement response when determining to execute the service proposal, and send the service to the ordering node 104. The ordering node 104 is configured to receive the service from the client 101, perform ordering and packaging processing on the service, and send the processed service to the accounting node 105. And a billing node 105 for receiving the processed traffic from the sorting node 104 and processing the processed traffic.
In order to better understand an information processing method, an information processing device and a computer readable storage medium disclosed in the embodiments of the present invention, an application scenario used in the embodiments of the present invention is described below. Referring to fig. 2, fig. 2 is a schematic diagram of a service processing according to an embodiment of the present invention. As shown in fig. 2, the endorsement node creates a service proposal and sends a service request to the endorsement node. After receiving the service request from the client, the endorsement node verifies the client, simulates the service proposal if the client is a legal client, and then sends an endorsement response to the client. After receiving the endorsement response from the endorsement node, the client can determine whether to submit the service according to the endorsement response and the endorsement policy, and under the condition of determining to submit the service, the client generates the service according to the service proposal and the endorsement response, and then submits the ordering to the ordering node. After receiving the ordering from the client, the ordering node sequentially performs ordering and packaging processing on the service, and then sends the packaged service to the accounting node through block broadcasting. After receiving the packed services from the ordering node, the billing node splits the packed services into individual services, processes the services, and stores the processing results of the services. Only the endorsement node performs auditing on the service proposal corresponding to the endorsement request, and the service proposal corresponding to the endorsement request cannot be audited based on external conditions, so that the auditing strength of the service is reduced, and the rationality of the service is reduced.
Referring to fig. 3, fig. 3 is a schematic flow chart of an information processing method according to an embodiment of the invention. The information processing method is described from the angles of a client, an endorsement node and a service system. As shown in fig. 3, the information processing method may include the following steps.
301. And the client sends an endorsement request to the endorsement node.
The client may send an endorsement request to the endorsement node, where the endorsement request may carry a first identifier and a first parameter, the first identifier is an identifier of the smart contract, and the first parameter is a parameter required by the smart contract. The service request may be generated according to a service proposal created by the client, or may be generated according to a service proposal from another client.
302. And the endorsement node sends a service request to the service system.
After receiving the endorsement request from the client, the endorsement node may send a service request to the service system, where the service request may carry the first identifier and/or the first parameter.
303. The service system verifies whether the service corresponding to the first identifier and/or the first parameter is legal service or not.
After the service system receives the service request from the endorsement node, it can verify whether the service corresponding to the first identifier and/or the first parameter is legal service.
304. And the service system sends service response to the endorsement node according to the verification result.
After the service system verifies the service corresponding to the first identifier and/or the first parameter, a service response can be sent to the endorsement node according to the verification result. And under the condition that only the verification is successful, namely the service corresponding to the first identifier and/or the first parameter is legal service, sending a service response to the endorsement node, wherein the service response is used for indicating that the service corresponding to the first identifier and/or the first parameter is legal service. In the case that a service response needs to be returned to the endorsement node regardless of the verification result, the service response carrying the verification result may be sent to the endorsement node.
305. And the endorsement node sends an endorsement response to the client according to the service response.
After receiving the service response from the service system, the endorsement node may send an endorsement response to the client according to the service response. And under the condition that only the service corresponding to the first identifier and/or the first parameter is legal service, the service response is sent to the endorsement node, and the endorsement node only receives the service response to indicate that the service corresponding to the first identifier and/or the first parameter is legal service. In the case that an endorsement response is returned to the client only if the endorsement is successful, the endorsement response is sent to the client upon receiving a service response from the service system. In the case that an endorsement response needs to be returned to the client regardless of the endorsement result, an endorsement response carrying the endorsement success can be sent to the endorsement node.
In the case that a service response needs to be returned to the endorsement node regardless of the verification result, the service response carries the verification result. When the endorsement response is returned to the client only after the endorsement is successful, the verification result can be firstly identified, the endorsement response is sent to the client when the verification result is identified as the verification success, and the endorsement response is not sent to the client when the verification result is identified as the verification failure, namely, the condition that the service corresponding to the first identifier and/or the first parameter is illegal service. In the case that an endorsement response needs to be returned to the client regardless of the endorsement result, the endorsement result can be generated according to the verification result, the endorsement can be generated successfully when the verification result is successful, the endorsement failure can be generated when the verification result is failed, and then the endorsement response carrying the endorsement result can be sent to the client.
The processing procedure after the endorsement node receives the endorsement response is the same as that of the corresponding description of fig. 2, and the detailed description can refer to the corresponding description of fig. 2.
Wherein the client and the endorsement node belong to the same blockchain.
In the service processing method described in fig. 3, since an endorsement response is sent to the client according to the service response, it can be seen that not only the endorsement node performs an audit on the service corresponding to the endorsement request, but also the external service system performs an audit on the service corresponding to the endorsement request, so that the audit intensity of the service is increased, and the rationality of the service can be improved.
Referring to fig. 4, fig. 4 is a flow chart of another information processing method according to an embodiment of the invention based on the network architecture shown in fig. 1. The information processing method is described from a client, an endorsement node, a service system, a sorting node and an accounting node. As shown in fig. 4, the information processing method may include the following steps.
401. And the client sends an endorsement request to the endorsement node.
The client may send an endorsement request to the endorsement node, where the endorsement request may carry a first identifier, a second identifier, and a first parameter, where the first identifier is an identifier of the intelligent contract, the second identifier is an identifier of the client, and the first parameter is a parameter required by the intelligent contract. The service request may be generated according to a service proposal created by the client, or may be generated according to a service proposal from another client.
402. The endorsement node verifies whether the second identifier corresponds to the client as a legal client.
After receiving the endorsement request from the client, the endorsement node may verify whether the client corresponding to the second identifier is a legal client, and if it is verified that the client corresponding to the second identifier is a legal client, step 403 and/or step 404 may be executed. And under the condition that the client corresponding to the second identifier is verified to be the illegal client, the method can be ended, namely, the subsequent flow is not executed, and information for indicating that the client is the illegal client can be sent to the client.
403. And the endorsement node uses the first parameter and the intelligent contract corresponding to the first identifier to simulate the first identifier and/or the business corresponding to the first parameter.
And under the condition that the endorsement node verifies that the client corresponding to the second identifier is a legal client, the first identifier and/or the business corresponding to the first parameter can be simulated by using the first parameter and the intelligent contract corresponding to the first identifier.
404. And the endorsement node sends a service request to the service system.
And under the condition that the endorsement node verifies that the client corresponding to the second identifier is a legal client, or after the endorsement node uses the first parameter and the intelligent contract corresponding to the first identifier to simulate the first identifier and/or the service corresponding to the first parameter, the endorsement node can send a service request to the service system. The service request may carry the first identifier and/or the first parameter when the endorsement node verifies that the client corresponding to the second identifier is a legal client and sends the second identifier. In the case that the service request is sent after the endorsement node uses the first parameter and the intelligent contract corresponding to the first identifier to simulate the first identifier and/or the service corresponding to the first parameter, the service request may carry the simulation result in addition to the first identifier and/or the first parameter. Step 403 may be performed before step 404, after step 404, or simultaneously with step 404.
405. The service system verifies whether the service corresponding to the first identifier and/or the first parameter is legal service or not.
After the service system receives the service request from the endorsement node, it can verify whether the service corresponding to the first identifier and/or the first parameter is legal service. Under the condition that the service request carries the simulation result, the stored first identifier and/or the stored result of the service corresponding to the first singular number can be obtained, and whether the service is legal or not can be judged according to the simulation result and the stored result, and whether the simulation result is matched with the stored result or not can be judged. And determining the service as legal service when the matching is judged, and determining the service as illegal service when the matching is not judged. The matching may be the same, the similarity or the association degree is greater than a threshold, the stored result includes a simulation result, the same rule may be followed, or other cases where matching can be represented, which is not limited herein.
Under the condition that the service request does not carry the simulation result, the service system can simulate the service by using the intelligent contract corresponding to the first parameter and the first identifier to obtain the simulation result, acquire the stored first identifier and/or the stored result of the service corresponding to the first singular number, and then judge whether the service is legal or not according to the simulation result and the stored result.
406. And the service system sends service response to the endorsement node according to the verification result.
Step 406 is the same as step 304, and the detailed description will refer to step 304, which will not be repeated here.
407. And the endorsement node sends an endorsement response to the client according to the service response.
Step 407 is the same as step 305, and the detailed description will refer to step 305, which will not be repeated here. In addition, the endorsement response may carry the simulation results.
In one embodiment, the endorsement node may send an endorsement response to the client based on the service response and the simulation result.
408. The client indicates to the ordering node an ordering request for ordering the service.
Step 408 is the same as the processing procedure after the client corresponding to fig. 2 receives the endorsement response from the endorsement node, and the detailed description will refer to the related description, which is not repeated here.
409. The ordering node sends a billing request to the billing node indicating the processing of the service.
Step 409 is the same as the processing procedure after the sorting node corresponding to fig. 2 receives the sorting submitted from the client, and the detailed description may refer to the related description, which is not repeated here.
410. The accounting node processes the traffic.
Step 410 is the same as the processing procedure after the billing node corresponding to fig. 2 receives the packaged service from the sorting node, and the detailed description will refer to the related description and will not be repeated here.
Wherein the client, endorsement node, ordering node and billing node belong to the same blockchain.
In the service processing method described in fig. 4, since an endorsement response is sent to the client according to the service response, it can be seen that not only the endorsement node performs an audit on the service corresponding to the endorsement request, but also the external service system performs an audit on the service corresponding to the endorsement request, so that the audit intensity of the service is increased, and the rationality of the service can be improved.
For example, a certain e-commerce platform A cooperates with an express company B, the A entrusts the B to help send the express, and the expense of the express is settled to the B in months. In this scenario, both parties need to keep accounts of each other, and check out and settlement are performed at the end of the month. If a and B are billed by means of the blockchain, then after each time a delegate B sends an express, one of the parties must write accounting information into the blockchain, and at the same time, the piece of accounting information needs to be endorsed or confirmed as soon as possible by the other party. Because the system is a new piece of accounting information, whether the system needs to be endorsed or not can not be judged according to the information which is already uplink when endorsed, and how to evaluate the accuracy of the accounting information can only be according to an IT system outside the blockchain. More specifically, suppose that at 24 days 6.2019, A entrusts B to send a package, B takes the package, and then weighs and evaluates the package, and prints an express receipt to A. B (or A) then initiates a proposal for this package, the proposal content being: 24 days of 6 months of 2019, A entrusted with B sending a package, express bill number xxxx, weight of 0.9kg, content ooo and express fee 12 yuan. The proposal needs to be written into a chain after the endorsements of the A, B parties so as to settle accounts of the moon end parties, and the endorsement condition is that A and B agree. At this time, since the information systems of the two parties a and B are not interconnected, the information cannot be written back in time, or even the number and the amount of the express bill may need to be checked manually for confirmation. In this scenario, it is not appropriate to endorse only according to the information that has been linked, and the root cause is that the express sheets are independent from each other, and there is no up-down association. If the scheme of the invention is used, after proper configuration, the endorsement nodes of both sides can automatically access respective information systems or even databases when endorsements are needed, check and endorse the express single number xxxx and the amount thereof, and finally automatically complete the operations of linking and accounting, so that both sides can use block chains to carry out consensus and accounting, and each account on each chain can obtain the endorsements of both sides and cannot be repudiated. If the endorsement node accesses the service side information system, it is found that the express bill number does not exist, or the express bill number is not matched with the amount of money, the proposal can be marked as manual processing or endorsement, the contended accounting information is not immediately linked, and the service party can be manually involved in processing.
Referring to fig. 5, fig. 5 is a flowchart of another information processing method according to an embodiment of the invention. The information processing method is described from a client, an endorsement node, a service system, a sorting node and an accounting node. As shown in fig. 5, the information processing method may include the following steps.
501. And the client sends an endorsement request to the endorsement node.
Step 501 is the same as step 401, and the detailed description will refer to step 401, which is not repeated here.
502. The endorsement node verifies whether the second identifier corresponds to the client as a legal client.
After receiving the endorsement request from the client, the endorsement node may verify whether the client corresponding to the second identifier is a legitimate client, and if it is verified that the client corresponding to the second identifier is a legitimate client, step 503 may be executed. And under the condition that the client corresponding to the second identifier is verified to be the illegal client, the method can be ended, namely, the subsequent flow is not executed, and information for indicating that the client is the illegal client can be sent to the client.
503. And the endorsement node uses the first parameter and the intelligent contract corresponding to the first identifier to simulate the first identifier and/or the business corresponding to the first parameter.
Step 503 is the same as step 403, and the detailed description will refer to step 403, which will not be repeated here.
504. And the endorsement node sends an endorsement response to the client.
And after the endorsement node uses the first parameter and the intelligent contract corresponding to the first identifier to simulate the first identifier and/or the business corresponding to the first parameter, a simulation result can be obtained. When the endorsement response is returned to the client only if the endorsement is successful, the rationality of the simulation result can be judged first, the endorsement response is sent to the client when the simulation result is judged to be reasonable, and the endorsement response is not sent to the client when the simulation result is judged to be unreasonable. In the case that an endorsement response needs to be returned to the client regardless of the endorsement result, the endorsement result can be generated according to the simulation result, and then the endorsement response carrying the endorsement result is sent to the endorsement node. The endorsement result can be endorsement success or endorsement failure. For example, in the case where the service is a transfer service and the simulation result is that the amount remaining after transfer is negative, it is indicated that the simulation result is not reasonable.
505. The client indicates to the ordering node an ordering request for ordering the service.
Step 505 is the same as step 408, and the detailed description will refer to the related description, which is not repeated here.
506. The ordering node sends a billing request to the billing node indicating the processing of the service.
Step 506 is the same as step 409, and the detailed description may refer to the related description, which is not repeated here.
507. The accounting node processes the traffic.
Step 507 is the same as step 410, and the detailed description may refer to the related description, which is not repeated here.
508. The service system obtains the service processing result from the accounting node.
The service system may obtain the processing result of the service from the accounting node in real time, periodically or in case of detecting the processing result of the service.
509. The service system verifies the validity of the service according to the processing result and the stored storage result, and if the service system verifies that the service is illegal, step 510 is executed.
After the service system obtains the service processing result from the accounting node, the validity of the service may be verified according to the service processing result and the stored service corresponding storage result, and the verification method may be the same as step 405. In case that the service is verified as an illegal service, step 510 is performed. In the case that the service is verified to be a legal service, no processing may be performed.
510. The service system sends indication information for indicating that the service is illegal to the accounting node.
After receiving the indication information from the service system, the accounting node may cancel the processing of the service and delete the storage of the service.
Wherein the client, endorsement node, ordering node and billing node belong to the same blockchain.
In the service processing method described in fig. 5, since the external service system verifies the service processing result, it can be seen that not only the endorsement node performs the audit on the service corresponding to the endorsement request, but also the external service system performs the audit on the service processing result, so that the audit intensity of the service is increased, and the rationality of the service can be improved. Although the auditing strength of the service can be increased in fig. 5 as compared with fig. 4, since the auditing of the service system is performed last, the time required is long, which reduces the information processing efficiency.
Referring to fig. 6, fig. 6 is a schematic diagram of an information processing apparatus according to an embodiment of the present invention based on the network structure shown in fig. 1. The information processing device may be disposed in an endorsement node, or the information processing device may be an endorsement node. As shown in fig. 6, the information processing apparatus may include:
the receiving unit 601 is configured to receive an endorsement request from a client, where the endorsement request carries a first identifier and a first parameter, the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
a sending unit 602, configured to send a service request to a service system, where the service request carries a first identifier and/or a first parameter, and the service request is used to verify whether a service corresponding to the first identifier and/or the first parameter is a legal service;
a receiving unit 601, configured to receive a service response from the service system;
the sending unit 602 is further configured to send an endorsement response to the client according to the service response.
In one embodiment, the endorsement request further carries a second identifier, where the second identifier is an identifier of the client, and the information processing apparatus may further include:
and a verification unit 603, configured to verify whether the client corresponding to the second identifier is a legal client, where the sending unit 602 performs sending the service request to the service system if the client corresponding to the second identifier is a legal client.
In one embodiment, the service reply is used to indicate that the service is a legitimate service.
In one embodiment, the service response carries the verification result, and the sending unit 602 sends an endorsement response to the client according to the service response includes:
if the verification result is that the service is legal, an endorsement response is sent to the client, wherein the endorsement response is used for indicating that the endorsement is successful; or alternatively
And generating an endorsement result according to the verification result, and sending an endorsement response carrying the endorsement result to the client.
In one embodiment, the information processing apparatus may further include:
a simulation unit 604, configured to simulate the service using the first parameter and the first identifier corresponding to the smart contract;
the service request also carries a simulation result, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not, including:
the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal or not according to the simulation result.
In one embodiment, the endorsement response carries the simulation result.
The detailed descriptions of the receiving unit 601, the transmitting unit 602, the verifying unit 603, and the simulating unit 604 may be directly obtained by referring to the related descriptions of the endorsement nodes in the method embodiments shown in fig. 3 and fig. 4, which are not repeated herein.
Referring to fig. 7, fig. 7 is a schematic diagram of an information processing apparatus according to another embodiment of the present invention. The information processing device may be provided in a service system, or the information processing device may be provided in a service system. As shown in fig. 7, the information processing apparatus may include:
a receiving unit 701, configured to receive a service request from an endorsement node, where the service request carries a first identifier and/or a first parameter, and the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
a verification unit 702, configured to verify whether the service corresponding to the first identifier and/or the first parameter is a legal service;
and a sending unit 703, configured to send a service response to the endorsement node according to the verification result.
In one embodiment, the verification unit 702 is specifically configured to determine whether the simulation result of the service is consistent with the storage result of the service, and determine that the service is a legal service if it is determined that the simulation result of the service is consistent with the storage result of the service.
In one embodiment, the service request also carries the simulation result; or alternatively
In the case that the service request carries the first identifier and the first parameter, the information processing apparatus may further include:
and the simulation unit 704 is configured to simulate the service according to the intelligent contract using the first parameter and the first identifier, so as to obtain a simulation result.
In one embodiment, the sending unit 703 is specifically configured to:
if the verification result is that the service is legal, sending a service response to the endorsement node, wherein the service response is used for indicating that the service is legal; or alternatively
And sending a service response carrying the verification result to the endorsement node.
The detailed descriptions of the receiving unit 701, the verifying unit 702, the transmitting unit 703 and the simulating unit 704 may be directly obtained by referring to the related descriptions of the service system in the method embodiments shown in fig. 3 and fig. 4, which are not repeated herein.
Referring to fig. 8, fig. 8 is a schematic diagram of a structure of another information processing apparatus according to an embodiment of the present invention, based on the network architecture shown in fig. 1. As shown in fig. 8, the information processing apparatus may include a processor 801, a memory 802, an input interface 803, an output interface 804, and a connection line 805. The memory 802 may be stand alone with the connection 805 connected to the processor 801. Memory 802 may also be integrated with processor 801. The connection 805 may include a path to communicate information between the above components. Wherein the memory 802 stores program instructions, and the processor 801 is configured to execute the program instructions stored in the memory 802. Wherein:
in one embodiment, the information processing apparatus may be the information processing apparatus corresponding to fig. 6. The processor 801 is configured to invoke the program instructions stored in the memory 802 to perform the operations performed by the verification unit 603 and the simulation unit 604 in the above embodiment when the program instructions stored in the memory 802 are executed. The input interface is used to perform the operations performed by the receiving unit 601. The output interface is used to perform the operations performed by the transmission unit 602.
In another embodiment, the information processing apparatus may be the information processing apparatus corresponding to fig. 7. The processor 801 is configured to invoke the program instructions stored in the memory 802 to perform the operations performed by the verification unit 702 and the simulation unit 704 in the above embodiments when the program instructions stored in the memory 802 are executed. The input interface is used to perform operations performed by the receiving unit 701. The output interface is used to perform operations performed by the transmission unit 703.
The embodiment of the invention also discloses a storage medium, and the storage medium stores a program which realizes the information processing method shown in fig. 3-5 when running.
The foregoing embodiments have been provided for the purpose of illustrating the technical solution and advantageous effects of the present application in further detail, and it should be understood that the foregoing embodiments are merely illustrative of the present application and are not intended to limit the scope of the present application, and any modifications, equivalents, improvements, etc. made on the basis of the technical solution of the present application should be included in the scope of the present application.

Claims (10)

1. An information processing method, wherein the method is applied to an endorsement node, and comprises the following steps:
receiving an endorsement request from a client, wherein the endorsement request carries a first identifier and a first parameter, the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
a service request is sent to a service system, wherein the service request carries the first identifier and/or the first parameter, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not;
receiving a service response from the service system;
sending an endorsement response to the client according to the service response;
the client and the endorsement node belong to the same block chain, and the service system is a service system outside the block chain.
2. The method of claim 1, wherein the endorsement request further carries a second identifier, the second identifier being an identifier of the client, the method further comprising:
verifying whether the client corresponding to the second identifier is a legal client or not;
and under the condition that the client corresponding to the second identifier is a legal client, executing sending a service request to a service system.
3. The method of claim 1, wherein the service reply carries a verification result, and wherein the sending an endorsement reply to the client according to the service reply comprises:
if the verification result is that the service is legal, an endorsement response is sent to the client, wherein the endorsement response is used for indicating that endorsement is successful; or alternatively
And generating an endorsement result according to the verification result, and sending an endorsement response carrying the endorsement result to the client.
4. A method according to any one of claims 1-3, wherein the method further comprises:
simulating the business by using the first parameter and the first identification corresponding intelligent contract;
the service request further carries a simulation result, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not, including:
and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal or not according to the simulation result.
5. An information processing method, wherein the method is applied to a service system, and comprises the following steps:
receiving a service request carrying a first identifier and/or a first parameter from an endorsement node, wherein the first identifier is an identifier of an intelligent contract, the first parameter is a parameter required by the intelligent contract, and the first identifier and/or the first parameter is from an endorsement request sent to the endorsement node by a client;
verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not;
sending a service response to the endorsement node according to the verification result, so that the endorsement node sends an endorsement response to the client according to the service response;
the client and the endorsement node belong to the same block chain, and the service system is a service system outside the block chain.
6. The method of claim 5, wherein verifying whether the first identifier and/or the first parameter corresponds to traffic that is legitimate traffic comprises:
judging whether the simulation result of the service is consistent with the storage result of the service, and determining that the service is legal under the condition that the simulation result of the service is consistent with the storage result of the service.
7. An information processing apparatus, characterized in that the apparatus is provided in an endorsement node, comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving an endorsement request from a client, the endorsement request carries a first identifier and a first parameter, the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
the sending unit is used for sending a service request to a service system, wherein the service request carries the first identifier and/or the first parameter, and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not;
the receiving unit is further used for receiving service response from the service system;
the sending unit is further configured to send an endorsement response to the client according to the service response;
the client and the endorsement node belong to the same block chain, and the service system is a service system outside the block chain.
8. An information processing apparatus, characterized in that the apparatus is provided in a business system, comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a service request carrying a first identifier and/or a first parameter from an endorsement node, the first identifier is an identifier of an intelligent contract, the first parameter is a parameter required by the intelligent contract, and the first identifier and/or the first parameter come from an endorsement request sent to the endorsement node by a client;
the verification unit is used for verifying whether the service corresponding to the first identifier and/or the first parameter is legal service or not;
the sending unit is used for sending a service response to the endorsement node according to the verification result so that the endorsement node sends an endorsement response to the client according to the service response;
the client and the endorsement node belong to the same block chain, and the service system is a service system outside the block chain.
9. An information processing apparatus comprising a processor, a memory for storing a set of computer program code, an input interface for receiving information from other apparatuses than the apparatus, and an output interface for outputting information to other apparatuses than the apparatus, the processor for calling the computer program code stored in the memory to implement the information processing method according to any one of claims 1 to 6.
10. A computer-readable storage medium, in which a computer program or computer instructions are stored which, when executed, implement the information processing method as claimed in any one of claims 1 to 6.
CN201910912223.8A 2019-09-25 2019-09-25 Information processing method, device and computer readable storage medium Active CN110633328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910912223.8A CN110633328B (en) 2019-09-25 2019-09-25 Information processing method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910912223.8A CN110633328B (en) 2019-09-25 2019-09-25 Information processing method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110633328A CN110633328A (en) 2019-12-31
CN110633328B true CN110633328B (en) 2024-03-22

Family

ID=68974046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910912223.8A Active CN110633328B (en) 2019-09-25 2019-09-25 Information processing method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110633328B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835775A (en) * 2020-07-16 2020-10-27 华北电力科学研究院有限责任公司 Block chain-based Internet of things equipment safety calling method, device and equipment
CN112417514B (en) * 2020-10-30 2024-04-05 迅鳐成都科技有限公司 Multiparty data collaboration method, system and storage medium based on electronic contract

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392619A (en) * 2017-07-31 2017-11-24 众安信息技术服务有限公司 Intelligent contract processing method and processing device
CN108122159A (en) * 2017-12-22 2018-06-05 中链科技有限公司 A kind of factoring information processing method and system based on block chain
CA3088949A1 (en) * 2017-03-29 2018-10-04 Hao Wu Blockchain-based transaction processing method and apparatus
CN109687963A (en) * 2019-01-15 2019-04-26 如般量子科技有限公司 Anti- quantum calculation alliance chain method of commerce and system based on public key pond
CN109858272A (en) * 2018-05-23 2019-06-07 深圳崀途科技有限公司 Blacklist data processing system based on block chain
CA3058236A1 (en) * 2019-03-27 2019-06-27 Alibaba Group Holding Limited Retrieving public data for blockchain networks using highly available trusted execution environments
WO2019120317A2 (en) * 2019-03-26 2019-06-27 Alibaba Group Holding Limited Program execution and data proof scheme using multiple key pair signatures

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190158275A1 (en) * 2017-11-22 2019-05-23 Michael Beck Digital containers for smart contracts

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3088949A1 (en) * 2017-03-29 2018-10-04 Hao Wu Blockchain-based transaction processing method and apparatus
CN107392619A (en) * 2017-07-31 2017-11-24 众安信息技术服务有限公司 Intelligent contract processing method and processing device
CN108122159A (en) * 2017-12-22 2018-06-05 中链科技有限公司 A kind of factoring information processing method and system based on block chain
CN109858272A (en) * 2018-05-23 2019-06-07 深圳崀途科技有限公司 Blacklist data processing system based on block chain
CN109687963A (en) * 2019-01-15 2019-04-26 如般量子科技有限公司 Anti- quantum calculation alliance chain method of commerce and system based on public key pond
WO2019120317A2 (en) * 2019-03-26 2019-06-27 Alibaba Group Holding Limited Program execution and data proof scheme using multiple key pair signatures
CA3058236A1 (en) * 2019-03-27 2019-06-27 Alibaba Group Holding Limited Retrieving public data for blockchain networks using highly available trusted execution environments

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Fabric的跨境汇款追踪平台实现;朱涛;姚翔;许玉壮;周钰;;信息安全学报(第03期);全文 *
多区块链交易分发和事件处理的系统方案;刘雄文;;计算机科学(第S2期);全文 *

Also Published As

Publication number Publication date
CN110633328A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN104574050B (en) The method, apparatus and system settled accounts online
US7490272B2 (en) Method for validating the proper operation of a transactional management system
CN109741168A (en) Online arbitration information exchange method and system
CN110633328B (en) Information processing method, device and computer readable storage medium
CN111861439B (en) Cross-border money transfer transaction method, terminal, electronic equipment and storage medium
CN112801658B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN109598149A (en) The method and apparatus of business processing
CN110148046A (en) A kind of payment management method and device
CN113129145B (en) Electronic evidence storing and verifying method and device based on block chain
CN107451812B (en) APP payment method on mobile terminal based on block chain technology
CN112907244B (en) Block chain-based data processing method, device, equipment and readable storage medium
CN107800667B (en) Information processing method and access processing device
CN110555681A (en) Bank card signing method, device, server and medium
CN110910106B (en) Cash management message processing method and system
CN109978542B (en) Accounts payable data management method, system, storage medium and electronic device
CN117196520A (en) Vendor management method, vendor management system, computer device and storage medium
CN112788555B (en) Cross-operator telephone charge transfer settlement method, device and computing equipment
CN111242773A (en) Virtual resource application docking method and device, computer equipment and storage medium
CN111382062A (en) Joint debugging test method and device for house property transaction system and external mechanism business system
CN115511633A (en) Method, device, terminal and storage medium for recovering block chain assets
CN113469820A (en) Asset management method, device and system based on block chain
CN111626877A (en) Data processing method
CN111209548A (en) Enterprise information verification and checking system and method based on cloud platform
CN111524011A (en) Parallel chain consensus confirming method, equipment and storage medium
CN110942381A (en) Repayment processing method, device, server and storage medium

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
TG01 Patent term adjustment