CN112769878B - Service implementation system and method based on block chain - Google Patents

Service implementation system and method based on block chain Download PDF

Info

Publication number
CN112769878B
CN112769878B CN201911058041.5A CN201911058041A CN112769878B CN 112769878 B CN112769878 B CN 112769878B CN 201911058041 A CN201911058041 A CN 201911058041A CN 112769878 B CN112769878 B CN 112769878B
Authority
CN
China
Prior art keywords
target
user
event
blockchain
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911058041.5A
Other languages
Chinese (zh)
Other versions
CN112769878A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201911058041.5A priority Critical patent/CN112769878B/en
Publication of CN112769878A publication Critical patent/CN112769878A/en
Application granted granted Critical
Publication of CN112769878B publication Critical patent/CN112769878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1053Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • H04L67/1065Discovery involving distributed pre-established resource-based relationships among peers, e.g. based on distributed hash tables [DHT] 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The disclosure provides a service implementation system and method based on a block chain, and relates to the field of block chains. The method and the device have the advantages that the complex service on one block chain is transferred to another block chain, the other block chain directly realizes related service logic on the block chain by using a consensus mechanism, the complex service is completed by means of the efficient on-chain service logic execution capacity of the other block chain, and the execution efficiency of the complex service in a block chain system can be improved compared with the complex service completed by using an intelligent contract.

Description

