CN111311254A - Service processing method, device and system based on block chain - Google Patents

Service processing method, device and system based on block chain Download PDF

Info

Publication number
CN111311254A
CN111311254A CN201811521078.2A CN201811521078A CN111311254A CN 111311254 A CN111311254 A CN 111311254A CN 201811521078 A CN201811521078 A CN 201811521078A CN 111311254 A CN111311254 A CN 111311254A
Authority
CN
China
Prior art keywords
transaction
node
service
client
equipment
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.)
Pending
Application number
CN201811521078.2A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information Technology 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 China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811521078.2A priority Critical patent/CN111311254A/en
Publication of CN111311254A publication Critical patent/CN111311254A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The embodiment of the invention discloses a service processing method, a device and a system based on a block chain, wherein ordering relation data are stored in a block chain network, and the ordering relation service is realized through an intelligent contract, wherein the service processing method applied to node equipment in the block chain network comprises the following steps: receiving an order relation service access request sent by client equipment through an interface provided by a blockchain; wherein, the subscription relation service access request carries an identity authentication certificate; and verifying the authority of the identity authentication certificate based on the intelligent contract, and determining whether the client equipment is allowed to operate the data in the subscription relation service which the client equipment requests to access according to a verification result.

Description

Service processing method, device and system based on block chain
Technical Field
The invention relates to the technical field of data processing, in particular to a service processing method, device and system based on a block chain.
Background
The Service support system often causes the problem of data inconsistency due to reasons such as abnormal ordering, high real-time performance and resource requirements under the multi-link scene of long flows of a first-level Service Operation support system (BOSS) direct connection Service, a Mobile Information Service Center (MISC) access Service and the like. As can be seen from the schematic flow diagram of the ordering relationship of the first-level BOSS direct-connection service shown in fig. 1, the ordering relationship of the first-level BOSS direct-connection service has many links and a long flow. As can be seen from the schematic flow chart of the subscription relationship of the MISC access service shown in fig. 2, the subscription relationship of the MISC access service has many links and a long flow. In the scenarios such as fig. 1 and fig. 2, the data inconsistency problem often occurs due to abnormal subscription, high real-time performance and resource requirement.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a service processing method, apparatus, and system based on a block chain.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a service processing method based on a block chain, which is applied to node equipment in a block chain network, wherein ordering relation data is stored in the block chain network, and the ordering relation service is realized through an intelligent contract, and the method also comprises the following steps:
receiving an order relation service access request sent by client equipment through an interface provided by a blockchain; wherein, the subscription relation service access request carries an identity authentication certificate;
and verifying the authority of the identity authentication certificate based on the intelligent contract, and determining whether the client equipment is allowed to operate the data in the subscription relation service which the client equipment requests to access according to a verification result.
In the foregoing solution, optionally, the storing subscription relationship data in the blockchain network includes:
receiving a request for creating a transaction proposal sent by client equipment;
and executing simulated transaction on the transaction proposal creating request based on the intelligent contract, and returning a corresponding proposal execution result to the client equipment so that the client equipment performs feasibility verification on the proposal execution result fed back by each node equipment according to the endorsement policy.
In the foregoing scheme, optionally, the method further includes:
receiving a transaction corresponding to the transaction proposal creating request sent by the client equipment; wherein the transaction is sent by the client device after passing the feasibility verification;
distributing the transaction to a node device in a blockchain network for verification of the transaction by the node device;
and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network.
In the foregoing solution, optionally, before distributing the transaction to a node device in a blockchain network, the method further includes:
ordering the transactions;
packing the transaction into a block based on the sorting result to distribute the block containing the transaction into node devices in a blockchain network.
In the foregoing scheme, optionally, the method further includes:
if a certain node device in the blockchain network is down, after the node device is recovered to be normal, the ordering relation data corresponding to the transaction which has occurred during the down period are automatically synchronized from other node devices.
In the foregoing scheme, optionally, the method further includes:
if the order relation data of a certain node device in the block chain network is lost, when the node device is added into the block chain network again, the order relation data of other node devices are automatically resynchronized to the node device.
The embodiment of the invention also provides a service processing method based on the block chain, which is applied to client equipment in the block chain network, the block chain network stores order relation data, and the order relation service is realized by an intelligent contract, the method also comprises the following steps:
sending an order relation service access request to node equipment in a blockchain network through an interface provided by a blockchain, verifying the authority of the identity authentication certificate by the node equipment based on an intelligent contract, and determining whether to allow the client equipment to operate data in the order relation service which the client equipment requests to access according to a verification result; wherein, the subscription relation service access request carries an identity authentication certificate;
and receiving a response result of the subscription relationship service access request returned by the node equipment.
In the foregoing scheme, optionally, the method further includes:
sending a transaction proposal creating request to node equipment in a block chain network, so that each node equipment executes simulated transaction on the transaction proposal creating request based on an intelligent contract;
receiving a proposal execution result returned by each node device;
and carrying out feasibility verification on the proposal execution result fed back by each node device according to the endorsement strategy.
In the foregoing scheme, optionally, the method further includes:
after the feasibility verification is passed through by the transaction proposal creating request, sending a transaction corresponding to the transaction proposal creating request so as to verify the transaction by the node equipment, and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network;
and receiving a check result notification returned by the node equipment.
In the foregoing solution, optionally, the sending the transaction corresponding to the request for creating the transaction proposal includes:
submitting a transaction proposal corresponding to the transaction proposal creation request to a sorting service in the blockchain network to sort the transactions by the sorting service, and packaging the transactions into one block based on a sorting result to distribute the block containing the transactions to node devices in the blockchain network.
In the foregoing scheme, optionally, the method further includes:
if the client device is down before the transaction corresponding to the transaction proposal creating request is sent and the verification result notification is not received, the transaction occurring in the down period or the transaction in the specified interval is processed automatically after the client device is recovered to be normal.
Wherein processing transactions that occur during the downtime comprises:
determining a new starting point for receiving a block according to the recorded number of processed transactions, wherein the block comprises a plurality of transactions;
from the new starting point of the receiving, a transaction that has occurred at the blockchain network level is received.
The embodiment of the present invention further provides a service processing apparatus based on a blockchain, which is applied to a node device in a blockchain network, where ordering relationship data is stored in the blockchain network, and an ordering relationship service is implemented by an intelligent contract, and the apparatus further includes:
the first communication module is used for receiving an order relation service access request sent by client equipment through an interface provided by a blockchain; wherein, the subscription relation service access request carries an identity authentication certificate;
and the first processing module is used for verifying the authority of the identity authentication certificate based on the intelligent contract and determining whether the client equipment is allowed to operate the data in the subscription relationship service which the client equipment requests to access according to a verification result.
In the foregoing solution, optionally, the first communication module is further configured to receive a request for creating a transaction proposal sent by a client device;
the first processing module is further used for executing simulated transaction on the request for creating the transaction proposal based on the intelligent contract;
the first communication module is further configured to return a corresponding proposal execution result to the client device, so that the client device performs feasibility verification on the proposal execution result fed back by each node device according to the endorsement policy.
In the foregoing solution, optionally, the first communication module is further configured to receive a transaction sent by a client device and corresponding to the request for creating a transaction proposal; wherein the transaction is sent by the client device after passing the feasibility verification;
the first processing module is further configured to distribute the transaction to a node device in a blockchain network, so that the node device verifies the transaction; and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network.
In the foregoing scheme, optionally, the first processing module is further configured to: ordering the transactions before distributing the transactions to node devices in a blockchain network; packing the transaction into a block based on the sorting result to distribute the block containing the transaction into node devices in a blockchain network.
In the foregoing scheme, optionally, the first processing module is further configured to: if a certain node device in the blockchain network is down, after the node device is recovered to be normal, the ordering relation data corresponding to the transaction which has occurred during the down period are automatically synchronized from other node devices.
In the foregoing scheme, optionally, the first processing module is further configured to: if the order relation data of a certain node device in the block chain network is lost, when the node device is added into the block chain network again, the order relation data of other node devices are automatically resynchronized to the node device.
The embodiment of the invention also provides a service processing device based on the block chain, which is applied to client equipment in the block chain network, the block chain network stores order relation data, and the order relation service is realized by an intelligent contract, the method also comprises the following steps:
the second communication module is used for sending an order relation service access request to node equipment in a blockchain network through an interface provided by a blockchain, so that the node equipment verifies the authority of the identity authentication certificate based on an intelligent contract, and whether the client equipment is allowed to operate data in the order relation service which the client equipment requests to access is determined according to a verification result; wherein, the subscription relation service access request carries an identity authentication certificate; and receiving a response result of the subscription relationship service access request returned by the node equipment.
In the foregoing solution, optionally, the second communication module is configured to send a request for creating a transaction proposal to node devices in a blockchain network, so that each node device executes a simulated transaction on the request for creating a transaction proposal based on an intelligent contract;
the device further comprises:
the second processing module is used for receiving the proposal execution result returned by each node device; and carrying out feasibility verification on the proposal execution result fed back by each node device according to the endorsement strategy.
In the foregoing scheme, optionally, the second communication module is further configured to:
after the feasibility verification is passed through by the transaction proposal creating request, sending a transaction corresponding to the transaction proposal creating request so as to verify the transaction by the node equipment, and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network;
and receiving a check result notification returned by the node equipment.
In the foregoing scheme, optionally, the second communication module is further configured to:
submitting a transaction proposal corresponding to the transaction proposal creation request to a sorting service in the blockchain network to sort the transactions by the sorting service, and packaging the transactions into one block based on a sorting result to distribute the block containing the transactions to node devices in the blockchain network.
In the foregoing scheme, optionally, the second processing module is further configured to:
if the client device is down before the transaction corresponding to the transaction proposal creating request is sent and the verification result notification is not received, the transaction occurring in the down period or the transaction in the specified interval is processed automatically after the client device is recovered to be normal.
Wherein processing transactions that occur during the downtime comprises:
determining a new starting point for receiving a block according to the recorded number of processed transactions, wherein the block comprises a plurality of transactions;
from the new starting point of the receiving, a transaction that has occurred at the blockchain network level is received.
The embodiment of the invention also provides a service processing system based on the block chain, which comprises: a client device and a node device; wherein the content of the first and second substances,
the client device is used for sending an order relation service access request to the node device in the blockchain network through an interface provided by the blockchain;
the node equipment is used for receiving an order relation service access request sent by the client equipment through an interface provided by a block chain; wherein, the subscription relation service access request carries an identity authentication certificate; and verifying the authority of the identity authentication certificate based on the intelligent contract, and determining whether the client equipment is allowed to operate the data in the subscription relation service which the client equipment requests to access according to a verification result.
An embodiment of the present invention further provides a node device, where the node device includes: a first processor and a first memory for storing a computer program operable on the first processor; wherein the content of the first and second substances,
the first processor is configured to execute, when running the computer program, steps of a traffic processing method applied to a node device in a blockchain network.
An embodiment of the present invention further provides a client device, where the client device includes: a second processor and a second memory for storing a computer program operable on the second processor; wherein the content of the first and second substances,
the second processor is configured to execute, when running the computer program, steps of a service processing method applied to a client device in a blockchain network.
The embodiment of the present invention further provides a computer storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the service processing method applied to the node device in the blockchain network according to the embodiment of the present invention are implemented.
The embodiment of the present invention further provides a computer storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the service processing method applied to the client device in the blockchain network according to the embodiment of the present invention are implemented.
The business processing method, the device and the system based on the block chain provided by the embodiment of the invention receive an order relation business access request sent by client equipment through an interface provided by the block chain; wherein, the subscription relation service access request carries an identity authentication certificate; verifying the authority of the identity authentication certificate based on an intelligent contract, and determining whether the client equipment is allowed to operate the data in the ordering relation service which the client equipment requests to access according to a verification result; by adopting the technical scheme of the embodiment of the invention, the data of the ordering relationship is stored through the block chain, the problem of inconsistent data in all scenes of the ordering relationship can be solved, and the expandability is strong.
Drawings
Fig. 1 is a schematic flow chart illustrating a subscription relationship of a conventional one-level BOSS direct connection service;
fig. 2 is a schematic flow chart of a subscription relationship of a conventional MISC access service;
fig. 3 is a schematic flowchart of a service processing method based on a block chain according to a first embodiment of the present invention;
fig. 4 is a flowchart illustrating a service processing method based on a block chain according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service processing apparatus based on a block chain according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of another composition structure of a service processing apparatus based on a block chain according to a fourth embodiment of the present invention;
fig. 7 is a flowchart illustrating a subscription relationship in a blockchain network according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Example one
The embodiment of the invention provides a service processing method applied to node equipment in a block chain network. Fig. 3 is a schematic flowchart of a service processing method based on a block chain according to a first embodiment of the present invention; as shown in fig. 3, the method includes:
step 301: receiving an order relation service access request sent by client equipment through an interface provided by a blockchain; wherein, the subscription relation service access request carries an identity authentication certificate.
Here, the client device is installed with a blockchain client, and the interface provided by the blockchain is provided by the blockchain client and is an independent application.
Here, the client device may be a device located at a mobile provincial company or a mobile branch company or a third party service platform side.
That is, on provincial companies, branch companies, and third party platforms, blockchain clients are deployed. The blockchain client may be deployed separately and provide an application programming interface, such as a REST API, to the outside, or may be integrated into an provincial corporate application.
Here, REST, an abbreviation of Representational State Transfer, means "presentation layer State conversion" by direct translation, which is an api (application Programming interface) design concept of internet applications.
Optionally, the identity authentication certificate carries user right information.
Here, the authentication Certificate is uniformly issued by a Certificate Authority (CA) Server (Server); the issued objects include, but are not limited to, provincial companies, platforms, and third parties.
For example, the subscription relationship service access request may be to view transaction data of a certain platform.
Here, the subscription relationship service includes, but is not limited to, a large circle type transaction, a store-and-forward type transaction.
Here, the large circle type transaction can be understood as a transaction of a type in which a service request and a service response are provided on a service.
Here, the store-and-forward transaction may be understood as that a service initiator sends a service request to a mesh network system, and the mesh network system immediately responds to a response message and indicates that the request is received after completing operations such as message verification. At which point the transaction is considered to be successfully completed by the service originator. The mesh network system is responsible for successfully forwarding the service request to the corresponding home party for processing.
Step 302: and verifying the authority of the identity authentication certificate based on the intelligent contract, and determining whether the client equipment is allowed to operate the data in the subscription relation service which the client equipment requests to access according to a verification result.
Wherein the subscription relationship service is implemented by an intelligent contract.
Because the order relation service in the block chain service network is realized by the intelligent contract, the corresponding authority in the identity authentication certificate can be verified in the intelligent contract, and whether the corresponding data can be operated or not is determined.
For example, the client device a sends a subscription relationship service access request a to the node device through an interface provided by the blockchain; the subscription relation service access request a is used for representing a subscription relation service accessing the client device B, and the subscription relation service access request a carries an identity authentication certificate a1 of the client device a; the node device verifies the authority of the authentication certificate a1 based on the smart contract, and determines whether to allow the client device a to operate the data of the subscription relationship service of the client device B which it requests to access, according to the verification result. If the client device A has the authority to access the data of the subscription relationship service of the client device B, the node device determines to permit the client device A to operate the data of the subscription relationship service of the client device B which the node device requests to access based on the smart contract. If the client device A does not have the authority to access the data of the subscription relationship service of the client device B, the node device determines the data of the subscription relationship service of the client device B which cannot be accessed by the client device A based on the intelligent contract.
That is, the client device may request access to the subscription relationship data of other client devices from the node device, specifically whether to permit the request to be determined by the node device based on the smart contract.
For another example, the client device a sends a subscription relationship service access request a to the node device through an interface provided by the blockchain; the subscription relation service access request a is used for representing a subscription relation service accessing the client device a, and the subscription relation service access request a carries an identity authentication certificate a1 of the client device a; the node device verifies the authority of the authentication certificate a1 based on the smart contract, and determines whether to allow the client device a to operate the data of the subscription relationship service of the client device a which the node device has requested access, according to the verification result.
That is, the client device may apply to the node device for access to its subscription relationship data.
Typically, there are several provincial companies and several platforms in a blockchain network. The transaction between province company and platform, not intended to be seen by other provinces, can now be achieved by the following steps:
1. when an identity authentication certificate is issued, corresponding user permission information is added to the certificate;
2. when provincial companies, platforms and third parties use the blockchain client to access the order relation service in the blockchain service network, the identity authentication certificate of the provincial companies, the platforms and the third parties needs to be used; if the identity authentication certificate does not exist, the blockchain client cannot be started normally, and the blockchain service network cannot be accessed normally;
3. because the order relation service in the block chain service network is realized by the intelligent contract, the corresponding authority in the identity authentication certificate can be verified in the intelligent contract, and whether the corresponding data can be operated or not is determined.
By adopting the technical scheme of the embodiment of the invention, the data of the ordering relationship is stored through the block chain, the problem of inconsistent data in all scenes of the ordering relationship can be solved, and the expandability is strong.
In this embodiment, the process of storing the order relationship data in the blockchain network includes:
step 303 (not shown in the figures): the node device receives a create transaction proposal request sent by the client device.
Step 304 (not shown in the figures): the node equipment executes simulated transaction to the transaction proposal creating request based on the intelligent contract, and returns a corresponding proposal execution result to the client equipment, so that the feasibility verification is performed on the proposal execution result fed back by each node equipment by the client equipment according to the endorsement policy.
Here, the node devices described in steps 303 and 304 may be understood as endorsement nodes.
Here, the feasibility verification may be understood as validity verification.
Here, the client application needs to verify the proposal execution result according to the endorsement policy. For example, the endorsement policy may be set to: if the proposal execution results returned by y% endorsement nodes are consistent, the transaction is considered to be submittable, i.e. the transaction is confirmed to be legal. For example, y is greater than a certain value, such as y 51.
In the foregoing scheme, optionally, the method further includes:
step 305 (not shown in the figure): the node equipment receives a transaction which is sent by the client equipment and corresponds to the transaction proposal creating request; wherein the transaction is sent by the client device after the feasibility verification is passed.
Specifically, after verifying that the proposal result is legal, the client device submits the transaction to a ranking service in the blockchain network, so that the ranking service ranks the transaction.
Generally, after the ranking service successfully receives the transaction, a notification is returned to the client device that the transaction has been submitted.
Here, if the client device does not need to return a subsequent verification result notification, it may complete its own business process after receiving the notification that the transaction has been submitted.
Step 306 (not shown in the figures): the node device distributes the transaction to node devices in a blockchain network for verification of the transaction by the node devices.
Optionally, before distributing the transaction to a node device in a blockchain network, the method further includes:
ranking the transactions by a ranking service in a blockchain network;
the ordering service packs the transaction into a block based on the ordering result to distribute the block containing the transaction to node devices in a blockchain network.
Step 307 (not shown in the figure): and after the verification is passed, the node equipment adds the ordering relation data corresponding to the transaction into the blockchain network.
Step 308 (not shown in the figures): and the node equipment returns a verification result notice to the client equipment connected with the node equipment.
For example, a transaction d sent by the client device a, the node device 1 completes verification, stores the order relationship data corresponding to the transaction d into the node device 1, and notifies the client device a at the same time; after the verification is completed, the node device 2 stores the order relation data corresponding to the transaction d into the node device 2, and notifies the client device a.
Here, the node device described in steps 305 to 308 may be understood as a commit node.
Thus, the above flow shows a normal processing flow of the order relation transaction when no abnormality occurs in the blockchain, and the following description is further specifically given.
Specifically, the normal processing flow of the subscription relationship transaction when no exception occurs in the blockchain may include:
1. the application creates a transaction proposal through the blockchain client and sends the proposal to an endorsement node in the blockchain network. The number of endorsement nodes will vary depending on the service features. The block chain service network can flexibly define the endorsement strategy. 2. The endorsement node executes the intelligent contract, namely, performs the simulated transaction; and the execution result of the intelligent contract is contained in the proposal result and returned to the block chain client. The transaction performed at this step is not actually written to the database. 3. And the block chain client collects the proposal results of all endorsement nodes and verifies the proposal results. The client application program needs to verify the proposal result according to the endorsement policy. For example: it can be set that 60% of the endorsement nodes return the same proposal result, and the transaction is considered to be submittable. 4. After the client application program verifies that the proposal is legal, the client submits the transaction to a sequencing service in the blockchain network to sequence the transaction. After the ordering service successfully receives the transaction, the blockchain client receives a notification that the transaction has been submitted. If the application program does not need to return the verification result, the service processing of the application program can be completed after the notification is received. 5. The ordering service packages received transactions in batches into tiles and distributes them to commit nodes in a blockchain network. Normally, all nodes in a blockchain network are commit nodes. 6. And after the submitting node receives the block, performing transaction verification. After verification is complete, the block is added to the blockchain. And notifies the blockchain client connected to the current node of the verification result. 7. And when the client receives the notification event, performing corresponding business processing according to the verification result of the transaction.
Further optionally, the method further comprises:
if a certain node device in the blockchain network is down, after the node device is recovered to be normal, the ordering relation data corresponding to the transaction which has occurred during the down period are automatically synchronized from other node devices.
Further optionally, the method further comprises:
if the order relation data of a certain node device in the block chain network is lost, when the node device is added into the block chain network again, the order relation data of other node devices are automatically resynchronized to the node device.
Here, the cause of the data loss may be a disk damage.
Therefore, an exception handling process of the order relation transaction when the block chain is abnormal is provided.
It should be noted that, in this embodiment, after the blockchain scheme is used, the transaction flows of the large circle type transaction and the store-and-forward type transaction are consistent. The block chain client can realize synchronous calling, asynchronous calling and calling without returning results by setting different parameters. Therefore, large circle class and store-and-forward class transaction are not distinguished any more, and can be collectively called as a blockchain ordering relationship transaction flow.
By adopting the technical scheme of the embodiment of the invention, the problem of inconsistent data in all scenes of the ordering relationship can be solved, and the expandability is strong. Specifically, the block chain stores the ordering relationship data, so that the ordering relationship data consistency of each node can be guaranteed; different nodes process different types of transactions, the functions of all nodes are different, and the multi-channel technology is utilized to realize physical isolation of different service data; realizing data authority control by using an access control strategy; the intelligent contract technology ensures that the service processing programs of all the nodes are the same, realizes the standardization of the service process and avoids the problem of inconsistent data caused by different service processing programs.
Example two
The embodiment of the invention provides a service processing method applied to client equipment in a block chain network. Fig. 4 is a flowchart illustrating a service processing method based on a block chain according to a second embodiment of the present invention; as shown in fig. 4, the method includes:
step 401: sending an order relation service access request to node equipment in a blockchain network through an interface provided by a blockchain, verifying the authority of the identity authentication certificate by the node equipment based on an intelligent contract, and determining whether to allow the client equipment to operate data in the order relation service which the client equipment requests to access according to a verification result; wherein, the subscription relation service access request carries an identity authentication certificate.
Step 402: and receiving a response result of the subscription relationship service access request returned by the node equipment.
Because the order relation service in the block chain service network is realized by the intelligent contract, the corresponding authority in the identity authentication certificate can be verified in the intelligent contract, and whether the corresponding data can be operated or not is determined.
By adopting the technical scheme of the embodiment of the invention, the data of the ordering relationship is stored through the block chain, the problem of inconsistent data in all scenes of the ordering relationship can be solved, and the expandability is strong.
In the foregoing scheme, optionally, the method further includes:
the method comprises the steps that client equipment sends a transaction proposal creating request to node equipment in a block chain network, and each node equipment executes simulated transaction on the transaction proposal creating request based on an intelligent contract;
the client equipment receives a proposal execution result returned by each node equipment;
the client equipment carries out feasibility verification on the proposal execution result fed back by each node equipment according to the endorsement strategy;
wherein the node device can be understood as an endorsement node.
In the foregoing scheme, optionally, the method further includes:
after the feasibility verification is passed through by the transaction proposal creating request, the client equipment sends a transaction corresponding to the transaction proposal creating request so as to verify the transaction by the node equipment, and after the verification is passed, the ordering relation data corresponding to the transaction is added into the blockchain network;
the client equipment receives a check result notification returned by the node equipment;
wherein the node device may be understood as a submitting node.
Specifically, the sending the transaction corresponding to the request for creating the transaction proposal includes:
the client device submits a transaction proposal corresponding to the transaction proposal creation request to a sorting service in the blockchain network so as to sort the transactions by the sorting service, and packages the transactions into a block based on a sorting result so as to distribute the block containing the transactions to node devices in the blockchain network;
wherein the node device may be understood as a submitting node.
Further, upon successful receipt of the transaction by the ranking service, a notification is returned to the client device that the transaction was submitted. Here, if the blockchain client does not need to return a subsequent check result, it can complete its own service processing after receiving the notification.
Specifically, the ordering service orders the transaction proposals, packs the transaction proposals into a block based on an ordering result, and distributes the block to a submission node in a block chain network, so that the submission node checks order relationship data corresponding to each transaction proposal in the block; after the submitting node receives the (block), transaction verification is carried out. After the verification is completed, (blocks) are added into the block chain, and the verification result is informed to the block chain client connected to the current node.
In the foregoing scheme, optionally, the method further includes:
if the client device is down before the transaction corresponding to the transaction proposal creating request is sent and the verification result notification is not received, the transaction occurring in the down period or the transaction in the specified interval is processed automatically after the client device is recovered to be normal.
Wherein processing transactions that occur during the downtime comprises:
determining a new starting point for receiving a block according to the recorded number of processed transactions, wherein the block comprises a plurality of transactions;
from the new starting point of the receiving, a transaction that has occurred at the blockchain network level is received.
Thus, the above flow gives the processing flow of the client when the block chain is abnormal.
Specifically, after the client sends the transaction, the client is down before receiving the response, and the blockchain client provides a relatively perfect fault recovery capability, and the method has the following aspects:
after the application is recovered, transactions that occurred during the failure need to be processed. This requirement is most common, and the blockchain client needs to record the latest height of the block (i.e. the number of processed blocks) that has been processed by itself, and after the application program is recovered, set the transaction that has occurred at the network level of the blockchain from this height;
after the application is recovered, the transaction occurring in the designated interval needs to be processed.
By adopting the technical scheme of the embodiment of the invention, the problem of inconsistent data in all scenes of the ordering relationship can be solved, and the expandability is strong. Specifically, the block chain stores the ordering relationship data, so that the ordering relationship data consistency of each node can be guaranteed; different nodes process different types of transactions, the functions of all nodes are different, and the multi-channel technology is utilized to realize physical isolation of different service data; realizing data authority control by using an access control strategy; the intelligent contract technology ensures that the service processing programs of all the nodes are the same, realizes the standardization of the service process and avoids the problem of inconsistent data caused by different service processing programs.
EXAMPLE III
The embodiment of the invention also provides a service processing device based on the block chain, which is applied to node equipment in the block chain network, wherein the block chain network stores order relation data, and the order relation service is realized by an intelligent contract, and fig. 5 is a schematic diagram of a composition structure of the service processing device based on the block chain; as shown in fig. 5, the apparatus further includes a first communication module 10 and a first processing module 20; wherein the content of the first and second substances,
the first communication module 10 is configured to receive an order relationship service access request sent by a client device through an interface provided by a blockchain; wherein, the subscription relation service access request carries an identity authentication certificate;
the first processing module 20 is configured to verify the authority of the identity authentication certificate based on the smart contract, and determine whether to allow the client device to operate data in the subscription relationship service that the client device requests to access according to a verification result.
As an embodiment, the first communication module 10 is further configured to receive a request for creating a transaction proposal sent by a client device;
the first processing module 20 is further configured to execute a simulated transaction on the request for creating a transaction proposal based on a smart contract;
the first communication module 10 is further configured to return a corresponding proposal execution result to the client device, so that the client device performs feasibility verification on the proposal execution result fed back by each node device according to the endorsement policy.
As an embodiment, the first communication module 10 is further configured to receive a transaction sent by a client device and corresponding to the request for creating a transaction proposal; wherein the transaction is sent by the client device after passing the feasibility verification;
the first processing module 20 is further configured to distribute the transaction to a node device in a blockchain network, so that the node device verifies the transaction; and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network.
As an embodiment, the first processing module 20 is further configured to: ordering the transactions before distributing the transactions to node devices in a blockchain network; packing the transaction into a block based on the sorting result to distribute the block containing the transaction into node devices in a blockchain network.
As an embodiment, the first processing module 20 is further configured to: if a certain node device in the blockchain network is down, after the node device is recovered to be normal, the ordering relation data corresponding to the transaction which has occurred during the down period are automatically synchronized from other node devices.
As an optional implementation manner, the first processing module 20 is further configured to: if the order relation data of a certain node device in the block chain network is lost, when the node device is added into the block chain network again, the order relation data of other node devices are automatically resynchronized to the node device.
It should be noted that: in the above embodiment, when performing service processing, the service processing apparatus based on the block chain is only illustrated by dividing the program modules, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the service processing apparatus is divided into different program modules to complete all or part of the processing described above. In addition, the service processing apparatus provided in the foregoing embodiment and the service processing method applied to the node device in the blockchain network belong to the same concept, and details of a specific implementation process thereof are referred to in the method embodiment and are not described herein again.
In the embodiment of the present invention, in practical application, the first communication module 10 and the first Processing module 20 in the service Processing apparatus may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a programmable gate Array (FPGA) in the service Processing apparatus or a node device where the service Processing apparatus is located.
The service processing device provided by the embodiment of the invention can solve the problem of inconsistent data in all scenes of the ordering relationship.
The service processing device of the embodiment of the invention can be applied to node equipment.
An embodiment of the present invention further provides a node device, where the node device includes: a first processor and a first memory for storing a computer program operable on the first processor; wherein the content of the first and second substances,
the first processor is configured to execute, when running the computer program, steps of a traffic processing method applied to a node device in a blockchain network.
Example four
The embodiment of the invention also provides a service processing device based on the block chain, which is applied to client equipment in the block chain network, wherein the block chain network stores order relation data, and the order relation service is realized by an intelligent contract, and fig. 6 is a schematic diagram of a composition structure of the service processing device based on the block chain; as shown in fig. 6, the apparatus further includes a second communication module 30 and a second processing module 40; wherein the content of the first and second substances,
the second communication module 30 is configured to send an order relation service access request to a node device in a blockchain network through an interface provided by a blockchain, so that the node device verifies the authority of the identity authentication certificate based on an intelligent contract, and determines whether to allow the client device to operate data in the order relation service which the client device requests to access according to a verification result; wherein, the subscription relation service access request carries an identity authentication certificate; and receiving a response result of the subscription relationship service access request returned by the node equipment.
As an optional implementation, the second communication module 30 is configured to send a create transaction proposal request to node devices in the blockchain network, so that each node device performs a simulated transaction on the create transaction proposal request based on a smart contract.
Further, the apparatus further comprises:
the second processing module 40 is configured to receive a proposal execution result returned by each node device; and carrying out feasibility verification on the proposal execution result fed back by each node device according to the endorsement strategy.
As an optional implementation manner, the second communication module 30 is further configured to:
after the feasibility verification is passed through by the transaction proposal creating request, sending a transaction corresponding to the transaction proposal creating request so as to verify the transaction by the node equipment, and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network;
and receiving a check result notification returned by the node equipment.
As an optional implementation manner, the second communication module 30 is further configured to:
submitting a transaction proposal corresponding to the transaction proposal creation request to a sorting service in the blockchain network to sort the transactions by the sorting service, and packaging the transactions into one block based on a sorting result to distribute the block containing the transactions to node devices in the blockchain network.
As an optional implementation manner, the second processing module 40 is further configured to:
if the client device is down before the transaction corresponding to the transaction proposal creating request is sent and the verification result notification is not received, the transaction occurring in the down period or the transaction in the specified interval is processed automatically after the client device is recovered to be normal.
Wherein processing transactions that occur during the downtime comprises:
determining a new starting point for receiving a block according to the recorded number of processed transactions, wherein the block comprises a plurality of transactions;
from the new starting point of the receiving, a transaction that has occurred at the blockchain network level is received.
It should be noted that: in the above embodiment, when performing service processing, the service processing apparatus based on the block chain is only illustrated by dividing the program modules, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the service processing apparatus is divided into different program modules to complete all or part of the processing described above. In addition, the service processing apparatus provided in the foregoing embodiment and the service processing method embodiment applied to the client device in the blockchain network belong to the same concept, and details of a specific implementation process thereof are referred to in the method embodiment and are not described herein again.
In the embodiment of the present invention, the second communication module 30 and the second processing module 40 in the service processing apparatus can be implemented by a CPU, a DSP, an MCU, or an FPGA, etc. in the service processing apparatus or in a client device where the service processing apparatus is located in actual application.
The service processing device provided by the embodiment of the invention can solve the problem of inconsistent data in all scenes of the ordering relationship.
The service processing device of the embodiment of the invention can be applied to client equipment.
An embodiment of the present invention further provides a client device, where the client device includes: a second processor and a second memory for storing a computer program operable on the second processor; wherein the content of the first and second substances,
the second processor is configured to execute, when running the computer program, steps of a service processing method applied to a client device in a blockchain network.
EXAMPLE five
The embodiment of the invention also provides a service processing system based on the block chain, which comprises: a client device and a node device; wherein the content of the first and second substances,
the client device is used for sending an order relation service access request to the node device in the blockchain network through an interface provided by the blockchain;
the node equipment is used for receiving an order relation service access request sent by the client equipment through an interface provided by a block chain; wherein, the subscription relation service access request carries an identity authentication certificate; and verifying the authority of the identity authentication certificate based on the intelligent contract, and determining whether the client equipment is allowed to operate the data in the subscription relation service which the client equipment requests to access according to a verification result.
Further, the client device is further configured to send a transaction proposal creation request to node devices in the blockchain network, so that each node device executes a simulated transaction on the transaction proposal creation request based on an intelligent contract; the node equipment is also used for receiving a transaction proposal creation request sent by the client equipment; executing a simulated transaction on the create transaction proposal request based on a smart contract; and returning a corresponding proposal execution result to the client equipment, so that the client equipment performs feasibility verification on the proposal execution result fed back by each node equipment according to the endorsement policy.
Further, the client device is further configured to send a transaction corresponding to the transaction proposal creation request after the transaction proposal creation request passes feasibility verification, so that the node device verifies the transaction, and add the subscription relationship data corresponding to the transaction into the blockchain network after the verification passes; receiving a check result notification returned by the node equipment; the node equipment is also used for receiving the transaction which is sent by the client equipment and corresponds to the request for establishing the transaction proposal; wherein the transaction is sent by the client device after passing the feasibility verification; distributing the transaction to a node device in a blockchain network for verification of the transaction by the node device; and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network.
In practical applications, there are multiple mobile provincial companies, multiple mobile branch companies and multiple third party platforms in a blockchain network. The block chain service system stores the ordering relation data in a block chain network, realizes the service of the ordering relation through an intelligent contract, provides an access interface for the outside, and operates the ordering relation service through the interface provided by the block chain in a unified way by the mobile province company, the mobile branch company and the third-party platform. For example, mobile provincial companies, mobile affiliates, and third party platforms unify access to subscription relationship data through interfaces provided by blockchains. The block chain service system utilizes a distributed consensus mechanism and a gossip protocol to ensure the data consistency among different nodes in a block chain network. Fig. 7 is a schematic flow chart illustrating a subscription relationship in a blockchain network according to an embodiment of the present invention, and as shown in fig. 7, transactions between a BOSS platform or a service platform and a blockchain node are independent from each other. The BOSS platform or the service platform sends a transaction request to the block chain nodes, and the block chain nodes respond to a transaction result based on the intelligent contract and the ordering relation data; and returns a transaction result notice to the BOSS platform or the service platform.
After the business processing system described in this embodiment uses the block chain scheme, the transaction flows of the large circle type transaction and the store-and-forward type transaction are consistent. The block chain client can realize synchronous calling, asynchronous calling and calling without returning results by setting different parameters. Therefore, large circle type and store-and-forward type transaction are not distinguished any more, and are unified into a block chain ordering relationship transaction flow.
Here, the large circle type transaction refers to a transaction having a service request and a service response type on a service.
Here, the store-and-forward transaction means that a service initiator sends a service request to a mesh network system, and the mesh network system immediately responds to a response message and indicates that the request is received after completing operations such as message verification and the like. At which point the transaction is considered to be successfully completed by the service originator. The mesh network system is responsible for successfully forwarding the service request to the corresponding home party for processing.
When a mobile province company, a mobile branch company and a third-party platform use a block chain client to access an order relation service in a block chain service network, the mobile province company, the mobile branch company and the third-party platform must use an identity authentication certificate of the mobile province company, and the identity authentication certificate adds corresponding user authority information. If there is no authentication certificate, the blockchain client cannot be started normally, and thus cannot access the blockchain service network normally. Because the order relation service in the block chain service network is realized by the intelligent contract, the corresponding authority in the identity authentication certificate can be verified in the intelligent contract, and whether the corresponding data can be operated or not is determined.
The business processing system of the embodiment of the invention can solve the problem of inconsistent data in all scenes of the ordering relationship.
EXAMPLE six
An embodiment of the present invention further provides a computer storage medium, where the computer program is executable by a first processor to perform the steps of the foregoing service processing method applied to a node device in a blockchain network. The computer storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by a first processor to realize that:
receiving an order relation service access request sent by client equipment through an interface provided by a blockchain; wherein, the subscription relation service access request carries an identity authentication certificate; and verifying the authority of the identity authentication certificate based on the intelligent contract, and determining whether the client equipment is allowed to operate the data in the subscription relation service which the client equipment requests to access according to a verification result.
As an embodiment, the instructions when executed by the first processor implement:
receiving a request for creating a transaction proposal sent by client equipment; and executing simulated transaction on the transaction proposal creating request based on the intelligent contract, and returning a corresponding proposal execution result to the client equipment so that the client equipment performs feasibility verification on the proposal execution result fed back by each node equipment according to the endorsement policy.
As an embodiment, the instructions when executed by the first processor implement:
receiving a transaction corresponding to the transaction proposal creating request sent by the client equipment; wherein the transaction is sent by the client device after passing the feasibility verification; distributing the transaction to a node device in a blockchain network for verification of the transaction by the node device; and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network.
EXAMPLE seven
An embodiment of the present invention further provides a computer storage medium, where the computer program is executable by a second processor to perform the steps of the foregoing service processing method applied to a client device in a blockchain network. The computer storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by the second processor to realize that:
sending an order relation service access request to node equipment in a blockchain network through an interface provided by a blockchain, verifying the authority of the identity authentication certificate by the node equipment based on an intelligent contract, and determining whether to allow the client equipment to operate data in the order relation service which the client equipment requests to access according to a verification result; wherein, the subscription relation service access request carries an identity authentication certificate; and receiving a response result of the subscription relationship service access request returned by the node equipment.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by the second processor to realize that:
sending a transaction proposal creating request to node equipment in a block chain network, so that each node equipment executes simulated transaction on the transaction proposal creating request based on an intelligent contract; receiving a proposal execution result returned by each node device; and carrying out feasibility verification on the proposal execution result fed back by each node device according to the endorsement strategy.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by the second processor to realize that: after the feasibility verification is passed through by the transaction proposal creating request, sending a transaction corresponding to the transaction proposal creating request so as to verify the transaction by the node equipment, and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network; and receiving a check result notification returned by the node equipment.
In the several embodiments provided in the present application, it should be understood that the disclosed server and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (11)

