Multi-round token distribution system and method using blockchain network

By generating indirect token transaction sets and using commitment channels in the blockchain network, the problem of token distribution security in distributed blockchains is solved, the secure transfer and anonymity of tokens are achieved, and token loss is avoided. and risk of theft.

CN118710261APending Publication Date: 2024-09-27NCHAIN HLDG LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410872542.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2017-06-20
Filing Date
2018-06-19
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In a distributed blockchain network, the secure distribution and transfer of tokens is risky, especially over multiple rounds, and preventing tokens from being lost or stolen while maintaining a trustless network structure is a significant technical challenge.

Method used

By generating an indirect token transaction set between multiple participating nodes, using randomized transaction pairing and probability distribution to ensure the net transfer of tokens, and using commitment channel and secret sharing technology to ensure the security and integrity of transactions and avoid centralization reliance on formal institutions.

Benefits of technology

It realizes the safe transfer of tokens during multiple rounds of token distribution, prevents tokens from being lost or stolen, ensures security and anonymity in the distributed network, and avoids unreasonable distribution caused by malicious nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710261A_ABST
    Figure CN118710261A_ABST
Patent Text Reader

Abstract

A computer-implemented method of participating in a token transfer process using a blockchain for transferring a first number of tokens from a sender node to a recipient node is disclosed. The token transfer process includes execution of a plurality of participating nodes and a set of indirect token transactions between pairs of the participating nodes. The method is implemented at the participating node, comprising: obtaining a subset of the set of indirect token transactions, the subset comprising transactions for which the participating node is an input node or an output node, wherein the indirect token transaction set is generated based on the first number of tokens and a predetermined number of transaction rounds in the token transfer process; for each indirect token transaction in the subset, cooperating with a corresponding second participating node included in the indirect token transaction to generate a committed channel for the indirect token transaction between the participating node and the second participating node; and cooperating with all other participating nodes, and executing the indirect token transaction of the subset by using the generated committed channel.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of a patent application with Chinese application number 201880041215.4, application date June 19, 2018, and name “Multi-round token distribution system and method using blockchain network”. Technical Field

[0002] The present invention generally relates to blockchain transactions, and more particularly to methods and devices for constructing and executing transactions in which inputs and outputs are decoupled in a manner that still ensures the security of the transaction set and its full completion. In particular, the present application provides methods and systems for multiple input nodes to collaboratively distribute tokens to multiple output nodes in a secure and deterministic manner that prevents token loss and theft while maintaining a trustless network structure. Background Art

[0003] In this document, the term "blockchain" is used to include all forms of electronic, computer-based distributed ledgers, including but not limited to consensus-based blockchain and transaction chain technologies, permissioned and unpermitted ledgers, shared ledgers and their variations. It should be noted that the present invention is not limited to the use of a specific blockchain, and other alternative blockchain implementations and protocols also fall within the scope of the present invention.

[0004] A blockchain is a consensus-based electronic ledger implemented as a decentralized, distributed computer-based system consisting of blocks, which in turn consist of transactions. Each transaction is a data structure that encodes the transfer of control of a digital asset between participants in the blockchain system, and the data structure includes at least one input and at least one output. Each block contains a hash of the previous block, and the blocks are linked together to create a permanent, unchangeable record of all transactions written to the blockchain since its creation. Transactions contain small programs called scripts embedded in their inputs and outputs that specify how and by whom the outputs of the transaction can be accessed. On some platforms, these scripts are written using a stack-based scripting language.

[0005] In order for a transaction to be written to the blockchain, it must be "validated". Network nodes perform work to ensure that each transaction is valid, with invalid transactions being rejected by the network. The software client installed on the node performs this validation work on unspent transactions (UTXOs) by executing their locking and unlocking scripts. If the execution of the locking and unlocking scripts evaluates to true (TRUE), then the transaction is valid and can be written to the blockchain. Therefore, in order for a transaction to be written to the blockchain, the transaction 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; iii) be added to the public ledger of past transactions.

[0006] A transaction involves the transfer of one or more tokens from one node to another. A token may represent future control of a network resource. In some cases, a token may represent an asset or value, but not necessarily. The present application is more broadly understood to involve a blockchain network for the distributed transfer of control tokens.

[0007] One of the recognized advantages of blockchain technology is the anonymity of transactions. The user's personal details are not formally and explicitly attached to the address, and the blockchain's ledger only contains public address information. However, using auxiliary data (such as the shipping address required to complete the transaction) and analysis, interested third parties may be able to combine publicly available information to associate the user's identity with a specific address.

[0008] To facilitate a higher level of anonymity in some protocols, mixing solutions can be employed. In a centralized mix, a set of participants (at least one of whom is attempting to move blockchain tokens from one address to another) transfer their tokens to a central pool managed by a mixing service provider. The service provider then distributes the tokens from the central pool to the appropriate output addresses. Mixing protocols rely on the trustworthiness of the service provider, who understands the input-output relationships of other participants. This centralized structure can be problematic because (1) dishonest mixing services may attempt to steal users' tokens, and (2) mixing services may be pressured by regulators or other interested parties to release the mapping of input and output addresses. More generally, a mix is ​​a specific type of distribution protocol by which multiple input nodes distribute control of multiple tokens among multiple output nodes.

[0009] Many token distribution services and underlying protocols may be susceptible to undesirable decoupling or compromised security. In order for a distribution protocol to be effective in a distributed blockchain network environment, it must be designed and operated to minimize reliance on centralized authorities while ensuring completion by all participating nodes to avoid malicious or unbalanced token distribution outcomes. Therefore, it is desirable to provide improved methods and devices to facilitate token distribution while avoiding token loss or theft and ensuring that the process is implemented as "trustless". Implementing such a process in a distributed blockchain network without the use of centralized authorities is a significant technical challenge. During multiple rounds of token distribution, it is particularly challenging to ensure that the prescribed token distribution is achieved and to prevent intentional or accidental token misallocation (e.g., due to participant nodes being offline during one or more rounds).