Service implementation system and method based on block chain
Technical Field
The present disclosure relates to the field of blockchains, and in particular, to a system and a method for implementing a service based on a blockchain.
Background
Intelligent contracts based on blockchains may implement some simpler business logic of transactions. However, since the execution efficiency of the smart contracts is low, if some complex business logic, such as the matching business logic, is also implemented using the smart contracts, the complex business logic may drag the whole common identification block process.
Disclosure of Invention
The method and the device have the advantages that the complex service on one block chain is transferred to another block chain, the other block chain directly realizes related service logic on the block chain by using a consensus mechanism, the complex service is completed by means of the efficient on-chain service logic execution capacity of the other block chain, and the execution efficiency of the complex service in a block chain system can be improved compared with the complex service completed by using an intelligent contract.
Some embodiments of the present disclosure provide a service implementation system based on a block chain, including:
a first block chain, configured to respond to a service request of a user, send a locking event of the first target of the user corresponding to the service request to a gateway node, and respond to an adding success event of the first target of the user sent by the gateway node, and decrease the first target for a first address of the user in the first block chain;
a gateway node configured to capture the lock event, send an add event of the first target of the user to a second blockchain, and send an add success event of the first target of the user to the first blockchain after the second blockchain successfully adds the first target;
and the second block chain realizes preset service logic based on a consensus mechanism of the block chain, is configured to respond to the adding event, add the first target to a second address of the second block chain of the user, and perform service processing on the first target based on the preset service logic.
In some embodiments, the first blockchain includes a first target contract unit and a first gateway contract unit;
the first target contract unit is configured to respond to a service request of a user, and lock the first target of the user corresponding to the service request to a first gateway contract unit;
the first gateway contract unit is configured to issue a lock event of the first target of the user to a gateway node, and to decrement the first target for the user at a first address of the first blockchain in response to an increment success event of the first target of the user issued by the gateway node.
In some embodiments, the second blockchain includes a business logic unit, a second target contract unit, and a second gateway contract unit;
the second gateway contract unit is configured to record to the user to add the first target at a second address of the second block chain in response to the addition event;
the second target contract unit configured to add the first target to a second address of the user in the second blockchain;
the service logic unit is configured to implement a preset service logic based on a consensus mechanism of a block chain, and perform service processing on the first target based on the preset service logic.
In some embodiments, the gateway node is further configured to verify the validity of the lock event, and in case the lock event is valid, to issue an add event of the first target of the user to a second blockchain.
In some embodiments, the second blockchain is further configured to respond to a fetch request of a user, lock the second target of the user corresponding to the fetch request, send a request fetch event of the second target of the user to a gateway node, send an extractable notification event with the gateway node signature information sent by the gateway node to the user, and reduce a second target at a second address of the second blockchain for the user after the second target is successfully added to the first blockchain;
a gateway node further configured to capture the request extraction event, verify the validity of the request extraction event, and issue an extractable notification event with the gateway node signature information to a second blockchain in case the request extraction event is valid;
a first blockchain, further configured to respond to a request for extracting the second target with the gateway node signature information from the user, and add the second target to the user at a first address of the first blockchain if the gateway node signature information is valid.
In some embodiments, the second blockchain includes a business logic unit, a second target contract unit, and a second gateway contract unit;
the service logic unit is configured to obtain the second target after performing service processing on the first target based on the preset service logic;
the second target contract unit is configured to respond to a fetch request of a user, lock a second target of the user corresponding to the fetch request to a second gateway contract unit, and reduce the second target for a second address of the user in a second block chain after the second target is successfully added to the first block chain;
the second gateway contract unit is configured to issue a request extraction event of the second target of the user to a gateway node, send an extractable notification event with the gateway node signature information issued by the gateway node to the user, and record a second address of the second block chain to the user and reduce the second target after the second target is successfully added to the first block chain.
In some embodiments, the first blockchain includes a first target contract unit and a first gateway contract unit;
the first gateway contract unit is configured to respond to an extraction request of the second target with the gateway node signature information sent by the user, and record and add the second target to the user at a first address of the first block chain under the condition that the gateway node signature information is valid;
the first target contract unit is configured to add the second target to the first address of the first blockchain for the user if the gateway node signature information is valid.
In some embodiments, the first address is a first public key address and the second address is a second public key address.
Some embodiments of the present disclosure provide a service implementation method based on a block chain, including:
the first block chain responds to a service request of a user and sends a locking event of the first target of the user corresponding to the service request to a gateway node;
the gateway node captures the locking event and sends an adding event of the first target of the user to a second blockchain;
the second block chain realizes preset service logic based on a block chain consensus mechanism, and is configured to respond to the adding event, add the first target to a second address of the second block chain of the user, and perform service processing on the first target based on the preset service logic;
after the second blockchain successfully adds the first target, the gateway node sends an adding success event of the first target of the user to the first blockchain;
the first blockchain responds to an adding success event of the first target of the user sent by the gateway node, and reduces the first target for the first address of the user in the first blockchain.
In some embodiments, after the second blockchain performs service processing on the first target based on the preset service logic, the second target is obtained;
the second block chain responds to an extraction request of a user, locks a second target of the user corresponding to the extraction request, and sends a request extraction event of the second target of the user to a gateway node;
the gateway node captures the request extraction event, verifies the validity of the request extraction event, and sends an extractable notification event with the gateway node signature information to a second block chain under the condition that the request extraction event is valid;
the second block chain sends the extractable notification event which is sent by the gateway node and carries the gateway node signature information to the user;
the first block chain responds to an extraction request of the second target with the gateway node signature information sent by the user, and adds the second target to a first address of the first block chain of the user under the condition that the gateway node signature information is effective;
and after the second target is successfully added to the first block chain by the second block chain, reducing the second target for the second address of the second block chain of the user.
Some embodiments of the present disclosure propose a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the above-mentioned blockchain-based service implementation methods.
Drawings
The drawings that will be used in the description of the embodiments or the related art will be briefly described below. The present disclosure can be understood more clearly from the following detailed description, which proceeds with reference to the accompanying drawings.
It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without undue inventive faculty.
Fig. 1 shows a schematic diagram of a service implementation system based on a block chain in some embodiments of the present disclosure.
Fig. 2 is a flow diagram illustrating a process for transferring a target from a first blockchain to a second blockchain and performing business processing in some embodiments of the present disclosure.
FIG. 3 is a flow diagram illustrating the transfer of a target from the second blockchain back to the first blockchain in some embodiments of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure.
Fig. 1 shows a schematic diagram of a service implementation system based on a block chain in some embodiments of the present disclosure.
As shown in fig. 1, the service implementation system 10 of this embodiment includes: a first blockchain 11 (set as a main chain), a gateway node 12, and a second blockchain 13 (set as a side chain). The second blockchain 13 is configured to implement the preset service logic based on a block chain consensus mechanism, that is, all steps of the preset service logic are directly completed on the blockchain without being implemented by an intelligent contract, so that the second blockchain has a more efficient on-chain service logic execution capability. The first blockchain 11 and the second blockchain 13 may each be, for example, a federation chain.
As shown in fig. 1, the first blockchain 11 includes, for example, a first target contract unit 111 and a first gateway contract unit 112. The second blockchain 13 comprises, in addition to the second target contract unit 131 and the second gateway contract unit 132, a service logic unit 133.
Wherein the first/second target contract units each implement contracts for issuing and destroying the relevant target. The first/second gateway contract units each implement a logging function for the relevant target transfer. The service logic unit 133 implements the preset service logic based on the consensus mechanism of the block chain, that is, all steps of the preset service logic are directly completed on the block chain without being implemented by an intelligent contract, so that the second block chain has a more efficient execution capability of the service logic on the chain.
For example, in the point exchange matching service, the first/second target contract unit implements issuance and destruction of points, the first/second gateway contract unit implements a recording function of point transfer, the service logic unit 133 implements exchange matching service logic between different types of points in different service systems, and all steps of the exchange matching service logic, such as listing, matching, and trading, are directly completed on the blockchain without being implemented by an intelligent contract. The business logic 133 may be implemented using, for example, the order book function of the wellsite block chain (Jingtum).
It is assumed that there is a direct exchange rate between assets a/B, but a/B can be exchanged by a third party, e.g., a/T, T/B, where T is the asset's third party's portfolio. Wherein, T may be one asset or an intermediate asset pack formed by any combination of multiple assets, for example, T may be C or C/D, such an asset pack. And recording the conversion ratio R (A/B) between A and B as 1A for R B. The system calculates the size between R1(A/B) and R2(A/T) R3(T/B), and selects Min (R1(A/B), R2(A/T) R3(T/B)) as a target value to search. The range which can be searched comprises the 0 distance of direct A/B and the combined distance between the six assets of the maximum indirect T asset pack, such as C/D or C/D/E, and the system selects an optimal scheme for the user. For example, 0.5VCC sells to 5000 SWT; 5000SWT sells to obtain 27 UST; finally, the original hang order becomes a trade price of 1VCC and sells out to obtain 52 UST.
Obviously, the complex service logic to which the scheme of the present disclosure is applicable is not limited to the point exchange matching service, but may be other complex service logic, for example, a bitcoin transaction service, etc.
Fig. 2 is a flow diagram illustrating a process for transferring a target from a first blockchain to a second blockchain and performing business processing in some embodiments of the present disclosure.
As shown in fig. 2, the method of this embodiment includes: steps 21-210.
In step 21, the user sends a service request for the first target to the first blockchain 11 to request the relevant service processing for the first target of the user.
Wherein the service request may be signed by a private key of the user to indicate that the service request was actually made by the user himself.
Then, the first blockchain responds to the service request of the user, and sends a locking event of the first target of the user corresponding to the service request to the gateway node, specifically referring to steps 22-23.
In step 22, the first target contract unit 111 of the first blockchain 11 locks, in response to the service request of the subscriber, the first target of the subscriber corresponding to the service request to the first gateway contract unit 112.
At step 23 the first gateway contract unit 112 issues a lock event of the first target of the user to the gateway node 12.
At step 24, the gateway node 12 captures the lock event and issues an add event to the second blockchain 13 for the first target of the user.
After the gateway node captures the lock event, the gateway node 12 may also verify the validity of the lock event, and in case the lock event is valid, issue an additional event of the first target of the user to the second blockchain 13.
The gateway node 12 may verify, for example, whether the lock event is issued by a legal gateway contract unit, whether the format of the lock event meets the specification, and verify the content of the lock event, for example, whether the user owns the first target. And if the verification items related to the locking event all meet the requirements, the locking event is considered to be effective.
The user in the add event may be identified by a first address of the user in the first blockchain, for example, a first public key address of the user in the first blockchain.
The second blockchain 13 then adds the first target to the user at a second address of the second blockchain in response to an add event, see steps 25-26.
In step 25, in response to the add event, the second gateway contract unit 131 of the second blockchain 13 records a first target added to the second address of the user in the second blockchain according to the stored mapping relationship between the first address of the user in the first blockchain and the second address of the user in the second blockchain.
Wherein the second address may be a second public key address of the user in a second block chain.
At step 26 the second target contract unit 132 of the second blockchain 13 adds the first target to the user at the second address of the second blockchain, and the second gateway contract unit 131 then returns a first target add success event to the gateway node 12.
In step 27, the gateway node 12 issues an add success event for the first target of the user to the first blockchain 11 after the add of the first target to the second blockchain 13 is successful.
The first blockchain 11 then responds to the gateway node 12 issuing an add success event for the first target of the subscriber by decrementing the first target for the subscriber at the first address of the first blockchain, see steps 28-29.
In step 28, the first target contract unit 111 of the first blockchain 11 records to the subscriber a decrease of the first target at the first address of the first blockchain in response to an increase success event of the first target of the subscriber issued by the gateway node 12.
At step 29, the first gateway contract unit 112 decrements the first destination for the subscriber at the first address of the first blockchain.
In step 210, after the user decreases the first target at the first address of the first blockchain, the service logic unit 133 of the second blockchain 13 performs service processing on the first target based on the preset service logic.
By transferring the complex service on one block chain to another block chain, the other block chain utilizes a consensus mechanism to directly realize related service logic on the block chain, and the complex service is completed by means of the high-efficiency on-chain service logic execution capacity of the other block chain, so that the execution efficiency of the complex service in a block chain system can be improved compared with the complex service completed by an intelligent contract.
Furthermore, for a blockchain to interact with the gateway node, it is not even aware of the existence of other blockchains.
FIG. 3 is a flow diagram illustrating the transfer of a target from the second blockchain back to the first blockchain in some embodiments of the present disclosure.
As shown in fig. 3, the method of this embodiment includes: steps 31-310.
In step 31, the second blockchain 13 performs service processing on the first target based on the preset service logic to obtain a second target. The user issues a fetch request for a second target to the second blockchain 13.
Wherein the request for extraction may be signed by the user's private key to indicate that the request was indeed made by the user himself.
In step 32, the second target contract unit 131 of the second blockchain 13 locks the second target of the subscriber corresponding to the extraction request to the second gateway contract unit 132 in response to the extraction request of the subscriber.
At step 33 the second gateway contract unit 132 issues a request extraction event to the gateway node 12 for the second target of the subscriber.
Thus, the second blockchain responds to the user's extraction request, locks the second target of the user corresponding to the extraction request, and issues a request extraction event of the second target of the user to the gateway node, via steps 32-33.
At step 34 the gateway node 12 captures the request extraction event, verifies the validity of the request extraction event, and in case the request extraction event is valid, issues an extractable notification event with gateway node signature information to the second blockchain 13.
The gateway node 12 may, for example, request whether the extraction event is issued by a legal gateway contract unit, may also verify whether the format of the request extraction event meets the specification, and may also verify the content of the request extraction event, for example, whether the user owns the second target, whether the number of the targets requested to be extracted is less than or equal to the number of the targets owned by the user, and the like. And if the verification items related to the request extraction event all meet the requirements, the request extraction event is considered to be effective.
In step 35 the second gateway contract unit 132 of the second blockchain 13 sends an extractable notification event with gateway node signature information issued by the gateway node to the user.
At step 36, the user issues a second target extraction request with gateway node signature information to the first blockchain 11.
Then, the first blockchain responds to the user's request for extracting the second object with the gateway node signature information, and adds the second object to the first address of the first blockchain for the user in the case that the gateway node signature information is valid, see steps 37-38.
In step 37, the first gateway contract unit 112 responds to the user's request for extraction of the second object with the gateway node signature information, and in case the gateway node signature information is valid, records the addition of the second object to the user at the first address of the first blockchain.
In step 38 the first target contract unit 111 adds a second target to the first address of the first block chain to the user in case the gateway node signature information is valid.
Then, the second blockchain 13 gives the user a second address in the second blockchain to decrease the second target after the first blockchain 11 successfully increases the second target, see steps 39-310. The message that the first blockchain adds the second target successfully may be, for example, the first blockchain 11 notifies the gateway node 12, and then the gateway node 12 notifies the second blockchain 13.
At step 39, the second gateway contract unit 132 records to the user that the second address in the second blockchain is decreased by the second target after the first blockchain has successfully increased by the second target.
In step 310, the second target contract unit 131 gives the user a second address of the second block chain to be decreased by the second target after the first block chain has successfully increased by the second target.
Therefore, the second target obtained after the first target is subjected to service processing is transferred back to another blockchain from one blockchain, and the target transfer process is signed by the gateway node as a proof for preventing fraud, so that the safety of the service process can be improved.
Furthermore, for a blockchain to interact with the gateway node, it is not even aware of the existence of other blockchains. Thus, the first blockchain and the second blockchain may be two completely different blockchains, different consensus algorithms and different key algorithms may be used, and so on.
Based on the above description of the service implementation method based on the blockchain, those skilled in the art can understand the functions of each component in the corresponding service implementation system based on the blockchain.
The first blockchain 11 is configured to respond to the service request of the user, send a locking event of a first target of the user corresponding to the service request to the gateway node, and respond to an adding success event of the first target of the user sent by the gateway node, and reduce the first target for the first address of the user in the first blockchain.
A first target contract unit 111 configured to lock a first target of a subscriber corresponding to a service request to the first gateway contract unit in response to the service request of the subscriber. A first gateway contract unit 112 configured to issue a lock event of the first target of the subscriber to the gateway node and to decrement the first target for the subscriber at the first address of the first blockchain in response to an increment success event of the first target of the subscriber issued by the gateway node.
The gateway node 12 is configured to capture a lock event, send an add event of the first target of the user to the second blockchain, and send an add success event of the first target of the user to the first blockchain after the second blockchain has successfully added the first target. The gateway node 12 is further configured to verify the validity of the lock event, and in case the lock event is valid, to issue an addition event of the first target of the user to the second blockchain.
And the second block chain 13, which implements a preset service logic based on the consensus mechanism of the block chain, is configured to respond to an addition event, add a first target to a second address of the second block chain for the user, and perform service processing on the first target based on the preset service logic.
A second gateway contract unit 132 configured to record to the user, in response to the add event, a second address of the second blockchain to add the first target. A second target contract unit 131 configured to add the first target to a second address of the user in the second block chain. And a service logic unit 133 configured to implement a preset service logic based on the consensus mechanism of the block chain, and perform service processing on the first target based on the preset service logic.
The second blockchain 13 is further configured to respond to the extraction request of the user, lock a second target of the user corresponding to the extraction request, send a request extraction event of the second target of the user to the gateway node, send an extractable notification event with gateway node signature information sent by the gateway node to the user, and reduce the second target at a second address of the second blockchain for the user after the second target is successfully added to the first blockchain.
The service logic unit 133 is configured to perform service processing on the first target based on a preset service logic, and then obtain a second target; a second target contract unit 131, configured to respond to the fetch request of the user, lock a second target of the user corresponding to the fetch request to the second gateway contract unit, and after the second target is successfully added to the first blockchain, reduce the second target for the second address of the second blockchain of the user; a second gateway contract unit 132 configured to issue a request extraction event of a second target of the user to the gateway node, send an extractable notification event with gateway node signature information issued by the gateway node to the user, and after the second target is successfully added to the first blockchain, record a second address of the user in the second blockchain and reduce the second target.
The gateway node 12 is further configured to capture the request extraction event, verify the validity of the request extraction event, and in case the request extraction event is valid, issue an extractable notification event with gateway node signature information to the second blockchain.
The first blockchain 11 is further configured to respond to a user's request for extracting the second target with the gateway node signature information, and add the second target to the user at the first address of the first blockchain in the case that the gateway node signature information is valid.
A first gateway contract unit 112, configured to respond to an extraction request of a second target with gateway node signature information from a user, and record and add the second target to the first address of the first block chain of the user in case that the gateway node signature information is valid; a first target contract unit 111 configured to add a second target to the user at the first address of the first blockchain in case the gateway node signature information is valid.
The present disclosure also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the blockchain-based service implementation method of any one of the embodiments.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (11)

