Multiple Input Transactions

The on-chain mechanism for crowdfunding transactions addresses network congestion and blockchain bloat by enabling multiple users to collectively fund and access content efficiently, ensuring fair distribution and fraud prevention.

JP7543313B2Active Publication Date: 2024-09-02NCHAIN LICENSING AG
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2021567926
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-05-24
Filing Date
2020-04-21
Publication Date
2024-09-02
Estimated Expiration
2040-04-21

AI Technical Summary

Technical Problem

Existing blockchain-based content delivery systems face inefficiencies in managing one-to-one relationships between streamers and users, leading to network congestion and blockchain bloat due to the need for individual transactions per data packet, and lack an integrated mechanism for releasing crowdfunded content to multiple users.

Method used

An on-chain mechanism that allows multiple users to collectively fund content through a crowdfunding transaction, where inputs are added via a side channel until the target is reached, and a second transaction is propagated to the blockchain to release the content once the target is met, ensuring validity and accessibility.

Benefits of technology

Reduces network congestion and blockchain bloat by allowing multiple users to access content efficiently, integrating crowdfunding results into on-chain mechanisms, and ensuring fair distribution of content without fraud.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007543313000008
    Figure 0007543313000008
  • Figure 0007543313000009
    Figure 0007543313000009
  • Figure 0007543313000006
    Figure 0007543313000006
Patent Text Reader

Abstract

A method for enabling a plurality of users to access an item of media content includes, by a vendor of the media content, providing (i) one or more outputs, the output including at least a first output specifying an amount of digital assets to be transferred to the vendor, and (ii) a first transaction initially including a total of zero or more inputs, the first transaction including a total of zero or more inputs, the total input amount of the digital assets specified in any output of any source transaction pointed to by the zero or more inputs being less than the total output amount of the digital assets specified by the one or more outputs, the first output of the first transaction being executed by an unlock script to unlock the first output. receiving an input from each of the plurality of users via a side channel and adding it to the first transaction, where each received input points to an output of a source transaction specifying the amount of the digital asset; and, upon reaching a target and a total input amount pointed to by the inputs of the first transaction being equal to or greater than the total output amount, causing the first and second transactions to be recorded on a blockchain network, where the second transaction points to the first output of the first transaction and includes the unlock script that satisfies the condition.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to mechanisms for delivering content to users, and utilizes the concept of input-level adaptability in the context of blockchain-based systems, i.e., the ability to add (or remove) inputs to a transaction without invalidating the transaction. [Background technology]

[0002] Blockchain refers to a form of distributed data structure in which a duplicate copy of the blockchain is maintained at each of multiple nodes in a peer-to-peer (P2P) network. A blockchain contains a chain of blocks of data, with each block containing one or more transactions. Each transaction may point to the previous transaction in the sequence. Transactions can be submitted to the network for inclusion in a new block. New blocks are generated by a process known as "mining." "Mining" involves each of multiple mining nodes competing to perform a "proof-of-work," i.e., solving a cryptographic puzzle based on a pool of pending transactions waiting to be included in a block.

[0003] Traditionally, transactions in a blockchain are used to transfer digital assets, i.e. data that acts as a store of value. However, blockchains can also be used to stack additional functionality on top of the blockchain. For example, blockchain protocols may allow additional user data to be stored in the output of a transaction. Modern blockchains increase the maximum amount of data that can be stored in a single transaction, allowing more complex data to be incorporated. For example, this can be used to store electronic documents, or audio or video data, in the blockchain.

[0004] Each node in the network can have any one, two, or all three roles: forwarding, mining, and storage. Each forwarding node propagates a (valid) transaction to one or more other nodes, thus propagating the transaction among themselves through the nodes of the network. Each mining node competes to mine the transaction into a block. Each storage node stores their own copy of the mined block of the blockchain. To have a transaction recorded in the blockchain, a party sends the transaction to one of the nodes of the network to be propagated. Mining nodes that receive a transaction may compete to mine the transaction into a new block. Each node is configured to respect the same node protocol, which includes one or more conditions for a transaction to be valid. Invalid transactions are neither propagated nor mined into a block. Assuming the transaction is verified and thereby accepted into the blockchain, the transaction (including any user data) thus remains stored in each node of the P2P network as an immutable public record.

[0005] Miners who successfully solve the proof-of-work puzzle to generate an updated block are typically rewarded with a new transaction, called a "generation transaction," that generates a new amount of the digital asset. The transaction may also optionally specify an additional mining fee for successful miners. Proof-of-work encourages miners not to cheat the system by including double-spending transactions in their blocks, because it requires a significant amount of computational resources to mine a block, and because blocks containing double-spending attempts may not be accepted by other nodes. In an “output-based” model (sometimes called a UTXO-based model), the data structure of a given transaction includes one or more inputs and one or more outputs. Any spendable output includes an element, sometimes called a UTXO (for “unspent transaction output”), that specifies an amount of digital assets. The output may further include a locking script that specifies a condition for redeeming the output. Each input includes a pointer to such an output in a prior transaction and may further include an unlocking script for unlocking the pointed-to output’s locking script. Thus, when considering a pair of transactions, we refer to them as a first transaction and a second transaction. The first transaction includes at least one output that includes a locking script that specifies an amount of digital assets and defines one or more conditions for unlocking the output. The second transaction includes at least one input that includes a pointer to an output of the first transaction and an unlocking script for unlocking the output of the first transaction.

[0006] In such a model, when the second transaction is sent to the P2P network to be propagated and recorded in the blockchain, one of the validity criteria applied at each node is that the unlock script meets the requirements defined in the lock script of the first transaction. Another condition for the second transaction to be valid is that the output of the first transaction has not yet been redeemed by another valid transaction. Any node that finds the target transaction invalid according to any of these conditions will not propagate the transaction or mine it for inclusion in a block for recording in the blockchain. Another condition is that the total amount of digital assets specified by the outputs does not typically exceed the total amount pointed to by the inputs of the transaction. Given the case where this is not the case, in most protocols, any positive difference between the total output amount and the total input amount is automatically left as an additional mining fee on top of the amount provided in the generating transaction. Today, in practice, the total input amount must exceed the total output amount by enough mining fees to make the transaction accepted by miners, even if it is valid (protocols typically do not force miners to accept valid transactions into their pools, but must incentivize them to do so).

[0007] Returning to the concept of a locking script, for example, a target transaction is for carrying an amount of a digital asset from a first party ("Alice") to a second party ("Bob"). One of the requirements defined in the locking script of the preceding first transaction is, typically, that the unlocking script of the second transaction includes Alice's cryptographic signature. The signature must be generated by Alice signing a portion of the second transaction. Which portion this is may be flexibly defined by the unlocking script, or may be an inherent feature of the node protocol, depending on the protocol used. However, the portion to be signed typically excludes certain other portions of the second transaction, such as part or all of the unlocking script itself.

[0008] This creates the possibility of "malleability" - that is, parts of the second transaction that were not signed prior to mining can be changed ("malleated") without invalidating the transaction. Malleability is a concept known in cryptography. It is usually known as a security concern, whereby a message can be maliciously altered and still be accepted as authentic. In the context of blockchain, malleability is not necessarily a concern, but is simply known as a strange artifact, whereby certain parts of a transaction can be changed without invalidating the transaction.

[0009] Recently, a proposal has been made to judiciously exploit adaptability in order to use transactions as carriers of media data: the data content can be included in the unlock script of a transaction, which is then sent between parties via a side channel. One of the parties then malleates the transaction to remove the data and sends the modified version towards the P2P network to be mined (while if the data had not been removed, the transaction would have bloated the blockchain and typically also required higher mining fees, since the reward required by miners to accept the transaction typically scales with the data size of the transaction).

[0010] Side channels, such as payment channels, allow transactions or data related to transactions to be exchanged "off-chain" between parties before the transaction is broadcast to the P2P network to be recorded on the blockchain. Side channels are separate from the P2P overlay network, and therefore any transaction sent through a side channel is not propagated through the network for recording on the blockchain until one of the parties chooses to publish it to the network. Standard payment channels require a "funding transaction" whereby both parties effectively escrow their funds together. The funding transaction is broadcast to set up the channel, and then, once the targeted service has been provided, a settlement transaction is broadcast to close the channel, consuming the funding transaction.

[0011] There are also several existing proposals for a "micropayment channel", i.e., sending a sequence of transactions from one party ("Alice") to another party ("Bob") for the purpose of paying Bob in small installments. This does not require funding transactions. At least one existing protocol uses a side channel to stream movie data in packets: Bob sends Alice a sequence of data packets, and in response to each packet, Alice sends back a respective transaction, which Bob then broadcasts to the network to obtain payment for each packet of the movie.

[0012] Another separate known use of side channels is to enable crowdfunding of transactions. A fundraising party, say Bob, creates a template transaction with at least one output that specifies the desired amount to be transferred to himself or a third party acting on his behalf. However, this transaction does not yet contain enough inputs to reach the target amount. Thus, the template transaction is initially invalid because the total amount of digital assets pointed to by its inputs is less than the total payment specified in its outputs. Bob makes the template transaction available to the public by publishing it off-chain on a server. Members of the public can then malleate the template transaction on the server by adding inputs, which incrementally add up towards the target amount until the transaction is valid. Once the target is reached, Bob publishes it to the P2P network to have it mined into a block. In practice, the target needs to be slightly more than the specified payment to Bob to cover the mining fees. Summary of the Invention

[0013] The problem with the existing scheme of delivering content to users via fine-payment channels is that it only allows for a one-to-one relationship between the streamer and an individual streamee. A single user needs to pay for each data packet to be streamed, which is then returned to the specific individual user via a side channel. If another user wants to stream the same content, they need to replicate this process with the streamer, sending their own stream of transactions each paying the streamer again for each packet. Over many users, this has the effect of increasing network congestion on the P2P network and blowing up the blockchain due to the huge number of transactions that need to be published to the network and recorded on the blockchain (one transaction per user per packet).

[0014] Alternatively, in principle, crowdfunding technology could be used to allow multiple parties to collectively fund a piece of content by each adding an input to a common transaction. This means that the number of transactions that need to be issued to the P2P network scales only per packet or chunk of content, not per user, thus mitigating problems of network congestion and blockchain bloat. However, a problem with existing crowdfunding concepts is that they do not provide a unified mechanism for releasing content to users once the crowdfunding target has been reached.

[0015] The present disclosure provides an on-chain, integrated mechanism for releasing crowdfunded content to users.

[0016] According to one aspect disclosed herein, there is provided a computer-implemented method for enabling multiple users to access an item of media content, the method comprising: providing a first transaction, the first transaction including (i) one or more outputs including at least a first output specifying an amount of digital assets to be transferred to the vendor, and (ii) initially including a total of zero or more inputs, where a total input amount of digital assets specified in any output of any source transaction specified by the zero or more inputs is less than a total output amount of digital assets specified by the one or more outputs, the first output of the first transaction including a lock script specifying a condition to be satisfied by an unlock script to unlock the first output, the method including receiving an input from each of the plurality of users via a side channel, and adding each received input to the first transaction, where each received input points to an output of a respective source transaction specifying an amount of the digital assets. When a target is reached, such that a total input amount pointed to by inputs of the first transaction equals or exceeds the output amount, the method includes publishing the first transaction and a second transaction to a blockchain network for recording on the blockchain, the second transaction including an input that points to the first output of the first transaction and including an unlock script that satisfies the condition, the condition specified by the lock script requiring that the unlock script include a media key that allows the user to access an item of media content.

