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

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

Info

Publication number
CN110633328A
CN110633328A CN201910912223.8A CN201910912223A CN110633328A CN 110633328 A CN110633328 A CN 110633328A CN 201910912223 A CN201910912223 A CN 201910912223A CN 110633328 A CN110633328 A CN 110633328A
Authority
CN
China
Prior art keywords
service
identifier
endorsement
parameter
client
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.)
Granted
Application number
CN201910912223.8A
Other languages
Chinese (zh)
Other versions
CN110633328B (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

Images

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

Abstract

The embodiment of the invention discloses an information processing method and a device, wherein the method is applied to endorsement nodes in a block chain 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; sending a service request to a service system, wherein the service request carries a first identifier and/or a first parameter, and the service request is used for verifying whether a service corresponding to the first identifier and/or the first parameter is a legal service; 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 and 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 block chains is wider and wider, such as business processing. At present, a common service processing method is as follows: the endorsement node receives an endorsement request from the client, performs simulation based on 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 audits the service corresponding to the endorsement request, and the service corresponding to the endorsement request cannot be audited based on external conditions, so that the auditing strength of the service is reduced, and the reasonability of the service 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 reasonability of a service.
A 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;
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 a service corresponding to the first identifier and/or the first parameter is a legal service;
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 to send 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 sending the endorsement response to the client according to the service response, where the service response carries a verification result, includes:
sending an endorsement response to the client under the condition that the service is a legal service according to the verification result, wherein the endorsement response is used for indicating that the endorsement is successful; or
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, the method further comprises:
simulating the service by using the intelligent contract corresponding to the first parameter and 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 a legal service or not, and includes:
and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is a legal service 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 and includes:
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 a legal service;
and sending a 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 legitimate service includes:
and 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 further carries the simulation result; or
Under the condition that the service request carries the first identifier and the first parameter, the method further comprises:
and simulating the service by using the intelligent contract corresponding to the first parameter and 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:
sending a service response to the endorsement node under the condition that the service is a legal service as a verification result, wherein the service response is used for indicating that the service is a legal service; or
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:
a receiving unit, 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, configured to send a service request to a service system, where the service request carries the first identifier and/or the 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;
the receiving unit is further configured to receive a service response from the service system;
and the sending unit is also 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 or not, and the sending unit executes to send the service request to a 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 sending unit sends the endorsement response to the client according to the service response, where the service response carries the verification result, and the sending unit includes:
sending an endorsement response to the client under the condition that the service is a legal service according to the verification result, wherein the endorsement response is used for indicating that the endorsement is successful; or
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, the apparatus further comprises:
the simulation unit is used for simulating the service by using the intelligent contract corresponding to the first parameter and 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 a legal service or not, and includes:
and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is a legal service 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, which is provided in a business system, including:
a receiving unit, configured to receive a service request carrying a first identifier and/or a first parameter from an endorsement node, where 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 a legal service or not;
and the sending unit is used for sending a 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 the simulation result of the service is determined to be consistent with the storage result of the service.
As a possible implementation manner, the service request further carries the simulation result; or
Under the condition 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 service by using the intelligent contract corresponding to the first parameter and the first identifier to obtain the simulation result.
As a possible implementation manner, the sending unit is specifically configured to:
sending a service response to the endorsement node under the condition that the service is a legal service as a verification result, wherein the service response is used for indicating that the service is a legal service; or
And sending a service response carrying the verification result to the endorsement node.
A fifth aspect discloses an information processing apparatus comprising a processor, a memory for storing a set of computer program code, an input interface for receiving information from a device other than the apparatus, and an output interface for outputting information to the device other than the apparatus. When the processor is adapted to invoke the computer program code stored in said memory, it is caused to execute the information processing method disclosed in the first aspect or any of its possible implementations, or the information processing method disclosed in the second aspect or any of its possible implementations.
A sixth aspect discloses a computer-readable storage medium having stored thereon a computer program or computer instructions which, when executed, implement the information processing method as disclosed in the first aspect or any of the possible implementations of the first aspect, or any of the possible implementations of the second aspect or 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 of the possible implementations of the first aspect, or in the second aspect or any of the possible implementations 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 a service corresponding to the carried first identifier and/or the first parameter is a legal service 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. Since the endorsement response is sent to the client according to the service response, it can be seen that more than one endorsement node performs audit on the service corresponding to the endorsement request, and the external service system also performs audit on the service corresponding to the endorsement request, so that the audit strength of the service is increased, and the reasonability of the service can be improved.
Drawings
Fig. 1 is a schematic diagram of a network structure according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a service process disclosed in an embodiment of the present invention;
FIG. 3 is a flow chart of an information processing method according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another information processing method disclosed in the embodiments of the present invention;
FIG. 5 is a flow chart illustrating a further information processing method according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of 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 reasonability of a service. The following are detailed below.
In order to better understand an information processing method, an information processing apparatus, 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 ranking 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. The endorsement node 102 is configured to receive an endorsement request from the client 101, verify whether the client 101 is a valid client, simulate a service corresponding to the service proposal if the client 101 is a valid client, and send a service request to the service system 103. And the service system 103 is configured to receive the service request from the node 102, verify whether the 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 the endorsement response to the client 101 according to the service response. The client 101 is further configured to determine whether to execute a service proposal according to the endorsement response and the endorsement policy, and generate a service according to the service proposal and the endorsement response and send the service to the sequencing node 104 when determining to execute the service proposal. And the sequencing node 104 is configured to receive the service from the client 101, sequence and package the service, and send the processed service to the accounting node 105. And the accounting node 105 is used for receiving the processed service from the sequencing node 104 and processing the processed service.
In order to better understand an information processing method, an information processing apparatus, 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 view 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. And after receiving the service request from the client, the endorsement node verifies the client, simulates a service proposal under the condition that 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 strategy, generate the service according to the service proposal and the endorsement response under the condition of determining to submit the service, and then submit the sequence to the sequencing node. And after receiving the sequencing from the client, the sequencing node sequentially sequences and packages the services, and then transmits the packaged services to the accounting node through block broadcasting. And after receiving the packaged service from the sequencing node, the accounting node divides the packaged service into individual services, processes the services and stores the processing results of the services. Only the endorsement node audits 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 present invention based on the network structure shown in fig. 1. The information processing method is described from the perspective of the client, endorsement node and business 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 side can send an endorsement request to the endorsement node, the endorsement request can carry a first identifier and a first parameter, the first identifier is an identifier of the intelligent contract, and the first parameter is a parameter required by the intelligent contract. The service request can be generated according to a service proposal created by the client, or can be generated according to service proposals from other clients.
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. And the service system verifies whether the service corresponding to the first identifier and/or the first parameter is a legal service.
After receiving the service request from the endorsement node, the service system may verify whether the service corresponding to the first identifier and/or the first parameter is a legitimate service.
304. And the service system sends a service response to the endorsement node according to the verification result.
After the service system verifies that the first identifier and/or the first parameter corresponds to the service, the service system can send a service response to the endorsement node according to the verification result. And under the condition that the service response is sent to the endorsement node only if the verification is successful, namely the service corresponding to the first identifier and/or the first parameter is legal, the service response is used for indicating that the service corresponding to the first identifier and/or the first parameter is legal. And under the condition that the service response needs to be returned to the endorsement node regardless of the verification result, the service response carrying the verification result can 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 the service response is sent to the endorsement node only if the service corresponding to the first identifier and/or the first parameter is legal service, the endorsement node indicates that the service corresponding to the first identifier and/or the first parameter is legal service as long as the endorsement node receives the service response. And in the case that the endorsement response is returned to the client only if the endorsement is successful, sending the endorsement response to the client once the service response from the service system is received. Under the condition that the endorsement response needs to be returned to the client side regardless of the endorsement result, the endorsement response carrying successful endorsement can be sent to the endorsement node.
And under the condition that the 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 authentication result can be identified first, the endorsement response is sent to the client when the authentication result is identified as successful, and the endorsement response is not sent to the client when the authentication result is identified as failed, namely the service corresponding to the first identifier and/or the first parameter is illegal. Under the condition that the endorsement response needs to be returned to the client side regardless of the endorsement result, the endorsement result can be generated according to the verification result, the endorsement success can be generated under the condition that the verification result is successful, the endorsement failure can be generated under the condition that the verification result is failed, and then the endorsement response carrying the endorsement result can be sent to the client side.
The processing procedure after the endorsement node receives the endorsement acknowledgement is the same as the description corresponding to fig. 2, and the detailed description may refer to the description corresponding to fig. 2.
The client and the endorsement node belong to the same block chain.
In the service processing method described in fig. 3, since the endorsement response is sent to the client according to the service response, it can be seen that, more than the endorsement node performs the audit on the service corresponding to the endorsement request, the external service system also performs the audit on the service corresponding to the endorsement request, thereby increasing the audit strength of the service, and improving the rationality of the service.
Referring to fig. 4, fig. 4 is a schematic flow chart of another information processing method according to an embodiment of the present 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 sequencing 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 side can send an endorsement request to the endorsement node, the endorsement request can carry a first identifier, a second identifier and a first parameter, the first identifier is an identifier of the intelligent contract, the second identifier is an identifier of the client side, and the first parameter is a parameter required by the intelligent contract. The service request can be generated according to a service proposal created by the client, or can be generated according to service proposals from other clients.
402. And the endorsement node verifies whether the client corresponding to the second identification is 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 valid client, and may perform step 403 and/or step 404 if it is verified that the client corresponding to the second identifier is a valid client. And under the condition that the client corresponding to the second identifier is an illegal client, ending the process, namely not executing the subsequent process, and sending information for indicating that the client is the illegal client to the client.
403. And the endorsement node simulates the first identifier and/or the service corresponding to the first parameter by using the first parameter and the intelligent contract corresponding to the first identifier.
And under the condition that the endorsement node verifies that the client corresponding to the second identifier is a legal client, simulating the service corresponding to the first identifier and/or the first parameter 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.
The endorsement node may send a service request to the service system when the endorsement node verifies that the client corresponding to the second identifier is a valid client, or after the endorsement node uses the intelligent contract corresponding to the first parameter and the first identifier to simulate the service corresponding to the first identifier and/or the first parameter. 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 valid client and then sends the service request. And under the condition that the service request is sent after the endorsement node simulates the first identifier and/or the service corresponding to the first parameter by using the intelligent contract corresponding to the first parameter and the first identifier, the service request can carry the simulation result besides the first identifier and/or the first parameter. Step 403 may be executed before step 404, may be executed after step 404, or may be executed simultaneously with step 404.
405. And the service system verifies whether the service corresponding to the first identifier and/or the first parameter is a legal service.
After receiving the service request from the endorsement node, the service system may verify whether the service corresponding to the first identifier and/or the first parameter is a legitimate service. Under the condition that the service request carries the simulation result, the stored storage result of the service corresponding to the first identifier and/or the first singular number can be obtained, and whether the service is a legal service or not can be judged according to the simulation result and the storage result, or whether the simulation result is matched with the storage result or not can be judged. And under the condition that the matching is judged, determining that the service is legal service, and under the condition that the mismatching is judged, determining that the service is illegal service. The matching may be the same, or the similarity or the association is greater than a threshold, or the stored result includes a simulation result, or the stored result may follow the same rule, or may represent other situations that can represent matching, which is not limited herein.
Under the condition that the service request does not carry a 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, obtain the stored storage result of the service corresponding to the first identifier and/or the first singular number, and then judge whether the service is legal or not according to the simulation result and the storage result.
406. And the service system sends a service response to the endorsement node according to the verification result.
Step 406 is the same as step 304, and the detailed description may refer to step 304, which is not repeated herein.
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 may refer to step 305, which is not described herein again. In addition, the endorsement response may carry simulation results.
In one embodiment, the endorsement node may send an endorsement acknowledgement to the client based on the service acknowledgement and the simulation result.
408. The client indicates to the sequencing node a sequencing request for sequencing 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 may refer to the related description, which is not described herein again.
409. The sequencing node sends an accounting request to the accounting node for 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 described herein again.
410. And the accounting node processes the service.
Step 410 is the same as the processing procedure after the accounting node corresponding to fig. 2 receives the packaged service from the sequencing node, and the detailed description may refer to the related description, which is not described herein again.
The client, the endorsement node, the sequencing node and the accounting node belong to the same block chain.
In the service processing method described in fig. 4, since the endorsement response is sent to the client according to the service response, it can be seen that, more than the endorsement node performs the audit on the service corresponding to the endorsement request, the external service system also performs the audit on the service corresponding to the endorsement request, thereby increasing the audit strength of the service, and improving the rationality of the service.
For example, a certain e-commerce platform a and an express company B cooperate, a entrusts B to help to send an express, and the express fee is settled to B monthly. Under the scene, both sides need to carry out respective accounting, and account checking and settlement are carried out at the end of the month. If A and B are accounted by block chains, after each A order and B send an express, one party must write accounting information into the block chain, and the accounting information needs to be endorsed or confirmed as soon as possible by the other party. Because the account information is a new piece of account information, the user can not judge whether to endorse the account information according to the linked information during endorsement, and how to evaluate the correctness of the account information can only be according to an IT system outside the block chain. In more detail, suppose that 24 days 6 and 6 in 2019, A orders B to send a package, B takes the package, then weighing and evaluating the package, and printing an express receipt to A. B (or A) then initiates a proposal aiming at the package, and the proposal content is as follows: 24 days 6 and 24 months 2019, A orders B to send a package, the number of an express bill is xxxx, the weight is 0.9kg, the content is ooo, and the express fee is 12 yuan. "this proposal needs to be written on the chain after the endorsements of A, B parties, so that the settlement can be carried out by both parties at the end of the month, and the endorsement condition is that both parties A and B agree. At this time, since the information systems of the A and B parties are not interconnected, the information cannot be endorsed in time, and even the express bill number and the amount of money may need to be checked manually for confirmation. In this scenario, it is not appropriate to endorse only according to the information that is linked up, and the root cause is that the courier tickets are independent from each other and are not related from top to bottom. If the scheme of the invention is used, after proper configuration, the endorsement nodes of the two parties can automatically access respective information systems or even databases when the endorsement is needed, check and endorse the express bill number xxxx and the amount of money thereof, and finally automatically complete the chaining and the accounting operation, so that the two parties use the block chains to perform consensus and accounting, and the accounting on each chain is obtained and cannot be repudiated. If the endorsement node accesses the service side information system, it finds that the express delivery order number does not exist, or the express delivery order number is not matched with the money amount, the proposal can be marked as manual processing or endorsement refusing, the disputed account information cannot be linked up immediately, and a service party can intervene in the processing manually.
Referring to fig. 5, fig. 5 is a schematic flow chart illustrating another information processing method according to an embodiment of the present invention. The information processing method is described from a client, an endorsement node, a service system, a sequencing 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 may refer to step 401, which is not described herein again.
502. And the endorsement node verifies whether the client corresponding to the second identification is 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 valid client, and may perform step 503 if it is verified that the client corresponding to the second identifier is a valid client. And under the condition that the client corresponding to the second identifier is an illegal client, ending the process, namely not executing the subsequent process, and sending information for indicating that the client is the illegal client to the client.
503. And the endorsement node simulates the first identifier and/or the service corresponding to the first parameter by using the first parameter and the intelligent contract corresponding to the first identifier.
Step 503 is the same as step 403, and the detailed description may refer to step 403, which is not described herein again.
504. And the endorsement node sends an endorsement response to the client.
And after the endorsement node simulates the first identifier and/or the service corresponding to the first parameter by using the first parameter and the intelligent contract corresponding to the first identifier, a simulation result can be obtained. And under the condition that the endorsement response is returned to the client only after the endorsement is successful, judging the reasonability of the simulation result, sending the endorsement response to the client under the condition that the simulation result is judged to be reasonable, and under the condition that the simulation result is judged to be unreasonable, not sending the endorsement response to the client. Under the condition that the 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 and endorsement failure. For example, in the case where the service is a transfer service and the simulation result is a negative amount of money remaining after the transfer, the simulation result is not reasonable.
505. The client indicates to the sequencing node a sequencing request for sequencing the service.
Step 505 is the same as step 408, and the detailed description may refer to the related description, which is not repeated herein.
506. The sequencing node sends an accounting request to the accounting node for 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 herein.
507. And the accounting node processes the service.
Step 507 is the same as step 410, and the detailed description may refer to the related description, which is not repeated herein.
508. And the service system acquires the service processing result from the accounting node.
The service system can acquire the processing result of the service from the accounting node in real time, periodically or under the condition that the processing result of the service is detected.
509. The service system verifies the validity of the service according to the processing result and the stored storage result, and if the validity is verified, step 510 is executed.
After the service system obtains the processing result of the service from the accounting node, the validity of the service may be verified according to the processing result of the service and the stored result corresponding to the stored service, and the verification method may be the same as that in step 405. In case the traffic is verified to be illegal, step 510 is performed. And under the condition that the service is verified to be legal, the service is not processed.
510. And the service system sends indication information for indicating that the service is illegal to the accounting node.
After receiving the indication from the service system, the accounting node may cancel the processing of the service and delete the storage of the service.
The client, the endorsement node, the sequencing node and the accounting node belong to the same block chain.
In the service processing method described in fig. 5, since the external service system verifies the processing result of the service, it can be seen that, the external service system also verifies the processing result of the service, so that the service corresponding to the endorsement request is verified by more than the endorsement node, and the service processing result is also verified by the external service system, thereby increasing the verification strength of the service, and improving the rationality of the service. Although the auditing strength of the service can be increased in fig. 5 compared with fig. 4, the auditing of the service system is performed last, which takes a long time, and thus the information processing efficiency is reduced.
Referring to fig. 6 based on the network structure shown in fig. 1, fig. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention. The information processing device may be disposed in an endorsement node, and the information processing device may also be the endorsement node. As shown in fig. 6, the information processing apparatus may include:
a receiving unit 601, 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 a service system;
the sending unit 602 is further configured to send an endorsement response to the client according to the service response.
In an 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:
a verifying unit 603, configured to verify whether the client corresponding to the second identifier is a valid client, where the sending unit 602 executes sending of the service request to the service system when the client corresponding to the second identifier is a valid client.
In one embodiment, the service reply is used to indicate that the service is a legitimate service.
In an embodiment, the service response carries the verification result, and the sending unit 602 sends the endorsement response to the client according to the service response includes:
sending an endorsement response to the client under the condition that the service is a legal service as a verification result, wherein the endorsement response is used for indicating that the endorsement is successful; or
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 for simulating the service using the first parameter and the intelligent contract corresponding to the first identifier;
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 a legal service or not, and includes:
and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is a legal service according to the simulation result.
In one embodiment, the endorsement response carries the simulation results.
The detailed descriptions of the receiving unit 601, the sending unit 602, the verifying unit 603, and the simulating unit 604 can be directly obtained by referring to the description of the endorsement node in the embodiment of the method shown in fig. 3 and fig. 4, which is not repeated herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present invention based on the network architecture shown in fig. 1. The information processing device may be provided in a service system, and the information processing device may also be provided in the service system. As shown in fig. 7, the information processing apparatus may include:
a receiving unit 701, configured to receive a service request carrying a first identifier and/or a first parameter from an endorsement node, where the first identifier is an identifier of an intelligent contract, and the first parameter is a parameter required by the intelligent contract;
a verifying unit 702, configured to verify whether a service corresponding to the first identifier and/or the first parameter is a legal service;
a sending unit 703, configured to send a service response to the endorsement node according to the verification result.
In an embodiment, the verifying 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 when the simulation result of the service is consistent with the storage result of the service.
In one embodiment, the service request further carries the simulation result; or
In a case where 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 using the intelligent contract corresponding to the first parameter and the first identifier, and obtain a simulation result.
In an embodiment, the sending unit 703 is specifically configured to:
sending a service response to the endorsement node under the condition that the service is a legal service according to the verification result, wherein the service response is used for indicating that the service is a legal service; or
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 sending unit 703 and the simulating unit 704 may be directly obtained by referring to the description related to the service system in the embodiment of the method shown in fig. 3 and fig. 4, which is not repeated herein.
Referring to fig. 8, fig. 8 is a schematic structural diagram 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 separate and the connection 805 may be coupled to the processor 801. The memory 802 may also be integrated with the processor 801. The connection 805 may include a path for transmitting 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. When the program instructions stored in the memory 802 are executed, the processor 801 is configured to call 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-described embodiments. The input interface is used to perform operations performed by the receiving unit 601. The output interface is used to perform the operations performed by the sending unit 602.
In another embodiment, the information processing apparatus may be the information processing apparatus corresponding to fig. 7. When the program instructions stored in the memory 802 are executed, the processor 801 is configured to call 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-described embodiments. The input interface is used to perform operations performed by the receiving unit 701. The output interface is used for executing the operation executed by the sending unit 703.
The embodiment of the invention also discloses a storage medium, wherein the storage medium is stored with a program, and when the program runs, the information processing method shown in the figures 3-5 is realized.
The above-mentioned embodiments, objects, technical solutions and advantages of the present application are further described in detail, it should be understood that the above-mentioned embodiments are only examples of the present application, and are not intended to limit the scope of the present application, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present application should be included in the scope of the present application.

Claims (10)

1. An information processing method, applied to an endorsement node, 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;
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 a service corresponding to the first identifier and/or the first parameter is a legal service;
receiving a service response from the service system;
and sending an endorsement response to the client according to the service response.
2. The method of claim 1, wherein the endorsement request further carries a second identifier, and the second identifier is an identifier of the client, and the method further comprises:
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 to send a service request to a service system.
3. The method of claim 1, wherein the service response carries a verification result, and wherein sending an endorsement response to the client according to the service response comprises:
sending an endorsement response to the client under the condition that the service is a legal service according to the verification result, wherein the endorsement response is used for indicating that the endorsement is successful; or
And generating an endorsement result according to the verification result, and sending an endorsement response carrying the endorsement result to the client.
4. The method according to any one of claims 1-3, further comprising:
simulating the service by using the intelligent contract corresponding to the first parameter and 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 a legal service or not, and includes:
and the service request is used for verifying whether the service corresponding to the first identifier and/or the first parameter is a legal service or not according to the simulation result.
5. An information processing method, applied to a service system, includes:
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 a legal service;
and sending a service response to the endorsement node according to the verification result.
6. The method according to claim 5, wherein said verifying whether the service corresponding to the first identifier and/or the first parameter is a legal service comprises:
and 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:
a receiving unit, 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, configured to send a service request to a service system, where the service request carries the first identifier and/or the 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;
the receiving unit is further configured to receive a service response from the service system;
and the sending unit is also used for sending an endorsement response to the client according to the service response.
8. An information processing apparatus, provided in a business system, comprising:
a receiving unit, configured to receive a service request carrying a first identifier and/or a first parameter from an endorsement node, where 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 a legal service or not;
and the sending unit is used for sending a service response to the endorsement node according to the verification result.
9. An information processing apparatus comprising a processor, a memory for storing a set of computer program codes, an input interface for receiving information from an apparatus other than the apparatus, an output interface for outputting information to the apparatus other than the apparatus, and an output interface for calling the computer program codes 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, characterized in that a computer program or computer instructions is stored therein, which when executed, implements the information processing method according to 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 true CN110633328A (en) 2019-12-31
CN110633328B 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)

