Computer-implemented system and method for controlling processing steps of distributed system

By controlling the processing steps and resource transfer in the distributed system through the blockchain network and encryption technology, it solves the problem in the existing technology that it is difficult to control the sequence of processing steps and resource transfer in the distributed system, and realizes tamper-proof audit tracking and system security. reliability.

CN118694536APending Publication Date: 2024-09-24NCHAIN HLDG LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410739103.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-07-19
Filing Date
2019-07-15
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing techniques make it difficult to effectively control the sequence of processing steps and resource transfers between subsystems in distributed systems, especially where tamper-proof audit trails and reliable event recording are required, such as in aircraft information systems.

Method used

Through the blockchain network, encryption technology of private key and public key pairs is used to generate encrypted shares to form a transaction loop, ensuring the orderly transfer of resources and the sequential execution of processing steps, while providing a tamper-proof audit trail.

Benefits of technology

It realizes the orderly control of processing steps and the safe transfer of resources in a distributed system, provides a tamper-proof audit trail, and enhances the reliability and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694536A
    Figure CN118694536A
Patent Text Reader

Abstract

A method of controlling and coordinating processing steps in a distributed system may be implemented by an initiator node participating in a cyclically ordered set of nodes of a blockchain network. The method comprises the following steps: generating a private key and an encryption share thereof for the nodes of the cyclic ordered set, and distributing the private key and the encryption share thereof. A lock value is determined based on the share, and a transaction is set to transmit control of the resource in response to providing a corresponding unlock value. A transaction loop between nodes, each arranged to send control of a resource in response to providing an unlock value corresponding to a lock value determined based on a share allocated to a first node of one of two neighboring nodes and a value received from the other node immediately preceding it. The initiator node may belong to a cyclically ordered set of initiator nodes.
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 201980048402.X, application date July 15, 2019, and name “Computer-implemented system and method for controlling processing steps of a distributed system”. Technical Field

[0002] The present disclosure relates generally to distributed computing systems and, more particularly, to the control and coordination of processing steps associated with nodes of a distributed system, including the use of a blockchain network to direct and control the ordered processing steps. Background Art

[0003] In a distributed computing system, various computing devices acting as nodes in the distributed system can communicate over a network. Messages can be exchanged between these nodes. Such message exchanges can, for example, allow nodes to collaborate to perform computing tasks. Such tasks may involve processing distributed across various nodes. Such distributed processing may require control and coordination of steps associated with various nodes. For example, a specific processing sequence may be performed.

[0004] An example of a distributed system might occur in the context of an aircraft information system. For example, an aircraft information system might include various subsystems, where each subsystem is composed of subcomponents. Each subsystem might be responsible for performing specific processing, such as performing a pre-flight check. In order to perform those steps, each subsystem might require subcomponents to perform specific processing steps. Summary of the invention

[0005] In such distributed systems, it may be necessary or desirable to be able to perform a sequence of steps in a process and / or to form a sequence of steps for a particular process. For example, a subsystem may need to perform its respective processes in sequence. Additionally, nodes associated with a subcomponent may need to perform their respective processing steps in sequence.

[0006] Additionally, it may be desirable to provide a tamper-proof audit trail for recording the processing steps or outputs of a particular process. Such an audit trail may have applications in a variety of scenarios. For example, in the case of an aircraft, this may allow, for example, forensic investigations of an accident, such as after the accident has occurred. In a particular example, such a system may allow a fault to be attributed to a particular subsystem of the aircraft, for example, to determine a root cause.

[0007] As used herein, the term "blockchain" encompasses all forms of computer-based electronic distributed ledgers. These ledgers include consensus-based blockchain and transaction chain technologies, permissioned and permissionless ledgers, shared ledgers, and variants thereof. It should be noted that alternative blockchain implementations and protocols also fall within the scope of this disclosure.

[0008] A blockchain is a peer-to-peer 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 digital assets between participants in the blockchain system and includes at least one input and at least one output. Each block contains a hash of the previous block, so blocks are linked together to create a permanent, unchangeable record of all transactions written to the blockchain since its creation. Transactions include small programs embedded in their inputs and outputs, called scripts, which specify how and by whom the outputs of the transaction can be accessed. These scripts are written using a stack-based scripting language.

[0009] In order for a transaction to be written to the blockchain, it must be "validated". Network nodes work to ensure that each transaction is valid, and invalid transactions are rejected by the network. The software client installed on the node performs this validation work on unspent transaction outputs by executing their locking and unlocking scripts. If the execution of the locking and unlocking scripts evaluates to true, then the transaction is valid and the transaction is 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, this node relays it to other nodes in the network; ii) be added to a new block; iii) be mined, i.e., added to the public ledger of historical transactions.

[0010] Digital entrepreneurs have begun to explore how to implement new systems using cryptographically secure systems and data that can be stored on blockchains. It would be very beneficial if blockchains could be used to automate tasks and processes. Such solutions would be able to leverage the advantages of blockchains (e.g., permanent and tamper-proof records of events, distributed processing, etc.), while also making their applications more widespread.

[0011] A method, system, and computer-readable storage medium for controlling and coordinating processing steps in a distributed system, which may be implemented by nodes of a circular ordered set of nodes participating in a blockchain network, is disclosed in commonly owned United Kingdom Patent Application No. 1806448.5, entitled “Computer-Implemented Method and System,” filed on April 20, 2018. The subject matter of the application includes a description of a protocol, which may be referred to as a multi-factor dependent decision (MDD) protocol. The subject matter of the application may be used to provide ordering of steps between nodes of a distributed system. For example, it may be used to provide ordering of processing steps within a system.

[0012] Other methods, systems, and computer-readable storage media for providing functionality in a distributed system formed by a circular ordered set of nodes participating in a blockchain network are disclosed in commonly owned UK patent applications Nos. 1706071.6 and 1802063.6, filed on April 18, 2017 and February 8, 2018, respectively, entitled “Computer-Implemented Methods and Systems.” The former includes disclosures related to a protocol called Group Random Exchange (GRE), which allows funds to be transferred from one address to another, thereby obscuring the association between addresses associated with an entity while eliminating the possibility of misappropriation of the entity's resources. In general, GRE is based on the concept of a group that agrees that each member of a group of nodes transfers x units of computing resources to another member so that each member can receive x units of computing resources. It also includes disclosures related to a variant of the GRE protocol, namely Group Random Exchange Change Secret (GRECS), which modifies the GRE protocol to provide the same functionality when using different secret values ​​for each payment channel. In particular, each node participating in the GRECS protocol sends its own secret value to the initiator node, which then uses these values ​​to initiate the transfer. The latter includes disclosures related to improvements to the GRE protocol, and more specifically, to the GRECS protocol. This type of improved protocol, Group Random Exchange Late Reveal (GRELR), improves on GRECS by avoiding the use of public secrets.

[0013] However, it is worth noting that, as described above, it may be desirable to be able to control not only the order of processing between components of the system (e.g., between subsystems), but also the order of processing between subcomponents that make up a particular subsystem. In addition, it may be desirable to be able to allow processing performed by a particular subsystem to be optionally skipped or omitted.

[0014] Improved solutions of this type have now been devised.

[0015] According to the present disclosure, a computer-implemented method may be provided. The method may include: a first initiator node of a first circular ordered set consisting of nodes participating in a blockchain network generates a private key. The method may include: the first initiator node generates an encrypted share of the private key for each node of the first set, and distributes the respective encrypted shares to other nodes of the first set. The method may include: the first initiator node determines a first lock value based on a public key corresponding to each encrypted share. The method may include: the first initiator node prepares a transaction, the transaction is configured to send control of a resource from a source address associated with the first initiator node to a receiving address of a node immediately after the first initiator node in the first set, in response to satisfying an execution condition including providing a first unlock value corresponding to the first lock value. The method may include: the first initiator node initiates preparation of further transactions to form a transaction loop between each pair of adjacent nodes in the first set, each further transaction being configured to send control of a corresponding resource from an address associated with the first node in each pair of adjacent nodes to an address associated with the second node in the pair of adjacent nodes, in response to satisfying an execution condition including providing a corresponding unlock value corresponding to the corresponding lock value. The second node in each pair of adjacent nodes may be immediately after the first node in the pair of adjacent nodes in the first set. The corresponding lock value may be determined based on the encryption share assigned to the first node in the given pair of adjacent nodes and the value received from the node immediately before the first node in the first set.

[0016] In some implementations, the method may include: a first initiator node sends a public key corresponding to a private key to a master initiator node of a circular ordered set of initiator nodes. Each initiator node of the initiator node set may be an initiator node of a corresponding node set in a plurality of circular ordered node sets. The plurality of circular ordered node sets may include a first set. The method may include: the first initiator node receives a first value based on a public key associated with each node in the set from the first initiator node to the master initiator node from a second initiator node. The second initiator node may be immediately before the first initiator node in the initiator node set.