[0017] The first transaction is hosted on a server, at least until it reaches the target, and input received from the user is received by the server and added to the first transaction which is stored on the server (wherein a server may represent any serving computing equipment implemented in one or more physical units at one or more geographic sites).

[0018] For each of a plurality of transactions including the target transaction, at least some nodes of the network are configured to propagate each transaction, provided that the transaction is valid, and at least some nodes are configured to record each transaction in their copy of the blockchain, provided that the transaction is valid. The validity of the first transaction is conditional on the total input amount being at least equal to the total output amount. This means that a transaction cannot become valid until enough inputs are collected from users (e.g., Alice, Adam, Agnes, etc.) to meet the target. Furthermore, the validity of the second transaction is conditional on an unlock script unlocking the output of the first transaction. This means that when a party executing the method (e.g., Bob) wants to claim an output amount, he must publish an unlock key into the blockchain. Once the key is immutably published into a public, inspectable blockchain, this allows a user to look up the unlock key and use it to consume a targeted data item from an off-chain data source. Optionally, Bob may also send the unlock key directly to one, some, or all of the users via a side channel instead of requiring them to retrieve it from the blockchain, but the fact that it must be published on the blockchain allows the users to retrieve the unlock key themselves from the blockchain if Bob does not send it separately to them, thus Bob cannot scam the system.

[0019] In an embodiment, the method may include repeating the method for each of a plurality of data items, each item of content forming a different respective one of a sequence of portions of media content. For example, a piece of media content may include text, audio, and / or video content. It may include, for example, a TV or spoken word program episode, a movie, a series of program episodes. In an embodiment, a portion may be a given episode streamed in real time to a user, or an independent program or movie, e.g., a packet of a TV program or spoken word program. Alternatively, the portions may be, for example, different episodes of a series.

[0020] According to another aspect of the present disclosure, a corresponding method is provided that is performed by one of the users.

[0021] According to further aspects disclosed herein, there is provided a program for carrying out the method and / or a computing device programmed to carry out the vendor's or user's method. [Brief description of the drawings]

[0022] To aid in the understanding of embodiments of the present disclosure and to show how such embodiments may be put into effect, reference is made, by way of example only, to the accompanying drawings in which: [Figure 1] FIG. 1 is a schematic block diagram of a system for implementing a blockchain. [Diagram 2] 1 illustrates diagrammatically some examples of transactions that may be recorded on a blockchain. [Diagram 3] FIG. 1 is a schematic block diagram of another system for implementing a blockchain. [Figure 4] FIG. 1 is a schematic block diagram of a system for releasing crowdfunding content to multiple users via a blockchain. [Diagram 5] FIG. 2 is a schematic diagram of a set of transactions. [Figure 6]1 is a flow chart illustrating a method for crowdfunding and releasing an item of media content to multiple users. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] <System Overview> FIG. 1 illustrates an exemplary system 100 for implementing a blockchain 150. The system 100 includes a packet-switched network 101, which is typically a wide area internetwork such as the Internet. The packet-switched network 101 includes a number of nodes 104 arranged to form a peer-to-peer (P2P) overlay network 106 within the packet-switched network 101. Each node 104 includes a peer computing device with different nodes 104 belonging to different peers. Each node 104 includes a processing device including one or more processors, e.g., one or more central processing units (CPUs), accelerator processors, application specific processors, and / or field programmable gate arrays (FPGAs). Each node also includes a memory, i.e., a computer-readable storage device in the form of one or more non-transitory computer-readable media. The memory may include one or more memory units using one or more memory media, e.g., magnetic media such as hard disks, electronic media such as solid-state drives (SSDs), flash memory or EEPROMs, and / or optical media such as optical disk drives.

