Method and system for efficient transfer of entities in blockchain

The method and system leverage tokenization and metadata embedding in blockchain transactions to securely transfer assets without altering the protocol, addressing limitations of existing blockchain technologies and enabling efficient, secure, and decentralized asset exchanges.

JP2024167365AActive Publication Date: 2024-12-03NCHAIN LICENSING AG
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024151098
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2016-03-11
Filing Date
2024-09-03
Publication Date
2024-12-03
Estimated Expiration
2037-02-16

AI Technical Summary

Technical Problem

Existing blockchain technologies are limited in their application beyond cryptocurrencies and require trusted third parties for secure transactions, lacking efficiency and versatility in handling real-world assets and automated processes.

Method used

A method and system for secure control and transfer of assets using blockchain, employing tokenization techniques, cryptographic keys, and metadata embedding within transactions to facilitate exchanges without altering the underlying blockchain protocol, enabling decentralized and secure transactions between parties.

Benefits of technology

Enhances memory usage, security, and data integrity while eliminating the need for trusted third parties, allowing for efficient and secure exchange of digital and real-world assets across decentralized networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024167365000001_ABST
    Figure 2024167365000001_ABST
Patent Text Reader

Abstract

To provide control and performance for secure and efficient exchanges conducted via blockchain.SOLUTION: A method scans a plurality of entries in a distributed hash table (DHT) of a first network. Each entry in the DHT contains an invitation to perform an exchange and a link to a transaction in a second network, wherein the invitation contains instructions and terms of entities to be exchanged. The method also determines a match between a first set of metadata of a first invitation from a first user and a second set from a second user and broadcasts a first exchange transaction. The first exchange transaction includes an instruction of a first amount of virtual currency to be transferred, a first input, a first script, a private key of the first user, and a third party private key. The first script includes the first set, a public key of the first user, a public key of the third party private key, and a first output instructing the transfer of the first amount of a first entity.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to distributed, peer-to-peer ledgers, in particular to blockchain technology. The present invention also relates in part to tokenisation and security techniques and secure mechanisms for transferring entities and / or ownership of entities via blockchain. The present invention may include a method for conducting secure transactions between different parties across a blockchain. [Background technology]

[0002] A blockchain is a computer-based, decentralized, peer-to-peer electronic ledger implemented as a distributed system composed of blocks, which in turn constitute transactions. Each transaction is a data structure that encodes the transfer of control of digital assets between participants in the blockchain system and contains at least one input and at least one output. Each block contains a hash of the previous block, and blocks are chained together to create a permanent, immutable record of all transactions that have been written to the blockchain since its inception. Transactions contain small programs, known as scripts, embedded in the inputs and outputs that specify how or by whom the output of the transaction can be accessed. In the Bitcoin platform, these scripts are written using a stack-based scripting language.

[0003] In order for a transaction to be written to the blockchain, it must be “validated.” Network nodes (miners) perform work to ensure that each transaction is valid, and invalid transactions are rejected by the network. A software client installed on the node performs this validation work on unspent transactions (UTXOs) by executing locking and unlocking scripts. If the execution of the locking and unlocking scripts evaluates to TRUE, the transaction is valid, and the transaction is written to the blockchain. Thus, for a transaction to be written to the blockchain, it must i) be validated by the first node that receives the transaction - if the transaction is validated, the node relays the transaction to other nodes in the network, ii) be added to a new block constructed by miners, and iii) be mined, i.e., added to the public ledger of past transactions.

[0004] While blockchain technology is most widely known for its use in implementing cryptocurrency, digital entrepreneurs are beginning to explore the use of both the cryptographic security system on which Bitcoin is based and the data that can be stored on the blockchain to implement new systems. It would be highly advantageous if blockchain could be used for automating tasks and processes that are not limited to the cryptocurrency realm. Such solutions would be able to take advantage of the benefits of blockchain (e.g., permanent, tamper proof recording of events, decentralized processing, etc.) while being more versatile in their applications.

[0005] One area of ​​current research is the use of blockchain for the implementation of "smart contracts". These are computer programs designed to automate the execution of machine-readable contracts or conditions of agreements. Unlike traditional contracts, which may be written in natural language, smart contracts are machine-executable programs that contain rules that can process inputs to produce outcomes, which can then cause actions to be taken depending on those outcomes.

[0006] Another area of ​​interest related to blockchain is the use of "tokens" (or "coloured coins") to represent and transfer real-world entities via the blockchain. Potentially sensitive or secret items can be represented by tokens that have no discernable meaning or value. The token thus acts as an identifier, allowing the real-world item to be referenced from the blockchain. Tokenisation techniques can be used for many different types of contexts where security, anonymity and cross-platform compliance are important. One such area of ​​application is financial applications, although the invention is not limited to use in relation to financial transactions.

[0007] In this document, we use the term "blockchain" to include all forms of electronic, computer-based, distributed ledgers. These include, but are not limited to, consensus-based blockchain and transaction chain technologies, permissioned and un-permissioned ledgers, shared ledgers, and variations thereof. The most widely known application of Bitcoin technology is the Bitcoin ledger, but other blockchain implementations have been offered and developed. For convenience and illustrative purposes, reference may be made to Bitcoin herein, but it should be noted that the present invention is not limited to use with the Bitcoin blockchain, and alternative blockchain implementations and protocols are within the scope of the present invention. Summary of the Invention

[0008] The invention is defined in the appended claims.

[0009] The present invention may provide a solution for secure control and / or transfer or exchange of assets via blockchain. Herein, the term "entity" may be used interchangeably with "asset". Additionally or alternatively, the present invention may enable control and / or transfer of ownership of assets. This may be a digital or virtual asset, such as a smart contract, or a real-world / physical asset. An asset may be a right or usage right, such as a license, or some kind of right regarding a type of property. The present invention may use tokenization techniques to facilitate this control or transfer. The present invention may incorporate the use of cryptographic keys to enable the transfer / exchange to be performed in a secure manner, while not requiring any modification of the underlying blockchain protocol. The present invention may use techniques for embedding metadata into the script associated with the blockchain transaction (Tx).

[0010] The present invention provides, among other things, enhanced optimization of memory usage for electronic transfers, improved security and data integrity through the use of hashing techniques, improved security through the elimination of the need for a trusted third party, and enhanced data anonymity. The present invention can also provide improved communication mechanisms that allow disparate or separate parties to identify each other and / or exchange data via the novel methods and / or architectures provided by the present invention. This list of advantages is not intended to be limiting or exhaustive. The present invention may require interaction and inter-communication involving a variety of distinct and separate computer-based resources, such as one or more user devices and a distributed computer system (the blockchain) that includes computing nodes configured to execute blockchain-related software and protocols. The present invention may provide a computer-implemented method for performing an exchange of entities. The exchange may be between a first user and a second user and may be an exchange that occurs over a computer network. The network may be a blockchain-implemented network. The term "user" may refer to a human user or a computer-based resource. The present invention may provide an exchange control method for controlling the exchange of two or more entities. It may provide a tokenization method for the exchange of digital entities. The present invention may be described as a blockchain-implemented method.

[0011] The present invention may provide a computer-implemented method for performing a transfer or exchange. The method may include the steps of: scanning entries in a distributed hash table (DHT) distributed across a first network, the DHT including a plurality of entries, each entry including an invitation to perform an exchange and a link to a transaction in a peer-to-peer (P2P) distributed ledger distributed across a second network, each invitation including an indication of an entity to be exchanged and one or more conditions for the exchange; determining a match between a first set of metadata in a first invitation for a first entry from a first user and a second set of metadata in a second invitation for a second entry from a second user, the determining including identifying a match between entities exchanged in the first invitation and the second invitation, and identifying a match between one or more conditions of the first invitation and one or more conditions of the second invitation; generating a first exchange transaction; and broadcasting the first exchange transaction across the second network for inclusion in the P2P distributed ledger. where the first exchange transaction includes an indication of a first amount of cryptocurrency to be transferred, a first input provided from an output of a transaction in the P2P distributed ledger linked to the first entry, a first script, a first user private key associated with the first user, and a first third party private key associated with the first third party, where the first script includes a first set of metadata, a first user public key associated with the first user and cryptographically paired with the first user's private key, a first third party public key associated with the first third party and cryptographically paired with the first third party private key, and a first output indicating the transfer of the first amount of the first entity from the first user to the second user.

