Computer-Implemented Systems and Methods

The distributed validation of blockchain transactions through segmenting and parallel processing addresses inefficiencies in existing validation systems, improving speed, efficiency, and scalability without compromising security.

JP2024540124APending Publication Date: 2024-10-31NCHAIN LICENSING AG
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024525458
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-28
Filing Date
2022-10-25
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing blockchain validation processes require significant resources and time due to the need for storing and processing large UTXO pools, making them inefficient for users who cannot or will not meet these requirements without compromising security or adapting existing protocols.

Method used

A distributed validation system that breaks down blockchain transactions into segments using a Merkle tree structure, assigning these segments to multiple validators for parallel processing, thereby reducing the computational load and resource requirements.

Benefits of technology

This approach enhances the speed and efficiency of blockchain validation, allowing for faster propagation of blocks and reducing energy consumption while maintaining security and scalability without altering underlying protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024540124000001_ABST
    Figure 2024540124000001_ABST
Patent Text Reader

Abstract

The present disclosure provides methods and systems for distributed and / or parallel processing of data records, particularly validation of blockchain transactions in blockchain blocks. In a preferred embodiment, a distributed validation node is disclosed in which one or more transactions are assigned to a validation resource within a plurality of validation resources. The one or more transactions relate to a portion of a Merkle tree for a block, such that each validation resource can operate independently to validate a subset of the transactions of the block, each subset based on a segment of the Merkle tree. The present disclosure includes advantageous techniques for at least the assignment of tree segments to different validation resources, load balancing, downloading of transactions to be validated, a distributed UTXO pool, an indexing scheme, and prevention of double-spend events.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure generally relates to improved methods and systems for processing related or associated data records. 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 arrangements, thus resulting in blockchain implementation arrangements 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 implementations, however, the present disclosure is not limited to use with the Bitcoin blockchain and alternative protocols and implementations are within its scope.

[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. 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 has been 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. Thus, such an improved solution has been devised. Summary of the Invention [Means for solving the problem]

[0006] Embodiments of the present disclosure provide improved blockchain-related methods, devices, and systems. In one form, such embodiments provide a solution for validating part or all of a blockchain transaction and / or a blockchain block. In additional or alternative forms, 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-implemented solutions and provide improved methods and technical architectures for electronic transfer of digital resources.

[0007] 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.

[0008] Embodiments may include solutions that enable or facilitate the distribution of validation tasks across multiple processing resources, hereafter referred to for convenience as “validators.” A validator may include a single processing resource, or may include multiple related processing resources that may be collectively considered as a validation resource.

[0009] When a block of transactions needs to be validated and / or downloaded, the Merkle tree may be broken down into one or more smaller segments, each including a tree structure with its own root, and representing a subset of the transactions in the block. These segments may then be assigned to different validators. Each validator operates to perform the necessary processing tasks on the subset of transactions assigned to it. The assignment of tree segments to validators may be performed in a variety of ways, but according to one advantageous embodiment, a binary indexing system may be used, where the leading digits of a randomly generated double-hashed Merkle root are used to assign a given segment to a validator (or group / cluster of validators) with a matching binary identifier. This provides a simple, efficient, and fast mechanism for load balancing among multiple validators.

[0010] Each tree segment may contain a small binary marker that allows reconstruction of the entire Merkle tree of a transaction after the validators have finished their operations. The segment markers allow the controller component to reassemble the segments back into their original form, with the marker indicating their location in the original tree. This provides the advantage that multiple tree segments can be distributed across many different validators, potentially anywhere in the world, yet quickly and easily be reassembled to provide the complete Merkle tree for a block.

[0011] In one or more embodiments, a validator includes or has access to a repository that records work performed by the validator and / or data related to data processed by the validator. In one embodiment, this may include a database that includes unspent transaction outputs (UTXOs) that have been assigned to a given validator for processing. Recall that in traditional models, all UTXOs on a blockchain are tracked by nodes in a database called a UTXO pool. Each full node has its own full copy of the UTXO pool for the blockchain. However, in accordance with the present disclosure, a different approach may be utilized in which each validator has its own UTXO pool that tracks the UTXOs of transactions that it has been assigned to validate. Advantages of such a decentralized UTXO pool include, but are not limited to, guaranteed data integrity, improved speed and efficiency, and the incorporation and support of various validation techniques such as SPV.

[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. 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 arranged 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 interior 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) is constructed from four data packets D0,...,D3 as follows: 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(D0)∥H(D1))∥H(H(D2)∥H(D3))]