[0017] In some implementations, the method may include: the first initiator node determining a second lock value based on the first value and a public key corresponding to the private key. The method may include: the first initiator node preparing a transaction configured to send control of a resource from a source address associated with the first initiator node to a receiving address of a third initiator node in response to satisfying an execution condition including providing a second unlock value corresponding to the second lock value. The third initiator node may be immediately after the first initiator node in the set of initiator nodes.

[0018] The present disclosure may also provide a computer-implemented method in a system. The system includes: a first circularly ordered set of nodes participating in a blockchain network, the first set including a first initiator node and a second node, the second node being immediately after the first initiator node in the first set; a second circularly ordered set of nodes, all nodes in the second set being initiator nodes, wherein: each initiator node in the second set is an initiator node of a corresponding node set in a plurality of circularly ordered node sets, the plurality of circularly ordered node sets including the first set, and the second set including a first main initiator node, the first initiator node, a second initiator node in the second set immediately before the first initiator node, a master initiator node, and a third initiator node in the second set that is immediately after the first initiator node; and a third cyclically ordered set of nodes, all nodes in the third set are master initiator nodes, wherein: each master initiator node in the third set is a master initiator node of a corresponding initiator node set in a plurality of cyclically ordered initiator node sets, the plurality of cyclically ordered node sets including the second set, and the third set includes the first master initiator node, a second master initiator node in the third set that is immediately before the first master initiator node, and a third master initiator node in the third set that is immediately after the first master initiator node.The method includes: generating a private key by the first initiator node; sending a public key corresponding to the private key by the first initiator node to the first master initiator node; generating an encrypted share of the private key for each node of the first set by the first initiator node, and distributing the respective encrypted shares to other nodes of the first set by the first initiator node; determining a first locking value by the first initiator node based on the public key corresponding to each encrypted share; receiving a first value by the first initiator node from the second initiator node, the first value being based on the public key associated with each node in the second set from the first initiator node to the first master initiator node; preparing a transaction by the first initiator node, wherein the transaction is configured to send a control signal for a resource from a source address associated with the first initiator node to a receiving address of the second node. , in response to satisfying an execution condition including providing a first unlocking value corresponding to the first locking value; and, by the first initiator node, initiating preparation of further transactions to form a transaction loop between each pair of adjacent nodes in the first set, wherein each further transaction is configured to send control of a corresponding resource from an address associated with a first node in each pair of adjacent nodes to an address associated with a second node in the pair of adjacent nodes, in response to satisfying an execution condition including providing a corresponding unlocking value corresponding to a corresponding locking value, wherein the second node in each pair of adjacent nodes is immediately after the first node in the pair of adjacent nodes in the first set, and wherein the corresponding locking value is determined based on the encrypted share assigned to the first node in a given pair of adjacent nodes and a value received from a node immediately before the first node in the first set.

[0019] In some implementations, the method may include: the first initiator node obtaining the second value based on a private key corresponding to a public key associated with each node of the second set consisting of the third initiator node to the master initiator node.

[0020] In some implementations, the second value may be obtained by the first initiator node from the blockchain.

[0021] In some implementations, the second value may be obtained by the first initiator node from a third initiator node.

[0022] In some implementations, the method may include: the first initiator node determining that execution of the transaction loop should not be initiated. The method may include: in response to determining that execution of the transaction loop should not be initiated: the first initiator node determining a third unlock value based on the second value and the private key; and the first initiator node executing a transaction prepared by the second initiator node using the third unlock value, wherein the transaction is configured to send control of a resource from a source address associated with the second initiator node to a receiving address of the first initiator node. Control of the resource may be sent in response to satisfying an execution condition including providing the third unlock value.

[0023] In some implementations, the first lock value can be further based on the second value.

[0024] In some implementations, the method may include: a first initiator node determining that execution of a transaction loop should be initiated, and in response to determining that execution of the transaction loop should be initiated: the first initiator node determining a fourth unlocking value based on the second value and a corresponding one of the encrypted shares of the private key; and the first initiator node executing a transaction prepared by a node immediately preceding the initiator node in the first round-ordered set of nodes using the fourth unlocking value, wherein the transaction is configured to send control of a resource from a source address associated with the immediately preceding node to a receiving address of the initiator node. Control of the resource may be sent in response to satisfying an execution condition including providing the fourth unlocking value.

[0025] In some implementations, initiating preparation for further transactions to form a transaction loop between each pair of adjacent nodes in the first set may include: the first initiator node sending a first lock value to a node immediately following the first initiator node in the first set.

[0026] In some implementations, each resource can have the same amount as the other resources.

[0027] In some implementations, each public key and its corresponding private key may form an elliptic curve encryption public-private key pair.

[0028] In some implementations, a publicly verifiable cryptographic secret sharing algorithm may be used to generate an encrypted share of a private key.

[0029] The present disclosure also provides a system, comprising: a processor and a memory. The memory comprises executable instructions, and when the instructions are executed by the processor, the system performs any embodiment of the computer-implemented method described herein.

[0030] The present disclosure also provides a non-transitory computer-readable storage medium having executable instructions stored thereon, wherein the instructions, when executed by a processor of a computer system, cause the computer system to perform at least an embodiment of the computer-implemented method described herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] These and other aspects of the present disclosure will become apparent from and will be elucidated with reference to the embodiments described herein. Embodiments of the present disclosure will now be described by way of example only and with reference to the accompanying drawings, in which:

[0032] Figure 1 is a diagram showing transactions used in a payment channel;

[0033] Figure 2 is to show how to create Figure 1 Flowchart of the payment channel in ;

[0034] Figure 3 is a simplified schematic diagram illustrating an exemplary operating environment of the present application;

[0035] Figure 4 is a simplified schematic diagram illustrating another example operating environment of the present application;

[0036] Figure 5 An exemplary computing device is shown;

[0037] Figure 6 is a graph showing a cyclic ordered set consisting of nodes;

[0038] Figure 7 is a simplified schematic diagram showing a two-dimensional structure that can conceptually correspond to multiple cyclic ordered sets;

[0039] Figure 8 is to provide something similar to Figure 7 A diagram of a more detailed representation of the two-dimensional structure shown;

[0040] Fig. 9 It is shown Figure 8 A graph of a typical set of cyclic ordered sets;

[0041] Fig.10 It is shown by Figure 8 The graph of the cyclic ordered set formed by the initiator nodes;

[0042] Fig.11 is a flow chart illustrating operations for constructing a payment channel forming a loop between initiator nodes;

[0043] Fig.12 is a flow chart illustrating operations for constructing a payment channel that forms a loop between nodes of a given cyclic ordered set of nodes;

[0044] Fig.13 Provided Figure 8 A version of the schematic diagram annotated to show the unlocked value associated with the payment channel between nodes;

[0045] Fig.14 It is shown Fig.11 and Fig.12 a flowchart of a combination of the operations in the flowchart;

[0046] Fig.15 Provides a representation of the transfer channel version of the payment channel;

[0047] Fig.16 An exemplary transaction of a transfer transaction that can be used as a payment channel is shown;

[0048] Fig.17 An exemplary transaction of a refund transaction that may be used as a payment channel is shown;

[0049] Fig.18 An exemplary transaction is shown for a payment transaction that may be used as a payment channel;

[0050] Fig.19 Shows how to Fig.19 All aspects of the transfer transaction Fig.18 A combination of all aspects of a payment transaction; and

[0051] Fig. 20 is a flow diagram illustrating operations performed by nodes of various loop-ordered sets in controlling and executing an in-order process.

[0052] The same reference numbers are used throughout the drawings to represent the same elements and features. DETAILED DESCRIPTION

[0053] This paper describes a protocol embodying the present disclosure for a group of cooperating nodes so that each cooperating node makes decisions in an orderly manner. It is based on the following concept: by requiring nodes to commit computing resource units that can only be recovered by using accumulated secret values ​​derived from the output of previous steps in the processing task.

[0054] Several concepts will now be described by way of background.

[0055] The protocol described in this paper builds on existing payment channels, specifically incorporating the use of refund transactions.

[0056] Payment Channels

[0057] As mentioned above, payment channels are involved in the following description, so for the convenience of readers, the payment channels are summarized below.

[0058] Payment channels are a technology designed for parties to conduct multiple resource transactions without committing all transactions to the blockchain. In a typical payment channel implementation, an almost unlimited amount of payments can be made, but only two transactions need to be added to the blockchain.

[0059] In addition to reducing the number of transactions added to the blockchain and lowering the associated costs, payment channels also offer the advantages of speed and, importantly, the ability for the parties to return units if things do not go as planned or if any one participant decides not to make more than a certain set of payments. The implementation of a payment channel is outlined below.

[0060] Consider a situation where Alice needs to transfer blockchain resources to Bob. This may require multiple payments from Alice to Bob over a period of time, as the situation requires. Alice expects to transfer a maximum of, say, 15 resources (in total) to Bob in the possible set of exchanges. For convenience, a payment channel is established between Alice and Bob and operates as follows.

[0061] First, Alice creates a 2-of-2 multi-signature Pay-to-Script-Hash (P2SH) transaction T c , jointly managed by Alice and Bob, where Bob allocates 15 resources from Alice. At this point, the transaction is not submitted to the network (this type of multi-signature address requires 2 individuals (Alice and Bob) to cryptographically sign any transaction that spends money from the address).