[0012] Additionally or alternatively, the present invention may include a method for performing a transfer or exchange, where a hash of a script may be provided in or associated with a blockchain transaction (Tx). The script may be a redemption script. The transaction (Tx) may be a P2SH transaction according to the Bitcoin protocol or another functionally equivalent transaction type in another blockchain protocol. The hash of the script may serve as a lookup key to a hash table or other storage resource. This storage resource may be a public domain repository of invitations. The storage resource may include the lookup key (i.e., the hash) and all fields from the metadata that, in combination, define the invitation. The lookup key may be a hash of the remainder of the record, i.e., a hash of the concatenated metadata values. In a preferred embodiment, the metadata may include a pointer or other reference to the location of a contract associated with the token. The contract may be stored in a separate storage resource. The invitation (defined by the metadata in the storage resource) may be linked to the blockchain transaction via the hash.

[0013] Preferably, the method further comprises generating a second exchange transaction and broadcasting the second exchange transaction over a second network for inclusion in the P2P distributed ledger, where the second exchange transaction includes an indication of a second amount of cryptocurrency to be transferred, a second input provided from an output of a transaction in the P2P distributed ledger linked to a second entry, a second script, a second user private key associated with the second user, a second third party private key associated with the second third party, and a second output directing the transfer of a second amount of a second entity from the second user to the first user, where the second script includes a second set of metadata, a second user public key associated with the second user that is cryptographically paired with the second user's private key, a second third party public key associated with the second third party that is cryptographically paired with the second third party private key, and a second output directing the transfer of a second entity from the second user to the first user.

[0014] The present invention may provide a computer-implemented method for performing a transfer. The method may include the steps of: scanning entries in a distributed hash table (DHT) distributed across a first network, the DHT including a plurality of entries, each entry including an invitation to perform an exchange and a link to a transaction in a peer-to-peer (P2P) distributed ledger distributed across a second network, each invitation including an indication of an entity to be exchanged and one or more conditions for the exchange; determining a match between a first set of metadata in a first invitation for a first entry from a first user and a second set of metadata in a second invitation for a second entry from a second user, the determining including identifying a match between entities exchanged in the first invitation and the second invitation, and identifying a match between one or more conditions of the first invitation and one or more conditions of the second invitation; generating a first exchange transaction; and broadcasting the first exchange transaction across the second network for inclusion in the P2P distributed ledger. Here, the first exchange transaction includes an indication of a first amount of virtual currency to be transferred, a first input provided from an output of a transaction in the P2P distributed ledger linked to the first entry, a first script, a first user private key associated with the first user, a first third party private key associated with the first third party, an indication of a second amount of virtual currency to be transferred, a second input provided from an output of a transaction in the P2P distributed ledger linked to the second entry, a second script, a second user private key associated with the second user, and a second third party private key associated with the second third party.where the first script includes a first set of metadata, a first user public key associated with the first user and cryptographically paired with the first user's private key, a first third party public key associated with the first third party and cryptographically paired with the first third party private key, and a first output directing the transfer of a first amount of a first entity from the first user to a second user, where the second script includes a second set of metadata, a second user public key associated with the second user and cryptographically paired with the second user's private key, a second third party public key associated with the second third party and cryptographically paired with the second third party private key, and a second output directing the transfer of a second entity from the second user to the first user.

[0015] In both the first and second aspects, the step of identifying a match between entities exchanged in the first and second invitations includes the steps of identifying a match between an entity requested in the first invitation and an entity provided in the second invitation, and identifying a match between an entity provided in the first invitation and an entity requested in the second invitation.

[0016] Advantageously, the step of identifying a match between one or more conditions of the first invitation and one or more conditions of the second invitation comprises the steps of identifying a first condition specifying a maximum value of an entity requested in the first invitation and identifying a second condition specifying a minimum value of an entity provided in the second invitation.

[0017] Preferably, the step of identifying a match between one or more conditions of the first invitation and one or more conditions of the second invitation further comprises determining that the maximum value is greater than said minimum value.

[0018] Advantageously, the first quantity of the first entity may be determined based on one or both of a maximum and a minimum value. Similarly, the second quantity of the second entity may be determined based on one or both of a maximum and a minimum value. The determination may be based on an average of the maximum and minimum values.

[0019] The first amount may be determined based on a maximum value rather than a minimum value, and the second amount may be determined based on a minimum value rather than a maximum value.

[0020] In some embodiments, identifying a match between one or more conditions of the first invitation and one or more conditions of the second invitation further includes determining that the maximum value is less than the minimum value but within a first threshold value, notifying the second user of the first invitation, receiving confirmation of acceptance of the first conditions from the second user, and identifying the match.

[0021] Preferably, the step of identifying a match between one or more conditions of the first invitation and one or more conditions of the second invitation further includes the steps of determining that the minimum value is less than the maximum value but within a second threshold, notifying the first user of the second invitation, receiving confirmation of acceptance of the second conditions from the first user, and identifying the match.

[0022] The first third party is an escrow service provider and / or the second third party is an escrow service provider.

[0023] In some embodiments, one or more of the first exchange transaction, the second exchange transaction, the first invitation transaction, and the second invitation transaction are pay-to-script hash (P2SH) transactions.

[0024] In some embodiments, one or more of the entities is one of: a) bitcoin, b) a contract, c) a product, or d) a service. The contract is for one or more of: a) fiat currency, b) a property deed, c) a ticket, d) a product, or e) a service.

[0025] The first set of conditions and / or the second set of conditions may include one or more of: a) one or more limit ranges on one or more prices for the exchange; b) the exchange rate; c) a deadline for fulfilling the first invitation; d) a restriction on the geographic area for making the exchange.

[0026] The invention may provide a processor or a group of processors operable to carry out a method in accordance with the above.

[0027] Embodiments of the present invention may include techniques for embedding metadata within (blockchain) transactions; generating a blockchain transaction (Tx) having an output (TxO) relating to the asset (B1) and a hash of a redemption script; Metadata including tokens that are representations or references of tokenized entities; At least one (and preferably two or more) public encryption keys. The digital asset (B1) may be a quantity of virtual currency, for example Bitcoin. The redemption script may be provided in the lock script of the transaction output TxO. The metadata may be provided in the redemption script in a location specified in the blockchain protocol as the location of the cryptographic keys. This provides the advantage that the metadata can be transferred without requiring any changes to the underlying blockchain protocol. Nodes operating the protocol will be agnostic about the use of the metadata instead of the cryptographic keys. The method may further include a step of submitting the transaction Tx to the blockchain. In effect, the virtual currency (B1) may thus be locked in the blockchain in association with the token. The amount of virtual currency (B1) can be spent (redeemable) only upon provision of an unlocking script that satisfies the requirements of the locking script for the output TxO. In particular, a redemption script must be presented that, when hashed, matches the hash provided in the locking script of the TxO. The locking script for the output TxO contains the hash of the redemption script which then hash the token (in metadata), so that the virtual currency (B1) is associated with the token. Once the correct unlock (redemption) script is presented, ownership of the virtual currency (B1) is transferred, i.e., spent, to the redeeming party or user.

[0028] The present invention may provide a computer-implemented system arranged and configured to perform any of the methods described above. Any feature described above in relation to one aspect or embodiment may be used in relation to any other embodiment or aspect. Any feature mentioned in relation to a method of the present invention may be equally applied to a corresponding implanting system and vice versa.

[0029] Throughout this specification the word "comprise" or variations such as "comprises" or "comprising" will be understood to mean the inclusion of the stated elements, integers, or steps, or groups of elements, integers, or steps, but without excluding any other elements, integers, or steps, or groups of elements, integers, or steps. [Brief description of the drawings]

