US10785232B2ActiveUtilityPatentIndex 73
Method, apparatus, system, and electronic device for cross-blockchain interaction
Est. expiryFeb 27, 2038(~11.6 yrs left)· nominal 20-yr term from priority
H04L 9/50H04L 67/60H04L 67/55G06F 16/27H04L 67/141G06F 9/546G06Q 40/04H04L 67/1087H04L 63/12H04L 9/0637H04L 2209/38H04L 67/32H04L 67/26
73
PatentIndex Score
4
Cited by
24
References
19
Claims
Abstract
This specification describes techniques for performing cross-blockchain interactions. One example method includes generating, by a blockchain node in a first blockchain, a subscription request to a cross-chain interaction end between the first blockchain and a second blockchain. The blockchain node can then obtain a message from the second blockchain based on the subscription request, and subsequently perform an operation related to the obtained message. In some instances, the message obtained by the blockchain node is a message that is published in the second blockchain and satisfies subscription conditions of the blockchain node.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A computer-implemented method, comprising:
generating, by a first blockchain node in a first blockchain, a subscription request to a cross-chain interaction end between the first blockchain and a second blockchain;
obtaining, by a second blockchain node, a message from the second blockchain based on the subscription request, the message being published in the second blockchain and satisfying subscription conditions of the second blockchain node; and
performing, by the second blockchain node, an operation related to the obtained message,
wherein the subscription request indicates the subscription conditions to the cross-chain interaction end, so that the cross-chain interaction end obtains and adds the message to a message queue maintained by a subscription client corresponding to the second blockchain node.
2. The computer-implemented method of claim 1 , wherein the first blockchain node of the first blockchain corresponds to a subscription client.
3. The computer-implemented method of claim 2 , further comprising:
maintaining, by the subscription client, a queue status of the message queue.
4. The computer-implemented method of claim 3 , wherein obtaining the message comprises:
sending, by the subscription client, the queue status to the cross-chain interaction end, so that the cross-chain interaction end obtains a message that is published in the second blockchain and satisfies the subscription conditions when the cross-chain interaction end determines, based on the queue status, that the message queue does not comprise a message satisfying the subscription conditions.
5. The computer-implemented method of claim 1 , wherein the subscription conditions comprise a one-to-one mapping relationship between subscription clients and blockchain nodes.
6. The computer-implemented method of claim 1 , wherein performing, by the second blockchain node, an operation related to the obtained message comprises:
initiating, by the second blockchain node, a contract operation related to the obtained message.
7. The computer-implemented method of claim 1 , wherein the second blockchain corresponds to a publishing client.
8. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
generating, by a first blockchain node in a first blockchain, a subscription request to a cross-chain interaction end between the first blockchain and a second blockchain;
obtaining, by a second blockchain node, a message from the second blockchain based on the subscription request, the message being published in the second blockchain and satisfying subscription conditions of the second blockchain node; and
performing, by the second blockchain node, an operation related to the obtained message,
wherein the subscription request indicates the subscription conditions to the cross-chain interaction end, so that the cross-chain interaction end obtains and adds the message to a message queue maintained by a subscription client corresponding to the second blockchain node.
9. The non-transitory, computer-readable medium of claim 8 , wherein the first blockchain node of the first blockchain corresponds to a subscription client.
10. The non-transitory, computer-readable medium of claim 9 , the operations further comprising:
maintaining, by the subscription client, a queue status of the message queue; and
wherein obtaining the message comprises:
sending, by the subscription client, the queue status to the cross-chain interaction end, so that the cross-chain interaction end obtains a message that is published in the second blockchain and satisfies the subscription conditions when the cross-chain interaction end determines, based on the queue status, that the message queue does not comprise a message satisfying the subscription conditions.
11. The non-transitory, computer-readable medium of claim 8 , wherein performing, by the second blockchain node, an operation related to the obtained message comprises:
initiating, by the second blockchain node, a contract operation related to the obtained message.
12. The non-transitory, computer-readable medium of claim 8 , wherein the subscription conditions comprise a one-to-one mapping relationship between subscription clients and blockchain nodes.
13. The non-transitory, computer-readable medium of claim 8 , wherein the second blockchain corresponds to a publishing client.
14. A computer-implemented system, comprising:
one or more computers; and
one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:
generating, by a first blockchain node in a first blockchain, a subscription request to a cross-chain interaction end between the first blockchain and a second blockchain;
obtaining, by a second blockchain node, a message from the second blockchain based on the subscription request, the message being published in the second blockchain and satisfying subscription conditions of the second blockchain node; and
performing, by the second blockchain node, an operation related to the obtained message,
wherein the subscription request indicates the subscription conditions to the cross-chain interaction end, so that the cross-chain interaction end obtains and adds the message to a message queue maintained by a subscription client corresponding to the second blockchain node.
15. The computer-implemented system of claim 14 , wherein the first blockchain node of the first blockchain corresponds to a subscription client.
16. The computer-implemented system of claim 15 , the operations further comprising:
maintaining, by the subscription client, a queue status of the message queue; and wherein obtaining the message comprises:
sending, by the subscription client, the queue status to the cross-chain interaction end, so that the cross-chain interaction end obtains a message that is published in the second blockchain and satisfies the subscription conditions when the cross-chain interaction end determines, based on the queue status, that the message queue does not comprise a message satisfying the subscription conditions.
17. The computer-implemented system of claim 14 , wherein performing, by the second blockchain node, an operation related to the obtained message comprises operations of:
initiating, by the second blockchain node, a contract operation related to the obtained message.
18. The computer-implemented system of claim 14 , wherein the second blockchain corresponds to a publishing client.
19. The computer-implemented system of claim 14 , wherein the subscription conditions comprise a one-to-one mapping relationship between subscription clients and blockchain nodes.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.