Executing transactions based on blockchain
Abstract
At a node device associated with a blockchain as a received target transaction, a target transaction published by a user is received, where the received target transaction includes transaction content, and where at least a part of the transaction content includes a content summary associated with target content that is stored in a third-party storage system connected to the blockchain. By the node device and to the third-party storage system, the target content corresponding to the content summary is queried. By the node device, whether the target content is verified is determined. In response to determining that the target content is verified, by the node device, the received target transaction is executed based on the transaction content. By the node device, the received target transaction is stored in a distributed database associated with the blockchain.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A computer-implemented method, comprising:
receiving, at a node device of a blockchain, a target transaction, wherein the target transaction comprises a content summary associated with transaction content that is stored in a third-party storage system connected to the blockchain; generating, by the node device, a query request based on the content summary; sending, by the node device, the query request to the third-party storage system, wherein the query request is configured to query the third-party storage system to identify the transaction content; and obtaining, in response to sending the query request to the third-party storage system, the transaction content from the third-party storage system.
2 . The method of claim 1 , wherein the blockchain is a member blockchain associated with a consortium blockchain network, wherein the consortium blockchain network comprises a plurality of member blockchains, and wherein each member blockchain in the consortium blockchain network is an additional third-party storage system connected to another member blockchain to implement a cross-chain data reference.
3 . The computer-implemented method of claim 1 , wherein the third-party storage system comprises a content-addressable-storage (CAS) platform, wherein the CAS platform uses the content summary as a query index to identify the transaction content, and wherein the CAS platform stores a mapping relationship between the query index and the transaction content.
4 . The method of claim 1 , further comprising:
identifying, by the node device as identified transaction content, the transaction content corresponding to the content summary of the target transaction; recalculating, by the node device as recalculated content summary, the content summary of the identified transaction content; determining, by the node device, whether the recalculated content summary matches the content summary of the target transaction; if it is determined that the recalculated content summary matches the content summary of the target transaction:
determining that the transaction content is verified and that the target transaction is a valid transaction; or
if it is determined that the recalculated content summary does not match the content summary of the target transaction:
determining that the transaction content is not verified and that the target transaction is invalid; and
terminating the target transaction.
5 . The method of claim 1 , further comprising executing the target transaction based on the transaction content by invoking a smart contract published in the blockchain.
6 . The method of claim 5 , wherein executing the target transaction comprises:
determining, by the node device, whether the target transaction is valid; in response to determining that the target transaction is valid, broadcasting, by the node device, the target transaction in the blockchain; synchronizing, by the node device, the target transaction to other node devices in the blockchain to allow the other node devices to check a validity of the target transaction; and if a predetermined number of the other node devices determine that the target transaction is valid, confirming, by the node device, that the target transaction is valid and completing the target transaction.
7 . The method of claim 1 , further comprising storing the target transaction by storing a transaction log and a transaction state of the target transaction in a distributed database associated with the blockchain.
8 . A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
receiving, at a node device of a blockchain, a target transaction, wherein the target transaction comprises a content summary associated with transaction content that is stored in a third-party storage system connected to the blockchain; generating, by the node device, a query request based on the content summary; sending, by the node device, the query request to the third-party storage system, wherein the query request is configured to query the third-party storage system to identify the transaction content; and obtaining, in response to sending the query request to the third-party storage system, the transaction content from the third-party storage system.
9 . The medium of claim 8 , wherein the blockchain is a member blockchain associated with a consortium blockchain network, wherein the consortium blockchain network comprises a plurality of member blockchains, and wherein each member blockchain in the consortium blockchain network is an additional third-party storage system connected to another member blockchain to implement a cross-chain data reference.
10 . The medium of claim 8 , wherein the third-party storage system comprises a content-addressable-storage (CAS) platform, wherein the CAS platform uses the content summary as a query index to identify the transaction content, and wherein the CAS platform stores a mapping relationship between the query index and the transaction content.
11 . The medium of claim 8 , further comprising:
identifying, by the node device as identified transaction content, the transaction content corresponding to the content summary of the target transaction; recalculating, by the node device as recalculated content summary, the content summary of the identified transaction content; determining, by the node device, whether the recalculated content summary matches the content summary of the target transaction; if it is determined that the recalculated content summary matches the content summary of the target transaction:
determining that the transaction content is verified and that the target transaction is a valid transaction; or
if it is determined that the recalculated content summary does not match the content summary of the target transaction:
determining that the transaction content is not verified and that the target transaction is invalid; and
terminating the target transaction.
12 . The medium of claim 8 , further comprising executing the target transaction based on the transaction content by invoking a smart contract published in the blockchain.
13 . The medium of claim 12 , wherein executing the target transaction comprises:
determining, by the node device, whether the target transaction is valid; in response to determining that the target transaction is valid, broadcasting, by the node device, the target transaction in the blockchain; synchronizing, by the node device, the target transaction to other node devices in the blockchain to allow the other node devices to check a validity of the target transaction; and if a predetermined number of the other node devices determine that the target transaction is valid, confirming, by the node device, that the target transaction is valid and completing the target transaction.
14 . The medium of claim 8 , further comprising storing the target transaction by storing a transaction log and a transaction state of the target transaction in a distributed database associated with the blockchain.
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, at a node device of a blockchain, a target transaction, wherein the target transaction comprises a content summary associated with transaction content that is stored in a third-party storage system connected to the blockchain; generating, by the node device, a query request based on the content summary; sending, by the node device, the query request to the third-party storage system, wherein the query request is configured to query the third-party storage system to identify the transaction content; and obtaining, in response to sending the query request to the third-party storage system, the transaction content from the third-party storage system.
16 . The system of claim 15 , wherein the blockchain is a member blockchain associated with a consortium blockchain network, wherein the consortium blockchain network comprises a plurality of member blockchains, and wherein each member blockchain in the consortium blockchain network is an additional third-party storage system connected to another member blockchain to implement a cross-chain data reference.
17 . The system of claim 15 , wherein the third-party storage system comprises a content-addressable-storage (CAS) platform, wherein the CAS platform uses the content summary as a query index to identify the transaction content, and wherein the CAS platform stores a mapping relationship between the query index and the transaction content.
18 . The system of claim 15 , further comprising:
identifying, by the node device as identified transaction content, the transaction content corresponding to the content summary of the target transaction; recalculating, by the node device as recalculated content summary, the content summary of the identified transaction content; determining, by the node device, whether the recalculated content summary matches the content summary of the target transaction; if it is determined that the recalculated content summary matches the content summary of the target transaction:
determining that the transaction content is verified and that the target transaction is a valid transaction; or
if it is determined that the recalculated content summary does not match the content summary of the target transaction:
determining that the transaction content is not verified and that the target transaction is invalid; and
terminating the target transaction.
19 . The system of claim 15 , further comprising executing the target transaction based on the transaction content by invoking a smart contract published in the blockchain.
20 . The system of claim 19 , wherein executing the target transaction comprises:
determining, by the node device, whether the target transaction is valid; in response to determining that the target transaction is valid, broadcasting, by the node device, the target transaction in the blockchain; synchronizing, by the node device, the target transaction to other node devices in the blockchain to allow the other node devices to check a validity of the target transaction; and if a predetermined number of the other node devices determine that the target transaction is valid, confirming, by the node device, that the target transaction is valid and completing the target transaction.Join the waitlist — get patent alerts
Track US2021294789A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.