[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 D i Let D be a set of N data packets D∈{D0,...,D N-1The goal of verification is to verify that a given data packet D is a member of a list or set of . 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 all packets D0,...,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. It is clear that it is much more efficient and practical to compute a Merkle proof that involves log2N hashes than it is to store N data hashes and compute an explicit proof.

[0044] Given a Merkle root R, let D∈{D0,...,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. Use D1 and Γ to compute the Merkle proof as follows: a. Hash the data block N(0,0)=H(D0) 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 the presence of D0 in the tree, and therefore the dataset D, is confirmed. 2. If R' ≠ R, then the proof fails and it is not confirmed that D0 is a member of D.

[0045] This is an efficient mechanism for providing proof of existence for some data, as part of a dataset represented by a Merkle tree and its root. For example, if some data D0 corresponds to a transaction in a blockchain, and the root R is publicly available as part of the block header, then 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 block's Merkle tree, 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. The arrangement may 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 arranged to act as a controller at the validator level. Thus, any or all of the 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. The processing resources may themselves then 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 arranged 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 arranged 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, assuming the transaction is proven valid. The "locked" state means that spending is permitted, whereas 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 arranged in association with respective multiple UTXO pools, each of which relates 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 arranged 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] 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.

[0091] The 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, the system 700 may be arranged to interface with various entities, some or all of which may be located outside the organization. In such a case, the system 700 may be arranged to provide validation functionality as a service. For example, the system 700 may be arranged to interact with a blockchain network to obtain data it needs. Additionally or alternatively, the system 700 may also interact with entities wishing to use its validation services. Thus, the activities of the 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.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] 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 may be 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.

[0100] 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.

[0101] In some examples, the system may be arranged 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.

[0102] 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 references one or more inputs, each input being a UTXO (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.

[0103] 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.

[0104] 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.

[0105] 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.

[0106] Enumerated clauses Embodiments of the present disclosure are presented by way of example, and not by way of limitation, in the following enumerated clauses.

[0107] 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.

[0108] Clause Set 1: Clause 1.1: A computer-implemented method for processing (e.g., validating) at least a portion of a blockchain block that includes a plurality of blockchain transactions and a root of a Merkle tree for the block, comprising: 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; Using multiple processing (e.g., validation) resources to process (e.g., validate) respective subsets of the blockchain transactions; A method comprising:

[0109] The term "validator" may be used interchangeably with the term "validation resource." Multiple validation resources may form a distributed validation node. At least one of the multiple validation resources may include one or more processing resources. Additionally or alternatively, one or more of the multiple validation resources may include a validator controller component substantially as described herein.

[0110] 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.

[0111] 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.

[0112] 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 iv) generating at least one hash of the blockchain transaction, constructing a Merkle path using that hash, and / or checking whether that hash matches a transaction identifier (TxID) in the header of the blockchain block; A method comprising:

[0113] 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.

[0114] 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.

[0115] 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.

[0116] 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.

[0117] 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.

[0118] 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.

[0119] 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.

[0120] 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.

[0121] 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.

[0122] 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.

[0123] 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.

[0124] According to another aspect of the present disclosure, there is provided a computer-implemented system arranged to perform any method step or combination of method steps described or claimed herein.

[0125] 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 arranged to operate using a blockchain protocol as described herein.

[0126] 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:

[0127] Clause Set 2: Clause 2.1. A computer-implemented method for downloading at least a portion of a blockchain block that includes 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 comprising downloading a respective subset of the blockchain transactions using one, some, or all of a plurality of processing resources.

[0128] 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.

[0129] 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.

[0130] 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 1. A method comprising: arranging respective subsets of blockchain transactions based on respective positions of respective interior nodes of a Merkle tree.

[0131] 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.

[0132] 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.

[0133] 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 iv) 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.

[0134] 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.

[0135] 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.

[0136] 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.

[0137] 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.

[0138] 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.

[0139] 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.

[0140] 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.

[0141] 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.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] Clause Set 3: Clause 3.1. A computer-implemented method comprising: generating, storing, and / or maintaining a first UTXO repository for recording, searching, and / or processing a plurality of unspent transaction outputs (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.

[0146] Clause 3.2. The method according to clause 3.1, comprising: generating, storing, and / or maintaining at least one further UTXO repository.

[0147] 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 UTXO repository.

[0148] Clause 3.4. The method according to any one of clauses 3.1 to 3.3, comprising: The first and / or UTXO repository i) Unspent Transaction Outputs (UTXOs), 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.