[0062] Next, Alice creates a separate refund transaction T r,0 , returns all units of the multi-signature controlled funds to Alice. The transaction includes a nLockTime value of 100 blocks. Bob signs the transaction. If something goes wrong with the exchange between Alice and Bob, after nLockTime has expired, this refund transaction allows Alice to get a refund.

[0063] Next, Alice sends the original transaction T c Sign.

[0064] At this point, Alice and Bob can continue to create new refund transactions to reflect the (off-blockchain) transfers from Alice to Bob. These refund transactions will reflect the net amount of resources that Alice needs to transfer to Bob at that point in time. For example, if Alice wants to transfer 5 resources to Bob, then create a new refund transaction T r,i, which has an output of sending 5 resources to Bob and returning 10 resources to Alice. If Alice needs to transfer another 5 resources to Bob, she creates a new refund transaction T r,i+1 , where the output sends 10 resources to Bob and 5 resources to Alice. For each new refund transaction, assuming they both agree on the details, both parties sign the transaction, but they do not have to submit the transaction to the network.

[0065] It should be noted that the nLockTime of each consecutive refund transaction created is shorter than the nLockTime of the previous refund transaction, that is, nLockTime(T r,i+1 )<nLockTime(T r,i ).

[0066] If a participant refuses to submit any T r,i To sign, the deceived participant can submit only T r,i-1 In the worst case, Alice has r,0 Sign it and submit it to the network which reclaims all her units (after nLockTime expires).

[0067] The final refund transaction constructed represents the net amount of units transferred from Alice to Bob. This transaction is submitted to the network.

[0068] Figure 1 shows the transaction T used in the payment channel c 100A and T r,n 100D. M represents the maximum amount that can be sent from Alice to Bob. x i is the current net amount of units Alice needs to pay to Bob. stop is the nLockTime of the initial Refund transaction, n is the number of Refund transactions created in ongoing (out-of-block) transfers between Alice and Bob (excluding the initial Refund transaction), and s is the time allotted for both parties (Alice and Bob) to agree on a Refund transaction before one party risks the other party submitting a previous Refund transaction, effectively terminating the transaction between Alice and Bob.

[0069] It should be noted that: t+n*s<S stop , where t is the current time, and (S stop -n*s)≥s.

[0070] Figure 1 Transaction T in c 100A, T r,0 100B, T r,1 100C and Tr,n 100D is a transaction that may appear on the blockchain.

[0071] exist Figure 2 The operations for constructing a payment channel between Alice and Bob are shown in flowchart 200 of . Operation 210 and subsequent operations are performed by one or more processors in one or more computing devices executing software including computer executable instructions that may be stored on a computer-readable storage medium.

[0072] At operation 210, a processor of a computing device associated with Alice creates a 2-2 multi-signature pay-to-script-hash (P2SH) transaction T in the manner described above. c .

[0073] Control flows from operation 210 to operation 212. At operation 212, the processor of the computing device associated with Alice creates a separate refund transaction T r,0 , returning all units of funds controlled by the multi-signature to the account associated with Alice in the manner described above.

[0074] Control flows from operation 212 to operation 214. At operation 214, a processor of a computing device associated with Alice signs the refund transaction.

[0075] From operation 214, control proceeds to operation 216. At operation 214, the processor of the computing device associated with Bob may also sign the refund transaction. If the transaction is so signed, control proceeds to operation 218. Alternatively, if the transaction is not so signed, creation of the payment channel is aborted.

[0076] At operation 218, the processor of the computing device associated with Alice processes T c The signature is made and submitted to the blockchain. Then, the control flow proceeds to operation 220.

[0077] At operation 220, the above refund transaction is identified as a first refund transaction so that further transfers from Alice to Bob can be negotiated later.

[0078] From operation 220, control proceeds to operation 222. At operation 222, it is determined that there is sufficient time remaining to negotiate further transfers. If the remaining time is insufficient, control proceeds to operation 224, where the final refund transaction is submitted to the blockchain. Alternatively, if the remaining time is sufficient, control proceeds to operation 226.

[0079] At operation 226, further transfers between Alice and Bob are negotiated. From operation 226, control flows to operation 228, where it is determined whether the negotiation is successful. If the negotiation is unsuccessful, control flows to operation 224 as described above. Alternatively, a successful negotiation will result in control flowing to operation 230.

[0080] At operation 230, a new refund transaction is created in the manner described above reflecting the agreement resulting from the successful negotiation. Control then passes to operation 240 where the new refund transaction is identified as the current refund transaction.

[0081] From operation 240, control proceeds to operation 242, where the processors of the computing devices associated with Alice and Bob may sign the current refund transaction. If so, control returns to operation 222 described above. Alternatively, if the transaction is not so signed, then at operation 244, identification of the current refund transaction is returned to the previous refund transaction. From operation 244, control returns to operation 222 described above.

[0082] Secret Sharing

[0083] As described further below, a threshold secret sharing scheme is employed in the subject matter of the present application.

[0084] In some examples, a threshold secret sharing protocol can be defined by a (t; n) threshold, where n can be the number of participating nodes and t+1 can be the minimum number of nodes required to reconstruct the secret. A secret sharing scheme can be an example of a threshold cryptographic system, where a secret can be partitioned into parts among n nodes, requiring at least t+1 nodes to participate to reconstruct the secret. Knowledge of any t parts may not compromise the secret.

[0085] Shamir Secret Sharing

[0086] An exemplary threshold secret sharing solution is described in Shamir, A., "How to Share Secrets", Communications of the ACM, 22(11), pp. 612-613, 1979 ("Shamir's Method"). Shamir's method may be based on polynomial interpolation and, without loss of generality, assumes that the secret is an element of a finite field F. Shamir's method may include a dealer method or a dealerless method and may include a set of n nodes U1, ..., U n and structured access. A group of participants may be able to reconstruct the secret. Using Shamir's method, an arbitrary random secret is stored as f(0) in a polynomial f(x) of degree t, and only participant i can compute its share f(x i). If t+1 of the n participants cooperate, they can use shares k1, k2, ..., k (of key k) n (corresponding to f(x1), f(x2), ..., f(x) using Lagrange polynomial interpolation n )) to reconstruct any point on f(x). Using the Lagrange polynomial interpolation method, the t-order function f(x) can be reconstructed using t+1 points.

[0087] p={(x1,f(x1)),(x2,f(x2)),…,(x t+1 ,f(x t+1 ))}

[0088]

[0089] in:

[0090]

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

[0092] In the presence of a trader node, the trader node may choose a secret a which is assumed to be an element of a finite field F of size p (p is a prime number) o = k, and t-1 positive integers a1, ..., a1 can be randomly selected. t-1 , these positive integers represent the polynomial f(x)=a o +a1x+a2x 2 +... Then, the broker node can calculate the coefficients of the n points (x i ,f(x i )) and assign them to the participants.

[0093] During the share allocation phase of Shamir's non-dealer nodes:

[0094] 1. Each participant U i Assigned x i , where x i is known to every participant. Each x i All must be unique.

[0095] 2. Each participant U i Generate a random polynomial f with degree t i (x).