[0030] Embodiments of the present invention will now be described, by way of non-limiting example only, with reference to the accompanying drawings, in which: [Figure 1] FIG. 1 is a schematic diagram of a system according to one embodiment of the present invention. [Diagram 2] FIG. 2 is a flow chart of a process carried out by a user of the system according to FIG. [Diagram 3] FIG. 3 is a flow chart illustrating a process performed by an exchange service provider. [Figure 4] FIG. 4 is a table illustrating the metadata format for an invitation generated by an exchange service provider. [Diagram 5] FIG. 5 is a table illustrating the metadata format for an invitation generated by an exchange service provider. [Figure 6] FIG. 6 is a flow chart illustrating the process of matching invitations from two or more users of the system according to FIG. [Figure 7] FIG. 7 is a transaction table for multiple transactions between multiple parties for the system according to FIG. [Figure 8] FIG. 8 is a transaction diagram illustrating a transaction between parties to the system according to FIG. [Figure 9] FIG. 9 is a transaction table for multiple transactions between multiple parties for the system according to FIG. [Figure 10] FIG. 10 is a transaction table for multiple transactions between multiple parties for the system according to FIG. [Figure 11A] FIG. 11A is a transaction table for a transaction between two parties for the system according to FIG. [Figure 11B]FIG. 11B is a transaction table for a transaction between two parties for the system according to FIG. [Figure 11C] FIG. 11C is a transaction table for a transaction between two parties for the system according to FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0031] There is a need for faster and cheaper ways to perform and keep permanent records of day-to-day transactions, both financial and non-financial. It is important to note that the present invention is not limited to use or benefit with financial applications. Instead, the present invention generally relates to methods and apparatus for utilizing a P2P distributed ledger, such as the Bitcoin blockchain, to allow parties to offer, request, and exchange any type of entity of value. The methods described herein allow for the entry of an invitation (or order) to effect an exchange of entities, as well as an enactment for the actual exchange upon acceptance of the invitation. The embodiments thus provide for a permanent record of all steps of the exchange process to be kept. Furthermore, each step in the process (offer, acceptance, and exchange) can be secured using cryptographic locking techniques similar to those used in cryptocurrency transactions. The methods described herein can also be used to exchange any type of entity. Examples of such entities include, but are not limited to, Bitcoin, fiat currencies, contracts, goods, and services. By "cryptocurrency" we mean encrypted, electronically transferable digital assets, such as, but not limited to, Bitcoin. Exchanges such as Coinffeine (http: / / www.coinffeine.com / ) that incorporate the use of blockchain technology are known in the art. However, such prior art arrangements still rely on traditional models and also rely on third party sources, escrows, and other multi-currency non-bank accounts / processors to operate. These known arrangements achieve decentralisation through their business models, rather than through technological innovations (as per the present invention) and cryptography. The present invention incorporates the use of tokenisation techniques. Contracts can be exchanged using a system of tokens. In summary, a token is an exchangeable entity that represents a contract. Contracts can take one of several forms. For example, a contract can confer rights to the holder or indicate ownership of property. The value of the token can be specified in the contract and linked to the underlying BTC amount via a "pegging rate". Tokens are exchangeable via a novel type of transaction that uses a cryptocurrency protocol such as the Bitcoin protocol. The Bitcoin value in the transaction acts as a token that represents a rights contract in digital form. The contract itself can be stored on the blockchain, or can be stored in a publicly accessible off-block location, or can be held privately by the parties to the contract depending on the particular embodiment. If the contract is not stored on the blockchain, the blockchain transaction (Tx) can store a unique pointer, identifier, or other reference to the contract.

[0032] A token may be divisible. A divisible token is one in which the value in a transaction output can be divided into smaller amounts, and the value can be allocated across multiple new tokens. Examples of divisible tokens include tokens for fiat currencies or tokens for shares in race horses. A divisible contract may be defined as specifying a non-zero peg ratio. In other words, the token value is tied to the underlying Bitcoin value. Alternatively, a token may be non-divisible. A non-divisible token is a contract that specifies the holder's rights in a fixed value, for example a contract to redeem a house or $1000 Australian dollars. Non-divisible tokens are therefore not linked to the underlying Bitcoin value. Being non-divisible, they can only be transferred as a whole.

[0033] To be valid, a token can be digitally signed by a token issuer. The issuer can be, for example, an institution such as the Registrar of Title deeds. The issuer can issue a token to a user in return for payment. The token can then give the user the right to exercise a contract linked to the token, whether that contract is the right to redeem fiat currency, or to have a service performed, or the transfer of property (i.e., a title deed).

[0034] An implementation of a token according to the above includes the following: A fiat currency token that is pegged to the BTC value of the transaction output by the contract issuer. For example, "The spender of this token (a Bitcoin transaction) is entitled to redeem any portion of this token for Canadian Dollars (CAD) at the rate of 1 share (10 cents) per 1000 satoshis." A racehorse owned by multiple members of a syndicate. Any item whose ownership is by title deed. For example, a house or other property could be dealt with in this way. An electronic contract representing a concert ticket, which is indivisible in nature. ·bearer bond (indivisible) A unique identifier (such as a barcode or RFID) affixed to the good / service. When used, this identifier is still preferably validated by the signature of an authorized entity. Without a signature, it falls into the less secure "goods / service" category (explained below). A contract for the right to a service to be performed. Note that this is not the same as the actual service itself, just the right to have the service performed for you. This right can be traded. For example, a voucher from Michael's Mowing for up to 3 hours of lawn mowing in the Sydney metropolitan area. The holder of this voucher (contract) can redeem the voucher for the actual service.

[0035] The token must specify the value of the share, e.g. 1 share = 10 cents CAD, 1 share = 1 rupia, or 1 share = an item or property (a race horse, a house, etc.).

[0036] Although the embodiments described below may make specific reference to recording transactions on the Bitcoin blockchain (or simply blockchain), it will be appreciated that the present invention may be implemented using any P2P distributed ledger. Blockchain is used below to explain aspects of the present invention for its simplicity due solely to its high level of standardization and the large amount of associated public documentation.

[0037] As is well known in the art, a blockchain is a transaction ledger or database distributed across networked nodes participating in a system based on the Bitcoin protocol. A full copy of a currency's blockchain would contain every transaction ever performed in the currency, thus providing a continuously growing list of transactional data records. Each transaction entered on the blockchain is cryptographically implemented, making the blockchain hardened against tampering and revision, even by operators of the data store nodes.

[0038] Instead of, or in addition to being used in its designed function of storing records of transactions representing payments of bitcoin (or other virtual currency) from one party to another, blockchains are being used in novel ways to enable the transfer of entities or assets between parties. An exchange transfers control and / or ownership of a digital entity from one party to another. To accomplish this, the present invention provides a mechanism for holding and recording invitations (or orders) to effect an exchange involving one or more entities. The present invention thus provides a novel and advantageous communication solution conducted via blockchain.

[0039] As mentioned above, any type of entity or asset can be exchanged. These can be physical, "real world" entities, or virtual, digital entities. Examples of entities that can be exchanged include bitcoins, tokens (representing any type of transferable contract), and any type of goods and services. Tokens can represent contracts that confer certain rights to their holders. To name a few of the many examples, they can be redeemed for fiat currency (virtual bank notes), indicate ownership of property (e.g., title deeds), or rights to grant access to an event. Goods and services can include new or used products, labor (e.g., billed by the hour), complete jobs (e.g., mowing the lawn), to name a few of the many examples.

[0040] FIG. 1 is a network diagram of a P2P exchange system 100 according to one embodiment. The system 100 includes a network 102 and multiple parties to the network. The parties include an exchange service provider 104, a first user 106, a second user 108, an escrow service provider 110, and an issuer 112. As described in more detail below, a combination of the functions of the exchange service provider 104, the escrow service provider 110, and the issuer 112 may be undertaken by a single party. In other words, a single party may perform each function simultaneously. In addition, and as described in more detail below, the exchange service provider 104 and the escrow service provider 110 are optional, as the P2P exchange system may be implemented entirely without the use of these service providers 104, 110.