1. A service processing method based on block chain is applied to node equipment in a block chain network, and is characterized in that order relation data is stored in the block chain network, and order relation service is realized through an intelligent contract, and the method also comprises the following steps:
receiving an order relation service access request sent by client equipment through an interface provided by a blockchain; wherein, the subscription relation service access request carries an identity authentication certificate;
and verifying the authority of the identity authentication certificate based on the intelligent contract, and determining whether the client equipment is allowed to operate the data in the subscription relation service which the client equipment requests to access according to a verification result.
2. The method of claim 1, wherein the storing of subscription relationship data in a blockchain network comprises:
receiving a request for creating a transaction proposal sent by client equipment;
and executing simulated transaction on the transaction proposal creating request based on the intelligent contract, and returning a corresponding proposal execution result to the client equipment so that the client equipment performs feasibility verification on the proposal execution result fed back by each node equipment according to the endorsement policy.
3. The method of claim 2, wherein the block chain network stores subscription relationship data, further comprising:
receiving a transaction corresponding to the transaction proposal creating request sent by the client equipment; wherein the transaction is sent by the client device after passing the feasibility verification;
distributing the transaction to a node device in a blockchain network for verification of the transaction by the node device;
and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network.
4. A service processing method based on block chain is applied to client equipment in a block chain network, and is characterized in that order relation data is stored in the block chain network, and order relation service is realized through an intelligent contract, and the method also comprises the following steps:
sending an order relation service access request to node equipment in a blockchain network through an interface provided by a blockchain, verifying the authority of the identity authentication certificate by the node equipment based on an intelligent contract, and determining whether to allow the client equipment to operate data in the order relation service which the client equipment requests to access according to a verification result; wherein, the subscription relation service access request carries an identity authentication certificate;
and receiving a response result of the subscription relationship service access request returned by the node equipment.
5. The method of claim 4, further comprising:
sending a transaction proposal creating request to node equipment in a block chain network, so that each node equipment executes simulated transaction on the transaction proposal creating request based on an intelligent contract;
receiving a proposal execution result returned by each node device;
and carrying out feasibility verification on the proposal execution result fed back by each node device according to the endorsement strategy.
6. The method of claim 5, further comprising:
after the feasibility verification is passed through by the transaction proposal creating request, sending a transaction corresponding to the transaction proposal creating request so as to verify the transaction by the node equipment, and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network;
and receiving a check result notification returned by the node equipment.
7. A service processing device based on a block chain is applied to a node device in a block chain network, and is characterized in that the device further comprises:
the first communication module is used for receiving an order relation service access request sent by client equipment through an interface provided by a blockchain; wherein, the subscription relation service access request carries an identity authentication certificate;
and the first processing module is used for verifying the authority of the identity authentication certificate based on the intelligent contract and determining whether the client equipment is allowed to operate the data in the subscription relationship service which the client equipment requests to access according to a verification result.
8. The apparatus of claim 7,
the first communication module is also used for receiving a request for creating a transaction proposal sent by the client equipment;
the first processing module is further used for executing simulated transaction on the request for creating the transaction proposal based on the intelligent contract;
the first communication module is further configured to return a corresponding proposal execution result to the client device, so that the client device performs feasibility verification on the proposal execution result fed back by each node device according to the endorsement policy;
the first communication module is further configured to receive a transaction corresponding to the request for creating a transaction proposal, which is sent by the client device; wherein the transaction is sent by the client device after passing the feasibility verification;
the first processing module is further configured to distribute the transaction to a node device in a blockchain network, so that the node device verifies the transaction; and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network.
9. A service processing device based on a block chain, applied to a client device in a block chain network, the device comprising:
the second communication module is used for sending an order relation service access request to node equipment in a blockchain network through an interface provided by a blockchain, so that the node equipment verifies the authority of the identity authentication certificate based on an intelligent contract, and whether the client equipment is allowed to operate data in the order relation service which the client equipment requests to access is determined according to a verification result; wherein, the subscription relation service access request carries an identity authentication certificate; and receiving a response result of the subscription relationship service access request returned by the node equipment.
10. The apparatus of claim 9,
the second communication module is further configured to send a transaction proposal creation request to node devices in the blockchain network, so that each node device executes a simulated transaction on the transaction proposal creation request based on an intelligent contract;
the device further comprises:
the second processing module is used for receiving the proposal execution result returned by each node device; carrying out feasibility verification on the proposal execution result fed back by each node device according to the endorsement strategy;
the second communication module is further configured to: after the feasibility verification is passed through by the transaction proposal creating request, sending a transaction corresponding to the transaction proposal creating request so as to verify the transaction by the node equipment, and after the verification is passed, adding the ordering relation data corresponding to the transaction into the blockchain network; and receiving a check result notification returned by the node equipment.
11. A service processing system based on a block chain, the service processing system comprising: a client device and a node device; wherein the content of the first and second substances,
the client device is used for sending an order relation service access request to the node device in the blockchain network through an interface provided by the blockchain;
the node equipment is used for receiving an order relation service access request sent by the client equipment through an interface provided by a block chain; wherein, the subscription relation service access request carries an identity authentication certificate; and verifying the authority of the identity authentication certificate based on the intelligent contract, and determining whether the client equipment is allowed to operate the data in the subscription relation service which the client equipment requests to access according to a verification result.
CN201811521078.2A 2018-12-12 2018-12-12 Service processing method, device and system based on block chain Pending CN111311254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811521078.2A CN111311254A (en) 2018-12-12 2018-12-12 Service processing method, device and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811521078.2A CN111311254A (en) 2018-12-12 2018-12-12 Service processing method, device and system based on block chain

