IP Library Granted Patent US 11,016,961
Granted Patent B2
US 11,016,961 · App. 16/934,737 · Granted May 25, 2021

Blockchain-based smart contract invocation method and apparatus, and electronic device

Inventor: Honglin Qiu (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
G06F16/2379G06F16/245G06F16/27
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,016,961
App. No.
16/934,737
Granted
May 25, 2021
Kind
B2
Abstract

Techniques for invocating a smart contract are described. One example method includes receiving a target transaction that is used to initiate an invocation of a smart contract, wherein the target transaction comprises invocation data, and wherein the invocation data comprises a data digest associated with target data stored in a third-party storage system interconnected with a blockchain; querying the target data from the third-party storage system; receiving a query result returned by the third-party storage system, wherein the query result comprises the target data; performing a content verification on the target data; determining that the content verification on the target data succeeds; invoking the smart contract to perform a smart contract computation on the invocation data included in the target transaction; and storing a computation result from the smart contract computation in a distributed database associated with the blockchain after the smart contract computation is completed.

Claims (46)

1. A computer-implemented method for invocating a smart contract, comprising:

receiving a target transaction that is used to initiate an invocation of the smart contract, wherein the target transaction comprises invocation data, wherein the invocation data comprises a data digest associated with target data, wherein the target data is stored in a third-party storage system interconnected with a first blockchain, and wherein the third-party storage system is a second blockchain that has a cross-chain data reference relationship that maps a relationship between the data digest and the target data;

querying the target data associated with the data digest from the third-party storage system with a query request, wherein the query request comprises a block number identifying a block of the second blockchain that stores the target data;

receiving a query result returned by the second blockchain, wherein the query result comprises the target data;

performing a content verification on the target data;

determining that the content verification on the target data succeeds;

in response to determining that the content verification on the target data succeeds, invoking the smart contract to perform a smart contract computation on the target data and the invocation data included in the target transaction; and

storing a computation result from the smart contract computation in a distributed database associated with the first blockchain after the smart contract computation is completed.

2. The computer-implemented method of claim 1 , wherein the first blockchain is within a blockchain consortium, and wherein the second blockchain comprises a content addressable storage (CAS) platform that provides a data storage service for the first blockchain.

3. The computer-implemented method of claim 2 , wherein the blockchain consortium comprises a plurality of blockchains, and wherein the second blockchain is interconnected with each blockchain of the plurality of blockchains.

4. The computer-implemented method of claim 2 , wherein the second blockchain is within the blockchain consortium.

5. The computer-implemented method of claim 1 , wherein the second blockchain stores a mapping relationship between the target data and the data digest associated with the target data.

6. The computer-implemented method of claim 5 , wherein querying the target data associated with the data digest from the second blockchain comprises:

initiating the query request to the second blockchain by using the data digest as a query index for the target data.

7. The computer-implemented method of claim 1 , wherein the second blockchain comprises a centralized content addressable storage system, a decentralized distributed system, or a combination thereof.

8. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

receiving a target transaction that is used to initiate an invocation of a smart contract, wherein the target transaction comprises invocation data, wherein the invocation data comprises a data digest associated with target data, wherein the target data is stored in a third-party storage system interconnected with a first blockchain, and wherein the third-party storage system is a second blockchain that has a cross-chain data reference relationship that maps a relationship between the data digest and the target data;

querying the target data associated with the data digest from the third-party storage system with a query request, wherein the query request comprises a block number identifying a block of the second blockchain that stores the target data;

receiving a query result returned by the second blockchain, wherein the query result comprises the target data;

performing a content verification on the target data;

determining that the content verification on the target data succeeds;

in response to determining that the content verification on the target data succeeds, invoking the smart contract to perform a smart contract computation on the target data and the invocation data included in the target transaction; and

storing a computation result from the smart contract computation in a distributed database associated with the first blockchain after the smart contract computation is completed.

9. The non-transitory, computer-readable medium of claim 8 , wherein the first blockchain is within a blockchain consortium, and wherein the second blockchain comprises a content addressable storage (CAS) platform that provides a data storage service for the first blockchain.

10. The non-transitory, computer-readable medium of claim 9 , wherein the blockchain consortium comprises a plurality of blockchains, and wherein the second blockchain is interconnected with each blockchain of the plurality of blockchains.

11. The non-transitory, computer-readable medium of claim 9 , wherein the second blockchain is within the blockchain consortium.

12. The non-transitory, computer-readable medium of claim 8 , wherein the second blockchain stores a mapping relationship between the target data and the data digest associated with the target data.

13. The non-transitory, computer-readable medium of claim 12 , wherein querying the target data associated with the data digest from the second blockchain comprises:

initiating the query request to the second blockchain by using the data digest as a query index for the target data.

14. The non-transitory, computer-readable medium of claim 8 , wherein the second blockchain comprises a centralized content addressable storage system, a decentralized distributed system, or a combination thereof.

15. 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:

receiving a target transaction that is used to initiate an invocation of a smart contract, wherein the target transaction comprises invocation data, wherein the invocation data comprises a data digest associated with target data, wherein the target data is stored in a third-party storage system interconnected with a first blockchain, and wherein the third-party storage system is a second blockchain that has a cross-chain data reference relationship that maps a relationship between the data digest and the target data;

querying the target data associated with the data digest from the third-party storage system with a query request, wherein the query request comprises a block number identifying a block of the second blockchain that stores the target data;

receiving a query result returned by the second blockchain, wherein the query result comprises the target data;

performing a content verification on the target data;

determining that the content verification on the target data succeeds;

in response to determining that the content verification on the target data succeeds, invoking the smart contract to perform a smart contract computation on the target data and the invocation data included in the target transaction; and

storing a computation result from the smart contract computation in a distributed database associated with the first blockchain after the smart contract computation is completed.

16. The computer-implemented system of claim 15 , wherein the first blockchain is within a blockchain consortium, and wherein the second blockchain comprises a content addressable storage (CAS) platform that provides a data storage service for the first blockchain.

17. The computer-implemented system of claim 16 , wherein the blockchain consortium comprises a plurality of blockchains, and wherein the second blockchain is interconnected with each blockchain of the plurality of blockchains.

18. The computer-implemented system of claim 16 , wherein the second blockchain is within the blockchain consortium.

19. The computer-implemented system of claim 15 , wherein the second blockchain stores a mapping relationship between the target data and the data digest associated with the target data.

20. The computer-implemented system of claim 19 , wherein querying the target data associated with the data digest from the second blockchain comprises:

initiating the query request to the second blockchain by using the data digest as a query index for the target data.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 25, 2020
From: QIU, HONGLIN
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 053596/0570 →