[0041] The exchange service provider 104 provides exchange services to multiple users, including a first user 106 and a second user 108. The issuer 112 is optional to the network 102, as indicated by the dashed line. As will be explained in more detail below, the issuer 112 is only required where an exchange of tokens is involved.

[0042] In some embodiments, the network 102 is the Internet. Thus, other parties (not shown) may be parties to the network 102. All parties to the network 102 can communicate with all other parties to the network 102. Hosted on the network 102 are a Peer-to-Peer Distributed Hash Table (P2P DHT) and a Peer-to-Peer Distributed Ledger (P2P DL). It will be appreciated that some or all of the parties shown in the system 100, along with others not shown, may act as host nodes for both or either the P2P DHT and the P2P DL.

[0043] Invitation Structure The invitation may be configured to include various parameters or codes. These may be used for various purposes, such as matching invitations, as described in more detail below. In one or more embodiments, the following structure may be used: [Table 1-1] [Table 1-2]

[0044] One purpose of the exchange service provider 104 is to provide a gateway for users 106, 108 to place invitations (or orders) in both the P2P DHT and the P2P DL. While users 106, 108 of the network 102 can themselves place invitations in both the P2P DHT and the P2P DL, the exchange service provider 104 provides a simplified interface, improves the efficiency with which invitations are generated, and, as one skilled in the art will appreciate, reduces the risks associated with directly handling transactions in a distributed ledger such as the Bitcoin ledger (e.g., lost transactions, etc.). In addition to enabling the issuance of user invitations in the P2P DHT and the P2P DL, the exchange service provider can perform one or more of the following additional services: · Invitation Matching Matching invitations - As mentioned above, an invitation may contain a) details of the entity with which the user wishes to exchange, and b) one or more user-applied options / conditions attached to the exchange. Two invitations may match if the details of the respective entities are mirrored and one or more of the conditions of the two invitations are met. In other words, a match may occur when one or more parameters or features included in the first invitation are also included in the second invitation, and vice versa. There is a pairing or commonality between certain aspects of the invitations. These parameters are pre-specified as essential for a match in order for the exchange to take place. An example of mirrored entity details is when a first user (Alice) offers bitcoins for apples and a second user (Bob) offers apples for bitcoins. The service provider can therefore provide a matching service to match compatible invitations to accommodate the exchange. Matching may include scanning the P2P DHT for one or more invitations with matching entities and / or conditions. In some embodiments, the service provider 104 can scan the P2P DHT in response to a request from a user. For example, a user can provide one or more criteria for a desired invitation to the service provider 104. Based on the provided criteria, the service provider 104 can then search for invitations already placed on the P2P DHT that match those criteria. In other embodiments, the service provider 104 can implement a non-specific pairing algorithm that searches the P2P DHT for matching or near-matching invitations that are not related to a specific user request. It will be appreciated that the matching service may be provided by other third party providers. There may be one or more third party providers whose primary purpose is to provide matching services in accordance with the above and to provide matching alerts as well, as described below. In some embodiments, the matching is provided by a matching service provider (MSP). In accordance with one or more embodiments, and with reference to the table shown in the "Invitation Structure" section above, a matching algorithm can be employed from matching invitations between A and B as follows: A's Offer-type-code must match B's Request-type-code A's Request-type-code must match B's Offer-type-code A's Rate-min ≦ B's Rate-max (when expressed in equivalent units) A's Rate-max ≧ B's Rate-min (when expressed in equivalent units) The Request-item-ID must match the Offer-Item-ID A's Request-QTY-min <= B's Offer-QTY-max A's Request-QTY-max ≧ B's Offer-QTY-min A's conditions (if any) must be met by B's invitation B's conditions (if any) must be met by A's invitation The present invention can be configured to incorporate machine executable rules that implement this algorithm or variations thereof. · Alert Matches Match alerts - if a match or near match is found, the exchange service provider 104 can alert the user in known manner, such as by email or via a phone or tablet application. Thus, the present invention can provide a novel communication or alert mechanism. · Generate new invitations based on matchesGenerating new invitation based on matches - When a user provides details of an invitation or order that they wish to place, the service provider 104 may scan the P2P DHT for one or more invitations that satisfy the conditions of the user's order. Then, if a matching invitation is found in the P2P DHT, the service provider 104 may generate an invitation that mirrors the identified invitation already on the P2P DHT to facilitate a successful match. Note that in order to complete a final transaction on the P2P DL, all parties to the transaction must have an invitation already published on the P2P DL. However, not all invitations need to be published on the P2P DHT. In this embodiment, for example, the service provider does not need to publish an offer on the P2P DHT, since there is no need for the invitation to be advertised (the desired match has already been found). However, it will be appreciated that the generated invitation may still be placed on the P2P DHT, for example, if the initial match fails. · Executing a transaction Executing transactions - After a pair of invitations are successfully matched, the service provider 104 can act as a proxy to effect the final transaction. For example, upon determining that two invitations match, the service provider 104 can record the actual transaction, i.e., the transaction involving the exchange of entities, in the P2P distributed ledger. This process may occur automatically, without the parties expressing approval, or after prompting one or more parties to approve the transaction. In some embodiments, metadata in the invitation may indicate whether the parties need to be notified before the exchange is finalized. · E-wallet service (eWallet services) - In addition to the above, the service provider 104 may also provide traditional eWallet services, such as holding keys to virtual currency, etc.

[0045] In the system 100 of FIG. 1, a single service provider 104 is shown. However, it will be appreciated that one or more additional exchange service providers may be parties to the network 102. When there is more than one exchange service provider, users may select an exchange service provider according to their requirements, which may include, for example, the service provider's fee structure, location, compatibility, etc. Thus, it will be appreciated that in certain circumstances, two users with matching invitations may use different exchange service providers. In such circumstances, the users' respective exchange service providers may communicate with each other to facilitate the exchange.

[0046] In addition to the exchange service provider 104, an escrow service provider 110 (or escrow for short) may be a party in the network 102. The escrow service provider 110 allows the user's offer to be held until the transaction is settled (i.e., the offered amount is reserved) or, under certain conditions, to cancel the order and return whatever was offered in the invitation. The escrow service provider 110 acts as a neutral third party trusted by the two parties of the transaction to provide escrow services for the transaction. Thus, the system allows users to participate in the final transaction and have the assurance that the user making the offer will be able to fulfill the offered amount (in bitcoins or tokens).

[0047] As with the exchange service provider, one or more escrows may be parties to the network 104. Users of the P2P exchange system 100 may also choose which escrow provider to use, if any. In some embodiments, the services of the escrow 110 may be incorporated into the services of the exchange service provider 104, or vice versa. In such cases, a separate escrow may not be required.

[0048] In addition to the above, the system 100 may also include an issuer 112. The issuer 112 may be involved if the transaction involves an exchange of tokens. In such a situation, the process involves an issuer signing the tokens. Each transaction involving a transfer of tokens preferably includes an issuer 112. In the embodiment described herein, an issuer signature is required in invitation transactions, where tokens are provided and held in escrow. An issuer signature is also required in exchange transactions, where tokens are paid out to a counterparty.

[0049] An important aspect of embodiments of the present disclosure is the ability to embed metadata about the invitation to perform the exchange in a bitcoin exchange transaction (or virtual currency transaction), and similarly, to embed metadata about the actual exchange in a bitcoin or other virtual currency transaction. The embodiments described herein use multi-signature pay to script hash (P2SH) type transactions to enable such metadata embedding, as described below.

[0050] (i) Redeem script in P2SH in general As background, in the Bitcoin protocol's standard pay-to-script hashing method, a redemption script takes the following form: <NumSigs PubK1 PubK2 ... PubK15 NumKeys OP_CHECKMULTISIG> Where: NumSigs is the number of valid signatures, 'm', required to satisfy the redemption script to unlock the transaction. PubK1, PubK2, ..., PubK15 are the public keys corresponding to the signatures that unlock the transaction (up to a maximum of 15 public keys). NumKeys is the number of public keys, "n" (which must be 15 or less).