Cited By (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
CN112417514A (en) * 2020-10-30 2021-02-26 迅鳐成都科技有限公司 Multi-party data cooperation method, system and storage medium based on electronic contract

Citations (8)

* 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
US20190158275A1 (en) * 2017-11-22 2019-05-23 Michael Beck Digital containers for smart contracts
CN109858272A (en) * 2018-05-23 2019-06-07 深圳崀途科技有限公司 Blacklist data processing system based on block chain
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

Patent Citations (8)

* 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
US20190158275A1 (en) * 2017-11-22 2019-05-23 Michael Beck Digital containers for smart contracts
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
刘雄文;: "多区块链交易分发和事件处理的系统方案", 计算机科学, no. 2 *
朱涛;姚翔;许玉壮;周钰;: "基于Fabric的跨境汇款追踪平台实现", 信息安全学报, no. 03 *

Cited By (3)

* 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
CN112417514A (en) * 2020-10-30 2021-02-26 迅鳐成都科技有限公司 Multi-party data cooperation method, system and storage medium based on electronic contract
CN112417514B (en) * 2020-10-30 2024-04-05 迅鳐成都科技有限公司 Multiparty data collaboration method, system and storage medium based on electronic contract

Also Published As

Publication number Publication date
CN110633328B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN110135844B (en) Credit recording and inquiring method and device based on block chain and electronic equipment
CN104574050B (en) The method, apparatus and system settled accounts online
US7490272B2 (en) Method for validating the proper operation of a transactional management system
CN109325848B (en) Debt collection urging method and device based on block chain and computer readable storage medium
KR101952498B1 (en) Loan service providing method using black chain and system performing the same
CN110741599A (en) System and method for creating multiple records based on ordered intelligent contracts
CN109741056A (en) A kind of method and device that electronic certificate uploads
CN112801658B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN109598149A (en) The method and apparatus of business processing
AU2023270268A1 (en) Declarative smart contracts
CN110633328B (en) Information processing method, device and computer readable storage medium
CN110163634B (en) Refund method and device based on blockchain and electronic equipment
CN112907244B (en) Block chain-based data processing method, device, equipment and readable storage medium
CN109344599A (en) A kind of authentication management method, device, terminal and medium
CN109978542B (en) Accounts payable data management method, system, storage medium and electronic device
CN113129145B (en) Electronic evidence storing and verifying method and device based on block chain
CN111046037A (en) Transaction processing method of block chain, electronic device and storage medium
CN111861439B (en) Cross-border money transfer transaction method, terminal, electronic equipment and storage medium
CN117196520A (en) Vendor management method, vendor management system, computer device and storage medium
CN110717753B (en) Return-back method and system for mistaken recharging of offline assets
CN117273929A (en) Bill transaction optimization method and device, computer equipment and storage medium
CN110910106A (en) Cash management message processing method and system
CN110955919A (en) Data processing method based on block chain network, related device and storage medium
CN112668783B (en) Aircraft-based data processing method, device, equipment and readable storage medium
CN107292699A (en) A kind of bill transfers the possession of processing method and system

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