Publications (1)

Publication Number Publication Date
CN111311254A true CN111311254A (en) 2020-06-19

Family

ID=71144663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811521078.2A Pending CN111311254A (en) 2018-12-12 2018-12-12 Service processing method, device and system based on block chain

Country Status (1)

Country Link
CN (1) CN111311254A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003903A (en) * 2020-07-29 2020-11-27 北京小米松果电子有限公司 Cluster task scheduling method and device and storage medium
CN113095913A (en) * 2021-04-29 2021-07-09 支付宝(杭州)信息技术有限公司 Block chain-based shopping method
CN113378240A (en) * 2021-06-23 2021-09-10 浪潮云信息技术股份公司 Synchronous calling user identity authentication method based on block chain
CN113821548A (en) * 2021-08-27 2021-12-21 中通服公众信息产业股份有限公司 Block link port calling and packaging method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632268A (en) * 2018-04-28 2018-10-09 腾讯科技(深圳)有限公司 The method for authenticating and device, storage medium, electronic device that block chain accesses
CN108737370A (en) * 2018-04-05 2018-11-02 西安电子科技大学 A kind of cross-domain Verification System of Internet of Things based on block chain and method
CN108833081A (en) * 2018-06-22 2018-11-16 中国人民解放军国防科技大学 Block chain-based equipment networking authentication method
CN108881290A (en) * 2018-07-17 2018-11-23 深圳前海微众银行股份有限公司 Digital certificate application method, system and storage medium based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737370A (en) * 2018-04-05 2018-11-02 西安电子科技大学 A kind of cross-domain Verification System of Internet of Things based on block chain and method
CN108632268A (en) * 2018-04-28 2018-10-09 腾讯科技(深圳)有限公司 The method for authenticating and device, storage medium, electronic device that block chain accesses
CN108833081A (en) * 2018-06-22 2018-11-16 中国人民解放军国防科技大学 Block chain-based equipment networking authentication method
CN108881290A (en) * 2018-07-17 2018-11-23 深圳前海微众银行股份有限公司 Digital certificate application method, system and storage medium based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003903A (en) * 2020-07-29 2020-11-27 北京小米松果电子有限公司 Cluster task scheduling method and device and storage medium
CN113095913A (en) * 2021-04-29 2021-07-09 支付宝(杭州)信息技术有限公司 Block chain-based shopping method
CN113378240A (en) * 2021-06-23 2021-09-10 浪潮云信息技术股份公司 Synchronous calling user identity authentication method based on block chain
CN113821548A (en) * 2021-08-27 2021-12-21 中通服公众信息产业股份有限公司 Block link port calling and packaging method