[0051] To redeem the above redemption script, at least "m" signatures corresponding to the public keys are required. In some implementations, the order of the public keys is important, and "m" of the "n" signatures for signing must be done in order. For example, say "m" is 2 and the number of public keys "n" is 15. If two signatures are available for use, say Sig1 (corresponding to PubK1) and Sig15 (corresponding to PubK15), the redemption script must first be signed by Sig1, and then by Sig15.

[0052] (ii) Embedding metadata in P2SH The inventors have recognized that metadata can be embedded in the P2SH in one or more of the 15 locations available for the public key in the redemption script.

[0053] For example, a P2SH might take the following form: <NumSigs Metadata1 Metadata2 ... PubK1 PubK2 ... NumKeys OP_CHECKMULTISIG> Where: NumSigs is the number of valid signatures, 'm', required to satisfy the redemption script to unlock the transaction. Metadata1 and Metadata2 each contain metadata in place of a public key. PubK1 and PubK2 are the actual public keys, and NumKeys is the total number of positions taken by metadata and public keys (which must be 15 or less).

[0054] By placing metadata in the redemption script corresponding to the terms of the invitation, details of the contract related to the token, and / or other information relevant to the exchange, a hash of such information is included in the P2P distributed ledger. This embedding method can be summarized as follows: and generating a blockchain transaction (Tx) having an output (TxO) for a portion of cryptocurrency and a hash of a redemption script, where Tx is Metadata including tokens, which are representations or references of tokenized entities; and At least one (and preferably two or more) public encryption keys.

[0055] The tokenized entity may be a contract and / or other entity for an exchange. Metadata is provided in a location specified by the protocol for the cryptographic key.

[0056] Thus, the use of multi-signature P2SH Bitcoin transactions in embodiments of the present invention provides several advantages. First, it allows invitation transactions to carry metadata payloads. Second, it facilitates the use of escrow services in exchange transactions. Third, it allows exchange transactions to carry metadata about one or more tokens being exchanged at the location where the tokens are transferred in the exchange. Also, the underlying blockchain protocol is agnostic to the fact that metadata is being sent via the transaction. Thus, no changes to the blockchain protocol are required to convey this information.

[0057] The metadata may include statements or keywords describing the offer or request in the invitation transaction. The metadata may also include conditions on the invitation. For example, a deadline date may be attached to the invitation. The deadline may specify the time and / or date by which the order must be fulfilled. If a deadline condition is provided with the invitation transaction, a cancellation transaction may be generated that spends the same BTC amount and includes a locktime that represents the deadline by which the exchange must occur. The cancellation transaction may prevent the transaction from being distributed on the P2P DL until the locktime. If the exchange does not occur by the deadline, the cancellation transaction is added to the P2P DL and effectively refunds the payer and / or service provider. If the exchange occurs before the deadline expires, the exchange transaction will have spent its amount, creating a double-spend that hits the P2P DL prior to the time-locked cancellation transaction, thereby blocking the cancellation transaction. In some embodiments, the metadata may not include a deadline, but instead the cancel transaction may simply be responsible for canceling the original invitation transaction. Alternatively, the deadline metadata condition may not automatically trigger the spending of the cancel transaction. In other words, the deadline may be a flexible deadline that remains under the control of the payer. This deadline may therefore be extended by the party simply allowing it to lapse and still accepting late matching invitations. Similarly, the service provider may still attempt to match an expired order if it remains unused.

[0058] Instead of locking in the cancellation transaction at the same time as placing the invitation transaction, the user can wait until after the deadline and then manually enter the cancellation transaction if they so choose.

[0059] Conditions can also include one or more location conditions that can specify, for example, that a transaction will only be broadcast on the P2P DL if the location of the transaction broadcast is within X meters of specified coordinates. This ensures that the transaction only takes place at a specified location, e.g., Bob's Coffee Shop.

[0060] There may be a facility that allows users to create their own new conditions and add them to the list of conditions by assigning them to a previously unused condition code. This facility may be resistant to abuse. For example, each service provider may simply publish its own table of conditions together with the associated condition code, and other parties in the system 100 may choose to adopt the same coding and may also add their own new codings. Then, in case of a dispute arising due to, for example, the reuse of condition codes, the dispute may be resolved by the service provider or other users of the system 100.

[0061] Some examples of implementations of the present invention will now be described, taking as an example a transaction between a first user 106 (herein referred to as Alice) and a second user (herein referred to as Bob). In this example, the transaction is an exchange of tokenized Canadian dollars for Bitcoin.

[0062] Posting an invitation

[0063] In a first embodiment, Alice wants to buy some Canadian dollars (CAD) tokenized for Bitcoin. To advertise her interest, Alice contacts the exchange service provider 104, for example, via a web interface or app running on a tablet or mobile phone. As shown in FIG. 2, in step 202, Alice logs into the web interface of the service provider 104. In steps 204 and 206, Alice then sends the details of her invitation to the service provider, including the entity to be exchanged (CAD tokenized for Bitcoin) and the terms of the exchange, as well as any selected options offered by the service provider. Alice can enter this information into an interface hosted by the service provider 104, for example, using normal language that can then be translated by the service provider 104 into a valid invitation, or, alternatively, Alice can simply enter the information via a drop-down selection menu, for example, of pre-selecting options.

[0064] In step 208, Alice receives a redeem script from the service provider 104 that is generated by the service provider 104 based on her selection and that includes information about the entity Alice wants to exchange with and any terms and conditions regarding the invitation. Because Alice has signed up to use a particular service provider 104, the service provider 104 may already have Alice's public key. Alternatively, Alice can provide her public key to the service provider 104 either during the initial selection or upon request from the service provider 104.

[0065] Alice signs the redemption script using her private key, which is the cryptographic pair to her public key, in step 210, and sends the signed redemption script back to the service provider 104 to be distributed, in step 212. This process may be supported through the use of an app, which itself may be provided by the service provider 104.

[0066] Flowchart 300 shown in FIG. 3 describes the corresponding process performed by the service provider 104. In step 302, the service provider 104 receives the invitation details from Alice and in step 304 generates a redemption script using Alice's public key, the entity details, and the conditions of the invitation. The redemption script may be in a format suitable for P2SH Bitcoin transactions. The invitation details may be stored in a metadata field in place of the 32-byte public key typically used in multisig unlocking scripts. FIG. 4 illustrates the metadata format for Alice's invitation according to one embodiment. In the invitation, Alice requests tokenized CAD and in return offers Bitcoin at a rate of 400 CAD / Bitcoin or higher. As will be explained in more detail below, FIG. 4 also illustrates deadline conditions that can be added to the invitation. The deadline conditions can be based on the invitation, such that the invitation is cancelled at the deadline if the exchange is not confirmed.

[0067] The redemption script is then sent to Alice for signing. Upon receiving the signed redemption script from Alice, in step 308, the service provider 104 generates a hash of the signed redemption script. In some embodiments, the service provider may keep a copy of Alice's private key (if permitted to do so). In this case, the redemption script may not be physically sent to Alice. Instead, Alice may be asked to confirm whether she wishes to proceed, and upon receiving approval from Alice, the service provider 104 may then sign the redemption script on Alice's behalf. Additionally or alternatively, Alice's private key may not be stored by the service provider 104, but may be recreated if needed and if approved by Alice.

[0068] The service provider 104 uses the hash in two ways. First, in step 310, the service provider 104 lists the details of the invitation along with the hash in a publicly available P2P DHT. As mentioned above, this table employs torrent techniques so that it is distributed rather than centralized, and therefore remains publicly accessible and safe from adulteration. Other service providers 104 can then access the invitations and list them on their own sites (in practice, the service provider 104 simply uses the hash table as the only repository and need not even maintain its own local database of invitations).