[0024] Blockchain 150 refers to a chain of blocks 151 of data, with a respective copy of the blockchain 150 maintained at each of multiple nodes in a peer-to-peer (P2P) network 160. Each block 151 in the chain includes one or more transactions 152, where 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 typically 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 the quantity of a digital asset belonging to a user for which that output is cryptographically locked (requiring that user's 103 signature to be unlocked and thereby redeemed or used). Each input points back to the output of a preceding transaction 152, thereby linking the transactions.

[0025] At least some of the nodes 104 assume the role of forwarding nodes 104F, which forward and thereby propagate transactions 152. At least some of the nodes 104 assume the role of miners 104M, which mine blocks 151. At least some of the nodes 104 assume the role of storage nodes 104S (also called "full-copy" nodes), with each node storing a respective copy of the same blockchain 150 in its respective memory. Each miner node 104M also maintains a pool 154 of transactions 152 waiting to be mined into blocks 151. A given node 104 may be a forwarding node 104, a miner 104M, a storage node 104S, or any combination of two or all of these.

[0026] For a given current transaction 152j, the input (or each of them) includes a pointer that references the output of a previous transaction 152i in the sequence of transactions, specifying that this output is redeemed or "spent" in the current transaction 152j. In general, the previous transaction can be any transaction in the pool 154 or any block 151. The previous transaction 152i does not necessarily have to exist when the current transaction 152j is created or sent to the network 106, but the previous transaction 152i must exist and be verified in order for the current transaction to be concluded. Thus, "preceding" in this specification refers to something that precedes in a logical sequence linked by a pointer, and not necessarily to a time of creation or transmission in the chronological order. Thus, it does not necessarily exclude transactions 152i, 152j from being created or sent out of order (see the discussion of orphan transactions below). A preceding transaction 152i may equally be referred to as an antecedent or predecessor transaction.

[0027] The input of the current transaction 152j also includes the signature of the user 103a to whom the output of the previous transaction 152i is locked. The output of the current transaction 152j can also be cryptographically locked to the new user 103b. Thus, the current transaction 152j can transfer an amount defined in the input of the previous transaction 152i to the new user 103b defined in the output of the current transaction 152j. In some cases, a transaction 152 may have multiple outputs and split the input amount among multiple users (one of which is the original user to make the change). In some cases, a transaction may have multiple inputs and combine amounts from multiple outputs of one or more previous transactions and redistribute them into one or more outputs of the current transaction.

[0028] This is sometimes called an "output-based" transaction protocol, and sometimes also called an "unspent transaction output (UTXO) type protocol" (where the outputs are called UTXOs). A user's total balance is not defined by one number stored in the blockchain, instead, the user needs a special "wallet" application 105 to collate the values ​​of all of the user's UTXOs, which are distributed across many different transactions 152 in the blockchain 151.

[0029] As part of the account-based transaction model, another type of transaction protocol is sometimes called an "account-based" protocol. In the account-based case, each transaction transfers by referencing absolute account balances, rather than defining the amount transferred by referencing back to the UTXO of a preceding transaction in the past series of transactions. The current state of all accounts is stored and constantly updated by miners separate from the blockchain. This disclosure relates to an output-based model rather than an account-based one.

[0030] In both types of transaction protocols, when a user 103 wants to execute a new transaction 152j, he sends the new transaction from his computer terminal 102 to one of the nodes 104 of the P2P network 106 (currently usually a server or a data center, but in principle it could be another user terminal). This node 104 checks whether the transaction is valid according to a node protocol applied to each node 104. The details of the node protocol correspond to the type of transaction protocol used in the blockchain 150 in question and together form an overall transaction model. The node protocol typically requires the nodes 104 to 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 the output-based case, this may include checking that the cryptographic signature of the user included in the input of the new transaction 152j matches a condition defined in the output of the previous transaction 152j that the new transaction consumes, which typically includes at least checking that the cryptographic signature in the input of the new transaction 152j unlocks the output of the previous transaction 152i to which the input of the new transaction points. In some transaction protocols, the condition may be defined, at least in part, by custom script included in the input and / or output. Alternatively, it may be fixed solely in the node protocol, or by a combination of these. In any case, if the new transaction 152j is valid, the current node forwards the new transaction to one or more other nodes of the nodes 104 in the P2P network 106. At least some of these nodes 104 also act as forwarding nodes 104F, applying the same tests according to the same node protocol, and forwarding the new transaction 152j to one or more further nodes 104, etc.In this manner, the new transaction is propagated throughout the network of nodes 104.

[0031] In an output-based model, the definition of whether a given output (e.g., UTXO) is spent is whether it has already been validly redeemed by an input of another onward transaction 152j according to the node protocol. Another condition for a transaction to be valid is that the output of a preceding transaction 152i that it attempts to spend or redeem has not yet been consumed / redeemed by another valid transaction. Again, if it is not valid, the transaction 152j is not propagated or recorded in the blockchain. This prevents double-spending, where a payer tries to spend the same transaction's output multiple times.

[0032] In addition to validating, at least some of the nodes 104M compete to be the first to create a block of transactions in a process called mining, which is backed by a "proof of work." At the mining nodes 104M, new transactions are added to a pool of valid transactions that have not yet appeared in a block. Miners then compete to assemble a new valid block 151 of transactions 152 from the pool of transactions 154 by attempting to solve a cryptographic puzzle. This typically involves searching for a "nonce" value such that when the nonce is concatenated with the pool of transactions 154 and hashed, the output of the hash satisfies a predefined condition. For example, the predefined condition may be that the output of the hash has a predefined number of leading zeros. A property of a hash function is that it has an output that is unpredictable with respect to the input. This search can therefore only be performed by brute force and therefore consumes a significant amount of processing resources at each node 104M trying to solve the puzzle.

[0033] The first miner node 104M to solve the puzzle announces this to the network 106 and provides its solution as a proof. This solution can be easily checked by other nodes 104 in the network (it is easy to verify that the hash output satisfies the condition given the solution for the hash). The pool 154 of transactions for which the winner solved the puzzle is recorded as a new block 151 in the blockchain 150 by at least some of the nodes 104 acting as storage nodes 104S, based on checking the winner's published solution at each node. The new block 151n is also assigned a block pointer 155, which points to the previously created block 151n-1 in the chain. The proof-of-work helps to reduce the risk of double spending, since it takes a lot of effort to create a new block 151, and blocks containing double spending are likely to be rejected by other nodes 104, thus providing an incentive for mining nodes 104M not to include double spending in their blocks. Once created, blocks 151 cannot be altered because they are known and maintained at each storage node 104Si in the P2P network 106 according to the same protocol, and block pointers 155 impose an order on blocks 151. This provides an immutable public ledger of transactions, as transactions 152 are recorded in ordered blocks at each storage node 104S in the P2P network 106.

[0034] Note that different miners 104M, who are constantly competing to solve the puzzle, may be solving the puzzle based on different snapshots of the unmined transaction pool 154 at any given time, depending on when they started looking for a solution. Whoever solves the puzzle first defines the transactions 152 to be included in the next new block 151n, and the current unmined transaction pool 154 is updated. Miners 104M then continue to compete to produce blocks from the newly defined unsolved pool 154. There is also a protocol to resolve possible "forks", which are cases when two miners 104M solve the puzzle within a very short time of each other and inconsistent views of the blockchain propagate. In essence, whenever a branch of a fork grows, the longest one becomes the final blockchain 150.

[0035] In most blockchains, the winning miner 104M is automatically rewarded with a special type of new transaction that creates a new amount of digital assets out of nothing (a normal transaction transfers an amount of digital assets from one user to another). Thus, the winning node is said to have "mined" an amount of digital assets. This special type of transaction is sometimes called a "generation" transaction; it automatically forms part of a new block 151n. This reward incentivizes miners 104M to participate in proof-of-work competitions. Often, normal (non-generation) transactions specify an additional transaction fee in one of their outputs to further reward the winning miner 104M who generated the block 151n that contains the transaction.

[0036] Due to the computational resources involved in mining, typically at least each of the miner nodes 104M takes the form of a server including one or more physical server units, or an entire data center. Each transfer node 104M and / or storage node 104S may also take the form of a server or a data center. However, in principle, any given node 104 may include a user terminal or a group of user terminals networked together.

[0037] The memory of each node 104 stores software configured to run on the processing unit of the node 104 to perform one or more respective roles and to process transactions 152 in accordance with the node protocol. It will be understood that any operation attributed to a node 104 may be performed by software executing on the processing unit of the respective computing device. Additionally, the term "blockchain" as used herein is a general term referring to a general type of technology and is not limited to any particular proprietary blockchain, protocol or service.

[0038] Also connected to the network 101 are computing devices 102 of each of a number of parties 103 acting as consumer users. These act as payers and payees in transactions, but do not necessarily participate in mining or propagating transactions on behalf of the other parties. They do not necessarily execute the mining protocol. Two parties 103 and their respective devices 102 are shown for illustrative purposes: a first party 103a and its respective computing device 102a, and a second party 103b and its respective computing device 102b. It will be understood that many more such parties 103 and their respective computing devices 102 may exist and participate in the system, but for convenience they are not shown. 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, but it will be understood that this is not limiting and that references herein to Alice or Bob may be substituted with "first party" and "second party", respectively.

[0039] The computing equipment 102 of each party 103 comprises a respective processing device comprising one or more processors, for example one or more CPUs, GPUs, other accelerator processors, application specific processors, and / or FPGAs. The computing equipment 102 of each party 103 further comprises a memory, i.e. a computer readable storage device in the form of a non-transitory computer readable medium or media. This memory may include one or more memory units using, for example, 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 computing equipment 102 of each party 103 stores software including a respective instance of at least one client application 105 arranged to operate on the processing device. It will be understood that any operation belonging to a given node 104 may be performed by using software executed on the processing device of the respective computing equipment 102. The computing equipment 102 of each party 103 comprises at least one user terminal, for example a desktop or laptop computer, a tablet, a smartphone, or a wearable device such as a smart watch. The computing device 102 of a given party 103 may also include one or more other networked resources, such as cloud computing resources, accessed via a user terminal.

[0040] The client application or software 105 may be initially provided to the computing equipment 102 of any given party 103 on one or more suitable computer readable storage media, for example downloaded from a server, or 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, for example a CD or DVD ROM, or a removable optical drive.

[0041] The client application 105 has at least a "wallet" functionality, which has two main functions. One of these is to allow each user party 103 to create, sign and send transactions 152 that are propagated throughout the network of nodes 104 and thereby included in the blockchain 150. The other is to report to each party the amount of digital assets that it currently owns. In an output-based system, this second function involves reconciling the amount defined in the outputs of the various transactions 152 scattered throughout the blockchain 150 that belong to that party.

[0042] An instance of the client application 105 on each computing device 102 is operatively coupled to at least one of the forwarding nodes 104F of the P2P network 106. This allows the wallet function of the client 105 to transmit the transaction 152 to the network 106. The client 105 can also contact one, some, or all of the storage nodes 104 to query the blockchain 150 for any transactions in which the respective party 103 is a recipient (or, in an embodiment, actually inspect the transactions of other parties in the blockchain 150, since the blockchain 150 is a public facility that provides trust of transactions in part through its public visibility). The wallet function on each computing device 102 is configured to form and transmit the transaction 152 according to a transaction protocol. Each node 104 executes software configured to validate the transaction 152 according to the node protocol and, in the case of a forwarding node 104F, forward the transaction 152 for propagation throughout the network 106. The transaction protocol and the node protocol correspond to each other, and a given transaction protocol implements a given transaction model together with a given node protocol. The same transaction protocol is used for all transactions 152 in the blockchain 150 (although a transaction protocol may allow different subtypes of transactions). The same node protocol is used by all nodes 104 in the network 106 (although many nodes may handle different transaction subtypes differently according to rules defined for that subtype, and different nodes may take on different roles and thus implement different corresponding aspects of the protocol).

[0043] As mentioned above, the blockchain 150 includes a chain of blocks 151, each of which includes a set of one or more transactions 152 created by the proof-of-work process, as described above. Each block 151 also includes a block pointer 155 that points back to a previously created block 151 in the chain, so as to define a sequential order to the blocks 151. The blockchain 150 also includes a pool of valid transactions 154 waiting to be included in a new block by the proof-of-work process. Each transaction 152 includes a pointer to a previous transaction, so as to define an order to the sequence of transactions (note: the sequence of transactions 152 is allowed to diverge). The chain of blocks 151 goes back to a genesis block (Gb) 153, which was the first block in the chain. Early in the chain 150, one or more original transactions 152 pointed to the genesis block 153, but not to a preceding transaction.

[0044] When a given party 103, for example Alice, wants to send a new transaction 152j to be included in the blockchain 150, she formulates the new transaction (using the wallet functionality of her client application 105) according to the relevant transaction protocol. Then, from the client application 105, she sends the transaction 152 to one of one or more transfer nodes 104F to which she is connected. For example, this may be the transfer node 104F that is closest or best connected to Alice's computer 102. When any given node 104 receives the new transaction 152j, it processes it according to the node protocol and its respective role. This includes first checking whether the newly received transaction 152j meets certain conditions to be "valid", examples of which will be detailed shortly. In some transaction protocols, the conditions for validation may be configurable per transaction by a script included in the transaction 152. Alternatively, the conditions may simply be a built-in feature of the node protocol, or may be defined by a combination of the script and the node protocol.

[0045] Provided that the newly received transaction 152j passes the tests to be considered valid (i.e., is "valid"), any storage node 104S that receives the transaction 152j adds the newly validated transaction 152 to a pool 154 in the copy of the blockchain 150 maintained by that node 104S. Additionally, any forwarding node 104F that receives the transaction 152j propagates the validated transaction 152 to one or more other nodes 104 in the P2P network 106. Because each forwarding node 104F applies the same protocol, assuming the transaction 152j is valid, this means that it will soon be propagated throughout the P2P network 106.

[0046] Once in the pool 154 in the copy of the blockchain 150 maintained in one or more storage nodes 104, the miner nodes 104M start competing to solve the proof-of-work puzzle of the latest version of the pool 154 that contains the new transaction 152 (other miners 104M are still trying to solve the puzzle based on their old view of the pool 154, but whoever gets there will first define where the next new block 151 ends and the new pool 154 begins, and eventually someone will solve the puzzle for the part of the pool 154 that contains Alice's transaction 152j). Once the proof-of-work has been done for the pool 154 that contains the new transaction 152j, it becomes part of one of the blocks 151 in the blockchain 150. Since each transaction 152 contains a pointer to the previous transaction, the order of the transactions is also immutably recorded.

[0047] Figure 2 shows an example of a transaction protocol. This is an example of a UTXO-based protocol. A transaction 152 (abbreviated as "Tx") is the 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 implementations.

[0048] In a UTXO-based model, each transaction ("Tx") 152 includes 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), which can be used as a source of input 202 for another new transaction (if the UTXO has not yet been redeemed). The UTXO specifies an amount of a digital asset (a store of value). It includes, among other information, the transaction ID of the transaction from which it originated. The transaction data structure may also include a header 201, which may include an indicator of the size of the input fields 202 and the output fields 203. The header 201 may also include an ID for the transaction. In an embodiment, the transaction ID is a hash of the transaction data (minus the transaction ID itself) and is stored in the header 201 of the outstanding transaction 152 submitted to the miner 104M.

[0049] For example, suppose Alice 103a wants to create a transaction 152j that transfers the amount of the digital asset in question to Bob 103b. In FIG. 2, Alice's new transaction 152j is labeled "Tx1". It takes the amount of the digital asset locked to Alice into 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 or that Tx1 is the immediate next transaction in the pool 154. Tx1 could point to any preceding (i.e., ancestor) transaction that still has an unspent output 203 locked to Alice.

[0050] The preceding transaction Tx0 may already be validated and included in the blockchain 150 by the time Alice creates her new transaction Tx1, or at least by the time she sends it to the network 106. It may already be included in one of the blocks 151 at that point, or it may still be waiting in the pool 154, in which case it will be included in the new block 151 immediately. Alternatively, Tx0 and Tx1 may be generated and sent to the network 102, or Tx0 may be sent after Tx1 if the node protocol allows for buffering of "orphan" transactions. The terms "preceding" and "following" as used herein in the context of a sequence of transactions refer to the order of transactions in a sequence defined by transaction pointers specified in the transaction (such as which transaction points to which other transaction). They may equally be replaced by "predecessor" and "inheritor" or "ancestor" and "descendant", "parent" and "child", etc. This does not necessarily mean the order in which they are created, sent to the network 106, or arrive at any given node 104. Nevertheless, a subsequent transaction (descendant transaction or "child") that points to a preceding transaction (ancestor transaction or "parent") will not be validated unless the parent transaction is validated. A child that arrives at node 104 before its parent is considered an orphan. It may be discarded or buffered for a certain amount of time to wait for its parent, depending on the node protocol and / or miner behavior.

[0051] One of the one or more outputs 203 of the preceding transaction Tx0 includes a particular UTXO, labeled herein as 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 following transaction for the following transaction to be validated, and thus for 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 the unlocking conditions as follows: the unlocking script in the input of the following transaction includes a cryptographic signature of the party to whom the preceding transaction was locked.

[0052] A lock script (aka scriptPubKey) is a piece of code written in a domain-specific language recognized by the node protocol. A specific example of such a language is called "script" (Script, capital S). A lock script specifies the information needed to consume a transaction output 203, e.g., the requirements of Alice's signature. An unlock script appears in the transaction's output. An unlock script (aka scriptSig) is a piece of code written in a domain-specific language that provides the information needed to satisfy the criteria of the lock script. For example, it may include Bob's signature. An unlock script appears in the transaction's inputs 202.

[0053] In the example shown, UTXO0 of output 203 of Tx0 is A ], which means that Alice's signature SigP must be present in order for UTXO0 to be redeemed (or, more precisely, for a subsequent transaction that attempts to redeem UTXO0 to be valid). A[ChecksigPA] contains the public key PA from Alice's public / private key pair. Input 202 of Tx1 contains a pointer to Tx1 (e.g., by its transaction ID, TxID0, which in an embodiment is a hash of the entire transaction Tx0). Input 202 of Tx1 contains an index that identifies UTXO0 in Tx0, in order to identify it among any other possible outputs of Tx0. Input 202 of Tx1 further contains an unlock script that contains Alice's cryptographic signature, created by Alice applying her private key from her key pair to a given portion of data (sometimes called a "message" in cryptography). <sigpa>The data (or "message") that Alice needs to sign in order to provide a valid signature may be defined by the lock script, or by the node protocol, or by a combination of these.