Similar Documents

Publication Publication Date Title
CN108777625B (en) Signature verification method, device and system, storage medium and electronic device
CN113169952B (en) Container cloud management system based on block chain technology
CN110648137B (en) Block processing method, node and system
CN111311254A (en) Service processing method, device and system based on block chain
US20180308091A1 (en) Fairness preserving byzantine agreements
CN112073269B (en) Block chain network testing method, device, server and storage medium
CN110163755B (en) Block chain-based data compression and query method and device and electronic equipment
CN111400112B (en) Writing method and device of storage system of distributed cluster and readable storage medium
CN111211911B (en) Collaborative signature method, device, equipment and system
CN111698315B (en) Data processing method and device for block and computer equipment
CN1787432B (en) Method and system for authenticating a node requesting another node to perform work
CN113347164A (en) Block chain-based distributed consensus system, method, device and storage medium
CN111046109A (en) Cross-chain task processing method, device and equipment and readable storage medium
CN111737104A (en) Block chain network service platform, test case sharing method thereof and storage medium
CN111026711A (en) Block chain based data storage method and device, computer equipment and storage medium
CN113409047B (en) Data processing method, device and equipment based on block chain and readable storage medium
CN110933022A (en) Block processing method and device, computer equipment and storage medium
CN114422331A (en) Disaster tolerance switching method, device and system
WO2023005500A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
WO2022111658A1 (en) Slice service processing method and apparatus
CN114036560A (en) Charging pile subsidy data management method based on block chain
CN111988473B (en) Voice communication call control method and device based on intelligent contract
CN111683164A (en) IP address configuration method and VPN service system
CN117056084B (en) Data processing method, device, equipment and medium based on hierarchical blockchain network
CN113094757B (en) File fragment system for mimicry storage 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