[0010] 3 / 18 Summary of the invention

[0011] Such an improved solution has now been designed.

[0012] Thus, in accordance with the present invention, certain methods and apparatus are provided.

[0013] The present invention may provide a computer-implemented method and corresponding system. The method / system may be described as a blockchain-implemented method / system. The present invention may be described as a security method or an encryption method / system. The present invention may provide a secure transfer of digital assets. Additionally or alternatively, the present invention may provide a control mechanism for controlling the transfer of digital assets.

[0014] The present application describes a computer-implemented method for initiating a token transfer process using a blockchain, for transferring a corresponding first number of tokens between multiple pairs of sender nodes and corresponding receiver nodes. The method includes: determining a number of transaction rounds in the token transfer process; generating an indirect token transaction set (TT) based on the corresponding first number of tokens and the number of transaction rounds, wherein the execution of all indirect token transactions in the set results in a net transfer of the corresponding first number of tokens from the sender node to its corresponding receiver node, and wherein the indirect token transaction set includes a randomized pairing of the sender node and the receiver node, wherein each node can be an input node or an output node for a specific indirect token transaction; and for each sender and receiver node, delivering a subset of the indirect token transaction set to the node, the subset including transactions for which the node is the input node or the output node.

[0015] In some implementations, the set of indirect token transactions includes a first set of randomly generated transactions, each transaction in the first set specifying a respective amount of indirect tokens for transfer between a randomly selected pair of participating nodes.

[0016] In some implementations, the number of indirect tokens is selected randomly.

[0017] In some implementations, the number of indirect tokens is determined by a probability distribution.

[0018] In some implementations, the number of indirect tokens is less than or equal to a threshold amount.

[0019] In some embodiments, the set of indirect token transactions further includes a second set of transactions for coordinating the net token transfer resulting from the first set of transactions with the net transfer of the first number of tokens between the sender node and the receiver node.

[0020] In some implementations, communicating the subset to a participating node includes sending an encrypted message containing the subset to the participating node, the message encrypted using a public key associated with the participating node.

[0021] In some embodiments, the set of indirect token transactions is generated based on a number of transactions per round (q).

[0022] The present application also describes a computer-implemented method for constructing an indirect token transaction set in a token transfer process, for transferring tokens between multiple participating nodes using a blockchain, the multiple participating nodes including multiple pairs of sender nodes and corresponding receiver nodes, the method being implemented by an initiator node U0, the initiator node being randomly selected from the multiple participating nodes, the method comprising:

[0023] receiving, from one or more participating nodes of the plurality of participating nodes, a number of rounds r of the protocol and a number of transactions q per round;

[0024] receiving, from one or more of the plurality of participating nodes, an initial number of tokens available in the protocol, Stored as a vector m(0)=(m1(0),…,m n (0)), where M is the total number of tokens submitted to the protocol;

[0025] receiving, from one or more participating nodes of the plurality of participating nodes, a final state in which the participating node is to be placed, m(T r )=(m1(0),…,m A (0)–Δ*,…,m B (0)+Δ*,…,m n (0));

[0026] Based on the received parameters (r, q, m(0) and m(T r)), through a first phase and a second phase, a set of indirect token transactions are generated between multiple different pairs of participating nodes; in the first phase, the initiator node generates a first group of random transactions, which leads to token transfers between multiple pairs of participating nodes, and in the second phase, a sequence of final transactions is generated.

[0027] In some embodiments, the first stage includes (for t=1, ..., r-1): the initiator node randomly selects q pairs (i, j), where i≠j; corresponding to U i The number of tokens m i From the probability distribution Φ i With random increment Δ i Increment, condition is 0<Δ i ≤min(m i (t),m j (t)); and, U j With Δ j =Δ i Decrease; where, in each step, the vector m(t) = (m1(t),…,m n (t)) is updated.

[0028] In some embodiments, for each round of the protocol (i.e., from round 1 to round r-1), q pairs of participating nodes are randomly selected so that each of the q pairs participates in a transaction, resulting in a certain number or indirect number of tokens Δ between multiple pairs. i Transfer.

[0029] In some embodiments, the number of tokens Δ transferred in a round between each of the q pairs is i is limited to the specified range, where the condition 0 < Δ i ≤min(m i (t),m j The purpose of (t)) is to ensure that, for each of the q pairs, the transferred amount is (1) positive and (2) less than the minimum number of allocated tokens associated with the nodes of the pair.

[0030] In some embodiments, without loss of generality, the Δ i The value is selected from a probability distribution, and wherein the same probability distribution is used for all participating nodes of the protocol.

[0031] In some embodiments, the second stage is generated by the initiator node, and the second stage includes (for the last round t=r): calculating the difference D=m(r-1)-m(r)=(m1(r-1)-m1(r),m2(r-1)-m2(r),…,m n (r–1)-m n(r)); match the minimum element and the maximum element of vector D, and construct the first transaction between the associated participating nodes; and, update vector D, and repeat these steps until D=0.

[0032] In some embodiments, if the maximum value (D) = D1 and the minimum value (D) = D4, D4<0, then node 1 transfers quantity A to node 4, where

[0033]

[0034] In some embodiments, the method further comprises: informing each participating node of the transaction in which it participates.

[0035] In some embodiments, the method further comprises: determining a subset of the set of all indirect token transactions, the subset comprising only transactions for which the participating node is an input node or an output node; and sending a message to the corresponding participating node, the message identifying the transaction subset.

[0036] In some implementations, the method further comprises encrypting the message containing the transaction subset using a public key of the participating node.

[0037] In some implementations, the indirect transactions can be completed in any order.

[0038] The present application also describes a computing device for initiating a token transfer process involving a plurality of participating nodes, wherein the computing device includes a memory, a network interface providing a network connection, and a processor for executing the methods described herein.

[0039] The present application also describes a computing device, wherein the computing device includes a memory, a network interface providing a network connection, and a processor for executing the method described herein.

[0040] The present application also describes a non-transitory processor-readable medium storing processor-executable instructions for initiating a token transfer process between multiple participating nodes, wherein, when the processor-executable instructions are executed by a processor, the processor performs the operations of one or more methods described herein.

[0041] The present application also describes a non-transitory processor-readable medium storing processor-executable instructions, which, when executed by a processor, cause the processor to perform the operations of one or more methods described herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Any features described with respect to one aspect or embodiment of the invention may also be used in one or more other aspects / embodiments. These and other aspects of the invention will become apparent and elucidated with reference to the embodiments described herein. Embodiments of the invention will now be described by way of example only and with reference to the accompanying drawings, in which:

[0043] Figure 1 An example blockchain network of nodes is shown;

[0044] Figure 2 A schematic diagram showing a commitment channel established between a payer node and a payee node;

[0045] Figure 3 An example method of participating in a token transfer process to transfer tokens between a transferor-transferee pair according to an embodiment of the present application is shown in the form of a flowchart;

[0046] Figure 4 Another example method of participating in a token transfer process to transfer tokens between a transferor-transferee pair according to an embodiment of the present application is shown in the form of a flow chart;

[0047] Figure 5 An example process for constructing a commitment channel between a transferor node and a transferee node in an indirect anonymous transfer protocol is shown in flowchart form; and

[0048] Figure 6 A simplified block diagram of participating nodes is shown. DETAILED DESCRIPTION

[0049] In the present application, the term “and / or” is intended to cover all possible combinations and subcombinations of the listed elements, including any one of the listed elements individually, in any subcombination or all the elements, and does not necessarily exclude additional elements.

[0050] In the present application, the phrase "at least one of... or..." is intended to cover any one or more of the listed elements, including any one listed element alone, any subcombination, or all elements, without necessarily excluding any other elements, and without necessarily requiring the presence of all elements.

[0051] First reference Figure 1 , Figure 1 An example blockchain network 100 associated with a blockchain is shown in block diagram form. A blockchain network is a peer-to-peer open membership network that anyone can join without invitation or consent from other members. Distributed electronic devices running an instance of a blockchain protocol (under which the blockchain network 100 runs) can participate in the blockchain network 100. Such distributed electronic devices can be referred to as nodes 102.

[0052] The electronic devices that run the blockchain protocol and form the nodes 102 of the blockchain network 100 may be of various types, including, for example, computers (e.g., desktop computers, laptops, tablet computers, servers), mobile devices (e.g., smartphones), wearable computers (e.g., smart watches), or other electronic devices.

[0053] The nodes 102 of the blockchain network 100 are connected to each other using suitable communication technologies, which may include wired and wireless communication technologies. In many cases, the blockchain network 100 is at least partially implemented through the Internet, and some individual nodes 102 may be located in geographically dispersed locations.

[0054] Node 102 maintains a global ledger of all transactions on the blockchain. The global ledger is a distributed ledger, and each node 102 can store a complete copy or a partial copy of the global ledger. Transactions of node 102 that affect the global ledger are verified by other nodes 102, thereby maintaining the validity of the global ledger. One of ordinary skill in the art will understand the details of implementing and operating a blockchain network.

[0055] Each transaction typically has one or more inputs and one or more outputs. Scripts embedded in the inputs and outputs specify how and by whom the outputs of the transaction can be accessed. The output of a transaction can be an address to which the value is transferred as a result of the transaction. These tokens are then associated with that output address as available transaction outputs. Subsequent transactions can reference that address as an input in order to transfer those tokens to one or more other addresses.

[0056] While these transactions are pseudo-anonymous (since no personal information is included in transactions on the blockchain ledger), it is possible to track the transfer of tokens in a chain of transactions, and in some cases, tokens can be linked to individuals using external data. To increase anonymity, mixing transactions can be used to pool inputs from various sources, and then the pooled tokens are divided and assigned to outputs. If all inputs and outputs are the same size, it is difficult to associate a specific input with a specific output. However, in such a transaction, at least one participating node knows the link between the input address and the output address specified by another participating node. In such a mixing transaction, a single transaction with multiple inputs and multiple outputs is used to mix these tokens.

[0057] Several other anonymization techniques, such as ring signatures or stealth addresses, attempt to avoid exposing the link between inputs and outputs, with varying effectiveness. Stealth addresses attempt to unlink the output address to which a specific user sent tokens. Ring signatures attempt to make the source untraceable by making it possible for any one of a set of possible signers to have signed / authorized a specific transaction. Unfortunately, ring signatures have proven difficult to implement in some protocols.

[0058] The present invention provides a token transfer protocol for masking the movement of tokens between a transferor and a transferee by using a set of indirect token transactions between the participants of the protocol. Specifically, a security mechanism is described that requires the set of indirect token transactions of the token transfer protocol to be verified by all participating nodes of the protocol before any transaction can be executed. This security mechanism prevents the remaining participating nodes from being negatively affected if one or more malicious participating nodes fail to perform their assigned operations according to the protocol. The set of indirect token transactions includes multiple transfers of varying numbers between different random pairs of participating nodes of the protocol. After the indirect token transaction specified by the protocol is completed, the specified token will be indirectly transferred from the transferor to the transferee.

[0059] More generally, the present invention provides a protocol that can be implemented to achieve desired token transfers between multiple transferor-transferee pairs. The protocol can include multiple participating nodes, each of which sends one or more token transfers to another participating node or receives one or more token transfers from another participating node. The expected transfer of tokens for a transferor-transferee pair can be achieved using a set of indirect token transactions between different participating node pairs in the protocol. Indirect token transactions are implemented in such a way as to ensure the completion of the protocol and avoid the failure of the protocol after only certain transfers occur, thereby ensuring that appropriate token transfers reach their respective intended destinations. In some implementations, commitment channels are used to facilitate indirect token transactions. As described below, participating nodes may be able to check commitment channels that have been constructed according to protocol requirements. In this way, the protocol provides a safe way to ensure that the protocol is fully implemented without the risk of partial completion and the failure to achieve the expected final distribution of tokens.

[0060] In the description of this article, the terms "input node", "output node", "participating node", "input address", and "output address" may be used. Reference to a node "address" is not meant to refer to the network address of a physical node. Instead, an "address" is an address specified in a transaction on a blockchain with a token allocation, and a physical node can claim ownership of that address by possessing a key corresponding to a transaction signature. In this sense, an "output address" is not the address of a participating node, but rather the blockchain transaction output address owned by or associated with a participating output node. Similarly, an "input address" is the address of an available transaction output owned by or associated with a participating input node.

[0061] Commitment Channel

[0062] Various blockchain technologies may sometimes use a "commitment channel" in the construction of pairwise transactions between participating nodes. Commitment channels are designed to allow nodes to conduct multiple transactions without having to submit all of them to the blockchain. Once a commitment channel is established between a pair of participating nodes, the nodes can participate in any number of transactions in a given period of time, and ultimately only two transactions are added to the blockchain. Therefore, the use of commitment channels can reduce the number of transactions that need to be added to the blockchain and reduce the associated transaction costs. Commitment channels also provide the transferor node with the flexibility to return tokens if the transferee node does not meet certain criteria, or if the transferor or transferee node decides to end the process after a certain set of transfers.

[0063] In at least one embodiment of the commitment channel implementation, a pair of participating nodes U A and U B Collaboratively generate three blockchain transactions: Commitment Transaction (T c ), return transaction(T r,0 ) and transfer transactions (T t ). Figure 2 The transferor node U A and the transferee node U B The commitment channel U A →U B Schematic diagram of commitment transaction T c Represents the commitment component of a commitment channel in which the transferor U A Send / submit a specified set of tokens x for transfer to U B In some embodiments, the commitment transaction may be a 2-to-2 multi-signature script hash payment (P2SH) transaction. Return transaction T r,0 If the transferee node U B If the established criteria for the committed transaction cannot be completed within the specified time, the previously submitted token x will be returned to U A After nLockTime expires at a specific time point, the return transaction is eligible to be submitted to the blockchain. In order to successfully execute the return transaction, the transferor node U A and the transferee node U B Both signatures. Transfer transaction T pay Is to actually send the submitted token x to the transferee node U B Only when the transferee node U B The transfer transaction is executed only when certain criteria are met. For example, in order for the transfer transaction to be successfully submitted to the blockchain, it may be necessary for at least the transferee node U B digital signature.

[0064] Secret Sharing

[0065] A technique called "secret sharing" has been developed that splits a secret key into multiple shares and distributes these shares among a set of participating nodes. In this technique, any subset of the set of participating nodes can reconstruct the secret as long as the cardinality of the subset is greater than a specified threshold t. If the cardinality of the subset is less than t, no information about the secret is revealed. This means that at least t participating nodes must collaborate to sign with the shared secret. The distribution of key shares among participating nodes can be done using a central dealer who distributes the key shares, or through a dealer-less distribution system. Each solution has its pros and cons, and the requirements of the system being implemented need to be carefully considered when choosing a distribution method.

[0066] In at least one embodiment, the secret sharing technique may include embedding the secret into a polynomial of degree t. Each of the n participating nodes is assigned a point on the then unknown polynomial, resulting in the t+1 participating nodes being able to accurately reconstruct the polynomial using Lagrange polynomial interpolation.

[0067] An application called Threshold Signature Scheme has been developed, through which m of n participating nodes with individual key shares can collaborate to perform cryptographic-based computations without reconstructing / disclosing the secret key to any individual participating node, and have 2t+1 participating nodes generate signatures.

[0068] In some cases, threshold signature schemes can rely on Lagrange polynomial interpolation. Lagrange polynomial interpolation tells us that a function f(x) of degree t can be expressed using t+1 points p = {(x1,f(x1)),(x2,f(x2)),...,(x t+1 ,f(x t+1 ))} to reconstruct

[0069]

[0070] The Lagrange coefficient

[0071] Note: i,p (x i )=1 and b i,p (x j )=0.

[0072] It should be noted that various other techniques, such as the use of elliptic curves and bilinear pairings or matrix projections, may be applicable to threshold signature schemes.

[0073] One element of the threshold signature computation is to determine x×G, where x is a secret key and G is a point on an elliptic curve. Given a secret key x, where its shares are "split" among the n participating nodes:

[0074] Any secret x is a point f(0) on the polynomial f(x),

[0075] Shares (of key x) x1,x2,...,x n Corresponding to f(x1),f(x2),...,f(x n ),

[0076] If f(x) is a polynomial of degree t, the secret x can be obtained by to interpolate, where π is a subset x of size t+1 in the share a ,x b ,...,x t ,x t+1 , b are the Lagrange coefficients, as described above in conjunction with Lagrange polynomial interpolation.

[0077] π is a set of t+1 participants who collaborate to compute x×G without revealing their individual x i Share. x is the point x=0 on the t-degree polynomial

[0078] Each participant i calculates a portion of b i,π x i ×G

[0079] All participants in π add their parts together (reconstructing the secret x via Lagrangian interpolation), giving:

[0080] b a,π x a ×G+b b,π x b ×G+…+b t+1,π x t+1 ×G=x×G

[0081] This process can be called "Secret Share Joining".

[0082] Indirect Anonymous Transfer Protocol

[0083] The present application describes methods and apparatus for transferring tokens between one or more transferor-transferee pairs. In particular, the present application proposes a token transfer protocol (Indirect Anonymous Transfer Protocol, or IATP) that attempts to mask the transferor-transferee relationship by using a set of indirect transactions between multiple different participating node pairs of the protocol, while avoiding the risk of partial completion of the transaction. The indirect transactions are designed in such a way that the connection between the transferor and the associated transferee is not easily identifiable from the blockchain data. If the set of indirect transactions is executed, the participating transferor-transferee node pairs are allocated the original expected tokens (i.e., the transactions agreed upon at the beginning of the protocol).

[0084] IATP includes multiple participating nodes, each of which belongs to a transferor-transferee pair. In particular, IATP is applicable to a group of three or more participating nodes, wherein at least one node in the group sends or receives one or more token transfers to / from another node in the group. To avoid ambiguity in the following description, the terms "sender" and "receiver" may be used to refer to a transferor node and an associated transferee node participating in IATP, respectively.

[0085] Reference Figure 3 , Figure 3 An example method 200 for participating in a token transfer process using a blockchain to transfer a certain number of tokens from a sender node to a receiver node is shown in the form of a flow chart. A plurality of nodes corresponding to a plurality of sender-receiver pairs participate in IATP. For a total of n nodes, the nodes are denoted as U1, U2, ..., U n . A "node" may be referred to herein as a member or participant or participating node. In some embodiments, each node is a wallet or other such blockchain entity.

[0086] For simplicity, the description of IATP uses the example of a single sender-receiver pair that wishes to transact a certain amount Δ* through multiple indirect token transactions between n participating nodes. As described below, this reasoning is easily extended to multiple sender-receiver pairs. That is, the use case of IATP for implementing a transfer Δ* between a single pair of participating nodes is easily generalized to implementing a transfer Δ* between multiple pairs of participating nodes. i *.

[0087] The method 200 is implemented by nodes participating in IATP. The set of participating nodes includes at least one pair of sender and receiver nodes, and multiple nodes different from the sender and receiver nodes, which are used to conduct multiple pairwise indirect token transactions to mask the intended transfer between at least one sender-receiver pair. In particular, the behavior of the sender node and the receiver node is managed in the same manner as any other participating node in IATP.

[0088] Method 200 begins with a node joining a token transfer process in operation 202. The joining process is not described in detail herein, and can be implemented in a decentralized manner or by a central authority that assembles a suitable group of participating nodes based at least in part on ensuring that a sufficient number of nodes are included in the group and one or more sender-receiver pairs that wish to transfer tokens between each other. In some embodiments, multiple sender-receiver pairs can be combined to collaboratively participate in IATP.

[0089] In operation 204, the participating node obtains a list of indirect token transactions for which the participating node is an input node or an output node. That is, the participating node is informed of the indirect token transactions it will participate in. The list obtained by the participating node is a subset of the set of all indirect token transactions generated as part of IATP.

[0090] A process of constructing a set of indirect token transactions through which an expected number of tokens will be transferred between a sender-receiver pair will now be described. IATP is based on the concept of masking or mixing token transfers between a sender-receiver pair by causing these transfers to occur indirectly through a set of "indirect token transactions" (characterized by different numbers of tokens) and between different pairs of participating nodes. In particular, the indirect token transaction includes at least two transactions that are different from the direct transfer of the expected number of tokens from the sender to the receiver. That is, the indirect token transaction set includes at least two transactions, each of which has an input and / or output node different from the sender and receiver nodes, respectively.

[0091] The process of constructing this set of indirect token transactions is implemented by the initiator U0, which can be randomly selected by the participating nodes of IATP. One or more participating nodes of the protocol define the following:

[0092] The number of rounds of the protocol r and the number of transactions per round q

[0093] The initial number of tokens available in the protocol, in Stored as vector m(0)=

[0094] (m1(0),…,m n(0)), where M is the total number of tokens submitted to the protocol

[0095] The final state that the participating nodes will be placed in, m(T r )=(m1(0),…,m A (0)–Δ*,…,m B (0)

[0096] +Δ*,…,m n (0)), that is, in the sender-receiver pair (e.g., m A and m B ) between the final distribution of tokens.

[0097] The initial and final states may be stored in vector form, or in any other suitable data structure.

[0098] The initiator node (which can be one of the participating nodes) receives the parameters (r, q, m(0) and m(T)) of the protocol set by one or more participating nodes. r )), and based on the received parameters, generates an indirect token transaction set between multiple different participating node pairs. An example embodiment of the construction process is described in detail below:

[0099] Phase 1

[0100] For t=1,…,r–1:

[0101] a. The initiator node randomly selects q pairs (i, j), where i≠j.

[0102] b. Corresponding to U i The number of tokens m i From the probability distribution Φ i With random increment Δ i Increment, if 0<Δ i ≤min(m i (t),m j (t))

[0103] Uc j With Δ j =Δ i Decreasing

[0104] d. In each step, the vector m(t) = (m1(t),…,m n (t)) is updated.

[0105] In phase 1, the initiator node generates multiple or a first set of random transactions, resulting in token transfers between multiple pairs of participating nodes. For each round of the protocol (i.e., from round 1 to round r–1), q pairs of participating nodes are randomly selected so that each of the q pairs participates in a transaction, resulting in a certain number or indirect number of tokens Δ between the multiple pairs.i Transfers. After each round, the number of tokens allocated to each participating node is updated to reflect the q transfer transactions (i.e., indirect token transactions). Between each of the q pairs, the number of tokens transferred in a round, Δ i is limited to a specified range. In particular, the condition 0<Δ i ≤min(m i (t),m j The purpose of (t) is to ensure that for each of the q pairs, the number of transfers is (1) positive and (2) less than the minimum number of tokens allocated to the nodes associated with that pair. In this way, the number of tokens allocated to the participating nodes of IATP remains positive throughout the protocol rounds. i The value is chosen from a probability distribution (e.g., a discrete uniform distribution); without loss of generality, the same probability distribution may be used for all participating nodes of the protocol.

[0106] Phase 2

[0107] For the final round, t=r, a sequence or second set of “final transactions” is generated to enforce the final conditions reflecting the desired token transfer between sender-receiver pairs to be achieved. To generate the final sequence of transactions required to complete the protocol, the initiator node:

[0108] a. Calculate the difference,

[0109] D=m(r–1)–m(r)=(m1(r–1)–m1(r),m2(r–1)–m2(r),…,m n (r–1)-

[0110] m n (r))

[0111] b. Match the minimum and maximum elements of vector D and construct the first transaction between the associated participating nodes

[0112] For example, if the maximum value (D) = D1, the minimum value (D) = D4, and D4 < 0, then node 1 transfers quantity A to node 4, where

[0113]

[0114] c. The vector D is updated, that is, D'=(D1–A,D2,…,D4+A,…,D n ). The process is then repeated until D = 0, i.e., all participating nodes reach the desired final stage.

[0115] In phase 2, a sequence of "final transactions" is generated to reconcile the value of the vector m(r–1) in the penultimate round of the protocol with the desired final state m(r). That is, the second set of transactions is used to reconcile the net token transfer resulting from the first set of transactions with the net transfer of the desired number of tokens between the sender and receiver node pair. In the final state, the number of allocated tokens for all participating nodes belonging to at least one sender-receiver pair is incremented or decremented by the originally specified amount. That is, if each participating node in the IATP is a sender and / or a receiver, the allocated tokens associated with (owned by) the participating node are adjusted according to the resulting value of the desired token transfer. The number of tokens associated with the sender-receiver node in the final state reflects the desired token transfer between the sender-receiver pair. In particular, the desired number of tokens to be transferred between the sender-receiver pair is reflected in the final state and is therefore taken into account when generating the final transaction. That is, the generation of the set of indirect token transactions is based at least in part on the desired number of tokens to be transferred between the sender-receiver pair.

[0116] In the case of multiple sender-receiver pairs among participating nodes, the final transaction will depend on the corresponding number of tokens transferred between the sender-receiver pairs. More specifically, the final state m(r) will reflect the transfers of multiple sender-receiver pairs.

[0117] It should be noted that in a practical setting, it is not possible to "track" the tokens that each participating node has; instead, the gains or losses of each protocol step can be tracked by monitoring the transactions broadcast on the blockchain. Any references to "stored" or "allocated" tokens in the specification are for clarity in describing the protocol steps. Using IATP, a sender-receiver pair is able to move a random number of tokens Δ by moving them across multiple pairs of participating nodes over the course of multiple rounds. i , to indirectly transfer a certain amount of tokens between each other.

[0118] After the initiator node generates the set of indirect token transactions, each participating node is informed of the transactions in which it participates. In particular, for each participating node of the IATP, the initiator node determines a subset of the set of all indirect token transactions, which subset only includes transactions for which the participating node is an input node (i.e., a transferor) or an output node (i.e., a transferee). The initiator node sends a message identifying the subset of transactions to each participating node. In some embodiments, the initiator node may encrypt a message containing the subset of transactions using the public key of the participating node.

[0119] In IATP, while indirect token transactions are generated sequentially through r rounds of the protocol and can be represented as an ordered sequence of vectors containing one or more transactions, transactions can be completed in a random order. The order of the vectors and the order in which transactions within the vectors are executed do not affect the final net token distribution expected by each participant. Essentially, the indirect transactions executed to move tokens between participants can be completed in any order. The only requirement for correct transfers between sender-receiver pairs is the execution of all indirect token transactions generated as part of the IATP protocol.

[0120] Back to Figure 2 , in operation 206, for each indirect token transaction identified in the subset obtained by the participating node, the node collaborates with the corresponding second participating node to generate a commitment channel for the transaction between itself and the second participating node. In other words, for each indirect token transaction involved in the participating node, a commitment channel is constructed to facilitate the transaction. Commitment channels are used in IATP to facilitate secure individual transactions between participating node pairs of a set of indirect token transactions. In operation 208, the node collaborates with all other participating nodes of IATP to use the generated commitment channel to execute the indirect token transactions in which they are involved. This collaboration between all participating nodes in executing token transactions helps to ensure that all corresponding commitment channels are correctly created and completed without causing nodes to cancel or exit any transaction midway. This will be referred to below. Figure 4 Techniques for collaboratively performing indirect token transactions are described in detail.

[0121] Reference Figure 4 , Figure 4 An example method 300 for participating in a token transfer process that transfers a certain number of tokens between a sender-receiver pair is shown in flowchart form. The method 300 is implemented by a node participating in an indirect anonymous transfer protocol (such as IATP described herein). Operations 302 and 304 correspond to Figure 3 Operations 202 and 204 of method 200 are shown. Specifically, in operation 302, the node joins the token transfer process, and in operation 304, the node obtains (eg, from the initiator node of the protocol) a list / subset of indirect token transactions in which it is involved.

[0122] Method 300 incorporates a security protocol that governs the creation and execution of IATP indirect token transactions. As described above, IATP includes multiple pairwise token transfers between participating nodes. In executing transactions of the protocol, some participants may receive tokens, which results in a temporary gain in tokens allocated over an initial number of tokens submitted to the protocol by the node. That is, during the execution of the protocol, some participating nodes may be "locally" better at controlling the holding of tokens than their initial state (i.e., the initial number of tokens submitted). In order to prevent a participating node from leaving the protocol at a time when the node has a local token surplus, IATP includes a mechanism by which each participating node of the protocol is provided with the ability to block the execution of a set of indirect token transactions until the participating node confirms that the necessary commitment channels have been created.

[0123] To enable this security mechanism, each indirect token transaction corresponding to a commitment channel is protected by a public key Q of secret value k, such that Q = kG, where G is a base point on the elliptic curve. The value of k is unknown to any participant before creating the commitment channel required by the protocol. Instead, each user is given a secret share k of key k. i Thus, in operation 306, the participating nodes obtain key shares of the private key k. The key shares are used in the function that generates the secret value k; in particular, all key shares k of the participating nodes are required. i To generate the value k. The public key Q is used by the participating nodes when creating a commitment channel, so that the commitment channel can only be unlocked when all participants collaborate to reconstruct the secret value k. In IATP, an arbitrary random secret is stored as f(0) in a t-degree polynomial f(x), and only participant i can calculate its share f(x i ). If t+1 of the n participants collaborate, then they can use, for example, Lagrange polynomial interpolation to generate the corresponding values ​​f(x1), f(x2), …, f(x n ) shares k1, k2, …, k n Reconstruct any point on.

[0124] In operation 308, the participating node collaborates with all other nodes of the protocol to generate a public key Q corresponding to the private key k using the secret share merger. As described above, the public key Q is used to generate an indirect token transaction. The calculation of Q is completed without any participant node revealing their respective key shares and without the participants collaborating to find the private key k in the first place.

[0125] In IATP, participants in the protocol can verify the key shares k they give iis correct and is consistent with the public key Q used to create the commitment channel. If inconsistent shares are distributed among the participating nodes, the participants will not be able to reconstruct the secret k as required by the protocol. In at least some embodiments, a publicly verifiable secret sharing (PVSS) scheme can be used to verify the key shares of the participants. In the PVSS scheme, each participant U i Both have decryption function D i , which can access information E encrypted with the corresponding public encryption function i The dealer can then use a public encryption function to distribute the shares and publish them in the form of,

[0126] K i =E i (k i ),i=1,…,n

[0127] The encrypted shares are publicly verifiable by any interested individual; anyone (not just the participants themselves) can verify that a participant received the correct key share.

[0128] Once the public key Q is obtained, indirect token transactions can be established between participating nodes of the protocol. Indirect transfers between different pairs of participating nodes are accomplished by using commitment channels. In IATP, a "commitment channel" is defined by three separate transactions: Commitment transaction T c , return transaction T r,0 and transfer transaction T t That is to say, without loss of generality, for the transferor node U A and the transferee node U B For each indirect transfer between two nodes, three blockchain transactions are created:

[0129] Commitment Transaction T c It is a 2-to-2 multi-signature P2SH transaction. A Use this transaction to submit a certain amount of tokens x to be transferred to U B (ie the output address of the transaction)

[0130] Return transaction T r,0 Return the submitted amount of tokens x to U A (i.e. the input address of the transaction)

[0131] Transfer transaction T t Actually transfers the submitted amount of tokens x to U B (i.e. the output address of the transaction).

[0132] Each commitment channel generated as part of IATP is "locked" by a secret value. In at least one embodiment of IATP, the commitment channel U A →U B The secret value is k+k B , where k is the private key corresponding to the public key Q, k B It is the transferee node U B The random number selected. As described below, the secret value sv B =k+k B The encrypted value Q B The transferor node U A Calculate and commit channel U A →U B Used during the construction of .

[0133] Figure 5 The following diagram shows the method for constructing the commitment channel U A →U B Example of process 400:

[0134] 1. Operation 402: U B Choose a random number k B Each commitment channel may use a different nonce in order to make it more difficult for an outside party to associate a set of transactions as being elements of the same instance of IATP. In particular, linking different transactions visible in the blockchain to one common instance of IATP is more complicated because the transactions are not all signed with the same secret.

[0135] 2. Operation 402: U B K B The value is sent to U A .

[0136] 3. Operation 404: U A Q is calculated using the following relationship B :

[0137] Q B =(k+k B )G=kG+k B G=Q+k B G

[0138] where Q is obtained collaboratively (by combining the secret shares) and is considered to be the encryption of the secret key k.

[0139] 4. Operation 406: U A Using the encrypted value Q B And create a commitment transaction T c , the transaction commits a certain number of tokens x, which can only be obtained by (1) U A and U BThe signature of both or (2)U B The signature and sv B To spend.

[0140] 5. Operation 408: U A Create return transaction T r,0 , which returns all of the submitted amount of tokens x (minus any transaction costs that may consume one or more tokens) to U A The return transaction contains the parameter nLockTime, which defines the point in time when the return transaction is eligible to be submitted to the blockchain.

[0141] 6. Operation 410: Sign the return transaction.

[0142] 7. Operation 412: Sign the commitment transaction and submit it to the blockchain.

[0143] 8. Operation 414: Transferor U A or the transferee U B Create transfer transaction T t , which transfers the number of tokens x submitted by the commitment transaction to U B If the transaction is to be successfully submitted to the blockchain, the unlocking script of the transfer transaction or <scriptsig>Need to contain value sv B .

[0144] Thus, in operation 310, for each transaction included in the indirect token transaction subset of the participating node, the node collaborates with its counterpart in the transaction to build a commitment channel. In particular, if the participating node is the transferor in the transaction, the node (1) uses the U B The random value k sent by the counterparty in the transaction B Create a commitment transaction, and (2) create a return transaction that returns the committed tokens to the node.

[0145] After all commitment channels have been created for each necessary transaction in the IATP instance, the node collaborates with all other participating nodes in the protocol to recover the private key k using their key shares and a suitable secret sharing scheme (e.g., Shamir's Secret Sharing) in operation 312. Once the value of k is determined, if the participating node is the transferee of the commitment channel, the node uses the corresponding transfer transaction's <scriptsig>The secret value sv in B =k+k B Then, all transfer transactions T of the IATP instance t can be submitted to the blockchain. Transfer transactions can be broadcast in an unstructured manner and can be broadcast in a random order or in any order determined by the participant nodes that submit the transactions. The randomness of the order in which transactions are broadcast may help make the final and initial stages of the protocol more difficult to track and identify.

[0146] In at least some instances of IATP, each input and output address provided by a participating node for an indirect transfer transaction in which the node is involved is unique. That is, the node's address is not reused anywhere in the IATP protocol, whether it is an input address or an output address. In other words, in some cases, restrictions can be imposed on participating nodes of IATP so that if a node U i In n i1 Acts as an input node in n indirect transfer transactions and i2 If U acts as an output node in an indirect transfer transaction, before joining IATP, i Need to have at least n i1 +n i2 These multiple "disconnected" addresses can facilitate the simultaneous existence of multiple commitment channels for participants and provide greater anonymity for transactions involving participating nodes by making it more difficult for outside parties to track the flow of tokens in and out of participating nodes.

[0147] Reference Figure 6 , Figure 6 A simplified example of a participating node 500 is shown in block diagram form. The participating node 500 may be an input node or an output node. The participating node 500 includes a processor 502, which may include one or more microprocessors, application specific integrated chips (ASICs), microcontrollers, or similar computer processing devices. The participating node 500 also includes a memory 504, which may include persistent and non-persistent memory to store values, variables, and in some cases processor executable program instructions, and a network interface 506 that provides network connectivity via a wired or wireless network.

[0148] Participating node 500 includes a processor-executable blockchain application 508 that includes processor-executable instructions that, when executed, cause processor 502 to perform one or more functions or operations described herein.

[0149] It should be understood that the devices and processes described herein and any modules, routines, processes, threads, applications, or other software components that implement the methods / processes for configuring participating nodes can be implemented using standard computer programming techniques and languages. The application is not limited to specific processors, computer languages, computer programming conventions, data structures, and other such implementation details.

[0150] It should be noted that the above embodiments illustrate rather than limit the present invention, and those skilled in the art will be able to design many alternative embodiments without departing from the scope of the invention. In the claims, any reference numerals in brackets shall not be interpreted as limiting the claims. The words "comprising" and "comprises" and the like do not exclude the presence of other elements and steps as a whole, even though these elements and steps are not listed in any claim or specification. In this specification, "comprises" means "includes or consists of...", and "comprises" means "including or consists of...". The singular reference of an element does not mean to exclude the plural reference of these elements, and vice versa. The present invention can be implemented by means of hardware comprising several different elements, and by means of a suitably programmed computer. In a device claim enumerating several ways, several of these ways can be embodied by the same component of hardware. The fact that certain measures are enumerated in mutually different dependent claims does not indicate that the combination of these measures cannot be used advantageously.< / scriptsig> < / scriptsig>

Claims

1. A computer-implemented method for constructing a set of indirect token transactions in a token transfer process, for transferring tokens between multiple participating nodes using a blockchain, the multiple participating nodes including multiple pairs of sender nodes and corresponding receiver nodes, the method being initiated by an initiator node U 0 The initiator node is randomly selected from the plurality of participating nodes, and the method include: receiving, from one or more participating nodes of the plurality of participating nodes, a number of rounds r of the protocol and a number of transactions q per round; receiving, from one or more of the plurality of participating nodes, an initial number of tokens available in the protocol, Stored as vector m(0)=(m 1 (0),…,m n (0)), where M is the total number of tokens submitted to the protocol; receiving, from one or more participating nodes of the plurality of participating nodes, a final state in which the participating node is to be placed, m(T r )=(m 1 (0),…,m A (0)–Δ*,…,m B (0)+Δ*,…,m n (0)); Based on the received parameters (r, q, m(0) and m(T r )) , through the first and second phases, a set of indirect token transactions is generated between multiple different participating node pairs; In the first phase the initiator node generates a first set of random transactions that result in token transfers between pairs of participating nodes, and in the second phase a sequence of final transactions is generated.

2. The method according to claim 1, in, The first stage includes, for t=1,…,r–1: The initiator node randomly selects q pairs (i, j), where i≠j; Corresponding to U i The number of tokens m i From the probability distribution Φ i With random increment Δ i Increment, condition is 0<Δ i ≤min(m i (t),m j (t)); and U j With Δ j =Δ i Decreasing; In each step, the vector m(t)=(m 1 (t),…,m n (t)) is updated.

3. The method according to claim 2, in, For each round of the protocol (i.e., from round 1 to round r–1), q pairs of participating nodes are randomly selected so that each of the q pairs participates in a transaction resulting in a certain number of tokens or an indirect number of tokens Δ between multiple pairs i Transfer.

4. The method according to claim 3, in, The number of tokens Δ transferred in a round between each of the q pairs i is limited to the specified range, where the condition 0 < Δ i ≤min(m i (t),m j The purpose of (t)) is to ensure that, for each of the q pairs, the transferred quantity is (1) positive and (2) less than the minimum number of allocated tokens associated with the nodes of the pair.

5. The method according to any one of claims 2 to 4, in, Without loss of generality, the Δ i The value is selected from a probability distribution, and wherein the same probability distribution is used for all participating nodes of the protocol.

6. A method according to any one of the preceding claims, wherein the second phase is generated by the initiator node, the second phase comprising, for the last round t=r: Calculate the difference D = m(r–1)–m(r) = (m 1 (r–1)–m 1 (r),m 2 (r–1)–m 2 (r),…,m n (r–1)-m n (r)); Matching the minimum element and the maximum element of the vector D and constructing a first transaction between the associated participating nodes; and Update vector D, and repeat these steps until D=0.

7. The method according to claim 6, in, If maximum(D) = D 1 And the minimum value (D) = D 4 ,D 4 <0, then node 1 transfers quantity A to node 4, where 8. The method according to any one of the preceding claims, further comprising: include: Inform each participating node of the transactions it is involved in.

9. The method according to any one of the preceding claims, further comprising: include: determining a subset of the set of all indirect token transactions, the subset comprising only transactions for which the participating node is an input node or an output node; A message is sent to the corresponding participating nodes, the message identifying the transaction subset.

10. The method according to claim 9, further comprising: include: The message containing the transaction subset is encrypted using the public keys of the participating nodes.

11. A method according to any preceding claim, wherein the indirect transactions can be completed in any order.

12. A computing device, the computing device being used to initiate a token transfer process, the token transfer process comprising a plurality of participating nodes, the computing device include: Memory; Network interface, providing network connection; and A processor, configured to execute the method according to any one of claims 1 to 11.

13. A non-transitory processor-readable medium storing processor-executable instructions for initiating a token transfer process involving a plurality of participating nodes, in, When the processor-executable instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 11.