[0096] 3. Each participant U iSecretly (encrypted with the recipient's public key) send to the other participants their i (x j )mod the corresponding point on n.

[0097] 4. Each participant U i All received f1(x i ), f2(x i ), ...f p (x i ) (all mod n, where n is the order of the group generated by the point G on the elliptic curve) to form k i =f(x i )mod n, which is the share over the polynomial f(x)mod n.

[0098] The above description of Shamir's method is one example of a threshold secret sharing solution; however, other methods or threshold secret sharing solutions may also be considered.

[0099] In some implementations, the threshold signature computation can be based on a determination of k×G, where k is a key and G is a point on an elliptic curve.

[0100] If f(x) is a polynomial of degree t, then the secret k can be obtained by k = ∑ i∈π b i,π k i to interpolate, where π can be the fraction k a , k b , ..., k t , k t+1 t+1 subset of size, and b can be an interpolation factor, and π can be a collaborative calculation k×G without disclosing its share k i The t+1 node group. k can be the x=0 point on the t-order polynomial

[0101] - Each node U i You can calculate part b i,π k i ×G.

[0102] - All nodes in π can add their parts together (reconstructing the secret k via Lagrangian interpolation) to obtain:

[0103] b a,π k a ×G+b b,π k b ×G+…+b t+1,π k t+1 ×G=k×G

[0104] The above process of calculating Q=kG may be referred to as secret sharing join.

[0105] Publicly verifiable secret sharing

[0106] Nodes involved in the subject matter of this application may desire to be able to verify the correctness of their secret shares. When verifying key shares, a publicly verifiable secret sharing (PVSS) protocol or algorithm may be employed. Key share verification may allow nodes to verify their own shares and the shares of other nodes.

[0107] An exemplary PVSS protocol is described in Stadler, M., "Publicly Verifiable Secret Sharing," International Conference on the Theory and Applications of Cryptographic Techniques, May 1996 (Springer, Berlin and Heidelberg), pp. 190-199.

[0108] In the example PVSS protocol, each node U i Can have a decryption function D i , the decryption function can access the corresponding public encryption function E i Encrypted information. In this way, the broker node can use a public encryption function to allocate key shares and publish them in the following form:

[0109] K i =E i (k i ), i=1,...,n.

[0110] The encrypted shares can be publicly verified by interested nodes. Nodes can verify their key shares and can verify that other nodes have received the correct key shares, i.e., that the trader node is honest.

[0111] The main (high-level) components of the PVSS protocol include:

[0112] (i) Secret Sharing: The trader node can run the algorithm Share(k) = (k1, ..., k n ) to calculate the shares and distribute them to each participating node.

[0113] (ii) Reconstruction: Participant nodes can reconstruct the secret by running the Recover algorithm, so that Recover({D i (K i )|i∈A})=k.

[0114] (iii) Verification: The algorithm PubVerify can be used to verify the encrypted shares. If a node operates the algorithm PubVerify({K i |i∈A})=1→Recover({D i (K i )|i∈A})=u, and u=k, then the dealer node can be determined to be honest and the key share can be consistent.

[0115] In some embodiments, the PVSS scheme may be interactive or non-interactive, depending on the needs of the recovery phase.

[0116] Various implementations of the PVSS protocol based on several cryptographic systems can be considered. For illustration, the following focuses on the protocol described in the paper "A Simple Publicly Verifiable Secret Sharing Scheme with Applications to Electronic Voting" by Schoenmakers, B., published in the Annual International Cryptography Conference, August 1999 (published by Springer-Verlag, Berlin and Heidelberg) (pp. 148-164).

[0117] During the initialization phase, a group G can be selected using a common procedure q and two independently chosen generators G and g. Each node, given its private key You can Set to the public key.

[0118] The broker node can then select a random polynomial with at most degree t-1 Its coefficients are included in Z q and set a0=k. and the encrypted share f(i) (using the participant's public key) release.

[0119] By calculation The trader node can show that the encrypted shares are consistent. In particular, the trader node can show To generate a knowledge proof of f(i).

[0120] Verification of the key shares can be performed using the Fiat-Shamir cryptographic technique from Stadler cited above. The main steps of the non-interactive protocol are:

[0121] The prover (each node) can choose a random variable w i ∈Z q , we can calculate And can broadcast these values.

[0122] - Using c=H(X i , Y i , a 1i , a 2i )(where H() is a cryptographic hash function), the prover (e.g., a node) can compute and broadcast r i =w i -f(x i )c.

[0123] - Given r i , c, the validator node can calculate

[0124] And it can be proved that X i , Y i , a 1i , a 2i , the hash of 1≤i≤n matches c.

[0125] If necessary, the participating nodes can reconstruct the secret s without having to know the shares f(x i ) . The information required may include Calculate secrets by Lagrange interpolation

[0126]

[0127] in, is the Lagrange coefficient.

[0128] The above examples and following description of the subject matter of the present application utilize dealer nodes to calculate and distribute key shares. However, it is contemplated that a dealer-free implementation of the secret sharing protocol may be implemented as described in the Fiat-Shamir heuristic technique (e.g., see “Fiat-Shamir heuristic”, https: / / en.wikipedia.org / wiki / Fiat%E2%80%93Shamir_heuristic, accessed on June 13, 2018).

[0129] See now Figure 3 , which shows an exemplary operating environment of the present application. As shown in the figure, multiple nodes 300 communicate through a computer network 310. Each node 300 is a computing device and participates in a blockchain and has one or more associated addresses, and the blockchain associated with it reflects a certain number of units, such as computing resource units.

[0130] Individual nodes in node 300 may perform processing steps in a distributed process, the outputs of which are combined to form a result.

[0131] The subject matter of this application can be applied in a variety of situations. For example, Figure 4 A specific example operating environment for the present application is shown in the context of a system, and more particularly, an aircraft information system 400 .

[0132] The distributed processing of the aircraft information system 400 is controlled by the control computer device 410 and can rely on multiple subsystems. For example, the distributed processing can involve various nodes, such as the fuel subsystem 420, the navigation subsystem 430, the de-icing subsystem 440, and the landing gear subsystem 450. Each of these subsystems may include subcomponents. For example, the fuel subsystem 420 may include an oil check subcomponent 422, a temperature subcomponent 424, an oil pressure subcomponent 426, and a fuel quantum component 428. The subsystems may be checked in a specific order as part of the pre-flight check, and the subcomponents of a given subsystem may be checked in a specific order. For example, the subsystem checks may be performed starting from the fuel subsystem 420 until the landing gear subsystem 450 in the order shown by the arrows in the figure. In another example, the subcomponents of the fuel subsystem 420 may be checked clockwise starting from the oil check subcomponent 422 until the fuel quantum component 428 is checked. As further described below, the subject matter of the present application may be used to control such processing in an orderly manner. Additionally, a subsystem may be skipped if the situation warrants it, such as in tropical climates the de-icing subsystem 440 may be skipped. Additionally or alternatively, if one subsystem fails, the other subsystems may still be controlled to complete their processing in sequence.

[0133] Back to Figure 3 , remember that each node 300 is a computing device. Figure 5 is a high-level operational diagram of an example computing device. Example computing device 500 may be an example of one or more computer systems described herein, including, for example, one or more nodes 300. Example computing device 500 includes software that adapts it to perform specific functions.

[0134] The exemplary computing device 500 includes various modules. For example, as shown in the figure, the exemplary computing device 500 may include a processor 510, a memory 520, and a network interface 530. As shown in the figure, the above components of the exemplary computing device 500 communicate via a bus 540.

[0135] The processor 510 is a hardware processor, and may be, for example, one or more ARM, Intel x86, PowerPC processors, and the like.

[0136] The memory 520 allows for the storage and retrieval of data. The memory 520 may include, for example, random access memory, read-only memory, and permanent memory. The permanent memory may be, for example, flash memory, a solid state drive, etc. The read-only memory and the permanent memory are non-transitory computer-readable storage media. The computer-readable media may be organized using a file system, such as may be managed by an operating system that manages the overall operation of the exemplary computing device 500.

[0137] Network interface 530 allows exemplary computing device 500 to communicate with other computing devices and / or various communication networks (e.g., computer network 310 (see Figure 3 )) for communication.

[0138] The software including the instructions is executed from the computer readable medium by the processor 510. For example, the software may be loaded into the random access memory from the permanent storage of the memory 520. Additionally or alternatively, the instructions may be executed by the processor 510 directly from the read-only memory of the memory 520.

[0139] As further described below, the software may adapt an instance of the exemplary computing device 500 for use as one or more of the various computer systems mentioned herein, including, for example, one or more nodes 300 and / or one or more controlling computer devices 410 and / or subsystems 420-450 and / or subcomponents thereof.

[0140] See also Figure 6 As further described below, in the protocol described herein, the nodes responsible for executing the processing steps of the entire distributed computing task may form a circular ordered set 600 that is ordered in a manner corresponding to the order of the processing steps in the task. A circular ordered set may be considered a ring where each node 610 has two other nodes as the node immediately after it and the node immediately before it. For example, a directional ring may be formed by a circular ordered set of nodes 610, such as Figure 6 shown.

[0141] As described further below, in the subject matter of the present application, more than one such cyclic ordered set of nodes is employed.

[0142] For example, the nodes of a circular ordered set of nodes may correspond to processing steps performed by a given subsystem (similar to the MDD protocol), where multiple such circular ordered sets are used, each corresponding to a specific subsystem. In addition, the relationship between subsystems, and in particular the ordering of processing between subsystems, may also be represented using another circular ordered set of nodes (in particular, another circular ordered set of nodes each of which is extracted from a specific circular ordered set corresponding to the circular ordered set of the given subsystem).

[0143] As background, similar cyclic ordered sets are discussed in the above-mentioned co-owned UK patent applications Nos. 1706071.6, 1802063.6 and 1806448.5, and specifically these cyclic ordered sets are associated with a group of payment channels forming a "ring" or "group exchange ring", and become a major feature of the above-mentioned MDD, GRECS and GRELR protocols.

[0144] In another example, in addition to or as an alternative to control processing sets, the nodes of the circular ordered sets of nodes can be used for other purposes, for example, for purposes in the GRECS or GRELR protocols or similar purposes, and multiple sets of these sets are linked to another circular ordered set of nodes, which is composed of nodes extracted from one of these sets respectively.

[0145] In any case, if Figure 7 As shown, the two-dimensional structure of such a cyclic ordered node set can be visualized as a set of rings 700 connected to the entire ring 710. Figure 7 In the simplified schematic diagram of , the individual nodes forming each ring 700 and the entire ring 710 are not shown. However, the arrows indicate possible directions of ordering within each cyclic ordered node set corresponding to the ring 700 and within the cyclic ordered node set corresponding to the entire ring 710.

[0146] Figure 8 A more detailed schematic diagram of this two-dimensional structure.

[0147] As shown, the two-dimensional structure includes ω cyclic ordered sets C such as may correspond to the ring 700. a , C b , ...C i ...C ω .

[0148] As shown in the figure, each cyclic ordered set can include n j Nodes: Initiator Node I j and n-1 other nodes: For various cyclic ordered sets C j , n j Can be the same or different. Each initiator node I j Acts as a supervisor for its corresponding circular ordered set.

[0149] Another circular ordered set, namely the circular ordered set 800 of the initiator node, is composed of each circular ordered set C a , C b , ...C i ...C ω The initiator node I a , I b,...I i ...I ω And the main initiator node I M As further described below, the master initiator node I M Act as the overseer of the entire protocol.

[0150] As further described below, the subject matter of the present application relies on asymmetric cryptographic techniques. Various public key cryptographic systems can be used. For example, elliptic curve cryptography (ECC) can be used. In a specific example, elliptic curve cryptography can be used and various private keys and corresponding public keys can be used, whereby a given private key k and its corresponding public key P can be an elliptic curve cryptography public key-private key pair, such that P=kG, where G is the base point of the elliptic curve, and the order is q: q×G=0, where q is a large prime number, and 0<k<q. In a specific example, the elliptic curve secp256kl (defined in the "Efficient Cryptography Standard 2 (SEC 2)" released by Certicom on January 27, 2010) can be used. In other words, each public key and its corresponding private key can form an elliptic curve cryptography public key-private key pair.

[0151] The structure of the payment channel linking the nodes of each cyclic ordered node set will now be described.

[0152] For example, consider the cyclic ordered set C a , C b , ...C i ...C ω As an example only, the following discussion will refer to C j , although it also applies to loop C a , C b , ...C i ...C ω Any one of. Exemplary Circular Ordered Set C j exist Fig. 9 is shown in schematic diagram 900 .

[0153] Referring to the schematic diagram 900, the node of Cj is - and Ij——form an ordered set More specifically, as shown in the figure, the nodes are ordered to form a cycle or ring as shown by the arrows between the nodes.

[0154] As shown in the figure, the key share Respectively with node I j , In particular, as further described below, the initiator I j Generate the above key shares and then distribute them to other nodes in the ordered set. In general, the initiator Ii You can generate a private key v i , then a secret sharing protocol can be used to generate n key shares (i.e. ), and then these shares (through some private and secure channels) to other nodes, i.e. At the same time, keep the remaining share of the key, that is, For itself. In some implementations, a publicly verifiable cryptographic secret sharing (PVSS) algorithm can be used.

[0155] It is worth noting that when using elliptic curve cryptography (ECC), the private key v i Can be chosen as a random number such that 0 < v j <q. Similarly, shares can be generated so that they are also suitable for use as ECC private keys, including

[0156] As described further below, the key shares are used to j In particular, payment channels are established between adjacent nodes, where different values ​​based on key shares are used to lock and unlock those channels. Payment channels can be created between pairs of nodes connected by arrows. As described further below, these payment channels can be directed to Fig. 9 Resource transfer is provided in the direction opposite to the direction indicated by the arrow.

[0157] Fig.10 It is shown Figure 8 As described above, the circular ordered set 800 of the initiator node provides a circular ordered set corresponding to the entire ring 710 ( Figure 7 )’s second dimension.

[0158] As shown and described above, the initiator nodes of the circular ordered set of initiator nodes 800 are ordered to form a cycle or ring as shown by the arrows between the initiator nodes.

[0159] As mentioned above, each initiator node I a , I b ,...I i ...I ω will have an associated private key v j In addition, as shown in the figure, the main initiator I M With an associated private key v xAs further described below, these associated private keys are used to establish a loop of payment channels between nodes of the circular ordered set 800 of initiator nodes. In particular, payment channels are established between adjacent nodes, where different values ​​based on the private keys associated with the initiator nodes are used to lock and unlock those channels. Payment channels can be created between pairs of nodes connected by arrows. As further described below, these payment channels can be directed to Fig.10 Resource transfer is provided in the direction opposite to the direction indicated by the arrow.

[0160] The creation of various payment channels will now be described.

[0161] First, it should be noted that using a payment channel requires committing units of computing resources to the channel. For example, in a given loop of payment channels, computing resources will be transferred from each payment channel slave node to its direct payment channel.

[0162] Since the transfer of value between nodes may not be a requirement for certain applications of the protocol described herein, this amount may be a nominal amount. However, it is obvious that each node needs to participate in the selection of the outcome, otherwise the value allocated to the payment channel will be confiscated. Therefore, it may also be necessary for nodes to contribute enough computing resources to the payment channel to prevent frivolous participation and / or violation of the protocol described herein. The amount of computing resources allocated to each payment channel can be the same amount, or in other words, the resources allocated to each payment channel can be the same if the resources are interchangeable. Alternatively, these values ​​can vary. For example, in a given loop among several different loops, the same amount of computing resources can be allocated to each payment channel, but those values ​​are not the same between those different loops.

[0163] In addition, for the sake of clarity, the following notation is used to discuss the creation of a payment channel that forms a loop between the initiator nodes of the circular ordered set of initiator nodes and the creation of a payment channel in the circular ordered set C: a , C b , ...C i ...C ω The creation of a payment channel that forms a ring between each of the nodes.

[0164] First, the letter i is used as an index associated with an element of a round-robin ordered-set composed of an initiator node (eg, an initiator node / each of its respective round-robin ordered-sets).

[0165] Second, the letter j is used to identify the cyclic ordered set C. a , C b , ...C i ...C ω Given in C iAn index relating to an internal element (e.g., a participant) in the .

[0166] Next, for the cyclic ordered set C i The elements described by using subscript and superscript indices, the superscript index represents the i value (the set identifier), and the subscript index represents the j value inside the set (the sequential component identifier inside the circular ordered set). As an example, is the private key at index 4 of circular ordered set C2.

[0167] Next, i Indicates loop C i The number of participants in the i Including the initiator

[0168] In addition, for a given cyclic ordered set C i Any reference to index j should be considered as a reference to n i Modulo, this means should be regarded as For example, if n i =4, then

[0169] In addition, the above uses the circular ordered set C i The sign of the initiator's key share Can also be presented as This is with the initiator I i The associated key share (v i ).

[0170] Next, it should be noted that although there are ω circular ordered sets (in addition to the circular ordered set composed of the initiator node), due to the existence of the main initiator I M (which may also be referred to as I0), there are ω+1 nodes in the circular ordered set composed of the initiator nodes.

[0171] Furthermore, any reference to index i of the cyclic ordered set of initiator nodes should be considered modulo (ω+1), which means, as an example, that I i =I imod(ω+1) Therefore, if ω=4, then I 4+1 =I 5mod5 =I0=I M .

[0172] Next, it should be noted that any reference to a circular ordered set consisting of initiator nodes may be referenced using alphabetical subscripts (a, b, c, d, ...) (e.g. Figure 8 and Fig.10), or, equivalently, numerical indices (0, 1, 2, 3, ...). For example, the latter can be used to refer to iterations on a circular ordered set consisting of initiator nodes.

[0173] Finally, it is noted that in the following description, the terms "immediately before" and "immediately after" are used, corresponding to Figure 8 , Fig. 9 and Fig.10 The direction of the arrow is shown. For example, Figure 8 Marked as I a The node will be considered to be next to node I b The previous node, and marked as I b The node will be considered to be next to node I a The node after that.

[0174] Now refer to Fig.11 , 12 14 to discuss exemplary operations performed by nodes in the protocol described herein.

[0175] First, combine Fig.11 Discuss the construction of payment channels that form a loop between initiator nodes. Fig.11 A flowchart 1100 is shown, which illustrates operations performed by an initiator node executing a circular ordered set of initiator nodes in preparing to create a loop of a payment channel. Operation 1110 and subsequent operations are performed by one or more processors of each of the various initiator nodes. As such, operation 1110 and subsequent operations are performed by one or more processors of various computing devices. For example, processor 510 ( Figure 5 ) executes software including computer-executable instructions, which may be stored on a computer-readable storage medium, such as the memory 520.

[0176] At operation 1110, the master initiator node I M Generate the above private key v x .

[0177] It is worth noting that this value is crucial to the security of the protocol, especially for the master initiator node I M The security of the circular ordered set composed of known initiator nodes is crucial. x At least all payment channels between each cyclic ordered set remain secret until a loop is formed.

[0178] In addition, at operation 1110, the primary initiator node I M Generate the private key vx The public key For example, in the case of using elliptic key cryptography, the master initiator node I M Can be calculated

[0179] Next, at operation 1120, other initiator nodes (I a to I ω ) generates its own private key v i In addition, each other initiator node generates a corresponding public key And send this value to the master initiator node I M For example, in the case of elliptic key cryptography, each initiator node can i calculate

[0180] Next, at operation 1130, the primary initiator node I M The received The value is associated with Values ​​are combined together to generate a value For example, when using ECC, the summation can be performed

[0181] As described below, in I M and I a Between I a Generate a payment channel, that is, I M →I a , where T Pay Transaction adoption value This means that you must Provide the corresponding private key SV A (rather than signing with that key) to unlock T Pay It is worth noting that due to the definition of Unlock the T Pay Unlocked value of the transaction SV A Will be based on the private keys associated with all initiator nodes. For example, in the case of ECC, The corresponding secret value SV A Can be used with First, remember that, according to the homomorphic property of elliptic curve addition, E(m+n)=E(m)+E(n), where E is the function E(x)=xG. Thus, corresponding to Private key SV A is the private key v a +v b +...+v ω-1 +v ω +vx The sum.

[0182] Establishing a payment channel requires iteration. The iteration starts at i=0, so it starts at the main initiator node (recall that I M =I0).

[0183] Next, at operation 1140, it is determined whether there is sufficient remaining time to complete the establishment of the payment channel. The manner in which it is determined whether there is sufficient remaining time to complete the establishment of the payment channel is further described below. If it is determined that the remaining time is insufficient, the establishment is terminated (and a refund transaction for any payment channel established due to the timeout will occur).

[0184] If the remaining time is sufficient, then after operation 1140, it is determined whether all payment channels have been created between the initiator nodes. If so, the creation is completed. Alternatively, if payment channels still need to be created to form a loop between the nodes of the circular ordered set composed of the initiator nodes, the next operation is operation 1150.

[0185] At operation 1150, node I i Using Locked Values In locking resources I i and I i+1 For example, when i=0, the payment channel I M →I a will be created as locking.

[0186] Starting from operation 1150, if the payment channel is successfully created, the notional iterator i is incremented and then operation 1160 is performed. Alternatively, if there is a failure, the next operation is operation 1140, where an attempt can be made to rebuild the payment channel as long as sufficient time remains.

[0187] At operation 1160, node I i Will be based on the lock value used to lock the last payment channel and its private key SV i The corresponding public key to determine the next lock value. For example, in the case of ECC, it can calculate (where, due to the increase of iterator i, Now refers to the previous locked value).

[0188] From operation 1160, the next operation is operation 1140, where, provided sufficient time remains, another payment channel will be created (as needed) (and may be successfully created).

[0189] It is worth noting that in the above process, except for the main initiator node I M Each initiator node other than the other initiator node benefits from the creation of a payment channel that is beneficial to itself before the payment channel to which it provides resources is created. In this way, the initiator node is conveniently free from the risk of another initiator node abusing resources (without having to trust the main initiator node). It is worth noting that I M No such ordering needs to be provided for it, since it is the v that has all the locked values ​​based on. x The only node of .

[0190] First, combine Fig.12 Discuss the given cyclic ordered node set C i The construction of a payment channel that forms a loop between nodes. Fig.12 1200 is shown, which illustrates a typical circular ordered set C consisting of initiator nodes in preparing to create a cycle of payment channels between each pair of adjacent nodes in the set. i Operation 1210 and subsequent operations are performed by one or more processors of each of the various initiator nodes. Thus, operation 1210 and subsequent operations are performed by one or more processors of various computing devices, such as processor 510 ( Figure 5 ) executes software including computer-executable instructions, where these instructions can be stored on a computer-readable storage medium, such as memory 520.

[0191] First, at operation 1210, the ordered node set C is looped i The initiator node I i Generate a private key v as described above i , and distribute its key shares

[0192] Next, at operation 1220, the initiator node I i Get lock value It can be obtained from the next initiator node of the circular ordered set composed of initiator nodes For example, we can start from the next cyclic ordered node set C i+1 The initiator node receives the value

[0193] Next, at operation 1230, the initiator node Determines the locked value. In particular, when viewed as a private key, it determines the public key that corresponds to each key share. For example, for When using ECC, I i Can be calculated It is worth noting that the cyclic ordered node set C i Each of the other nodes will also be able to determine the public key corresponding to its share of the key in a similar manner.

[0194] Then, the initiator node I i Based on the public key corresponding to the key share and To determine the lock value For example, when using ECC, the summation can be performed

[0195] As described below, in I j and Between Generate a payment channel, that is Where T Pay Transaction adoption value This means that you must Provide the corresponding private key sv1 (instead of using the signature of that key) to unlock T Pay It is worth noting that due to the definition of Unlock the T Pay The unlock value sv1 of the transaction will be based on the value of C i The key shares associated with all initiator nodes in (and based on ). For example, when ECC is used, The corresponding secret value can be related to So, corresponding to Private key is the above key share and SV i+1 The sum of Right now

[0196] Establishing a payment channel requires iteration. The iteration starts at j=0, so it starts at the initiator node (remember ).

[0197] Next, at operation 1240, it is determined whether there is sufficient remaining time to complete the establishment of the payment channel. The manner in which it is determined whether there is sufficient remaining time to complete the establishment of the payment channel is further described below.

[0198] If it is determined that insufficient time remains, the establishment is terminated (and refund transactions for any payment channels established due to the timeout will occur).

[0199] Alternatively, if the remaining time is sufficient, after operation 1240, it is determined whether the iAll payment channels have been created between the nodes of the circular ordered set. If so, the establishment of payment channels for the circular ordered set will be terminated with completion. Alternatively, if payment channels still need to be created to form a loop between the nodes of the circular ordered set, the next operation is operation 1250.

[0200] At operation 1250, the node Using Locked Values In the locked resource U i and For example, when j = 0, the payment channel will be created as locking.

[0201] Starting from operation 1250, if the payment channel is successfully created, the nominal iterator j is incremented and then operation 1260 is performed. Alternatively, if there is a failure, the next operation is operation 1240, where an attempt can be made to rebuild the payment channel as long as sufficient time remains.

[0202] At operation 1260, the node Will be based on the lock value used to lock the last payment channel and its key share The corresponding public key to determine the next lock value. For example, in the case of ECC, it can calculate (where, due to the increase of iterator j, Now refers to the previous locked value).

[0203] From operation 1260, the next operation is operation 1240, where, provided sufficient time remains, another payment channel will be created (as needed) (and may be successfully created).

[0204] Fig.13 supply Figure 8 , which is annotated to show the unlocked value that can be associated with the payment channel between nodes established in accordance with the foregoing.

[0205] Finally, it should be noted that the operations shown in flowcharts 1100 and 1200 are necessarily interdependent due to common values ​​employed and generated by the various operations. Fig.14 A flowchart 1400 is provided, which shows how the operations in flowchart 1100 and flowchart 1200 can be combined. It is worth noting that the operations shown with stippled borders in flowchart 1400 can be performed in parallel. In addition, it should be noted that the operations shown with shaded fills correspond to various operations of flowchart 1200.

[0206] Transfer channel

[0207] As further described below, the subject matter of the present application does not require the use of payment channels for more than one payment iteration. In fact, the main focus of the channel is not the payment itself. Instead, the payment channel acts as an escrow mechanism to enforce compliance with the protocol described herein. In this way, a version of the payment channel that may be different from the existing payment channels described above can be adopted, because the focus in such different versions of the payment channel may be on escrow resources and providing time-locked refund transactions, rather than providing multiple iterations of refund-payment transactions. Such a variant of the payment channel may be referred to as a commitment channel.

[0208] Transfer channels are “one-way” channels because the transfer of resources is only in one direction, similar to the example implementation of payment channels above. For a pair of nodes, such that U A Pay U B The transfer channel can be accessed through the symbol U A →U B To express.

[0209] Fig.15 Provide U A →U B The transfer channel indicates 1500.

[0210] As shown in the figure, the transfer channel includes three transactions: c 、T pay and T r It should be noted that the symbol σ(U x ) represents U x The encrypted signature.

[0211] T c Transaction represents the transfer component of the payment channel. Here, through the transaction, U b Send / transfer a specified number of units to be sent by a 2-2 multi-signature ( and ) or secret value and cryptographic signature manage.

[0212] T r The transaction represents the return of a specified number of units (from a commitment transaction) to U b , and is eligible to be submitted to the blockchain only after the specified time expires. r It is set to return the control of the resource to a specific node U when the return condition of the time expiration is met. b In order to successfully execute the transaction, it requires U A and U B The encrypted signature.

[0213] Tpay A transaction is the transfer of a specified number of units from U b The funds transferred to U a (i.e. from b The source address associated with U a associated destination address). In order to successfully execute the transaction, it requires the secret value and U B In other words, the transaction will only be executed in response to the satisfaction of the execution conditions, which include providing the required values, including the unlocking value.

[0214] Blockchain can be used to provide the implementation of the transfer channel. In this type of implementation, T c 、T r and T pay Each of them can be a transaction. The corresponding transactions 1600, 1700 and 1800 are respectively Fig.16 , Fig.17 and Fig.18 . It is worth noting that one or more of transactions 1600, 1700, and 1800 may employ a non-standard opcode OP_ECPMULT. OP_ECPMULT takes an encoded elliptic curve point and a number and performs elliptic curve multiplication on a scalar, outputting the result as an encoded elliptic curve point. Commonly owned UK patent application No. 1705749.8, entitled “Computer-implemented systems and methods,” filed on April 10, 2017, provides details of the OP_ECPMULT opcode.

[0215] Fig.19 Table 1900 is provided, which shows how to use the opcode OP_ECPMULT to transfer the <scriptpubkey>With payment transaction 1800 <scriptsig>Combine to unlock the committed resources.

[0216] Plenty of time left

[0217] The manner in which it is determined whether there is sufficient time to create a payment channel will now be discussed.

[0218] Considering that payment channels are transfer channels, the core of this concept of "sufficient" or "sufficient time" is: when a pair of participants creates a payment channel U A →U B When doing so, they must ensure that they take into account:

[0219] 1. Each transfer channel has a nTimeLocked refund transaction T r , Participant U A It can be submitted to the blockchain; if U A If the specific conditions are not met, the escrow funds of the transfer channel will be returned to U A ;

[0220] 2. Each participant must A Provide a "fair" or "agreed-upon" time period to build channel U A →U B and receive their funds;

[0221] 3. Create U A →U B After that, you may also need to create additional transfer channels. This can include:

[0222] a) The same circular ordered set C i The transfer channel in the loop,

[0223] b) The transfer channel in the loop associated with other cyclic ordered sets, where C k :k>i,

