Method and system for distributed blockchain functionality
The distributed blockchain validation system addresses inefficiencies in existing validation processes by partitioning Merkle trees for parallel processing, reducing computational time and energy consumption while maintaining security and scalability.
Patent Information
- Application Number
- JP2024525457
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-06-29
- Filing Date
- 2022-10-25
- Publication Date
- 2024-10-31
AI Technical Summary
Existing blockchain validation processes require significant resources and time due to the need to store and process large UTXO pools and perform validation tasks, making them inefficient for users who cannot or will not meet these requirements without compromising security.
A distributed blockchain validation system that partitions Merkle trees into segments and assigns them to multiple processing resources for parallel validation, allowing for faster and more efficient transaction processing without altering underlying protocols.
This approach reduces computational time and energy consumption, enhances network performance, and improves scalability by distributing validation tasks across multiple processing resources.
Smart Images

Figure 2024540123000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure generally relates to improved methods and systems for processing related or associated data records and / or distributed network implementations. The present disclosure is particularly suited for use with transfers performed on or using a blockchain network, such as, but not limited to, pre and / or post mining validation of blockchain transactions, SPV checks, etc. Advantages include, but are not limited to, improved security and resilience, efficient or reduced speed and resource requirements, and novel approaches to validation that were not possible with prior art configurations, thus resulting in blockchain implementation configurations that were not previously possible. [Background technology]
[0002] The Bitcoin protocol and network may be referenced herein for purposes of providing an example context for implementation, however, the present disclosure is not limited to use with the Bitcoin blockchain and encompasses alternative protocols and implementations, including those that are account-based and those that involve proof-of-stake consensus. In the following, the term "UTXO" may be used purely for convenience to refer to a transaction output and should not be interpreted as meaning that embodiments of the present disclosure are limited to use with UTXO-based blockchain models.
[0003] A blockchain is a peer-to-peer electronic ledger implemented as a computer-based decentralized distributed system that is composed of blocks, which in turn are composed of transactions. Each transaction is a data structure that encodes the transfer of control of a digital asset between participants in the blockchain system and contains at least one input and at least one output. Each block contains a hash of the previous block, and blocks are chained together to create a permanent, immutable record of all transactions written to the blockchain since its inception.
[0004] In order for a transaction (Tx) to be written to the blockchain, it must be validated. Network nodes (miners) perform the task of verifying that each transaction is valid, and invalid transactions are rejected from the network. In some protocols, a software client installed on the node performs this validation task on unspent transactions (UTXOs) by executing lock and unlock scripts. If the execution of the lock and unlock scripts evaluates to TRUE, the transaction is valid and the transaction is written to the blockchain. Thus, for a transaction to be written to the blockchain, it must i) be validated by the first node that receives the transaction -- if the transaction is verified as valid, the node relays the transaction to other nodes in the network, i.e., the transaction is propagated -- ii) be added to a new block constructed by miners, and iii) be mined, i.e., added to the public ledger of past transactions. After the transaction is stored in the blockchain as a UTXO, the user can transfer control of the associated cryptocurrency to another address associated with the input of another transaction that is then written to the blockchain. This is often done using a digital wallet that stores a public / private key pair associated with a user's cryptocurrency. There are various forms of known cryptocurrency wallets, including SPV wallets (Simplified Payment Verification). SPV technology allows users and merchant nodes to perform local verification based on only partial information related to a particular transfer. SPV is described in more detail below.
[0005] However, while validation is essential to ensure security, conformance to the relevant protocol for a given blockchain, and protection from double spends exploits, it is recognized that such validation tasks can require significant resources and time due to the need to download and store blocks, maintain large UTXO pools, and perform the processing tasks required for validation. Many users are unable to meet such requirements, or in some cases are unwilling to do so because they do not need to. Thus, there is a need for a faster and more efficient validation model that addresses at least these challenges (and others) without compromising security or adapting existing protocols.
[0006] So, such an improved solution was devised. Summary of the Invention [Means for solving the problem]
[0007] Embodiments of the present disclosure provide improved blockchain-related methods, devices, and systems. According to one form of expression, such embodiments provide a solution for validating or mining part or all of blockchain transactions and / or blockchain blocks. According to additional or alternative forms of expression, they provide secure solutions for controlling, managing, and / or enhancing the efficiency, resource requirements, speed, and / or resilience of known approaches to processing blockchain transactions. Embodiments also enable scalability of blockchain implementation solutions, providing improved methods and technical architectures for electronic transfer of digital resources. Embodiments may also include methods for enabling and / or controlling the computation / generation of proof-of-work for blockchain blocks in a distributed and / or parallel manner.
[0008] The embodiments of the present disclosure may be implemented in part or in whole by a variety of devices. These may be hardware and / or software-based devices, including (but not limited to) one or more virtual machines, servers, GPU-based computing resources, or multi-processor systems. Additionally or alternatively, the embodiments may include one or more digital wallets. Importantly, however, the embodiments provide a mechanism for distributed processing of blockchain-related validation tasks. Coordination, management, and control of distributed processes are known to be inherently technical in nature, as they require a holistic understanding of the interactions between the hardware and software components involved, and the implementation of such distributed solutions is beyond technical triviality.
[0009] Embodiments may include solutions that enable or facilitate the distribution of mining tasks across multiple processing resources.
[0010] Embodiments of the present disclosure may include methods and systems as described, illustrated, and claimed herein with respect to the section entitled "Distributed Mining." Such embodiments may include techniques for authorizing, controlling, establishing authorization, or otherwise formulating requests for the generation of Proof-of-Work (PoW) for a blockchain block that includes a particular plurality (set) of transactions. Preferably, the set includes transactions that include at least a portion of control data that a Proof-of-Work provider can use to determine whether a requested PoW effort should be initiated, performed, and / or fulfilled. This is referred to as a "control transaction" (TX). 0 ) The request can also be used to verify that the PoW provider has 0 In a preferred embodiment, this may include data that can be used to determine that a transaction is included in a set of transactions. 0 ), and / or at least one or more of the roots of a Merkle tree representing a set of transactions. The PoW provider may process requests in conjunction with at least one pre-specified rule, criterion, or requirement to ensure that a) the control transaction is included in the set and / or b) includes at least one portion of control data that may be used, and determine whether the work of the requested PoW effort should be initiated, performed, and / or fulfilled.
[0011] In combination, PoW requesters and PoW providers may provide distributed blockchain mining nodes. Embodiments provide the ability to separate, distribute, and parallelize the various functions and tasks involved in validating and / or mining blockchain transactions.
[0012] To facilitate an understanding of embodiments of the present disclosure and to show how such embodiments may be carried into effect, reference will now be made, by way of example only, to the accompanying drawings, in which: [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a schematic block diagram of a system for implementing a blockchain. [Diagram 2] FIG. 1 illustrates a schematic of some example transactions that may be recorded on a blockchain. [Diagram 3] FIG. 1 illustrates a typical Merkle tree structure as known in the art. [Figure 4] FIG. 1 illustrates how a Merkle root can be derived from a set of blockchain transactions, as known in the art. [Diagram 5] FIG. 1 is an example diagram illustrating how a Merkle tree may be divided into subsets (or “segments”) that may then be assigned to respective validation resources according to one embodiment of the present disclosure. [Figure 6] FIG. 6 illustrates an alternative example to FIG. 5 showing how a Merkle tree can be divided into logical segments. [Figure 7] FIG. 2 illustrates a system-level illustration of a distributed validation node according to an exemplary embodiment of the present disclosure. [Figure 8] 1 is a flowchart illustrating, at a high level, the steps involved in an exemplary method of the present disclosure. [Figure 9] FIG. 8 illustrates the example system of FIG. 7 in greater detail. [Figure 10] FIG. 1 provides a high level overview of a preferred embodiment of the present disclosure. [Figure 11] FIG. 1 illustrates a conventional approach to validation and mining activities performed by nodes on a blockchain network, as known in the art. [Figure 12]FIG. 3 illustrates an example of how the conventional tasks of FIG. 2 can be distributed among different entities, according to a preferred embodiment of the present disclosure. [Figure 13] FIG. 2 illustrates an example of typical tasks performed by a PoW requester according to a preferred embodiment of the present disclosure. [Figure 14] FIG. 2 illustrates an example of typical tasks performed by a PoW provider according to a preferred embodiment of the present disclosure. [Figure 15] FIG. 2 illustrates a distributed mining node according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] We will now describe exemplary embodiments of the present disclosure, by way of example and not limitation, with reference to the accompanying figures.
[0015] Traditionally, nodes in a blockchain network maintain a global ledger of all transactions on the blockchain. The global ledger is a distributed ledger, and each node may store a full or partial copy of the global ledger. Transactions by nodes that affect the global ledger are verified by other nodes, thereby maintaining the validity and integrity of the global ledger. Those skilled in the art will understand the implementation and operational details of blockchain networks, such as those that use the Bitcoin protocol.
[0016] Each transaction typically has one or more inputs and one or more outputs. Scripts embedded in the inputs and outputs specify how the transaction's outputs can be accessed and by whom. A transaction's output may be an address to which control of value is transferred as a result of the transaction. That value is then associated with that output address as an unspent transaction output (UTXO). Subsequent transactions may then reference that address as an input to gain control or ownership of that value.
[0017] In our example using the Bitcoin network and protocol as described above, mining nodes participate in a race to create the next block in the blockchain. To assemble a block, miners build the block as a set of transactions from a pool of unconfirmed transactions ("mempool"). The miner then attempts to complete a Proof of Work (PoW) puzzle on the assembled block. If the miner manages to complete the PoW prior to receiving notification that other miners have successfully generated their own blocks and completed the PoW, the miner propagates by sending the block to peer nodes on the network. Those nodes validate the block and then further send it to other nodes on the network. If the miner receives notification that another block is completed prior to finishing its PoW, the miner abandons its work and begins attempting to build the next block.
[0018] Thus, fast propagation of blocks helps to avoid wasted effort (and associated energy) on behalf of miners and validating nodes. By providing a solution that allows faster validation and therefore propagation of blocks, the present invention provides enhanced network performance. It reduces the amount of computation time and the effort required, and therefore the amount of energy required for the network. This provides a more efficient network in terms of resources and time. This ultimately provides an improved (blockchain) network.
[0019] In current blockchain implementations, such as the Bitcoin network, each node that receives a block first validates the block before sending it to other nodes. If it takes a long time to validate a block, it slows down the propagation of the block through the network. It should be noted that some implementations of blockchain, including evolutions of existing protocols, provide for block validation by only a subset of nodes, rather than every node in the network, but block validation by a majority of nodes is still likely to be a feature of a blockchain implementation that prevents invalid blocks from propagating through the network.
[0020] Validating a block involves verifying that the block meets prescribed criteria set by the applicable blockchain protocol. Exemplary criteria applicable to the Bitcoin protocol may include functions such as CheckBlock and CheckBlockHeader. In addition to verifying that the block itself meets prescribed criteria, each transaction within the block may be evaluated for compliance with transaction-level criteria. As an example, transaction-level criteria applied in the Bitcoin protocol may include the functions AcceptToMemoryPool, CheckTransaction, and CheckInputs.
[0021] Specific examples of block-level standards based on the Bitcoin protocol may include: Block data structures are syntactically valid. The block header hash is less than the target difficulty (enforces proof of work). The block timestamp is within 2 hours of the future (allowing for time skew). - The block size is within the acceptable range. The first transaction (and only the first transaction) is a coinbase generated transaction. All transactions within a block are valid.
[0022] Specific examples of transaction-level criteria based on the Bitcoin protocol may include: · The transaction syntax and data structures must be correct. · The input or output list is not empty. Each output value x, and even the sum of all outputs, is 0 <x<21·10 6 must be within the range. None of the inputs have a NULL hash. nLockTime is less than or equal to INT_MAX. The transaction size in bytes is greater than or equal to the minimum and less than or equal to the maximum. The number of signature calculations is less than the upper limit of signature calculations. · The unlock script scriptSig can only push numbers onto the stack, and the lock script scriptPubkey must match the isStandard format. For each input, if the referenced output is present in any other transaction in the pool, the transaction must be rejected. For each input, if the referenced output transaction is a coinbase output, it must have at least COINBASE_MATURITY(100) confirmations. For each input, the referenced output must exist and not already be consumed. Use the referenced output transaction to get the input values and ensure that each input value, and even the sum, is within the allowed range of the value x, i.e. 0 <x<21·10 6 Check that it is in. There must be a matching transaction in a block in the pool or in the main branch. · The sum of the input values must be greater than or equal to the sum of the output values. The transaction fees must be enough to get into an empty block. · The unlock script for each input must be validated against the corresponding output lock script.
[0023] These exemplary criteria are exemplary and should not be construed as sufficient or necessary for all embodiments, as the specified criteria may differ for different protocols and may change over time for a given protocol as changes are made to the protocol. In general, transaction-level validation criteria are specified characteristics that a transaction must have in order to be considered valid under the applicable blockchain protocol. Similarly, block-level validation criteria are specified characteristics that a block must have in order to be considered valid under the applicable blockchain protocol.
[0024] The present application describes methods and devices that speed up block validation to facilitate faster propagation of blocks in a network.
[0025] In one aspect, the present application describes a node structured to validate blocks by performing at least transaction-level validation of individual transactions in a parallel and / or distributed manner. However, certain transaction-level criteria may not be evaluated in parallel. For example, the uniqueness of a UTXO may be evaluated on a serial basis. In such cases, a distributed validation node of the present disclosure may be structured or configured to verify the uniqueness of a transaction's reference input (UTXO) prior to allocating the set of transactions among a set of two or more parallel processors for validation of the remaining transaction-level criteria.
[0026] In particular, embodiments of the present disclosure provide improved validation and security solutions for processing related or associated data records stored in a tree structure. The tree can be a binary tree or a mesh structure. As is known in the art, a tree structure can be decomposed into smaller trees (which may be referred to herein as "segments," "subsets," or "parts" of the tree), with each segment containing a subset of the data records of the overall tree and having its own root. Advantageously, embodiments of the present disclosure take advantage of this feature to provide a method and system for the distribution and parallelization of processing of related data records across multiple processing resources.
[0027] In our exemplary embodiment, the data records comprise related blockchain transactions as they form nodes in a Merkle tree. The Merkle tree has a root that is or may be included in the header of a block of transactions according to the blockchain protocol, and the root provides a path that can be followed to all leaves (i.e., transaction IDs (TxIDs)) in the tree. In our example, the blockchain protocol is or is derived from the Bitcoin protocol, although other protocols are within the scope of this disclosure.
[0028] In our example, processing the multiple transactions includes validating at least a portion of a blockchain block that includes multiple blockchain transactions and the root of a Merkle tree for that block. These examples are non-limiting, and the techniques disclosed herein may be utilized with respect to non-blockchain relational data and / or with respect to other processes besides validation. For example, embodiments may be used to store, structure, search, and / or maintain any type of data records that may be represented in a Merkle tree. Databases and other known storage resources may be utilized in lieu of or in addition to a blockchain ledger.
[0029] In another exemplary embodiment, processing the multiple transactions includes downloading at least a portion of a blockchain block that includes the multiple blockchain transactions, and the root of the Merkle tree for that block.
[0030] For completeness, and with reference to Figures 3 and 4, we present a detailed explanation of Merkle trees and their use in representing blocks of blockchain transactions.
[0031] Merkle Tree Referring to Figure 3, a Merkle tree is a hierarchical data structure that allows a collection of data to be securely verified. In a Merkle tree, each node in the tree is given an index pair (i,j) and is represented as N(i,j). The indices i,j are simply numerical labels that relate to a particular position in the tree.
[0032] A Merkle tree is characterized by the fact that the structure of each of its nodes is given by
[0033]
number
[0034] This is what is decided by where and H is a cryptographic hash function.
[0035] An example of a binary Merkle tree formed according to these formulas is shown in Figure 3. As shown, the case i=j corresponds to a leaf node, which is simply the ith data packet D i We can see that the hash of i is the hash of j. If i ≠ j then it corresponds to an internal or parent node, which is generated by recursively hashing and concatenating the child nodes until a single parent (the Merkle root) is found.
[0036] For example, node N(0,3) receives four data packets D 0 ,...,D 3 It is constructed from the following: N(0,3)=H(N(0,1)∥N(2,3)) =[H(N(0,0)∥N(1,1))∥H(N(2,2)∥N(3,3))] =[H(H(D 0 )∥H(D 1 ))∥H(H(D 2 )∥H(D 3 ))
[0037] The depth M of a tree is defined as the lowest level of a node in the tree, and the depth m of a node is the level at which the node resides. For example, root =0 and m leaf =M, and in Figure 3 M=3.
[0038] For Merkle trees in Bitcoin and some other blockchains, the hash function is double SHA256, which is the two applications of the standard hash function SHA-256. H(x) = SHA256(SHA256(x))
[0039] The main function of a Merkle tree is to find a data packet Di Let D∈{D 0 ,...,D N-1 The goal of verification is to verify that a data packet D is a member of a list or set of . The mechanism for verification is known as a Merkle proof, and is i and obtaining a set of hashes known as a Merkle path to a Merkle root R. A Merkle proof for a data packet is simply the minimal list of hashes needed to reconstruct the root R by repeated hashing and concatenation, and is often referred to as an "authentication proof".
[0040] The proof of existence is that for every packet D 0 ,...,D N-1 This can be trivially performed if the order of the data blocks, N, is known to the prover. However, this requires a much larger storage overhead than Merkle proofs, but also requires that the entire data set be available to the prover. A comparison between using Merkle proofs and using the entire list is shown in the table below, where we use binary Merkle trees and assume that the number of data blocks, N, is exactly equal to an integer power of 2.
[0041] The following table shows the relationship between the number of leaf nodes in a Merkle tree and the number of hashes (or Merkle proofs) required for a Merkle proof.
[0042] [Table 1]
[0043] In this simplified scenario -- where the number of data packets is equal to the number of leaf nodes -- we find that the number of hash values required to compute a Merkle proof grows logarithmically. Rather than storing N data hashes and computing an explicit proof, it takes log 2 It is clear that computing a Merkle proof that involves N hashes is much more efficient and practical.
[0044] Given a Merkle root R, a data block D 0 Let R be an ordered list D∈{D 0 ,...,D N-1}, one can perform a Merkle proof as follows: i. Obtain the Merkle root R from a trusted source. ii. Obtain a Merkle proof Γ from a source, where Γ is a set of hashes. Γ={N(1,1),N(2,3),N(4,7)} iii.D 1 and Γ to compute the Merkle proof as follows: a. Hash the data block N(0,0)=H(D 0 ) get. b. Concatenate it with N(1,1) and hash it. N(0,1)=H(N(0,0)∥N(1,1)) get. c. Concatenate with N(2,3) and hash it N(0,3)=H(N(0,1)∥N(2,3)) get. d. Concatenate N(4,7) and hash it to the root N(0,7)=H(N(0,3)∥N(4,7)), R'=N(0,7) get. e. Compare the calculated root R' with the root R obtained in (i). 1. If R'=R, then D in the tree 0 The existence of, and therefore data set D, is confirmed. 2. If R' ≠ R, the proof fails and D 0 is not confirmed to be a member of D.
[0045] This is an efficient mechanism for providing proofs of existence for some data, as part of a dataset represented by a Merkle tree and its root. For example, for data D 0 If x corresponds to a transaction in the blockchain, and the root R is publicly available as part of the block header, it can be quickly proven that the transaction was included in that block.
[0046] SPV Simplified Payment Verification (SPV), first demonstrated in section 8 of the 2008 whitepaper "Bitcoin: A Peer-to-Peer Electronic Cash System" by Satoshi Nakamoto, takes advantage of these properties of Merkle trees. In an SPV-based cryptocurrency exchange between Alice and Bob, both parties use the same type of SPV wallet. The SPV wallet stores the user's private and public keys, unspent transactions, and a block header that uniquely identifies the block so that it can be placed on the blockchain. As described, the block header contains fields of data that provide a unique summary or fingerprint of the contents of the entire block, as well as a field that provides the Merkle root for that block. The Merkle root is generated by repeatedly hashing pairs of transaction IDs (TxIDs) from the block until a single hash is eventually reached. The Merkle root provides an efficient and secure mechanism for verifying that a transaction is part of a block, since it allows users such as wallets and merchant nodes to verify a particular transaction locally without having to download the entire blockchain. This is advantageous for parties such as users who do not need or want to run a full node, but simply need to perform a local check if a particular transaction is in a particular block, e.g., a merchant and a customer wishing to perform a money transfer between the merchant and the customer. In summary, SPV allows such users to search a Merkle tree with a given root and check (i.e., verify) if a particular transaction is contained within a particular blockchain block without having to download and store the entire blockchain.
[0047] Thus, SPV wallets provide the advantage that at least power- and storage-constrained devices such as mobile phones and laptops can operate within the Bitcoin ecosystem, since they only need to verify that transactions are verified (hence the name "simplified payment verification"), rather than performing a full check of the blockchain as other forms of wallets do. Because SPV wallets download only the block headers without including any of the transactions, this significantly reduces the storage, energy, and processing resources required for verification. SPV wallets are particularly well suited for use with embodiments of the present disclosure for reasons explained below, and the term "verification" is used herein to include SPV checks.
[0048] Blocking Transactions FIG. 4 illustrates a schematic of an example of a blockchain block. Each block contains a block header and a set of transactions. The block header contains, among other things, a hash of the previous block header, i.e., the hash of the block header of the block based on which the current block was constructed. The block header also contains the Merkle root of a Merkle tree constructed using the set of transactions. Each transaction is first hashed (e.g., double-hashed) to generate a transaction identifier (TxID) for that transaction. The transaction identifier is then used as a leaf node of the Merkle tree. Pairs of transaction identifiers are then concatenated and hashed to form respective internal nodes of a first internal level of the Merkle tree. Pairs of internal nodes of the first internal level are then concatenated and hashed to form respective internal nodes of a second internal level of the Merkle tree. The process of concatenating and hashing pairs of internal nodes is repeated until only a single hash, the Merkle root, remains. This Merkle root is sometimes referred to as the block Merkle root.
[0049] Next, with particular reference to Figures 5, 6 and 7, an embodiment of the present disclosure will be described.
[0050] Identify the segment of the block’s Merkle tree Assume that a particular party, say Alice, wishes to validate some transactions. According to one embodiment of the present disclosure, at least one subset of the transactions is identified, which forms and / or is represented by a segment of the entire Merkle tree for that block. Thus, the block of transactions may be logically segmented into multiple segments based on the Merkle tree of the block, with each segment containing a subset of the block's transactions, and each segment having its own root node (or "root hash"). This common root hash is sometimes referred to as the "segment hash" below to distinguish it from the root hash of the entire block. Transactions at the same level in a tree segment (i.e., the lowest level, sometimes also referred to as the "leaf level" or "leaf tier") are siblings. All transactions in a given segment share a common root node for that segment. The common root node may belong to an adjacent level of the Merkle tree, i.e., the level immediately above the lowest level. Alternatively, the common root node may belong to a higher level. In general, the common root node may belong to any level of the Merkle tree between the lowest level and the Merkle root.
[0051] Splitting a block into smaller parts based on its Merkle tree provides significant technical advantages, including the ability to quickly and efficiently allocate transactions among multiple validators. For example, because the Bitcoin protocol uses binary trees, it is possible to implement binary allocation across multiple machines. By using small binary markers as an indexing system for the segments, the position of each segment in the overall Merkle tree can be quickly calculated, which allows the segments to be put back together after validation is complete, reconstructing the full Merkle tree for the block. This binary indexing approach is described in more detail below.
[0052] While various techniques may be used to identify the segments, according to one approach, the number of segments may be determined by the number of available validators in the system. For example, in a system with four validators, the Merkle tree may be divided into four segments, if there are eight validators, the Merkle tree may be divided into eight segments, and so on. The identification of segments for a given Merkle tree may be performed or influenced by a controlling entity, exemplified by controller 702 in FIG. 7.
[0053] The points described above are further illustrated with reference to Figures 5 and 6, where Figure 5 illustrates an example of how a Merkle tree may be split into separate portions 502 and assigned to validators. In the example of Figure 5, each arrow represents a respective transaction that is hashed to form a respective transaction identifier, which is used in each leaf node of the Merkle tree. The top of the Merkle tree is a block Merkle root. In this example, the block of transactions represented by the Merkle tree contains 32 transactions. However, it will be understood that this is merely an example and that in general, a Merkle tree may contain any number of transactions depending on the number of transactions in the block. As shown, the Merkle tree is split into four portions 502a-d, shown as dashed boxes. Each portion 502 is linked by a respective common internal node (inner hash) 504 of the Merkle tree, shown as a solid circle. Each portion 502 represents eight transactions. In this example, the common internal node 504 belongs to the fourth level of the Merkle tree. According to the embodiments described herein, each respective portion 502 (or rather, the transactions forming the portion and / or the transactions representing the portion) is assigned to a respective validator for processing, e.g., for validating the transactions belonging to the respective portion 502.
[0054] FIG. 6 illustrates another example of how a Merkle tree can be split into portions 602. The Merkle tree in FIG. 6 is the same as that in FIG. 5. In this example, the Merkle tree is then split into eight portions 602a-h, each portion 602 representing four transactions. In this example, the common internal node 604 belongs to the third level of the Merkle tree. The Merkle trees in FIG. 5 and FIG. 6 could instead be split into more (e.g., 16) or fewer (e.g., 2) portions 502, 602. In general, a Merkle tree formed from a set of transactions of a block may be split into any number of portions 502, 602, each portion including a minimum of two transactions.
[0055] Assigning segments to each validation resource Following their identification, a subset of transactions are distributed across multiple validation resources, which may also be referred to as "validators" for easy reference. The multiple validators are illustrated in Figures 7 and 9 as Resources A through D (704a through 704d). The allocation process may be directed or influenced by a dedicated unit, such as, but not limited to, component 904 as illustrated in Figure 9.
[0056] Each validator (704a through 704d) may include one or more processing resources. Thus, at least one of the validators of the plurality of validators (704a through 704d) may be or include at least one of one or more virtual machines, one or more servers, one or more GPU-based computing resources, one or more threads, and / or one or more multi-processor systems, etc. Essentially, any of the plurality of validators may be comprised of any type or combination of processing resources, and each may validate one or more transactions that are related to each other by a segment of the block's Merkle tree. The plurality of validators (704a through 704d) and other system components form a collective resource or entity 700, which is referred to as a "(distributed) validation node."
[0057] Preferably, the distribution includes allocating each of the segments to a respective validator in the plurality of validators. · Manipulate one or more transactions that make up the assigned segment; Validate one or more transactions to verify that they comply with the blockchain protocol; and / or Validate that it can be identified in an existing repository, such as a blockchain ledger or database of known, registered, or spent transactions It can be configured as follows.
[0058] The activity of the validators and the allocation of subsets to different validators may be directed by a controller. Figure 7 shows a controller 702 assigning subsets of transactions A through D for each tree segment to validators 704a through 704d, respectively. The system-level controller 702 coordinates the activity of systems or devices 704a through 704d in the distributed validation node and may control or influence tasks such as identifying tree segments from the block's Merkle tree, allocating the identified segments to each validator, reordering the validated tree segments into the complete Merkle tree for the block, and / or ordering the transactions within the reconstructed block.
[0059] One or more of these validators may include at least one coordinating entity configured to act as a controller at the validator level. Thus, any or all of validators 704a-704d may include at least one controller component of their own. This lower-level controller may influence or direct operations such as the assignment of tasks or subtasks to one or more processing resources within the validator, the reconfiguration of the Merkle tree for a given segment, or interactions with other system components, e.g., other validators or higher-level controllers, UTXO pools, wallets, etc. In turn, the processing resources may themselves be further decomposed into smaller systems, one or more of which may include a controller and one or more processing resources of their own. In this way, the system may include a hierarchical architecture in which segment validation is performed by a validation entity that includes one or more processing resources for performing validation tasks, and one or more controllers for coordinating the activities of the processors and performing inter-component communication.
[0060] In embodiments where the validator includes multiple processing resources, the validator may divide the assigned segment into smaller segments. The validator's controller may then distribute the sub-segments over the processors under its control. In this manner, the validation process may be implemented in a hierarchical and distributed manner.
[0061] This hierarchical decomposition can also be extended to the transaction level, where validation can be further decomposed into sub-processes or tasks on a per-transaction basis, rather than at the tree segment level. In this approach, validation of individual transactions is decomposed into sub-tasks that are distributed on different machines, or different threads running on the same or different machines. These processes can be queued so that when a thread becomes available, another transaction or task can be assigned to the thread.
[0062] Thus, the present disclosure allows many transactions to be processed simultaneously, with the only limitation being the number of hardware available to form distributed validation nodes, rather than the available processing speed that is the bottleneck as in conventional techniques. This allows blockchain processing systems to be scaled horizontally without requiring modifications to the underlying protocol of the blockchain network.
[0063] This disclosure therefore presents a significant departure from conventional approaches to validation, which are described in more detail with reference to Figures 1 and 2 in the following section entitled "Exemplary Technical Environment for Implementation of Exemplary Embodiments of the Disclosure." As described, conventional approaches involve the conventional view that a block is validated as an entire entity, and that the validation node (see 104 in Figure 1) is a single computing unit. In contrast, embodiments of the present disclosure divide the Merkle tree into multiple segments that are fed to different validators (704a to 704d in Figures 7 and 9), each of which can be further divided to increase the degree of distribution involved.
[0064] Still further, by dividing each block into segments based on its Merkle tree, embodiments of the present disclosure allow validators to access, download, and process small portions of a block rather than the entire block. Recall that transactions within each segment hash up (in pairs) to a single root value. This means that segments can be validated using only the relevant transactions required, rather than the entire block being downloaded, stored, and processed as a whole. As protocols such as Bitcoin SV allow for the scaling of block sizes and the inclusion of large blocks in the ledger, the traditional model of downloading the entire block becomes a bottleneck. Embodiments of the present disclosure eliminate this challenge to blockchain scalability by allowing individual validators to receive and process only the (smaller) portions relevant to them. This results in faster overall validation times, improved blockchain networks, and improved applications running on the blockchain.
[0065] Additionally, embodiments support and facilitate the use of SPV processes and resources because such SPV involves local validation of only the portion of the Merkle tree that is of interest to a given party. Thus, the pruning nature of SPV techniques makes them ideal for use in conjunction with embodiments of the present disclosure. In an SPV context, validators may be given only the portion of the block data they need, i.e., the block header or segment root node and associated transactions.
[0066] When each validator performs its checks and validates the segments it has processed, the block can be guaranteed to be valid due to the hashing mechanism used to generate the tree.
[0067] Load balancing among multiple validators Load balancing techniques and systems are known in the art and are designed to distribute tasks evenly among multiple resources to increase efficiency. The objective is to minimize the risk that some processing resources will be idle and others will be overloaded, resulting in poor performance and even failure. Load balancing is therefore important in ensuring the overall system resilience and its performance and efficiency. Embodiments of the present disclosure may utilize any known load balancing technique, such as, for example, static or dynamic load balancing. Additionally or alternatively, the load balancing approaches disclosed herein may be used to advantage.
[0068] As noted above, embodiments of the present disclosure may use an indexing system in the allocation of block segments to each validator. Preferably, this is a binary indexing system. In this preferred system, each validator is assigned a binary label or identifier. Each identifier is four digits long, with the first validator identified as 0000, the next validator identified as 0001, the next validator identified as 0010, and so on. Notably, a four-digit identifier allows for 256 possible validator IDs, with the last validator identified as 1111 (i.e., the validator number is 255 in decimal).
[0069] When a tree segment needs to be assigned to a validator, the first four digits of the double hash (i.e., the segment hash of the tree segment) can be used to determine which validator will process the segment. The Merkle root is generated by hashing together pairs of transaction IDs (TxIDs) from blocks to generate each internal node (or internal hash) of the Merkle tree, and then hashing adjacent internal hashes repeatedly until a single hash is finally reached. This double-hashed Merkle root provides an efficient, fast, and secure validation mechanism. It also provides the advantage that in the present context, the double hash generates random binary numbers. Each internal hash, including each segment hash, is itself a double hash. Thus, we can take the first x leading digits of the segment hash as the assignment index. A hash with four leading zeros would result in the tree segment being assigned to the validator with ID 0000, a hash with leading digits 0001 would result in the validator with ID 0001, and so on. The random generation of the double hash ensures a random distribution of tree segments to validators.
[0070] Double hashing is typically used when generating Merkle trees, but not required in all instances; instead, only single hashing may be used. In practice, any number of hash operations will produce a random binary number. Load balancing tasks may be performed by a dedicated system component, shown in FIG. 9 as 905, or may be provided elsewhere in system 700 or in association with and communication with system 700.
[0071] Distributed download of blocks According to some embodiments, the allocation of segments of a block Merkle tree to different validators may be used to provide a faster and more efficient process for downloading some or all of a block of transactions.
[0072] Each validator is assigned a segment of the Merkle tree based, for example, on an assignment index as described above. Any given validator then operates to download the set of transactions that form its assigned tree segment. This may involve downloading the set of transactions from the blockchain itself (e.g., from a blockchain node) or from a different resource or entity, such as a third-party service provider. The set of transactions may be downloaded to the validator's internal memory or to a shared storage location, such as a shared drive on the cloud.
[0073] A distributed node may need a complete block, i.e., the entire set of transactions that form the block. In that case, each validator that has been assigned a tree segment downloads a subset of the transactions that form the segment. In other scenarios, a distributed node may only need a specific portion of a block. In that case, only some of the validators may need to download their respective subsets of transactions to obtain the desired transactions.
[0074] Downloading a block (or a portion of a block) in this manner results in a faster overall download, since each validator only needs to process a subset of the transactions of the entire set of transactions that form the block. This contrasts with traditional block downloads, where a given entity (e.g., a full node) must download the entire block, e.g., by downloading each transaction in the order in which they appear in the block. A block is then downloaded in parallel by multiple validators. A single block may contain tens of thousands, if not orders of magnitude, of transactions. Downloading this number of transactions by a single entity would consume significant resources and take a significant amount of time. The computational load is distributed among the validators, such that each individual validator consumes only a small fraction of the processing resources. Similarly, the overall time it takes to download a block is reduced.
[0075] As described, each validator may download a subset of the transactions. The subsets may then be combined to reconstruct the block in a single storage location. (A "single storage location" may mean either a storage resource that is a self-contained entity or multiple associated storage resources that form a collective entity). To do so, the individual validators may transmit their respective subsets to a central controller of distributed nodes that is configured to arrange the transactions in the correct order. For this purpose, segment hashes (i.e., hashes that link tree segments) may be utilized. For example, a mapping of segment hashes to their positions in the Merkle tree, e.g., from left to right as they appear in the Merkle tree, may be maintained. The subsets of transactions may then be placed in order (e.g., from first to last) based on the corresponding segment hashes.
[0076] In some embodiments, an individual validator (or the entire distributed node) may verify that the correct transactions have been downloaded (or that the transactions have been downloaded correctly) by reconstructing the Merkle tree. After downloading a subset of transactions, the validator may generate a candidate segment hash based on those transactions. The candidate segment hash is constructed by hashing a pair of TxIDs to generate their respective internal hashes, and repeatedly hashing the pair of internal hashes until a candidate segment hash is generated. The level of the Merkle tree to which the candidate segment hash belongs depends on the number of tree segments the Merkle tree is divided into. The validator may verify that the candidate segment hash is a hash of the Merkle tree. If the hashes do not match, an error occurred during download. In some examples, each validator may generate a candidate segment hash and send it to the controller to perform the validation. As another example, a candidate block Merkle root may be generated based on the entire set of downloaded transactions. Again, the candidate Merkle root should match the actual block Merkle root (i.e., the Merkle root stored in the block) if the block was downloaded correctly.
[0077] In some cases, validators may validate the downloaded transactions using the techniques described above; that is, each validator is assigned a tree segment, downloads a corresponding subset of transactions, and validates those transactions. In other cases, validators may not necessarily validate transactions, but simply download them for later use, e.g., to send to a third party.
[0078] Decentralized UTXO Pool Preferably, each validator 704 forming part of a distributed validation node has its own repository (pool) for generating, storing and / or maintaining unspent transaction outputs (UTXOS). It acts as a UTXO pool providing a record of unspent or unspent outputs associated with blockchain transactions. Thus, each validator's UTXO pool is based on and constructed from transactions assigned by the controller in terms of Merkle tree segments. In one embodiment, this may be a (graph) database containing data related to unspent UTXOs of transactions assigned to a given validator for processing. For each UTXO, when a new Merkle tree segment is assigned, a record in the database is created that the validator will recognize. Thus, from the perspective of the distributed validation node, the UTXO pool is not one single pool, but rather consists of several different UTXO pools, each containing a different set of UTXOs provided at or on different validators. Thus, the UTXO pool for a node is distributed both in terms of the data and also in terms of the resources to store and / or process it.
[0079] This is a significant departure from the traditional UTXO model, where each full node in the network has a copy of a UTXO pool that tracks all UTXOs on the blockchain. In contrast, the present disclosure distributes the UTXO pool across multiple validation resources, each with a UTXO pool that is a subset of the blockchain's entire UTXO set. Each validator's UTXO pool contains the UTXOs for transactions that make up the subportion of the Merkle tree that it is responsible for validating.
[0080] Following such an approach, it may be implemented in a manner similar to a SQL transaction log in that every time a new block needs to be validated, all commands, events, and items related to the database are logged. The term "database log" is used herein to avoid confusion arising from the use of the term "transaction" as known in the context of blockchain, but we use the term "database log" to include terms such as "transaction journal", "transaction log", and the like. In essence, a database log may be interpreted as a history of actions performed by a database management system, providing a record of all changes that have occurred with respect to the state of the database, as known in the field of computer-based databases (see https: / / en.wikipedia.org / wiki / Transaction_log).
[0081] The use of an ordered, historical database log means that the entire UTXO pool can be constructed by running the log history in the original order. Advantageously, this ensures that a copy of the database can be (re)generated whenever necessary and no separate copies of the data need to be stored. Data integrity is ensured and fewer storage resources are required. Each UTXO pool can be stored, maintained and processed separately. Advantageously, SPV techniques also facilitate the creation of a separate UTXO database for each validator, provided that they operate on pruned parts of the Merkle tree.
[0082] Transactions (TX) in the database can be structured in a variety of ways, but a particularly advantageous approach is to structure them according to an identifier that comprises a concatenation of a block ID and a transaction ID (block_ID ll TxID). Both the block ID and the transaction ID are 256-bit hashes, resulting in a secure, collision-free 512-bit concatenated field structure.
[0083] Structuring transactions in this manner provides a fast and efficient lookup mechanism. Transactions can be sorted by block_ID such that all transactions with the same block_ID are placed together in the database. Thus, when a validator needs a transaction (e.g., to see if the transaction's UTXO has been spent), the validator can locate the transaction in the database by first looking up the corresponding block_ID and then the corresponding TxID. This has the effect that the search is limited to the relevant section of the database. This efficiency reduces the time, processing resources, and energy required for a lookup operation, providing a significant improvement over the prior art.
[0084] A flag or marker is associated with each UTXO in a validator's pool to indicate whether the UTXO is locked or unlocked. For convenience, we sometimes refer to this flag or marker as the "lock flag." When a UTXO is marked "locked," it serves as an indicator to validators in the group (i.e. elsewhere in the distributed validation nodes) that this UTXO is not available for consumption. Conversely, when a UTXO is marked "unlocked," it serves as an indicator to validators that the UTXO may be spent. This therefore allows validators assigned to verify a transaction that spends a UTXO to signal to their peers that the UTXO has been redeemed and is therefore no longer available for consumption, assuming the transaction is proven valid. The "locked" state means that spending is permitted, while the "unlocked" state means that spending is prohibited.
[0085] This locked / unlocked flag can be a simple small binary marker, such as "0" for "locked" and "1" for "unlocked." The marker mechanism is used internally by validators in the distributed node system, and the marker is removed from transactions prior to interacting with the blockchain to ensure that the transaction complies with the protocol rules.
[0086] In use, a validator checks the outputs in each new transaction it is assigned by the controller. Any unspent outputs (UTXOs) are added to the validator's UTXO pool, i.e., recorded as an entry in the UTXO database. In the associated database record for each new UTXO, the lock flag is set to "unlocked".
[0087] When a validator sees that a UTXO has been consumed by a newly allocated transaction, it sends a message to all other validators in the validator pool informing them that this UTXO should also be locked in their pool. Essentially, the validator sends a communication to its peers indicating that it saw a spend with a transaction with a particular hash ID at a particular time. Other validators do not need to receive the full data for the entire transaction, since the transaction hash and the list of UTXOs it consumes are enough for them to identify the transaction of interest and mark it as locked in their own database. Upon receiving the message, each receiving validator checks if the UTXO of interest is in their UTXO pool. If so, the state of the lock flag is changed to "locked". Thus, the lock prevents the validator from allowing the same UTXO to be consumed in a subsequent transaction. If a new transaction attempts to consume the same UTXO, the lock flag check indicates that the second spend attempt should be ignored. If the validator that sent the message determines that the validation failed and therefore the UTXO has not been spent, a further message to that effect may be sent to the validator's peers indicating that the lock flag for the UTXO should be changed to the "unclocked" state. After valid consumption is complete, a message to that effect may be sent and the locked UTXO may be removed from the associated UTXO pool.
[0088] In the embodiment described above, each validator has a single UTXO pool, which contains the UTXOs of all transactions in all of the tree segments assigned to it. However, in an alternative approach, the UTXO pool maintained by each validator may be divided / split / compartmentalized / formed into multiple subpools, one for each block. In this way, the single UTXO pool may be organized into a logical hierarchy. In yet another approach, one or more validators may be configured with associated respective UTXO pools, each pool relating to UTXOs for a set of one or more tree segments. Thus, in some embodiments, a validator may organize UTXOs into separate UTXO pools for different individual tree segments, or according to predefined criteria, such as types of tree segments, or tree segments that are within a given range. In such an embodiment, the identifier may include a block ID that may be used to narrow the search for the relevant UTXO pool, and the search may then proceed within that pool to (attempt to) identify the relevant transaction by its TxID. Those skilled in the art will appreciate that in some embodiments, a mixture of these approaches may be used, i.e., one or more validators within a distributed node may employ a single UTXO pool approach, while others are configured to use multiple, separate UTXO pools, and / or UTXO pools organized into sub-pools, or any combination thereof.
[0089] This provides protection against "double spend" situations where a party attempts to spend the same UTXO twice. It provides a simple and secure locking mechanism that works efficiently and quickly, regardless of the number or location of validators in the system, and maintains the security and integrity of transactions implemented on the blockchain.
[0090] Distributed Mining Next, we present a detailed description of an embodiment of the present disclosure in which mining tasks and functions are separated from other operations typically associated with or performed by "full nodes" on a blockchain network. This allows mining tasks to be distributed and parallelized among different resources. This provides a different technical architecture and system configuration compared to the prior art, allowing for more flexibility in terms of resource placement or provision. For example, mining resources could be provided in geographical areas where renewable energy supplies are available, thereby creating a network that relies less on expensive or environmentally costly energy sources.
[0091] As known in the art and illustrated in FIG. 11, transactions must be validated before they can be written to the blockchain. Network nodes (miners) perform the task of verifying that each transaction is valid, and invalid transactions are rejected from the network. A software client installed on the node performs this validation task on unspent transactions (UTXOs) by executing lock and unlock scripts. If the execution of the lock and unlock scripts evaluates to TRUE, the transaction is valid and the transaction is written to the blockchain. Thus, for a transaction to be appended to the blockchain ledger, it must i) be validated by the first node that received the transaction--if the transaction is valid, the node relays it to other nodes in the network, ii) be added to a new block constructed by miners, and iii) be mined.
[0092] Traditionally, to mine a block, a mining node selects an unconfirmed transaction from the mempool, generates a coinbase transaction for that block, and forms a candidate block by pairwise hashing all transactions to form a Merkle tree structure with a Merkle (hash) root. The Merkle tree represents all transactions in the candidate block. The miner also determines the version number and current epoch time, and takes the hash of the latest block on the longest chain of the ledger. The Merkle root and other values are concatenated to form a block message BM.
[0093] The miner then attempts to solve the PoW challenge by finding an integer value (a nonce) that, when appended to the block message and generating a complete block header, produces a hash containing a specified number of leading zeros. If this attempt fails to produce a qualifying hash, the miner repeats the calculation using a different nonce. If it finds a nonce that successfully generates the required number of leading zeros, it submits the candidate block, including its complete header, to the blockchain network to be verified by other nodes. The nonce thus provides proof that the miner has expended energy, effort, and time in finding a solution to the challenge.
[0094] Thus, in the conventional approach, miners select transactions, generate candidate blocks, generate PoW and complete block headers. In contrast to the conventional approach where these functions are performed by the same entity, in the presently disclosed approach, these functions are distributed and parallelized among different processing entities. This allows for the verification and enforcement of pre-specified authorization criteria prior to performing and / or completing the PoW calculation.
[0095] In a preferred embodiment, the Merkle structure of blocks allows various functions of the validation and mining process to be separated and handled independently by different computing resources. These resources may be located anywhere in the world and may operate in isolation or in combination with each other. These resources may collectively form "distributed nodes," with different node components specializing in one or more functions related to validating and / or mining blockchain transactions and blocks.
[0096] The disclosed approach involves separating the Proof-of-Work (PoW) computation from the validation effort, transaction processing, and other tasks typically associated with traditional full-node mining. This means that PoW providers do not need to perform any validation tasks, and conversely, validating nodes can offload the PoW computation to expert, dedicated resources that can be located anywhere in the world.
[0097] Thus, the present disclosure represents a significant departure from conventional approaches to validation, which are described in more detail with reference to FIGS. 1 and 2 in the section of this specification entitled "Exemplary Technical Environment for Implementation of Exemplary Embodiments of the Present Disclosure."
[0098] We now refer to Fig. 10 and Fig. 12 to Fig. 15, which illustrate an embodiment of this aspect. In this approach, as shown in Fig. 15, a distributed mining node 1000 is provided. Alternatively, it may be referred to as a "PoW provider". The PoW provider 1000 includes at least one dedicated PoW calculator, which may also be referred to as a "hash machine" or ASIC. The PoW calculator comprises one or more integrated circuit chips (shown in the figures as 1100a, 1100b, 1100c) configured to mine cryptocurrency according to an associated protocol. The calculators 1100a to 1100c may be configured to mine Bitcoin using the SHA-256 algorithm. Other algorithms may be adopted for other cryptocurrencies, such as ETHASH for mining Ethereum.
[0099] As shown in FIG. 10 and FIG. 15, the PoW provider 1000 communicates with a PoW request resource 1300 configured to send requests to the PoW provider to request the generation of valid nonces (or, preferably, complete block headers) for a given number of transactions. The term "request" as used herein is intended to include "instruct" and / or "initiate." Thus, a request may include or be the instruction or initiation of PoW generation. For simplicity, we will use the term "request."
[0100] In alternative terms, the PoW request resource 1300 may be referred to as a validation and / or mining resource or node, or simply as a "PoW requester." In a preferred embodiment, the request resource 1300 may be distributed, facilitating parallelization of validation and / or mining operations. The requester 1300 may be substantially as described herein and illustrated in FIG. 7 with reference to the validation node 700. However, in other embodiments, the requesting entity may take any suitable alternative form and may be any entity that requires the generation of PoW (nonce or block header).
[0101] To request a PoW, the PoW requester 1300 sends at least a portion of the information necessary to construct a block header for a candidate block of transactions to the PoW provider 1000. The information sent by the PoW requester may be referred to as a "block template" or "block message" and may include at least the root for a Merkle tree representing all transactions in the block. The block template may also include other information used by the PoW provider to generate a block header for the transaction, such as a version number, a previous block hash, a difficulty target, and / or a timestamp, or one or more of these data items may be calculated or obtained by the PoW provider. For example, the PoW provider may obtain, retrieve, or select a version number, or obtain a previous block hash from the network. It should be noted that the PoW provider does not need to receive the entire block from the PoW requester, but simply needs enough minimal information specified by the protocol to attempt to solve the PoW challenge in combination with the selected nonce. This means, however, that the PoW requester must receive the Merkle root for the transactions it wants to include in the block, as this cannot be determined by the PoW provider 1000.
[0102] In some embodiments, the PoW provider may include a controller 1200 configured to coordinate the activities of the PoW calculators. In some embodiments, the functions of the PoW provider 1000 and / or the controller 1200 may be implemented in an ASIC or hash machine 1100. Although FIG. 15 illustrates the controller as part of the same entity as the PoW calculator, this should not be interpreted as necessarily implying that the controller and the ASIC are implemented in the same hardware or device. These may be provided as physically separate devices, but may be logically or electronically associated with each other and / or communicate with each other to form the PoW provider 1000.
[0103] The controller 1200 may perform operations such as selecting a nonce or range of nonce for a given calculator (1100a-1100c) to operate on, obtaining any information required for PoW calculation not provided by the requester, and / or checking authorization criteria as described below. The calculators 1100a, 1100b, and 1100c may be configured to operate with different nonce ranges for the same candidate block. However, in some embodiments, the PoW request resource may allocate the nonce range, and the functions of the PoW provider 1000 and / or the controller 1200 may be implemented in the ASIC 1100. In yet other embodiments, the PoW requester may allocate the nonce range.
[0104] In addition to the block template, the PoW requester may provide further data to the PoW provider. This could be any kind of data that the PoW provider needs to verify the achievement or otherwise of at least one prerequisite rule or criterion. This at least one pre-specified rule or criterion is referred to as the control criterion below for ease of reference. The control criterion must be met before the PoW provider starts, continues, and / or completes its PoW computation work. If the (control) data provided to the PoW provider meets the control criterion, the request for PoW generation may be considered by the PoW provider as authorized, legitimate, and / or permitted. The control criterion may be pre-determined in, by, or on behalf of the PoW provider. It may be agreed between the PoW requester and the PoW provider, or the respective associated entities.
[0105] In a preferred implementation, the control data is included in a transaction that forms part of the block on which the PoW is calculated. The control data may be evaluated or checked by the PoW provider against control criteria to ensure pre-authorization or agreement between the parties, or the legitimacy of requests from authorized requesters. For example, the PoW provider may determine that a block includes a transaction (TX 0 ) in the PoW request. If this criterion is not met, the PoW request will be considered unauthorized and will not attempt to calculate the required PoW. To aid in the checking process, the PoW requester may provide, as part of the data it sends to the PoW provider, a proof in the form of an SPV that the PoW provider can use to verify that the transfer to the pre-specified address will occur if the block is successfully mined and added to the blockchain.
[0106] In another example, TX 0 It may be a prerequisite that the document be signed by an authorized party.
[0107] In another example, the control standard may be to provide metadata to the TX that the PoW provider can check and verify. 0 For example, the metadata may include secret information such as a cryptographic key, or a password / code, or some other data that can be used to verify that the PoW provider is authorized or permitted to generate PoW for or on behalf of the requester.
[0108] In some implementations, the TX 0 The metadata may also include instructions as to where the PoW should be sent. For example, it may be sent back to the PoW requester by default, or to another entity as specified in the metadata or some other part of the transaction. The metadata may also include a flag or other identifier to dictate which destination the PoW should be sent to, or which party is authorizing the PoW request. The flag or identifier or password, etc. may be known only to the PoW provider and / or the requester. This may be advantageous in scenarios where the PoW provider may receive requests from multiple unrelated requesters.
[0109] In some cases, TX 0 The inspection of may also trigger an event by the PoW provider. For example, the data in the transaction may cause a balance or account to be updated because the PoW provider may identify the request as being received from a particular authorized requester who has an account with the PoW provider. Additionally or alternatively, the PoW provider may not wish to provide more than a specified number of PoWs to a given requester in a given period of time and may use the PoW provider's TX to determine whether a threshold condition has been met. 0 Additionally or alternatively, alarms, alerts, or other communications may be sent using TX 0It can be initiated by the PoW provider based on the data provided in.
[0110] In yet another example, the control criteria is 0 The PoW process involves spending a sufficient amount of cryptocurrency, possibly to a pre-specified address, to ensure that control criteria are met. 0 It would also be possible to check the output of
[0111] In still other instances, TX 0 The inputs could also be inspected to ensure that funds are not transferred and received from illegitimate or unauthorized sources. For example, if a PoW provider does not want to accept requests from a particular party, for example because it is known or suspected to be associated with illegal activities, the PoW provider could decline to generate the requested PoW. Thus, the present disclosure can provide a solution to ensure compliance with legal or regulatory requirements and provide measures to prevent fraudulent / criminal activities.
[0112] In short, the present invention provides an authorization mechanism for parallelizing and distributing PoW computation in a manner that is efficient and does not require trust between participating parties. The control criteria can be checked separately from, and possibly in parallel with, the PoW computation. In other words, when a request is received from a PoW requester, the PoW provider can start working on the PoW computation at substantially the same time that the PoW provider starts checking the received data against the control criteria. If the received data fails to meet the control criteria, the PoW provider can stop working on the PoW computation, or allow it to continue if it does. This has advantages under the assumption that the request is legitimate and authorized, and the PoW can be returned to the requester / designated destination as quickly as possible. This can provide advantages when there are strict time constraints, since blockchain mining involves a race to submit the first valid block to the network.
[0113] In the usage example: 13 and 14, we will now describe how the present disclosure may be put into practice in accordance with an illustrative embodiment. From the perspective of the PoW requester in Figure 13: Step S1300: The PoW requester 1300 selects an unconfirmed transaction (TX) from its mempool and generates a coinbase transaction (if the relevant protocol requires or allows it). In other cases, it may receive a set of transactions from another source that provides transactions to the PoW requester. The PoW requester also generates at least one transaction TX configured to meet authorization requirements specified by the PoW provider or an associated entity that authorizes and / or directs the activities of the PoW provider. 0 In our illustrative example, the requirement is to generate or obtain TX 0 includes at least one output that transfers assets to at least one specified address. Step S1320: The PoW requester (or an associated resource) pairwise hashes all transactions to generate a Merkle tree for the set of transactions. The Merkle tree has a root R. Step S1330: In some embodiments, the PoW requester may generate a block message BM (template) by concatenating the root R with other information required for generating the block header, such as a version number, a previous block hash, a difficulty target, and / or a timestamp. In another embodiment, at least one, some, or all of these values may be obtained, derived, or generated by the PoW provider instead of being provided by the PoW requester. Step 1340: The PoW requester sends the root R to the PoW provider (potentially as part of a block message BM). The validator also adds the TX to the block of transactions represented by the tree whose root is R. 0The Merkle proof is a proof that the PoW can use to prove that the token contains the token. 0 It contains the part of the tree that, when hashed together with the pair, allows the prover to trace back to the root. In this way, the PoW requester has a root R, an authorization transaction TX 0 , and T.X. 0 A PoW requester only needs to send a minimal set of transactions that can be used to generate a path from R to R to the PoW provider. The PoW provider can perform an SPV-style validation to check that the PoW requester meets the authorization criteria (Figure 15).
[0114] From the perspective of the PoW provider in Figure 14: Step S1400: The PoW provider 1000 receives a Merkle root for a set of transactions from the PoW requester. These transactions form the body of the block for which the PoW should generate PoW on behalf of the PoW requester. As explained above, the set of transactions is stored in the mempool, at least one authorized transaction TX 0 , and one or more transactions selected from the coinbase transaction, if relevant. The Merkle root R may be received from the PoW requester as part of a complete or incomplete block message. The PoW provider may also receive at least one transaction TX configured to satisfy at least one authorization requirement. 0 , and T.X. 0 Receive a portion of the set of transactions that serves as a Merkle proof to verify that is included in the set. Step S1410: The PoW provider performs SPV-style local validation using Merkle proofs. 0 is in the set to check that the PoW requester meets the authorization requirements. Step S1420: If the validation fails, the PoW is not authorized to continue the PoW calculation. This ends the process by instructing the PoW calculator not to start work on finding a valid nonce, or to stop if it has already started doing so. No block header is sent to the PoW requester. However, a warning, signal, or message may be sent to the PoW requester or another destination indicating that authorization for PoW generation has failed.
[0115] Alternatively, if the validation is successful, then they are authorized to continue with PoW generation. Step S1430: To generate PoW, the computer (1100a, 1100b or 1100c) selects or receives a nonce. This may be randomly generated or may be selected from a range of permitted nonces specified to the computer by the controller 1200. Step S1440: The computer concatenates the block message and the selected nonce. Note that if the PoW requester has not provided a complete block message, as described above, the PoW provider may retrieve, obtain, or generate any additional data required to generate the block header according to the relevant blockchain protocol. The concatenation of the block message and the nonce provides the block header BH. · Step S1450: The block header BH is then double hashed. Step S1460: The result of step S1450 is then compared against the difficulty target set by the protocol. If the block does not provide the prerequisite number of leading zeros, it cannot be added to the ledger, so another nonce is selected and the process returns to step S1430. Step S1470: However, if the selected nonce produces the required number of zeros, the block is validly mined and the block header, including the valid nonce, is sent to the PoW requestor or another specified destination.
[0116] Although not shown, the PoW requester or another entity can then submit the block to the network for inclusion on-chain. Importantly, because the generation of PoW is outsourced to experts, PoW providers, the PoW requester can handle, delegate or collaborate on other tasks, such as validation work, in parallel with the PoW calculation. This provides technical improvements in transaction processing speed and resource efficiency.
[0117] advantage: Aspects of the present disclosure provide numerous advantages, including but not limited to the following: 1. The effort and cost of computing PoW may be delegated and outsourced by PoW requesters to any PoW providing service of their choice. 2. These may even be providers with whom the validator has no existing relationship. Instead, the relationship between the PoW requester and the PoW provider is governed by meeting at least one pre-specified criterion that serves as a pre-authorization to perform PoW work. In some implementations, the PoW requester sends a Merkle proof that the PoW provider can use to ensure that the necessary criteria have been met before starting the PoW computation work. 3. This allows an additional layer of pre-authorization to be built into the PoW process, since both the PoW requester and the PoW provider can prove that a candidate block contains transactions that meet pre-specified or agreed-upon conditions. If the block is successfully mined and the transaction is included in the blockchain, the transaction and its transfer of assets are immutably recorded. If the authorization criteria require the transfer to a specified address, the PoW provider can be assured that the desired transfer will occur if the block is written to the ledger. 4. Thus, meeting the pre-specified criteria is provably embedded in the data to be processed by the PoW provider, which is not transmitted separately from the PoW requester to the PoW provider, providing a more efficient solution compared to approaches involving separate communications. 5. As the solution allows for the distribution of mining and validation tasks, the transaction processing function is separated from the processing of block headers. Thus, the hash machine / ASIC components can be located in one or several locations, while transaction processing can be performed in other locations. The locations for different functions can be selected according to different needs, such as energy resources or network infrastructure. For example, PoW providers can be located in isolated locations that allow the use of renewable energy sources even with limited access to the Internet, since they only need to return small (80 byte) block headers to PoW requesters. Block headers can be transmitted using low bandwidth cellular. On the other hand, transaction processing can be performed in locations with good access to the Internet, such as major cities. At the same time, this allows for a more versatile and efficient distribution of tasks, including the use of sustainable, environmentally friendly energy sources. 6. TX 0 Additional security may be provided in that the PoW is compared against a control standard to ensure that only requests from legitimate requesters are processed. This can avoid exploitation by unauthorized parties, malicious parties such as attackers, and / or providing PoW work to parties potentially associated with undesirable or illegal activity, and thus participating in criminal activity. 7. TX 0 This improves authorization and control techniques for blockchain mining, as requesters can identify themselves in a variety of ways via control data provided via .
[0118] Exemplary Systems of Possible Embodiments Figures 7 and 9 illustrate an example system 700 for implementing at least some of the described embodiments. Figure 8 illustrates a flow chart of example steps that may be taken in (a high-level view of) the method of the present disclosure.
[0119] System 700 may be a closed system in the sense that it may be associated with an organization and form part of a larger proprietary system. In such a case, its data, e.g., transactions, may be received from other components within the organization's wider system and the results and outputs may be sent to internal destinations. Additionally or alternatively, system 700 may be configured to interface with various entities, some or all of which may be located outside the organization. In such a case, system 700 may be configured to provide validation functionality as a service. For example, system 700 may be configured to interact with a blockchain network to obtain data it needs. Additionally or alternatively, system 700 may also interact with entities wishing to use its validation services. Thus, the activities of system 700 may be solely internal with respect to a particular organization or entity, or may be open to interaction with external entities to provide validation services to other parties, or a combination of the two. Communications between other internal or external entities may be coordinated by one or more interfaces or communication components, shown as 902 in FIG. 9.
[0120] As shown in Fig. 7 and Fig. 9, the system 700 includes a control entity 702 (or simply "controller") and a number of validation resources 704, also referred to herein simply as "validators". Although only four validators 701a-d are shown in Fig. 7, in general the system 700 may include any number of validators. Furthermore, although the controller 702 is shown in Fig. 7 and Fig. 9 as separate from the validators 704, it is not excluded that the controller 702 may include or be configured by one of the validators 704. As explained above, each validator may include one or more processing resources and include its own controller for coordinating its own internal activities. There are no technical or logical limitations to the hierarchical levels that may be implemented in this manner. However, Fig. 7 shows only one (top) level of such a hierarchy, for simplicity and ease of understanding.
[0121] As shown in FIG. 7, the controller 702 obtains a set of transactions. The transactions may be received across electronic channels or networks from a sending resource. The sender may be any entity, internal or external to the organization of the system, that desires to perform some kind of validation check, as described above. For example, this may be a full node on the blockchain network, such as node 104 in FIG. 1, or a digital wallet, or a merchant / SPV node that desires to perform local checks related to blockchain-implemented transfers made between parties. The interface 902 may facilitate the transmission of data between the system 700 and sources external to the system.
[0122] The transactions form or may form a block of transactions. The transactions may be obtained from a single resource (e.g., from a block of the blockchain) or from different resources (e.g., from one or more users, one or more blockchain nodes, etc.). The transactions may be obtained prior to their publication on the blockchain, i.e., before they are recorded in a block. Alternatively, the transactions may be obtained after they are recorded in the blockchain.
[0123] The controller 702 assigns a respective subset of the transactions to each validator 704 as described herein. Each subset of the transactions forms at least a portion of a respective portion of a Merkle tree generated based on the full set of transactions and is linked by a respective common internal node of the Merkle tree. In the example of FIG. 7, subset A of the transactions is assigned to validator A, subset B of the transactions is assigned to validator B, subset C of the transactions is assigned to validator C, and subset D of the transactions is assigned to validator D. Once the subsets of transactions are assigned, the validators 704 process their respective subsets. In some embodiments, this involves each validator 704 validating its respective subset of the transactions. To do this, the controller 702 may transmit the relevant transactions to each validator 704. The validators 704 may send a communication back to the controller 704 to indicate that each of their respective subsets of transactions is valid or that at least one transaction is not valid.
[0124] At least one, but preferably some or all, of the validators 704a-704d has access to its own UTXO pool, shown in Figure 9 as 901a-901d. This pool may include a storage facility such as a database as described above, and potentially an advantageous indexing structure may include a concatenation of a block ID and a transaction ID. While the pools are shown in Figure 9 as being contained within each validator, those skilled in the art will readily appreciate that they may also / alternatively be provided external to the validators but in communication with them.
[0125] In one or more embodiments, the disclosed process may include a block-level validation phase, in which incoming new blocks are checked against block-level criteria. Exemplary block-level criteria are described above and generally relate to characteristics or restrictions applicable to the block itself, as opposed to prescribed format requirements and transactions within the block. Examples include block size, block header structure or contents, and similar criteria. Such operations may be performed by the controller, or a component of the controller, or another system component.
[0126] In some embodiments, the method may further include a UTXO uniqueness module operable to evaluate whether each of the inputs to the transaction in the new block, i.e., each UTXO, is unique. If the same UTXO appears multiple times as an input in the new block, it indicates a potential double-spend problem, violating the UTXO uniqueness criteria. If the UTXO uniqueness module identifies a UTXO that is referenced multiple times among transaction inputs in the new block, it may output an error signal or other interrupt indicating that the block should be rejected.
[0127] Assuming that the new block is not rejected, i.e., all UTXO entries are unique, a Merkle tree segment may then be identified and its associated transactions allocated among a set of validators. The identification process may be performed by a component shown in FIG. 9, such as a segment identification unit 903. The allocation process may be performed by a segment allocation unit, shown in FIG. 9 as 904. The allocation unit 904 may employ any one of a number of possible allocation schemes to distribute block segments among the individual validators, but in an advantageous approach, the allocation scheme may be for the purpose of load balancing, as described above. The allocation unit 904 may include (or be in communication with) a load balancing unit 905. Although this is shown in FIG. 9 as a separate and associated component of the system, in other embodiments, the load balancing unit may be part of the allocation unit 904 or may be separate with respect to the controller 702. Any combination of components may be readily employed.
[0128] Individual validators validate transactions associated with the segments they receive against transaction-level validation criteria. No synchronization paradigm between validators is required as validators work independently to verify that their assigned transactions are valid. Each validator outputs a result validating its assigned transactions. These results are added or accumulated to ensure that all transactions in the segment are valid. If one of these validators identifies a non-compliant, i.e., invalid, transaction, the validator may issue an output, such as an interrupt or other signal, to indicate that there is an invalid transaction. The interrupt or signal may be sent to other validators or to a controller or another system component to immediately stop checking their respective transactions and not waste further resources validating transactions in the block to be rejected.
[0129] In some examples, the system may be configured to check block-level criteria. This may be performed prior to assigning segments to validators, although it will be understood that the block-level validation stage may occur after, or in some cases in parallel with, transaction-level validation checks by the validators.
[0130] Reference is now made to Figure 8, which illustrates in flow chart form an example of a method for validating a block. A block contains multiple transactions, each transaction referencing one or more inputs, each input being a UXTO (except in the case of coinbase generation transactions). The method is implemented using suitable hardware and processor executable instructions within a node on a blockchain network.
[0131] In operation, the distributed validation node 700 receives new block data in step S801. This may be an entire block, or in the case of SPV-related validation, may include only the partial data necessary to perform the SPV check. We refer to this data as a "block" for convenience. The new block to be validated may be received from a mining node on the blockchain network that has generated the new block and completed the proof of work, or from a merchant node that wishes to perform the (SPV) check, or from a wallet, such as an SPV wallet. The new block may be received from another (non-mining) node in the network. In some examples, the distributed validation node 700 validates the block before forwarding it to any other nodes in the network. As described above, validating the new block may include verifying that the block meets certain protocol-based criteria and / or other criteria that may be specified and required within a given implementation.
[0132] In step S802, the system 700 identifies chunks of the Merkle tree of a block. In S803, the segments are distributed to multiple validators, which process respective subsets of the transactions substantially in parallel and independently of each other in S804. In S805, the validators signal to the controller whether the validation was successful or unsuccessful.
[0133] It should be noted that the term "processor" when used in connection with the description of parallel processors herein does not necessarily mean physically distinct microprocessors, but may include any hardware or software implementation that allows for parallel processing resources that can perform processor functions independently and in parallel. A parallel processor may include one processor with multiple cores. In some cases, a parallel processor may comprise multiple separate processing units. Parallel processors may or may not share physical memory. Each parallel processor, however implemented, has a software or hardware mechanism for signaling, such as outputting a signal in response to identifying an invalid transaction. A parallel processor implementation also includes providing the necessary data transfer mechanisms in software and / or hardware that route assigned transaction data to the respective processor for local processing.
[0134] Enumerated clauses Embodiments of the present disclosure are presented by way of example, and not by way of limitation, in the following enumerated clauses.
[0135] Features mentioned below with respect to one set of enumerated clauses or aspects of the disclosure are not intended to be limiting in such respect, and any feature mentioned with respect to one set of clauses may be incorporated in one or more of the other sets of clauses.
[0136] Clause Set 1: Clause 1.1: A computer-implemented method of processing (e.g., validating) at least a portion of a blockchain block that includes a plurality of blockchain transactions and the root of a Merkle tree for the block. This method Allocating respective subsets of the blockchain transactions to a plurality of processes (e.g., validation resources), each respective subset providing a respective portion of a Merkle tree and represented by a respective interior node of the Merkle tree; and / or Using multiple processing (e.g., validation) resources to process (e.g., validate) respective subsets of the blockchain transactions. may include.
[0137] Additionally or alternatively, the method may further comprise: The method may include transmitting or receiving at least a portion of a blockchain block including a plurality of blockchain transactions and a root of a Merkle tree for the block. The portion of the blockchain block may be transmitted from the transmitting resource to the receiving resource. This may be transmitted over a network such as the Internet. The method may include processing the portion of the blockchain block at the receiving resource. The receiving resource may be referred to as a processing resource or a validation resource. The portion of the blockchain block may be transmitted using an IPv6 multicast transmission. At least one, some, or all of the plurality of processing resources may be members of an IPv6 multicast group. The transmitting resource may comprise a network device. The network device may be operable to transmit IPv6 multicast communications to a multicast address. MLD snooping may be enabled in the network device. This provides efficiency with respect to traffic on the network since the transmitting resource can selectively transmit the portion of the blockchain block to a particular receiving resource (e.g., a resource within the plurality of processing resources). Network traffic is reduced by transmitting data packets to all resources on the network, including those that do not need or want to receive the data, and energy and processing resources are not wasted. This also improves security as it avoids possible Denial of Service (DOS) attacks, and also promotes scalability of blockchain networks by increasing the speed at which transactions can be processed due to lower levels of network congestion.
[0138] The term "validator" may be used interchangeably with the term "validation resource." For convenience, "validator / validation" may be used in place of "processor / processing" herein. A plurality of validation resources may form a distributed validation node. At least one of the plurality of validation resources may include one or more processing resources. Additionally or alternatively, one or more of the plurality of validation resources may include a validator controller component substantially as described herein. At least one or some of the validation resources in a distributed validation node may share, i.e., subscribe to, a common IPv6 multicast address.
[0139] Each internal node may be a segment root. In other words, an "internal node" is a node of the Merkle tree that is neither the root node nor a leaf node of the entire tree. Transactions in each subset may share a common internal node.
[0140] In alternative representations, each subset may include at least two transactions associated with a common node in the Merkle tree such that the subset provides and / or is represented by a (sub)portion of the Merkle tree. The common (internal) node may be a segment node or root, substantially as described herein. A portion of a Merkle tree may be a "segment," substantially as described herein.
[0141] Clause 1.2. The method of clause 1.1, wherein validating a subset of blockchain blocks and / or blockchain transactions comprises: i) validating and / or verifying at least one blockchain transaction; and / or ii) implementing a Simplified Payment Verification (SPV) process; and / or iii) checking whether a given blockchain transaction (Tx) is contained within a blockchain block; and / or iii) generating at least one hash of the blockchain transaction, constructing a Merkle path using the hash, and / or checking whether the hash matches a transaction identifier (TxID) in the header of the blockchain block; A method comprising:
[0142] Clause 1.3. A method according to clause 1.1 or 1.2, comprising: The method, wherein at least one of the subsets of blockchain transactions includes an identifier associated with the subset that identifies and / or represents the subset.
[0143] Clause 1.4. The method according to clause 1.3, comprising: The method, wherein the identifier facilitates computation of a position of at least one subset within a Merkle tree.
[0144] Clause 1.5. The method according to clause 1.3 or 1.4, comprising: The method, wherein the identifier comprises a portion of a hash of a blockchain transaction in at least a subset of the blockchain transactions.
[0145] Clause 1.6. The method according to any one of clauses 1.1 to 1.5, comprising: 1. A method according to claim 1, wherein the step of assigning respective subsets of blockchain transactions to a plurality of validation resources comprises matching each subset with a respective validation resource based on a respective identifier associated with the subset of transactions.
[0146] Clause 1.7. The method according to any one of clauses 1.1 to 1.6, comprising: i) downloading at least a subset of the blockchain transactions to at least one of a plurality of validation resources; and / or ii) sending at least a subset of the blockchain transactions to at least one of a plurality of validation resources.
[0147] Clause 1.8. The method according to any one of clauses 1.1 to 1.7, comprising: A Merkle tree comprises a binary tree or mesh of hashes of multiple blockchain transactions.
[0148] Clause 1.9. The method according to any one of clauses 1.1 to 1.8, comprising: The method further includes identifying and / or determining a subset of blockchain transactions within the plurality of blockchain transactions.
[0149] Clause 1.10. The method according to any one of clauses 1.1 to 1.9, comprising: At least one of the multiple validation resources is The method is or comprises one or more of a virtual machine, a server, a GPU-based computing resource, a processing thread, and / or a multi-processor system.
[0150] Clause 1.11. The method according to any one of clauses 1.1 to 1.10, comprising: i) at least two transactions are siblings in the Merkle tree, and / or ii) A common node is a parent or ancestor of at least two transactions.
[0151] Clause 1.12. A blockchain validation system operable to validate at least a portion of a blockchain block including a plurality of blockchain transactions and a root of a Merkle tree for that block, comprising: The system includes a plurality of validation resources, the plurality of validation resources including: A processor; and a memory containing executable instructions that, when executed by a processor, cause the system to perform the computer-implemented method described in any one of clauses 1.1 to 1.11.
[0152] Clause 1.13. A non-transitory computer-readable storage medium having stored thereon executable instructions which, when executed by a processor of a computer system, cause the computer system to perform the computer-implemented method recited in any one of clauses 1.1 to 1.11.
[0153] According to another aspect of the present disclosure, there is provided a computer-implemented system configured to perform any method step or combination of method steps described or claimed herein.
[0154] Also provided is a blockchain system (network) including a plurality of computer-implemented nodes, each node in the blockchain network being: A processor; and a memory containing executable instructions that, upon execution by the processor, cause the system to perform any variation of the computer-implemented methods claimed or described herein. The network may be configured to operate using a blockchain protocol as described herein.
[0155] Additionally or alternatively, the present disclosure may include a computer-implemented method for downloading at least a portion of a blockchain block. The block may include a plurality of blockchain transactions and the root of a Merkle tree for the block. The method may include the steps set forth in one or more of the following clauses:
[0156] Clause Set 2: Clause 2.1. A computer-implemented method for receiving, e.g., downloading, at least a portion of a blockchain block including a plurality of blockchain transactions and a root of a Merkle tree for the block, comprising: Allocating respective subsets of the blockchain transactions to a plurality of processing resources, each respective subset providing a respective portion of a Merkle tree and represented by a respective interior node of the Merkle tree; A computer-implemented method that includes receiving, e.g., downloading, a respective subset of the blockchain transactions using one, some, or all of a plurality of processing resources.
[0157] According to one or more embodiments, one, some, or all of the processing resources may receive a respective subset of the blockchain transactions from the providing (transmitting) resource. This may be transmitted over a network such as the Internet. The respective subset of the blockchain transactions may be transmitted using IPv6 multicast transmission. At least one, some, or all of the plurality of processing resources may be members of an IPv6 multicast group. The transmitting resource may comprise a network device. The network device may be operable to transmit IPv6 multicast communications to a multicast address. MLD snooping may be enabled in the network device. This provides efficiency with respect to traffic on the network since the transmitting resource may selectively transmit a subset of the blockchain transactions to a particular receiving resource (e.g., a resource within the plurality of processing resources). By transmitting data packets to all resources on the network, including those that do not need or want to receive the data, network traffic is reduced and energy and processing resources are not wasted. This also improves security as it avoids the possibility of denial of service (DOS) attacks, and also promotes scalability of the blockchain network by speeding up transaction processing due to lower levels of network congestion.
[0158] Each respective subset may be represented by a respective internal node in the sense that each respective internal node may encode the respective subset. That is, each internal node may be generated based on (i.e., as a function of) the respective subset. Each transaction in each respective subset is linked to the respective internal node by one or more hash operations.
[0159] Clause 2.2. The method according to clause 2.1, comprising: A method comprising one, some, or all of a plurality of processing resources transmitting respective subsets of the blockchain transactions to a central storage location.
[0160] Clause 2.3. The method according to clause 2.2, comprising: Each internal node of the Merkle tree has a respective position in the Merkle tree, and the method composing each subset of blockchain transactions based on a respective position of a respective interior node of a Merkle tree.
[0161] Clause 2.4. The method according to any one of clauses 2.1 to 2.3, comprising: one, some, or all of the processing resources generating respective candidate internal nodes of the Merkle tree based on the respective downloaded subsets of the blockchain transactions; Verifying that each candidate internal node matches a respective internal node in the Merkle tree; and / or Verifying that each candidate internal node is a node of the Merkle tree by performing a Merkle proof based on the root of the Merkle tree; and / or The method further comprising at least one of transmitting each candidate internal node of the Merkle tree to one or more other processing resources.
[0162] Clause 2.5. The method according to any one of clauses 2.1 to 2.4, comprising: A method comprising validating a respective subset of blockchain transactions using one, some, or all of a plurality of processing resources.
[0163] Clause 2.6. The method according to clause 2.1, comprising: Validating each subset of blockchain transactions i) validating and / or verifying at least one blockchain transaction; and / or ii) implementing the Simplified Payment Verification process; and / or iii) verifying whether a given blockchain transaction is contained within a blockchain block; and / or iii) generating at least one hash of a blockchain transaction, constructing a Merkle path using the hash, and / or checking whether the hash matches a transaction identifier in a header of the blockchain block.
[0164] Clause 2.7. The method according to any one of clauses 2.1 to 2.6, comprising: The method, wherein at least one of the respective subsets of blockchain transactions includes a respective identifier associated with, identifying, and / or representing the respective subset.
[0165] Clause 2.8. A method according to clause 2.7, comprising: The method, wherein each identifier facilitates computation of a respective position of at least one respective subset within the Merkle tree.
[0166] Clause 2.9. The method according to clause 2.7 or 2.8, comprising: The method, wherein each identifier is based on a respective interior node of the Merkle tree.
[0167] Clause 2.10. The method according to clause 2.9, comprising: Each identifier comprises a portion of a respective interior node of the Merkle tree.
[0168] Clause 2.11. The method according to any one of clauses 2.1 to 2.10, comprising: 1. A method according to claim 1, wherein the step of allocating respective subsets of blockchain transactions to a plurality of respective processing resources includes matching the respective subsets of transactions to the respective processing resources based on respective identifiers associated with the respective subsets of transactions.
[0169] Clause 2.12. The method according to any one of clauses 2.1 to 2.11, comprising: The Merkle tree comprises a binary tree or mesh structure of hashes of multiple blockchain transactions.
[0170] Clause 2.13. The method according to any one of clauses 2.1 to 2.12, comprising: 1. A method comprising identifying and / or determining a subset of blockchain transactions within a plurality of blockchain transactions.
[0171] Clause 2.14. The method according to any one of clauses 2.1 to 2.13, comprising: The method, wherein at least one of the plurality of processing resources is or includes a virtual machine, a server, a GPU-based computing resource, or a multi-processor system.
[0172] Clause 2.15. A blockchain processing system operable to download at least a portion of a blockchain block comprising a plurality of blockchain transactions and a root of a Merkle tree for the block, the system comprising a plurality of processing resources, the plurality of processing resources comprising: A processor; and a memory containing executable instructions that, when executed by a processor, cause or enable the system to perform the computer-implemented method of any one of clauses 2.1 to 2.14.
[0173] Clause 2.16. A non-transitory computer-readable storage medium having stored thereon executable instructions that, when executed by a processor of a computer system, cause or enable a computer system to perform the computer-implemented method of any one of clauses 2.1 to 2.14.
[0174] According to another aspect, there is provided a non-transitory computer-readable storage medium having stored thereon executable instructions which, when executed by a processor of a computer system, cause the computer system to perform any version of the computer-implemented methods claimed or described herein.
[0175] Clause Set 3: Clause 3.1. A computer-implemented method comprising: generating, storing, and / or maintaining a first output repository for recording, searching, and / or processing a plurality of unspent transaction outputs (e.g., UTXOs), each associated with a transaction (Tx) in a plurality of blockchain transactions (TX) of a blockchain block; A computer-implemented method, in which the plurality of blockchain transactions provide and / or are represented by a portion of a Merkle tree for a blockchain block.
[0176] Clause 3.2. The method according to clause 3.1, comprising: The method includes generating, storing and / or maintaining at least one further output repository.
[0177] Clause 3.3. A method according to clause 3.1 or 3.2, comprising: The method further includes generating and / or maintaining a database log containing a history of actions, changes, and events related to the output repository.
[0178] Clause 3.4. The method according to any one of clauses 3.1 to 3.3, comprising: The first and / or further output repository may be i) Unspent Transaction Outputs, and / or ii) the method includes at least one record associated with a) an unspent transaction output and / or b) one associated with a transaction (Tx) in a plurality of blockchain transactions.
[0179] Clause 3.5. The method according to clause 3.4, comprising: At least one record is i) the block identifier (block_ID) associated with the blockchain block, and / or ii) a record identifier having a transaction identifier (TxID) associated with a transaction (Tx) in a plurality of blockchain transactions.
[0180] Clause 3.6. The method according to clause 3.5, comprising: i) the record identifier comprises a function of a block identifier (block_ID) and a transaction identifier (TxID); and / or ii) there is a concatenation of a block identifier (block_ID) and a transaction identifier (TxID), and / or iii) the transactions of the multiple blockchain transactions are associated with unspent transaction outputs.
[0181] Clause 3.7. The method according to clause 3.5 or 3.6, comprising: The method further comprising using the record identifier to search for, identify, access, or insert at least one record in an output repository.
[0182] Clause 3.8. The method according to any one of clauses 3.1 to 3.7, comprising: At least one unspent transaction output (UTXO) of the plurality of unspent transaction outputs is stored in an output repository. i) indicating whether unspent transaction outputs are available or unavailable for consumption; and / or ii) associated with a lock flag that is configurable between a first state indicating consumption of unconsumed transaction outputs is permitted and a second state indicating consumption of unconsumed transaction outputs is prohibited.
[0183] Clause 3.9. The method according to clause 3.8, comprising: i) associating unspent transaction outputs with a lock flag; and / or ii) changing the state of the lock flag from a first state to a second state or from the second state to the first state.
[0184] Clause 3.10. A method according to clause 3.8 or 3.9, comprising: 11. A method comprising: sending a communication from a first processing resource to at least one further processing resource to cause the at least one further processing resource to change a state of a lock flag associated with an unconsumed transaction output from a first state to a second state or from the second state to the first state.
[0185] Clause 3.11. The method according to clause 3.10, wherein the content of the communication is i) the transaction (TX), a transaction identifier (TxID), and / or a hash of the transaction (Tx); ii) a list of one or more unspent transaction outputs.
[0186] Clause 3.12. A method according to clause 3.10 or 3.11, comprising: receiving the communication at at least one further processing resource; changing a state of the lock flag from a first state to a second state or from the second state to the first state.
[0187] Clause 3.13. The method according to any one of clauses 3.1 to 3.12, comprising: i) a portion of a Merkle tree is a sub-portion or segment of a Merkle tree for a blockchain block; and / or ii) the multiple blockchain transactions are represented by interior nodes of the Merkle tree.
[0188] Clause 3.14. A blockchain-implemented system including a plurality of processing resources, the plurality of processing resources being: A processor; and a memory including executable instructions that, upon execution by a processor, cause or enable the system to perform the computer-implemented method of any one of clauses 3.1 to 3.13.
[0189] Clause 3.15. A non-transitory computer-readable storage medium having stored thereon executable instructions that, when executed by a processor of a computer system, cause or enable a computer system to perform the computer-implemented method of any one of clauses 3.1 to 3.13.
[0190] Clause Set 4 Any embodiment defined by any clause or combination of clauses in clause set 4 may be configured to implement or combine any clause in clause sets 1 to 3.
[0191] Clause 4.1. A system operable to validate at least a portion of a blockchain block that includes a plurality of blockchain transactions and the root of a Merkle tree for that block, comprising: A plurality of processing (e.g., validation) resources, At least one processor associated with at least a portion of the memory storing executable instructions, the executable instructions causing, as a result of execution by the at least one processor, a validation resource to be causing or enabling processing (e.g., validating) at least a subset of the plurality of blockchain transactions, the at least one subset providing a portion of a Merkle tree and represented by an interior node of the Merkle tree; At least one processor a plurality of validation resources each comprising: A system comprising:
[0192] Clause 4.2. The system of clause 4.1, comprising: i) a load balancing component configured to facilitate load balancing of distribution of a plurality of subsets of a plurality of blockchain transactions among a plurality of validation resources; and / or ii) a segment identification component configured to facilitate identification of at least a subset of the plurality of blockchain transactions; and / or iii) Allocation Units; and / or iv) One or more interfaces for sending or receiving communications between the system and one or more data sources or destinations. The system further comprises:
[0193] Clause 4.3. A system as described in clause 4.1 or 4.2, comprising: The system includes at least one controller component, the controller component comprising: At least one validation resource, at least one processor of at least one validation resource; One or more interfaces, One or more load balancing components, and / or One or more segment identification components configured to facilitate identification of at least a subset of the plurality of blockchain transactions. 5. The system of claim 1 , wherein the system is configured to affect and / or control the operation of at least one of the following:
[0194] Clause 4.4. A system according to any one of clauses 4.1 to 4.3, comprising: i) at least two of the multiple blockchain transactions are siblings in the Merkle tree; and / or ii) An internal node is a parent or ancestor of a subset of blockchain transactions in the system.
[0195] Clause 4.5. A system according to any one of clauses 4.1 to 4.4, comprising: further comprising a plurality of output repositories, each repository of the plurality of repositories associated with a respective validation resource and configured to facilitate recording, retrieval, and / or processing of a plurality of unspent transaction outputs (e.g., UTXOs); Preferably, each of the plurality of unspent transaction outputs is associated with at least one transaction (Tx) within the plurality of blockchain transactions.
[0196] Clause 4.6. The system of clause 4.5, comprising: The system is operable to create and / or maintain a database log containing a history of actions, changes, and events relating to at least one of a plurality of output repositories.
[0197] Clause 4.7. A system according to any one of clauses 4.1 to 4.6, comprising: At least one of the multiple output repositories is i) Unspent Transaction Outputs, and / or ii) The system includes at least one record associated with a) an unspent transaction output and / or b) an identifier associated with a transaction (Tx) in a plurality of blockchain transactions.
[0198] Clause 4.8. A system as described in clause 4.7, comprising: At least one record is i) the block identifier (block_ID) associated with the blockchain block, and / or ii) A system including a record identifier having a transaction identifier (TxID) associated with a transaction (Tx) in a plurality of blockchain transactions.
[0199] Clause 4.9. The system of clause 4.7 or 4.8, wherein the record identifier is: i) a function of the block identifier (block_ID) and the transaction identifier (TxID), and / or ii) A system including a concatenation of a block identifier (block_ID) and a transaction identifier (TxID).
[0200] Clause 4.10. A system as described in clause 4.8 or 4.9, comprising: The system is operable to use the record identifier to search for, identify, access, or insert at least one record in at least one output repository in a plurality of output repositories.
[0201] Clause 4.11. A system according to any one of clauses 4.5 to 4.10, comprising: At least one unspent transaction output (UTXO) of multiple transaction outputs (UTXOs) is i) indicating whether unspent transaction outputs (UTXOs) are available or unavailable for spending; and / or ii) associated with a lock flag that is configurable between a first state indicating consumption of unconsumed transaction outputs is permitted and a second state indicating consumption of unconsumed transaction outputs is prohibited.
[0202] Clause 4.12. The system of clause 4.11, comprising: The system is operable to change a state of the lock flag from a first state to a second state or from the second state to the first state.
[0203] Clause 4.13. A system as described in clauses 4.1 to 4.12, comprising: i) allocating each subset of blockchain transactions to a number of validation resources; ii) downloading and / or receiving respective subsets of the blockchain transactions using one, some, or all of the multiple validation resources; The system is operable to:
[0204] Clause 4.14. A system according to any one of clauses 4.1 to 4.13, comprising: operative to generate respective candidate internal nodes of the Merkle tree based on the respective downloaded subsets of the blockchain transactions using one, some, or all of the validation resources; and Verifying that each candidate internal node matches a respective internal node in the Merkle tree; and / or Verifying that each candidate internal node is a node of the Merkle tree by performing a Merkle proof based on the root of the Merkle tree; and / or transmitting each candidate internal node of the Merkle tree to one or more other processing resources.
[0205] Clause 4.15. A system as described in clauses 4.1 to 4.14, comprising: i) validating and / or verifying at least one blockchain transaction; and / or ii) implementing the Simplified Payment Verification process; and / or iii) verifying whether a given blockchain transaction is contained within a blockchain block; and / or iii) generating at least one hash of the blockchain transaction, constructing a Merkle path using the hash, and / or checking whether the hash matches a transaction identifier in the header of the blockchain block; The system is operable to:
[0206] Clause 4.16. A system according to any one of clauses 4.1 to 4.15, comprising: The system, wherein at least one of the plurality of validation resources is or includes at least one of a virtual machine, a server, a GPU-based computing resource, a thread, and / or a multiprocessor system.
[0207] Clause Set 5: Embodiments of the present claimed disclosure may be presented in the following enumerated clauses: Any feature provided in the following set of clauses may be combined with one or more of the features in any one or more of the preceding enumerated sets of clauses.
[0208] The present disclosure may provide methods and systems for distributed and / or parallel processing of data records. Such methods / systems may be provided for mining blockchain transactions in blockchain blocks and / or for generating Proof of Work (PoW) or Proof of Stake (PoS) for blockchain blocks. Advantageously, embodiments may enable separation of PoW or Proof of Stake computations from other blockchain mining / validation tasks. Here, we refer to Proof of Work simply for convenience, but this should not be construed as excluding Proof of Stake. The present disclosure may be described as providing authorization and / or control mechanisms for improved blockchain mining techniques and / or improved PoW generation techniques. It may also be described as improved security techniques.
[0209] Preferably, the PoW requester (first party / entity) provides an expert PoW provider (second party / entity) with i) a Merkle root for a Merkle tree representing a set of transactions, ii) a control transaction (TX 0 ), and iii) TX 0 TX may send one or more of the Merkle proofs that confirm that TX is included in the set of transactions. 0 may provide or include control data that the PoW provider can use to determine whether a PoW calculation is to be performed or is complete.
[0210] A preferred embodiment can be described as follows. Clause 5.1. A computer-implemented method comprising: Sending a request from a first resource to a second resource to generate a proof of work (PoW) for a blockchain block containing a plurality of transactions, the request being a control transaction (TX 0) is included in the plurality of transactions, and / or receiving a request from the first resource at a second resource to generate a proof of work (PoW) for a blockchain block containing the plurality of transactions, the request including a control transaction (TX 0 ) is included in multiple transactions, including Merkle proofs to verify that 4. A computer-implemented method comprising: The first resource may be a PoW requester and the second resource may be a PoW provider. The PoW may be any PoW specified by the blockchain protocol. A Merkle proof may contain enough data to prove that a given blockchain transaction is included in a particular set of transactions and conversely disprove its inclusion in the set of transactions. The set of transactions may be represented by a Merkle tree T with a Merkle root R.
[0211] Clause 5.2. The method according to clause 5.1, comprising: Control Transaction (TX 0 ) includes control data for controlling, authorizing and / or prohibiting the execution of the proof-of-work generation, preferably the control data includes: i) at least one output specifying a predetermined address for a destination of the blockchain transfer; Preferably, the address is associated with the second resource or with a party associated with or authorized by the second resource, output, and / or ii) at least one prescribed signature; and / or iii) including at least one secret value or secret portion of data.
[0212] Clause 5.3. A method according to clause 5.1 or 5.2, comprising: the first resource is a PoW request resource, a blockchain validation resource, or a blockchain mining resource; and / or The second resource is a proof-of-work provider, and / or The method, wherein the second resource includes at least one ASIC, or hash machine, or dedicated cryptocurrency mining resource.
[0213] Clause 5.4. The method according to any one of clauses 5.1 to 5.3, comprising: i) receiving a proof of work for a blockchain block at the first resource from the second resource; and / or ii) transmitting the proof of work for the blockchain block from the second resource to the first resource.
[0214] Clause 5.5. The method of any one of clauses 5.1 to 5.4, wherein the proof of work comprises: A value (nonce) configured to provide an output that meets one or more of the targets, rules, or criteria specified by the blockchain protocol; and / or The block header for the blockchain block, and / or The method includes a solution to a puzzle or challenge specified according to a blockchain protocol.
[0215] Clause 5.6. The method of any one of Clauses 5.1 to 5.5, wherein generating the proof of work comprises: i) generating or selecting a value (nonce) configured to provide an output that satisfies a target, challenge, rule, or criterion specified by the blockchain protocol; ii) concatenating the block message and the nonce for the blockchain block; and / or iii) double hashing a block header for the blockchain block.
[0216] Clause 5.7. The method according to any one of clauses 5.1 to 5.6, comprising: Control transactions (TX) with respect to predefined control criteria 0 ), and generating or not generating a proof of work based on the output of the processing or comparison; Preferably, the control criteria include at least one of thresholds, rules, or criteria for enabling initiation, execution or completion, or proof-of-work generation.
[0217] Clause 5.8. A method according to clause 5.7, comprising: Allowing or disallowing the generation of Proof of Work, i) Control Transaction (TX 0 ) in multiple transactions; and / or ii) a determination that a control transaction does or does not include a portion of data that satisfies a predetermined rule or criterion; and / or iii) acting upon a determination that the control transaction, or at least a portion thereof, satisfies the control criterion.
[0218] Clause 5.9. The method according to any one of clauses 5.1 to 5.8, comprising: determining, at the first or second resource, a portion of data required by the blockchain protocol for generation of a proof of work for a block, the portion of data being A protocol version identifier, Block hash, the proof-of-work difficulty target specified by the protocol, and / or The method further comprising one or more of the time stamps.
[0219] Clause 5.10. The method according to any one of clauses 5.1 to 5.9, comprising: i) the Merkle proof includes data configured to enable performance of an SPV verification to determine whether a control transaction is included in a plurality of transactions; ii) the request includes a control transaction.
[0220] Clause 5.11. The method according to any one of clauses 5.1 to 5.10, comprising: processing the plurality of transactions to form a Merkle tree; Preferably, the processing involves a hash function.
[0221] Clause 5.12. The method according to any one of clauses 5.1 to 5.11, comprising: Control Transaction (TX 0 ) includes an identifier that enables the second resource to identify the first resource, preferably the identifier being provided in an input, output, script, or metadata portion of the control transaction.
[0222] Clause 5.13. A system operable to control or influence the generation of a proof of work for a blockchain block containing a plurality of transactions and / or to implement the method described in any one of clauses 5.1 to 5.12.
[0223] Clause 5.14. The system of clause 5.13, comprising: At least one proof-of-work providing resource (1000), Preferably, the at least one proof-of-work providing resource includes at least one ASIC or hash machine (1100a to 1100c), at least one proof-of-work requesting resource (1000); At least one proof of work request resource (1300), A system, wherein the at least one proof-of-work request resource preferably comprises at least one of: at least one proof-of-work request resource (1300), including a distributed validation node (700) substantially as disclosed herein.
[0224] Clause 5.15. A non-transitory computer-readable storage medium having stored thereon executable instructions that, when executed by a processor of a computer system, cause or enable a computer system to perform the computer-implemented method of any one of clauses 5.1 to 5.13.
[0225] Exemplary Technical Environment for Implementing Exemplary Embodiments of the Present Disclosure We next provide an overview of a computing environment in which one or more embodiments of the present disclosure may be practiced. However, as noted above, this context is not intended to be limiting, and embodiments may be practiced for processing data records and structures that are not implemented via blockchain. Non-blockchain embodiments may be devised, for example, using databases instead of distributed ledgers.
[0226] FIG. 1 illustrates an exemplary system 100 for implementing a blockchain 150. The system 100 may comprise a packet-switched network 101, typically a wide-area internetwork such as the Internet. The packet-switched network 101 includes a number of blockchain nodes 104 that may be configured to form a peer-to-peer (P2P) network 106 within the packet-switched network 101. Although not illustrated, the blockchain nodes 104 may be configured as a near-complete graph. Thus, each blockchain node 104 is highly connected to the other blockchain nodes 104.
[0227] Each blockchain node 104 includes a peer computer device, with different ones of the nodes 104 belonging to different peers. Each blockchain node 104 includes a processing device including one or more processors, for example one or more central processing units (CPUs), accelerator processors, application specific processors and / or field programmable gate arrays (FPGAs), and other devices such as application specific integrated circuits (ASICs). Each node also includes a memory, i.e., a computer readable storage device in the form of a non-transitory computer readable medium. The memory may include one or more memory units employing one or more memory media, for example, a magnetic medium such as a hard disk, an electronic medium such as a solid state drive (SSD), a flash memory, or an EEPROM, and / or an optical medium such as an optical disk drive.
[0228] The blockchain 150 includes a chain of blocks 151 of data, with a respective copy of the blockchain 150 maintained at each of multiple blockchain nodes 104 in a distributed or blockchain network 106. As mentioned above, maintaining a copy of the blockchain 150 does not necessarily mean storing the blockchain 150 in its entirety. Instead, the blockchain 150 can be pruned so long as each blockchain node 150 stores the block header (described below) of each block 151. Each block 151 in the chain includes one or more transactions 152, where a transaction in this context refers to a type of data structure. The nature of the data structure depends on the type of transaction protocol used as part of the transaction model or scheme. A given blockchain uses one particular transaction protocol throughout. In one common type of transaction protocol, the data structure of each transaction 152 includes at least one input and at least one output. Each output specifies an amount that represents a quantity of a digital asset as property, an example of which is a user 103 to whom the output is cryptographically locked (requiring that user's signature or other solution to unlock it and thereby be redeemed or spent). Each input points to an output of a preceding transaction 152, thereby linking the transactions.
[0229] Each block 151 also contains a block pointer 155 that points to a previously created block 151 in the chain, defining an order for the blocks 151. Each transaction 152 (other than a coinbase transaction) contains a pointer to a previous transaction, defining an order for the sequence of transactions (Note: the sequence of transactions 152 is allowed to branch). The chain of blocks 151 dates back to a genesis block (Gb) 153, which was the first block in the chain. One or more original transactions 152 earlier in the chain 150 pointed to the genesis block 153 rather than to a preceding transaction.
[0230] Each of the blockchain nodes 104 is configured to forward transactions 152 to other blockchain nodes 104, thereby propagating the transactions 152 throughout the network 106. Each blockchain node 104 is configured to create blocks 151 and store a respective copy of the same blockchain 150 in its respective memory. Each blockchain node 104 also maintains an ordered set (or "pool") 154 of transactions 152 waiting to be incorporated into a block 151. The ordered pool 154 is often referred to as a "mempool." This term herein is not intended to be limited to any particular blockchain, protocol, or model. It refers to the ordered set of transactions that the node 104 has accepted as valid, for which the node 104 is obligated not to accept any other transactions that attempt to consume the same output.
[0231] For a given current transaction 152j, its (or each) input contains a pointer that references the output of a preceding transaction 152i in the sequence of transactions, specifying that this output should be redeemed or "consumed" in the current transaction 152j. In general, the preceding transaction can be any transaction in the ordered set 154 or any block 151. The preceding transaction 152i does not necessarily have to exist at the time the current transaction 152j is created or even sent to the network 106, but the preceding transaction 152i must exist and be validated for the current transaction to be valid. Thus, "preceding" in this specification refers to a preceding element in a logical sequence linked by a pointer, not necessarily at the time of creation or transmission in the temporal sequence, and therefore does not necessarily exclude transactions 152i, 152j from being created or transmitted out of sequence (see the discussion below regarding orphan transactions). The preceding transaction 152i can equally be referred to as a previous transaction or a preceding transaction.
[0232] The input of the current transaction 152j also includes an input authorization, e.g., the signature of the user 103a to which the output of the previous transaction 152i is locked. The output of the current transaction 152j can then be cryptographically locked to the new user or entity 103b. The current transaction 152j can thus transfer to the new user or entity 103b the amount defined in the input of the previous transaction 152i as defined in the output of the current transaction 152j. In some cases, the transaction 152 may have multiple outputs to divide the input amount among multiple users or entities (one of which may be the original user or entity 103a to provide change). In some cases, a transaction may also have multiple inputs to collect amounts from multiple outputs of one or more previous transactions and redistribute them to one or more outputs of the current transaction.
[0233] According to an output-based transaction protocol such as Bitcoin, when a party 103, such as an individual user or an organization, wants to enact a new transaction 152j (either manually or by an automated process adopted by the party), the enacting party sends the new transaction from its computer terminal 102 to a recipient. The enacting party or recipient will eventually send this transaction to one or more of the blockchain nodes 104 of the network 106 (currently typically a server or a data center, but in principle it could be other user terminals). It is also not excluded that the party 103 enacting the new transaction 152j sends this transaction directly to one or more of the blockchain nodes 104 and in some examples does not send it to a recipient. The blockchain nodes 104 that receive the transaction check whether the transaction is valid according to the blockchain node protocol applied at each of them. The blockchain node protocol typically requires that the blockchain nodes 104 check that the cryptographic signature in the new transaction 152j matches an expected signature, which depends on the previous transaction 152i in the ordered sequence of transactions 152. In such output-based transaction protocols, this may involve checking that a cryptographic signature or other authorization of party 103 included in the input of the new transaction 152j matches a condition defined in the output of the previous transaction 152i that the new transaction assigns, which typically involves at least checking that the cryptographic signature or other authorization in the input of the new transaction 152j unlocks the output of the previous transaction 152i to which the input of the new transaction is linked. This condition may be defined at least in part by a script included in the output of the previous transaction 152i. Alternatively, it may simply be fixed by the blockchain node protocol alone, or result from a combination of these.In any case, if the new transaction 152j is valid, the blockchain node 104 forwards it to one or more other blockchain nodes 104 in the blockchain network 106. These other blockchain nodes 104, following the same blockchain node protocol and applying the same tests, forward the new transaction 152j to one or more further nodes 104, and so on. In this manner, the new transaction is propagated throughout the network of blockchain nodes 104.
[0234] In the output-based model, the definition of whether a given output (e.g., UTXO) has been allocated (e.g., spent) is whether it has still been validly redeemed by the input of another, forward transaction 152j according to the blockchain node protocol. Another condition for a transaction to be valid is that the output of the preceding transaction 152i that it attempts to redeem has not yet been redeemed by another transaction. Again, if it is not valid, the transaction 152j is not propagated (unless it is flagged as invalid and propagated due to a warning) or recorded in the blockchain 150. This protects against double spending, where a transaction executor tries to allocate the output of the same transaction multiple times. On the other hand, the account-based model prevents double spending by maintaining an account balance. Again, since there is a defined order of transactions, the account balance has a single defined state at any point in time.
[0235] In addition to validating transactions, blockchain nodes 104 compete to be the first to create a block of transactions in a process commonly referred to as mining, supported by "proof of work." At the blockchain nodes 104, new transactions are added to an ordered pool 154 of valid transactions that have not yet appeared in a block 151 recorded on the blockchain 150. The blockchain nodes then compete to assemble a new valid block 151 of transactions 152 from an ordered set of transactions 154 by attempting to solve a cryptographic puzzle. Typically, this involves searching for a "nonce" value such that when the nonce is concatenated with a representation of the ordered pool of pending transactions 154 and hashed, the output of the hash satisfies a predefined condition. For example, the predefined condition could be that the output of the hash has a certain predefined number of leading zeros. This is just one particular type of proof of work puzzle, others are not excluded. A property of a hash function is that it has an unpredictable output for an input. Therefore, this search can only be performed by brute force, thus consuming a significant amount of processing resources at each blockchain node 104 attempting to solve the puzzle.
[0236] The first blockchain node 104 that solves the puzzle publishes this to the network 106, providing the solution as a proof that other blockchain nodes 104 in the network can easily check (given the hash solution, it is easy to check that it matches the hash output). The first blockchain node 104 propagates the block to a threshold consensus of other nodes that accept the block, thus enforcing the protocol rules. The ordered set of transactions 154 then becomes recorded as a new block 151 in the blockchain 150 by each of the blockchain nodes 104. A block pointer 155 is also assigned to the new block 151n that points to a previously created block 151n-1 in the chain. The significant amount of effort, e.g., in the form of a hash, required to create the proof-of-work solution signals the first node 104's willingness to follow the rules of the blockchain protocol. Such rules include not accepting a transaction as valid if it assigns the same output as a previously validated transaction, otherwise known as double spending. Once created, blocks 151 cannot be modified because they are known and maintained by each of the blockchain nodes 104 in the blockchain network 106. Block pointers 155 also impose an order on blocks 151. This therefore provides an immutable public ledger of transactions, as transactions 152 are recorded in ordered blocks at each blockchain node 104 in the network 106.
[0237] Note that different blockchain nodes 104 competing to solve the puzzle at any given time may do so based on different snapshots of the pool of transactions 154 that are not yet published at any given time, depending on when they started looking for a solution or the order in which the transactions were received. The first to solve each puzzle defines which transactions 152 will be included in the next new block 151n and in what order, and the current pool of unpublished transactions 154 is updated. The blockchain nodes 104 then compete to create blocks from the newly defined ordered pool of unpublished transactions 154, and so on. There is also a protocol to resolve any "forks" that may occur, which is when two blockchain nodes 104 solve the puzzle within such a short time of each other that opposing views of the blockchain are propagated between the nodes 104. In essence, whichever branch of the fork grows the longest becomes the definitive blockchain 150. Note that this should not affect users or agents of the network when the same transaction appears in both forks.
[0238] According to the Bitcoin blockchain (and most other blockchains), a node that successfully constructs a new block 104 is granted the ability to allocate a new additional accepted amount of digital assets in a new special type of transaction that distributes an additional defined amount of digital assets (as opposed to an agent-to-agent or user-to-user transaction that transfers digital assets from one agent or user to another). This special type of transaction is usually referred to as a "coinbase transaction," but may also be called an "initiation transaction" or "generation transaction." It typically forms the first transaction of a new block 151n. The proof of work signals the intention of the node constructing the new block to follow protocol rules that allow this special transaction to be redeemed later. Blockchain protocol rules may require a redemption period, e.g., 100 blocks, before this special transaction can be redeemed. Often, a regular (non-generating) transaction 152 also specifies an additional transaction fee in one of its outputs to further reward the blockchain node 104 that created the block 151n in which the transaction was published. This fee is commonly referred to as a "transaction fee" and is explained below.
[0239] Due to the resources involved in validating and publishing transactions, typically at least each of the blockchain nodes 104 takes the form of a server including one or more physical server units, or even an entire data center. However, in principle, any given blockchain node 104 can also take the form of a user terminal or a group of networked user terminals.
[0240] The memory of each blockchain node 104 stores software configured to execute on the processing unit of the blockchain node 104 to perform its respective one or more roles and process transactions 152 in accordance with the blockchain node protocol. It will be understood that any activity attributed to a blockchain node 104 herein may be performed by software executing on the processing unit of the respective computing device. The node software may be implemented in one or more applications at the application layer, or at a lower layer, such as the operating system layer or protocol layer, or any combination thereof.
[0241] Also connected to the network 101 are computer devices 102 of each of a number of parties 103 who assume the role of consuming users. These users may interact with the blockchain network 106 but do not participate in validating transactions or constructing blocks. Some of these users or agents 103 may act as senders and receivers in transactions. Other users may interact with the blockchain 150 without necessarily acting as senders or receivers. For example, some parties may act as storage entities that store copies of the blockchain 150 (e.g., having obtained a copy of the blockchain from a blockchain node 104).
[0242] Some or all of the parties 103 may be connected as part of a different network, for example a network overlaid on the blockchain network 106. Users of the blockchain network (often referred to as "clients") may be said to be part of a system that includes the blockchain network 106, but these users are not blockchain nodes 104 because they do not perform the necessary role of a blockchain node. Instead, each party 103 may interact with the blockchain network 106 by connecting (i.e., communicating) with a blockchain node 106, thereby utilizing the blockchain 150. Two parties 103 and their respective devices 102 are shown for illustrative purposes: a first party 103a and its respective computer device 102a, and a second party 103b and its respective computer device 102b. It will be understood that many more such parties 103 and their respective computer devices 102 may exist and participate in the system 100, but for convenience they are not illustrated. Each party 103 may be an individual or an organization. Purely by way of example, the first party 103a will be referred to herein as Alice and the second party 103b will be referred to as Bob, although it will be understood that this is not intended to be limiting and that references herein to Alice or Bob may be replaced with "first party" and "second party," respectively.
[0243] The computer equipment 102 of each party 103 comprises a respective processing device including one or more processors, e.g., one or more CPUs, GPUs, other accelerator processors, application specific processors, and / or FPGAs. The computer equipment 102 of each party 103 further includes a memory, i.e., a computer readable storage device in the form of a non-transitory computer readable medium. This memory may include one or more memory units employing one or more memory media, e.g., a magnetic medium such as a hard disk, an electronic medium such as a SSD, a flash memory, or an EEPROM, and / or an optical medium such as an optical disk drive. The memory on the computer equipment 102 of each party 103 stores software including a respective instance of at least one client application 105 configured to execute on the processing device. It will be understood that any activity attributed to a given party 103 herein may be performed using software executed on the processing device of the respective computer equipment 102. The computer equipment 102 of each party 103 includes at least one user terminal, e.g., a desktop or laptop computer, a tablet, a smartphone, or a wearable device such as a smart watch. The computing equipment 102 of a given party 103 may also include one or more other network-connected resources, such as cloud computing resources accessed via a user terminal.
[0244] The client application 105 may be initially provided on the computing equipment 102 of any given party 103 on a suitable computer-readable storage medium, for example downloaded from a server, or may be provided on a removable storage device such as a removable SSD, a flash memory key, a removable EEPROM, a removable magnetic disk drive, a magnetic floppy disk or tape, an optical disk such as a CD or DVD ROM, or a removable optical drive, or the like.
[0245] The client application 105 has at least a "wallet" function. It has two main functionalities. One of these is to allow each party 103 to create, authorize (e.g., sign), and send transactions 152 to one or more Bitcoin nodes 104 for subsequent propagation throughout the network of blockchain nodes 104 and thereby inclusion in the blockchain 150. The other is to report to each party the amount of digital assets it currently owns. In an output-based system, this second function involves reconciling amounts belonging to the party of interest as determined in the outputs of various transactions 152 scattered throughout the blockchain 150.
[0246] NOTE: Although various client functions may be described as being integrated into a given client application 105, this is not necessarily limiting, and instead any client functionality described herein may instead be implemented as a set of two or more different applications, for example, interfaced via an API or plugged into one another. More generally, client functionality may also be implemented at the application layer, or at a lower layer such as an operating system, or any combination of these. While the following will describe client application 105, it will be understood that this is not limiting.
[0247] An instance of a client application or software 105 on each computing device 102 is operatively coupled to at least one of the blockchain nodes 104 of the network 106. This allows the wallet function of the client 105 to send transactions 152 to the network 106. The client 105 can also contact the blockchain nodes 104 to query the blockchain 150 for any transactions in which the respective party 103 is a recipient (or indeed to inspect the transactions of other parties in the blockchain 150, since in an embodiment the blockchain 150 is a public facility that provides trust to transactions in part through its public visibility). The wallet function on each computing device 102 is configured to formulate and send transactions 152 according to a transaction protocol. As noted above, each blockchain node 104 executes software configured to validate transactions 152 according to a blockchain node protocol and forward transactions 152 for propagation throughout the blockchain network 106. The transaction protocol and the node protocol correspond to each other, and a given transaction protocol goes with a given node protocol and together implement a given transaction model. The same transaction protocol is used for all transactions 152 in the blockchain 150. The same node protocol is used by all nodes 104 in the network 106.
[0248] When a given party 103, say Alice, wants to send a new transaction 152j to be included in the blockchain 150, Alice formulates the new transaction (using the wallet functionality of Alice's client application 105) according to the relevant transaction protocol. Alice then sends the transaction 152 from her client application 105 to one or more blockchain nodes 104 to which she is connected. For example, this could be the blockchain node 104 that is most connected to Alice's computer 102. When any given blockchain node 104 receives a new transaction 152j, it processes it according to the blockchain node protocol and its respective role. This involves first checking whether the newly received transaction 152j satisfies certain conditions to be "valid", examples of which will be explained in more detail shortly. In some transaction protocols, the conditions for validity checking may be configurable per transaction by a script included in the transaction 152. Alternatively, this condition could simply be a built-in feature of the node protocol or be defined by a combination of the script and the node protocol.
[0249] Provided that the newly received transaction 152j passes the test for being considered valid (i.e., it is "validated"), any blockchain node 104 that receives the transaction 152j adds the new validated transaction 152 to the ordered set of transactions 154 maintained at that blockchain node 104. Additionally, any blockchain node 104 that receives the transaction 152j forward propagates the validated transaction 152 to one or more other blockchain nodes 104 in the network 106. Because each blockchain node 104 applies the same protocol, then, assuming the transaction 152j is valid, this means that it will be propagated throughout the network 106 immediately.
[0250] After being admitted into the ordered pool of pending transactions 154 maintained by a given blockchain node 104, that blockchain node 104 starts a race to solve a proof-of-work puzzle with the latest version of each pool 154 that contains the new transaction 152. (Recall that other blockchain nodes 104 may be trying to solve the puzzle based on different pools of transactions l54, but whoever gets there first defines the set of transactions included in the latest block 151. Eventually, the blockchain node 104 will have solved the puzzle for the part of the ordered pool 154 that contains Alice's transaction 152j.) After the proof-of-work is done for the pool 154 that contains the new transaction 152j, it immutably becomes part of one of the blocks 151 in the blockchain 150. Each transaction 152 contains a pointer to the previous transaction, so the order of the transactions is also immutably recorded.
[0251] Different blockchain nodes 104 may initially receive different instances of a given transaction and therefore have conflicting views about which instance is "valid" before the instances are published in a new block 151, at which point all blockchain nodes 104 agree that the published instance is the only valid instance. If a blockchain node 104 accepts one instance as valid and then discovers that a second instance has been recorded in the blockchain 150, it must accept it and discard (i.e., treat as invalid) the instance it originally accepted (i.e., the one not published in block 151).
[0252] An alternative type of transaction protocol operated by some blockchain networks may be referred to as an "account-based" protocol, as part of the account-based transaction model. In the account-based case, each transaction does not define the amount transferred by referencing the UTXO of the preceding transaction in the sequence of past transactions, but rather by referencing the absolute account balance. The current state of every account is stored and constantly updated by the nodes of the network, separate from the blockchain. In such a system, transactions are ordered using the running transaction tally (also called the "position") of the account. This value is signed by the sender as part of the cryptographic signature and hashed as part of the transaction reference calculation. In addition, an optional data field may also be signed in the transaction. This data field may point to a previous transaction, for example if a previous transaction ID is included in the data field.
[0253] UTXO-based model FIG. 2 illustrates an example of a transaction protocol. This is an example of a UTXO-based protocol. A transaction 152 (abbreviated as "Tx") is a fundamental data structure of a blockchain 150 (each block 151 contains one or more transactions 152). The following is described with reference to an output-based or "UTXO"-based protocol. However, this is not limited to all possible embodiments. It should be noted that the exemplary UTXO-based protocol is described with reference to Bitcoin, but could equally be implemented on other exemplary blockchain networks.
[0254] In the UTXO-based model, each transaction ("Tx") 152 comprises a data structure that includes one or more inputs 202 and one or more outputs 203. Each output 203 may include an unspent transaction output (UTXO) that may be used as a source of input 202 for another new transaction (if the UTXO has not yet been redeemed). The UTXO includes a value that specifies an amount of a digital asset. This represents a set number of tokens on the distributed ledger. The UTXO may also include, among other information, the transaction ID of the transaction from which it originated. The transaction data structure may also include a header 201 that may include indicators of the sizes of the input fields 202 and the output fields 203. The header 201 may also include the ID of the transaction. In an embodiment, the transaction ID is a hash of the transaction data (excluding the transaction ID itself) and is stored in the header 201 of the raw transaction 152 submitted to the node 104.
[0255] For example, Alice 103a wishes to create a transaction 152j that transfers an amount of a digital asset of interest to Bob 103b. In FIG. 2, Alice’s new transaction 152j begins with “Tx 1" which takes the amount of digital assets locked in Alice in the output 203 of the previous transaction 152i in the sequence and transfers at least a portion of it to Bob. The previous transaction 152i is labeled "Tx 0 " Tx 0 and Tx 1 are just arbitrary labels. They do not necessarily correspond to Tx 0 is also the first transaction on blockchain 151. 1 It does not mean that Tx is the next transaction in the pool 154. 1 may also refer to any preceding (i.e., previous) transaction that still has unspent outputs 203 locked to Alice.
[0256] Preceding transaction Tx 0 Alice creates a new transaction Tx 1 By the time Tx is created, or at least by the time it is sent to the network 106, it may already have been validated and included in a block 151 of the blockchain 150. It may already be included in one of the blocks 151 at that point, or may still be waiting in the ordered set 154, in which case it will be included in the new block 151 shortly. Alternatively, Tx 0 and Tx 1 may be created together and sent together to the network 106, or Tx 0 Tx if the node protocol allows for buffering of "orphan" transactions 1It is even possible that a transaction may be sent after a previous transaction. The phrases "preceding" and "successor" as used herein in the context of a sequence of transactions refer to the order of the transactions in the sequence as defined by the transaction pointers specified in the transaction (which transaction points to which other transaction, etc.). They may equally be replaced with "predecessor" and "successor", or "predecessor" and "descendant", "parent" and "child", or the like. This does not necessarily imply the order in which they are created, sent to the network 106, or arrive at any given blockchain node 104. Nevertheless, a subsequent transaction (descendant transaction or "child") that points to a previous transaction (previous transaction or "parent") is not validated until and unless the parent transaction is validated. A child that arrives at a blockchain node 104 before its parent is considered an orphan. It may be discarded or buffered for a period of time to await the parent, depending on the node protocol and / or node behavior.
[0257] Preceding transaction Tx 0 One of the one or more outputs 203 of 0 Each UTXO includes a value that specifies the amount of the digital asset represented by the UTXO, and a locking script that defines the conditions that must be met by the unlocking script in the input 202 of a subsequent transaction for the subsequent transaction to be validated and thus the UTXO to be successfully redeemed. Typically, the locking script locks the amount to a particular party (the beneficiary of the transaction in which it is included). That is, the locking script typically defines unlocking conditions, including a condition that the unlocking script in the input of a subsequent transaction includes a cryptographic signature of the party to whom the preceding transaction is locked.
[0258] A lock script (also called scriptPubKey) is a piece of code written in a domain-specific language recognized by the node protocol. A specific example of such a language is called "Script" (capital S) used in blockchain networks. A lock script specifies the information required to consume a transaction output 203, for example the requirements for Alice's signature. An unlock script appears within the output of a transaction. An unlock script (also called scriptSig) is a piece of code written in a domain-specific language that provides the information required to satisfy the criteria of the lock script. For example, this may include Bob's signature. An unlock script appears within the input 202 of a transaction.
[0259] Therefore, in the illustrated example, Tx 0 Output of 203 UTXO 0 is UTXO 0 In order for the UTXO to be redeemed (strictly speaking, 0 (For a subsequent transaction attempting to redeem the A Requires lock script [Checksig P A ] is equipped. A ] is the public key P from Alice’s public-private key pair. A Contains a representation (i.e., a hash) of Tx 1 The input 202 of the Tx 1 A pointer to a transaction Tx 0 The transaction ID, TxID, which is a hash of the entire transaction 0 Tx 1 The input 202 of the Tx 0 To distinguish it from any other possible output of Tx 0 UTXO within 0 Contains an index that identifies the Tx 1The input 202 is an unlock script containing Alice's cryptographic signature, created by Alice applying the private key from her key pair to a predefined portion of data (sometimes called a "message" in cryptography). <Sig P A The data (or "message") that needs to be signed by Alice to provide a valid signature may be defined by the lock script, or by the node protocol, or by a combination of these.
[0260] New transaction Tx 1 When the arrives at a blockchain node 104, the node applies the node protocol, which involves running the lock script and the unlock script together to check whether the unlock script satisfies the conditions defined in the lock script (where the conditions may include one or more criteria). In an embodiment, this involves concatenating the two scripts as follows: <Sig P A > <P A > || [Checksig P A ] Here, "||" represents concatenation, "<...>" means to put data on the stack, and "[...]" is a function that is constructed by lock script (a stack-based language in this example). Equivalently, scripts could be executed one after the other with a common stack, rather than concatenating the scripts. Either way, when executed together, the scripts will be executed in the order of Tx 0 Alice's public key P, as contained in the lock script in the output of A Using Tx 1 , the input of Tx contains Alice's signature, which signs the expected portion of the data. To perform this authentication, the expected portion of the data itself (the "message") must also be included. In an embodiment, the signed data is 1(Thus, there is no need to include a separate element specifying the signed portion of the data in plaintext, since that is already inherently present).
[0261] The details of authentication with public-private cryptography will be familiar to those skilled in the art. Essentially, if Alice signs a message using her private key, then given Alice's public key and the plaintext message, another entity, such as node 104, can authenticate that the message must have been signed by Alice. Signing typically involves hashing the message, signing the hash, and tagging this as the signature to the message, so that anyone holding the public key can authenticate the signature. Thus, it should be noted that references herein to signing a particular data portion or part of a transaction, etc., may, in embodiments, mean signing a hash of that data portion or part of a transaction.
[0262] Tx 1 The unlock script is Tx 0 If it satisfies one or more conditions specified in the lock script of (so, in the illustrated example, Alice's signature is Tx 1 If provided and authenticated by Tx 1 This means that the blockchain node 104 considers Tx 1 The blockchain node 104 also adds the transaction Tx 1 to one or more other blockchain nodes 104 in the network 106, whereby it is propagated throughout the network 106. 1 After being validated and entered into the blockchain, this is called Tx 0 from UTXO 0 Define Tx as consumed. 1Note that Tx can only be valid if it consumes an unconsumed transaction output 203. If it attempts to consume an output that has already been consumed by another transaction 152, Tx 1 is invalid even if all other conditions are met. Therefore, the blockchain node 104 0 It is also necessary to check whether the UTXO referenced in has already been spent (i.e., whether it already forms a valid input to another valid transaction). This is one of the reasons why it is important for the blockchain 150 to impose a defined order on transactions 152. Indeed, a given blockchain node 104 may maintain a separate database that marks which UTXOs 203 have been spent in which transactions 152, but what ultimately defines whether a UTXO is spent is whether it already forms a valid input to another valid transaction in the blockchain 150.
[0263] If the total amount specified in all outputs 203 of a given transaction 152 is greater than the total amount pointed to by all its inputs 202, this is another criterion for invalidity in most transaction models. Therefore, such a transaction is not propagated and is not included in block 151.
[0264] Note that in the UTXO-based transaction model, a given UTXO must be spent in its entirety. It is not possible to "leave" part of the amount defined in the UTXO as spent while another part is being spent. However, the amount from a UTXO can be split among multiple outputs of subsequent transactions. For example, Tx 0 In UTXO 0 The amount defined in is Tx 1 Therefore, if Alice sends UTXO to Bob, 0If Alice does not want to give the entire amount defined in Tx 1 The second output of the can be used to give yourself change or to pay another party.
[0265] In practice, Alice would normally also need to include a fee for any Bitcoin node 104 that successfully puts her transaction 104 into a block 151. If Alice does not include such a fee, Tx 0 will be rejected by the blockchain node 104 and therefore, although technically valid, will not be propagated and included in the blockchain 150 (the node protocol does not force blockchain nodes 104 to accept a transaction 152 if they do not want to do so). In some protocols, the transaction fee does not require its own separate output 203 (i.e., it does not require a separate UTXO). Instead, any difference between the total amount pointed to by the input 202 and the total amount specified in the output 203 of a given transaction 152 is automatically given to the blockchain node 104 that publishes the transaction. For example, the UTXO 0 A pointer to Tx 1 Only input to Tx 1 One output UTXO 1 Only UTXO 0 The amount of digital assets specified in is UTXO 1 If the difference is greater than the amount specified in UTXO 1 However, it is not necessarily excluded that, alternatively or in addition, the transaction fee may be explicitly specified in one of the UTXOs 203 of the transaction 152 itself.
[0266] Alice and Bob's digital assets consist of the UTXOs locked to them in any transaction 152 anywhere in the blockchain 150. Thus, typically, a given party's 103 assets are scattered throughout the UTXOs of various transactions 152 throughout the blockchain 150. There is no one number stored anywhere in the blockchain 150 that defines a given party's 103 total balance. It is the role of the wallet function in the client application 105 to collate together the values of all the various UTXOs locked to each party that have not yet been spent in another onward transaction. This can be done by querying a copy of the blockchain 150 as stored in any of the Bitcoin nodes 104.
[0267] Note that script code is often expressed generally (i.e., without using a precise language). For example, an operation code (opcode) may be used to express a particular function. "OP_..." refers to a particular opcode in the Script language. As an example, OP_RETURN is an opcode in the Script language that, when preceded by OP_FALSE at the beginning of the lock script, creates a non-consumable output of the transaction that can store data within the transaction, thereby immutably recording the data in the blockchain 150. For example, the data may include a document that is desired to be stored in the blockchain.
[0268] Typically, the input for a transaction is a public key P AIn an embodiment, this is based on ECDSA using the elliptic curve secp256k1. The digital signature signs certain data. In some embodiments, for a given transaction, the signature signs some of the transaction inputs and some or all of the transaction outputs. The specific parts of the outputs it signs depend on the SIGHASH flag, which is typically a four-byte code included at the end of the signature that selects which outputs are signed (and thus fixed at the time of signing).
[0269] The lock script may be referred to as a "scriptPubKey", referring to the fact that it typically includes the public key of the party for whom the respective transaction is locked. The unlock script may be referred to as a "scriptSig", referring to the fact that it typically provides a corresponding signature. However, more generally, in all applications of the blockchain 150, it is not essential that the condition for a UTXO to be redeemed includes authenticating the signature. More generally, the scripting language may be used to define any condition or conditions. Thus, the more general terms "lock script" and "unlock script" may be preferred.
[0270] Side Channels As shown in FIG. 1, the client applications on each of Alice's and Bob's computing devices 102a, 120b, respectively, may include additional communication capabilities. This additional functionality allows Alice 103a to establish a separate side channel 107 with Bob 103b (at the instigation of either party or a third party). The side channel 107 allows for the exchange of data away from the blockchain network. Such communication is sometimes referred to as "off-chain" communication. For example, this may be used to exchange transactions 152 between Alice and Bob without the transaction (yet) being registered on the blockchain network 106 or progressing on the chain 150 until one of the parties chooses to broadcast it to the network 106. Sharing transactions in this manner is sometimes referred to as sharing a "transaction template." A transaction template may lack one or more inputs and / or outputs necessary to form a complete transaction. Alternatively, or in addition, the side channel 107 may be used to exchange any other transaction-related data, such as keys, negotiated amounts or terms, data content, etc.
[0271] The side channel 107 may be established over the same packet-switched network 101 as the blockchain network 106. Alternatively, or in addition, the side channel 301 may be established over a different network, such as a mobile cellular network, or a local area network, such as a local wireless network, or even over a direct wired or wireless link between Alice's device 102a and Bob's device 102b. In general, the side channel 107 referenced anywhere herein may include any one or more links over one or more network technologies or communication media for exchanging data "off-chain," i.e., separate from the blockchain network 106. When multiple links are used, the bundle or collection of off-chain links may be referred to as the side channel 107 as a whole. Thus, it should be noted that when Alice and Bob are said to exchange some information or data or the like over the side channel 107, this does not necessarily imply that all pieces of these data must be transmitted over the exact same link or the same type of network.
[0272] Further notes Other variations or use cases of the disclosed technology will be apparent to those skilled in the art after the disclosure herein is presented. The scope of the present disclosure is not limited by the described embodiments, but only by the appended claims. For example, some embodiments above have been described with respect to the Bitcoin network 106, the Bitcoin blockchain 150, and the Bitcoin nodes 104. However, it will be understood that the Bitcoin blockchain is a specific example of the blockchain 150, and the above description may be generally applied to any blockchain. That is, the present invention is in no way limited to the Bitcoin blockchain. More generally, any references above to the Bitcoin network 106, the Bitcoin blockchain 150, and the Bitcoin nodes 104 may be replaced with references to the blockchain network 106, the blockchain 150, and the blockchain nodes 104, respectively. The blockchains, blockchain networks, and / or blockchain nodes may share some or all of the described characteristics of the Bitcoin blockchain 150, the Bitcoin network 106, and the Bitcoin nodes 104 described above.
[0273] In a preferred embodiment of the present disclosure, the blockchain network 106 is the Bitcoin network, and the Bitcoin nodes 104 perform at least some or all of the described functions of creating, publishing, propagating, and storing blocks 151 of the blockchain 150. It is not excluded that there may be other network entities (or network elements) that perform only one or some, but not all, of these functions. That is, network entities may perform the functions of propagating and / or storing blocks without creating and publishing them (recall that these entities are not considered to be nodes of the preferred Bitcoin network 106).
[0274] In other embodiments of the present disclosure, the blockchain network 106 may not be the Bitcoin network. In these embodiments, it is not excluded that a node may perform at least one or some, but not all, of the functions of creating, publishing, propagating, and storing blocks 151 of the blockchain 150. For example, in these other blockchain networks, a "node" may be used to refer to a network entity that is configured to create and publish blocks 151, but does not store and / or propagate those blocks 151 to other nodes.
[0275] More generally, any reference above to the term "Bitcoin node" 104 may be replaced with the term "network entity" or "network element," where such entity / element is configured to perform some or all of the roles of creating, publishing, propagating, and storing blocks. The functionality of such network entities / elements may be implemented in hardware using the same methods as described above with reference to the blockchain node 104.
[0276] The term "user" may be used herein to include a human or a machine-based entity.
[0277] It should be noted that the above-described embodiments are illustrative of the present disclosure rather than limiting it, and that those skilled in the art may design many alternative embodiments without departing from the scope of the present disclosure as defined by the appended claims. In the claims, reference signs in parentheses shall not be construed as limiting the claims. Furthermore, the words "comprise" and "include" and similar expressions do not exclude the presence of elements or steps other than those described in any claim or throughout the specification. As used herein, "comprise" and "comprises" mean "comprises or consists of", and "comprising" and "comprising" mean "comprises or consists of". Throughout the specification, conjugations such as "comprise", "comprise", or "comprising" are understood to imply the inclusion of a stated element, integer, or step, or group of elements, integers, or steps, but not the exclusion of any other element, integer, or step, or group of elements, integers, or steps. The singular reference of an element does not exclude the plural reference of such element, and vice versa. The disclosure may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a device claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The mere fact that certain means are recited in mutually different dependent claims does not indicate that a combination of these means cannot be used to advantage. [Explanation of symbols]
[0278] 100 Systems 101 Packet Switching Network 102 Computer Equipment 102a Computer equipment 102b Computer equipment 103 User, Parties 103a User 103a First Party 103b New User or Entity 103b Second Party 104 Blockchain nodes 105 Client Applications 106 Decentralized or Blockchain Networks 107 Side Channel 120b Computer equipment 150 Blockchain 151 Blocks of Data 151n Block 151n-1 Block 152 Transactions 152i Transactions 152j Transaction 153 Genesis Block (Gb) 154 Ordered Sets (or "Pools") 155 Block Pointer 201 Header 202 Input 203 Output 301 Side Channel 502 parts 504 Common internal node (internal hash) 602 parts 602a~h part 604 Common Internal Nodes 700 system, validation node 702 System Level Controller 704 Validator 704a to 704d Resources 902 Interface 903 Segment Identification Unit 904 Components 904 Allocation Units 905 Load Sharing Unit 1000 distributed mining nodes, PoW providers 1100 ASIC or hash machine 1100a, 1100b or 1100c calculator 1200 Controller 1300 PoW requested resources, PoW requester
Claims
1. 1. A computer-implemented method comprising: Sending a request from a first resource to a second resource to generate a proof of work (PoW) for a blockchain block containing a plurality of transactions, the request being a control transaction (TX 0 ) is included in said plurality of transactions; and / or Receiving a request from the first resource at the second resource to generate a proof of work (PoW) for a blockchain block containing a plurality of transactions, the request being a control transaction (TX 0 ) is included in said plurality of transactions.
4. A computer-implemented method comprising:
2. The control transaction (TX 0 ) includes control data for controlling, authorizing and / or prohibiting the execution of the generation of said proof of work, preferably said control data comprising: i) at least one output specifying a predetermined address for a destination of the blockchain transfer; Preferably, the address is associated with the second resource or with a party associated with or authorized by the second resource; and / or ii) at least one prescribed signature; and / or iii) At least one secret value or secret portion of data 2. The computer-implemented method of claim 1, comprising:
3. the first resource is a PoW request resource, a blockchain validation resource, or a blockchain mining resource; and / or the second resource is a proof-of-work provider; and / or The second resource includes at least one ASIC, or hash machine, or dedicated cryptocurrency mining resource; 3. A computer-implemented method according to claim 1 or 2.
4. i) receiving at the first resource from the second resource a proof of work for the blockchain block; and / or ii) transmitting a proof of work for the blockchain block from the second resource to the first resource; 4. The computer-implemented method of claim 1 , further comprising:
5. The proof of work is A value (nonce) configured to provide an output that meets one or more of the targets, rules, or criteria specified by the blockchain protocol; and / or A block header for said blockchain block; and / or The solution to a specified puzzle or challenge according to the blockchain protocol 5. The computer-implemented method of claim 1 , comprising:
6. The step of generating the proof of work comprises: i) generating or selecting a value (a nonce) configured to provide an output that satisfies a target, challenge, rule, or criterion specified by a blockchain protocol; ii) concatenating a block message and a nonce for said blockchain block; and / or iii) double-hashing the block header for said block chain block.
6. The computer-implemented method of claim 1 , comprising:
7. The control transaction (TX) is executed with respect to a predefined control criterion. 0 ), and generating or not generating the proof of work based on an output of said processing or comparison; 7. The computer-implemented method of claim 1, wherein the control criteria include at least one of thresholds, rules, or criteria for allowing initiation, execution or completion, or generation of the proof of work.
8. permitting or prohibiting said generation of said proof of work; i) the control transaction (TX 0 ) is included in said plurality of transactions; and / or ii) determining that the control transaction does or does not include a portion of data that satisfies a predetermined rule or criterion; and / or iii) based on a determination that the control transaction or at least a portion thereof satisfies the control criterion. The computer-implemented method of claim 7, further comprising:
9. determining, at the first or second resource, a portion of data required by a blockchain protocol for generation of a proof of work for a block, the portion of data comprising: A protocol version identifier, Block hash, the proof-of-work difficulty target specified by said protocol, and / or Timestamp 9. The computer-implemented method of claim 1, further comprising one or more of the following:
10. i) the Merkle proof includes data configured to enable performance of an SPV verification to determine whether the control transaction is included in the plurality of transactions; ii) the request includes the control transaction; 10. A computer-implemented method according to any one of claims 1 to 9.
11. processing the plurality of transactions to provide a Merkle tree; Preferably, the processing involves a hash function.
11. A computer-implemented method according to any one of claims 1 to 10.
12. The control transaction (TX 0 12. The computer-implemented method of claim 1, wherein the control transaction includes an identifier that enables the second resource to identify the first resource, preferably the identifier is provided in an input, output, script, or metadata portion of the control transaction.
13. 13. A system operable to control or influence the generation of a proof of work for a blockchain block containing a plurality of transactions and / or to implement a method according to any one of claims 1 to 12.
14. At least one proof-of-work providing resource (1000), Preferably, the at least one proof-of-work providing resource includes at least one ASIC or hash machine (1100a to 1100c); At least one proof of work request resource (1300), Preferably, said at least one proof-of-work request resource comprises at least one proof-of-work request resource (1300) including a distributed validation node (700) substantially as disclosed herein. The system of claim 13, comprising at least one of:
15. A non-transitory computer-readable storage medium having stored thereon executable instructions which, when executed by a processor of a computer system, cause or enable the computer system to perform the computer-implemented method of any one of claims 1 to 13.
Citation Information
Patent Citations
Zinc alloy plated steel with excellent surface quality and corrosion resistance and its manufacturing method
JP2021508777A
Barrier layer coatings for battery pouch cell seal
US20160336552A1