[0069] The second way the hash is used is to create a locking script for the Bitcoin transaction in step 312. This transaction spends an amount of Alice's Bitcoins against a P2SH script that requires two signatures to unlock: Alice's signature, and the signature of a designated escrow service provider 110 (which may or may not be the same entity as the service provider 104, as described above). The purpose of this transaction is twofold. First, the invitation is logged on the P2P DL. Any user or its service provider can verify that the invitation on the P2P DHT is legitimate by ensuring that there is a matching transaction on the P2P DL (via a matching hash value). Second, the transaction "locks" the commitment that Alice made in the invitation. The amount of Bitcoin that Alice provides in exchange for tokenized CAD is the amount that is spent by the order transaction. Thus, it can be verified that the order is backed by sufficient funds.

[0070] Pairing matching invitations

[0071] In a second example, Bob wants to sell some of the CAD tokenized for his BTC and independently lists his own invitation, using either the same or a different service provider as that used by Alice, service provider 104. Bob's order is also listed in a hash table and embedded in the P2P DL transaction, as described with reference to Figures 2 and 3. The metadata of Bob's invitation is shown in Figure 5.

[0072] 6, a process 400 for matching orders between Alice and Bob is illustrated. In this example, service provider 104 is illustrated as performing the process. However, it will be appreciated that any exchange service provider, or indeed any other suitable third party, may perform process 400.

[0073] The exchange service provider 104 may execute a matching algorithm operable to identify a full or partial match between Alice's and Bob's invitations. In step 402, the exchange service provider 104 scans the P2P DHT for matching entity details. During the scan, the service provider 104 checks for a match between the entity details of Alice's and Bob's invitations. If no match is found in step 404, then the process returns to step 402 and the exchange service provider 104 continues scanning the P2P DHT for matching entity details. If a match is found in step 404, then the process 400 continues with step 406 where a check is made for a match between one or more conditions of each of Alice's and Bob's invitations. If no match is found in step 406, then the process returns to step 402. If a match between one or more conditions is found, then the process moves to step 408 where the exchange service provider 104 attempts to create and confirm a transaction between Alice and Bob.

[0074] A direct match of all terms in the two invitations may not be required in step 406 for a positive matching to be identified. Indeed, process 400 may only require that some of the terms match. Additionally or alternatively, one or more terms need not match exactly. For example, if the terms being compared are the exchange rates offered in each invitation, process 400 may identify a positive match if the rates are within a predefined threshold range of each other. For example, if Alice is receiving an offer of 4×10 -5 You are offering a minimum rate of tokenised CAD / satoshi, and Bob’s equivalent maximum offered rate is 3.9×10 -5 In the case of tokenized CAD / Satoshi, even if Bob's offered rate does not fully meet Alice's original requirements, the process may still confirm or offer a match. In such a situation, upon match, Alice may be given the option to accept. If Bob's equivalent maximum offered rate is 4.1×10 -5 It will be appreciated that the condition is satisfied if the tokenized CAD / Satoshi. In another example, the condition may be the respective values ​​for the goods and services offered in the offer and request. The process 400 can again check for a positive match if the two values ​​are within a predefined threshold range of each other. In either case, the predefined threshold range may be, for example, a discrete value or a percentage of the offer or request value. In some embodiments, there may be conditions that can be set to either allow or not allow a close match, i.e., when there is no direct match between Alice and Bob's respective offers. Similarly, there may be conditions that can be set to either allow or not allow a counter offer that is not strictly within the offered range.

[0075] As mentioned above, the transaction metadata of each or both of Bob's and Alice's invitations may further include one or more location conditions, for example specifying that the transaction will only be broadcast on the P2P DL if the location of the transactional broadcast is within X meters of specified coordinates. This ensures that the transaction will only take place at a specified location, e.g., Bob's coffee shop.

[0076] Once a match is found and before completing the transaction, one or more intervening steps may be performed. These may include an alert to the parties that a match has been found, followed by a request to confirm that they wish to proceed, and so on. For example, as described above, if the conditions are nearly, but not completely, satisfied by one or more users, a match may still be recorded, but not finalized until all parties are satisfied with the terms of the invitation. This process may result in counter offers to negotiate a final agreement on the terms, and may then result in the generation of further invitations according to the process described above.

[0077] The final exchange can be performed by creating one or more Bitcoin transactions that spend the outputs of each invitation transaction. The inventors have discovered several novel ways to complete a transaction that may depend on the circumstances, including but not limited to the users involved in the transaction, the entities being exchanged, and the service providers and issuers involved in the transaction. Examples of some of these methods are described below.

[0078] Continuing from the example described above with reference to Figures 2 through 6, a transaction table 500 for separate transactions for Alice-Bob and Bob-Alice is shown in Figure 7, and a schematic transaction flow 600 is shown in Figure 8. The values ​​provided in transaction table 500, as well as the metadata values ​​shown in Figures 4 and 5, are shown by way of example only. In this example, Alice's Bitcoin in her invitation transaction is spent on Bob, and Bob's CAD tokenized Bitcoin in Bob's invitation transaction is spent on Alice.

[0079] Turning first to the Alice-Bob transaction, the input 602 of this transaction is provided from the output of the invitation transaction that was placed on the P2P DL along with Alice's invitation. As with the first transaction, the input script is signed by both Alice and the escrow service provider 110 (assuming Alice is happy for the transaction to proceed). The script unlocks the spent bitcoins and can output them a) to Bob as his payment in return for the tokenized CAD (604), b) to the exchange service provider 104 as payment for the exchange (606), and c) to Alice as change, if any (608).

[0080] Turning now to the Bob-Alice transaction, this transaction has two inputs. The first input 610 of the transaction is provided from the output of the invitation transaction that was placed on the P2P DL with Bob's invitation. Because the inputs to this transaction are tokenized, the input script needs to be signed by both Bob and the token issuer. In this situation, the token issuer also acts as an escrow, holding the funds until Bob (and optionally Alice) is satisfied with the transaction. The signed script unlocks the spent tokens, which can then be output a) to Alice as a return payment for BTC (612), and b) back to Bob as a change token for the original token value less the value sent to Alice (614). The second input 616 is from Bob's previous Bitcoin transaction. This input is unlocked and output a) to the service provider 104 as payment for the exchange, b) to the Bitcoin miner as a fee for the exchange transaction, and c) to Bob as change in Bitcoins for the value of the original Bitcoin input value less the service provider 104 fee and the miner's fee.

[0081] The service provider's 104 fee for each transaction may be a slice of the transaction's value. Alternatively or additionally, the fee may be a slice of the exchange rate spanning between the corresponding rate terms indicated in the two invitations. For example, if the offered rates overlap, the service provider 104 may fulfill both sides of the exchange at their respective asking rates and keep the difference as a fee. Alternatively or additionally, a flat fee (in satoshis, tokenized currency, or otherwise) may be taken by the service provider 104. In some embodiments, the service provider may not derive the fee via the actual transaction. Instead, the user may be charged a fee outside of the transaction. For example, the user may be charged a membership fee or a per-transaction bill for one or more transactions (per transaction or on account, etc.).

[0082] Once the transaction is completed, Bob's and Alice's respective service providers can remove their invitation entries from the P2P DHT or enter further entries that invalidate the original entry. For example, the service provider can simply leave the entry on the P2P DHT since it corresponds to a spend transaction. This means that the invitation is no longer valid. Alternatively, the service provider can mark the transaction with a field indicating that it has been spent. This may be a separate field in the DHT that corresponds to the particular entry, but does not change the actual metadata associated with the invitation (this can ensure that the script hash still matches the hash in the transaction). Alternatively, the service provider can remove the entry from the P2P DHT. However, an advantage of the P2P DHT is the persistent audit control of transactions using the system 100. Preferably, therefore, removal of entries from the P2P DHT is prevented or removed entries are archived to maintain a record of the entries. In one example, removed entries are archived.

[0083] In the above example transaction, no puzzles are exchanged. In other words, the two transactions (Alice-Bob and Bob-Alice) are completely separate and distinct. However, in some cases it is desirable for the two transactions to be either valid or invalid. Figure 9 shows the results of Alice's transaction (Alice-Bob). Figure 1 shows an example of an alternative transaction in which a puzzle is exchanged between two parties (Bob and Ian). By doing so, the two transactions are locked together and one cannot be spent without spending the other. This prevents a transaction from passing from one party to another without the other party's transaction also passing. A "puzzle" in this sense may include a hash of a secret known only by one party. For example, the "secret" may be a number that is the "solution" to the puzzle. The hash is integrated as part of the redemption script in such a way that both the signature as well as the puzzle solution must be presented to unlock it.