1. A service implementation system based on block chains is characterized by comprising:
a first block chain, configured to respond to a service request of a user, send a locking event of a first target of the user corresponding to the service request to a gateway node, and respond to an addition success event of the first target of the user sent by the gateway node, and decrease the first target for a first address of the user in the first block chain;
a gateway node configured to capture the lock event, send an add event of the first target of the user to a second blockchain, and send an add success event of the first target of the user to the first blockchain after the second blockchain successfully adds the first target;
and the second block chain realizes preset service logic based on a consensus mechanism of the block chain, is configured to respond to the adding event, add the first target to a second address of the second block chain of the user, and perform service processing on the first target based on the preset service logic.
2. The system of claim 1,
the first blockchain comprises a first target contract unit and a first gateway contract unit;
the first target contract unit is configured to respond to a service request of a user, and lock the first target of the user corresponding to the service request to a first gateway contract unit;
the first gateway contract unit is configured to issue a lock event of the first target of the user to a gateway node, and to decrement the first target for the user at a first address of the first blockchain in response to an increment success event of the first target of the user issued by the gateway node.
3. The system of claim 1,
the second blockchain comprises a business logic unit, a second target contract unit and a second gateway contract unit;
the second gateway contract unit is configured to record to the user to add the first target at a second address of the second block chain in response to the addition event;
the second target contract unit configured to add the first target to a second address of the user in the second blockchain;
the service logic unit is configured to implement a preset service logic based on a consensus mechanism of a block chain, and perform service processing on the first target based on the preset service logic.
4. The system of claim 1,
a gateway node further configured to verify the validity of the lock event, and in the event that the lock event is valid, issue an add event to the first target of the user to a second blockchain.
5. The system of claim 1,
a second blockchain, configured to respond to a fetch request of a user, lock a second target of the user corresponding to the fetch request, send a request fetch event of the second target of the user to a gateway node, send an extractable notification event with the gateway node signature information sent by the gateway node to the user, and reduce a second target of a second address of the second blockchain for the user after the second target is successfully added to the first blockchain;
a gateway node further configured to capture the request extraction event, verify the validity of the request extraction event, and issue an extractable notification event with the gateway node signature information to a second blockchain in case the request extraction event is valid;
a first blockchain, further configured to respond to an extraction request of the second target with the gateway node signature information from the user, and add the second target to the user at a first address of the first blockchain if the gateway node signature information is valid.
6. The system of claim 5,
the second blockchain comprises a business logic unit, a second target contract unit and a second gateway contract unit;
the service logic unit is configured to obtain the second target after performing service processing on the first target based on the preset service logic;
the second target contract unit is configured to respond to a fetch request of a user, lock a second target of the user corresponding to the fetch request to a second gateway contract unit, and reduce the second target for a second address of the user in a second block chain after the second target is successfully added to the first block chain;
the second gateway contract unit is configured to issue a request extraction event of the second target of the user to a gateway node, send an extractable notification event with the gateway node signature information issued by the gateway node to the user, and record a second address of the second block chain to the user and reduce the second target after the second target is successfully added to the first block chain.
7. The system of claim 5,
the first blockchain includes a first target contract element and a first gateway contract element;
the first gateway contract unit is configured to respond to an extraction request of the second target with the gateway node signature information sent by the user, and record and add the second target to the user at a first address of the first block chain under the condition that the gateway node signature information is valid;
the first target contract unit is configured to add the second target to the first address of the first blockchain for the user if the gateway node signature information is valid.
8. The system according to any one of claims 1 to 7,
the first address is a first public key address, and the second address is a second public key address.
9. A service implementation method based on a block chain is characterized by comprising the following steps:
the first block chain responds to a service request of a user and sends a locking event of a first target of the user corresponding to the service request to a gateway node;
the gateway node captures the locking event and sends an adding event of the first target of the user to a second blockchain;
the second block chain realizes preset service logic based on a block chain consensus mechanism, and is configured to respond to the adding event, add the first target to a second address of the second block chain of the user, and perform service processing on the first target based on the preset service logic;
after the second blockchain successfully adds the first target, the gateway node sends an adding success event of the first target of the user to the first blockchain;
the first blockchain responds to an adding success event of the first target of the user sent by the gateway node, and reduces the first target for the first address of the user in the first blockchain.
10. The method of claim 9, further comprising:
after the second block chain carries out service processing on the first target based on the preset service logic, a second target is obtained;
the second block chain responds to an extraction request of a user, locks a second target of the user corresponding to the extraction request, and sends a request extraction event of the second target of the user to a gateway node;
the gateway node captures the request extraction event, verifies the validity of the request extraction event, and sends an extractable notification event with the gateway node signature information to a second block chain under the condition that the request extraction event is valid;
the second block chain sends the extractable notification event with the gateway node signature information sent by the gateway node to the user;
the first block chain responds to an extraction request of the second target with the gateway node signature information sent by the user, and adds the second target to a first address of the first block chain of the user under the condition that the gateway node signature information is effective;
and after the second target is successfully added to the first block chain by the second block chain, reducing the second target for the second address of the second block chain of the user.
11. A non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the blockchain-based service implementation method of claim 9 or 10.
CN201911058041.5A 2019-11-01 2019-11-01 Service implementation system and method based on block chain Active CN112769878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911058041.5A CN112769878B (en) 2019-11-01 2019-11-01 Service implementation system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911058041.5A CN112769878B (en) 2019-11-01 2019-11-01 Service implementation system and method based on block chain