[0224] c) The transfer channel U in the loop associated with the initiator's circular ordered set e →U f , where C k : e>A; and

[0225] 4. When the main initiator I M The first T pay When a transaction is submitted to the blockchain (in the public SV x =v x In the process), there is an expected agreed time T 2D .

[0226] It should also be noted that if at the start time T 2D If an error occurred before (including not creating all required channels), then participant U b Expect to ensure they have adequate time to:

[0227] a) From the transfer channel U b →U c Submit Refund T r ;or

[0228] b) From the transfer channel U a →U b Submit payment T pay , assuming U c Similarly, from the transfer channel U b →U c Submitted payment T pay .

[0229] Considering that the planned start time T 2D In these cases, to determine whether there is "enough time" left, we must consider whether there is enough time to loop through the ordered set C. i Each node in the chain (or a circular ordered set of initiator nodes) has the opportunity to create its own channel and receive a refund.

[0230] To do this, the value s can be defined as follows i and

[0231] s i Indicates each The amount of time given to:

[0232] 1. Build a transfer channel

[0233] 2. Identify the necessary secret values ​​found within the blockchain, and

[0234] 3. Submit payment to the blockchain network Transaction T Pay .

[0235] s i It can be expressed in units such as seconds or blocks.

[0236] Indicates that the given initiator is given to create a transfer channel I i →I i+1 . The time should be sufficient to:

