US11057217B2 - Performing parallel execution of transactions in a distributed ledger system - Google Patents
Performing parallel execution of transactions in a distributed ledger system Download PDFInfo
- Publication number
- US11057217B2 US11057217B2 US16/945,696 US202016945696A US11057217B2 US 11057217 B2 US11057217 B2 US 11057217B2 US 202016945696 A US202016945696 A US 202016945696A US 11057217 B2 US11057217 B2 US 11057217B2
- Authority
- US
- United States
- Prior art keywords
- transaction
- transactions
- executing
- type
- type transaction
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/22—Payment schemes or models
- G06Q20/223—Payment schemes or models based on the use of peer-to-peer networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/22—Payment schemes or models
- G06Q20/227—Payment schemes or models characterised in that multiple accounts are available, e.g. to the payer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/405—Establishing or using transaction specific rules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q2220/00—Business processing using cryptography
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/56—Financial cryptography, e.g. electronic payment or e-cash
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Definitions
- This specification relates to transaction execution in a distributed ledger system.
- DLSs Distributed ledger systems
- blockchain networks can include: public blockchain networks, private blockchain networks, and consortium blockchain networks.
- a public blockchain network is open for all entities to use the DLS and participate in the consensus process.
- a private blockchain network is provided for particular entity, which centrally controls read and write permissions.
- a consortium blockchain network is provided for a select group of entities, which control the consensus process, and includes an access control layer.
- a blockchain network is a network of computing nodes that manage, update, and maintain one or more blockchain structures.
- a blockchain is a data structure that stores transactions in a way that allows future transactions to be verified for consistency with all prior transactions stored in the chain. The transactions are executed and recorded in the blockchain by each of the network nodes of the blockchain network.
- This specification describes technologies for transaction execution in a distributed ledger system (e.g., a blockchain network). These technologies generally involve performing parallel execution of transactions by a network node in a distributed ledger system. The described technologies can improve processing speed of transactions in a blockchain network and increase transaction throughput of the blockchain network.
- a distributed ledger system e.g., a blockchain network
- This specification also provides one or more non-transitory computer-readable storage media coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations in accordance with implementations of the methods provided herein.
- the system includes one or more processors, and a computer-readable storage medium coupled to the one or more processors having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations in accordance with implementations of the methods provided herein.
- FIG. 1 depicts an example of an environment that can be used to execute implementations of the specification.
- FIG. 2 depicts an example of an architecture in accordance with implementations of the specification.
- FIG. 3A depicts an example of a serial execution order for transactions in a blockchain network in accordance with implementations of the specification.
- FIG. 3B depicts an example of a parallel execution order for transactions in a blockchain network in accordance with implementations of the specification.
- FIG. 3C depicts an example of an execution order for failed second-type transactions in a blockchain network in accordance with implementations of the specification.
- FIG. 4 depicts an example of a process that can be executed in accordance with implementations of the specification.
- FIG. 5 depicts examples of modules of an apparatus in accordance with implementations of the specification.
- This specification describes technologies for transaction execution in a distributed ledger system (e.g., a blockchain network). These technologies generally involve performing parallel execution of transactions by a network node in a distributed ledger system. The described technologies can improve processing speed of transactions in a blockchain network and increase transaction throughput of the blockchain network.
- a distributed ledger system e.g., a blockchain network
- DLSs distributed ledger systems
- consensus networks e.g., made up of peer-to-peer nodes
- blockchain networks enable participating entities to securely, and immutably conduct transactions, and store data.
- blockchain is generally associated with particular networks, and/or use cases, blockchain is used herein to generally refer to a DLS without reference to any particular use case.
- a blockchain is a data structure that stores transactions in a way that the transactions are immutable. Thus, transactions recorded on a blockchain are reliable and trustworthy.
- a blockchain includes one or more blocks. Each block in the chain is linked to a previous block immediately before it in the chain by including a cryptographic hash of the previous block. Each block also includes a timestamp, its own cryptographic hash, and one or more transactions. The transactions, which have already been verified by the nodes of the blockchain network, are hashed and encoded into a Merkle tree.
- a Merkle tree is a data structure in which data at the leaf nodes of the tree is hashed, and all hashes in each branch of the tree are concatenated at the root of the branch.
- This process continues up the tree to the root of the entire tree, which stores a hash that is representative of all data in the tree.
- a hash purporting to be of a transaction stored in the tree can be quickly verified by determining whether it is consistent with the structure of the tree.
- a blockchain is a decentralized or at least partially decentralized data structure for storing transactions
- a blockchain network is a network of computing nodes that manage, update, and maintain one or more blockchains by broadcasting, verifying and validating transactions, etc.
- a blockchain network can be provided as a public blockchain network, a private blockchain network, or a consortium blockchain network. Implementations of this specification are described in further detail herein with reference to a consortium blockchain network. It is contemplated, however, that implementations of this specification can be realized in any appropriate type of blockchain network.
- a consortium blockchain network is private among the participating entities.
- the consensus process is controlled by an authorized set of nodes, which can be referred to as consensus nodes, one or more consensus nodes being operated by a respective entity (e.g., a financial institution, insurance company).
- a consortium of ten (10) entities e.g., financial institutions, insurance companies
- a global blockchain is provided as a blockchain that is replicated across all nodes. That is, all consensus nodes are in perfect state consensus with respect to the global blockchain.
- a consensus protocol is implemented within the consortium blockchain network.
- the consortium blockchain network can implement a practical Byzantine fault tolerance (PBFT) consensus, described in further detail below.
- PBFT Byzantine fault tolerance
- FIG. 1 is a diagram illustrating an example of an environment 100 that can be used to execute implementations of this specification.
- the example environment 100 enables entities to participate in a consortium blockchain network 102 .
- the example environment 100 includes computing devices 106 , 108 , and a network 110 .
- the network 110 includes a local area network (LAN), wide area network (WAN), the Internet, or a combination thereof, and connects web sites, user devices (e.g., computing devices), and back-end systems.
- the network 110 can be accessed over a wired and/or a wireless communications link.
- the network 110 enables communication with, and within the consortium blockchain network 102 .
- the network 110 represents one or more communication networks.
- the computing devices 106 , 108 can be nodes of a cloud computing system (not shown), or each computing device 106 , 108 can be a separate cloud computing system including a number of computers interconnected by a network and functioning as a distributed processing system.
- the computing systems 106 , 108 can each include any appropriate computing system that enables participation as a node in the consortium blockchain network 102 .
- Example computing devices include, without limitation, a server, a desktop computer, a laptop computer, a tablet computing device, and a smartphone.
- the computing systems 106 , 108 hosts one or more computer-implemented services for interacting with the consortium blockchain network 102 .
- the computing system 106 can host computer-implemented services of a first entity (e.g., user A), such as a transaction management system that the first entity uses to manage its transactions with one or more other entities (e.g., other users).
- the computing system 108 can host computer-implemented services of a second entity (e.g., user B), such as a transaction management system that the second entity uses to manage its transactions with one or more other entities (e.g., other users).
- a second entity e.g., user B
- the consortium blockchain network 102 is represented as a peer-to-peer network of nodes, and the computing systems 106 , 108 provide nodes of the first entity, and second entity respectively, which participate in the consortium blockchain network 102 .
- FIG. 2 depicts an example of an architecture 200 in accordance with implementations of this specification.
- the example of the architecture 200 includes an entity layer 202 , a hosted services layer 204 , and a blockchain network layer 206 .
- the entity layer 202 includes three participants, Participant A, Participant B, and Participant C, each participant having a respective transaction management system 208 .
- the hosted services layer 204 includes interfaces 210 for each transaction management system 210 .
- a respective transaction management system 208 communicates with a respective interface 210 over a network (e.g., the network 110 of FIG. 1 ) using a protocol (e.g., hypertext transfer protocol secure (HTTPS)).
- HTTPS hypertext transfer protocol secure
- each interface 210 provides communication connection between a respective transaction management system 208 , and the blockchain network layer 206 . More particularly, the interface 210 communicate with a blockchain network 212 of the blockchain network layer 206 .
- communication between an interface 210 , and the blockchain network layer 206 is conducted using remote procedure calls (RPCs).
- the interfaces 210 “host” blockchain network nodes for the respective transaction management systems 208 .
- the interfaces 210 provide the application programming interface (API) for access to blockchain network 212 .
- API application programming interface
- the blockchain network 212 is provided as a peer-to-peer network including a number of nodes 214 that immutably record information in a blockchain 216 .
- a single blockchain 216 is schematically depicted, multiple copies of the blockchain 216 are provided, and are maintained across the blockchain network 212 .
- each node 214 stores a copy of the blockchain.
- the blockchain 216 stores information associated with transactions that are performed between two or more entities participating in the consortium blockchain network.
- a blockchain (e.g., the blockchain 216 of FIG. 2 ) is made up of a chain of blocks, each block storing data.
- Examples of data include transaction data representative of a transaction between two or more participants. While transactions are used herein by way of non-limiting example, it is contemplated that any appropriate data can be stored in a blockchain (e.g., documents, images, videos, audio). Examples of a transaction can include, without limitation, exchanges of something of value (e.g., assets, products, services, currency).
- the transaction data is immutably stored within the blockchain. That is, the transaction data cannot be changed.
- Hashing is a process of transforming the transaction data (provided as string data) into a fixed-length hash value (also provided as string data). It is not possible to un-hash the hash value to obtain the transaction data. Hashing ensures that even a slight change in the transaction data results in a completely different hash value. Further, and as noted above, the hash value is of fixed length. That is, no matter the size of the transaction data the length of the hash value is fixed. Hashing includes processing the transaction data through a hash function to generate the hash value.
- An example of a hash function includes, without limitation, the secure hash algorithm (SHA)-256, which outputs 256-bit hash values.
- SHA secure hash algorithm
- Transaction data of multiple transactions are hashed and stored in a block. For example, hash values of two transactions are provided, and are themselves hashed to provide another hash. This process is repeated until, for all transactions to be stored in a block, a single hash value is provided.
- This hash value is referred to as a Merkle root hash, and is stored in a header of the block. A change in any of the transactions will result in change in its hash value, and ultimately, a change in the Merkle root hash.
- Blocks are added to the blockchain through a consensus protocol.
- Multiple nodes within the blockchain network participate in the consensus protocol, and perform work to have a block added to the blockchain.
- Such nodes are referred to as consensus nodes.
- PBFT introduced above, is used as a non-limiting example of a consensus protocol.
- the consensus nodes execute the consensus protocol to add transactions to the blockchain, and update the overall state of the blockchain network.
- the consensus node generates a block header, hashes all of the transactions in the block, and combines the hash value in pairs to generate further hash values until a single hash value is provided for all transactions in the block (the Merkle root hash). This hash is added to the block header.
- the consensus node also determines the hash value of the most recent block in the blockchain (i.e., the last block added to the blockchain). The consensus node also adds a nonce value, and a timestamp to the block header.
- PBFT provides a practical Byzantine state machine replication that tolerates Byzantine faults (e.g., malfunctioning nodes, malicious nodes). This is achieved in PBFT by assuming that faults will occur (e.g., assuming the existence of independent node failures, and/or manipulated messages sent by consensus nodes).
- the consensus nodes are provided in a sequence that includes a primary consensus node, and backup consensus nodes. The primary consensus node is periodically changed, Transactions are added to the blockchain by all consensus nodes within the blockchain network reaching an agreement as to the world state of the blockchain network. In this process, messages are transmitted between consensus nodes, and each consensus nodes proves that a message is received from a specified peer node, and verifies that the message was not modified during transmission.
- the consensus protocol is provided in multiple phases with all consensus nodes beginning in the same state.
- a client sends a request to the primary consensus node to invoke a service operation (e.g., execute a transaction within the blockchain network).
- the primary consensus node multicasts the request to the backup consensus nodes.
- the backup consensus nodes execute the request, and each sends a reply to the client.
- the client waits until a threshold number of replies are received. In some examples, the client waits for f+1 replies to be received, where f is the maximum number of faulty consensus nodes that can be tolerated within the blockchain network.
- the final result is that a sufficient number of consensus nodes come to an agreement on the order of the record that is to be added to the blockchain, and the record is either accepted, or rejected.
- cryptography is implemented to maintain privacy of transactions. For example, if two nodes want to keep a transaction private, such that other nodes in the blockchain network cannot discern details of the transaction, the nodes can encrypt the transaction data.
- An example of cryptography includes, without limitation, symmetric encryption, and asymmetric encryption.
- Symmetric encryption refers to an encryption process that uses a single key for both encryption (generating ciphertext from plaintext), and decryption (generating plaintext from ciphertext). In symmetric encryption, the same key is available to multiple nodes, so each node can en-/de-crypt transaction data.
- Asymmetric encryption uses keys pairs that each include a private key, and a public key, the private key being known only to a respective node, and the public key being known to any or all other nodes in the blockchain network.
- a node can use the public key of another node to encrypt data, and the encrypted data can be decrypted using other node's private key.
- Participant A can use Participant B's public key to encrypt data, and send the encrypted data to Participant B.
- Participant B can use its private key to decrypt the encrypted data (ciphertext) and extract the original data (plaintext). Messages encrypted with a node's public key can only be decrypted using the node's private key.
- Asymmetric encryption is used to provide digital signatures, which enables participants in a transaction to confirm other participants in the transaction, as well as the validity of the transaction.
- a node can digitally sign a message, and another node can confirm that the message was sent by the node based on the digital signature of Participant A.
- Digital signatures can also be used to ensure that messages are not tampered with in transit.
- Participant A is to send a message to Participant B.
- Participant A generates a hash of the message, and then, using its private key, encrypts the hash to provide a digital signature as the encrypted hash.
- Participant A appends the digital signature to the message, and sends the message with digital signature to Participant B.
- Participant B decrypts the digital signature using the public key of Participant A, and extracts the hash. Participant B hashes the message and compares the hashes. If the hashes are same, Participant B can confirm that the message was indeed from Participant A, and was not tampered with.
- a consensus version of a blockchain can be determined based on interacting with nodes of a blockchain network.
- a web server that is a node of the blockchain network can use a longest-chain and/or a heaviest-chain criteria to select a chain of blocks as the consensus version of the blockchain from among multiple candidate paths.
- the multiple candidate paths can include different blocks received at different times from different nodes of the blockchain network.
- a blockchain network enables participants to conduct transactions, for example, to buy/sell goods, and/or services.
- each participant is associated with one or more accounts.
- a transaction can involve one or more participants and execution of the transactions may affect one or more accounts of the one or more participants.
- a fund transfer transaction from Participant A to Participant B can result in a decrease of fund in Account A of Participant A and an increase of fund in Account B of Participant B.
- record-keeping models are used to record transactions and the corresponding accounts between participants.
- Examples of record-keeping models include an unspent transaction output (UTXO) model and an account model (also referred to as account-based model or account/balance model).
- UTXO unspent transaction output
- account model also referred to as account-based model or account/balance model
- the assets on the chain are in the form of transactions.
- Each transaction spends output from prior transactions and generates new outputs that can be spent in subsequent transactions.
- a participant's unspent transactions are tracked, and a balance that the participants has to spend is calculated as the sum of the unspent transactions.
- Each transaction takes one or more unspent outputs (and only unspent outputs) as input and can have one or more outputs. The requirement that only unspent outputs may be used in further transactions is necessary to prevent double spending and fraud.
- the account model performs record-keeping and manages account balances like a traditional bank. Under this model, an account can have an address and a corresponding account balance. Assets on the chain are represented as the balance of the account. Each transfer transaction can have an account address of a transferred asset and an account address of a received asset. The transaction amount is directly updated on the balance of the account.
- the account model is efficient as each transaction may only need to validate that the sending account has enough balance to pay for the transaction. In addition to supporting the transaction validation and proof function, the account model can fully support smart contracts, especially those that require state information or involve multiple parties.
- a transaction includes a message packet sent by an external account to another account on the blockchain.
- the transaction may include a sender's signature, a recipient's address, and a token that the sender transfers to the recipient.
- the transaction may also include information about a smart contract. Every transaction can be a record on the blockchain.
- a smart contract is a computer program designed to disseminate, verify, and/or execute a contract by a data processing system, e.g., a blockchain consensus network. Smart contracts allow for trusted transactions without participation of a third party. The transactions are traceable and irreversible.
- transactions in the blockchain system may include multiple types such as transfers, contract deployments, contract calls, contract updates, deposits, etc.
- a transaction can includes a sender, a recipient, an amount of the transfer, data required for the contract, a hash of the transaction, and a signature.
- a transaction can be categorized as a first-type transaction or a second-type transaction depending on whether all accounts affected by execution of the transaction can be pre-determined or ascertained before the execution of the transaction.
- For the first-type transaction one or more accounts affected by execution of the first-type transaction can be pre-determined before the execution of the first-type transaction.
- Examples of the first-type transaction can include a fund transfer transaction as described above, where the accounts (e.g., Account A of Participant A and Account B of Participant B) affected by the fund transfer transaction can be determined before the execution of the fund transfer transaction between Participant A and Participant B.
- the second-type transaction For the second-type transaction, one or more of the accounts affected by execution of the second-type transaction cannot be pre-determined or ascertained before the execution of the second-type transaction.
- Examples of the second-type transaction can include a smart contract transaction such as a call of a smart contract.
- a smart contract transaction can involve one or more participants in execution of a smart contract.
- the accounts affected by the execution of the smart contract transaction may depend on a current state of the blockchain at the time of execution, and thus cannot be ascertained before the actual execution of the smart contract transaction. As such, two or more smart contract transactions may not be executed in parallel. Because a smart contract call can lead to the execution of instructions making up the smart contract, it may not be possible to determine the scope of accounts a particular contract call will affect.
- a smart contract that takes a particular account and a payment amount as parameters, and applies the payment amount to the particular account if some condition is true. Because a caller of this smart contract specifies the particular account and the condition depends on the state of the blockchain when the smart contract is executed, it may not be possible to ascertain, from the definition of the smart contract itself (e.g., its source code), which accounts a particular call to the smart contract will affect.
- the contract call may be a transaction with the potential to affect all accounts in the blockchain network. Therefore the contract call cannot be executed in parallel with any other transactions.
- FIG. 3A depicts an example of a serial execution order 300 for transactions in a blockchain network in accordance with implementations of the specification.
- the execution order 300 includes a number of transactions ( 302 a - d , 304 a - c , 306 a - c , 308 a - b , and 310 a - b ) sequenced according to the order in which they are to be executed by network nodes of a blockchain network.
- the execution order 300 is a serial execution order where each individual transaction of transactions 302 a - d , 304 a - c , 306 a - c , 308 a - b and 310 a - b is executed one by one.
- the execution order 300 can be the same execution order among all consensus nodes (e.g., network nodes that participate in a consensus protocol) of a blockchain network.
- the execution order 300 can be an agreed execution order of the number of transactions after a consensus process performed by all consensus nodes of the blockchain network.
- the serial execution order 300 can be used to ensure that the final execution results of different blockchain nodes are consistent.
- each of the transactions 302 a - d and 304 a - c includes a first-type transaction
- each of the transactions 308 a - b and 310 a - b includes a second-type transaction such as a smart contract transaction.
- the accounts affected by execution of the second-type transaction cannot be pre-determined or ascertained before the execution of the second-type transaction because the execution of the second-type transaction may depend on a current or latest state of the blockchain in the blockchain network.
- the second-type transaction can be pre-executed by a network node, for example, before it is the second-type transaction's turn for execution in the number of transactions.
- a network node After receiving a smart contract transaction, a network node add the smart contract transaction into a transaction list in a cache.
- the network node can remove the smart contract transaction from the transaction list in the cache, and pre-execute the smart contract transaction based on the latest state of the blockchain of the network node.
- one or more accounts affected by the pre-execution of the smart contract transaction can be determined after the pre-execution.
- the one or more accounts affected by the pre-execution of the smart contract transaction can be used as an estimate or prediction of one or more accounts affected by the actual execution of the smart contract transaction.
- the pre-execution of the smart contract transaction can be rolled back to undo the changes to any changes to the account due to the pre-execution. As such, the account status is not affected.
- a network node e.g., the network node that receives the smart contract transaction from a client and pre-executes the smart contract transaction
- Both the smart contract transaction and the corresponding one or more accounts affected by the pre-execution of the smart contract transaction can be subject to a consensus process performed by all the network nodes. This can avoid repeated pre-execution operations of the smart contract transaction by other network nodes, and thus save the computational resources.
- the number of transactions 302 a - d , 304 a - c , 306 a - c , 308 a - b , and 310 a - b are transactions received during an epoch of a consensus process.
- a consensus process or mechanism is designed to achieve reliability in a network involving multiple nodes.
- a blockchain network relies on consensus mechanisms to reach agreement among network nodes of the blockchain network.
- An epoch of a consensus represents a round of consensus among the number of network nodes of the blockchain network.
- each network node may periodically collect pending transactions and submit their respectively received pending transactions to a consensus process so as to obtain a list of transactions to be executed by each network node in the blockchain network.
- each node sorts or orders the number of transactions according to certain rules before executing the number of transactions, and the final execution results of each node can be consistent as long as the ordering rules or protocol of the nodes are the same among the network nodes of the blockchain network.
- the number of transactions can be divided into one or more groups, where accounts affected by transactions in one group do not overlap with accounts affected by transactions in another group. For example, given Transaction 1 affecting Account A and Account B, Transaction 2 affecting the Account B and Account C, Transaction 3 affects Account D and Account E, Transaction 1 and Transaction 2 affect a common account, Account B, and thus cannot be executed at the same time.
- Transactions 1 , 2 , and 3 can be divided into two groups, where group I includes Transactions 1 and 2 that affect a common account, Account B, and group II includes Transaction 3 .
- group I includes Transactions 1 and 2 that affect a common account
- group II includes Transaction 3 .
- the relative execution order of the two transactions, Transaction 1 and Transaction 2 can be arbitrary.
- Group I and group II can be executed in parallel as they do not affect any common account.
- a consistent final execution result of each node can be ensured.
- the transactions 302 a - d , 304 a - c , 306 a - c , 308 a - b , and 310 a - b as shown in FIG. 3A can be divided into 4 groups, for example, based on whether pre-execution of the transactions affect one or more common transaction entities (e.g., a transferee or a sender, a transferor or a receiver, or their corresponding accounts) or have dependency, for example, in affecting one or more same or common accounts.
- Each group can include one or more a first-type transaction, a second-type transaction, or a combination of both. As shown in FIG.
- a first group 340 a of transactions includes first-type transactions 302 a - d that affect a first common transaction entity; a second group 340 b includes first-type transactions 304 a - c and a second-type transaction 310 b that affect a second common transaction entity; a third group 340 c includes first-type transactions 306 a - c that affect a third common transaction entity; and a fourth group 340 d includes second-type transactions 308 a - b and 310 a that affect a fourth common transaction entity according to the pre-execution results of the transactions 308 a - b and 310 a .
- the pre-execution results of the transactions are not affect a same account as transactions in another group do, the pre-execution results of the transactions.
- the two or more transactions may not be executed in parallel at the same time and the two or more transactions can be grouped into a single group.
- execution of the transactions in the single group affect one or more same accounts; whereas between two different groups, one or more accounts affected by execution of the transactions in one group do not overlap with one or more accounts affected by execution of the transactions in the other group.
- the transactions in the single group are to be executed in serial, whereas the transactions in the different groups can be executed in parallel.
- the relative execution order between or among the two or more transactions may be arbitrary, for example, determined according to certain protocol or ordering rules that are agreed by all the network nodes in the blockchain network. In some implementations, as long as each network node divide the groups in the same way, and the execution order of transactions within the group is the same, a consistent final pre-execution result of each node can be ensured.
- FIG. 3B depicts an example of a parallel execution order 350 for transactions in a blockchain network in accordance with implementations of the specification.
- the groups 340 a, 340 b, 340 c, and 340 d of transactions can be executed in parallel by the network nodes of the blockchain network. Executing the transaction groups 340 a, 340 b, 340 c, and 304 d in parallel can leverage multi-core or multi-thread processing power of each network node, and lead to increases in the processing speed and transaction throughput in the blockchain network, as the network is now executing four transactions at any one time in parallel rather than just one if all transactions were executed serially.
- each network node of the blockchain network executes the transactions of each group in parallel, for example, according to the parallel execution order 350 .
- the second-type transaction can be executed, for example, based on a current or latest state of the blockchain of blockchain network.
- one or more accounts affected by the actual execution of the second-type transaction may be different from the one or more accounts affected by the pre-execution of the second-type transaction because the latest state of the blockchain at the time of actual execution may be different from the latest state of the blockchain of blockchain network at the time of pre-execution, or execution of a previous transaction may affect the execution of a current second-type transaction and the one or more accounts affected by the execution of the current transaction.
- the execution of the second-type transaction can be rolled back or undone.
- a second-type transaction can be referred to as a failed second-type transaction and added to a list of failed second-type transactions.
- the list of failed second-type transactions can be re-executed serially after parallel execution of all the other transactions.
- the second-type transactions in the list of failed second-type transactions can be sorted according to certain rules agreed by all the network nodes in the blockchain network so as to ensure a consistent execution result across all the blockchain network.
- FIG. 3C depicts an example of an execution order 390 for failed second-type transactions in a blockchain network in accordance with implementations of the specification.
- the actual execution of the second-type transactions 310 a and 308 b are rolled back.
- the second-type transactions 310 a and 308 b are put into a list of failed second-type transactions and are re-executed after the parallel execution of the actual execution of the groups 340 a, 340 b, 340 c and 340 d of transactions according to the parallel execution order 350 .
- the order of transactions within the group is consistent, failed 340 c and 340 d transactions are rolled back and re-executed in serial according to a same rule after the actual execution of the other transactions, a consistent final execution result among all the network nodes in the blockchain network can be obtained.
- FIG. 4 depicts an example of a process 400 that can be executed in accordance with implementations of the specification.
- the process 400 may be performed using one or more computer-executable programs executed using one or more computing devices.
- the process 400 may be performed by each network node in a blockchain network.
- the description that follows generally describes method 400 in the context of the other figures in this description. It will be understood that method 400 may be performed, for example, by any suitable system, environment, software, and hardware, or a combination of systems, environments, software, and hardware, as appropriate.
- various steps of method 400 can be run in parallel, in combination, in loops, or in any order.
- a number of transactions to be executed in a blockchain network are received by a network node of the blockchain network.
- the network node is one of a number of network nodes of the blockchain network.
- the number of transactions can include, for example, the transactions 302 a - d , 304 a - c , 306 a - c , 308 a - b , and 310 a - b as shown in FIG. 3A .
- each of the network nodes of the blockchain network can receive a respective number of transactions to be executed in the blockchain network, for example, from one or more clients connected to the respective network nodes of the blockchain network.
- the number of transactions include all transactions received from all network nodes of the blockchain network, for example, during a time period (e.g., an epoch of a consensus process). The number of transactions can form a transaction list that is subject to a consensus process performed by all network nodes of the blockchain network.
- the transaction is a first-type transaction or a second-type transaction.
- the first-type transaction includes a transaction for which one or more accounts affected by executing the transaction is deterministic (i.e., can be ascertained) before executing the transaction
- the second-type transaction includes a transaction for which one or more accounts affected by executing the transaction is not deterministic (i.e., cannot be ascertained) before executing the transaction.
- execution of each of the second-type transactions can affect one or more accounts but the one or more accounts cannot be pre-determined or ascertained (e.g., based on the content of the transaction) before the execution of the each of the second-type transactions.
- a pre-execution of the each of the number of transactions can be used to predict or estimate the one or more accounts affected by the actual execution of the each of the number of transactions.
- the first-type transaction includes a non-smart-contract transaction (e.g., a fund transfer transaction or an account creation transaction) and the second-type transaction includes a smart contract transaction (e.g., a call to a smart contract).
- the number of transactions do not need to be executed by the network node pursuant to a predetermined or mandatory order.
- the relative execution order among the number of transactions are not of essence as long as all the network node in the blockchain network execute the number of transactions according to a same order.
- one or more accounts affected by executing the first-type transaction are determined by the network node.
- the one or more accounts affected by executing the first-type transaction can be pre-determined or ascertained before the execution of the first-type transaction, for example, based on content or data of the first-type transaction.
- the first-type transaction includes a non-smart-contract transaction, such as, a fund transfer transaction or an account creation transaction.
- the one or more accounts affected by such a first-type transaction can be determined, for example, by parsing the data of transaction that are received by the network node.
- the second-type transaction in response to determining that the transaction is a second-type transaction, is pre-executed by the network node based on a first current state of a blockchain in the blockchain network, and one or more accounts affected by the pre-executing the second-type transaction are determined.
- the first current state of a blockchain in the blockchain network can be the current or latest state of the blockchain at the time of the pre-execution of the second-type transaction.
- the second-type transaction is pre-executed by the network node when one or more processors of the network node is idle.
- a second-type transaction can be pre-executed by the network node while the network node is receiving another second-type transaction or perform other operations, for example, by leveraging multi-core or parallel processing capabilities of the network node.
- the pre-execution of the second-type transactions can make better use of the computational resources or processing power of the network node without introducing additional delay or latency.
- the second-type transaction that has been pre-executed can be rolled-back so as to avoid any changes to the first state of the blockchain in the blockchain network.
- the second-type transaction that has been pre-executed can be rolled-back before performing a consensus process of the number of transactions.
- the pre-execution of the second-type transaction can be performed on a copy of a data structure storing the first current state of the blockchain (e.g., a world state or global state Merkle Patricia Tree (MPT) tree) so that the first current state of the blockchain in the blockchain network remains unchanged due to the pre-executing of the second-type transaction.
- MPT global state Merkle Patricia Tree
- the one or more accounts affected by the pre-executing the second-type transaction can be recorded or saved, for example, as a list or another data structure together with the second-type transaction.
- the one or more accounts affected by the pre-executing the second-type transaction can be subject to a consensus process performed by all network nodes of the blockchain network for performing consensus of the one or more accounts affected by the pre-executing the second-type transaction. By recording the one or more accounts affected by the pre-executing the second-type transaction and submit them for the consensus process by the network node can to avoid repeated pre-execution operations of the second-type transaction by other network nodes, and thus save the computational resources.
- a consensus process of the number of transactions (including both the first-type and the second-type transactions) and the one or more accounts affected by the pre-executing the second-type transaction for each second-type transaction are performed by the network node.
- the consensus process can be performed, for example, according to a consensus algorithm or protocol adopted by the blockchain network. For example, as shown in FIG.
- each network node in the blockchain network can perform a consensus process of all the transactions 302 a - d , 304 a - c , 306 a - c , 308 a - b , and 310 a - b and the one or more accounts affected by the pre-executing the second-type transaction for each of the second-type transactions 308 a - b , and 310 a - b.
- the number of transactions are divided into one or more groups of transactions by the network node based on the one or more accounts affected by executing the first-type transaction for each first-type transaction and the one or more accounts affected by the pre-executing the second-type transaction for each second-type transaction.
- Each group of transactions include one or more transactions that affect one or more common transaction entities. Between each two different groups of transactions, any transaction in one group does not affect any common transaction entity with any second-type transaction in another group.
- the common second-type transaction entity can include, for example, a transferee, a transferor, an account of a transferee, or an account of a transferor associated with a transaction.
- FIG. 3B shows an example of a division of the transactions 302 a - d , 304 a - c , 306 a - c , 308 a - b , and 310 a - b into four groups 340 a - d based on the one or more accounts affected by executing the first-type transactions 302 a - d , 304 a - c , and 306 a - c , as well as the one or more accounts affected by the pre-executing the second-type transactions 308 a - b and 310 a - b.
- the number of transactions are executed by executing the one or more groups of transactions in parallel.
- FIG. 3B shows an example where the transactions 302 a - d , 304 a - c , 306 a - c , 308 a - b , and 310 a - b are executed by executing the four groups 340 a - d of transactions in parallel according to the parallel execution order 350 .
- committing the execution of the first-type transaction can include one or more of writing the execution results of the number of first-type transactions into the blockchain of the blockchain network, or returning the execution results of the number of first-type transactions to one or more clients of the blockchain network.
- one or more accounts affected by the executing the second-type transaction based on a second current state of the blockchain in the blockchain network are determined. For example, once the second-type transaction is executed based on a second current state of the blockchain in the blockchain network, the one or more accounts affected by the executing the second-type transaction can be ascertained. In some implementations, the four groups 340 a - d of second-type transactions are executed in parallel.
- each of the second-type transactions 308 a - b and 310 a - b are executed based on a respective second current state of the blockchain in the blockchain network such as the current or latest state of the blockchain at the time of the actual execution of the respective second-type transactions (e.g., at the time of the parallel execution of each of the second-type transactions 308 a - b and 310 a - b ).
- the second current state of the blockchain is different from the first current state of the blockchain in the blockchain network.
- committing the execution of the number of second-type transactions can include one or more of writing the execution results of the number of second-type transactions into the blockchain of the blockchain network, or returning the execution results of the number of second-type transactions to one or more clients of the blockchain network.
- the executing the second-type transaction is rolled back.
- such a second-type transaction is re-executed after executing the one or more groups of transactions in parallel.
- a second-type transaction can be identified as a failed second-type transaction (e.g., the second-type transaction 310 a or 308 b as shown in FIG. 3C ).
- one or more failed second-type transactions out of the number of second-type transactions can be identified, wherein for each of the one or more failed second-type transactions, one or more accounts affected by the executing the failed second-type transaction are not the same as one or more accounts affected by the pre-executing the failed second-type transaction or the one or more accounts affected by the executing the second-type transaction are affected by any previously executed second-type transactions in the number of second-type transactions.
- the one or more failed second-type transactions can be re-executed after executing the one or more groups of second-type transactions in parallel.
- all the failed second-type transactions can be added to a failed second-type transaction list. All the failed second-type transactions in the failed second-type transaction list can be re-executed in serial after executing the one or more groups of second-type transactions in parallel.
- the process 400 proceeds to 450 where the re-execution of failed second-type transactions transaction is committed.
- the number of transactions are executed by the network node in a same order as the number of transactions are executed by any other network node of the number of network nodes of the blockchain network.
- each network node can determine, according to a protocol used by each of the plurality of network nodes of the blockchain network, a sequential order of executing the one or more transactions within each of the one or more group; and a sequential order of executing the one or more failed second-type transactions after executing the one or more groups of transactions in parallel.
- the execution order of transactions within the group is consistent, failed second-type transactions are rolled back and re-executed in serial after the actual execution of the other transactions, for example, according to a same rule, a consistent final execution result among all the network nodes in the blockchain network can be obtained.
- FIG. 5 is a diagram of an example of modules of an apparatus 500 in accordance with implementations of this specification.
- the apparatus 500 can be an example implementation of a blockchain network node configured to perform parallel execution of smart contract transactions, wherein the blockchain network is a consortium blockchain network.
- the apparatus 500 can correspond to the implementations described above, and the apparatus 500 includes the following: a receiver or a receiving module 501 , configured to receive a number of transactions; a first determining module 502 , configured to determine whether the transaction is a first-type transaction or a second-type transaction; a second determining module 503 , configured to, in response to determining that the transaction is a first-type transaction, determine one or more accounts affected by executing the first-type transaction; a pre-executing module 504 , configured to, in response to determining that the transaction is a second-type transaction, pre-execute each of the number of second-type transactions based on a first current state of a blockchain in the blockchain network; a third determining module 506 , configured to
- the apparatus 500 further includes the following: a rolling back module 518 , configured to roll back the executing one of the number of second-type transactions in response to determining that, for one second-type transaction, the one or more accounts affected by the executing the second-type transaction are not the same as one or more accounts affected by the pre-executing of the second-type transaction or the one or more accounts affected by the executing the second-type transaction are affected by any previously executed transactions in the number of transactions; and a re-executing module 520 , configured to re-execute the second-type transaction after executing the one or more groups of transactions in parallel.
- a rolling back module 518 configured to roll back the executing one of the number of second-type transactions in response to determining that, for one second-type transaction, the one or more accounts affected by the executing the second-type transaction are not the same as one or more accounts affected by the pre-executing of the second-type transaction or the one or more accounts affected by the executing the second-type transaction are affected by any previously executed transactions in the number of transactions.
- the apparatus 500 further includes the following: a recording module 522 , configured to record the one or more accounts affected by the pre-executing each of the number of second-type transactions for performing consensus of the one or more accounts affected by the pre-executing the second-type transaction.
- a recording module 522 configured to record the one or more accounts affected by the pre-executing each of the number of second-type transactions for performing consensus of the one or more accounts affected by the pre-executing the second-type transaction.
- the number of transactions are executed by the network node in a same order as the number of transactions are executed by any other network node of the number of network nodes of the blockchain network.
- the apparatus 500 further includes the following: an identifying module 524 , configured to identify one or more failed second-type transactions, wherein for each of the one or more failed second-type transactions, one or more accounts affected by the executing the failed second-type transaction are not the same as one or more accounts affected by the pre-executing of the failed second-type transaction or the one or more accounts affected by the executing the second-type transaction are not affected by any previously executed transactions in the number of transactions; and the re-executing module 520 , configured to re-execute the one or more failed second-type transactions after executing the one or more groups of transactions in parallel.
- an identifying module 524 configured to identify one or more failed second-type transactions, wherein for each of the one or more failed second-type transactions, one or more accounts affected by the executing the failed second-type transaction are not the same as one or more accounts affected by the pre-executing of the failed second-type transaction or the one or more accounts affected by the executing the second-type transaction are not affected by any previously executed transactions in the number of transactions.
- the apparatus 500 further includes the following: a fifth determining module 526 , configured to determine a sequential order of executing one or more transactions within each of the one or more groups; and a sixth determining module 528 , configured to determine a sequential order of executing the one or more failed second-type transactions after executing the one or more groups of transactions in parallel.
- each group of transactions includes one or more transactions that share a common transaction entity; and between each two different groups of transactions, any transaction in one group does not share any common transaction entity with any transaction in another group.
- the common second-type transaction entity includes a transferee, a transferor, an account of a transferee, or an account of a transferor associated with a transaction.
- a transaction for which all accounts affected by executing the transaction is deterministic before executing the transaction is a first-type transaction
- a transaction for which one or more accounts affected by executing the transaction is not deterministic before executing the transaction is a second-type transaction.
- a non-smart-contract transaction is a first-type transaction and a smart contract transaction is a second-type transaction.
- pre-executing, by the network node, second-type transaction comprises pre-executing the second-type transaction, by the network node, when one or more processors of the network node is idle.
- the system, apparatus, module, or unit illustrated in the previous implementations can be implemented by using a computer chip or an entity, or can be implemented by using a product having a certain function.
- a typical implementation device is a computer, and the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, a game console, a tablet computer, a wearable device, or any combination of these devices.
- the transaction execution apparatus can be an example of a blockchain network node configured to perform parallel execution of smart contract transactions.
- the transaction execution apparatus can be an example of a blockchain network node configured to perform parallel execution of smart contract transactions.
- An execution body in essence can be an electronic device, and the electronic device includes the following: one or more processors; and a memory configured to store an executable instruction of the one or more processors.
- the one or more processors are configured to receive a number of transactions to be executed in a blockchain network; for each of the number of transactions, determine whether the transaction is a first-type transaction or a second-type transaction; in response to determining that the transaction is a first-type transaction, determine one or more accounts affected by executing the first-type transaction; in response to determining that the transaction is a second-type transaction, pre-execute the second-type transaction based on a first current state of a blockchain in the blockchain network; and determine one or more accounts affected by the pre-executing the second-type transaction; perform a consensus process of the number of transactions and the one or more accounts affected by the pre-executing the second-type transaction for each second-type transaction; divide the number of transactions into one or more groups of transactions based on the one or more accounts affected by executing the first-type transaction for each first-type transaction and the one or more accounts affected by the pre-executing the second-type transaction for each second-type transaction; execute the number of transactions by executing one or more groups of transactions in parallel; for each
- the one or more processors are configured to, in response to determining that, for one second-type transaction, the one or more accounts affected by the executing the second-type transaction are not the same as one or more accounts affected by the pre-executing of the second-type transaction or the one or more accounts affected by the executing the second-type transaction are affected by any previously executed transactions in the number of transactions, roll back the executing the second-type transaction; and execute the second-type transaction after executing the one or more groups of transactions in parallel.
- the one or more processors are configured to, for each second-type transaction, record the one or more accounts affected by the pre-executing the second-type transaction for performing consensus of the one or more accounts affected by the pre-executing the second-type transaction.
- the number of transactions are executed by a network node in a same order as the number of transactions are executed by any other network node of a number of network nodes of the blockchain network.
- the one or more processors are configured to, identify one or more failed second-type transactions, wherein for each of the one or more failed second-type transactions, one or more accounts affected by the executing the failed second-type transaction are not the same as one or more accounts affected by the pre-executing of the failed second-type transaction or the one or more accounts affected by the executing the second-type transaction are not affected by any previously executed transactions in the number of transactions; and execute the one or more failed second-type transactions after executing the one or more groups of transactions in parallel.
- the one or more processors are configured to, according to a protocol used by each of the plurality of network nodes of the blockchain network: determine a sequential order of executing one or more transactions within each of the one or more groups; and determine a sequential order of executing the one or more failed second-type transactions after executing the one or more groups of transactions in parallel.
- each group of transactions includes one or more transactions that affect a common transaction entity; and between each two different groups of transactions, any transaction in one group does not affect any common transaction entity with any transaction in another group.
- the common transaction entity includes a transferee, a transferor, an account of a transferee, or an account of a transferor associated with a transaction.
- a transaction for which all accounts affected by executing the transaction is deterministic before executing the transaction is a first-type transaction
- a transaction for which one or more accounts affected by executing the transaction is not deterministic before executing the transaction is a second-type transaction.
- pre-executing, by the network node, second-type transaction comprises pre-executing the second-type transaction, by the network node, when one or more processors of the network node is idle.
- the specification discloses techniques that allow parallel execution of transactions in a distributed ledger system while guaranteeing the same execution order of the transactions performed by each network node of the distributed ledger system to ensure consistency of execution results of the transactions in the distributed ledger system.
- smart contract transactions that can be executed in parallel are grouped together, for example, based on pre-execution results of the smart contract transactions.
- the technical effects and advantages are achieved, inter alia, by putting in different groups transactions that do not affect any common transaction entity or have dependency on one another (e.g., do not affect the same accounts in the blockchain network).
- the technique identifies groups of transactions can be executed in parallel with each other.
- the described techniques thus can improve the processing speed of the transactions and increase transaction throughput in a blockchain network.
- pre-execution of the smart contract transactions can be done by a network node when one or more processors of the network node is idle, which make better use of the computational resources or processing power of the network node without introducing additional delay or latency.
- the multiple groups of transactions can be executed independently in parallel by taking advantage of a multi-processor or multi-core network node or multiple computers in a cluster of computers to increase the execution speed of the network node and the efficiency of the overall blockchain network.
- the described techniques do not require entry (e.g., manually) of a list of accounts of affected by the execution of the smart contract transactions, thus is not subject to possibility of entry errors or the unpredictability of affected accounts of certain smart contract transactions.
- a method for executing a number of transactions in a blockchain network includes receiving, by a network node of the blockchain network, a number of transactions to be executed in a blockchain network; for each of the number of transactions, determining whether the transaction is a first-type transaction or a second-type transaction; in response to determining that the transaction is a first-type transaction, determining, by the network node, one or more accounts affected by executing the first-type transaction; in response to determining that the transaction is a second-type transaction, pre-executing, by the network node, the second-type transaction based on a first current state of a blockchain in the blockchain network; and determining, by the network node, one or more accounts affected by the pre-executing the second-type transaction; performing a consensus process of the number of transactions and the one or more accounts affected by the pre-executing the second-type transaction for each second-type transaction; dividing, by the network node, the
- a first feature combinable with any of the following features, further including: for each first-type transaction, committing the executing the first-type transaction; for each second-type transaction, determining one or more accounts affected by the executing the second-type transaction based on a second current state of a blockchain in the blockchain network; and determining if the one or more accounts affected by the executing the second-type transaction are the same as the one or more accounts affected by the pre-executing of the second-type transaction and if the one or more accounts affected by the executing the second-type transaction are not affected by any previously executed transactions in the number of transactions; and in response to determining that the each of the one or more accounts affected by the executing the second-type transaction are the same as one or more accounts affected by the pre-executing of the second-type transaction and the one or more accounts affected by the executing the second-type transaction are not affected by any previously executed transactions in the number of transactions, committing the executing the second-type transaction.
- a fourth feature combinable with any of the following features, wherein the number of transactions are executed by a network node in a same order as the number of transactions are executed by any other network node of a number of network nodes of the blockchain network.
- a fifth feature combinable with any of the following features, further including: identify one or more failed second-type transactions, wherein for each of the one or more failed second-type transactions, one or more accounts affected by the executing the failed second-type transaction are not the same as one or more accounts affected by the pre-executing of the failed second-type transaction or the one or more accounts affected by the executing the second-type transaction are not affected by any previously executed transactions in the number of transactions; and execute the one or more failed second-type transactions after executing the one or more groups of transactions in parallel.
- a sixth feature combinable with any of the following features, further including: according to a protocol used by each of the plurality of network nodes of the blockchain network: determine a sequential order of executing one or more transactions within each of the one or more groups; and determine a sequential order of executing the one or more failed second-type transactions after executing the one or more groups of transactions in parallel.
- each group of transactions includes one or more transactions that affect a common transaction entity; and between each two different groups of transactions, any transaction in one group does not affect any common transaction entity with any transaction in another group.
- a ninth feature combinable with any of the following features, wherein: a transaction for which all accounts affected by executing the transaction is deterministic before executing the transaction is a first-type transaction, and a transaction for which one or more accounts affected by executing the transaction is not deterministic before executing the transaction is a second-type transaction.
- a tenth feature combinable with any of the following features, wherein a non-smart-contract transaction is a first-type transaction and a smart contract transaction is a second-type transaction.
- pre-executing, by the network node, second-type transaction comprises pre-executing the second-type transaction, by the network node, when one or more processors of the network node is idle.
- Implementations of the subject matter and the actions and operations described in this specification can be implemented in digital electronic circuitry, in tangibly-embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Implementations of the subject matter described in this specification can be implemented as one or more computer programs, e.g., one or more modules of computer program instructions, encoded on a computer program carrier, for execution by, or to control the operation of, data processing apparatus.
- a computer program carrier can include one or more computer-readable storage media that have instructions encoded or stored thereon.
- the carrier may be a tangible non-transitory computer-readable medium, such as a magnetic, magneto optical, or optical disk, a solid state drive, a random access memory (RAM), a read-only memory (ROM), or other types of media.
- the carrier may be an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus.
- the computer storage medium can be or be part of a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
- a computer storage medium is not a propagated signal.
- a computer program which may also be referred to or described as a program, software, a software application, an app, a module, a software module, an engine, a script, or code, can be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it can be deployed in any form, including as a stand-alone program or as a module, component, engine, subroutine, or other unit suitable for executing in a computing environment, which environment may include one or more computers interconnected by a data communication network in one or more locations.
- a computer program may, but need not, correspond to a file in a file system.
- a computer program can be stored in a portion of a file that holds other programs or data, e.g., one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in multiple coordinated files, e.g., files that store one or more modules, sub programs, or portions of code.
- processors for execution of a computer program include, by way of example, both general- and special-purpose microprocessors, and any one or more processors of any kind of digital computer.
- a processor will receive the instructions of the computer program for execution as well as data from a non-transitory computer-readable medium coupled to the processor.
- data processing apparatus encompasses all kinds of apparatuses, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers.
- Data processing apparatus can include special-purpose logic circuitry, e.g., an FPGA (field programmable gate array), an ASIC (application specific integrated circuit), or a GPU (graphics processing unit).
- the apparatus can also include, in addition to hardware, code that creates an execution environment for computer programs, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
- the processes and logic flows described in this specification can be performed by one or more computers or processors executing one or more computer programs to perform operations by operating on input data and generating output.
- the processes and logic flows can also be performed by special-purpose logic circuitry, e.g., an FPGA, an ASIC, or a GPU, or by a combination of special-purpose logic circuitry and one or more programmed computers.
- Computers suitable for the execution of a computer program can be based on general or special-purpose microprocessors or both, or any other kind of central processing unit.
- a central processing unit will receive instructions and data from a read only memory or a random access memory or both.
- Elements of a computer can include a central processing unit for executing instructions and one or more memory devices for storing instructions and data.
- the central processing unit and the memory can be supplemented by, or incorporated in, special-purpose logic circuitry.
- a computer will also include, or be operatively coupled to receive data from or transfer data to one or more storage devices.
- the storage devices can be, for example, magnetic, magneto optical, or optical disks, solid state drives, or any other type of non-transitory, computer-readable media.
- a computer need not have such devices.
- a computer may be coupled to one or more storage devices, such as, one or more memories, that are local and/or remote.
- a computer can include one or more local memories that are integral components of the computer, or the computer can be coupled to one or more remote memories that are in a cloud network.
- a computer can be embedded in another device, e.g., a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device, e.g., a universal serial bus (USB) flash drive, to name just a few.
- PDA personal digital assistant
- GPS Global Positioning System
- USB universal serial bus
- Components can be “coupled to” each other by being commutatively such as electrically or optically connected to one another, either directly or via one or more intermediate components. Components can also be “coupled to” each other if one of the components is integrated into the other. For example, a storage component that is integrated into a processor (e.g., an L2 cache component) is “coupled to” the processor.
- a storage component that is integrated into a processor e.g., an L2 cache component
- implementations of the subject matter described in this specification can be implemented on, or configured to communicate with, a computer having a display device, e.g., a LCD (liquid crystal display) monitor, for displaying information to the user, and an input device by which the user can provide input to the computer, e.g., a keyboard and a pointing device, e.g., a mouse, a trackball or touchpad.
- a display device e.g., a LCD (liquid crystal display) monitor
- an input device by which the user can provide input to the computer e.g., a keyboard and a pointing device, e.g., a mouse, a trackball or touchpad.
- Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input.
- a computer can interact with a user by sending documents to and receiving documents from a device that is used by the user; for example, by sending web pages to a web browser on a user's device in response to requests received from the web browser, or by interacting with an app running on a user device, e.g., a smartphone or electronic tablet.
- a computer can interact with a user by sending text messages or other forms of message to a personal device, e.g., a smartphone that is running a messaging application, and receiving responsive messages from the user in return.
Abstract
Description
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/945,696 US11057217B2 (en) | 2019-04-12 | 2020-07-31 | Performing parallel execution of transactions in a distributed ledger system |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/082564 WO2019120334A2 (en) | 2019-04-12 | 2019-04-12 | Performing parallel execution of transactions in a distributed ledger system |
US16/670,587 US11082230B2 (en) | 2019-04-12 | 2019-10-31 | Performing parallel execution of transactions in a distributed ledger system |
US16/945,696 US11057217B2 (en) | 2019-04-12 | 2020-07-31 | Performing parallel execution of transactions in a distributed ledger system |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/670,587 Continuation US11082230B2 (en) | 2019-04-12 | 2019-10-31 | Performing parallel execution of transactions in a distributed ledger system |
Publications (2)
Publication Number | Publication Date |
---|---|
US20200366494A1 US20200366494A1 (en) | 2020-11-19 |
US11057217B2 true US11057217B2 (en) | 2021-07-06 |
Family
ID=66994280
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/670,587 Active US11082230B2 (en) | 2019-04-12 | 2019-10-31 | Performing parallel execution of transactions in a distributed ledger system |
US16/945,696 Active US11057217B2 (en) | 2019-04-12 | 2020-07-31 | Performing parallel execution of transactions in a distributed ledger system |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/670,587 Active US11082230B2 (en) | 2019-04-12 | 2019-10-31 | Performing parallel execution of transactions in a distributed ledger system |
Country Status (9)
Country | Link |
---|---|
US (2) | US11082230B2 (en) |
EP (1) | EP3619667A4 (en) |
JP (1) | JP6827564B2 (en) |
KR (1) | KR102289612B1 (en) |
CN (1) | CN111095324B (en) |
AU (1) | AU2019204733B2 (en) |
CA (1) | CA3060790C (en) |
SG (1) | SG11201909767TA (en) |
WO (1) | WO2019120334A2 (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11249985B2 (en) * | 2019-06-15 | 2022-02-15 | Facebook, Inc. | Scalable, secure, efficient, and adaptable distributed digital ledger transaction network |
KR102304954B1 (en) * | 2019-08-30 | 2021-09-27 | 주식회사 미디움 | Peer node, method for processing information executed on peer node and blockchain platform system |
US20220327526A1 (en) * | 2019-10-02 | 2022-10-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Method for enabling efficient evaluation of transactions in a distributed ledger network |
KR102335058B1 (en) * | 2019-11-19 | 2021-12-06 | 한양대학교 산학협력단 | Method for linearizng concurrent transactions having interdependencies, blockcahin node device and program using the same |
WO2021145606A1 (en) * | 2020-01-17 | 2021-07-22 | Samsung Electronics Co., Ltd. | User apparatus and manager apparatus included in blockchain network and controlling method thereof |
CN111932239B (en) * | 2020-09-18 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Service processing method, device, node equipment and storage medium |
CN112001797B (en) * | 2020-10-28 | 2021-01-08 | 支付宝(杭州)信息技术有限公司 | Method and device for grouping transactions in blockchain |
KR102346292B1 (en) * | 2020-11-11 | 2022-01-03 | 엘에스웨어(주) | System and method for classifing transaction using key information |
KR102506286B1 (en) * | 2020-11-25 | 2023-03-06 | 주식회사 디지캡 | Multi-channel blockchain transaction batch processing device |
KR102346293B1 (en) * | 2020-12-08 | 2022-01-03 | 엘에스웨어(주) | Blockchain system and performance method for distributed processing of transaction using common keyset information |
CN112990895A (en) * | 2021-03-11 | 2021-06-18 | 杭州复杂美科技有限公司 | Method, equipment and storage medium for accelerating parallel execution of block chain transaction |
CN113077344B (en) * | 2021-04-15 | 2023-06-30 | 恒生电子股份有限公司 | Block chain-based transaction method, device, electronic equipment and storage medium |
CN113190567B (en) * | 2021-04-28 | 2021-09-28 | 支付宝(杭州)信息技术有限公司 | Transaction detection method and device |
KR20230099012A (en) * | 2021-12-27 | 2023-07-04 | 엘에스웨어(주) | System and method for accessing ledger information having multipe storage |
KR20230099011A (en) * | 2021-12-27 | 2023-07-04 | 엘에스웨어(주) | System and method for accessing ledger information using common keyset information |
Citations (53)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100287554A1 (en) | 2009-05-11 | 2010-11-11 | International Business Machines Corporation | Processing serialized transactions in parallel while preserving transaction integrity |
US20160350749A1 (en) * | 2015-05-26 | 2016-12-01 | Medici, Inc. | Obfuscation of intent in transactions using cryptographic techniques |
US9594644B2 (en) | 2014-09-19 | 2017-03-14 | Sybase, Inc. | Converting a serial transaction schedule to a parallel transaction schedule |
CN106980649A (en) | 2017-02-28 | 2017-07-25 | 阿里巴巴集团控股有限公司 | The method and apparatus and business subclass for writing block chain business datum determine method |
US20170212781A1 (en) | 2016-01-26 | 2017-07-27 | International Business Machines Corporation | Parallel execution of blockchain transactions |
CN107402824A (en) | 2017-05-31 | 2017-11-28 | 阿里巴巴集团控股有限公司 | A kind of method and device of data processing |
CN107451175A (en) * | 2017-05-23 | 2017-12-08 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment based on block chain |
CN107678865A (en) | 2017-09-20 | 2018-02-09 | 中国银行股份有限公司 | The verification method and system of block chain based on transaction packet |
US20180096360A1 (en) * | 2016-10-04 | 2018-04-05 | International Business Machines Corporation | Method and apparatus to enforce smart contract execution hierarchy on blockchain |
US20180158034A1 (en) | 2016-12-07 | 2018-06-07 | International Business Machines Corporation | Dynamic reordering of blockchain transactions to optimize performance and scalability |
CN108269072A (en) | 2016-12-30 | 2018-07-10 | 深圳瀚德创客金融投资有限公司 | For the transaction processing method and network node of block chain |
WO2018137564A1 (en) | 2017-01-26 | 2018-08-02 | 阿里巴巴集团控股有限公司 | Service processing method and apparatus |
US20180276668A1 (en) | 2017-03-24 | 2018-09-27 | Alibaba Group Holding Limited | Method and apparatus for consensus verification |
WO2018183148A1 (en) | 2017-03-29 | 2018-10-04 | Alibaba Group Holding Limited | Method, apparatus, and system for blockchain consensus |
WO2018207064A1 (en) | 2017-05-08 | 2018-11-15 | nChain Holdings Limited | Systems and Methods For Parallel Verification of Blockchain Transactions |
US20190018984A1 (en) | 2017-07-14 | 2019-01-17 | Microsoft Technology Licensing, Llc | Blockchain |
US20190044714A1 (en) | 2017-08-04 | 2019-02-07 | Truss Financial, LLC | Secure data distribution protocol using blockchains |
US20190058580A1 (en) | 2017-08-15 | 2019-02-21 | Acronis International Gmbh | System and method for publication of private data using a blockchain network |
WO2019043536A1 (en) | 2017-08-29 | 2019-03-07 | nChain Holdings Limited | Concurrent state machine processing using a blockchain |
US20190081793A1 (en) * | 2017-09-12 | 2019-03-14 | Kadena, LLC | Parallel-chain architecture for blockchain systems |
US20190087893A1 (en) * | 2016-05-06 | 2019-03-21 | Othera Pty Ltd | Methods and Systems for Blockchain Based Segmented Risk Based Securities |
US20190087446A1 (en) | 2017-09-20 | 2019-03-21 | Samsung Electronics Co., Ltd. | Method and apparatus for managing a service request in a blockchain network |
US20190087793A1 (en) | 2017-08-31 | 2019-03-21 | Brown University | Adding concurrency to smart contracts |
CN109559226A (en) | 2018-11-28 | 2019-04-02 | 杭州有盾网络科技有限公司 | Block chain transaction execution method, system and electronic equipment and storage medium |
US20190108518A1 (en) | 2017-10-11 | 2019-04-11 | International Business Machines Corporation | Transaction reservation for block space on a blockchain |
US20190108498A1 (en) | 2017-10-11 | 2019-04-11 | International Business Machines Corporation | Decentralized pooled mining for enabling proof-of-work on blockchains |
WO2019072305A2 (en) | 2018-12-28 | 2019-04-18 | Alibaba Group Holding Limited | Parallel execution of transactions in a blockchain network based on smart contract whitelists |
US20190149600A1 (en) * | 2017-11-16 | 2019-05-16 | International Business Machines Corporation | Partitioning of a blockchain ledger |
US20190188711A1 (en) | 2017-12-19 | 2019-06-20 | Tbcasoft, Inc. | Cross-ledger transfers between distributed ledgers |
US20190236598A1 (en) | 2018-01-31 | 2019-08-01 | Salesforce.Com, Inc. | Systems, methods, and apparatuses for implementing machine learning models for smart contracts using distributed ledger technologies in a cloud based computing environment |
US20190236298A1 (en) * | 2018-01-29 | 2019-08-01 | Vinay Kumar Agarwal | Proof-of-approval distributed ledger |
US20190238316A1 (en) | 2018-01-31 | 2019-08-01 | Salesforce.Com, Inc. | Systems, methods, and apparatuses for implementing intelligent consensus, smart consensus, and weighted consensus models for distributed ledger technologies in a cloud based computing environment |
US20190244207A1 (en) | 2018-02-02 | 2019-08-08 | Ehab Samuel | Systems, methods and machine-readable mediums for blockchain enforced conditional transfer of cryptocurrency |
US20190287101A1 (en) | 2018-12-28 | 2019-09-19 | Alibaba Group Holding Limited | Parallel execution of transactions in a blockchain network |
US20190287082A1 (en) | 2018-03-13 | 2019-09-19 | WAY2BIT Co. Ltd. | Method for processing transactions using blockchain networks, and transaction management server using the same |
US20190327082A1 (en) * | 2018-04-24 | 2019-10-24 | Duvon Corporation | Autonomous exchange via entrusted ledger token and transaction management |
US20190334715A1 (en) * | 2018-04-26 | 2019-10-31 | Microsoft Technology Licensing, Llc | Cryptlet proofing services |
US20190334726A1 (en) * | 2018-04-30 | 2019-10-31 | Dell Products L.P. | Blockchain-based method and system for immutable resource allocation in a cloud computing environment |
US20190334920A1 (en) * | 2018-04-30 | 2019-10-31 | Dell Products L.P. | Blockchain-based method and system for providing tenant security and compliance in a cloud computing environment |
US20190340269A1 (en) * | 2018-05-02 | 2019-11-07 | Rockwell Automation Technologies, Inc. | Blockchain-enabled industrial devices |
US20190354397A1 (en) | 2018-05-15 | 2019-11-21 | International Business Machines Corporation | Prioritization in a permissioned blockchain |
US20190363873A1 (en) * | 2018-05-23 | 2019-11-28 | International Business Machines Corporation | Blockchain stochastic timer transaction synchronization |
US20190362423A1 (en) | 2015-08-12 | 2019-11-28 | Chicago Mercantile Exchange Inc. | Mitigation of latency disparity in a transaction processing system |
US20190386995A1 (en) | 2018-06-14 | 2019-12-19 | Zero31Skytech Inc. | Apparatus, system and method to limit access to open networks by requiring the consensus of pre-existing nodes to admit candidate nodes |
US20200013025A1 (en) * | 2018-07-06 | 2020-01-09 | International Business Machines Corporation | Conditional deferred transactions for blockchain |
US20200021602A1 (en) * | 2018-07-11 | 2020-01-16 | International Business Machines Corporation | Trace-based transaction validation and commitment |
US20200034448A1 (en) * | 2018-07-29 | 2020-01-30 | International Business Machines Corporation | Composition operators for smart contract |
US20200034453A1 (en) * | 2018-07-29 | 2020-01-30 | International Business Machines Corporation | Smart contract input mapping |
US20200034469A1 (en) * | 2018-07-29 | 2020-01-30 | International Business Machines Corporation | Automatic generation of smart contracts |
US20200044824A1 (en) | 2019-03-28 | 2020-02-06 | Alibaba Group Holding Limited | System and method for parallel-processing blockchain transactions |
US20200052884A1 (en) * | 2018-08-13 | 2020-02-13 | International Business Machines Corporation | Parallel transaction validation and block generation in a blockchain |
US20200167741A1 (en) * | 2017-07-18 | 2020-05-28 | nChain Holdings Limited | Systems and methods for blockchain-dependent operation sets |
US20200210402A1 (en) * | 2018-12-28 | 2020-07-02 | Accelor Ltd. | Systems and methods for performing programmable smart contract execution |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11182851B2 (en) * | 2016-10-20 | 2021-11-23 | International Business Machines Corporation | Inter-ledger messaging in a blockchain |
CN106682984B (en) * | 2016-10-27 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Transaction business process method and system based on block chain |
CN108427601A (en) * | 2017-02-13 | 2018-08-21 | 北京航空航天大学 | A kind of cluster transaction processing method of privately owned chain node |
WO2018175666A1 (en) * | 2017-03-21 | 2018-09-27 | Dappsters, LLC | Blockchain systems and methods |
CN107833060B (en) * | 2017-11-13 | 2020-12-25 | 中国银行股份有限公司 | Verification method and system for intelligent contract transaction in block chain |
CN108053239B (en) * | 2017-12-11 | 2021-01-19 | 中山大学 | Sensor network sharing method based on block chain |
CN108846659B (en) * | 2018-06-13 | 2021-09-14 | 深圳前海微众银行股份有限公司 | Block chain-based transfer method and device and storage medium |
CN109359159A (en) * | 2018-09-30 | 2019-02-19 | 深圳前海微众银行股份有限公司 | Distributed storage method, system and equipment |
-
2019
- 2019-04-12 KR KR1020197032260A patent/KR102289612B1/en active IP Right Grant
- 2019-04-12 WO PCT/CN2019/082564 patent/WO2019120334A2/en unknown
- 2019-04-12 AU AU2019204733A patent/AU2019204733B2/en active Active
- 2019-04-12 JP JP2019559291A patent/JP6827564B2/en active Active
- 2019-04-12 EP EP19732228.2A patent/EP3619667A4/en not_active Ceased
- 2019-04-12 CA CA3060790A patent/CA3060790C/en active Active
- 2019-04-12 SG SG11201909767T patent/SG11201909767TA/en unknown
- 2019-04-12 CN CN201980004116.3A patent/CN111095324B/en active Active
- 2019-10-31 US US16/670,587 patent/US11082230B2/en active Active
-
2020
- 2020-07-31 US US16/945,696 patent/US11057217B2/en active Active
Patent Citations (59)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100287554A1 (en) | 2009-05-11 | 2010-11-11 | International Business Machines Corporation | Processing serialized transactions in parallel while preserving transaction integrity |
US9594644B2 (en) | 2014-09-19 | 2017-03-14 | Sybase, Inc. | Converting a serial transaction schedule to a parallel transaction schedule |
US20160350749A1 (en) * | 2015-05-26 | 2016-12-01 | Medici, Inc. | Obfuscation of intent in transactions using cryptographic techniques |
US20190362423A1 (en) | 2015-08-12 | 2019-11-28 | Chicago Mercantile Exchange Inc. | Mitigation of latency disparity in a transaction processing system |
US20170212781A1 (en) | 2016-01-26 | 2017-07-27 | International Business Machines Corporation | Parallel execution of blockchain transactions |
US10255108B2 (en) | 2016-01-26 | 2019-04-09 | International Business Machines Corporation | Parallel execution of blockchain transactions |
US20190087893A1 (en) * | 2016-05-06 | 2019-03-21 | Othera Pty Ltd | Methods and Systems for Blockchain Based Segmented Risk Based Securities |
US20180096360A1 (en) * | 2016-10-04 | 2018-04-05 | International Business Machines Corporation | Method and apparatus to enforce smart contract execution hierarchy on blockchain |
US20180158034A1 (en) | 2016-12-07 | 2018-06-07 | International Business Machines Corporation | Dynamic reordering of blockchain transactions to optimize performance and scalability |
CN108269072A (en) | 2016-12-30 | 2018-07-10 | 深圳瀚德创客金融投资有限公司 | For the transaction processing method and network node of block chain |
WO2018137564A1 (en) | 2017-01-26 | 2018-08-02 | 阿里巴巴集团控股有限公司 | Service processing method and apparatus |
CN106980649A (en) | 2017-02-28 | 2017-07-25 | 阿里巴巴集团控股有限公司 | The method and apparatus and business subclass for writing block chain business datum determine method |
WO2018157778A1 (en) | 2017-02-28 | 2018-09-07 | 阿里巴巴集团控股有限公司 | Method and apparatus for writing service data into block chain and method for determining service subset |
US20190361731A1 (en) | 2017-02-28 | 2019-11-28 | Alibaba Group Holding Limited | Method and apparatus for writing service data into block chain and method for determining service subset |
US20180276668A1 (en) | 2017-03-24 | 2018-09-27 | Alibaba Group Holding Limited | Method and apparatus for consensus verification |
WO2018183148A1 (en) | 2017-03-29 | 2018-10-04 | Alibaba Group Holding Limited | Method, apparatus, and system for blockchain consensus |
WO2018207064A1 (en) | 2017-05-08 | 2018-11-15 | nChain Holdings Limited | Systems and Methods For Parallel Verification of Blockchain Transactions |
US20200005255A1 (en) * | 2017-05-23 | 2020-01-02 | Alibaba Group Holding Limited | Blockchain-based data processing method and device |
CN107451175A (en) * | 2017-05-23 | 2017-12-08 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment based on block chain |
CN107402824A (en) | 2017-05-31 | 2017-11-28 | 阿里巴巴集团控股有限公司 | A kind of method and device of data processing |
US20190018984A1 (en) | 2017-07-14 | 2019-01-17 | Microsoft Technology Licensing, Llc | Blockchain |
US20200167741A1 (en) * | 2017-07-18 | 2020-05-28 | nChain Holdings Limited | Systems and methods for blockchain-dependent operation sets |
US20190044714A1 (en) | 2017-08-04 | 2019-02-07 | Truss Financial, LLC | Secure data distribution protocol using blockchains |
US20190058580A1 (en) | 2017-08-15 | 2019-02-21 | Acronis International Gmbh | System and method for publication of private data using a blockchain network |
WO2019043536A1 (en) | 2017-08-29 | 2019-03-07 | nChain Holdings Limited | Concurrent state machine processing using a blockchain |
US20190087793A1 (en) | 2017-08-31 | 2019-03-21 | Brown University | Adding concurrency to smart contracts |
US20190081793A1 (en) * | 2017-09-12 | 2019-03-14 | Kadena, LLC | Parallel-chain architecture for blockchain systems |
US20190087446A1 (en) | 2017-09-20 | 2019-03-21 | Samsung Electronics Co., Ltd. | Method and apparatus for managing a service request in a blockchain network |
CN107678865A (en) | 2017-09-20 | 2018-02-09 | 中国银行股份有限公司 | The verification method and system of block chain based on transaction packet |
US20190108498A1 (en) | 2017-10-11 | 2019-04-11 | International Business Machines Corporation | Decentralized pooled mining for enabling proof-of-work on blockchains |
US20190108518A1 (en) | 2017-10-11 | 2019-04-11 | International Business Machines Corporation | Transaction reservation for block space on a blockchain |
US20190149600A1 (en) * | 2017-11-16 | 2019-05-16 | International Business Machines Corporation | Partitioning of a blockchain ledger |
US20190188711A1 (en) | 2017-12-19 | 2019-06-20 | Tbcasoft, Inc. | Cross-ledger transfers between distributed ledgers |
US20190236298A1 (en) * | 2018-01-29 | 2019-08-01 | Vinay Kumar Agarwal | Proof-of-approval distributed ledger |
US20190238316A1 (en) | 2018-01-31 | 2019-08-01 | Salesforce.Com, Inc. | Systems, methods, and apparatuses for implementing intelligent consensus, smart consensus, and weighted consensus models for distributed ledger technologies in a cloud based computing environment |
US20190236598A1 (en) | 2018-01-31 | 2019-08-01 | Salesforce.Com, Inc. | Systems, methods, and apparatuses for implementing machine learning models for smart contracts using distributed ledger technologies in a cloud based computing environment |
US20190244207A1 (en) | 2018-02-02 | 2019-08-08 | Ehab Samuel | Systems, methods and machine-readable mediums for blockchain enforced conditional transfer of cryptocurrency |
US20190287082A1 (en) | 2018-03-13 | 2019-09-19 | WAY2BIT Co. Ltd. | Method for processing transactions using blockchain networks, and transaction management server using the same |
US20190327082A1 (en) * | 2018-04-24 | 2019-10-24 | Duvon Corporation | Autonomous exchange via entrusted ledger token and transaction management |
US20190334715A1 (en) * | 2018-04-26 | 2019-10-31 | Microsoft Technology Licensing, Llc | Cryptlet proofing services |
US20190334726A1 (en) * | 2018-04-30 | 2019-10-31 | Dell Products L.P. | Blockchain-based method and system for immutable resource allocation in a cloud computing environment |
US20190334920A1 (en) * | 2018-04-30 | 2019-10-31 | Dell Products L.P. | Blockchain-based method and system for providing tenant security and compliance in a cloud computing environment |
US20190340269A1 (en) * | 2018-05-02 | 2019-11-07 | Rockwell Automation Technologies, Inc. | Blockchain-enabled industrial devices |
US20190354397A1 (en) | 2018-05-15 | 2019-11-21 | International Business Machines Corporation | Prioritization in a permissioned blockchain |
US20190363873A1 (en) * | 2018-05-23 | 2019-11-28 | International Business Machines Corporation | Blockchain stochastic timer transaction synchronization |
US20190386995A1 (en) | 2018-06-14 | 2019-12-19 | Zero31Skytech Inc. | Apparatus, system and method to limit access to open networks by requiring the consensus of pre-existing nodes to admit candidate nodes |
US20200013025A1 (en) * | 2018-07-06 | 2020-01-09 | International Business Machines Corporation | Conditional deferred transactions for blockchain |
US20200021602A1 (en) * | 2018-07-11 | 2020-01-16 | International Business Machines Corporation | Trace-based transaction validation and commitment |
US20200034453A1 (en) * | 2018-07-29 | 2020-01-30 | International Business Machines Corporation | Smart contract input mapping |
US20200034448A1 (en) * | 2018-07-29 | 2020-01-30 | International Business Machines Corporation | Composition operators for smart contract |
US20200034469A1 (en) * | 2018-07-29 | 2020-01-30 | International Business Machines Corporation | Automatic generation of smart contracts |
US20200052884A1 (en) * | 2018-08-13 | 2020-02-13 | International Business Machines Corporation | Parallel transaction validation and block generation in a blockchain |
CN109559226A (en) | 2018-11-28 | 2019-04-02 | 杭州有盾网络科技有限公司 | Block chain transaction execution method, system and electronic equipment and storage medium |
WO2019072305A2 (en) | 2018-12-28 | 2019-04-18 | Alibaba Group Holding Limited | Parallel execution of transactions in a blockchain network based on smart contract whitelists |
US20190281065A1 (en) | 2018-12-28 | 2019-09-12 | Alibaba Group Holding Limited | Parallel execution of transactions in a blockchain network based on smart contract whitelists |
US20190287101A1 (en) | 2018-12-28 | 2019-09-19 | Alibaba Group Holding Limited | Parallel execution of transactions in a blockchain network |
EP3566391A2 (en) | 2018-12-28 | 2019-11-13 | Alibaba Group Holding Limited | Parallel execution of transactions in a blockchain network based on smart contract whitelists |
US20200210402A1 (en) * | 2018-12-28 | 2020-07-02 | Accelor Ltd. | Systems and methods for performing programmable smart contract execution |
US20200044824A1 (en) | 2019-03-28 | 2020-02-06 | Alibaba Group Holding Limited | System and method for parallel-processing blockchain transactions |
Non-Patent Citations (13)
Title |
---|
aelf.io [online], "A Multi-Chain Parallel Computing Blockchain Framework," Jun. 7, 2018, retrieved on May 14, 2021, retrieved from URL <https://aelf.io/gridcn/aelf_whitepaper_EN.pdf?v=1.6>, 34 pages. |
Anjana et al., "An Efficient Framework for Optimistic Concurrent Execution of Smart Contracts," arXiv:1809.01326v4, Sep. 2018, 16 pages. |
Crosby et al., "BlockChain Technology: Beyond Bitcoin," Sutardja Center for Entrepreneurship & Technology Technical Report, Oct. 16, 2015, 35 pages. |
Dickerson et al., "Adding Concurrency to Smart Contracts," Principles of Distributed Computing, Jul. 2017, pp. 303-312. |
Extended European Search Report in European Application No. 19732228.2, dated Apr. 8, 2020, 9 pages. |
Extended European Search Report in European Application No. 19732237.3, dated Mar. 20, 2020, 8 pages. |
Kalthoff, "Scheduling of parallel processing systems based on algorithmic skeletons," Proceedings of PDSE '97: 2nd International Workshop on Software Engineering for Parallel and Distributed Systems, May 1997, pp. 234-242. |
Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System," www.bitcoin.org, 2005, 9 pages. |
PCT International Search Report and Written Opinion in International Application No. PCT/CN2019/082558, dated Jan. 14, 2020, 7 pages. |
PCT International Search Report and Written Opinion in International Application No. PCT/CN2019/082564, dated Jan. 14, 2020, 7 pages. |
U.S. Appl. No. 16/668,937, filed Oct. 30, 2019, Guilu Xie. |
U.S. Appl. No. 16/670,587, filed Oct. 31, 2019, Guilu Xie. |
U.S. Appl. No. 16/945,749, filed Jul. 31, 2020, Guilu Xie. |
Also Published As
Publication number | Publication date |
---|---|
KR20200120863A (en) | 2020-10-22 |
AU2019204733A1 (en) | 2019-06-27 |
JP6827564B2 (en) | 2021-02-10 |
US20200328898A1 (en) | 2020-10-15 |
JP2020525876A (en) | 2020-08-27 |
AU2019204733B2 (en) | 2021-07-15 |
CN111095324A (en) | 2020-05-01 |
EP3619667A2 (en) | 2020-03-11 |
CN111095324B (en) | 2023-12-12 |
CA3060790A1 (en) | 2019-06-27 |
WO2019120334A3 (en) | 2020-02-13 |
EP3619667A4 (en) | 2020-05-06 |
SG11201909767TA (en) | 2019-11-28 |
US11082230B2 (en) | 2021-08-03 |
US20200366494A1 (en) | 2020-11-19 |
WO2019120334A2 (en) | 2019-06-27 |
KR102289612B1 (en) | 2021-08-18 |
CA3060790C (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11057217B2 (en) | Performing parallel execution of transactions in a distributed ledger system | |
US20200327545A1 (en) | Performing parallel execution of transactions in a distributed ledger system | |
US11106487B2 (en) | Performing parallel execution of transactions in a distributed ledger system | |
US11055712B2 (en) | Shared blockchain data storage | |
US10826709B1 (en) | Shared blockchain data storage | |
US10944567B2 (en) | Shared blockchain data storage | |
US11494766B2 (en) | Managing transactions on blockchain networks | |
CA3098769C (en) | Asynchronous processing of blockchain blocks | |
US11095434B2 (en) | Shared blockchain data storage based on error correction code | |
EP3628093B1 (en) | Method and device for avoiding double-spending problem in read-write set-model-based blockchain technology |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FEPP | Fee payment procedure |
Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
AS | Assignment |
Owner name: ALIBABA GROUP HOLDING LIMITED, CAYMAN ISLANDS Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:XIE, GUILU;REEL/FRAME:053649/0540 Effective date: 20191231 Owner name: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD., CAYMAN ISLANDS Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ALIBABA GROUP HOLDING LIMITED;REEL/FRAME:053743/0464 Effective date: 20200826 |
|
AS | Assignment |
Owner name: ADVANCED NEW TECHNOLOGIES CO., LTD., CAYMAN ISLANDS Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.;REEL/FRAME:053754/0625 Effective date: 20200910 |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: FINAL REJECTION MAILED |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: AWAITING TC RESP., ISSUE FEE NOT PAID |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: AWAITING TC RESP., ISSUE FEE NOT PAID |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT RECEIVED |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT VERIFIED |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |