Blockchain-based transaction protocol

A lightweight client-based method for blockchain transactions between customers and merchants uses secure communication channels and Merkle proofs for efficient and secure transaction processing, addressing scalability and cost issues in existing systems.

JP2024537593APending Publication Date: 2024-10-16NCHAIN LICENSING AG
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2024505579
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-22
Filing Date
2022-09-21
Publication Date
2024-10-16

AI Technical Summary

Technical Problem

Existing blockchain systems require full nodes for transaction processing, which are computationally intensive and costly, limiting scalability and efficiency in secure and instant transactions between customers and merchants.

Method used

Implementing a method and system that allows lightweight clients to interact with blockchain nodes through secure communication channels, enabling partial transactions to be authenticated and submitted to the blockchain without requiring full node replication, using Merkle proofs and header clients for validation.

Benefits of technology

Facilitates secure, instant, and scalable transactions between customers and merchants, reducing computational and storage requirements, and ensuring long-term tamper-proof records on the blockchain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024537593000001_ABST
    Figure 2024537593000001_ABST
Patent Text Reader

Abstract

The present disclosure proposes a method, device and system for processing a transaction between a customer (100) and a merchant (130). The method may be implemented in a merchant device. The method may include receiving customer information from a customer device associated with the customer, establishing a secure communication channel (125) between the customer and the merchant based on the customer information, generating a partial invoice transaction based on the customer information, sending the partial invoice transaction to the customer device via the secure communication channel, receiving a completed version of the partial invoice transaction and an authorized transaction at the customer device via the secure communication channel, authenticating the transaction, broadcasting the authenticated transaction to a blockchain node (150) to be submitted to the blockchain (155), and receiving at least one notification that the transaction has been authenticated by the blockchain node and included on the blockchain.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure generally relates to methods and systems for implementing payment services for one or more clients. In particular, but not by way of limitation, the present disclosure relates to enabling secure and trusted payment transactions associated with a blockchain or distributed ledger for or on behalf of one or more clients, the transactions involving digital asset payments associated with a customer. The present disclosure is particularly suited, but not limited to, for providing a method for facilitating cryptocurrency payments from a customer to a merchant. [Background technology]

[0002] In this document, the term "blockchain" is used to include any form of electronic, computer-based distributed ledger. These include consensus-based blockchain and transaction chain technologies, permissioned and permissionless ledgers, shared ledgers, public and private blockchains, and variations thereof. The most widely known application of blockchain technology is the Bitcoin ledger, but other blockchain implementations have been proposed and developed. Bitcoin may be referred to herein for convenience and illustrative purposes, but it should be noted that this disclosure is not limited to use with the Bitcoin blockchain, and alternative blockchain implementations and protocols associated with any type of digital asset or representation of a digital asset are within the scope of this disclosure. The terms "client," "entity," "node," "user," "sender," "recipient," "payer," and "payee" may refer to computational or processor-based resources herein. The term "Bitcoin" is used herein to include any version or variation derived from or based on the Bitcoin protocol. The term "digital asset" may refer to any transferable asset, such as cryptocurrency, a token representing at least a portion of a property, a smart contract, a license, i.e., a software license, or a DRM contract for media content, etc. It will be understood that the term digital asset is used throughout this document to describe a commodity that may be associated with value that may be transferred in a transaction from one entity to another or provided as payment.

[0003] A blockchain is a peer-to-peer electronic ledger implemented as a computer-based decentralized, distributed system made up of blocks, which are made up of 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 by doing so, 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 their inputs and outputs that specify how and by whom the output of the transaction can be accessed. In the Bitcoin platform, these scripts are written using a stack-based scripting language.

[0004] In order for a transaction to be written to the blockchain, it must be "authenticated." Network nodes (miners) perform tasks to ensure that each transaction is valid, and invalid transactions are rejected from the network. A software client installed on the node performs this authentication task on unspent transactions (UTXOs) by executing their lock and unlock scripts. If the execution of the lock and unlock script evaluates to TRUE, the transaction is valid and the transaction is then written to the blockchain. Thus, for a transaction to be written to the blockchain, it must i) be authenticated by the first node that receives the transaction, i.e., if the transaction is authenticated, the node relays it to other nodes in the network; ii) be added to a new block assembled by miners; and iii) be mined, i.e., be added to the public ledger of past transactions.

[0005] Once stored as a UTXO on the blockchain, a user can transfer control of the associated resource to another address associated with an input in another transaction. This transfer is typically, but not inherently, done using a digital wallet. This digital wallet may be a device, a physical medium, a program, an application (app) on a computing device such as a desktop, laptop or mobile terminal, or a remotely hosted service associated with a domain on a network such as the Internet. The digital wallet can be used to store public and private keys, track ownership of resources, tokens, assets, etc. associated with a user, receive or consume digital assets, and transfer tokens that may relate to cryptocurrency, or licenses, or digital assets such as property, or other types of resources. The cryptocurrency itself is not stored in the digital wallet, but in the case of Bitcoin and cryptocurrencies derived therefrom, the cryptocurrency is decentralized stored and maintained on a publicly available ledger, i.e., the blockchain. There are various forms of known cryptocurrency wallets, and a network of such wallets is referred to as an ecosystem, such as the Bitcoin SV (BSV) wallet ecosystem. The digital wallet may be a Simplified Payment Verification (SPV) wallet.

[0006] While blockchain technology is most widely known for its use in implementing cryptocurrencies, digital businesses are exploring 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 novel systems. It would be highly advantageous if blockchain could be used to automate tasks and processes that are not limited to the cryptocurrency realm. Such solutions could utilize the benefits of blockchain (e.g., permanent, tamper-proof records of events, distributed processing, etc.) while being more versatile in their application.

[0007] The above examples or scenarios concern the transfer of some assets, i.e., digital assets, or control of digital assets, between users or entities. Thus, it is desired to implement a secure and robust system, similar to existing payment or e-commerce systems, for the exchange of funds between two entities, particularly for digital asset settlement between a merchant and a customer, that can respect real-world assets, with better user experience, lower merchant or payee costs, and a safer level of security. More specifically, it is desired to utilize distributed ledger (blockchain) technology and the benefits of enhanced security, transparency, and reliability of records to provide a common platform or interface that allows any merchant, or multiple merchants, to ensure that digital asset settlements with their respective customers are instantly and securely mined or written to the blockchain, thereby providing a long-term tamper-proof and auditable record of such settlements.

[0008] Simple Payment Verification (SPV) mechanisms exist where an application requires information from the blockchain but does not have a direct link to the blockchain since it does not run a full miner node. Such SPV applications allow light clients to verify that a transaction is indeed included in the blockchain without downloading the entire blockchain. Although this is advantageous, it still presents a requirement that the client runs some part of the blockchain that is associated with the transaction for the client, since either the sender or the receiver of the peers is required to finally submit the transaction to the blockchain and identify whether the transaction has been mined or not. [Prior art documents] [Patent documents]

[0009] [Patent Document 1] GB2106950.5 [Patent Document 2] U.S. Patent Application No. 16 / 384696 [Patent Document 3] UK Patent Application No. 2007597.4 [Patent Document 4] UK Patent Application No. GB1914043.3 [Patent Document 5] UK Patent Application No. GB2015358.1 [Patent Document 6] UK Application No. GB2102217.3 Summary of the Invention [Means for solving the problem]

[0010] Aspects of the method are set out in the independent claims and preferred features are set out in the dependent claims.

[0011] In a first aspect, the present disclosure proposes a method for processing a transaction between a customer and a merchant. The method may be implemented in a merchant device. The method may include receiving customer information from a customer device associated with the customer, establishing a secure communication channel between the customer and the merchant based on the customer information, generating a partial invoice transaction based on the customer information, sending the partial invoice transaction to the customer device via the secure communication channel, receiving a transaction that is a completed version of the partial invoice transaction and is authorized at the customer device via the secure communication channel, authenticating the transaction, broadcasting the authenticated transaction to a blockchain node to be submitted to the blockchain, and receiving at least one notification that the transaction is authenticated by the blockchain node and included on the blockchain.

[0012] According to a second aspect, a computer system for processing a transaction between a customer and a merchant is provided. The system may include a merchant device configured to perform the method of the first aspect, a customer device, and a blockchain node that is one of a plurality of blockchain nodes making up a blockchain network.

[0013] According to a third aspect, there is provided a computing device comprising a processor and a memory, the memory including executable instructions which, upon execution by the processor, cause the device to perform the computer-implemented method set forth in the first aspect.

[0014] According to a fourth aspect, there is provided a computer readable storage medium having executable instructions stored thereon which, when executed by a processor of a computer, cause the computer to perform the method of the first aspect.

[0015] Throughout this specification the word "comprise" or variations such as "includes", "comprises" or "comprising" will be understood to imply the inclusion of the stated elements, integers or steps, or group of elements, integers or steps, but not the exclusion of any other elements, integers or steps, or group of elements, integers or steps.

[0016] Aspects and embodiments of the present disclosure will now be described, by way of example only, and with reference to the accompanying drawings. [Brief description of the drawings]

[0017] [Figure 1] FIG. 1 illustrates an exemplary system for implementing a transaction between a customer and a merchant. [Diagram 2] 1 is a block diagram of a method for processing a transaction between a merchant and a customer. [Figure 3A] FIG. 2 illustrates a peer-to-peer transfer protocol flow for processing a transaction between a customer and a merchant. [Figure 3B] FIG. 2 illustrates a peer-to-peer transfer protocol flow for processing a transaction between a customer and a merchant. [Figure 3C] FIG. 2 is a diagram showing an outline of an SPV envelope data structure. [Figure 4] FIG. 1 is an exemplary simplified block diagram of a computing device that can be used to practice at least one embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] A computer-implemented method is provided for implementing an asset transfer service on one or more clients for transactions associated with a distributed ledger. In one example, the asset transfer service may be a payment service. The method implements the payment service to enable transactions associated with customers and merchants to be written or stored on a distributed ledger, i.e., a blockchain. The payment service may be implemented as an API to which the merchant has access that processes digital asset payments for the merchant.

[0019] The method described herein provides a settlement service that combines several advantageous processes, both off-chain and on-chain, to ensure that transactions are completed efficiently while maintaining the security of both the transaction itself and the parties involved. The architecture underpinning the transactions is scalable to overcome several limitations found in traditional blockchain systems. A secure, low-complexity, user-friendly, efficient, and robust process is implemented herein that allows any client, computationally sophisticated or not, to instantly access and interact directly (in a peer-to-peer manner) with another party, i.e., the counterparty or sender / receiver of a transaction associated with said client, in a simple, orderly, fast, accurate, reliable, and secure manner that is computationally and functionally relatively unintrusive to the client. The advantages of blockchain technology and enhanced security, transparency, and reliability of records are provided to allow any client computing device to vouch for any data, events, or digital assets associated with the client, and can instantly and securely mine or easily write to the blockchain, thereby providing a long-term, tamper-proof, and auditable record that can be created, written, updated, read, or viewed on demand. Preferably, this can be performed by clients, such as merchants and customers, who are light clients, and thus does not require downloading or running any part of the blockchain itself. Easy accessible interaction with nodes that actually download and run part or all of the blockchain is also provided by the methods described herein, which ensures that transactions can be written to the blockchain.

[0020] The present disclosure proposes a method, device and system for processing a transaction between a customer and a merchant. The method may be implemented in a merchant device. The method may include receiving customer information from a customer device associated with the customer, establishing a secure communication channel between the customer and the merchant based on the customer information, generating a partial invoice transaction based on the customer information, sending the partial invoice transaction to the customer device via the secure communication channel, receiving a transaction that is a completed version of the partial invoice transaction and authorized at the customer device via the secure communication channel, authenticating the transaction, broadcasting the authenticated transaction to a blockchain node to be submitted to the blockchain, and receiving at least one notification that the transaction has been authenticated by the blockchain node and included on the blockchain. In some embodiments, the merchant and the customer device may be light clients.

[0021] The method provides safe instant transactions between merchants, customers, and the blockchain, which are scalable, stable, and secure. Advantageously, the method provides a secure and efficient implementation of transactions between customers and merchants that can be substantially achieved in light clients of the blockchain network. Light or lite clients do not need to run as full nodes of the blockchain, i.e., do not own a full replica of the blockchain. Such clients are less costly to run and require much lower bandwidth compared to "full" or "miner" nodes, since their energy consumption and storage requirements are much lighter. The benefit of generating and authenticating transactions on merchant and customer devices that are not full nodes is that the time taken and the processing power required are greatly reduced. In particular, the computational requirements of the customer and merchant devices can be much less than those of a blockchain node. Finally, a scalable method is provided, which is a limitation of the current infrastructure.

[0022] The method provides secure communications between two entities via a secure communication channel. These communications are not posted to a blockchain, which may be a public ledger (i.e., "off-chain"), and therefore beneficially remain private. The secure communication channel thus enables the exchange of resources with enhanced security and confidentiality.

[0023] Furthermore, by offering partial invoice transactions (also performed "off-chain") to customers, they can self-fill and complete the transaction, which in turn allows for immediate reconciliation. Validating the transaction prior to it being uploaded to the blockchain allows for quick processing of the transaction, and merchants can directly interact with blockchain nodes, which may be miner nodes, for example, and receive immediate notification that the transaction has been written to the blockchain.

[0024] In some embodiments, the partial invoice transaction may be a transaction template.

[0025] In some embodiments, the customer information optionally includes a purchase order and a customer alias. This information can be used to generate a partial invoice transaction. The customer alias can enable the merchant device to locate and / or verify the customer, for example, over the Internet or in a secure manner.

[0026] In some embodiments, the customer alias may be verified in conjunction with a server external to the merchant device, which may store multiple aliases for one or more customers or merchants and facilitate communication between the two entities.

[0027] In some embodiments, receiving the customer information may establish a handshake procedure between the client and the merchant. The handshake procedure may ensure that a secure communication process is established before any data is shared. This procedure may further allow the merchant and customer to each verify the other's device.

[0028] In some embodiments, a secure communication channel may be established in association with a channel server external to the merchant device. Advantageously, this may help maintain security for both parties. It may also help reduce the processes performed at the merchant device, thereby reducing energy consumption and / or storage space required at the merchant device, which helps improve the efficiency of the method and improve performance at the merchant device.

[0029] In some embodiments, the secure communication channel may permit communications to be sent both from the merchant to the customer and from the customer to the merchant. In this manner, only one channel may be enabled between client devices. This may advantageously allow transaction history to be maintained. Additionally, a two-way communication channel may reduce the chances of failure or security breach, as compared to, for example, two one-way communication channels.

[0030] In some embodiments, the secure communication channel may be end-to-end encrypted, which advantageously provides additional security and protection against hacking or attacks.

[0031] In some embodiments, generating the partial invoice transaction may include populating a transaction template with one or more transaction outputs in association with a merchant wallet. The transaction template may include a transaction output, which may specify a certain value of cryptocurrency to be paid to the merchant. The transaction output may further include a digital signature of the merchant required for transaction authentication. In some embodiments, the transaction output further includes a locking script. Advantageously, providing a transaction template populated with transaction outputs in association with a merchant wallet may help improve trust between the merchant and the customer.

[0032] In some embodiments, the transaction may include one or more transaction inputs associated with the customer wallet, the one or more transaction inputs including at least the Merkle root of a previous transaction. The transaction inputs may include a digital signature of the customer. The transaction inputs may further include an unlocking script. Advantageously, the partial invoice transaction may be completed by the customer at a customer device, where the customer inserts the inputs in association with the customer wallet. The Merkle root of the previous transaction may be readily available to the customer at the customer device, thereby improving the efficiency of the transaction process.

[0033] Optionally, the transaction is encapsulated in a data structure that further includes Merkle proofs of confirmed ancestors and the complete transaction. For example, the transaction may further include an SPV envelope. The SPV envelope is a data structure that encapsulates the transaction along with Merkle proofs of confirmed ancestors and the complete transaction. The SPV envelope, along with the encapsulated Merkle proof, provides information that helps prove that the transaction is valid by providing the information required to authenticate the transaction, allowing for a higher level of trust in transactions with unconfirmed ancestors, such as reducing double-spend risk, and in transactions with provisional state, such as state channels.

[0034] In some embodiments, authenticating a transaction may include independently constructing a Merkle root of a previous transaction and cross-checking the constructed Merkle root with the Merkle root of one or more transaction inputs. The independently constructing the Merkle root is optionally performed at the merchant device. The inclusion of the combination of Merkle proofs provides information required to assess the likelihood that a transaction will be confirmed. Providing such information may also improve the speed at which transactions are confirmed and authenticated.

[0035] In some embodiments, a Merkle root may be constructed separately by a merchant device in communication with a header client that provides a best chain of block headers. The header client may run as a light client and provide the best chain of block headers to the merchant device. A header client that operates as a light client of the blockchain does not own a full replica of the blockchain nor does it run as a full node. If the block hash is confirmed to be in the best chain provided to the merchant by the header client, the transaction may be confirmed as a valid transaction.

[0036] In some embodiments, a transaction may be authenticated if the Merkle root provided in the transaction matches the individually constructed Merkle root If this check passes, the transaction may be deemed ready to be included in the blockchain and the merchant considers the transaction to be verified.

[0037] In some embodiments, the transaction may be a Bitcoin transaction.

[0038] In some embodiments, the at least one notification may be a callback notification. Optionally, the callback notification provides a return Merkle proof indicating that the transaction was successfully submitted to the blockchain. The callback notification may relate to a proof of inclusion of the transaction submitted by the given client in the blockchain, i.e., a Merkle proof.

[0039] Optionally, the returned Merkle proof may include a transaction identifier for the blockchain transaction associated with the Merkle proof, a block header for the block the blockchain is included in, and an array of sibling hashes for the transaction identifiers.

[0040] In some embodiments, the method may further include sending at least one notification to the customer device, which may include the Merkle proof. Advantageously, providing this information may indicate to the client that the transaction was legitimately added to the blockchain, meaning that the transaction has been completed and completed.

[0041] In some embodiments, the method may further include closing the secure communication channel once the at least one notification is received, which may help improve security and reduce overall storage requirements of the merchant device and / or the customer device.

[0042] In some embodiments, the customer's public address and the merchant's public address may each include the public keys of respective digital wallets associated with the customer and the merchant.

[0043] In some embodiments, digital signatures can be used to verify the identity of a merchant and / or a customer, and digital signatures associated with both the merchant and the customer are required for verification of each respective entity before a transaction is created, stored, or posted on the blockchain ledger.

[0044] Provided herein is a computer system for processing a transaction between a customer and a merchant, the system may include a merchant device configured to perform the method of the first aspect, a customer device, and a blockchain node that is one of a plurality of blockchain nodes making up a blockchain network.

[0045] Provided herein is a computing device comprising a processor and a memory, the memory including executable instructions that, upon execution by the processor, cause the device to perform the computer-implemented methods described above.

[0046] Provided herein is a computer readable storage medium having executable instructions stored thereon which, when executed by a processor of a computer, cause the computer to perform the methods described above.

[0047] As described above, the methods, devices and systems disclosed herein provide a seamless accumulation of secure processes, both off-chain and on-chain, between customer devices, merchant devices and blockchain nodes to ensure smooth running of transactions from transaction offer to completion on the blockchain. Several advantageous processes are combined to ensure the security of the parties involved and improve the efficiency of the time it takes for a transaction to be submitted and accepted on the blockchain.

[0048] FIG. 1 illustrates an exemplary system 10 for implementing a payment transaction between a customer 100 and a merchant 130.

[0049] The system 10 comprises a customer 100-1 associated with a customer device 100, an addressing server 110, a channel server 120, a merchant 130-1 associated with a merchant device 130, a merchant API (mAPI) 140, and a blockchain node 150, e.g., a miner node, in a peer-to-peer (P2P) network 155. The addressing server 110 preferably implements alias-based addressing. This server is hereafter referred to as a payment service 110 or a payment server 110 or a PayMail server 110. Each of the elements of the system 10 is connectable to a communication network, such as the Internet 105. A side channel (secure channel) 125 may be enabled between the customer 100 and the merchant 130.

[0050] The system includes computer devices of users, including a customer 100 and a merchant 130. These users may interact with the blockchain network but do not participate in authenticating, constructing, or propagating transactions and blocks in the network 155. The customer 100 and the merchant 130 may act as senders and recipients in transactions and may interact with the blockchain 150 without necessarily acting as senders or recipients. Additionally, one or both parties may act as a storage entity that stores a copy of the blockchain, be provided with it, or communicate securely with it (e.g., have obtained a copy of the blockchain from a blockchain node 150). In some embodiments, this storage entity may be a header client.

[0051] Either or both of the customer 100 and the merchant 130 may operate as a light client. Thus, either or both of the parties 100-1, 130-1 may be connected as part of a different network, for example, a network overlaid on the blockchain network 155. Although users of the blockchain network (often referred to as "clients") may be said to be part of a system that includes the blockchain network, these users are not blockchain nodes 150 because they do not perform the role required of a blockchain node. Instead, each party 100-1, 130-1 may use the blockchain by interacting with the blockchain network and, in so doing, connecting to (i.e., communicating with) a blockchain node 150. It will be understood that more such customers 100-1 and their respective computer devices 100 may be present and participating in the system 10, but for convenience they are not illustrated. Each party 100, 130 may be an individual or an organization.

[0052] Light clients generally do not own a full replica of the blockchain and therefore are much less costly to run and require much lower bandwidth compared to "full" or "miner" nodes. Light clients can rely on data provided by the header client regarding, for example, the best chain of block headers and / or the Merkle root value of transactions. The best chain can be described as a chain of blocks from the origin, which is the first block in the blockchain, to the current best block, which is the most recent block in the blockchain. The best block may have the highest accumulated proof of work, which can be described as the most energy consumed by the network in maintaining that particular branch of the blockchain. Sourcing of block headers by header clients to determine the best chain of block headers may be performed through the merchant API 140 mentioned above. Light clients can therefore scale to their own data / transaction volumes without being affected by the volume of data and transactions that go into each block.

[0053] According to embodiments disclosed herein and described in more detail, for example, in GB2106950.5 filed on May 14, 2021 in the name of nChain Holdings Limited, the header client may determine that a best chain of block headers is extended that may be easily accessible to light clients, such as the customer 100 and the merchant 130, and that may also be updated as a blockchain. The best chain of block headers is useful for light client applications for transaction validation, since it provides a view of the state of the blockchain without providing full transaction information for each block on the blockchain. The storage space of the storage module of the header client may be reduced compared to a "full" node of the blockchain, since block headers are not heavy with data, especially compared to blocks on the blockchain itself. Thus, processing performed in the header client may be quicker compared to a full node. In addition to lower storage space requirements, the computational power required to operate the header client may also be less compared to a full node, and the header client may be less costly to run and maintain than a full node. For example, the header client may be run on a single-board computing device such as a Raspberry Pi.

[0054] Light clients can use the information provided by the header client to independently construct a Merkle root for the previous transaction that created the unspent transaction output, or UTxO.

[0055] The computing devices 100, 130 comprise respective processing devices comprising one or more processors, e.g., one or more CPUs, GPUs, other accelerator processors, special purpose processors, and / or FPGAs. The computing devices of each party further comprise memory, i.e., computer readable storage, in the form of one or more non-transitory computer readable media. This memory may comprise one or more memory units utilizing one or more memory media, e.g., magnetic media such as hard disks, electronic media such as SSDs, flash memories or EEPROMs, and / or optical media such as optical disk drives. The memory on the computing devices 100, 130 of each party 100-1, 130-1 stores software including respective instances of at least one client application arranged to run on the processing devices. It will be understood herein that any action attributed to a given party 100-1, 130-1 may be implemented using software running on the processing devices of the respective computing devices 100, 130. The computing equipment 100, 130 of each party 100-1, 130-1 comprises at least one user terminal, e.g., a desktop or laptop computer, a tablet, a smartphone, or a wearable device such as a smartwatch. The computing equipment 100, 130 of a given party 100-1, 130-1 may also comprise one or more other network-connected resources, such as cloud computing resources, accessed via the user terminal.

[0056] A client or customer application may initially be provided to the computing equipment 100, 130 of any given party 100-1, 130-1 on one or more suitable computer readable storage media, for example downloaded from a server, or provided on a removable storage device such as a removable SSD, a flash memory key, a removable EEPROM, a removable magnetic disk drive, a magnetic floppy disk or tape, a CD or DVD ROM, or an optical disk such as a removable optical drive, or the like.

[0057] The client application may include a "wallet" function. This has two main functionalities. One of these is to allow each party 100 to create, authorize (e.g., sign) and send transactions and / or partial transactions or transaction templates to other entities in the system, such as another client or one or more blockchain nodes 150, which are then propagated throughout the network of blockchain nodes 150 and thus included in the blockchain. Typically, only completed transactions are sent to the blockchain nodes 150 for submission to the blockchain (and thus no partial transactions or transaction templates). The other function of the wallet is to report back to each party on the amount of digital assets that the party currently owns. In an output-based system, this second functionality involves reconciling amounts defined in the outputs of the various transactions scattered throughout the blockchain that belong to the party in question.

[0058] In some embodiments, the customer light client 100 may comprise one or more of the following units: a payment protocol client, a payment protocol server, an SPV channel client, a transaction builder, a header client, an SPV authenticator, and a payment authenticator. The customer light client may interact with a customer wallet and a customer PayMail server, such as the PayMail server 110. As described in more detail in U.S. Patent Application No. 16 / 384,696, filed on April 15, 2019 in the name of nChain Holdings Limited, an alias-based payment service may be implemented that includes providing an alias for a given client, where the alias is unique to the given client, and where the alias includes or is associated with a network identifier. The method then includes associating the alias with the network identifier in the directory. This association is accomplished by creating a service record based on the network identifier in the directory. The service record is then updated to indicate that the payment service is provided by the domain associated with the network or network identifier and the location of a host computing resource responsible for the payment service, the host computing resource being configured to facilitate identification of a client associated with the alias in response to receiving a request for a transaction associated with the alias. A PayMail server as referred to herein can be considered, for example, as a directory, to be a server implementing an alias-based payment service. The PayMail server 110 may, for example, store information about the customer 100. The server 110 may be running on a single, remote or distributed computing node or entity that can be accessed by one or more clients, such as the customer device 100 or the merchant device 130, over a wired or wireless communication network.

[0059] In some embodiments, the merchant lite client may comprise one or more of the following units: a payment protocol client, a payment protocol server, an SPV channel client, a transaction builder, a transaction broadcaster, a header client, an SPV authenticator, a PayMail client, and a payment authenticator. A merchant API, mAPI 140, may also run on the merchant lite client. The merchant lite client may interact with a merchant wallet, an SPV channel server 120, and a PayMail server 110. Through mAPI 140, the merchant 130 may also interact with miner nodes, which are blockchain nodes 150 capable of submitting transactions to the blockchain ledger.

[0060] The payment protocol clients in the merchant device 130 and the customer device 100 work with the respective payment protocol servers to facilitate communication between the two entities, for example, when the clients trigger communication with the servers. Similarly, the SPV clients in the customer device 100 and the merchant device 130 provide functionality that allows the respective devices to communicate with the SPV channel server 120. The PayMail client provides communication between the customer device 100, the merchant device 130, and the PayMail server 110.

[0061] A transaction builder can assemble a transaction, for example, with a wallet associated with the customer 100 or the merchant 130. In some examples, the transaction builder inserts transaction inputs and / or outputs into a transaction template at the merchant device and / or customer device. The inputs and outputs in some embodiments can include the public key of the wallet (i.e., the merchant's or customer's public key) from / to which the transaction is spent. In some embodiments, the transaction template can be populated with transaction inputs and outputs separately. In one example, the merchant device 130 provides the transaction template with transaction outputs to the customer device 100, which completes the template transaction by providing transaction inputs.

[0062] The transaction broadcaster communicates with the settlement protocol implemented by mAPI 140 to broadcast one or more transactions to blockchain nodes 150 for submission to the blockchain ledger.

[0063] The payment authenticator, SPV authenticator, and header client may work in combination to verify or authenticate a transaction, as described in more detail below.

[0064] NOTE: Although various client functionality may be described as being integrated into a given, but not necessarily exclusive, client application, any client functionality described herein may instead be implemented in a series of two or more separate applications, for example, interfacing via an API or one plugging into the other. More generally, client functionality may be implemented at the application layer or a lower layer, such as an operating system, or any combination of these.

[0065] The channel server 120 may run on a single, remote or distributed computing node or entity that may be accessed by one or more clients, such as the customer device 100 or the merchant device 130, via a wired or wireless communications network. In some embodiments, a client may be an entity, a user terminal / device or a computing device or system having one or more processors. In some embodiments, a client may be associated with a digital wallet of the customer 100 and / or the merchant 130 that allows the client to manage one or more digital assets, such as cryptocurrencies and tokens. In some embodiments, the channel services may be provided by the digital wallet to a given client among the one or more clients. However, it should be understood that a client entity that does not have a digital wallet or a separate application for digital assets is also within the scope of this disclosure. In some embodiments, particularly for clients with high computational power, the channel processor that implements the channel services may be integrated with or part of the client entity, e.g., the merchant 130 is a client entity. In this case, the channel processor may be implemented as a module in a client terminal that enables channel service functionality for said client. In some embodiments, other clients or entities may also be served by the channel processor.

[0066] Side channels 125, also referred to herein as channels and / or secure channels, allow for the exchange of data apart from the blockchain network. Such communication may be referred to as “off-chain” communication. For example, it may be used to exchange transaction invoices between customers 100 and merchants 130 without the transaction being registered (yet) on the blockchain network 155 or reaching the blockchain. Sharing transactions, or invoice transactions, in this manner may be referred to as sharing a “transaction template.” A transaction template may lack one or more inputs and / or outputs required to form a complete transaction. Alternatively or additionally, side channels 125 may also be used to exchange any other transaction-related data, such as keys, negotiated amounts or terms, data content, etc. In some embodiments, channels 125 are associated with one or more functions, including channel functions or procedures related to the transmission of data and / or message functions or procedures related to the data transmitted using the channel. Thus, channels 125 allow for direct or peer-to-peer communication pathways or sessions between entities for the transfer of messages or data in a secure environment. In most embodiments, there are only two entities for each channel 125: a customer 100 and a merchant 130. In most embodiments, a channel allows full-duplex, or two-way, communication between the client and the other entity. In some embodiments, communication may only be allowed in one direction, i.e., a client may only want to send messages to or receive messages from the other entity.

[0067] An example of a channel service and / or channel processor is described in detail in UK Patent Application No. 2007597.4, filed on May 21, 2020 in the name of nChain Holdings Limited, the subject matter of which is incorporated herein by reference.

[0068] In some embodiments, a channel 125 may be associated with a channel identifier, which is associated with a location or access point for the channel 125. In some embodiments, each channel 125 is associated with a specific channel identifier. The same given client may have several separate channels, each with its own unique identifier, which may correspond to a location or endpoint through which the channel 125 may be accessed. In some embodiments, a given channel 125 is for communication with any other entity related to data associated with a particular type or topic, and the data associated with each topic in the channel 125 is or is included in one or more messages or transactions. Advantageously, having a specific channel 125 for a particular topic or transaction ensures greater clarity, reliability, and flexibility for the client, especially for clients such as merchant entities that may have topic numbers (such as transaction numbers or IDs or invoice numbers) that need to be tracked or treated separately from all other topics or other transactions associated with the same client.

[0069] In the case of a client entity, such as a merchant, which may be associated with a business or represent an organization, such a client may have a number of other entities (customers) with whom it conducts transactions regarding some goods. Therefore, for such scenarios, it would be quite beneficial to use a channel for communication with one or more customers or one or more transactions, while being decoupled or uncoupled from the implementation of any functionality related to the blockchain that maintains a record of all such transactions. Since the channel functionality as well as the message functionality are provided by the channel service, such a client, in some embodiments, has the ability to use a specific channel 125 for a specific customer related to a specific transaction (such as a specific invoice or inquiry for some goods), and any further information specific to such transaction can be obtained via said channel 125 at any time.

[0070] In some embodiments, there may be multiple channels, the above-mentioned channel 125 being one of these multiple, which are channels based on one or more functions provided by the channel service. In some embodiments, the one or more functions are application programming interfaces (APIs) published or provided to a given client, said APIs including a channel API for one or more channels and a message API for data, i.e., messages on topics associated with each or the given channel 125. An API may be understood as an endpoint, an interface, or in this case, a set of functions and procedures that allow the creation or management of an application for an entity, such as a client, to access features or data of other services. In this case, it is for implementing channel functions as well as message functions.

[0071] The payment processor 140, also referred to as the Merchant API or mAPI, provides functionality for processing payments as described in detail in UK Patent Application No. GB1914043.3 filed on 30 September 2019 and UK Patent Application No. GB2015358.1 filed on 29 September 2020 in the name of nChain Holdings Limited. The payment processor is communicatively coupled to the merchant 130 and / or the customer 100, and is also coupled to a number of miner nodes 150, which may include a number of networks of miners or a number of mining pools. In some embodiments, the payment processor 140 may be part of or implemented in association with the merchant 130, which may be a computationally powerful merchant point of sale (POS) terminal.

[0072] In some embodiments, the payment processor / mAPI 140 is configured to provide a payment interface for one or more clients (i.e., customers 100 and merchants 130) as an associated or third-party service. In some embodiments, the payment processor is implemented as an application programming interface (API) for providing web-based interaction, i.e., as a web service for one or more clients such that communication may occur over the Internet using standard Internet communication protocols for web-based services, such as HTTPS, TCP / IP, etc.

[0073] The API is known or made available or sent / provided to a merchant 130 or customer 100 associated with the payment processor. In some embodiments, the API may be provided upon a registration or sign-up process to access services or features offered by the payment processor. In some examples, the API may be provided or exposed for use via an API user interface, such as Swagger, a well-known API design and development tool or interface for clients or other entities wishing to access web-based services. Advantageously, the API of the present disclosure may be implemented as a Representable State Transfer (REST) ​​endpoint, thereby enabling communication using standard Internet or web-based protocols, such as HTTPS. REST is an architectural style for developing web services and web-based interactions. The REST API design standard can handle HTTPS requests and communications using the following commands:

[0074] [Table 1]

[0075] A resource in the context of a REST API is an object with a type, associated data, relationships to other resources, and a set of methods to operate on it. In some embodiments, the payment service is provided by a payment processor as an API implementation for accessing the state of a blockchain or distributed ledger, such as the Bitcoin SV (BSV) blockchain, and for modifying that state through application interfaces and triggering operations that can be exposed as a REST API. The payment processor may thus be viewed as a REST endpoint for one or more clients. A merchant 130 thus communicates with the payment service over HTTPS and may further have anonymous access to the payment processor, or the payment service implemented by the payment processor.

[0076] Due to the resources involved in transaction authentication and publishing, typically at least each of the blockchain nodes 150 takes the form of a server comprising one or more physical server units, or even an entire data center, although in principle any given blockchain node 150 may take the form of a user terminal or a group of user terminals networked with each other.

[0077] The memory of each blockchain node 150 stores software configured to run on the processing unit of the blockchain node 150 to perform one or more respective roles and handle transactions according to the blockchain node protocol. It will be understood that any action attributed to the blockchain node 150 herein may be performed by software running on the processing unit of the respective computing device. The node software may be implemented in one or more applications at the application layer, or at a lower layer, such as the operating system layer or the protocol layer, or any combination thereof.

[0078] FIG. 2 illustrates a block diagram of a method for processing a transaction between a merchant 130 and a customer 100.

[0079] According to a first step 200, the method includes receiving customer information at a merchant device and establishing a secure communication channel between the merchant and the customer. Preferably, the customer device and the merchant device are light client devices that do not run full blockchain nodes, i.e., they do not own a full replica of the blockchain. The customer information may include, for example, a request to purchase goods or services from the merchant and / or a customer identification, such as a customer alias. A secure communication channel may be set up between the two parties for exchanging information, such as transaction information, in a secure manner. The information exchanged securely prior to the transaction being submitted may prevent certain information from being written to the blockchain, which may be a public ledger.

[0080] According to a second step 220, the method includes generating an invoice transaction at the merchant device. In some embodiments, this may be a payment request or a template transaction to be completed by the customer. The invoice transaction may be constructed based on the received customer information, for example to specify an amount to be paid to the merchant for goods and / or services requested by the customer, and may further include a transaction output provided by the merchant. In some embodiments, the merchant may perform a check to ensure that the customer identification provided by the customer is valid. The transaction output may include the merchant's digital signature and / or an amount of cryptocurrency to be paid by the customer to the merchant.

[0081] According to a third step 240, the method includes authorizing and authenticating the transaction at the customer device. This can be accomplished by exchanging information between the merchant and the customer over a secure communication channel. For example, the customer can provide transaction inputs to complete the payment transaction that is ready to be sent to the blockchain.

[0082] According to a fourth step 260, the method includes submitting a valid transaction to the blockchain and verifying that the transaction is included on the blockchain ledger. A merchant may independently authenticate a transaction prior to submitting it to the blockchain ledger. A transaction may first be sent to a node that is a full node of the blockchain network before being sent to the blockchain.

[0083] The steps of the above method are described in more detail below in relation to Figures 3A and 3B. Figures 3A and 3B show a peer-to-peer (P2P) payment protocol flow for processing a transaction between a customer 100 and a merchant 130. The payment service is implemented as a gateway or API endpoint to which one or more clients have access. The one or more clients include the customer 100, the PayMail server 110, the SPV channel server 120, the merchant 130, the merchant API (mAPI) 140, and the blockchain node 150. Communication between the entities is shown with arrows indicating that communication is taking place from one of the entities to another of the entities in the direction of the arrow.

[0084] The method may occur when a customer 100 wants to buy something from a merchant 130. A first process 200 establishes a communication channel between the customer 100 and the merchant 130. The first process 200 may include the following steps 202 to 214.

[0085] In step 202, a purchase order is created by the customer 100, for example, goods or services offered by the merchant 130. The purchase order may include creating a basket of goods, such as an online basket, and may further include information about the customer 100, such as a customer identification. In some embodiments, the customer identification is provided by a customer alias. In some examples, the customer alias may include PayMail information, which may include an alias (e.g., a PayMail ID) for the customer 100. A communication, such as a message, including the information is sent from the customer 100 to the merchant 130. The communication may be sent over a communications network, such as the Internet 105.

[0086] In step 204, the customer information is received at the merchant 130, and the merchant identifies the customer 100. In some embodiments, host discovery for the customer PayMail is performed at the merchant 130, which locates the customer based on the provided alias (PayMail ID). The customer identity, such as the PayMail ID of the customer 100, may be recorded at the merchant 130, for example, at a payment protocol server associated with the merchant device 130.

[0087] In step 206, if the verification of customer identity is based on a digital signature, standard Public Key Infrastructure (PKI) techniques may be used and implemented. In some embodiments, a PKI Authentication Performed and Customer Identity Obtained message may be sent from the merchant 130 to the PayMail server 110. In some embodiments, the merchant 130 may further request or send a message to initiate sender authentication and sender public key obtainment (MVP) in the future from the PayMail server 110, and identity information such as travel rules. The information may be received at the merchant 130 in response to a request made to the PayMail server 110 and may be stored for future use.

[0088] A second process 207 may occur within the first process 200. The second process 207 includes the merchant 130 creating a new channel, for example, a side channel 125, as illustrated and discussed in connection with FIG. 1. In some embodiments, the new channel 125 may be created for an existing merchant account with the channel server 120. The channel 125 is preferably a secure channel, such as an SPV channel. SPV channels are described in more detail in UK Patent Application No. 2007597.4, filed on May 21, 2020 in the name of nChain Holdings Limited.

[0089] In step 208, which is part of a second process 207, the merchant 130 sends a request to the SPV channel server 120 for a new channel to be created by the SPV channel server 120. This message may be sent from an SPV channel client associated with the payment protocol server of the merchant 130.

[0090] In step 210, also part of the second process, the SPV channel server 120, in response to a channel creation request sent by the merchant 130 to the SPV channel server 120, creates a new channel and provides a channel ID to the merchant 130. In some embodiments, the channel ID can be provided to the customer 100 via the PayMail server 110, which in turn causes the merchant 130 to provide the channel ID to the PayMail server 110. This allows the customer 100 to log into the channel upon receiving the provided channel ID. Any future communication between the merchant 130 and the customer 100 can occur through this secure channel 125, which has a unique channel ID. In some embodiments, the customer 100 and / or the merchant 130 are notified when a new message is provided to the channel. Optionally, the customer 100 and the merchant 130 can post messages and / or information to each other through the channel, such that the channel is multi-way between the customer 100 and the merchant 130.

[0091] In step 212, which is part of the first process 200, the channel and merchant details are sent from the merchant 130 to the PayMail server 110. In some embodiments, the method includes authenticating the merchant 130 based on a timestamp and a digital signature included in the request.

[0092] In some embodiments, the public addresses of the customer 100 and the merchant 130 each contain the public keys of the respective digital wallets associated with the customer 100 and the merchant 130, and a digital signature is used to verify the identity of the merchant 130 requesting a transaction. In some related embodiments, digital signatures associated with both the merchant 130 and the customer 100 are required to verify each respective entity, for example, before a transaction is created, stored, or posted on the distributed ledger.

[0093] In response to successful authentication, at step 214, an output script associated with the customer 100 is provided to the merchant 130. This output script may be used to create a transaction that will be stored or posted on the distributed ledger (blockchain ledger). The PayMail server 110 may send a message, for example a "response OK" message, to the merchant 130 to confirm that the channel and merchant details have been accepted.

[0094] Once communication is established in the first process 200, a third process 220 may occur. In the third process 220, the merchant 130 creates an invoice and payment request. The merchant 130 creates an invoice based on the customer 100's purchase order for the goods or services the customer wishes to purchase. Customer information provided by the customer 100 is also used to create the invoice.

[0095] In step 222, the merchant 130 creates an invoice (e.g., a payment request). The invoice may specify an amount to be paid from the customer 100 to the merchant 130 for items or such that are in the customer's shopping cart. In some embodiments, this may be a template transaction or a partial transaction.

[0096] Optionally, in steps 224 and 230, the merchant 130 communicates with a payment processor merchant API (mAPI) 140, which in turn communicates with a blockchain node 150 in steps 226 and 228. The merchant 130 sends a GET policyQuote() message to the mAPI 140 (if no unexpired quote is available). The payment processor mAPI 140 communicates with the blockchain node 150 in response to receiving the message from the merchant 130. Because the payment service implemented by the payment processor is an API, in some embodiments, the first request and / or status inquiry from the merchant 130 is an HTTPS GET request. Thus, standard internet and web-based communication protocols can be advantageously used by the client to request that the transaction be mined into the blockchain. In some embodiments, data associated with the first and / or second request and / or the status inquiry from the client is provided in a Java Script Object Notation (JSON) object format.

[0097] In step 226, the policyQuote response sent by mAPI 140 as a result of an interaction between mAPI 140 and blockchain node 150 is received at merchant 130.

[0098] In step 232, the merchant 130 constructs a payment request to be delivered to the customer 100. The payment request may be a partial invoice transaction or a transaction template. The payment request constructed by the merchant 130 may include outputs, payment fees, etc. The payment protocol server may interact with a wallet associated with the merchant device 130. For example, the payment protocol server may receive a transaction output (TxO) from the merchant wallet. In some embodiments, the payment request constructed by the merchant 130 does not include transaction inputs. The transaction inputs may be inserted into the transaction later, for example, by a customer wallet of the customer 100.

[0099] A fourth process 240 performs P2P payment protocol steps so that the invoice is sent to the customer and payment is made by submitting it to the blockchain.

[0100] In step 242, the merchant 130 posts the invoice (prepared in the third process 220) to the SPV channel server 120 via the secure channel established in the first process 200. The invoice may include, for example, a payment request that includes a transaction output determined by the merchant 130. The arrival of the payment request on the secure channel 125 prompts the customer 100 to receive a notification, for example in the secure channel, informing the customer that there is a new message to be viewed.

[0101] In step 244, the customer 100 receives or views the payment invoice received from the merchant 130 via the secure channel 125 established by the SPV channel server 120. The customer 100 optionally ensures checking that the request originated from the merchant 130 by implementing an addressing process / protocol or mechanism, such as a payment service associated with the merchant 130. In some embodiments, this involves sending the request from the merchant 130, where the request is based on an alias for the customer 100.

[0102] In step 246, customer 100 reads the payment request. Customer 100 then proceeds to authorize the payment request.

[0103] At step 248, the customer 100 fetches the payment inputs and the Merkle proof from the customer wallet, which may be added to a partial transaction (transaction template) sent by the merchant 130 to the customer 100 to complete the transaction.

[0104] In step 250, the customer 100 constructs a payment transaction and also constructs transaction information, which in some embodiments may include a data structure that further includes the Merkle proof and the verified ancestral complete transaction, such as an SPV envelope 300.

[0105] 3C illustrates an exemplary schematic of a data structure that encapsulates a transaction, also referred to as an SPV envelope 300. Data that may be included within the SPV envelope 300 includes one or more of the following: A) a transaction (Tx) 310 to be broadcast; B) A complete transaction 320 of confirmed inputs of the transaction in A; C) A complete transaction 330 of the unconfirmed entries of the transaction in A, which can be traced back to and may include the first confirmed transaction ancestor. D) a Merkle proof 340 for each confirmed transaction at B and / or C; and / or E) mAPI response for each unconfirmed transaction at B and / or C (optional) 350.

[0106] The SPV envelope 300 is a data structure that encapsulates a transaction along with its confirmed ancestors' Merkle proofs 340 and the complete transaction 320. The structure may further include intermediate unconfirmed ancestors to return an unbroken chain to the confirmed transaction 330. Optionally, the unconfirmed transaction may be accompanied by an mAPI response 350 signed by the miner to demonstrate that the transaction was broadcast and accepted for inclusion in a block.

[0107] In some embodiments, this may be accomplished by fetching the input via a customer wallet API. The SPV envelope 300, along with the encapsulated Merkle proof 340, provides information that helps prove that a transaction is valid. The SPV envelope 300 establishes a standardized way of communicating the supplemental information required for independent transaction checks to be performed. Since there are likely to be a wide variety of wallet implementations that send and receive SPV information for a variety of reasons, implementation is simplified if a standard format is adopted.

[0108] In many cases, the broadcaster of a transaction to miners does not have the information required to perform independent checks of transaction validity, i.e., pass / fail evaluation, correct miner fees, and signature integrity. Additionally, the SPV envelope 300 allows for a higher level of trust in transactions with unconfirmed ancestors, such as reduced double-spend risk, and transactions with provisional states, such as state channels, by providing the information required to authenticate transactions.

[0109] The combination of the Merkle proof 340 and the signed mAPI response 350 contains all the information required to assess the likelihood of the transaction being confirmed. The recipient can optionally register a double-spend notification with all unconfirmed ancestors via mAPI 140 if the mAPI response is deemed inappropriate. The raw transaction bytes can be used as a transaction ID that needs to be calculated as part of the attestation process.

[0110] The transaction may be parsed to determine the input references for calculating the fee as well as the output values. It is generally assumed that the SPV envelope 300 contains evidence for only one transaction, although the data structure accommodates the case where multiple transactions are included.

[0111] In step 252, the customer 100 authorizes, approves, and signs the invoice (payment request), for example, with the customer's signature. In one embodiment, the customer 100 can click a button, for example an "OK" button, to sign the entry and authenticate the invoice. In other embodiments, the customer may be asked for a password or passcode to act as the signature.

[0112] In step 254 , the payment is posted (along with the SPV envelope 300 ) from the customer 100 to the SPV channel server 120 .

[0113] In step 256, the SPV channel server 120 and the merchant 130 communicate to retrieve the completed payment along with the SPV envelope. In some embodiments, the payment and the SPV envelope may be received at a payment protocol server of the merchant 130.

[0114] In step 258, the merchant 130 independently authenticates the payment transaction (Tx). In some embodiments, this may include a payment protocol server of the merchant device communicating with a payment authenticator of the merchant device. The payment authenticator may interact with the header client to authenticate the payment transaction, for example, by performing an SPV check with the SPV authenticator. The SPV authenticator communicates with the header client to authenticate that the block hash of the payment transaction is in the best chain of the block header. If the block hash is confirmed to be in the best chain, the transaction may be confirmed as a valid transaction.

[0115] According to embodiments disclosed herein, and as described in more detail, for example, in UK Application No. GB2102217.3, filed on February 17, 2021 in the name of nChain Holdings Limited, the merchant 130 includes functionality to query the header client regarding the best chain of a block header. A merchant 130 that constructed a transaction can authenticate the block header before submitting it for inclusion in the blockchain. Block headers can also learn from external sources about the state of their transactions (or transactions from other clients). A merchant 130 can be confident that a transaction is valid if it possesses the following data: · The transaction whose inclusion is to be proven. A Merkle inclusion proof for the transaction, showing that the transaction contributed to the Merkle root value. Bitcoin SV block header including Merkle root. · The best chain of block headers as measured by proof of work.

[0116] The verification of transaction inclusion can be performed as follows: First, the merchant 130 requests or views the block headers stored in the header client for a particular transaction, for example, the light client may view the best chain. The light client calculates the root of the Merkle tree from the source transaction and the inclusion proof. Forging the proof is considered as difficult as inverting a cryptographically strong hash function, i.e., virtually impossible. The light client verifies that the Merkle root calculated in the previous step matches the Merkle root declared in the specified block header. The light client also uses the best chain of the block header to verify that the specified block header is in the best chain. If all these checks pass, the transaction is ready to be included in the blockchain and the light client determines that the transaction is verified.

[0117] A Merkle Proof may contain the following data: The transaction identifier (TxID) of the blockchain transaction associated with the Merkle proof; The block header of the block that contains the blockchain transaction; · An array of sibling hashes for transaction identifiers (TxIDs).

[0118] When the merchant 130 authorizes a payment transaction, two alternative processes can occur: the first one in which the transaction is an invalid transaction (Invalid Tx), or the second one in which the transaction is a valid transaction (Valid Tx).

[0119] If the transaction is invalid Tx, the merchant 130 rejects the payment in step 262. The merchant 130 sends a message to the SPV channel server 120 regarding this rejection (error).

[0120] In step 264 , the SPV channel server 120 sends a payment rejection (error) message to the customer 100 over the secure channel 125 .

[0121] However, if the transaction is valid Tx, then in step 266, the merchant 130 submits the transaction for posting to the blockchain. The payment authentication source may communicate with a transaction broadcaster associated with the merchant device 130, which in turn communicates with the mAPI 140. The transaction broadcaster of the merchant device 130 sends a POST submitTransaction(Tx) to the mAPI 140. The mAPI 140 posts the transaction to the blockchain node 150, which is a miner node, in step 268, and a response is received from the miner node in step 270. Because the payment service implemented by the payment processor is an API, in some embodiments, the second request is an HTTPS POST request.

[0122] At step 272, mAPI 140 returns a callback notification to the merchant 130 indicating that the transaction has been written to the blockchain. In some embodiments, this may be a transaction posting response sent from mAPI 140 to the payment protocol server of the merchant device 130.

[0123] In one embodiment, the callback notification is for a proof of inclusion of the transaction submitted by the given client in the blockchain, i.e., a Merkle proof, in which case the data provided in channel 125 by the miner is a return Merkle proof, said return Merkle proof being provided by the miner.

[0124] In some embodiments, the callback notification generated by mAPI 140 may be an alert or a message that is obtained as soon as data is exchanged between mAPI 140 and a miner node 150 of the blockchain network 155. It may be called a callback notification because it pertains to a blockchain transaction that has already been processed by a particular TxID or payment processor, i.e., already sent by the payment processor to the miner.

[0125] In another embodiment, the callback notification relates to a notification of a double spend of a transaction already submitted by the customer 100 and recorded in the blockchain. In this case, the data provided by the miner is a return payload that includes the following data: The transaction identifier (TxID) of the blockchain transaction that is a double spend, and optionally in some cases, A service endpoint for the payment processor that submitted the blockchain transaction. This is useful if a client is associated with multiple payment services, so the identifier unambiguously indicates which payment processor originally submitted the request to the miner.

[0126] In step 274 , an acknowledgement, or “Payment ACK” message is sent from the merchant 130 over the secure channel 125 at the SPV channel server 120 .

[0127] In step 276, a “Payment ACK” message is sent over secure channel 125 at SPV channel server 120 to customer 100. In other embodiments, customer 100 may view the message in secure channel 125.

[0128] In some embodiments, the payment protocol server of the merchant device 130 may send a query regarding the current status of the transaction to the mAPI 140. In response, the mAPI 140 sends an updated transaction status to the payment protocol server of the merchant device 130 in response to the query.

[0129] In step 278, the Merkle proof is sent from mAPI 140 to a secure channel at SPV channel server 120. Through secure channel 125, the Merkle proof may be distributed to customers 100 and merchants 130.

[0130] In step 280, the Merkle proof received on the secure channel 125 at the SPV channel server 120 is sent from the SPV channel server 120 to the customer 100. The Merkle proof may be stored in the customer wallet.

[0131] In step 282, the Merkle proof received on secure channel 125 at SPV channel server 120 is sent from SPV channel server 120 to merchant 130. In some embodiments, the Merkle proof is received at an SPV channel client at merchant device 130. The SPV channel client at merchant device 130 may then forward the Merkle proof to a payment protocol server at merchant device 130. The Merkle proof may be stored in a merchant wallet.

[0132] Optionally, once the transaction is completed and a Merkle proof is provided, thereby authenticating the transaction, the secure channel may be closed.

[0133] FIG. 4 provides an exemplary simplified block diagram of a computing device 400 that may be used to practice at least one embodiment of the present disclosure. In various embodiments, the computing device 400 may be used to implement any of the systems illustrated and described above. For example, the computing device 400 may be configured to be used as a merchant device 130. Thus, the computing device 400 may be a portable computing device, a personal computer, or any electronic computing device. As shown in FIG. 4, the computing device 400 may include one or more processors (collectively labeled 402) with one or more levels of cache memory and a memory controller that may be configured to communicate with a storage subsystem 406, including a main memory 408 and persistent storage 410. The main memory 408 may include a dynamic random access memory (DRAM) 418 and a read only memory (ROM) 420, as illustrated. The storage subsystem 406 and the cache memory 402 may be used for storage of information, such as details associated with transactions and blocks, as described in this disclosure. The processor 402 may be used to provide the steps or functionality of any of the embodiments described in this disclosure.

[0134] The processor 402 may also be in communication with one or more user interface input devices 412 , one or more user interface output devices 414 , and a network interface subsystem 416 .

[0135] Bus subsystem 404 may provide a mechanism for enabling various components and subsystems of computing device 400 to communicate with each other as intended. Although bus subsystem 404 is shown generally as a single bus, alternative embodiments of the bus subsystem may use multiple buses.

[0136] The network interface subsystem 416 may provide an interface to other computing devices and networks. The network interface subsystem 416 may act as an interface for receiving data from and transmitting data to systems other than the computing device 400. For example, the network interface subsystem 416 may enable a data engineer to connect the device to a network such that the data engineer may be able to transmit data to and receive data from the device while at a remote location, such as a data center.

[0137] The user interface input devices 412 may include one or more user input devices, such as a keyboard, a pointing device, such as an integrated mouse, trackball, touchpad, or graphics tablet, a scanner, a barcode scanner, a touch screen integrated into a display, a voice recognition system, an audio input device, such as a microphone, and other types of input devices. In general, use of the term "input device" is intended to include all possible types of devices and mechanisms for inputting information into the computing device 400.

[0138] The one or more user interface output devices 414 may include a display subsystem, a printer, or a non-visual display such as an audio output device. The display subsystem may be a cathode ray tube (CRT), a flat panel device such as a liquid crystal display (LCD), a light emitting diode (LED) display, or a projection or other display device. In general, use of the term "output device" is intended to include all possible types of devices and mechanisms for outputting information from the computing device 400. The one or more user interface output devices 414 may be used, for example, to present a user interface to facilitate user interaction with applications implementing the described processes and variations thereof, when such interaction may be appropriate.

[0139] The storage subsystem 406 may provide a computer-readable storage medium for storing basic programming and data structures that may provide the functionality of at least one embodiment of the present disclosure. Applications (programs, code modules, instructions), which when executed by one or more processors, may provide the functionality of one or more embodiments of the present disclosure, may be stored in the storage subsystem 406. These application modules or instructions may be executed by one or more processors 402. The storage subsystem 406 may further provide a repository for storing data used in accordance with the present disclosure. For example, the main memory 408 and the cache memory 402 may provide volatile storage for programs and data. The persistent storage 410 may provide persistent (non-volatile) storage for programs and data and may include flash memory, one or more solid state drives, one or more magnetic hard disk drives, one or more floppy disk drives with associated removable media, one or more optical drives (e.g., CD-ROM or DVD or Blue-Ray) drives with associated removable media, and other similar storage media. Such programs and data may include programs for implementing the steps of one or more embodiments described in this disclosure, as well as data associated with the transactions and blocks described in this disclosure.

[0140] The computing device 400 may be of various types, including a portable computing device, a tablet computer, a workstation, or any other device described below. Additionally, the computing device 400 may include another device that may be connected to the computing device 400 through one or more ports (e.g., USB, headphone jack, lightning connector, etc.). The device that may be connected to the computing device 400 may include multiple ports configured to accept fiber optic connectors. Thus, the device may be configured to convert optical signals to electrical signals that may be sent for processing through the ports that connect the device to the computing device 400. Due to the ever-changing nature of computers and networks, the description of the computing device 400 shown in FIG. 4 is intended only as a specific example for purposes of illustrating a preferred embodiment of the device. Many other configurations are possible having more or fewer components than the system shown in FIG. 4. [Explanation of symbols]

[0141] 10. System 100 Customers, Customer Devices, Computer Equipment 105 Internet 110 Address designation server, payment service, payment server, PayMail server 120 Channel Server, SPV Channel Server 125 Side Channel, Channel 130 Merchant, Merchant Device 140 Merchant API (mAPI), Payment Processor, Payment Processor mAPI 150 Blockchain nodes, Blockchain, Miner nodes 155 Peer-to-Peer (P2P) Networks, Networks 400 computing devices 402 processor, cache memory 404 Bus Subsystem 406 Memory Subsystem 408 Main Memory 410 Persistent Storage 412 User Interface Input Devices 414 User Interface Output Devices 416 Network Interface Subsystem 418 Dynamic Random Access Memory (DRAM) 420 Read-Only Memory (ROM)

Claims

1. 1. A computer-implemented method, performed at a merchant device, for processing a transaction between a customer and a merchant, comprising: receiving customer information from a customer device associated with the customer; establishing a secure communication channel between the customer and the merchant based on the customer information; generating a partial invoice transaction based on the customer information; sending the partial invoice transaction to the customer device over the secure communications channel; receiving, via the secure communication channel, a completed version of the partial invoice transaction and an authorized transaction at the customer device; authenticating the transaction; broadcasting the authenticated transaction to blockchain nodes for submission to the blockchain; receiving at least one notification that the transaction has been authenticated by the blockchain node and included on the blockchain; A computer-implemented method comprising:

2. The method of claim 1 , wherein the customer information includes a purchase order and an alias for the customer.

3. The method of claim 2 , wherein the alias of the customer is verified with respect to a server external to the merchant device.

4. The method according to claim 1 , wherein the step of receiving the customer information establishes a handshake procedure between the client and the merchant.

5. The method of claim 1 , wherein the secure communication channel is established in association with a channel server external to the merchant device.

6. The method of claim 1 , wherein the secure communication channel allows communications to be sent both from the merchant to the customer and from the customer to the merchant.

7. The method according to claim 1 , wherein the secure communication channel is end-to-end encrypted.

8. 8. The method of claim 1, wherein generating the partial invoice transaction comprises populating a transaction template with one or more transaction outputs, associated with a merchant wallet.

9. the transaction includes one or more transaction inputs associated with a customer wallet; 9. The method of claim 1, wherein the one or more transaction inputs include at least a Merkle root of a previous transaction.

10. 10. The method of claim 9, wherein the transaction is encapsulated in a data structure that further includes Merkle proofs and complete transactions of verified ancestry.

11. The step of authenticating the transaction comprises: constructing a Merkle root for each of the previous transactions; cross-checking the constructed Merkle root with the Merkle root of the one or more transaction inputs; The method of claim 9 or claim 10, comprising:

12. 12. The method of claim 11, wherein the Merkle root is constructed individually by the merchant device in communication with a header client that provides a best chain of block headers.

13. 13. The method of claim 11 or 12, wherein if the Merkle root provided in the transaction matches the individually constructed Merkle root, the transaction is authenticated.

14. 14. The method of claim 1, wherein the transaction is a Bitcoin transaction.

15. The method of claim 1 , wherein the at least one notification is a callback notification.

16. 16. The method of claim 15, wherein the callback notification provides a returned Merkle proof indicating that the transaction was successfully submitted to the blockchain.

17. The return Merkle proof includes: A transaction identifier for the blockchain transaction to which the Merkle proof pertains; and A block header of the block that includes the blockchain; an array of sibling hashes for said transaction identifiers; 17. The method of claim 16, comprising:

18. The method of claim 1 , further comprising sending the at least one notification to the customer device.

19. The method of claim 1 , further comprising the step of closing the secure communication channel once the at least one notification is received.

20. 20. The method of claim 1, wherein the customer's public address and the merchant's public address each include a public key of a respective digital wallet associated with the customer and the merchant.

21. The digital signature is used to verify the identity of the merchant and / or the customer; 21. The method of claim 20, wherein the digital signatures associated with both the merchant and the customer are required for validation of each respective entity before the transaction is created, stored, or posted on a blockchain ledger.

22. 1. A computer system for processing transactions between a customer and a merchant, comprising: A merchant device configured to perform the method of any one of claims 1 to 21; A customer device; A blockchain node is one of the multiple blockchain nodes that make up a blockchain network. A computer system comprising:

23. 22. A computing device comprising a processor and a memory, the memory including executable instructions that, upon execution by the processor, cause the device to perform a computer-implemented method according to any one of claims 1 to 21.

24. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor of a computer, cause the computer to perform a method according to any one of claims 1 to 21.

Citation Information

Patent Citations

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

    WO2020165679A1

  • Computer-implemented system and method for implementing alias-based addressing for a distributed ledger

    WO2020212766A1

  • Computer-implemented system and method

    WO2020234824A1

  • Computer-implemented system and method

    GB201914043D0

  • Computer-implemented system and method

    GB202007597D0