[0237] 1. You can construct a circular ordered set C i+1 All transfer channels of the associated loop

[0238] 2. You can find the circular ordered set C in the blockchain i+1 All required secret values ​​for the associated loop's allocated channels,

[0239] 3. You can turn loop C i+1 All T Pay The transaction is submitted to the blockchain,

[0240] 4. A transfer channel I that can construct a loop associated with a circular ordered set composed of initiator nodes i →I i+1 ,

[0241] 5. You can find the transfer channel I in the blockchain i →I i+1 The required secret value of

[0242] 6. You can i-1 →I i T Pay The transaction is submitted to the blockchain network.

[0243] It is worth noting that The choice of value may take into account that one or more of the above operations may occur in parallel.

[0244] It can be expressed in units such as seconds or blocks.

[0245] Using the value s defined above i and The condition for evaluating whether the remaining time is sufficient can correspond to T 2D -current time>f({s i : i∈[a,ω]}) or If appropriate.

[0246] The above explains how to build a payment channel loop for various circular ordered sets. Fig. 20 Describe the use of these loops in the sequencing process of control system components (e.g., in each ω loop ordered set C with nodes a , C b , ...C i ...C ω corresponding subsystems), and their use in subcomponents of these components (e.g., in the ω-loop ordered set C a , C b , ...C i ...C ω Between the subcomponents corresponding to each node).