[0149] 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.

[0150] 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) A method, wherein transactions of multiple blockchain transactions are associated with unspent transaction outputs (UTXOs).

[0151] Clause 3.7. The method according to clause 3.5 or 3.6, comprising: The method further includes using the record identifier to search for, identify, access, or insert at least one record in the UTXO repository.

[0152] 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 multiple (UTXOs) is stored in the UTXO repository. 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.

[0153] Clause 3.9. The method according to clause 3.8, comprising: i) associating an unspent transaction output (UTXO) 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.

[0154] 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.

[0155] 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 (UTXOs).

[0156] 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.

[0157] 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.

[0158] 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.

[0159] 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.

[0160] Clause Set 4 Any embodiment defined by any clause or combination of clauses in clause set 4 may be arranged to implement or combine any clause in clause sets 1 to 3.

[0161] 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 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 validation of 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:

[0162] Clause 4.2. The system of clause 4.1, comprising: i) a load balancing component arranged and 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:

[0163] 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. The system is configured to affect and / or control the operation of at least one of:

[0164] 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.

[0165] Clause 4.5. A system according to any one of clauses 4.1 to 4.4, comprising: further comprising a plurality of UTXO repositories, each repository of the plurality of repositories associated with a respective validation resource and arranged to facilitate recording, retrieval, and / or processing of a plurality of unspent transaction outputs (UTXOs); Preferably, each of the plurality of unspent transaction outputs is associated with at least one transaction (Tx) within the plurality of blockchain transactions.

[0166] Clause 4.6. The system of clause 4.5, comprising: A system operable to create and / or maintain a database log containing a history of actions, modifications, and events relating to at least one of a plurality of UTXO repositories.

[0167] Clause 4.7. A system according to any one of clauses 4.1 to 4.6, comprising: At least one of the multiple UTXO repositories i) Unspent Transaction Outputs (UTXOs), 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.

[0168] 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.

[0169] 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).

[0170] 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 UTXO repository in the plurality of UTXO repositories.

[0171] 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 (UTXOs) 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.

[0172] 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.

[0173] 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:

[0174] 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.

[0175] 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 iv) 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:

[0176] 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.

[0177] 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.

[0178] 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 arranged to form a peer-to-peer (P2P) network 106 within the packet-switched network 101. Although not illustrated, the blockchain nodes 104 may be arranged as a nearly complete graph. Thus, each blockchain node 104 is highly connected to the other blockchain nodes 104.

[0179] 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.

[0180] 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.

[0181] 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.

[0182] 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.

[0183] 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.

[0184] 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.

[0185] 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.

[0186] 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.

[0187] 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.

[0188] 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.

[0189] 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.

[0190] 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.

[0191] 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.

[0192] 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.

[0193] 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).

[0194] 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.

[0195] 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 arranged 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.

[0196] 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.

[0197] 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.

[0198] 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.

[0199] 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.

[0200] 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.

[0201] 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.

[0202] 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.

[0203] 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).

[0204] 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.

[0205] 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.

[0206] 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.

[0207] For example, Alice 103a wants to create a transaction 152j that transfers an amount of digital assets of interest to Bob 103b. In FIG. 2, Alice's new transaction 152j is labeled "Tx1". It takes the amount of digital assets locked to Alice in the output 203 of the preceding transaction 152i in the sequence and transfers at least a portion of it to Bob. The preceding transaction 152i is labeled "Tx0" in FIG. 2. Tx0 and Tx1 are merely arbitrary labels. They do not necessarily mean that Tx0 is the first transaction in the blockchain 151, nor that Tx1 is the immediate next transaction in the pool 154. Tx1 can also refer to any preceding (i.e., previous) transaction that still has unspent outputs 203 locked to Alice.