[0084] In the two examples above, two Bitcoin transactions are executed to complete the exchange. If possible, however, it would be desirable to merge the two transactions above into a single Bitcoin transaction. Doing so would automatically lock the two parts of the exchange together and would reduce the overall fees paid by Alice and Bob for the transaction.

[0085] FIG. 10 shows a transaction table 700 for a single transaction between Alice and Bob. The transaction flow for the exchange is the same as in the previous two examples, i.e., that shown in FIG. 6. However, the exchange is consolidated into a single multi-input-multi-output (MIMO) transaction. As such, puzzles do not need to be exchanged to ensure co-dependence, as would be the case if two separate transactions were made. Note that in FIG. 8, two separate fees are paid to the exchange service provider 104. However, if the exchange service provider 104 is the same for both Bob and Alice, these two fees can be consolidated into a single transaction paid by Bob, Alice, or both Bob and Alice.

[0086] Transactions involving two or more parties

[0087] The above transaction involves an exchange between two entities. However, it will be appreciated that in some instances, more than two entities may be involved in the exchange. For example, consider the following scenario: Alice wants to exchange bitcoins for apples but can only accept a minimum of 1000 apples. Bob wants to exchange apples for bitcoins but can only supply 500 apples. Carol wants to exchange apples for bitcoins but can only supply 600 apples. In these circumstances, the terms of Alice's invitation cannot be satisfied by Bob or Carol individually. However, together, Bob and Carol have 1100 apples and can satisfy Alice's invitation.

[0088] In another example, Alice wants to exchange tokenized CAD for tokenized GBP, Bob wants to exchange tokenized GBP for tokenized AUD, and Carol wants to exchange tokenized CAD for tokenized AUD. There is no direct match between any two of the three parties, but they can be combined to satisfy each of the invitations - Alice's tokenized CAD can go to Carol, Bob's tokenized GBP can go to Alice, and Carol's tokenized AUD can go to Bob. Figures 11A-11C show an example transaction table for a transaction between Alice, Bob, and Carol.

[0089] Referring first to FIG. 11A, a transaction table is shown for a payment from Alice to Carol. Alice has $1500 tokenized CAD and needs 500 tokenized GBP from Bob. The transaction pays 1000 tokenized CAD from Alice to Carol, and Alice pays herself the remaining 500 tokenized CAD (1500-1000). Using regular BTC, Alice can pay the service provider's fee (which may be a flat fee as shown in FIG. 11A or a fee based on the value of the transfer) and pay herself the change minus 1000 satoshis for the miner.

[0090] Referring now to FIG. 11B, a transaction table is shown for the payment of tokenized GBP from Bob to Alice. Bob has tokenized GBP 750 and needs tokenized AUD from Carol. The transaction pays tokenized GBP 500 from Bob to Alice and Bob pays himself the remaining tokenized GBP 250 (750-500). Using standard BTC, Bob can pay the service provider's fee (which may be a flat fee as shown in FIG. 11B or a fee depending on the value of the transfer) and pay himself the change minus 1000 satoshis for the miner.

[0091] Referring now to FIG. 11C, a transaction table is shown for a payment of tokenized AUD from Carol to Bob. Carol has tokenized AUD1500 and needs tokenized CAD from Alice. The transaction pays tokenized AUD1000 from Carol to Bob, and Carol pays herself the remaining tokenized AUD500 (1500-1000). Using standard BTC, Carol can pay the service provider's fee (which may be a flat fee as shown in FIG. 11C, or a fee depending on the value of the transfer), and pays herself the change minus 1000 satoshis for the miner. It will be appreciated that if an exchange consists of two or more separate transactions (e.g., 1: Alice transfers to Bob, and 2: Bob transfers to Alice), the transactions may be linked to ensure that either all parties receive their entitlements or none receive them. This can be achieved by satisfying the following conditions (we use an example of two parties, A and B, but can easily be extended to three or more parties): A transaction output transferring from A to B exists and can be spent by B if and only if a transaction output transferring from B to A also exists and can be spent by A, and vice versa. Note that parties A and B refer to the set of signers required for each transaction (e.g., including token issuers, escrows, etc.), not just Alice and Bob.

[0092] Receiving a selection from the user

[0093] In a variation of the exemplary exchange described above with reference to Figure 6, instead of a service provider parsing the P2P DHT for matching orders, current users themselves can scan or browse the P2P DHT to view current invitations. Browsing may be facilitated by a third party, such as the exchange service provider 104. The third party may provide an interface in which users can browse, scan, and search for invitations that may be of interest.

[0094] Users can then skip the process of entering their own prospective invitations on the P2P DHT, but instead choose to create invitations that match or nearly match the orders in which they are interested.

[0095] For example, following from, but in contrast to, the previous embodiment, Bob can find Alice's invitation on the P2P DHT via a browsing or search interface. Bob can then enter his invitation to match Alice's. Bob can do this in one of several ways. In one embodiment, there may be a function on the interface that displays Alice's order to "Accept" the order. If Bob is a client of the same exchange service provider 104 that Alice used for the invitation, they may already have access to Bob's eWallet (public key, etc.) and can therefore create a matching order based on that information. In response, the exchange service provider 110 can generate a redemption script for the matching invitation, send it to Bob for signing, receive the signed redemption script, and enter the order on the P2P DL in preparation for the transaction. If Bob is not a client of Alice's exchange service provider 104, then a facility may be provided to enable Bob to enter the required information and authorisations, and then enable the service provider to create a matching order for Bob. The same process as described above with reference to Figures 7 and 8 is then followed.

[0096] The above example describes exchanging BTC for tokenized CAD. However, it will be appreciated that the system 100 works with any type of token, including, for example, BTC for any type of token (i.e., representing any contract, not just a currency contract), any type of token for any other type of token, BTC for goods / services, tokens for goods / services, or goods / services for goods / services. Additionally and theoretically, the above process could be modified to exchange BTC for BTC, although such an exchange would have no real meaning.

[0097] Exchange of goods / services

[0098] When goods / services are involved in the exchange, slight modifications to the transaction process described above are required.

[0099] In such cases, a transaction (of goods and / or services) contains a description of the goods or services involved in the exchange. Unlike the tokens represented by a contract or title deed, the description does not constitute a contract.

[0100] The description may or may not uniquely identify the item. For example, if a physical item is involved in the transaction, the description may explicitly reference a unique identifier associated with the physical item. Additionally or alternatively, the description metadata may include one or more of the following: a) a general description of the desired item being offered or requested, e.g., "dishwasher,<3 yo", b) a reference to a specific item for sale on an auction website, e.g., "used items for sale on an auction site", c) any number of an item type, e.g., advertising 15 t-shirts for sale that can be purchased as single items or in any quantity up to 15, d) a reference to cash, in any particular currency, e) a description of labor and payment, either for one completed job or for regular lawn mowing (a repetitive task) with recurring or hourly payments, or f) one or more keywords, e.g., "dishwasher".

[0101] With respect to services, services are backed by contracts as well as tokens. As such, services are divisible into shares, and indivisible services can be considered a one-time job, i.e., divisible but with a single share. If a service is indivisible, it may be treated as a token for purposes of invitation and exchange. If an item is backed by a token, it is treated as a token for purposes of both invitation and exchange, and is exchanged in the same way as other tokens, such as tokens for fiat currency.

[0102] One implementation of a transaction involving a physical item associated with a unique identifier will now be described. As with the previous example, in this example, Alice uses her exchange provider to place an invitation on the P2P DL and the P2P DHT. The invitation includes a statement that she will purchase a physical item with unique identifier XYZ123, which may be related to Raphael's masterpiece "Deposition of Christ," for no more than 2500 BTC. Similarly, Bob can place a matching invitation that he will sell item XYZ123 for no less than 2400 BTC. Alice can browse the P2P DL to find the item with item number XYZ123 and place a matching order based on this information. Or, alternatively, Alice can place a generic invitation that is then matched by a third party, such as an exchange service provider, and then a new invitation including the catalog item number and description is created to match Bob's order.