[0247] Fig. 20 Flowchart 2000 is shown, which illustrates operations performed by nodes of various cyclic ordered sets for controlling the order of processing between nodes of various cyclic ordered sets and between nodes that make up each set. Operation 2010 and subsequent operations are performed by one or more processors of each of the various nodes. Thus, operation 2010 and subsequent operations are performed by one or more processors of various computing devices, such as processor 510 ( Figure 5 ) executes software including computer-executable instructions, which may be stored on a computer-readable storage medium, such as the memory 520.

[0248] Fig. 20 The operations shown assume that a payment channel has been established to form a ring between the nodes of each circular ordered set of nodes (including the circular ordered set consisting of the initiator node).

[0249] Considering Fig. 20 For readers, please refer to Figure 8 or Fig.13 It may be helpful to remember that in the examples shown in those figures, in addition to the circular ordered set consisting of the initiator node (i.e., ω=d=4), there are four more circular ordered sets, and each of these four circular ordered sets consists of exactly four nodes (i.e., ). It should be noted that according to Figure 8 and Fig.13 , the execution of payment channels between those nodes, and hence the triggering of processing by those nodes, proceeds in a counter-clockwise direction.

[0250] In operation 2010, the main initiator I M For itself (I ω →I M ) Submit the transaction T of the payment channel pay It is worth noting that due to the construction of the payment channel, the T Pay The value will be locked Locked and unlocked by the corresponding value SV x Unlock (the locked value is the private key corresponding to the public key of the unlocked value) and SV x All based on v x (Please recall that, up to now, only I M I just knew v x . ) It is worth noting that this has the effect of submitting T Pay When the blockchain is open to the public x effect.

[0251] I ω Will require SV x The value to unlock T Pay In some implementations, I M SV x Send to I ω Additionally or alternatively, I ω SV can be retrieved from the blockchain x .

[0252] Iteration is required so that processing can proceed between subsystems (thus, through the nodes of the loop ordered set corresponding to that subsystem, triggered by the initiator of that loop ordered set). Iteration starts at i=ω, so in the loop ordered node set C ω The initiator node I ω Start at.

[0253] Next, in operation 220, it is determined whether there is sufficient remaining time to complete the submission of payment channels of the loop associated with the circular ordered node set (other than the circular ordered initiator node set) that has not yet completed processing, and whether there is sufficient remaining time to complete the submission of the remaining payment channels of the loop associated with the circular ordered initiator node set.

[0254] If it is determined that the remaining time is insufficient, the process proceeds to operation 2030, in which the initiator node I i-1 Submit the refund transaction of the payment channel it created to the blockchain (i.e. T r :I i-1 →I i ). Notably, this will have the effect of triggering a chain reaction whereby all other initiator nodes of the circular ordered initiator node set will submit refund transactions. This will also have the effect of causing nodes of the circular ordered set that have not yet executed to submit their refund transactions.

[0255] Alternatively, if it is determined in operation 2020 that the remaining time is sufficient, the process proceeds to operation 2040 .

[0256] At operation 2040, the initiator node I i Determine the circular ordered set C consisting of the (non-initiator) nodes to which it belongs i Such determinations can be based, for example, on the specific purpose and application of distributed processing performed by the node as a whole or in a specific subsystem. Figure 4 As discussed, there may be situations where the processing to be performed by a particular set of loop-ordered nodes may not be necessary or warranted.

[0257] If it is determined that the cyclic ordered node set C should be skipped i If the process associated with the circular ordered node set C is determined, the process continues with operation 2050. i If the associated processing should be performed, the process proceeds to operation 2070 .

[0258] Because, as further described below, given a cyclic ordered set of nodes C i Each node that processes a transaction on the blockchain will cause the transaction to be committed to the blockchain, so the blockchain provides an audit trail of what has been done. Furthermore, given the characteristics of the blockchain, this audit trail can be considered tamper-proof.

[0259] At operation 2050, the initiator node I i Retrieve sv from the blockchain i+1 Additionally or alternatively, it may be possible to i+1 Receive this value. Once sv is obtained i+1 , which can be used to determine sv i , because the value is based on v i and sv i+1 The component based on which is the private key v of each node corresponding to the circular ordered set composed of the initiator node j , the initiator node comes from the circular ordered set I i The subsequent initiator nodes until the main initiator node. For example, when using ECC, v i and sv i+1 Perform the summation.

[0260] Processing proceeds from operation 2050 to operation 2060. At operation 2060, I i Will be used for payment channel I i-1 →I i Payment transaction T Pay Submit to the blockchain. It is worth noting that this has the effect of publicly publishing SV on the blockchain. i The effect is to allow the next initiator node in the sequence (i.e., I i-1 ) continues its processing.

[0261] After operation 2060, the nominal iterator i is decremented, and assuming there are remaining initiator nodes (ie, i>0), processing continues at operation 2020. Alternatively, if all initiator nodes have had a chance to execute, processing terminates.

[0262] Remember, I i It may also be determined not to skip the loop ordered set C i In such cases, as described above, processing proceeds to operation 2070, in which a loop ordered set C is initiated. i processing.

[0263] At operation 2070, the initiator node identifies (Recall that ).

[0264] In operation 2080 after operation 2070, the initiator node I i Submit T to the blockchain pay Transactions, thus public . It is worth noting that, as described further below, this has the effect of public node Calculate and submit T to the blockchain pay The effect of the transaction is to unlock the value required. Thus, operation 2080 has the effect of being executed by the node The effect that triggers the processing.