[0208] The preceding transaction Tx0 may already be validated and included in a block 151 of the blockchain 150 by the time Alice creates the new transaction Tx1, or at least sends it to the network 106. It may already be included in one of the blocks 151 at that time, or may still be waiting in the ordered set 154, in which case it will be included in the new block 151 soon. Alternatively, Tx0 and Tx1 may be created together and sent to the network 106 together, or Tx0 may even be sent after Tx1 if the node protocol allows for buffering of "orphan" transactions. 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 transactions (which transactions point to which other transactions, 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, subsequent transactions (descendant transactions or "children") that point to a preceding transaction (the previous transaction or "parent") are 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 its parent, depending on the node protocol and / or node behavior.

[0209] One of the one or more outputs 203 of the preceding transaction Tx0 includes a particular UTXO, here labeled UTXO0. 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 an unlocking script in the input 202 of the 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 the subsequent transaction includes a cryptographic signature of the party to whom the preceding transaction is locked.

[0210] A lock script (also called scriptPubKey) is a piece of code written in a domain-specific language recognized by the node protocol. A particular 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.

[0211] Thus, in the illustrated example, UTXO0 in output 203 of Tx0 must have Alice's signature Sig P in order for UTXO0 to be redeemed (or, more precisely, for a subsequent transaction attempting to redeem UTXO0 to be valid). A Requires lock script [Checksig P A ] is equipped. A ] is the public key P from Alice’s public-private key pair.A , a representation (i.e., a hash) of Tx1's UTXO0. Tx1's input 202 includes a pointer to Tx1 (e.g., with its transaction ID, TxID0, which in an embodiment is a hash of the entire transaction Tx0). Tx1's input 202 includes an index that identifies UTXO0 within Tx0 to identify it among any other possible outputs of Tx0. Tx1's input 202 includes an unlock script that contains 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.

[0212] When a new transaction Tx1 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 putting data on the stack, and "[...]" is a function that is constructed by the lock script (a stack-based language in this example). Equivalently, the 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 create a lock script that contains Alice's public key P, as contained in the lock script in the output of Tx0. A, to authenticate that the unlock script in the input for Tx1 contains Alice's signature, signing the expected portion of the data. In order to perform this authentication, the expected portion of the data itself (the "message") must also be included. In an embodiment, the signed data includes the entirety of Tx1 (and thus there is no need to include a separate element specifying the signed portion of the data in plaintext, since it is already inherently present).

[0213] 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.

[0214] If the unlock script of Tx1 satisfies one or more conditions specified in the lock script of Tx0 (thus, in the illustrated example, Alice's signature is provided and authenticated in Tx1), the blockchain node 104 considers Tx1 valid. This means that the blockchain node 104 adds Tx1 to the ordered pool of pending transactions 154. The blockchain node 104 also forwards the transaction Tx1 to one or more other blockchain nodes 104 in the network 106, thereby propagating it throughout the network 106. After Tx1 is validated and entered into the blockchain 150, it defines Tx0 to UTXO0 as spent. Note that Tx1 can only be valid if it consumes an unspent transaction output 203. If it attempts to consume an output that has already been consumed by another transaction 152, Tx1 becomes invalid even if all other conditions are met. Therefore, a blockchain node 104 also needs to check whether the UTXO referenced in the preceding transaction Tx0 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 has been spent is whether it already forms a valid input to another valid transaction in the blockchain 150.

[0215] 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.

[0216] 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 may be split among multiple outputs of a subsequent transaction. For example, the amount defined in UTXO0 in Tx0 may be split among multiple UTXOs in Tx1. Thus, if Alice does not want to give Bob all of the amount defined in UTXO0, she can use the remainder to give herself change in the second output of Tx1 or to pay another party.

[0217] In practice, Alice would also typically 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, Tx0 will be rejected by the blockchain node 104 and thus, although technically valid, will not be propagated and will not be included in the blockchain 150 (the node protocol does not force blockchain nodes 104 to accept the 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, a pointer to UTXO0 is the only input to Tx1, which has only one output UTXO1. If the amount of the digital asset specified in UTXO0 is greater than the amount specified in UTXO1, the difference may be allocated by the node 104 that won the proof-of-work race to create the block containing UTXO1. However, it is not necessarily excluded that a transaction fee may alternatively, or in addition, be explicitly specified in one of the UTXOs 203 of transaction 152 itself.

[0218] 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.

[0219] 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.

[0220] 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).

[0221] 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.

[0222] 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.

[0223] 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.

[0224] 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.

[0225] 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).

[0226] 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.

[0227] 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.

[0228] The term "user" may be used herein to include a human or a machine-based entity.

[0229] 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]