[0054] When a new transaction Tx1 arrives at node 104, the node applies the node protocol, which involves running the lock script and the unlock script together to check if the unlock script satisfies the conditions defined in the lock script (which may include one or more criteria). In an embodiment, this involves concatenation of the two scripts. <SigP A > <P A > || [Checksig P A ] Here, "||" represents concatenation, "<...>" means to place data on a stack, and "[...]" are functions contained in the unlock script (in this example, a stack-based language). Equivalently, the scripts may be executed one by one with a common stack rather than concatenating them. Either way, when executed together, the scripts will use Alice's public key P, contained in the lock script in the output of Tx0. A is used to authenticate that the lock script in the input of Tx1 contains Alice's signature, which signs the expected portion of the data. The expected portion of the data (the "message") also needs to be included in Tx0 in order to perform this authentication. In an embodiment, the signed data comprises the entirety of Tx0 (thus a separate element needs to be explicitly included in the specification of the signed portion of the data, since the signed portion of the data is already inherently present).

[0055] The details of authentication using public-private cryptography will be well known to those skilled in the art. Essentially, if Alice signs a message by encrypting it with her private key, then with Alice's public key and the message in the clear (unencrypted message), another entity, such as node 104, can authenticate that the encrypted version of the message must have been signed by Alice. Signatures typically allow the holder of the public key to authenticate the signature by hashing the message, signing the hash, and tagging this as the signature on a clear version of the message. Thus, in embodiments, references to signing a particular piece of data or portion of a transaction, etc., may mean signing a hash of the piece of data or portion of the transaction.

[0056] If the unlock script in Tx1 satisfies one or more conditions specified in the lock script of Tx0 (in the example shown, Alice's signature is provided and authenticated in Tx1), the node 104 considers Tx1 valid. If it is a storage node 104S, this means adding it to the pool 154 of transactions waiting for proof-of-work. If it is a forwarding node 104F, it forwards the transaction Tx1 to one or more other nodes 104 in the network 106, which will cause it to be propagated throughout the network. Once Tx1 is validated and included in the blockchain 150, this defines it as having consumed UTXO0 from Tx0. Note that Tx1 is only valid if it uses unspent transaction outputs 203. If it tries to consume an output that has already been consumed by another transaction 152, Tx1 becomes invalid even if all other conditions are met. Therefore, node 104 also needs to check whether the UTXO referenced in the preceding transaction Tx0 has already been spent (already formed a valid input to another valid transaction). This is one of the reasons why it is important for blockchain 150 to impose a defined order on transactions 152. In practice, a given node 104 may maintain a separate database that marks UTXOs 203 that transactions 152 have spent, but ultimately, what defines whether a UTXO is spent is whether it already forms a valid input to another valid transaction in blockchain 150.

[0057] Note that in the UTXO-based transaction model, a given UTXO must be spent in its entirety; it is not possible to "leave" an amount defined in a UTXO while another amount is spent. However, an amount from a UTXO can be split into multiple outputs of a subsequent transaction. For example, the amount defined in UTXO0 of Tx0 can be split into multiple UTXOs of Tx1. Thus, if Alice does not want to give Bob the entire amount defined in UTXO0, she can use the remaining amount to give herself change or pay another party in the second output of Tx1.

[0058] In practice, Alice should usually also include a fee for the winning miner, because nowadays the reward of the generating transaction alone is usually not enough to motivate mining. If Alice does not include a fee for the miner, Tx0 will likely be rejected by the miner's node 104M, and thus, although technically valid, it will still not be propagated and included in the blockchain 150 (the miner's protocol does not force the miner 104M to accept the transaction 152 if the miner does not want to). In some protocols, the mining fee does not require its own separate output 203 (i.e., it does not require a separate UTXO). Instead, the 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 winning miner 104. For example, suppose that a pointer to UTXO0 is the only input to Tx1, and Tx1 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 automatically goes to the winning miner 104M. However, nothing in this document precludes that a miner's fee may alternatively or additionally be explicitly specified in a unique one of the UTXOs 203 of transaction 152.

[0059] Note that if the total amount specified in all of a given transaction 152's outputs 203 is greater than the total amount pointed to by all of its inputs 202, this is another basis for invalidity in most transaction models. Thus, such a transaction will not be propagated and will not be mined into a block 151.

[0060] Alice and Bob's digital assets consist of the unspent UTXOs locked to them in any transaction 152 in the blockchain 150. Thus, typically, the assets of a given party 103 are distributed across the UTXOs of various transactions 152 throughout the blockchain 150. No single number is stored anywhere in the blockchain 150 that defines the total balance of a given party 103. It is the role of the wallet function in the client application 105 to aggregate the value 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 the copy of the blockchain 150 stored in any of the storage nodes 104S, for example, the storage node 104S that is closest to or best connected to each party's computer device 02.