[0265] Iteration is required so that processing can be done in a loop ordered set C i It is worth noting that when the process reaches each such node, it is triggered to execute any process associated with the node.

[0266] Iteration from j = n i -1, so in the circular ordered node set C i Node Start at.

[0267] Processing proceeds from operation 2080 to operation 2090. At operation 2090, it is determined whether there is sufficient remaining time to complete the loop with the ordered node set C. i Commitment of payment channels associated with the ring.

[0268] If it is determined that the remaining time is insufficient, processing proceeds to operation 2100, where the node Submits a refund transaction to the blockchain for the payment channel it created (i.e. ), thereby initiating C i Other nodes submit corresponding refund transactions in turn

[0269] Alternatively, if it is determined in operation 2090 that the remaining time is sufficient, the process proceeds to operation 2110 .

[0270] At operation 2110, the next node in the loop associated with the cyclic ordered node set Ci The payment transaction submitted to the blockchain from the previous node in the sequence (i.e. ) And based on this value and its key share To determine For example, in the case of ECC, it can calculate

[0271] Processing proceeds from operation 2110 to operation 2120. At operation 2120, the node The payment transaction of the payment channel (i.e. ) is submitted to the blockchain. It is worth noting that this has the effect of being publicly available on the blockchain. effect.

[0272] Starting from operation 2120, when processing proceeds to the loop ordered node set C i When the next node in the set is found, the nominal iterator j is decremented. If the remaining nodes in the set have not yet been processed, processing proceeds to operation 2090. Alternatively, if the node for C i If the processing of all nodes in has been completed, the control flow returns to operation 2050.

[0273] At operation 2050, as described above, the next initiator node (I i ) Retrieve SV from the blockchain i+1 , so that it can calculate SV i Then, at operation 2060, the payment channel T pay Transactions that use SV in payment channels i Unlock, just like next to the initiator node I i The previous node has been prepared. However, it is worth noting that, because of the circular ordered set C i The secret value associated with each node is v i The key shares, and those values ​​will be submitted to the circular ordered set C i All payment transactions of nodes are made public on the blockchain, even if I i Unable to submit to blockchain for payment channel I i-1 →I i T pay The transaction is still initiated by the next initiator node I i-1 Reconstruct v by using the revealed key share i To initiate a circular ordered set C i Processing of nodes.

[0274] The above embodiment actually involves a cyclic ordered set of a cyclic ordered set, the former refers to the cyclic ordered set C i , the latter refers to the relationship between them defined by the initiator's circular ordered set (except for the main initiator node, each member of the circular ordered set is also a member of the circular ordered set C i In other words, the above embodiments effectively involve two-dimensional circular ordered sets. In some embodiments, the subject matter of the above embodiments can be further generalized to allow for more dimensions. For example, a circular ordered set consisting of initiator nodes can be defined, each of which is the master initiator of a corresponding other circular ordered set consisting of initiator nodes, and then each of these initiator nodes is the initiator of the corresponding circular ordered set, thereby providing three dimensions.

[0275] It should be noted that the above embodiments are illustrative rather than limiting of the present disclosure, and that a person skilled in the art will be able to design a variety of alternative embodiments without departing from the scope of the present disclosure. In the claims, any figure marks in brackets shall not be interpreted as limiting the claims. The words "comprises" and the like do not exclude the presence of elements or steps other than those listed as a whole in any claim or in the specification. In this specification, "comprises" means "includes" or "consists of...". The singular form of an element does not exclude the plural form of such elements, and vice versa. The present disclosure may be implemented by hardware comprising several different elements and by a suitably programmed computer. In a device claim enumerating several means, several of these means may be embodied by the same hardware. The fact that certain measures are cited in mutually different dependent claims does not mean that a combination of these measures cannot be used to advantage.< / scriptsig> < / scriptpubkey>

Claims

1. A computer-implemented method, the method being used in a system, the system comprising: A first set of nodes participating in a blockchain network in a circular order, the first set including a first initiator node and a second node, the second node being located immediately after the first initiator node in the first set; A second set of nodes in a circular order, wherein all nodes in the second set are initiator nodes, wherein: Each initiator node in the second set is an initiator node of a corresponding one of a plurality of cyclic ordered node sets, the plurality of cyclic ordered node sets including the first set, and The second set includes a first main initiator node, the first initiator node, a second initiator node in the second set immediately before the first initiator node, and a third initiator node in the second set immediately after the first initiator node; and A third set of nodes in a circular order, all nodes in the third set being primary initiator nodes, wherein: Each master initiator node in the third set is a master initiator node of a corresponding one of a plurality of cyclic ordered initiator node sets, the plurality of cyclic ordered node sets including the second set, and The third set includes the first master initiator node, a second master initiator node in the third set immediately before the first master initiator node, and a third master initiator node in the third set immediately after the first master initiator node; The method comprises: The first initiator node generates a private key; The first initiator node sends a public key corresponding to the private key to the first main initiator node; The first initiator node generates an encrypted share of a private key for each node of the first set, and distributes the respective encrypted shares to other nodes of the first set; The first initiator node determines a first locking value based on a public key corresponding to each encrypted share; receiving, by the first initiator node from the second initiator node, a first value based on a public key associated with each node in the second set from the first initiator node to the first master initiator node; preparing, by the first initiator node, a transaction, wherein the transaction is arranged to send control of a resource from a source address associated with the first initiator node to a receiving address of the second node in response to satisfying an execution condition including providing a first unlock value corresponding to the first lock value; and Initiating, by the first initiator node, preparation of further transactions to form a transaction loop between each pair of adjacent nodes in the first set, wherein each further transaction is configured to send control of a corresponding resource from an address associated with a first node in each pair of adjacent nodes to an address associated with a second node in the pair of adjacent nodes in response to satisfying an execution condition including providing a corresponding unlocking value corresponding to a corresponding locking value, wherein the second node in each pair of adjacent nodes is immediately after the first node in the pair of adjacent nodes in the first set, and wherein the corresponding locking value is determined based on an encrypted share assigned to the first node in a given pair of adjacent nodes and a value received from a node immediately before the first node in the first set.

2. The method according to claim 1, further comprising: The first initiator node determines a second locking value based on the first value and the public key corresponding to the private key; as well as A transaction is prepared, by the first initiator node, wherein the transaction is arranged to send control of a resource from a source address associated with the first initiator node to a receiving address of the third initiator node in response to satisfying an execution condition including providing a second unlock value corresponding to the second lock value.

3. The method according to claim 1 or 2, further comprising: A second value is obtained by the first initiator node based on a private key corresponding to a public key associated with each node of the second set consisting of the third initiator node to the master initiator node.

4. The method of claim 3, wherein the second value is obtained by the first initiator node from a blockchain. The method of claim 3 , wherein the second value is obtained by the first initiator node from the third initiator node.

6. The method according to any one of claims 3 to 5, further comprising: The first initiator node determines that execution of the transaction loop should not be initiated; as well as In response to determining that execution of the transaction loop should not be initiated: Determining, by the first initiator node, a third unlocking value based on the second value and the private key; as well as executing, by the first initiator node, a transaction prepared by the second initiator node using the third unlocking value, wherein the transaction is arranged to send control of a resource from a source address associated with the second initiator node to a receiving address of the first initiator node, wherein control of the resource is sent in response to satisfying an execution condition including providing the third unlocking value.

7. The method of any one of claims 3 to 6, wherein the first lock value is further based on the second value.

8. The method according to any one of claims 3 to 8, further comprising: The first initiator node determines that execution of the transaction loop should be initiated; In response to determining that execution of the transaction loop should be initiated: determining, by the first initiator node, a fourth unlocking value based on the second value and a corresponding one of the encrypted shares of the private key; as well as executing, by the first initiator node, a transaction prepared by a node immediately preceding the initiator node in the first cyclically ordered set of nodes using the fourth unlocking value, wherein the transaction is arranged to send control of a resource from a source address associated with the immediately preceding node to a receiving address of the initiator node, wherein control of the resource is sent in response to satisfying an execution condition including providing the fourth unlocking value.

9. A method according to any one of the preceding claims, wherein the step of initiating preparation for further transactions to form a transaction loop between each pair of adjacent nodes in the first set comprises: The first lock value is sent, by the first initiator node, to the node immediately following the first initiator node in the first set.

10. A method according to any preceding claim, wherein each of the resources has the same amount as the other of the resources.

11. A method according to any one of the preceding claims, wherein each public key and its corresponding private key form an elliptic curve cryptography public-private key pair.

12. A method according to any one of the preceding claims, wherein the encrypted share of the private key is generated using a publicly verifiable cryptographic secret sharing algorithm.

13. A computer-implemented system comprising: A processor and a memory, wherein the memory comprises executable instructions, and when the instructions are executed by the processor, the system performs the method according to any one of claims 1 to 12.

14. A non-transitory computer-readable storage medium, wherein the medium is used to store instructions for adapting a computer system to perform the method according to any one of claims 1 to 12.