[0230] 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 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

Claims

1. 1. A computer-implemented method for downloading at least a portion of a blockchain block that includes a plurality of blockchain transactions and a root of a Merkle tree for the block, the method comprising: allocating respective subsets of the blockchain transactions to a plurality of processing resources, each respective subset providing a respective portion of the Merkle tree and represented by a respective interior node of the Merkle tree; downloading a respective subset of the blockchain transactions using one, some, or all of the plurality of processing resources; 4. A computer-implemented method comprising:

2. 2. The method of claim 1, further comprising: one, some, or all of the plurality of processing resources transmitting respective subsets of the blockchain transactions to a central storage location.

3. Each of the internal nodes of the Merkle tree has a respective position within the Merkle tree, and the method 3. The method of claim 2, comprising arranging the respective subsets of the blockchain transactions based on the respective positions of the respective internal nodes of the Merkle tree.

4. one, some, or all of the processing resources generating respective candidate internal nodes of the Merkle tree based on the respective downloaded subsets of blockchain transactions; verifying that each of the candidate internal nodes matches the respective internal node of the Merkle tree; and / or verifying that each of the candidate internal nodes is a node of the Merkle tree by performing a Merkle proof based on the root of the Merkle tree; and / or transmitting each of the candidate internal nodes of the Merkle tree to one or more other processing resources. The method of claim 1 , further comprising at least one of the following:

5. 5. The method of claim 1, further comprising: validating a respective subset of blockchain transactions using one, some, or all of the plurality of processing resources.

6. Validating the respective subset of blockchain transactions includes: i) validating and / or verifying at least one blockchain transaction; and / or ii) implementing a Simplified Payment Verification process; and / or iii) checking whether a given blockchain transaction is contained within said blockchain block; and / or iv) 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 a header of the blockchain block.

2. The method of claim 1, comprising:

7. 7. The method of claim 1, wherein at least one of the respective subsets of blockchain transactions includes a respective identifier associated with the respective subset that identifies and / or represents the respective subset.

8. 8. The method of claim 7, wherein the respective identifiers facilitate calculation of a respective position of the at least one respective subset within the Merkle tree.

9. 9. The method of claim 7 or claim 8, wherein the respective identifiers are based on the respective internal nodes of the Merkle tree.

10. 10. The method of claim 9, wherein the respective identifiers comprise a portion of the respective internal nodes of the Merkle tree.

11. 11. The method of claim 1, wherein the step of allocating the respective subsets of blockchain transactions to the plurality of respective processing resources comprises matching the respective subsets of transactions to respective processing resources based on respective identifiers associated with the respective subsets of transactions.

12. 12. The method of claim 1, wherein the Merkle tree comprises a binary tree or a mesh structure of hashes of the plurality of blockchain transactions.

13. 13. The method of claim 1, further comprising identifying and / or determining the subset of blockchain transactions within the plurality of blockchain transactions.

14. 14. The method of claim 1, 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.

15. 1. 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 said block, the system comprising a plurality of processing resources, the plurality of processing resources comprising: A processor; a memory containing executable instructions that, upon execution by the processor, cause the system to perform the computer-implemented method of any one of claims 1 to 14; A blockchain processing system comprising:

16. A non-transitory computer-readable storage medium having stored thereon executable instructions that, when executed by a processor of a computer system, cause a computer system to perform the computer-implemented method of any one of claims 1 to 14.

Citation Information

Patent Citations

  • Parallel merkle tree construction and verification method suitable for energy block chain

    CN111581214A

  • High-Performance Distributed Recording System

    JP2021508877A

  • Photoprotective compositions containing Malassezia-derived compounds and / or chemical analogs thereof

    JP2021527710A

  • Scaling and accelerating decentralized execution of transactions

    US20210273807A1

  • Computer-implemented systems and methods for implementing transfers over a blockchain network

    WO2020165676A1