[0061] Note that script code is often expressed diagrammatically (i.e., not in a precise language). For example, [Checksig P A ] to [ChecksigP A ]=OP_DUPOP_HASH160 <H(P A )>OP_EQUALVERIFYOP_CHECKSIG. "OP_..." represents a specific opcode in a scripting language. OP_CHECKSIG (also called "Checksig") is a scripting opcode that takes two inputs (a signature and a public key) and verifies the validity of the signature using the Elliptic Curve Digital Signature Algorithm (ECDSA). At runtime, all occurrences of the signature ("si"') are removed from the script, but additional requirements such as hash puzzles remain in the transaction to be verified by the "sig" input. As another example, OP_RETURN is a scripting language opcode for generating an unspent output of a transaction that can store metadata within the transaction, thereby immutably recording the metadata to the blockchain 150. For example, the metadata can include a document that is desirable to store on the blockchain.

[0062] A signature PA is a digital signature. In an embodiment, it is based on ECDSA using the elliptic curve secp256k1. A digital signature signs specific data. In an embodiment, for a given transaction, the signature signs some of the transaction inputs and all or some of the transaction outputs. The specific parts of the outputs to sign depend on the SIGHASH flag, which is a 4-byte code included at the end of the signature that selects which outputs are signed (and is therefore fixed at the time of signing).

[0063] A lock script is sometimes referred to as a "scriptPubKey" to indicate that the respective transaction includes the public key of the party being locked. An unlock script is sometimes referred to as a "scriptSig" to indicate that it provides a corresponding signature. However, more generally, it is not required in all applications of blockchain 150 that the conditions under which a UTXO is redeemed include authenticating a signature. More generally, a scripting language may be used to define one or more conditions. Thus, the more general terms "lock script" and "unlock script" are preferred.

[0064] FIG. 3 illustrates a system 100 for implementing a blockchain 150. The system 100 is substantially the same as described in connection with FIG. 1, except that an additional communication function is included. The client applications present on each of Alice's and Bob's computing devices 102a, 102b, respectively, include the additional communication function. That is, it allows Alice 103a to establish (at the invitation of either party or a third party) a separate side channel 301 with Bob 103b. The side channel 301 allows for the exchange of data separately from the P2P network. Such communication is sometimes referred to as "off-chain." For example, this may be used to exchange transactions 152 between Alice and Bob without the transaction being published (yet) to the network P2P 106 or on the chain 150 until one of the parties chooses to broadcast the transaction to the network 106. Such a side channel 301 is sometimes referred to as a "payment channel."

[0065] The side channel 301 may be established over the same packet-switched network 101 as the P2P overlay network 106. Alternatively or additionally, the side channel 301 may be established over a different network, such as a local area network, such as a mobile cellular network, or a local wireless network, or a direct wired or wireless link between Alice and Bob's devices 102a, 102b. In general, the side channel 301 referred to anywhere in this specification may include any one or more links over one or more networking technologies or communication media for exchanging data "off-chain", i.e., separately from the P2P overlay network 106. When more than one link is used, the bundle or collection of off-chain links as a whole may be referred to as the side channel 301. Thus, it is noted that when Alice and Bob are said to exchange certain information or pieces of data, etc., over the side channel 301, this does not necessarily mean that all of these pieces of data need to be transmitted over exactly the same links or the same type of network.

[0066] <Illustrative definitions> Below are some example definitions that may be employed in some implementations. Note that these are not intended to limit all possible implementations, but are provided only to aid in understanding certain possible implementations that may be utilized in some possible implementations of the example use cases described below.

[0067] Definition 1: Transaction. A transaction is a message that contains inputs and outputs. It may also contain a protocol version number and / or a locktime. The protocol version indicates the version of the transaction protocol. The locktime is explained separately later.

[0068] Definition 2: Inputs The inputs of a transaction form an ordered list. Each entry in the list contains an output (an identifier for an unspent transaction output) and a scriptSig (an unlock script). It may also contain a sequence number.

[0069] Definition 3: Outputs: The outputs of a transaction form an ordered list. Each entry in the list contains a value (the amount of the digital asset in that base unit) and a scriptPubKey (the locking script).

[0070] Definition 4: Outpoint. An outpoint is uniquely defined by a transaction ID TxID and an index number i. It represents the i-th entry in the output of the transaction output TxID and gives a unique location of an unspent transaction output (UTXO). The term "unspent" is used herein to mean that the outpoint does not appear in any valid subsequent transaction.

[0071] Definition 5: scriptSig. This is the information required to unlock or spend the UTXO corresponding to a given outpoint. In a standard transaction, this information is usually an ECDSA signature. Hence, the script is called a "scriptSig". However, the information required to unlock an outpoint can be any data that satisfies the locking conditions of the UTXO.

[0072] Definition 6: scriptPubKey. This is the script that locks the funds associated with a particular UTXO. The scriptSig is appended to the scriptPubKey, and the funds are unlocked and can be spent if and only if execution of the combined script yields true. Otherwise, the transaction is invalid and is rejected. This is called "scriptPubKey" because in standard transactions it usually contains the hash of an ECDSA public key.

[0073] In the following definitions, reference is made to signing an input or output, which means signing one or more inputs excluding the scriptSig part (see definition 2).

[0074] Definition 7: SIGHASH flags. When providing an ECDSA signature, one of the following SIGHASH flags MUST also be included: [Table 1]

[0075] When discussing adaptability as a feature, we look for information in a transaction that is not signed with an ECDSA signature. Apart from inputs and outputs that can be excluded from the message to be signed, the contents of the scriptSig are always excluded, since the scriptSig is designed to be a placeholder for the signature.

[0076] Definition 8: Blockchain Timelocks. In general, there are two types of timelocks that can be used within a transaction: absolute timelocks and relative timelocks. Absolute timelocks specify a specific point in time after which something is considered "valid". Relative timelocks, on the other hand, specify a period of time that must pass before something is considered valid. In both cases, block height (number of blocks mined) or elapsed time (e.g., UNIX time) can be used as a proxy for time when using blockchain timelocks.

[0077] Another characteristic of blockchain timelocks is where they manifest, the aspect of the transaction to which they are applied. Again, there are two classifications of timelocks in this sense: transaction level, which lock the entire transaction, and script level, which lock specific outputs. Both of these timelocks can be used to implement either absolute or relative timelocks. The table below summarizes four possible mechanisms to implement timelocks that can be generated based on these characteristics. [Table 2]

[0078] Definition 9: nLocktime. nLocktime is a non-negative integer that represents a specific time in block height or UNIX time. It is a transaction-level time lock, in the sense that a transaction can only be added to the blockchain in a specified block or after a specified time. If nLocktime is set to less than 500,000,000, it is considered a block height. If it is set to 500,000,000 or greater, it is considered a representation of UNIX time. It is the number of seconds after 00:00:00 on January 1, 1970.

[0079] For example, if the current block height is 3,000,000 high and the lock time is set to 4,000,000, the transaction will not be considered by miners until the 4 millionth block has been mined.

[0080] Definition 10: nSequence. The sequence number (nSequence) indicates the version of a transaction as a message. Any change to the transaction increments the sequence number by one. The maximum value of nSequence is 2. 32 -1, and sequence numbers are typically set to this maximum value by default to indicate a transaction is complete. A nSequence value is defined for each input of a transaction, specifying the period of time after a UTXO referenced by the input is included in a block before it becomes available as a valid input. When a miner sees two transactions with the same input, it will choose the transaction with the higher sequence number. However, this feature is commonly disabled.

[0081] Definition 11: CheckLockTimeVerify (OP_CLTV). The opcode OP_CHECKLOCKTIMEVERIFY (OP_CLTV) is an absolute script-level timelock that can be used to lock a particular output of a transaction to some specific time or block height in the future. If the current UNIX time or block height at which the UTXO is referenced in the transaction exceeds the UNIX time or block height at which the UTXO was created plus the parameter specified before the OP_CLTV opcode, the script execution for the payment transaction will fail.

[0082] Definition 12: CheckSequenceVerify (OP_CSV). The opcode OP_CHECKSEQUENCEVERIFY (OP_CSV) is a relative script-level timelock that can be used to lock a particular output of a transaction for a particular time period or number of blocks in the future. It works similarly to OP_CLTV, except that the parameter provided to OP_CSV represents a relative time. If the current UNIX time or block height at which the UTXO referenced in the transaction exceeds the parameter specified before the OP_CSV opcode, then script execution for the payment transaction will fail.

[0083] Definition 13: Malleability. In general, there are two broad senses of malleability possible in blockchain transactions, both of which allow the contents of a transaction to be changed without invalidating the signatures provided in the inputs.

[0084] To illustrate both cases, consider an initial transaction Tx with one input, one signature on that input, and one output.

[0085] Type 1: Script-level adaptability. This type of adaptability exploits the fact that the signature to be checked by the script opcode OP_CHECKSIG does not sign the script fields of any inputs in the transaction. This fact allows one to generate a signature for transaction Tx and modify the input script so that transaction Tx' is not identical to Tx, but still allows both Tx' and Tx to be considered valid transaction messages signed by the same signature under blockchain consensus rules.

[0086] Type 2: Input and output level adaptability. This type of adaptability relies on the use of SIGHASH flags other than SIGHASH ALL being used within the transaction. If a transaction Tx has an input signature that uses any of the five other SIGHASH flag combinations, then either the input(s) or the output(s) can be added to produce a non-identical transaction Tx'. As a result, both parties agree on what is considered a valid transaction message without the need to change the signature.

[0087] An on-chain mechanism for releasing content to users The following describes an exemplary mechanism for releasing content to multiple users based on inputs added by multiple users to a transaction, a so-called crowdfunding transaction, with a unified on-chain mechanism for releasing the content to users once the crowdfunding target is reached. For example, this may be used as a new means of implementing multi-party streaming, whereby there is a new crowdfunding transaction for each portion or "chunk" of media data in the stream.

[0088] The media content is divided into M parts D1, D2, … D M The M portion of the digital asset is split into M parts, and M respective crowdfunded transactions are generated (preferably in advance) and hosted on a (e.g., typically public) server accessible to multiple different users. Each of these transactions has an output that specifies the amount of the digital asset to be paid to a content vendor (e.g., Bob) for each portion. A locking script in the output of each transaction ensures that for a second transaction requesting to redeem the output, the input of the second transaction is a respective secret value S m This also includes the script that requires that the m S acts as a key to release (e.g., decrypt) each portion of the media content. m is referred to simply as secret in that it is secret until it is published to the blockchain 150 as part of a second transaction, after which it is no longer secret.

[0089] For each portion m=1...M, each of the N users accesses the server-hosted crowdfunding transaction via a side channel 301 (i.e., off-chain) and adapts it by adding inputs. This is done until the funding target is met, i.e., the inputs point to a total amount that is at least sufficient to form the output amount (or the transaction is no longer valid), and in fact also covers the mining fees (or the transaction is not accepted by any miner 104M for mining, even if technically valid).

[0090] "Streaming" then involves a vendor (e.g. Bob) sending a secret S m (One spending transaction redeeming the output of one crowdfunding transaction can instead broadcast one secret S m (discloses ). In some embodiments, Vendor Bob may send each secret separately directly to the users via side channel 301 in addition to publishing it on the blockchain 150. Or, if he does not, then possibly some or all of the users may be peers (acting nodes 104) in the P2P network. In this case, they will also receive it in the payment transaction when Bob broadcasts it to the P2P network. Either of these should be fast, since they can be done as fast as the information can be transmitted. If neither is the case, then once the clearing transaction is mined into block 151, the secret S m is ultimately on the blockchain 150, where some or all of the users can retrieve it. Thus, Vendor Bob accepts payments but does not have a secret key S m By not releasing the

[0091] This secret key S m may be referred to herein as a “media key.” It is a key that allows a user who obtains the key to access the corresponding portion D of the media data content hosted on the off-chain data source 401. m In an embodiment, the media key S m contains at least one decryption key. In this case, the user downloads it to his / her computer 102 and obtains the decryption key S m , and accesses the portion of the media data by decrypting it using .

[0092] key S m There are at least two possible scenarios for S. m may simply act as a single common key, directly allowing all users 103a to unlock their respective pieces of content, i.e., once funding is raised, the content is made available to anyone with access to the P2P network 106 (but if no one contributes, the content is not shown to anyone). However, this is considered unfair, as it also allows any other member of the public to obtain the content, even if they did not contribute to the funding.

[0093] Therefore, in the embodiment, scenario 2 is used. m Each user has their own individual key s m,1 …s m,N , where a given user generates a portion of the content D m In order to access (e.g., so that the user can decrypt) the content, the user must m and their own individual key s generated based on some information personal to the user m,n For each individual key s m,n is thus tied to a respective user, allowing only that user to access (e.g., decrypt) the intended content. An example of how this can be done is described below.

[0094] The secret key (S) that is revealed when the output of the crowdfunding transaction is spent. m ) to the process, this makes it possible to crowdfund an on-chain disclosure of a secret, rather than crowdfunding some off-chain process or event. This advantageously makes the realization of crowdfunding results integrated into on-chain mechanisms.

[0095] In some embodiments, the disclosed process may be used to simply crowdfund and release a single, independent piece of content D. However, as discussed, it is possible to crowdfund and release part D m It can also be used to release a sequence or stream of episodes, where m=1...M, each based on their respective corresponding crowdfunding transactions. The advantage of this is that it adds granularity to crowdfunding, and content can be partially crowdfunded one piece at a time. For example, if a TV series is split into its episodes, the vendor (Bob) can ask people to crowdfund them and release one episode as fast as they are crowdfunded. For example, this can be used by an over-the-top (OTT) video streaming service. The service advertises that they have the rights to a popular series, and that they will release each episode as soon as each one is crowdfunded by a user. Users who actually pay for the crowdfunded transactions will get early access to the episodes, for example.

[0096] Granularity means that each episode can also be divided into smaller packages, for example, by second or whatever.

[0097] Similar techniques can be applied to many other applications such as online education or lectures or radio shows, by replacing "TV episodes" with lectures etc.

[0098] An exemplary implementation will now be discussed in detail with reference to FIGS.

[0099] Figure 4 shows an extension to the arrangement of Figure 3, whereby each computing device 102a-1, 102a-2, ..., 102a-N of a number of first users 103a-1, 103a-2, ..., 103a-N is operative to connect to the computing device of Bob 103b via a side channel 301. Purely by way of schematic illustration, the first users are here given all different names beginning with "A", e.g. Alice, Adam, and Agnes. What has been described above with respect to the device 102a and the client 105a of the first party 102a may equally apply to any of the devices 102a-1, 102a-2, ..., 102a-N of the first users in the scenario of Figure 4.

[0100] In this exemplary scenario, Bob plays the role of a media content vendor. Bob's computing equipment 102b is configured in the role of a server, which may include the resources of one or more dedicated server units at one or more geographic sites, or one or more user devices playing the role of a server, or any combination of these. Bob's equipment 102b remains installed on client 105b of P2P network 106, as does each of the first user's equipment 102a-1, 102a-2, ... 102a-N. What has been discussed above with respect to Bob's equipment 102b and client 105a, and the side channel 301, may equally apply to the scenario of FIG. 4. It is also noted here that side channel 301 does not necessarily imply a single link or a single access technology. Thus, in an embodiment, the side channel 301 discussed with respect to FIG. 4 may represent a bundle of links between Bob's equipment 103b and equipment 103b-1, 103b-2, 103bN of different first users 102a, 102a-2, ..., 102a-N using one or more types of access technologies.

[0101] The system also includes an off-chain data source 401 (i.e., a source that stores and makes available to users 102a data that is not recorded on the blockchain 150). This is shown separate from Bob's device 102b in FIG. 4, but may form part of Bob's device 102b. Alternatively, it may in fact be separate from Bob's device 102b, e.g., Bob may act as a vendor representing content hosted by a third party on his own behalf. Either way, the off-chain data source 401 may store one or more portions D of the media data to be crowdfunded. m 105a-N on each of the first party devices 102a-1, 102a-2, ... 105a-N. The off-chain data source 401 is accessible via a network to the client software 105a-1, 105a-2, ... 105a-N on each of the first party devices 102a-1, 102a-2, 102a-N. The network may be the same network 101 (e.g., the Internet) through which the P2P overlay network 106 is implemented, or a separate network such as a mobile cellular network or an intranet within an organization, or any combination thereof.

[0102] The following is described in relation to an example where the content is split into multiple parts (m=1....M). However, it is understood that the same mechanism can be used to release single pieces of data. Each part of media data (content) may include an entire episode of a series of audio or video programming, or a portion of a given episode or standalone program (e.g., a movie). The granularity can also be reduced to the level of individual packages or packets of programming crowdfunded on a packet-by-packet basis (e.g., per second or finer).

[0103] FIG. 6 illustrates a set of transactions 152 for use in accordance with the embodiments disclosed herein. Each data portion D m For each transaction, the set includes multiple transactions Tx0, Tx1, Tx2, Tx3, Tx4, Tx5, Tx6, Tx7, Tx8, Tx9, Tx10, Tx11, Tx12, Tx13, Tx14, Tx15, Tx16, Tx17, Tx18, Tx19, Tx20, Tx21, Tx22, Tx23, Tx24, Tx2 1-m , and the second transaction Tx 2-m , 0th, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, 18th, 19th, 20th, 21st, 22nd, 23rd, 24th, 25th, 26th, 27th, 28th, 29th, 30th, 31st, 32nd, 33rd, 34th, 35th, 36th, 37th, 38th, 40th, 41st, 42nd, 43rd, 44th, 45th, 46th, 47th, 48th, 50th, 51st, 52nd, 53rd, 54th, 55th, 56th, 57th, 58th, 59th, 60th, 61st, 62nd, 63rd, 64th, 65th, 66th, 70th, 71st, 72th, 73th, 74th, 75th, 76th, 77th, 78th, 79th, 80th, 81st, 82th, 83th, 84th, 85th, 86th, 87th, 88th, 90th, 91st, 92th, 93th, 94th, 95th, 96th, 97th, 98th, 99th, 100th, 101st, 102th, 103th, 104th, 105th, 106th, 108th,

[0104] The zeroth transaction Tx0 may be referred to as the source transaction for the purposes of the present invention and serves as the source of the amount of digital assets of the first transaction. 1-m may be referred to as a crowdfunding transaction for the purposes of the present invention. m Acts as an intermediary to conditionally transfer an amount of digital assets from source transaction Tx0 to fund the release of second transaction Tx 2-m The first transaction, which may be called a payment transaction or target transaction, is a transaction that unlocks the conditions in the first transaction and provides for a payment to Vendor Bob (or, in some cases, a beneficiary represented by Bob).

[0105] As shown in FIG. 6, each zeroth or source transaction Tx0 includes at least one output 2030 (e.g., output 0 in the figure) that specifies an amount of a digital asset, and further includes a lock script that locks this output to a user, such as Alice 103a or Adam 103b. This means that the lock script of the source transaction Tx0 requires that a condition be met. This condition is that an input of any transaction that wants to unlock the output (and thus redeem the amount of the digital asset) must include a cryptographic signature of a user in its unlock script, which input is locked to that user, and the signature was generated using the user's public key. In this sense, the amount defined in the output of Tx0 is said to be owned by that user, e.g., Alice or Adam. The output may be called a UTXO. It is not particularly important for the purposes of the present invention which previous transaction's outputs point to the input of the source transaction Tx0 (as long as they are sufficient to cover the total output of the source transaction Tx0).

[0106] In the present case, the transaction that unlocks the output of source transaction Tx0 has data part D m First or crowdfunding transaction for Tx 1-m Therefore, Tx 1-m The final instance of Tx has multiple inputs 2021, each of which contains a pointer to a respective output of a respective one of the source transactions Tx0. 1-m Each output of Tx0 further includes an unlock script configured to unlock the respective pointed output of Tx0 according to conditions defined in the lock script of that output, requiring at least the signature of the respective user. 1-m Some protocols require that some part of Tx be signed. 1-m The part is Tx 1-m This can be a setting defined in the unlock script. For example, this can be set by the SIGHASH flag, which is a byte appended to the signature. So, in terms of data, the unlock script is: <Sig P A > <sighashflag><P A Alternatively, the part of the that needs to be signed can simply be Tx 1-m In either case, the part to be signed is typically the same as the unlock script itself, and the Tx 1-m Some or all of the inputs of Tx 1-m This means that inputs are applicable, allowing the user to add inputs 2021.

[0107] First or intermediate transaction Tx 1-m has at least one output 2031 (e.g., Tx 1-m The output has a Tx 0 (where the output may also be referred to as a UTXO) that specifies the amount of the digital asset to be transferred. The output further includes a locking script that defines the conditions required to unlock the output and thus redeem the amount. The conditions are 1-m , in this case the first version of the second transaction, Tx 2-m , requires that the unlock script of a transaction that is attempting to unlock a piece of content D includes Bob's cryptographic signature and a payload that Bob must include in his unlock script. As described in more detail below, this payload is the payload that users 103a-1...103a-N must include in their unlock script when signing a piece of content D m A secret key S that allows you to release m The requirement to include a payload is 1-m The requirement on the signature can be imposed by a hash challenge included in the lock script of Tx. The challenge includes a hash of the payload (not the payload itself) and a piece of script that (when executed on node 104 together with the unlock script) is configured to test whether the hash of the payload provided in the corresponding unlock script is equal to the hash value provided in the lock script. The requirement on the signature can be imposed, for example, by CheckSig as described above. In an embodiment, the first condition is that Alice's signature is equal to Tx 2-m does not require that the unlock script be included in the .Tx 2-m The part is Tx 2-m This may be a setting for the unlock script (specified by the SIGHASH flag, for example) or may be fixed. Either method typically excludes at least the unlock script.

[0108] Second, the target transaction Tx 2-m has at least one input 2022 (e.g., Tx 2-m 0), which is Tx 1-m The above output (in the illustrated example, Tx 1-m Contains a pointer to the output of Tx 1-m Tx based on satisfying the conditions defined in the lock script 1-m The second transaction Tx further includes an unlock script configured to unlock the output of the second transaction Tx. 2-m has at least one output 2032 (e.g., Tx 2-m The target transaction Tx has output 2032 (output 0 of target transaction Tx 0), which specifies the amount of digital assets to be transferred to Bob. Output 2032 also contains a lock script that locks it to Bob (i.e., it requires any further future transactions that include Bob's signature in the unlock script to be used). In this sense, the target transaction Tx 2-m The output of is said to be owned by Bob. This output may again be called a UTXO.

[0109] Figure 6 shows item D of the crowdfunding data. m 5 illustrates a method of using a set of transactions as described in relation to FIG. 5 to release a set of user-defined services to a number of users 103a-1...103a-N. The method is described from the perspective of vendor Bob 103b. The method may be performed by software 105b executing on Bob's equipment 102b. It will be appreciated that, according to another aspect, a corresponding method is provided that is performed from the perspective of a user 103a, such as Alice 103a-1, by a client application 105a executing on the user's equipment 102a. Phrases such as "by Alice (or user)", "by Bob (or vendor)", and "by a third party" may be used herein as shorthand for "by software 105a executing on user's 103a's computing equipment 102a", "by software 105b executing on vendor's 103b's computing equipment 102b", and "by software executing on a third party's computing equipment", respectively. Also, note that the equipment of a given party may include one or more user devices used by that party, or some server resources, such as cloud resources, utilized by that party, or any combination thereof, which does not necessarily limit operations to being performed on a single user device or at a single physical location.

[0110] In step S10, the vendor (Bob) 1-m , and hosts it on the server of his device 102b, so that it can be adapted via the side channel 301. 1-m available to any of the users 103a-1...103a-N. As mentioned above, Vendor Bob's server may include any serving computer equipment acting as a server, and may include one or more dedicated server units (or resources thereof) and / or one or more user devices located at one or more geographical sites. It may be made accessible to the equipment 103a-1...103a-N of the users 102a-1...102a-N via the same network 101 in which the P2P overlay network is implemented (e.g., the Internet), or via a separate network (e.g., a mobile cellular network or an internal intranet within an organization), or any combination thereof.

[0111] In an embodiment, Bob may download the media data D before releasing or receiving funding for the first part in the sequence. m For all parts of the crowdfunding transaction Tx 1-m , m=1...M. However, for simplicity, the following method is m , and its corresponding crowdfunding transaction Tx 1-m In an alternative embodiment, a crowdfunding transaction Tx 1-m Note also that one, some, or all of the above may be formulated for Bob by a third party and provided to him for hosting on his serving device 102b. The following is a summary of how Bob processes each crowdfunding transaction (i.e., the first transaction) Tx 1-m While the example will be described in terms of a vendor "Bob" formulating the above for himself, it will be understood that this is not limiting. It will be further understood that vendor "Bob" may in fact be an organization that includes more than one person, rather than an individual user.

[0112] Tx first created by vendor Bob 1-m includes at least one output 2031, which is a media content D m A value X that specifies the amount of digital assets he wishes to receive for releasing each portion of m Contains: X m For all m (i.e., media D m or the same for all parts D m Bob also has media data D m The target value T required to release each part of m Stores T m In a system that does not require mining fees (e.g., a consortium blockchain system), m Alternatively, T m =X m +M, where M is the mining fee. The mining fee M may be a function of time t that depends on the current price, or it may be fixed (e.g., set at a high enough margin that may cover any reasonable mining fee fluctuations over the period in which funding from users 103a-a...103a-N is expected).

[0113] Tx 1-m Output 2021 also contains a locking script. The locking script is used to indicate the transaction that wants to redeem output 2021, in this case Tx 2-m , the unlock script for media content D m The secret access key S for each part of m (media key). As mentioned above, this requirement may be implemented by a hash challenge: the lock script contains a hash of the payload containing the media key, and the script piece is configured to hash the value of the payload included in the unlock script, compare this to the value of the hash in the lock script, and unlock the output if they match.

[0114] In an embodiment, vendor Bob may send his own input 2021 to the Tx 1-m This input is included in the version of each source transaction Tx locked to Bob. 0-m-B The amount of the digital asset specified in this output may be zero or a nominal (negligible) amount (e.g., if the protocol does not allow zero amounts in spendable outputs). 0-m-B The locking script for an output of is executed by checking that Bob’s signature is included in the input of the transaction that unlocks it, in this case Tx 1-m Bob's input requires that the unlock script be included in the Tx 1-m Bob's input in the 1-m The unlock script contains Bob's signature, which signs part of the PKCS1.1 certificate, and also contains Bob's public key, which allows verification of Bob's signature.

[0115] Tx 1-m The purpose of this input may be to provide Vendor Bob with a way to sign the transaction, thus signaling that he endorses the transaction. And / or Crowdfunding transaction Tx 1-m should preferably have at least one initial input to vouch for (sign) the output 2031. Without an input, the output is released and anyone can replace it. However, as long as there is at least one input 2021 that signs the output 2031, the output cannot be changed.

[0116] Further, in the embodiment, Tx 1-m Vendor Bob's input to also provides one or more of the users 103a-1, ... 103a-N with a way to verify the authenticity of the transaction before adding their own input 2021 to fund the transaction. For example, the system may include a database 402 of trusted third parties made accessible to one, some, or all of the users' devices 102a-1, ... 102a-N. It may be made accessible via the same network 101 (e.g., the Internet) on which the P2P overlay network 106 is implemented, or a separate network such as a mobile cellular network or an intranet, or any combination thereof. The database 402 contains a list of the public keys of one or more vendors recommended by a trusted third party. Thus, a user may access the database 402 and recognize Bob's public key listed therein (i.e., if the value of Tx 1-m By checking that the public key matches the public key found in Bob's input to , they can have confidence that Bob is a legitimate vendor.

[0117] However, the input of vendor Bob is optional. Alternatively, the Tx 1-m does not include input 2021.

[0118] In step S20, vendor Bob begins receiving input from one or more users 103a-1...103a-N. Each such user 103a transmits a crowdfunding transaction Tx 1-m , and thereby applies this transaction to add her own respective input 2021. The inputs added by each of these users 103a-n are then added to the respective source transaction Tx 0-m-n , which specifies the amount of digital assets locked for that user 103a-n and includes a lock script that locks the respective output for that user. 0-m-n The lock script of a transaction unlocks it, in this case Tx 1-m , requires that the unlock script of each input of includes the signature of each user 103a-n. 1-m The user input to Tx 1-m The unlock script includes the signature of the user signing the portion of the .ssl file, and further includes the user's public key allowing verification of her signature.

[0119] After receiving one or more inputs from one or more users 103a, in step S30, vendor Bob 1-m is his target T m That is, he checks whether he has enough input to satisfy the source transaction Tx pointed to by the input received so far. 0-m and ensure that they are at least the target amount T m If not, the method loops back and continues from step S20.

[0120] Tx 0-m The total amount of points contributed by the inputs is at least the target T m When the number of Tx 1-m and the corresponding payment transaction Tx 2-m to the network 106, to the P2P network 106. That is, he issues Tx 1-m and Tx 2-m To at least one of the forwarding nodes 104F, he sends each of these transactions Tx to be propagated from there throughout the network 106. Each of these transactions is verified at each node 104 and mined by one of the mining nodes 104M into a block 151, which is then recorded in the copy of the blockchain 150 maintained at each storage node 104S. Alternatively, he may send each of these transactions Tx 1-m and Tx 2-m to one of users 103a or a third party, who then forwards it to network 106. Either way, Vendor Bob then causes both transactions to propagate through nodes 104 of network 106 and be publicly recorded in blockchain 150.

[0121] Crowdfunding Transaction Tx 1-m The output 2031 is the data part D m Payment to Bob for X m and includes a lock script. 2-m Tx 1-m Contains an input 2022 that points to the output of and contains a lock script. Tx 2-m includes an output 2032 that includes a lock script that specifies the amount of the digital asset and locks this amount to Bob.

[0122] Tx 1-m The lock script in the output of 2-m , 103a-N includes a specified payload. For example, this requirement may be imposed by a hash challenge in the lock script, as described above. This payload is generated when users 103a-1, ..., 103a-N download media content D from an off-chain data source 401. m a media key (e.g., a decryption key) S that allows accessing (e.g., decrypting) the corresponding portion of m To request his payment, Vendor Bob creates a payment transaction Tx 2-m is S m This means that when Bob requests payment, it must be made publicly visible on the blockchain 150.

[0123] Each user 103a-1, ..., 103a-N therefore has a media key S m They can then search the blockchain 150 to find the media key S m Using the above, each media data part D m can be acquired and consumed.

[0124] In some cases, vendor Bob may optionally provide media key S to one or more or all of users 103a via side channel 301 in addition to publishing it on blockchain 150. m And / or, if one or more of the users 103a are also peers 104 in the P2P network 106, they may send a payment transaction Tx 2-m When is propagated through the network 106, optionally before it is mined, S m Alternatively, in the future, an API may be available that allows users to query the pool 154 of mining nodes 104M, thus allowing users to see the data in pending transactions before they are mined. However, whatever the media User 103a receives, the gist is that Vendor Bob receives the media key S via at least one channel (the blockchain 150). m The problem is that Bob cannot prevent the payment from being made available to user 103a. Thus, Bob cannot cheat by accepting payment but not releasing the corresponding media content.

[0125] In an embodiment, a media key S m contains at least one decryption key. In this case, the user 103a has the media data D m to his / her respective computing device 102a, and then applies the decryption key to download the media data portion D m , thus obtaining a (clear) copy of the data on their respective computing devices 102a. m In the first place, a portion of the media data D m In this case, the user may enter the passcode S m to the off-chain data source 401, and in response, m to his / her respective computing device 102a. In some embodiments, the media key S m may include both encryption keys and passcodes, and access may combine both approaches.

[0126] Some embodiments may use just one single passcode or generic decryption key that allows anyone to access the data elsewhere. This is simple to implement, but may be undesirable since it allows non-paying users to access the data if the code is compromised. A more secure option is therefore to use a single public key based approach of group-based public key cryptography (this public key can be generated using any chosen group-based public key cryptography, preferably ECDSA). Contributors already have their public key, i.e. the PK i In their input, the organizer generates a private key V and m = V G, and S m,i = V PK i Calculate S i is a shared secret between the organizer and contributor i. The value can be hashed to generate a secret key for the symmetric cryptography. The organizer encrypts data for each contributor i using the shared secret. This encrypted data is preferably communicated off-chain. Currently, the contributors cannot decrypt the data.

[0127] In the unlock script, the organizer m Each contributor can use their own private key to calculate the shared secret and derive the decryption key if necessary. The drawback of this is that the public cannot provide S to the organizer in the lock script. m Anything that actually forces you to disclose (S m The key to success is that the user must trust the identity of the OTT provider (which may be a hash of the identity of the OTT provider). This may not be an issue for well-known OTT providers, for example. In an embodiment, the scheme can also be coupled with a trusted database 402 for further trust.

[0128] Therefore, in the embodiment, the media data D m To access a portion of the media, each user 103a-n needs a respective individual media key (e.g., decryption key) s that is tied to that particular user. m,n In this case, vendor Bob must use Tx 1-m Based on the public key of each user 103a-n included in the input of each user 103a-n to Tx 1-m Media key S contained in m Each user 103a-n calculates S m Upon receiving the media key, they will create their own individual media key s m,n and uses this to extract media content D from an off-chain data source 401 m The individual media key for each user accessing a corresponding portion of is unique to that user (where "unique" means at least to the extent that the probability of collision is small, near zero).

[0129] This may be accomplished by using one of a variety of available key-agreement techniques known in the art. Each contributing user 103a-1, ..., 103a-N transmits their respective public key to Tx 1-m Vendor Bob can then use the public key in conjunction with a key-agreement technique to generate a secret to share with each contributor. Bob can then use the shared secret, such as a symmetric encryption key, to encrypt the media data D m , 103a-n, can encrypt a portion of the media data content D and send it to the intended audience (contributing users 103a-1, ..., 103a-N). This includes sending it to vendor Bob himself, if the data source 401 is implemented on his equipment 102b, or triggering it to be sent from a third party, if the data source 401 is implemented elsewhere. Either way, each contributor 103a-n can, in effect, create a portion of the media data content D m Bob receives a customized encrypted version of the part of S on-chain. m Upon disclosing the shared secret s m,n Note that each has a different shared secret (here "shared" means shared between vendor Bob and each user 103a-n, not shared between different users 103a-1,...,102a-N). As long as the public keys used in the inputs are unique, the individual shared keys are unique.

[0130] An exemplary implementation is as follows, which is based on the standard Diffie Hellman key exchange. I. Alice contributes and provides her public key PK_A among her inputs. II. In the lock script, there is a hash check H(PK_B), which means that to unlock it, Bob must reveal PK_B. III. Bob is (sk B ·PK A ) and use it as a symmetric encryption key to encrypt the data just for Alice. IV. When Bob reveals PK_B, Alice can use (sk A ·PK B ) we can compute the same symmetric key. Similarly for other contributing users Adam, Agnes, etc. Note that this is just one of many possible implementations implemented using standard key agreement techniques.

[0131] As an example scenario, say Bob wants to broadcast a video, which could be a lecture, a tutorial, or a general event.

[0132] In this scenario, Bob knows exactly what time he wants to start his broadcast. He also has a pre-determined price for his broadcast. The video data is encrypted chunk by chunk and sent off-chain. A partial secret value s m are generated by Bob and exchanged on-chain, chunk by chunk.

[0133] The participants then derive the perfect secret key to decrypt the data.

[0134]

number

[0135]

number

[0136]

number

[0137] This process continues until the value of the input covers the value of the output or until the timelock expires.

[0138] It may be possible for Bob to cheat by falsely advertising his event. However, it may be required that there is a publicly verifiable source that links the event to a public key. The public key may be the ECDSA public key required in input 0 of TX1. Thus, interested participants can tell if TX1 is authentic.

[0139] If there is not enough input and Bob wants to go further, he can fill the price gap himself.

[0140] If there is more interest than Bob expected, he can either create another transaction or allow participants to copy the outputs from TX1 and create new transactions themselves.

[0141] Each participant 103a is identified by their public key in their input 2021. The public key is used to calculate a customized secret key to encrypt data. m When disclosing, participants are informed of the data they received, D m It is possible to calculate the secret key to decrypt

[0142] To continue viewing the content, participant 103a simply follows the subsequent transaction and fills in input 2021.

[0143] As mentioned above, for security reasons, the output must be locked with a signature, such as an ECDSA signature, so that no one can modify the output; that is, neither Bob nor Alice (or any other user) can add their modifying address to the output. Thus, Alice or Bob must ensure that their UTXO provides the exact amount they want to pay.

[0144] It will be understood that the above embodiments have been described by way of example only. More generally, there may be provided a method, program, apparatus, or set of transactions according to any of the following statements. It will be understood that all independent statements define optional features.

[0145] (Statement 1) According to one aspect disclosed herein, there is provided a computer-implemented method for enabling multiple users to access an item of media content, the method comprising: providing a first transaction, the first transaction including: (i) one or more outputs including at least a first output specifying an amount of digital assets to be transferred to the vendor; and (ii) initially a total of zero or more inputs, where a total input amount of the digital assets specified in any output of any source transaction pointed to by the zero or more inputs is less than a total output amount of the digital assets specified by the one or more outputs, the first output of the first transaction including a lock script specifying a condition to be satisfied by an unlock script to unlock the first output; receiving an input from each of the plurality of users via a side channel and adding each received input to the first transaction, each received input pointing to an output of a respective source transaction specifying an amount of the digital asset; when a target is reached such that a total input amount pointed to by the inputs of the first transaction equals or exceeds the output amount, causing the first transaction and a second transaction to be published on a blockchain network to be recorded on a blockchain, the second transaction pointing to the first output of the first transaction and including the unlock script that satisfies the condition; Including, A method is provided in which the condition specified by the lock script requires that the unlock script include a media key that allows the user to access the item of media content.

[0146] (Statement 2) In an embodiment, a method may be provided as in Statement 1, wherein the target is such that the total input amount exceeds the total output amount by at least sufficient mining fees to cause the first transaction to be accepted by a miner for mining into a block.

[0147] (Statement 3) In an embodiment, there may be provided a method as described in statement 1 or 2, comprising repeating the method for each of a plurality of data items, each item of content forming a different respective one of the sequences of portions of the media content.

[0148] (Statement 4) In an embodiment, a method may be provided as in statement 3, wherein the portion is a packet of a given episode or independent program or movie that is streamed to a user in real time.

[0149] (Statement 5) In an embodiment there may be provided a method as in statement 3, wherein the portions are different episodes in a series.

[0150] (Statement 6) In an embodiment, a method may be provided as described in any of Statements 1 to 5, wherein instructions linked to the first transaction are listed in a database operated by a third party independent of the vendor and user, thereby enabling the user to verify that the first transaction is legitimate media for obtaining the media key.

[0151] (Statement 7) In an embodiment, a method as set forth in any of Statements 1 to 6 may be provided, wherein the zero or more initial inputs include at least one initial input including an unlock script for unlocking outputs of each source transaction included by the vendor, and the unlock script in the input of the vendor includes a signature of the vendor formed using the vendor's public key and the vendor's private key corresponding to the public key.

[0152] (Statement 8) In an embodiment, a method may be provided as described in statements 6 and 7, wherein the instructions include a copy of the public key of the content provider, thereby enabling the user to perform the verification by comparing the public key in the unlock script of the vendor's initial input with a copy of the public key in a database.

[0153] (Statement 9) In an embodiment, there may be provided a method according to any of statements 1 to 8, comprising a step in which, after receiving multiple inputs from the user that are not yet sufficient to reach the target, the vendor adds further inputs to form at least a difference.

[0154] (Statement 10) In an embodiment, there may be provided a method according to any of Statements 1-9, comprising: in response to receiving excess input from a user indicating an amount of digital assets more than required to meet the target, generating a new instance of the first transaction and adding the excess input to the new instance of the first transaction.

[0155] (Statement 11) In an embodiment, a method may be provided as described in any of Statements 1 to 10, wherein the media key includes a decryption key, and the user is enabled to access the item of media content by decrypting the item of media content using at least the decryption key.

[0156] (Statement 12) A method may be provided as described in any of statements 1 to 11, wherein the media key is configured to allow an individual media key to be computed by each of the plurality of users, thereby ensuring that only users that have provided input have access to an item of media content.

[0157] (Statement 13) In an embodiment, the method of statements 11 and 12 may be provided, wherein each individual media key includes an individual decryption key. (Statement 14) In an embodiment, a method as described in any of Statements 1 to 13 may be provided, wherein each of the user inputs includes a respective unlock script that unlocks a respective source transaction output, the respective unlock script including the user's respective public key and the user's respective signature formed using the user's private key.

[0158] (Statement 15) In an embodiment, a method is provided as in statement 14, which is dependent on statements 12 or 13, in which an individual media key for each user is generated based on the user's respective public key taken from input received from that user.

[0159] (Statement 16) According to another aspect disclosed herein, there is provided a computer program embodied on a computer-readable storage device and configured to execute the method according to one of statements 1 to 15 when executed on a vendor's computing equipment.

[0160] (Statement 17) According to another aspect disclosed herein, a vendor's computer equipment includes: a memory including one or more memory units; a processing device including one or more processing units; Including, A computing device is provided, wherein the memory stores code configured to run on the processing device, the code configured to perform the method according to one of statements 1 to 15.

[0161] (Statement 18) According to another aspect disclosed herein, there is provided a method of accessing an item of media content made available in an off-chain data source, the method comprising: accessing a vendor's server hosting a first transaction, the first transaction including: (i) one or more outputs including at least a first output specifying an amount of digital assets to be transferred to the vendor; and (ii) initially a total of zero or more inputs, where a total input amount of the digital assets specified in any output of any source transaction pointed to by the zero or more inputs is less than a total output amount of the digital assets specified by the one or more outputs, the first output of the first transaction including a lock script specifying a condition to be satisfied by an unlock script to unlock the first output; sending to the server via a side channel at least one input among the multiple inputs sent by the multiple users to be added to the first transaction, each input pointing to an output of a respective source transaction specifying an amount of the digital asset, thereby enabling the vendor to publish the first transaction and a second transaction onto a blockchain network to be recorded on a blockchain upon reaching a target whereby the total input amount pointed to by the inputs of the first transaction equals or exceeds the output amount, the second transaction including the unlock script pointing to the first output of the first transaction and satisfying the condition; Including, the condition specified by the lock script requires that the unlock script include a media key; There is provided a method further comprising using the media key to unlock the item of media content.

[0162] (Statement 19) According to another aspect disclosed herein, there is provided a computer program embodied on a computer-readable storage device and configured to perform the method described in statement 18 when executed on a user's computing device.

[0163] (Statement 20) According to another aspect disclosed herein, a user's computing device includes: a memory including one or more memory units; a processing device including one or more processing units; Including, A computing device is provided, wherein the memory stores code configured to execute on the processing device, the code configured to execute the method described in statement 18.

[0164] (Statement 21) According to another aspect disclosed herein, a set of transactions for recording on a blockchain, the set embodied on one or more computer-readable data media, a first transaction including: (i) one or more outputs including at least a first output specifying an amount of digital assets to be transferred to a vendor; and (ii) a plurality of inputs from a plurality of different users, each input pointing to an output of a respective source transaction specifying an amount of the digital assets, a total input amount of digital assets pointed to by the inputs of the first transaction equals or exceeds a total output amount specified by the one or more outputs, and the first output of the first transaction includes a lock script specifying a condition to be satisfied by an unlock script to unlock the first output; a second transaction including an input that points to the first output of the first transaction, the input of the second transaction including an unlock script that satisfies the condition, the condition specified by the lock script requiring that the unlock script include a media key that enables access to an item of media content stored in an off-chain data source; and A set of transactions is provided, including:

[0165] Other variations or uses of the disclosed technology may become apparent to those skilled in the art upon review of this specification, and the scope of the present disclosure is not limited by the described embodiments, but only by the appended claims.< / sighashflag> < / sigpa>

Claims

1. 1. A computer-implemented method for enabling each computing device of each user of a plurality of users to access an item of media content, the method comprising: providing a first transaction, the first transaction including: (i) one or more outputs including at least a first output specifying an amount of a digital asset to be transferred to the vendor; and (ii) initially a total of zero or more inputs, where a total input amount of the digital asset specified in any output of any source transaction pointed to by the zero or more inputs is less than a total output amount of the digital asset specified by the one or more outputs, the first output of the first transaction including a lock script specifying a condition to be satisfied by an unlock script to unlock the first output; receiving, via a side channel, an input from a respective computing device of each user of the plurality of users, and adding each received input to the first transaction, each received input pointing to an output of a respective source transaction specifying an amount of the digital asset; when a target is reached such that a total input amount pointed to by the inputs of the first transaction equals or exceeds the total output amount, causing the first transaction and a second transaction to be published on a blockchain network to be recorded on a blockchain, the second transaction including an input that points to the first output of the first transaction and includes the unlock script that satisfies the condition; Including, The method of claim 1, wherein the condition specified by the lock script requires that the unlock script include a media key that enables each computing device of each user of the plurality of users to access the item of media content.

2. 2. The method of claim 1, wherein the target is such that the total input amount exceeds the total output amount by at least enough mining fees to cause the first transaction to be accepted by a miner for mining into a block.

3. 3. A method according to claim 1 or 2, comprising repeating the method for each of a plurality of data items, each item of content forming a different respective one of the sequences of portions of media content.

4. 4. The method of claim 3, wherein the portions are packets of a given episode or an independent program or movie that are streamed in real time to each computing device of each user of the plurality of users.

5. The method of claim 3 , wherein the portions are different episodes in a series.

6. A method according to any one of claims 1 to 5, wherein the instructions linked to the first transaction are listed in a database operated by the third party, independent of the vendor and the user, using a third party's computing device, thereby enabling each computing device of each user of the plurality of users to verify that the first transaction is a legitimate media for obtaining the media key.

7. 7. The method of claim 1, wherein the zero or more initial inputs include at least one initial input contained by a computing device of the vendor, the at least one initial input including an unlock script for unlocking outputs of each source transaction, the unlock script in the vendor's input including a signature of the vendor formed using a public key of the vendor and a private key of the vendor corresponding to the public key. [0020] Claim 8: The instructions linked to the first transaction are listed in a database operated by the third party, independent of the vendor and the user, using a third party's computing device, thereby enabling each computing device of each user of the plurality of users to verify that the first transaction is a legitimate medium for obtaining the media key; 8. The method of claim 7, wherein the instructions include a copy of the public key of the vendor, thereby enabling each computing device of each user of the plurality of users to perform the verification by comparing the public key in the unlock script of the initial input of the vendor with a copy of the public key in a database.

9. A method according to any preceding claim, further comprising the step of the vendor's computer equipment adding further inputs to form at least a difference after receiving a plurality of inputs from each computer equipment of each of the plurality of users, but not yet sufficient to reach the target.

10. 10. The method of claim 1, further comprising: in response to receiving excess input from a user's computing device, the excess input indicating an amount of digital assets greater than that required to meet the target, generating a new instance of the first transaction and adding the excess input to the new instance of the first transaction.

11. A method according to any preceding claim, wherein the media key includes a decryption key, and wherein the decryption key is used to decrypt an item of media content, thereby enabling each computing device of each of the plurality of users to effect said access of the item of media content.

12. A method according to any preceding claim, wherein the media key is configured to enable an individual media key to be computed by each computing device of each user of the plurality of users, thereby ensuring that only the computing device of the user that provided input can access the item of media content.

13. The method of claim 12, wherein the media key includes a decryption key, and wherein the decryption key is used to decrypt an item of media content to enable a respective computing device of each of the plurality of users to effect said access of the item of media content; The method of claim 12 , wherein each individual media key comprises an individual decryption key.

14. 14. The method of any of claims 1 to 13, wherein each of the user inputs includes a respective unlock script to unlock a respective source transaction output, the respective unlock script including the user's respective public key and the user's respective signature formed using the user's private key.

15. 15. A method according to claim 14 when dependent on claim 12 or 13, wherein an individual media key for each user is generated based on the user's respective public key taken from input received from that user.

16. A computer program configured, when executed on the vendor's computing equipment, to cause the computing equipment to perform a method according to any one of claims 1 to 15.

17. A computer device of a vendor, a memory including one or more memory units; a processing device including one or more processing units; Including, A computing device, said memory storing code that, when executed on said processing device, causes said processing device to perform a method according to one of claims 1 to 15.

18. 1. A method of accessing an item of media content made available in an off-chain data source, the method comprising: accessing a vendor's server hosting a first transaction, the first transaction including: (i) one or more outputs including at least a first output specifying an amount of a digital asset to be transferred to the vendor; and (ii) initially a total of zero or more inputs, where a total input amount of the digital asset specified in any output of any source transaction pointed to by the zero or more inputs is less than a total output amount of the digital asset specified by the one or more outputs, the first output of the first transaction including a lock script specifying a condition to be satisfied by an unlock script to unlock the first output; sending to the server via a side channel at least one input among a plurality of inputs sent by a plurality of users to be added to the first transaction, each input pointing to an output of a respective source transaction specifying an amount of the digital asset, thereby enabling the vendor's server to publish the first transaction and a second transaction onto a blockchain network to be recorded on a blockchain upon reaching a target whereby a total input amount pointed to by the inputs of the first transaction equals or exceeds the total output amount, the second transaction including an input pointing to the first output of the first transaction and including the unlock script that satisfies the condition; Including, the condition specified by the lock script requires that the unlock script include a media key; The method further includes using the media key to unlock the item of media content.

19. A computer program configured, when executed on a user's computing equipment, to cause said computing equipment to carry out the method of claim 18.

20. A user's computing device, comprising: a memory including one or more memory units; a processing device including one or more processing units; Including, 20. A computing device, wherein the memory stores code that, when executed on the processing device, causes the processing device to perform the method of claim 18.

Citation Information

Patent Citations

  • Shearing method and device

    JP1989087091A

  • Blockchain-Implemented Method for Controlling and Distributing Digital Content

    JP2019511147A

  • Decentralized content distribution

    US20190058910A1

  • Digital content commerce management device, digital content commerce management method, and program

    WO2018092443A1

  • System and method for distributing data records using a blockchain

    WO2018189667A1