Publications (2)

Publication Number Publication Date
CN112769878A CN112769878A (en) 2021-05-07
CN112769878B true CN112769878B (en) 2022-09-20

Family

ID=75692257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911058041.5A Active CN112769878B (en) 2019-11-01 2019-11-01 Service implementation system and method based on block chain

Country Status (1)

Country Link
CN (1) CN112769878B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018125A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
CN107341702A (en) * 2017-03-08 2017-11-10 阿里巴巴集团控股有限公司 A kind of method and device of business processing
CN107368259A (en) * 2017-05-25 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and apparatus that business datum is write in the catenary system to block
CN107395665A (en) * 2017-05-22 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain service handling and business common recognition method and device
WO2018112940A1 (en) * 2016-12-23 2018-06-28 深圳前海达闼云端智能科技有限公司 Service execution method and device for blockchain node, and node device
CN110009356A (en) * 2019-04-16 2019-07-12 北京艾摩瑞策科技有限公司 A kind of business datum cochain method and its system based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10812270B2 (en) * 2017-04-07 2020-10-20 Citizen Hex Inc. Techniques for increasing the probability that a transaction will be included in a target block of a blockchain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018112940A1 (en) * 2016-12-23 2018-06-28 深圳前海达闼云端智能科技有限公司 Service execution method and device for blockchain node, and node device
CN107018125A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
CN107341702A (en) * 2017-03-08 2017-11-10 阿里巴巴集团控股有限公司 A kind of method and device of business processing
CN107395665A (en) * 2017-05-22 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain service handling and business common recognition method and device
CN107368259A (en) * 2017-05-25 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and apparatus that business datum is write in the catenary system to block
CN110009356A (en) * 2019-04-16 2019-07-12 北京艾摩瑞策科技有限公司 A kind of business datum cochain method and its system based on block chain

