Consensus algorithms for distributed ledger technology
By introducing a consideration mechanism and node availability evaluation into the blockchain, the problems of energy waste and hardware limitations in the existing consensus algorithm are solved, and more efficient and flexible block generation node selection is achieved.
Patent Information
- Application Number
- CN202111429760.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-12-08
- Filing Date
- 2021-11-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-11-29
AI Technical Summary
Existing consensus algorithms have energy waste and hardware limitations in the node selection process for generating new blocks in the blockchain, which limits the scope of node participation.
A novel consensus algorithm is proposed. The node owner affects its probability of generating the next block in the blockchain by providing consideration and/or exiting the consensus algorithm. The processor receives the node's consideration and update information to determine the available node, and specify the block generator node.
The node selection process is optimized, energy waste is reduced, the scope of participating nodes is expanded, and the efficiency and reliability of the blockchain network are improved.
Smart Images

Figure CN114626100B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to the field of distributed ledger technology, and more particularly to providing a novel consensus algorithm for the generation of new blocks. Background Art
[0002] Currently, distributed ledger technologies use common consensus algorithms such as proof of work, proof of capacity, proof of stake, etc. While each algorithm provides a method for determining which node will produce the next block in a blockchain network, these algorithms unnecessarily waste energy due to mining by nodes and / or these algorithms limit which nodes can host new blocks due to hardware limitations (e.g., storage space, CPU, etc.). Summary of the invention
[0003] Embodiments of the present disclosure include methods, systems, and computer programs for specifying a block generator node within a blockchain. A processor may receive a corresponding consideration from each of two or more nodes in a blockchain at a first time. The processor may receive a corresponding update from each of the two or more nodes at a second time. The processor may determine whether a single node of the two or more nodes is available after the corresponding update. The processor may specify a single node as a block generator node.
[0004] The above summary is not intended to describe each illustrated embodiment or every implementation of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] The accompanying drawings included in the present disclosure are incorporated into the specification and form a part of the specification. They illustrate embodiments of the present disclosure and are used to explain the principles of the present disclosure together with the specification. The accompanying drawings only illustrate certain embodiments and do not limit the present disclosure.
[0006] Figure 1A An example blockchain architecture according to an embodiment of the present disclosure is shown.
[0007] Figure 1B A blockchain transaction flow according to an embodiment of the present disclosure is shown.
[0008] Figure 2A An example system is shown at the start of a block producer node auction according to an embodiment of the present disclosure.
[0009] Figure 2B An example system at a first time according to an embodiment of the present disclosure is shown.
[0010] Figure 2C An example system at a second time according to an embodiment of the present disclosure is shown.
[0011] Figure 2D An example system at a third time is shown according to an embodiment of the present disclosure.
[0012] Figure 2E An example system is shown at the end of a block producer node auction according to an embodiment of the present disclosure.
[0013] Figure 3 A flow chart illustrating an example method for designating a block producer node within a blockchain according to an embodiment of the present disclosure.
[0014] Figure 4A A cloud computing environment according to an embodiment of the present disclosure is shown.
[0015] Figure 4B An abstract model layer according to an embodiment of the present disclosure is shown.
[0016] Figure 5 A high-level block diagram of an example computer system that can be used to implement one or more of the methods, tools, and modules described herein, and any related functionality, according to an embodiment of the present disclosure is shown.
[0017] Although the embodiments described herein may have various modifications and alternative forms, the details thereof have been shown as examples in the accompanying drawings and will be described in detail. However, it should be understood that the specific embodiments described should not be construed as limiting. On the contrary, the present invention will encompass all modifications, equivalents and alternatives that fall within the spirit and scope of the present disclosure. DETAILED DESCRIPTION
[0018] Aspects of the present disclosure relate generally to the field of distributed ledger technology, and more specifically to providing novel consensus algorithms for new block generation. Currently, with most consensus algorithms, the probability of a node being selected to generate / host the next block in a blockchain is predetermined by an algorithmic assumption. For example, the probability in a proof-of-work consensus algorithm depends on the computational power of the participating nodes, and the probability in a proof-of-stake consensus algorithm increases with the number of coins owned by the participating nodes. In the present disclosure, a consensus algorithm is proposed in which node owners have an influence on their probability of generating the next block in a blockchain by choosing to provide consideration that increases the probability and / or withdraw from the consensus algorithm.
[0019] Before turning to the drawings, it will be readily understood that the components, as generally described and illustrated in the drawings herein, may be arranged and designed in a wide variety of different configurations. Therefore, the following detailed description of embodiments of at least one of the methods, devices, non-transitory computer-readable media, and systems as presented in the drawings is not intended to limit the scope of application as claimed, but merely represents selected embodiments.
[0020] In one or more embodiments, the features, structures or characteristics described in this specification may be combined or removed in any suitable manner. For example, the phrases "exemplary embodiments", "some embodiments" or other similar language used throughout the specification refer to the fact that specific features, structures or characteristics described in conjunction with the embodiments may be included in at least one embodiment. Therefore, the phrases "exemplary embodiments", "in some embodiments", "in other embodiments" or other similar language appearing throughout the specification do not necessarily refer to the same set of embodiments, and the described features, structures or characteristics may be combined or removed in any suitable manner in one or more embodiments. In addition, in the accompanying drawings, any connection between elements may allow unidirectional and / or bidirectional communication, even if the depicted connection is a unidirectional or bidirectional arrow. Moreover, any device depicted in the accompanying drawings may be a different device. For example, if a mobile device is shown as sending information, a wired device may also be used to send information.
[0021] In addition, although the term "message" may have been used in the description of the embodiments, the present application can be applied to many types of networks and data. In addition, although certain types of connections, messages and signaling may be described in exemplary embodiments, the present application is not limited to specific types of connections, messages and signaling.
[0022] In some embodiments, the methods, systems, and / or computer program products described herein utilize a decentralized database (such as a blockchain) as a distributed storage system, which includes multiple nodes that communicate with each other. The decentralized database may include an immutable data structure similar to a distributed ledger that is only for increments and is capable of maintaining records between mutually untrusted parties. Untrusted parties are referred to as peers or peer nodes herein. Each peer maintains a copy of the database record, and no single peer can modify the database record without reaching a consensus between the distributed peers. For example, a peer can execute a consensus protocol to verify blockchain storage transactions, group storage transactions into blocks, and build a hash chain on the blocks. The process forms a ledger by sorting storage transactions as needed for consistency.
[0023] In various embodiments, permissioned blockchains and / or permissionless blockchains may be used. In a public or permissionless blockchain, anyone can participate without a specific identity (e.g., to remain anonymous). Public blockchains may involve native cryptocurrencies and use consensus based on various protocols (such as proof of work or proof of stake, etc.). However, permissioned blockchain databases provide secure interactions between a group of entities that share a common goal but do not fully trust each other (such as businesses that exchange funds, goods, (private) information, etc.).
[0024] Further, in some embodiments, the method, system and / or computer program product may utilize a blockchain that operates arbitrary programmable logic that is suitable for decentralized storage solutions and is referred to as a "smart contract" or "chain code". In some cases, there may be dedicated chain codes for management functions and parameters, which are referred to as system chain codes (such as managing access to different blockchains, bridging blockchain clients, etc.). In some embodiments, the method, system and / or computer program product may further utilize smart contracts as trusted distributed applications that utilize the tamper-proof nature of the blockchain database and the underlying protocol between nodes (which is referred to as endorsement or endorsement policy).
[0025] The endorsement policy allows the chaincode to specify endorsers for a transaction in the form of a set of peer nodes required for endorsement. When a client sends a transaction to the peers (e.g., endorsers) specified in the endorsement policy, the transaction is executed to validate the transaction. After validation, the transaction enters the ordering phase, where a consensus protocol is used to produce an ordered sequence of endorsed transactions grouped into blocks.
[0026] In some embodiments, the method, system and / or computer program product may utilize nodes as communication entities of a blockchain system. A "node" may perform a logical function in the sense that multiple nodes of different types may run on the same physical server. Nodes are grouped in trust domains and are associated with logical entities that control them in various ways. Nodes may include different types, such as a client or submitting client node that submits transaction calls to endorsers (e.g., peers) and broadcasts transaction proposals to an ordering service (e.g., an ordering node).
[0027] Another type of node is a peer node, which can receive transactions submitted by clients, submit transactions, and maintain the state and copy of the ledger of blockchain transactions. Peers can also have the role of endorsers, although this is not required. Ordering service nodes or orderers are nodes that provide communication services to all nodes, which implement delivery guarantees when submitting / confirming transactions and modifying the world state of the blockchain, such as broadcasts to every peer node in the system, which is another name for the initial blockchain transaction that usually includes control and setup information.
[0028] In some embodiments, the method, system and / or computer program product may utilize a ledger, which is an ordered, tamper-proof record of all state transitions of a blockchain. State transitions may originate from chaincode invocations (e.g., transactions, transfers, trades, etc.) submitted by a participant (e.g., a client node, an ordering node, an endorser node, a peer node, etc.). Each participant (such as a peer node) may maintain a copy of the ledger. A transaction may result in a set of asset key-value pairs being submitted to the ledger as one or more operands, such as create, update, delete, etc. The ledger includes a blockchain (also referred to as a chain) for storing immutable ordered records in blocks. The ledger also includes a state database that maintains the current state of the blockchain.
[0029] In some embodiments, the methods, systems, and / or computer program products described herein may utilize a chain as a transaction log that is structured as hash-linked blocks, and each block contains a sequence of N transactions, where N is equal to or greater than one. The block header includes a hash of the transactions of the block and a hash of the header of the previous block. In this way, all transactions on the ledger can be sorted and cryptographically linked together. Therefore, it is impossible to tamper with the ledger data without breaking the hash link. The hash of the most recently added blockchain block represents every transaction that has come before it on the chain, so that all peer nodes can be ensured to be in a consistent and trusted state. The chain can be stored on a peer node file system (e.g., local, attached storage, cloud, etc.), thereby efficiently supporting the incremental nature of blockchain workloads.
[0030] The current state of the immutable ledger represents the latest values of all keys included in the chain's transaction log. Because the current state represents the latest key values known to the channel, it is sometimes called the world state. Chaincode calls execute transactions against the current state data of the ledger. In order to make these chaincode interactions efficient, the latest values of the keys can be stored in the state database. The state database can be just an indexed view into the chain's transaction log and, therefore, can be regenerated from the chain at any time. The state database can be automatically restored (or generated) when a peer node starts and before a transaction is accepted.
[0031] Some benefits of the solutions described and depicted herein include methods, systems, and computer program products for implementing new blockchain components that help protect (one or more) assets involved in cross-chain transactions. Exemplary embodiments address asset claims involving multiple blockchains (e.g., cross-chain transactions) and the occurrence of disruptions involving the blockchains.
[0032] Note that blockchain is different from traditional databases in that blockchain is not a central storage, but a decentralized, immutable, secure storage where nodes can share changes to records in the storage. Some of the features inherent to blockchain and that help to achieve blockchain include, but are not limited to, immutable ledgers, smart contracts, security, privacy, decentralization, consistency, endorsement, accessibility, etc., which are further described herein. According to various aspects, the system described herein is achieved due to the inherent and unique immutable accountability, security, privacy, allowed decentralization, availability of smart contracts, endorsement, and accessibility of blockchain.
[0033] In particular, exemplary embodiments provide many benefits over traditional databases. For example, through blockchain, embodiments provide blockchain's inherent and unique immutable accountability, security, privacy, permissioned decentralization, availability, endorsement, and accessibility of smart contracts.
[0034] At the same time, a conventional database cannot be used to implement the exemplary embodiments because it does not provide a trusted environment in which peers / nodes can provide consideration in order to generate new blocks in the blockchain. Conventional databases do not provide tamper-proof storage that can protect peer consideration and designate as block generators. Therefore, the proposed embodiments described herein as utilizing a blockchain network cannot be implemented by conventional databases.
[0035] Now turn to Figure 1A , shows a blockchain architecture 100 according to an embodiment of the present disclosure. In some embodiments, the blockchain architecture 100 may include certain blockchain elements, for example, a set of blockchain nodes 102. The blockchain nodes 102 may include one or more blockchain nodes, such as peers 104-110 (these four nodes are depicted as examples only). These nodes participate in multiple activities, such as blockchain transaction addition and verification processes (consensus). One or more of the peers 104-110 may endorse and / or recommend transactions based on endorsement policies, and may provide ordering services to all blockchain nodes 102 in the blockchain architecture 100. The blockchain nodes may initiate blockchain authentication and seek to write to the blockchain immutable ledger stored in the blockchain layer 116, a copy of which may also be stored on the underlying physical infrastructure 114. The blockchain configuration may include one or more applications 124 that are linked to an application programming interface (API) 122 to access and execute stored program / application code 120 (e.g., chain code, smart contracts, etc.), which can be created according to the customized configuration sought by the participants and can maintain their own state, control their own assets, and receive external information. This can be deployed as a transaction and installed on all blockchain nodes 104-110 via addition to the distributed ledger.
[0036] The blockchain foundation or platform 112 may include various blockchain data layers, services (e.g., cryptographic trust services, virtual execution environments, etc.), and underlying physical computer infrastructure that may be used to receive and store new transactions and provide access to auditors seeking to access data entries. The blockchain layer 116 may expose interfaces that provide access to the virtual execution environment required to process program code and use the physical infrastructure 114. Cryptographic trust services 118 may be used to verify transactions (such as asset trade transactions, etc.) and keep information confidential.
[0037] Figure 1A The blockchain architecture 100 may process and execute program / application code 120 via one or more interfaces exposed and services provided by the blockchain platform 112. The application code 120 may control blockchain assets. For example, the application code 120 may store and transmit data and may be executed by the peer 104 in the form of a smart contract and chain code associated with conditions or other code elements subject to its execution. As a non-limiting example, a smart contract may be generated to perform the transfer of assets / resources, the generation of assets / resources, etc. The smart contract itself may be used to identify rules associated with authorization (e.g., asset transfer rules, restrictions, etc.), access requirements (e.g., data storage, off-chain data storage, who can participate in transactions, etc.), and / or the use of a ledger. For example, the verifiable credentials 126 may be processed by one or more processing entities (e.g., virtual machines) included in the blockchain layer 116. The result 128 may include a plurality of linked shared documents (e.g., each linked shared document records the issuance of a smart contract for submitting a verifiable credential 126 by a selected group of peers based on an asset transaction scheme, an issuer policy, etc.). In some embodiments, the physical infrastructure 114 may be used to retrieve any of the data / information / assets, etc. described herein.
[0038] Smart contracts can be created via high-level applications and programming languages and then written to blocks in a blockchain. Smart contracts can include executable code that is registered, stored, and / or replicated to a blockchain (e.g., a distributed blockchain peer network). A transaction is the execution of smart contract code, which can be executed in response to conditions associated with the smart contract being satisfied. The execution of a smart contract can trigger (one or more) trusted modifications to the state of a digital blockchain ledger. (One or more) modifications to the blockchain ledger caused by the execution of a smart contract can be automatically replicated throughout the distributed blockchain peer network through one or more consensus protocols.
[0039] Smart contracts can write data to the blockchain in the format of key-value pairs. In addition, smart contract code can read values stored in the blockchain and use them in application operations. Smart contract code can write the output of various logical operations to the blockchain. The code can be used to create temporary data structures in virtual machines or other computing platforms. The data written to the blockchain can be public and / or can be encrypted and maintained as private. Temporary data used / generated by smart contracts is kept in memory by the provided execution environment and then deleted once the data required by the blockchain is identified.
[0040] Chaincode may include a code interpretation of a smart contract, with additional features. As described herein, chaincode may be program code deployed on a computing network that is executed and validated by chain validators together during a consensus process. The chaincode receives the hash and retrieves from the blockchain a hash associated with a data template created by using a previously stored feature extractor. If the hash of the hashed identifier matches the hash created from the stored identifier template data, the chaincode sends an authorization key to the requested service. The chaincode may write data associated with cryptographic details to the blockchain (e.g., thereby submitting a transaction associated with an asset, etc.).
[0041] Figure 1B An example of a blockchain transaction flow 150 between nodes of a blockchain is shown according to an exemplary embodiment. Figure 1B , a transaction flow may include a transaction proposal 191 sent by application client node 160 to endorsing peer node 181 (e.g., in some embodiments, transaction proposal 191 may include a schema that specifies a selected set of peers [peer nodes 181-184] to be used for a particular transaction. Endorsing peer 181 may verify the client signature and execute the chaincode function that initiated the transaction. The outputs may include the chaincode result, a set of key / value versions that were read in the chaincode (read set), and a set of key / values that were written in the chaincode (write set). If approved, the proposal response 192 is sent back to the client 160 along with the endorsement signature. The client 160 assembles the endorsement into a transaction payload 193 and broadcasts it to the ordering service node 184. The ordering service node 184 then transmits the ordered transaction as a block on the channel to all peers 181-183. Before submitting to the blockchain, each peer 181-183 can validate the transaction. For example, a peer can check the endorsement policy to ensure that the correct distribution of specified peers has signed the result and has authenticated the signature for the transaction payload 193 (e.g., all specified peers from the pattern have verified and approved the submission of the transaction to the blockchain).
[0042] Reference again Figure 1B, the client node 160 initiates a transaction 191 by constructing a request and sending it to a peer node 181, which in this example is an endorser. The client 160 may include an application utilizing a supporting software development kit (SDK) that utilizes an available API to generate a transaction proposal 191. The proposal is a request to invoke a chaincode function so that data can be read and / or written to the ledger. The SDK may reduce the packaging of the transaction proposal 191 into a format of the correct architecture (e.g., protocol buffers over remote procedure calls (RPCs)) and obtain the client's cryptographic credentials to generate a unique signature for the transaction proposal 191.
[0043] In response, the endorsing peer node 181 may verify that (a) the transaction proposal 191 is well-formed, (b) the transaction has not been submitted in the past (replay attack protection), (c) the signature is valid, and (d) the submitter (client 160 in this example) is properly authorized to perform the proposed operation on the channel. The endorsing peer node 181 may input the transaction proposal 191 as an argument to the invoked chaincode function. The chaincode is then executed against the current state database to produce a transaction result including a response value, a read set, and a write set. However, no updates are made to the ledger at this time. In some embodiments, this set of values, along with the signature of the endorsing peer node 181, is passed back to the SDK of the client 160 as a proposal response 192, which parses the payload for consumption by the application.
[0044] In response, the client 160 application checks / verifies the endorsed peer signature and compares the proposal response to determine if the proposal responses are the same. If the chaincode only queries the ledger, the application will check the query response and will typically not submit the transaction to the sorting node service 184. If the client application wants to submit a transaction to the sorting node service 184 to update the ledger, the application determines whether the specified endorsement policy has been fulfilled before submitting. Here, the client can include only one of the multiple parties to the transaction. In this case, each client can have their own endorsement node, and each endorsement node will need to endorse the transaction. This architecture makes it so that even if the application chooses not to check the response or otherwise forward unendorsed transactions, the endorsement policy will still be implemented by the peer and supported during the submission verification phase.
[0045] After the check succeeds, in the transaction payload step 193, the client 160 assembles the endorsements into a transaction and broadcasts the transaction proposal 191 and the response to the ordering node 184 within the transaction message. The transaction may contain read / write sets, endorsement peer signatures, and a channel ID (for example, if a specific [off-chain] data store is to be utilized). The ordering node 184 does not need to examine the entire contents of the transaction in order to perform its operations. Instead, the ordering node 184 can only receive transactions from all channels in the network, sort them chronologically by channel, and create transaction blocks by channel.
[0046] The block of transactions is transmitted from the ordering node 184 to all peer nodes 181-183 on the channel. The transactions 194 within the block are validated to ensure that any endorsement policies are fulfilled and that there have been no changes to the ledger state for the read set variables since the read set was generated by the transaction execution. The transactions in the block are marked as valid or invalid. In addition, in step 195, each peer node 181-183 adds the block to the channel's chain and for each valid transaction, the write set is committed to the current state database. Events are emitted to notify the client application that the transaction (call) has been immutably added to the chain and whether the transaction is valid or invalid.
[0047] Reference now Figure 2A-2E , shows an example system 200 (e.g., a blockchain network, etc.) at various stages of a block producer node auction according to an embodiment of the present disclosure. As shown, but by no means limiting, the system 200 includes durations 202A-E describing time intervals of the auction, a holder 204, a first node 206 with a digital wallet 208, a second node 210 with a digital wallet 212, a third node 214 with a digital wallet 216, a first block 218, a second block 220, a third block 222, and a transaction pool 224 (which may include transactions that are not yet in the chain).
[0048] As discussed more fully below, nodes 206, 210, and 214 compete to be able to add the next block to the chain. In order to join the block generator node auction, nodes 206, 210, and 214 must first deposit funds (e.g., depicted in units) into digital wallets 208, 212, and 216, which are assigned to each of nodes 206, 210, and 214, respectively. Note that the most popular solutions use wallets based on public key infrastructure (PKI), where the public key is the wallet address and the private key is used as a "padlock key". The private key owner can transfer funds to another wallet, so it is important to keep the private key safe.
[0049] In some embodiments, blocks 218, 220, and 222 are periodically added in a process called an "auction". In this process, nodes 206, 210, and 214 try to outbid each other (with consideration). Typically, the node with the most bids wins, however, as presented herein, any node 206, 210, and 214 may also decide to fold (e.g., give up, become unavailable) at any time. In this case, all funds used by the node for bidding are with the holder 204. In some embodiments, the holder 204 may be a dedicated node or a smart contract. In some embodiments, a smart contract may be considered more credible than a dedicated node, which holds the original consideration (e.g., currency, token, etc.) provided by the system 200 and holds each bid made by nodes 206, 210, and 214. In some embodiments, the winner of the block producer node auction may add a block (eg, blocks 218, 220, 222, etc.) to the chain and receive units from holder 204 to their respective digital wallets (eg, 208, 212, 216).
[0050] As depicted, the auction lasts for a specific duration 202A (e.g., one minute). The auction is then divided into multiple rounds (e.g., 20 second rounds), such as Figure 2B-2E During a round, nodes 206, 210, 214 may bid (e.g., make an offer, provide consideration, etc.), update the bid by: increasing (e.g., increasing consideration, increasing the size of an existing bid in the same bidding round, etc.), checking (e.g., matching consideration, matching current bid, etc.), or folding (e.g., indicating itself as unavailable, losing interest in the current pot held by holder 204, etc.).
[0051] In some embodiments, if a node 206, 210, 214 wants to stay in the auction and enter the next round (e.g., based on the duration 202B-E), the node 206, 210, 214 is required to at least call (e.g., abstained consideration [neither increase nor collapse]). In some embodiments, upon identifying that a node 206, 210, 214 is inactive, the node 206, 210, 214 will automatically become unavailable. In some embodiments, the auction ends when all nodes except one node 206, 210, 214 collapse or after a predefined set of rounds. If more than one node 206, 210, 214 reaches the end of the auction, the node selected as the blockchain generator node is selected based on the highest block hash (e.g., the hash depicted in the first block 218, which is higher than the hash depicted in the third block 222).
[0052] In some embodiments, nodes 206, 210, 214 may generate new blocks (e.g., 218, 220, 222) based on unconfirmed transactions from transaction pool 224 before entering an auction. In such embodiments, nodes 206, 210, 214 are free to choose which transactions go into a new block. When a block is ready, each node generates a hash of its block. In some embodiments, due to the short time between each auction, it is almost impossible to verify all possible hashes, so the hash provided by each node 206, 210, 214 is randomized. In some embodiments, in order to encourage nodes to participate in the auction, when the auction starts, the pool (e.g., the initial 100 units in holder 204) is not emptied, that is, new coins / units in the pool are generated according to the amount of the new block size (e.g., solving the problem of providing new coins in the network).
[0053] As depicted, in Figure 2A During the duration 202A, each node 206, 210, 214 generates blocks 218, 220, and 222 with their selected transactions (which may be selected from the transaction pool 224), and then blocks 218, 220, and 222 are given randomized hashes. Figure 2B Duration 202B, the first round of the auction begins, where the first round lasts 20 seconds (as shown in duration 202B, assuming that the total time of the auction ends within 41 seconds and the bidding in the first round ends within 1 second (e.g., the period ends)), each node 206, 210, 214 provides 30 units of consideration to the holder 204, where the first node 206 provides an initial consideration of 30 units, and the second node 210 and the third node 214 each provide a matching consideration.
[0054] exist Figure 2C The second round of the auction is conducted for duration 202C, at which time, consideration from each node 206, 210, 214 is provided to the holder 204 (depicted as +90 units, i.e., 30 units from each node 206, 210, 214). As shown, during duration 202C, the first node 206 provides another 30 units of consideration to be available during duration 202C, the second node 210 does not provide consideration and indicates that it is not available (e.g., folded), and the third node 214 provides a waived consideration (e.g., a bid).
[0055] exist Figure 2DThe third round of the auction is conducted at duration 202D, at which time, consideration from each of the nodes 206, 214 that participated in the second round is offered to the holder 204 (depicted as +60 units). As depicted, at duration 202D, the first node 206 offers an additional 10 units of consideration to be available during duration 202D, and the third node 214 offers an increased (e.g., raised) consideration of 20 units. Next, at Figure 2E For duration 202E, since the third node 214 increases the consideration, the third round of the auction continues, and the first node 206 provides a waived consideration.
[0056] In some embodiments, after duration 202E, the auction ends, and since first node 206 and third node 214 end with the same consideration amount, system 200 looks at the hash of first block 218 associated with first node 206 and the hash of third block 222 associated with third node 214. Since the hash of first block 218 is greater than the hash of third block 222, first node 206 can be designated as the block producer for the next block in the blockchain, and / or first block 218 is then submitted / provided to the blockchain.
[0057] Reference now Figure 3 , a flow chart of an example method for specifying a block generator node within a blockchain is shown. In some embodiments, method 300 may be performed by a processor, a node, and / or a peer node in a blockchain network. In some embodiments, method 300 begins at operation 302, where a processor receives a respective consideration from each of two or more nodes in a blockchain at a first time (e.g., a duration).
[0058] In some embodiments, the method 300 proceeds to operation 304, where the processor receives a corresponding update (e.g., a match, a response, etc.) from each of the two or more nodes at a second time. In some embodiments, the method 300 proceeds to operation 306, where the processor determines whether a single node of the two or more nodes is available after the corresponding update. In some embodiments, the method 300 proceeds to operation 308, where the processor designates the single node as a block generator node. In some embodiments, after operation 308, the method 300 may end.
[0059] In some embodiments discussed below, for the sake of brevity, one or more operations in method 300 are not depicted. Thus, in some embodiments, determining whether a single node of two or more nodes is available after a corresponding update may include: the processor identifying that each of the other nodes provided is unavailable (e.g., collapsed).
[0060] In some embodiments, determining whether a single node of the two or more nodes is available after a corresponding update may include: the processor identifying that the single node has a maximum consideration after a second time. In some embodiments, determining whether a single node of the two or more nodes is available after a corresponding update may include: the processor comparing a set of hashes associated with the two or more nodes, and the processor identifying that the single node is associated with a highest hash of the two or more nodes.
[0061] In some embodiments, the corresponding update may include: a single node increases the consideration, a second node is identified as unavailable, and a third node matches the increased consideration of the single node. In such embodiments, the processor may retain the consideration of the second node and provide the consideration to the single node. In some embodiments, the processor may generate a local consideration and combine the local consideration with a corresponding consideration from each of the two or more nodes.
[0062] It should be understood that although the present disclosure includes detailed descriptions about cloud computing, the implementation of the teachings recorded herein is not limited to cloud computing environments. Instead, embodiments of the present invention can be implemented in conjunction with any other type of computing environment now known or later developed.
[0063] Cloud computing is a service delivery model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, VMs, and services) that can be quickly provisioned and released with minimal management cost or interaction with the service provider. This cloud model can include at least five characteristics, at least three service models, and at least four deployment models.
[0064] Features are as follows:
[0065] On-demand self-service: Cloud consumers can unilaterally and automatically provision computing capacity (such as server time and network storage) on demand without manual interaction with the service provider.
[0066] Broad network access: Capabilities are available over the network and accessed through standard mechanisms that facilitate the use of heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
[0067] Resource pooling: The computing resources of a provider are grouped into resource pools to serve multiple consumers using a multi-tenant model, where different physical and virtual resources are dynamically allocated and reallocated based on demand. Generally, consumers cannot control or know the exact location of the provided resources, but can specify the location at a higher level of abstraction (such as country, state, or data center), thus having location independence.
[0068] Rapid elasticity: Capacity can be rapidly and elastically (in some cases automatically) provisioned to scale out quickly and released quickly to scale down quickly. To the consumer, the capacity available for provisioning often appears to be unlimited and can be purchased in any quantity at any time.
[0069] Measurable services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at a level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the services being utilized.
[0070] The service model is as follows:
[0071] Software as a Service (SaaS): The capability provided to consumers is to use the provider's applications running on a cloud infrastructure. Applications can be accessed from a variety of client devices through a thin client interface such as a web browser (e.g., web-based email). Aside from limited user-specific application configuration settings, consumers neither manage nor control the underlying cloud infrastructure including networks, servers, operating systems, storage, or even individual application capabilities.
[0072] Platform as a Service (PaaS): The capability provided to consumers is to deploy applications created or acquired by consumers on the cloud infrastructure, which are created using programming languages and tools supported by the provider. Consumers neither manage nor control the underlying cloud infrastructure including networks, servers, operating systems or storage, but have control over the applications they deploy and may also have control over the configuration of the application hosting environment.
[0073] Infrastructure as a Service (IaaS): The capabilities provided to consumers are processing, storage, network, and other basic computing resources on which consumers can deploy and run arbitrary software including operating systems and applications. Consumers neither manage nor control the underlying cloud infrastructure, but have control over the operating system, storage, deployed applications, and may have limited control over selected network components (e.g., host firewalls).
[0074] The deployment model is as follows:
[0075] Private cloud: Cloud infrastructure is run solely for an organization. It can be managed by that organization or a third party and can exist inside or outside the organization.
[0076] Community cloud: The cloud infrastructure is shared by several organizations and supports a specific community with common interests (e.g., mission, security requirements, policies, and compliance considerations). It can be managed by the organization or a third party and can exist inside or outside the organization.
[0077] Public cloud: Cloud infrastructure is available to the general public or large industry groups and is owned by an organization that sells cloud services.
[0078] Hybrid cloud: A cloud infrastructure consisting of two or more clouds (private, community, or public) that remain distinct entities but are bound together by standardized or proprietary technologies (e.g., cloud bursting for load balancing between clouds) that enable data and application portability.
[0079] Cloud computing environments are service-oriented, with characteristics centered on statelessness, low coupling, modularity, and semantic interoperability. The core of computing is the infrastructure that includes a network of interconnected nodes.
[0080] Figure 4A A cloud computing environment 410 is shown. As shown, the cloud computing environment 410 includes one or more cloud computing nodes 400 with which a local computing device used by a cloud consumer can communicate, such as a personal digital assistant (PDA) or a cell phone 400A, a desktop computer 400B, a laptop computer 400C, and / or an automotive computer system 400N. The nodes 400 can communicate with each other. They can be physically or virtually grouped (not shown) in one or more networks (such as a private cloud, a community cloud, a public cloud, or a hybrid cloud or a combination thereof as described above).
[0081] This allows the cloud computing environment 410 to provide infrastructure as a service, platform as a service, and / or software as a service without cloud consumers having to maintain resources on local computing devices. It should be understood that the various types of computing devices 400A-N shown in FIG. 4A are merely illustrative, and the computing node 400 and the cloud computing environment 410 can communicate with any type of computing device over any type of network and / or network addressable connection (e.g., using a web browser).
[0082] Figure 4B The cloud computing environment 410 ( Figure 4A ) provides a set of functional abstraction layers. First of all, it should be understood that Figure 4BThe components, layers and functions shown in are merely illustrative, and the embodiments of the present disclosure are not limited thereto. As described below, the following layers and corresponding functions are provided.
[0083] Hardware and software layer 415 includes hardware and software components. Examples of hardware components include: mainframe 402; server 404 based on RISC (Reduced Instruction Set Computer) architecture; server 406; blade server 408; storage device 411; and network and network components 412. In some embodiments, software components include network application server software 414 and database software 416.
[0084] Virtualization layer 420 provides an abstraction layer from which the following examples of virtual entities can be provided: virtual servers 422 ; virtual storage 424 ; virtual networks 426 , including virtual private networks; virtual applications and operating systems 428 ; and virtual clients 430 .
[0085] In one example, the management layer 440 may provide the functionality described below. Resource provisioning functionality 442 provides dynamic acquisition of computing resources and other resources for performing tasks in a cloud computing environment. Metering and pricing functionality 444 provides cost tracking of resources used within a cloud computing environment and provides bills or invoices for the consumption of these resources. In one example, these resources may include application software licenses. Security functionality provides identity authentication for cloud consumers and tasks and provides protection for data and other resources. User portal functionality 446 provides access to the cloud computing environment for consumers and system administrators. Service level management functionality 448 provides cloud computing resource allocation and management to meet required service levels. Service level agreement (SLA) planning and fulfillment functionality 450 provides pre-scheduling and procurement of cloud computing resources for which future demand is predicted in accordance with the SLA.
[0086] The workload layer 460 provides examples of functions that can utilize the cloud computing environment. In this layer, examples of workloads and functions that can be provided include: mapping and navigation 462; software development and lifecycle management 464; virtual classroom teaching provision 466; data analysis processing 468; transaction processing 470; and block generator designation 472.
[0087] Figure 5A high-level block diagram of an example computer system 501 according to an embodiment of the present disclosure is shown, which computer system can be used to implement one or more of the methods, tools, and modules described herein and any related functionality (e.g., using one or more processor circuits of a computer or a computer processor). In some embodiments, the main components of the computer system 501 may include one or more CPUs 502, a memory subsystem 504, a terminal interface 512, a storage interface 516, an I / O (input / output) device interface 514, and a network interface 518, all of which may be directly or indirectly communicatively coupled for inter-component communication via a memory bus 503, an I / O bus 508, and an I / O bus interface unit 510.
[0088] Computer system 501 may include one or more general purpose programmable central processing units (CPUs) 502A, 502B, 502C, and 502D, generally referred to herein as CPU 502. In some embodiments, computer system 501 may include multiple processors typical of relatively large systems; however, in other embodiments, computer system 501 may instead be a single CPU system. Each CPU 502 may execute instructions stored in memory subsystem 504 and may include one or more levels of onboard cache.
[0089] System memory 504 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 522 or cache memory 524. Computer system 501 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 526 may be provided for reading from and writing to a non-removable non-volatile magnetic medium (such as a "hard drive"). Although not shown, a disk drive for reading from and writing to a removable non-volatile disk (e.g., a "floppy disk"), or an optical drive for reading from or writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical media) may be provided. In addition, memory 504 may include flash memory, such as a flash stick drive or a flash drive. The memory device may be connected to memory bus 503 via one or more data medium interfaces. Memory 504 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments.
[0090] One or more programs / utilities 528 (each having at least one set of program modules 530) may be stored in memory 504. Programs / utilities 528 may include a hypervisor (also referred to as a virtual machine monitor), one or more operating systems, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data, or some combination thereof, may include an implementation of a networking environment. Programs 528 and / or program modules 530 generally perform the functions or methods of various embodiments.
[0091] Although the memory bus 503 is Figure 5 503, but in some embodiments, the memory bus 503 may include multiple different buses or communication paths, which may be arranged in any of a variety of forms, such as hierarchical point-to-point links, star or mesh configurations, multi-layer buses, parallel and redundant paths, or any other suitable type of configuration. In addition, although the I / O bus interface 510 and the I / O bus 508 are shown as a single corresponding unit, in some embodiments, the computer system 501 may include multiple I / O bus interface units 510, multiple I / O buses 508, or both. Further, although multiple I / O interface units are shown that separate the I / O bus 508 from the various communication paths leading to various I / O devices, in other embodiments, some or all of the I / O devices may be directly connected to one or more system I / O buses.
[0092] In some embodiments, computer system 501 may be a multi-user mainframe computer system, a single-user system, or a server computer or similar device having little or no direct user interface but receiving requests from other computer systems (clients). Further, in some embodiments, computer system 501 may be implemented as a desktop computer, a portable computer, a laptop or notebook computer, a tablet computer, a pocket computer, a phone, a smart phone, a network switch or router, or any other suitable type of electronic device.
[0093] Notice, Figure 5 The main components of the exemplary computer system 501 are intended to be depicted. However, in some embodiments, the various components may have more Figure 5 The greater or lesser complexity represented in , may exist different from Figure 5 Components may be those shown in or in addition to those components, and the number, type, and configuration of such components may vary.
[0094] As discussed in greater detail herein, it is contemplated that some or all of the operations of some embodiments of the methods described herein may be performed in an alternate order or may not be performed at all; furthermore, multiple operations may occur concurrently or as internal parts of a larger process.
[0095] The present invention may be a system, method and / or computer program product at any possible level of technical detail integration. The computer program product may include (one or more) computer-readable storage media having computer-readable program instructions thereon, and the computer-readable program instructions are used to cause a processor to perform various aspects of the present invention.
[0096] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, any suitable combination of electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or the aforementioned storage devices. A non-exhaustive list of more specific examples of computer readable storage medium includes the following: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, such as a punch card or a convex structure in a groove recorded with instructions above, and any suitable combination of the above-mentioned devices. Computer readable storage medium as used herein should not be interpreted as a temporary signal itself, such as radio waves or other free propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (e.g., light pulses by optical fiber cables), or electrical signals transmitted by wires.
[0097] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network, and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.
[0098] The computer-readable program instructions for performing the operation of the present invention can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, configuration data of integrated circuits, or source code or object code written in any combination of one or more programming languages (including object-oriented programming languages, such as Smalltalk, C++, etc.) and process programming languages (such as "C" programming language or similar programming languages). Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or executed completely on a remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network (including local area network (LAN) or wide area network (WAN)), or can be connected to an external computer (for example, using an Internet service provider through the Internet). In certain embodiments, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can execute the computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit, so as to perform various aspects of the present invention.
[0099] Aspects of the present invention are described herein with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to embodiments of the present invention. It will be understood that each frame of the flow chart and / or block diagram and the combination of frames in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0100] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create a device for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can guide the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable storage medium having the instructions stored therein includes an article of manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0101] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps will be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0102] Flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention.In this regard, each frame in the flow chart or block diagram can represent the module, segment or part of instruction, which includes one or more executable instructions for realizing the specified logical function.In some alternative embodiments, the function noted in the frame may not occur in the order noted in the figure.For example, two frames shown continuously can actually be performed substantially simultaneously, or these frames can sometimes be performed in reverse order, depending on the function involved.It will also be noted that the combination of the frames in each frame of the block diagram and / or flow chart illustration and the block diagram and / or flow chart illustration can be realized by a dedicated hardware-based system that performs a specified function or action or performs a combination of special hardware and computer instructions.
[0103] Descriptions of various embodiments have been presented herein for illustrative purposes, but are not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements existing in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
[0104] Although the present disclosure has been described in terms of specific embodiments, it is expected that changes and modifications of these specific embodiments will become apparent to those skilled in the art. Therefore, the appended claims are intended to be interpreted as covering all such changes and modifications that fall within the true spirit and scope of the present disclosure.
Claims
1. A method for designating a block producer node within a blockchain, the method comprising: receiving, at a first time, from two or more nodes in the blockchain, respective considerations from each of the two or more nodes; receiving a corresponding update from each of the two or more nodes at a second time; determining whether a single node of the two or more nodes is available after the corresponding update; as well as The single node is designated as the block generator node.
2. The method according to claim 1, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: Each of the other nodes provided is identified as unavailable.
3. The method according to claim 1, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: The single node is identified as having the greatest consideration after the second time.
4. The method according to claim 1, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: comparing a set of hashes associated with the two or more nodes; and Identifying the single node is associated with a highest hash of the two or more nodes.
5. The method according to claim 1, wherein: The corresponding update includes: the single node increasing the consideration, the second node being identified as unavailable, and the third node matching the increased consideration of the single node.
6. The method according to claim 5, further comprising: retaining the consideration of the second node; as well as The consideration is provided to the single node.
7. The method according to claim 1, further comprising: Generate partial consideration; as well as The local consideration is combined with a corresponding consideration from each of the two or more nodes.
8. A system for designating a block producer node within a blockchain, the system comprising: Memory; as well as a processor in communication with the memory, the processor being configured to perform operations comprising: receiving, at a first time, from two or more nodes in the blockchain, respective considerations from each of the two or more nodes; receiving a corresponding update from each of the two or more nodes at a second time; determining whether a single node of the two or more nodes is available after the corresponding update; and The single node is designated as the block generator node.
9. The system according to claim 8, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: Each of the other nodes provided is identified as unavailable.
10. The system according to claim 8, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: The single node is identified as having the greatest consideration after the second time.
11. The system according to claim 8, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: comparing a set of hashes associated with the two or more nodes; and Identifying the single node is associated with a highest hash of the two or more nodes.
12. The system according to claim 8, wherein: The corresponding update includes: the single node increasing the consideration, the second node identifying as unavailable, and the third node matching the increased consideration of the single node.
13. The system according to claim 12, wherein: The processor is further configured to perform operations including: retaining the consideration of the second node; and The consideration is provided to the single node.
14. The system according to claim 8, wherein: The processor is further configured to perform operations including: Generating partial consideration; and The local consideration is combined with a corresponding consideration from each of the two or more nodes.
15. A computer program product for designating a block producer node within a blockchain, the computer program product comprising a computer-readable storage medium embodying program instructions, the program instructions being executable by a processor to cause the processor to perform functions, the functions comprising: receiving, at a first time, from two or more nodes in the blockchain, respective considerations from each of the two or more nodes; receiving a corresponding update from each of the two or more nodes at a second time; determining whether a single node of the two or more nodes is available after the corresponding update; as well as The single node is designated as the block generator node.
16. The computer program product of claim 15, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: Each of the other nodes provided is identified as unavailable.
17. The computer program product of claim 15, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: The single node is identified as having the greatest consideration after the second time.
18. The computer program product of claim 15, wherein: Determining whether the single node of the two or more nodes is available after the corresponding updating includes: comparing a set of hashes associated with the two or more nodes; and Identifying the single node is associated with a highest hash of the two or more nodes.
19. The computer program product of claim 15, wherein: The corresponding update includes: the single node increasing the consideration, the second node identifying as unavailable, and the third node matching the increased consideration of the single node.
20. The computer program product of claim 19, wherein: The functionality also includes: retaining the consideration of the second node; and The consideration is provided to the single node.