[0103] It will be appreciated that for transactions involving unique IDs, such IDs must be permanently unique, not only to a particular exchange service provider, but across the entire P2P DL. Thus, in cases where the unique identifier is not entirely unique to the device (e.g., the device's serial number), the exchange service provider may generate a unique identifier for the device. To ensure that each identifier is unique across the P2P DL, each exchange service provider may, for example, have their own unique code that they prepend to the number they use, uniquely identifying the product being advertised on the P2P DL.

[0104] Once an agreement is reached between Alice and Bob, the transaction is conducted according to the exemplary transaction process described above with reference to Figures 7 to 10.

[0105] A further example of a transaction involving a physical item will now be described, however, in this example the item does not have a unique identifier associated with it.

[0106] In the case where an invitation includes offers to sell multiple similar items, metadata may be required to describe the maximum and minimum quantities of the items that can be purchased with any one transaction. For example, Alice may place an invitation inferring that she will sell up to 15 Dead Lizard 2015 concert tour t-shirts at 0.025 BTC each, with at least 5 per transaction. In this case, the metadata values ​​may include the minimum rate (0.025 BTC / item), the maximum quantity (Offer-QTY-max(15)), and the minimum quantity (Offer-QTY-min(5)). The following table summarizes the metadata associated with an invitation: [Table 2]

[0107] The actual BTC value in the payment transaction is then calculated by the exchange service provider. Since this transaction merely represents an invitation to perform and exchange, the actual value of the transaction may be as small as, for example, dust (546 satoshis). Alternatively, as explained below, the value may be a nominal amount required by the service provider to guarantee the invitation (e.g., so that Alice is incentivized not to withdraw).

[0108] In further embodiments, goods in the form of hard currency (cash) can be exchanged. For example, Alice can place an invitation to sell Bitcoin for Canadian dollars (hard currency, not tokens) with a maximum purchase of 150 BTC. The invitation can additionally include a location condition that the exchange must only take place at her store address (371 Whimsy Avenue, Brentford). After placing a matching invitation, Bob can then come to Alice's store to deliver the cash in lieu of payment in the Bitcoin transaction to finalize the transaction. Once Bob and Alice meet at her store for the physical transfer, the actual digital transaction of Bitcoin to Bob and the digital record of the transfer of the coins to Alice can then be made.

[0109] In the case of transactions involving goods / services exchanged for other goods / services, it will be appreciated that transactions on the P2P DL exist only as records and do not represent an exchange of any value between the parties (apart from any fees to service providers etc.) Users may choose to pay a nominal service fee for using the system and entering the transaction on the P2P DL so that the exchange is permanently recorded.

[0110] Note that the original invitation transaction acts only as an invitation, not as a transfer of value or a record of an event. If a goods-for-goods exchange is conducted, such that the exchange involves only physical items, then the final exchange does not need to be recorded on the P2P DL, since the P2P DL is not required to complete any transactions in the final exchange. Nevertheless, if the parties to an exchange of physical items wish to record the exchange on the P2P DL, they may spend the invitation transaction each on each other, subject to a fee to the miner for doing so. If the parties do not wish to record the final exchange on the P2P DL, they may spend the invitation transaction back to themselves, or leave it unused on the P2P DL.

[0111] In the case of an exchange involving BTC for goods, or a token for goods, at least one transaction is spent on the P2P DL to transfer the value of the BTC or token. In this case, an invitation transaction offering up the goods may or may not be spent, since no value in the exchange (goods) is transferred by spending the invitation transaction. However, again, the parties may decide to spend the transaction nonetheless to provide a permanent record of the transfer (e.g., a sales receipt).

[0112] The amount spent in the above transaction may not represent the amount offered in some cases, especially if Alice's offer is a product / service rather than Bitcoin or tokens. Instead, the service provider could require a "deposit" by Alice of an amount representing the value of the product, or only a nominal amount if Alice can otherwise "guarantee" the offer, or the service provider itself could provide the Bitcoin for Alice (who may not have any) and cover this funding cost by any means of charging fees to clients.

[0113] In the above embodiment, the user's invitation is published in the P2P DHT. In some embodiments, however, the user's invitation (e.g., the script and the script hash) may be published on a website and sent directly to another user.

[0114] In some embodiments, a user's invitations may be stored locally by the service provider, for example, the service provider may host a private auction where only certain users have access to the details of the user's invitations.

[0115] It will be understood by those skilled in the art that many variations and / or modifications may be made to the above-described embodiments without departing from the broad and general scope of the present disclosure, and the present embodiments are therefore to be considered in all respects as illustrative and not restrictive.

[0116] The steps, features, integers, mixtures and / or compounds are disclosed herein or indicated in the specification of this application, either individually or collectively, as well as any and all combinations of two or more of the steps or features described above.

Claims

1. 1. A computer-implemented method for initiating a transfer, comprising: receiving an invitation from a client comprising metadata including an indication of entities to be exchanged and a set of conditions for the exchange; obtaining a public key of the client; generating a redemption script using said public key; obtaining a signed redemption script, the signed redemption script being signed using a private key of the client; generating a hash of the signed redemption script; publishing the invitation metadata and a hash of the signed redemption script in a distributed hash table; generating a locking script based on a hash of the signed redemption script; A method comprising:

2. The step of obtaining a signed redemption script includes: sending the redemption script to the client for signing by the client; receiving a signed redemption script, the signed redemption script being signed using a private key of the client; The method of claim 1 , comprising:

3. The step of obtaining a signed redemption script includes: obtaining a receipt of approval from said client; signing the redemption script on behalf of the client using a private key of the client; The method of claim 1 , comprising:

4. the redemption script is in a format suitable for P2SH Bitcoin transactions; 4. The method according to claim 1 .

5. The metadata is provided in the redemption script.

5. The method according to any one of claims 1 to 4.

6. The metadata is provided in the redemption script at a location specified in a blockchain protocol as a location for a cryptographic key.

6. The method according to any one of claims 1 to 5.

7. The metadata is provided in a location where a 32-byte public key is normally stored in a multi-sig unlocking script. The method according to claim 6.

8. The method further comprises: generating a blockchain transaction including the locking script, the transaction paying an amount of cryptocurrency to the P2SH script; The method of claim 4 , comprising:

9. The method further comprises: broadcasting the blockchain transaction across a network for inclusion in a P2P distributed ledger; The method of claim 8 , comprising:

10. The P2SH script requires two signatures to unlock it.

10. The method according to claim 8 or 9.

11. One or more of the entities: a) Bitcoin, b) a contract; c) Goods; d) Services; One of the 11. The method according to any one of claims 1 to 10.

12. The contract comprises: a) fiat currency; b) Real estate deeds; c) tickets; d) Goods; e) services; to one or more of The method of claim 11.

13. The set of conditions is: a) one or more limit ranges on one or more prices for said exchange; b) exchange rate; c) the deadline for the fulfillment of said invitation; d) any limitations on the geographical area for which said exchanges may take place; including one or more of 13. The method according to any one of claims 1 to 12.

14. 14. Configured to carry out the method according to any one of claims 1 to 13, Exchange service provider.

15. A system for performing a transfer, comprising: An exchange service provider according to claim 14, and A client device, signing the redemption script and / or providing a receipt of authorization to the corresponding service provider to sign the redemption script; A client device, configured to: Including, the system.

Citation Information

Patent Citations

  • System and method for distributing electronic data, recipient terminal for electronic data and program recording medium for the recipient terminal

    JP2001051951A

  • Virtual currency management program and virtual currency management method

    JP5858506B1

  • Cryptocurrency Aggregation System

    US20150363773A1

  • System and method for distributing, receiving, and using funds or credits and apparatus thereof

    US20160012465A1