Also Published As

Publication number Publication date
CN112769878A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
EP3812992B1 (en) Block chain transaction method and apparatus
CN108492180B (en) Asset management method and device and electronic equipment
CN112132558B (en) Digital currency transaction method and device based on intelligent contract and electronic equipment
CN108805569A (en) Transaction processing method and device, electronic equipment based on block chain
CN108764870A (en) Transaction processing method and device, electronic equipment based on block chain
TW202022857A (en) Invoice creating method and device based on block chain and electronic device
WO2018187410A1 (en) Systems and methods for data backup and authentication using blockchain
EP3200138A1 (en) Digital asset conversion
EP3200167A1 (en) Information transaction infrastructure
KR20180014534A (en) Verification system and method for transaction based block chain
US20200082388A1 (en) Authenticating server and method for transactions on blockchain
EP3385894B1 (en) Method for producing a cryptographically signed transaction
CN105389488A (en) Identity authentication method and apparatus
WO2020243961A1 (en) Aggregated payment method and system for digital currencies, and edge server
CN111402033A (en) Asset information management method and device based on block chain
WO2020037623A1 (en) Capacity expansion method, device, and system for quantum-resistant blockchain account system
US20220067717A1 (en) Blockchain system that includes bank nodes each having separate ledgers for identity, digital currency and other functions, and operation method thereof
CN112132559A (en) Digital currency transaction method and device, electronic equipment and readable storage medium
CN110599079A (en) Logistics physical object handover method, platform and storage medium based on block chain
CN111667270A (en) Region-based digital currency using method and device and electronic equipment
CN111552991A (en) Block chain transaction method and device
CN110910000A (en) Block chain asset management method and device
CN115730277A (en) Supplemental digital content access control using non-homogeneous token NFT
US11907391B2 (en) Method for performing segmenting locking and merging control of encrypted digital assets based on time dimension
CN110766403A (en) Data processing device and method based on block chain and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210507

Assignee: Zhongbo Information Technology Research Institute Co.,Ltd.

Assignor: CHINA TELECOM Corp.,Ltd.

Contract record no.: X2024310000025

Denomination of invention: Blockchain based business implementation system and methods

Granted publication date: 20220920

License type: Common License

Record date: 20240219

EE01 Entry into force of recordation of patent licensing contract