Privacy protection deadlock removed
Through blockchain technology and smart contracts, zero-knowledge proofs and Peterson's commitments are used to solve the single point of failure and deadlock lifting difficulties of centralized databases, realize a decentralized payment system, and ensure the fairness of the payment system. Sexuality and privacy protection.
Patent Information
- Application Number
- CN202010189395.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-03-27
- Filing Date
- 2020-03-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-03-18
AI Technical Summary
Centralized databases have problems such as single points of failure, network dependence, insufficient data redundancy, and difficulties in resolving deadlocks, especially in inter-bank payment networks, resulting in overburdened central banks.
Using blockchain technology, through distributed ledgers and smart contracts, we implement decentralized deadlock lifting protocols, use zero-knowledge proofs and Peterson's commitment to protect privacy, and aggregate local payment subsets to create a globally nettable set to ensure fairness. sex and fairness.
It effectively solves the problems of single point of failure and insufficient data redundancy in centralized databases, achieves decentralized deadlock lifting, reduces the burden on the central bank, and ensures the fairness and privacy protection of the payment system.
Smart Images

Figure CN111754343B_ABST
Abstract
Description
Technical Field
[0001] The present application relates generally to blockchain processing, and more specifically to a deadlock resolution protocol in which a blockchain can be used to fairly determine a global subset of payments that can be processed to resolve a deadlock while protecting the privacy of sensitive banking information. Background Art
[0002] A centralized database stores and maintains data in a single database at one location (e.g., a database server). The location is typically a central computer, such as a desktop central processing unit (CPU), a server CPU, or a mainframe computer. Information stored on a centralized database is typically accessible from multiple different points. For example, based on a client / server configuration, multiple users or client workstations can work on a centralized database simultaneously. A centralized database is easy to manage, maintain, and control due to its single location, particularly for security purposes. Within a centralized database, data redundancy is minimized because a single storage location for all data also means that a given data set has only one primary record.
[0003] However, centralized databases have significant drawbacks. For example, centralized databases have a single point of failure. In particular, if there is no fault tolerance consideration and a hardware failure (e.g., hardware, firmware, and / or software failure) occurs, all data within the database is lost and the work of all users is interrupted. In addition, centralized databases are highly dependent on network connections. As a result, the slower the connection, the amount of time required for each database access increases. Another drawback is that bottlenecks occur when centralized databases encounter high traffic due to a single location. In addition, since the database only maintains one copy of the data, centralized databases provide limited access to the data. As a result, multiple devices cannot access the same data simultaneously without causing significant problems or the risk of overwriting stored data. In addition, since the database storage system has almost no data redundancy, it is difficult to recover accidentally lost data except by manually recovering from backup storage.
[0004] Meanwhile, deadlock is a situation that occurs in an interbank payment network when all participants do not have enough liquidity to settle their payment instructions because several payments are each waiting for the settlement of other payments. In payment systems where a central bank (central institution) can exercise control, the system must always rely on the central bank for deadlock resolution, which leads to the single point of failure problem mentioned above and may cause excessive burden on the central bank's infrastructure. In addition, in cross-border payment systems or other more general payment systems, no single central bank is entrusted with deadlock resolution. Therefore, a deadlock resolution solution that overcomes these defects and limitations is needed. Summary of the invention
[0005] An example embodiment provides a system including a processor and a memory, wherein the processor is configured to perform one or more of the following: a network interface, the network interface being configured to receive deadlock release messages from participants of a deadlock payment network, wherein each deadlock release message includes a subset of local payments to be executed and a zero-knowledge proof, the zero-knowledge proof indicating that the subset of local payments creates a positive post-balance for the corresponding participant without revealing the positive post-balance; and a processor, the processor being configured to determine whether the zero-knowledge proof included in the deadlock release message is valid, aggregate the subsets of local payments to be executed from the deadlock release messages to create a global nettable set of payments, and publish the global nettable set via a data block in a hash-linked chain of data blocks of a distributed ledger accessible to the participants.
[0006] Another example embodiment provides a method comprising one or more of the following: receiving deadlock release messages from participants of a deadlock payment network, each deadlock release message comprising a local payment subset to be executed and a zero-knowledge proof, wherein the zero-knowledge proof indicates that the local payment subset creates a positive post-account balance for the corresponding participant without revealing the positive post-account balance; determining whether the zero-knowledge proof included in the deadlock release message is valid, aggregating the local payment subsets to be executed from the deadlock release message to create a globally nettable set of payments, and publishing the globally nettable set via a data block in a hash link chain of data blocks of a distributed ledger accessible to the participants.
[0007] Another example embodiment provides a non-transitory computer-readable medium comprising instructions that, when read by a processor, cause the processor to perform one or more of the following: receiving deadlock release messages from participants of a deadlock payment network, each deadlock release message comprising a local payment subset to be executed and a zero-knowledge proof, the zero-knowledge proof indicating that the local payment subset creates a positive post-account balance for the corresponding participant without revealing the positive post-account balance; determining whether the zero-knowledge proof included in the deadlock release message is valid, aggregating the local payment subsets to be executed from the deadlock release message to create a globally nettable set of payments, and publishing the globally nettable set via a data block in a hash-linked chain of data blocks of a distributed ledger accessible to the participants. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 is a diagram illustrating a blockchain network for deadlock resolution according to an example embodiment.
[0009] Figure 2Ais a diagram illustrating an example blockchain architecture configuration according to an example embodiment.
[0010] Figure 2B is a diagram illustrating a blockchain transaction flow according to an example embodiment.
[0011] Figure 3A is a diagram illustrating a permission network according to an example embodiment.
[0012] Figure 3B is a diagram illustrating another permission network according to an example embodiment.
[0013] Figure 4A is a diagram illustrating a communication process for deadlock resolution according to an example embodiment.
[0014] Figure 4B is a diagram illustrating a deadlock release message provided from a participant of a payment network according to an example embodiment.
[0015] Figure 5 is a flow chart illustrating a method for resolving a deadlock in a payment network according to an example embodiment.
[0016] Fig. 6A is a diagram illustrating an example system configured to perform one or more operations described herein according to an example embodiment.
[0017] Figure 6B is a diagram illustrating another example system configured to perform one or more operations described herein according to an example embodiment.
[0018] Figure 6C is a diagram illustrating yet another example system configured to employ smart contracts according to an example embodiment.
[0019] Fig.6D is a diagram illustrating yet another example system configured to employ blockchain according to an example embodiment.
[0020] Fig. 7A is a diagram illustrating a process for adding a new block to a distributed ledger according to an example embodiment.
[0021] Figure 7B is a diagram illustrating the contents of a new data block according to an example embodiment.
[0022] Figure 7C is a diagram illustrating a blockchain for digital content according to an example embodiment.
[0023] Fig.7D is a diagram illustrating a block structure that may represent a block in a blockchain according to example embodiments.
[0024] Figure 8is a diagram illustrating an example system that supports one or more example embodiments. DETAILED DESCRIPTION
[0025] It will be readily understood that the example components, as generally described and illustrated in the figures herein, may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of embodiments of at least one of the methods, devices, non-transitory computer-readable media, and systems as represented in the figures is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments.
[0026] Example features, structures, or characteristics described throughout the specification may be combined or removed in any suitable manner in one or more embodiments. For example, throughout the specification, the use of the phrases "example embodiments," "some embodiments," or other similar language refers to the fact that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment. Thus, throughout the specification, the appearance of the phrases "example embodiments," "in some embodiments," "in other embodiments," or other similar language does not necessarily all refer to the same set of embodiments, and the described features, structures, or characteristics may be combined or removed in any suitable manner in one or more embodiments.
[0027] In addition, although the term "message" may be used in the description of the embodiment, the application can be applied to various types of networks and data. In addition, although certain types of connections, messages and signaling can be described in exemplary embodiments, the application is not limited to a certain type of connection, message and signaling.
[0028] Example embodiments provide methods, systems, components, non-transitory computer-readable media, devices, and / or networks that provide deadlock resolution via a blockchain that protects the privacy of the entities involved.
[0029] In one embodiment, the present application adopts a decentralized database (e.g., blockchain) as a distributed storage system, which includes multiple nodes that communicate with each other. The decentralized database includes an immutable data structure that is appended only, which is similar to a distributed ledger that can maintain records between mutually untrusted parties. Untrusted parties are referred to as peers or peer nodes in this article. Each peer maintains a copy of the database record, and no single peer can modify the database record without reaching a consensus between the distributed peers. For example, peers can execute a consensus protocol to verify blockchain storage transactions, group storage transactions into blocks, and build hash chains on these blocks. In order to maintain consistency, when necessary, the process forms an account book by sorting storage transactions. In various embodiments, a licensed and / or permissionless blockchain can be used. In a public or permissionless blockchain, anyone can participate without a specific identity. Public blockchains generally involve native cryptocurrencies and use consensus based on various protocols such as proof of work (PoW). On the other hand, permissioned blockchain databases provide secure interactions between a group of entities that share a common goal but do not fully trust each other, such as businesses exchanging funds, goods, information, etc.
[0030] The present application may adopt a blockchain that operates any programmable logic tailored for decentralized storage solutions and is referred to as a "smart contract" or "chain code". In some cases, there may be a dedicated chain code for managing functions and parameters, which is referred to as a system chain code. The present application may further adopt a smart contract as a trusted distributed application that utilizes the tamper-proof properties of the blockchain database and the underlying protocol between nodes (which is referred to as endorsement or endorsement policy). Blockchain transactions associated with the application can be "endorsed" before being submitted to the blockchain, while unendorsed transactions are ignored. The endorsement policy allows the chain code to specify the endorser of the transaction in the form of a set of peer nodes required by the endorsement. When the client sends the transaction to the peer specified in the endorsement policy, the transaction is executed to verify the transaction. After verification, the transaction enters the sorting phase, in which a consensus protocol is used to generate a sorted sequence of endorsed transactions grouped into blocks.
[0031] The present application may employ nodes as communication entities of a blockchain system. In the sense that multiple nodes of different types can run on the same physical server, a "node" can perform a logical function. Nodes are grouped in trust domains and are associated with logical entities that control them in various ways. Nodes may include different types, such as client or submitting client nodes, which submit transaction calls to endorsers (e.g., peers) and broadcast transaction proposals to a sorting service (e.g., sorting nodes). Another type of node is a peer node, which can receive transactions submitted by clients, submit transactions, and maintain the state and copy of the ledger of blockchain transactions. Although not required, peers may also act as endorsers. An ordering service node or sorter is a node that runs a communication service for all nodes and implements delivery guarantees, such as broadcasts to each peer node in the system when submitting transactions and modifying the world state of the blockchain, which is another name for the initial blockchain transaction that typically includes control and setting information.
[0032] The present application may employ a ledger, which is an ordered, tamper-proof record of all state transitions of a blockchain. State transitions may be caused by chaincode invocations (i.e., transactions) submitted by a participant (e.g., a client node, a sorting node, an endorser node, a peer node, etc.). Each participant (e.g., a peer node) may maintain a copy of the ledger. A transaction may result in a set of asset key-value pairs that are submitted to the ledger as one or more operands, such as create, update, delete, etc. The ledger includes a blockchain (also referred to as a chain) used to store immutable ordered records in blocks. The ledger also includes a state database that maintains the current state of the blockchain.
[0033] The present application may adopt a chain as a transaction log, which is constructed as hash-linked blocks, and each block contains a sequence of N transactions, where N is equal to or greater than 1. The block header includes the hash of the transactions of the block, and the hash of the header of the previous block. In this way, all transactions on the ledger can be serialized and cryptographically linked together. Therefore, it is impossible to tamper with the ledger data without breaking the hash link. The hash of the most recently added blockchain block represents each transaction on the chain before it occurs, so that all peer nodes can be ensured to be in a consistent and trusted state. The chain can be stored on the peer node file system (i.e., local, attached storage, cloud, etc.), thereby effectively supporting the append-only nature of the blockchain workload.
[0034] The current state of the immutable ledger represents the latest values for all keys included in the chain's transaction log. Because the current state represents the latest key values known to the channel, it is sometimes referred to as the world state. Chaincode invocations execute transactions against the current state data of the ledger. To make these chaincode interactions efficient, the latest values of the keys can be stored in a state database. The state database can be simply an indexed view of the chain's transaction log, so it can be regenerated from the chain at any time. The state database can be automatically restored (or generated on demand) at peer startup and before transactions are accepted.
[0035] Example embodiments are directed to a blockchain-based system that can resolve deadlocks when deadlocks occur within an interbank payment network or similar payment system (e.g., a cross-border payment system, etc.). The system implements a distributed protocol for deadlock resolution. In an interbank payment system or similar system with several participants, a deadlock is a situation where all participants do not have sufficient liquidity to settle their payment instructions because several payments are each waiting for settlement of other payments. Deadlock resolution is the process of finding a subset of payment instructions that can be settled simultaneously on a net basis without causing a shortage for any participant.
[0036] The blockchain can be managed by peers in the payment network (e.g., banks, etc.). Therefore, each bank can have its own blockchain access rights, in which global netting and deadlock resolution are performed by smart contracts. When a deadlock occurs, each participating bank can propose a deadlock resolution based on their own local payment set so that their proposal does not result in a negative post-account balance for the bank. The deadlock resolution can be passed to the blockchain and processed via smart contracts. In order to prove a positive post-account balance without revealing the amount of the account balance, each participant can also provide a zero-knowledge proof (ZKP) that proves that the payment balance is greater than zero (true) due to a subset of payments.
[0037] The smart contract can verify the ZKP of each participant, aggregate the local payment subsets, and publish the combined (merged) nettable set, also referred to herein as the global nettable set. If a participant disagrees with the global nettable set (i.e., it creates a negative post-account balance for the participant), the participant notifies the smart contract and repeats the process starting with the modified deadlock release. In response, each participant can remove / modify payments in its local payment subset to resolve the negative post-account balances of other participants. The smart contract can then aggregate the modified local payment subsets and publish the aggregation. This process can be repeated until all participants have approved the global nettable set (this is referred to as the global optimal nettable set).
[0038] Some benefits of the example solution described and depicted herein include immutability and accountability, as the solution fundamentally relies on the fact that commitments (account balances (hidden using homomorphic Pedersen commitments), payment messages, and deadlock resolution proposals are published on the blockchain and are immutable. In addition, smart contracts are used to record / track changes made to the data and verify the integrity of the data. For example, smart contracts can check whether account balances are updated correctly and whether deadlock resolution proposals are correct.
[0039] Another challenge addressed by the example embodiments is a method that hides content (account balances, payment message amounts) via Pedersen commitments, and designs a deadlock resolution protocol to work with the hidden content, and uses zero-knowledge proofs to make it possible to verify proposals using the hidden content. In addition, utilizing the decentralized / distributed nature of blockchain, the system eliminates the need for a single trusted entity to manage the payment system and perform deadlock resolution. In addition, consensus ensures fairness by allowing all parties to endorse the correctness of the global optimal payment set and settlement that can be settled through netting. In addition, the example embodiments cannot be implemented on traditional databases because it requires the consensus mechanism of the blockchain to ensure the fairness of the settlement.
[0040] Figure 1 A blockchain network 100 for deadlock resolution according to an example embodiment is shown. In this example, multiple payment systems 121-125 are connected to each other via a network (e.g., a private network, the Internet, etc.) and implement a blockchain 110 that can be replicated between blockchain peers 121-125. In this example, the payment systems 121-125 also serve as blockchain peers. The payment systems 121-125 can be banks or other financial institutions that send / receive payments to each other.
[0041] When a deadlock occurs between payment systems 121-125, each payment system can propose its own corresponding deadlock release based on its payment queue. Each deadlock release may include a local subset of payments to be executed, and a proof that such payments will not create a local negative balance. For example, each of the payment systems 121-125 can generate a subset of payments from a larger set stored in the participant's queue that can be processed without creating a negative balance for the payment system. The priority of the payments included in the subset can be based on the order in the payment queue, which is based on the order in which the corresponding payment system receives the payments. In addition, the payment systems 121-125 can each provide their own form of proof that their local subset of payments will not create a negative balance for the corresponding payment system.
[0042] In order to hide or conceal sensitive account balance information of payment systems 121-125, each payment system can generate a zero-knowledge range proof that proves that a number (post-account balance) is within a specific range [0, N] without revealing the actual number. In an example embodiment, the account balances of payment systems 121-125 can be hidden in a Pederson commitment, i.e., not in plain text. Assume that payment system 121 generates its local payment subset (the most likely payment) that does not create a negative balance for payment system 121. In order for the network (other payment systems 122-125) to verify that the deadlock proposal of payment system 121 is valid, i.e., the post-account balance will be within the range [0, maximum] (not negative) without revealing how much the corresponding payment system 121 actually has, payment system 121 can provide a zero-knowledge range proof. In an example embodiment, the zero-knowledge range proof will prove that the post-account balance of payment system 121 published on blockchain 110 in the form of a Pederson commitment is not negative. This helps other participants (payment systems 122-125) verify the proposed partial payment subset while keeping the account balance of payment system 121 private. Each of payment systems 121-125 can create the same ZKP.
[0043] The deadlock release may be passed to the blockchain 110 and processed via the smart contract of the blockchain 110. The smart contract may verify the ZKP of the payment system 121-125 and create a global nettable set of payments from the local subset. The smart contract may then publish the global nettable set by storing it in a block of the blockchain 110. In response, each of the payment systems 121-125 may review the published global nettable set and determine whether the global nettable set is acceptable (i.e., the global nettable set does not create a negative balance for the corresponding payment system). If all payment systems 121-125 agree with the global nettable set, endorsement may be performed, and the smart contract of the blockchain 110 may trigger the settlement of the global nettable set. If any of the payment systems 121-125 disagrees with the global nettable set (the global nettable set results in a negative balance), the payment system may reject (or refuse to agree to) the global nettable set and repeat the deadlock resolution process by modifying the local payment subsets. This process may be repeated until the best global nettable set is obtained.
[0044] Figure 2A A blockchain architecture configuration 200 is shown according to an example embodiment. Figure 2A, the blockchain architecture 200 may include certain blockchain elements, for example, a set of blockchain nodes 202. The blockchain nodes 202 may include one or more nodes 204-210 (these four nodes are shown by way of example only). These nodes participate in many activities, such as blockchain transaction addition and verification processing (consensus). One or more of the blockchain nodes 204-210 may endorse transactions based on endorsement policies and may provide ordering services for all blockchain nodes in the architecture 200. The blockchain node may initiate a blockchain authentication and want to write to the blockchain immutable ledger stored in the blockchain layer 216, a copy of which may also be stored on the underlying physical infrastructure 214. The blockchain configuration may include one or more applications 224, which are linked to an application programming interface (API) 222 to access and execute stored program / application code 220 (e.g., chain code, smart contracts, etc.), which may be created according to a custom configuration desired by a participant, and may maintain their own state, control their own assets, and receive external information. This can be deployed as a transaction and installed on all blockchain nodes 204-210 via appending to the distributed ledger.
[0045] The blockchain base or platform 212 may include various layers of blockchain data, services (e.g., cryptographic trust services, virtual execution environments, etc.), and underlying physical computer infrastructure that can be used to receive and store new transactions and provide access to auditors who are looking to access data entries. The blockchain layer 216 may expose an interface that provides access to the virtual execution environment needed to process program code and interface with the physical infrastructure 214. Cryptographic trust services 218 may be used to verify transactions such as asset exchange transactions and keep information private.
[0046] Figure 2AThe blockchain architecture configuration of the can process and execute program / application code 220 via one or more interfaces exposed by the blockchain platform 212 and services provided by the blockchain platform 212. The code 220 can control blockchain assets. For example, the code 220 can store and transmit data and can be executed by nodes 204-210 in the form of smart contracts and associated chain codes with conditions or other code elements that are subject to their execution. As a non-limiting example, smart contracts can be created to perform reminders, updates, and / or other notifications that are subject to changes, updates, etc. The smart contract itself can be used to identify rules associated with the use of the ledger and access requirements and authorizations. For example, the smart contract can extract ZKP data and a local payment subset from the blockchain layer 216 and store the data (e.g., a virtual machine) in the blockchain layer 216. The result 228 may include the verification of the ZKP and the aggregation of the local payment subset to the global nettable set. The physical infrastructure 214 can be used to retrieve any data or information described herein.
[0047] Smart contracts can be created via high-level applications and programming languages and then written to blocks in a blockchain. Smart contracts can include executable code that is registered, stored, and / or replicated using a blockchain (e.g., a distributed network of blockchain peers). A transaction is the execution of smart contract code, which can be executed in response to the satisfaction of a condition associated with the smart contract. The execution of a smart contract can trigger trusted modifications to the state of a digital blockchain ledger. Modifications to the blockchain ledger caused by the execution of a smart contract can be automatically replicated throughout the distributed network of blockchain peers through one or more consensus protocols.
[0048] Smart contracts can write data to the blockchain in the format of key-value pairs. In addition, smart contract code can read values stored in the blockchain and use them in application operations. Smart contract code can write the output of various logical operations to the blockchain. The code can be used to create temporary data structures in virtual machines or other computing platforms. The data written to the blockchain can be public, and / or can be encrypted and kept private. Temporary data used / generated by the smart contract is saved in memory by the supplied execution environment, and then deleted once the data required by the blockchain is identified.
[0049] Chaincode may include a code interpretation of a smart contract, with additional features. As described herein, chaincode may be program code deployed on a computing network where it is executed and validated by chaincode validators together during a consensus process. The chaincode receives the hash and retrieves from the blockchain a hash associated with a data template created by using a previously stored feature extractor. If the hash of the hashed identifier and the hash created from the stored identifier template data match, the chaincode sends the authorization key to the requested service. The chaincode may write blockchain data associated with cryptographic details.
[0050] Figure 2B An example of a blockchain transaction flow 250 between nodes of a blockchain according to an example embodiment is shown. Figure 2B , the transaction flow may include sending a transaction proposal 291 by the application client node 260 to the endorsing peer node 281. The endorsing peer 281 may verify the client signature and execute the chaincode function to initiate the transaction. The output may include the chaincode result, the set of key / value versions read in the chaincode (read set), and the set of key / values written in the chaincode (write set). If approved, the proposal response 292 is sent back to the client 260 along with the endorsement signature. The client 260 assembles the endorsement into a transaction payload 293 and broadcasts the transaction payload 293 to the sorting service node 284. The sorting service node 284 then delivers the sorted transaction as a block to all peers 281-283 on the channel. Each peer 281-283 may validate the transaction before submitting it to the blockchain. For example, a peer may check the endorsement policy to ensure that the correct assignment of the specified peer has signed the result and verified the signature against the transaction payload 293.
[0051] Reference again Figure 2B , the client node 260 initiates a transaction 291 by constructing a request and sending it to the peer node 281 as an endorser. The client 260 may include an application that utilizes a supported software development kit (SDK) that employs an available API to generate a transaction proposal. The proposal is a request to invoke a chaincode function so that data can be read and / or written to the ledger (i.e., write a new key-value pair for an asset). The SDK can act as a "shim" to package the transaction proposal into an appropriate architectural format (e.g., protocol buffers via remote procedure calls (RPCs)) and employ the client's cryptographic credentials to generate a unique signature for the transaction proposal.
[0052] In response, the endorsing peer 281 can verify that (a) the transaction proposal is well-formed, (b) the transaction has not been submitted in the past (replay attack protection), (c) the signature is valid, and (d) the submitter (client 260 in this example) is properly authorized to perform the proposed operation on the channel. The endorsing peer 281 can input the transaction proposal as a parameter to the invoked chaincode function. The chaincode is then executed against the current state database to produce a transaction result, which includes a response value, a read set, and a write set. However, no updates have been made to the ledger at this time. In 292, the set of values is transmitted back to the SDK of the client 260 as a proposal response 292 along with the signature of the endorsing peer 281, which parses the payload to be used for consumption.
[0053] In response, the client 260 application checks / verifies the signature of the endorsing peer and compares the proposal response to determine if the proposal response is the same. If the chaincode only queries the ledger, the application will check the query response and will generally not submit the transaction to the sorting node service 284. If the client application intends to submit the transaction to the sorting node service 284 to update the ledger, the application determines whether the specified endorsement policy has been met before submission (i.e., have all peer nodes required for the transaction endorsed the transaction?). Here, the client may include only one of the multiple parties to the transaction. In this case, each client can have its own endorsing node, and each endorsing node will need to endorse the transaction. This architecture allows the endorsement policy to be implemented by the peers and maintained during the submission verification phase even if the application chooses not to check the response or forward unendorsed transactions.
[0054] After successful checks, in step 293, client 260 assembles the endorsements into a transaction and broadcasts the transaction proposal and response to ordering node 284 within a transaction message. The transaction may contain a read / write set, signatures of endorsing peers, and a channel ID. Ordering node 284 does not need to examine the entire contents of a transaction in order to perform its operations, but rather ordering node 284 can simply receive transactions from all channels in the network, sort them chronologically by channel, and create a transaction block for each channel.
[0055] The transaction block is delivered from the sorting node 284 to all peer nodes 281-283 on the channel. The transactions 294 within the block are validated to ensure that any endorsement policies are met and that the ledger state of the read set variables has not changed since the read set was generated by the transaction execution. The transactions in the block are marked as valid or invalid. In addition, in step 295, each peer node 281-283 appends the block to the channel's chain and, for each valid transaction, submits the write set to the current state database. Events are emitted to notify the client application that the transaction (call) has been immutably appended to the chain, and whether the transaction is valid or invalid.
[0056] Figure 3A An example of a permissioned blockchain network 300 is shown, which features a distributed decentralized peer-to-peer architecture. In this example, a blockchain user 302 can initiate a transaction to a permissioned blockchain 304. In this example, the transaction can be a deployment, call, or query, and can be issued through a client-side application utilizing an SDK, directly through an API, etc. The network can provide access to regulators 306 such as auditors. The blockchain network operator 308 manages member permissions, such as registering regulators 306 as "auditors" and registering blockchain users 302 as "clients". Auditors can be restricted to querying only the ledger, while clients can be authorized to deploy, call, and query certain types of chaincodes.
[0057] Blockchain developers 310 can write chaincodes and client-side applications. Blockchain developers 310 can deploy chaincodes directly to the network through an interface. In order to include credentials from traditional data sources 312 in the chaincode, developers 310 can use out-of-band connections to access the data. In this example, blockchain user 302 connects to the permissioned blockchain 304 through peer node 314. Before conducting any transactions, peer node 314 retrieves the user's registration and transaction certificates from the certificate authority 316 that manages user roles and permissions. In some cases, blockchain users must have these digital certificates in order to conduct transactions on the permissioned blockchain 304. At the same time, users attempting to adopt chaincodes may be required to verify their credentials on traditional data sources 312. In order to confirm the user's authorization, the chaincode can use an out-of-band connection to the data through a traditional processing platform 318.
[0058] Figure 3BAnother example of a permissioned blockchain network 320 is shown, which features a distributed decentralized peer-to-peer architecture. In this example, a blockchain user 322 can submit a transaction to a permissioned blockchain 324. In this example, the transaction can be a deployment, call, or query, and can be issued through a client-side application using an SDK, directly through an API, etc. The network can provide access to regulators 326 such as auditors. The blockchain network operator 328 manages member permissions, such as registering regulators 326 as "auditors" and registering blockchain users 322 as "clients". Auditors can be restricted to querying only the ledger, while clients can be authorized to deploy, call, and query certain types of chaincodes.
[0059] Blockchain developers 330 can write chaincodes and client-side applications. Blockchain developers 330 can deploy chaincodes directly to the network through an interface. In order to include credentials from traditional data sources 332 in the chaincode, developers 330 can use out-of-band connections to access the data. In this example, blockchain users 322 connect to the network through peer nodes 334. Before conducting any transactions, peer nodes 334 retrieve the user's registration and transaction certificates from certificate authorities 336. In some cases, blockchain users must have these digital certificates in order to conduct transactions on permissioned blockchains 324. At the same time, users attempting to utilize chaincodes may be required to verify their credentials on traditional data sources 332. In order to confirm the user's authorization, the chaincode can use an out-of-band connection to the data through a traditional processing platform 338.
[0060] Figure 4A A communication process 400 for deadlock resolution according to an example embodiment is shown, and Figure 4B A deadlock release message 443 / 444 provided from a participant in a payment network is shown according to an example embodiment. Figure 4A In the example of , for simplicity, two payment systems 410 and 420 participate in an interbank payment network and implement a blockchain 430. It should be understood that the payment network and deadlock resolution protocol can be executed by more than two payment systems, but only two are shown here for convenience. During the initial stage, in 441 and 442, the payment systems 410 and 420 store account details on the blockchain 430, respectively. For example, the account details may include the current balance of each payment system (in Pedersen commitments, not in plain text), currency type, owner ID, etc. Each payment system 410 and 420 can update the blockchain 430 with the current account details periodically or on demand.
[0061] When a deadlock occurs, the iterative process including 443-449 can be executed cyclically until both payment systems 410 and 420 agree / agreed on the global optimal nettable set. When both payment systems 410 and 420 in this example can process payments in the global optimal nettable set and still have a positive post-account balance, the global optimal nettable set is achieved. To start the loop, in 443 and 444, payment systems 410 and 420 can submit deadlock release messages to blockchain 430, respectively. Figure 4B An example of deadlock release message 443 / 444 is shown in the example of . Here, deadlock release message 443 / 444 includes local payment set 460. In this example, the local payment set may include local payments at each payment system without considering other payments in the network. For example, payment system 410 may extract pending payment messages from payment queue 411 and determine a subset that creates a positive post-account balance for payment system 410. Similarly, payment system 420 may extract pending payment messages from payment queue 421 and determine a local subset that creates a positive post-account balance for payment system 420. For each payment message included in the local payment set 460, the corresponding payment system may provide various attributes 461, 462, 463, etc., including a sender ID, a receiver ID, and a payment amount (hidden using homomorphic Pedersen commitments).
[0062] The homomorphic Pedersen commitment scheme is a cryptographic primitive that allows one party to commit to a chosen value while hiding the chosen value from other parties, with the ability to later reveal the committed value. Homomorphic means that we can add and multiply commitments as if we performed these mathematical operations on plaintext values and then created a commitment of the result. In an example embodiment, a payment system can use Pedersen commitments to hide account balances and payment amounts. Because Pedersen commitments are additively homomorphic, this makes it easy to use commitments to update account balances using payment messages without knowing the committed value (plaintext value).
[0063] In addition, the deadlock release message 443 / 444 may include a zero-knowledge range proof 470 provided by the corresponding payment system. The zero-knowledge range proof 470 is a proof that proves that a number is within a certain range [0, N] without revealing the number. In an example embodiment, the balance of the participant is hidden in a Pederson commitment, that is, not in plain text. Therefore, in order to verify by the network (peer) that the participant's deadlock proposal is valid, that is, the participant's account balance will be within the range of [0, maximum] (not negative) without revealing how much he actually has, he will need to provide this type of zero-knowledge range proof. Therefore, the zero-knowledge range proof 470 will prove that the participant's account balance published on the blockchain in the form of a Pederson commitment is not negative. This helps other participants verify his proposal while keeping his account balance confidential. The zero-knowledge range proof 470 also provides the following proof: the next highest priority payment in the queue of the corresponding payment system will create a negative balance. Therefore, this ensures that each payment system submits the maximum number of payment messages that can be processed without creating a negative account balance.
[0064] In 445, the smart contract of blockchain 430 may verify the ZKP of each of payment systems 410 and 420, respectively, which are included in deadlock resolution messages 443 and 444, respectively. Once verified, the smart contract may generate a global nettable set in 446, which includes the combined payment set provided in deadlock resolution messages 443 and 444 (i.e., the merge of the local payment subsets from payment systems 410 and 420). In addition, in 446, the smart contract may publish the global nettable set for review by payment systems 410 and 420. If both payment systems 410 and 420 agree on the global nettable set (i.e., there is a positive post-account balance), payment systems 410 and 420 provide consent in 447 and 448. However, if there is a negative balance for at least one of payment systems 410 and 420, the messages in 447 and 448 will not be a complete consensus because at least one participant will disagree. Thus, the loop may be repeated starting from steps 443 and 444, where modifications to the partial payment subset are provided to the new deadlock release to resolve any negative post-account balances.
[0065] Deadlock resolution is achieved through two key technologies: publicly verifiable proposals from each participant and a smart contract that aggregates all proposals. Through the recursive interaction of the two, the example embodiment achieves the global optimal nettable set. In particular, in each iteration, each participant will submit its own nettable set solution to the blockchain without considering the feasibility of other participants. These proposals are publicly verified to ensure that each participant includes the maximum number (or maximum amount) of payments in its proposal. Then, the smart contract will aggregate all these proposals and publish the current nettable set. Each participant will check against the current nettable set and submit a new proposal if the set is not feasible for it. Otherwise, they will agree to the current nettable set. This process continues until all participants agree to the same nettable set and thus achieve the final global optimal nettable set.
[0066] The deadlock resolution protocol seeks the best nettable set, which is defined as nettable, which is a subset of all that can be settled simultaneously on a net basis without causing a shortage for each participant. Nettable can be initialized at the beginning of an iteration to be equal to the set of all payment messages. In each iteration, each participant will calculate its post-account balance by adding all its incoming payment messages to its current balance, excluding any messages that were not in the nettable of the previous iteration. Then, each participant will calculate a proposal set, which is a maximal subset of his own outgoing payment message queue (selected according to priority) with the constraint that the post-account balance is non-negative. Each participant will also provide a zero-knowledge range proof to prove that the "post-account balance" is non-negative using the proposal set. Each participant will also provide another zero-knowledge range proof to prove that if one more (next highest priority) message is added to the proposal set, the post-account balance is negative. Each participant submits a proposal to the blockchain. The smart contract will verify the proposal by checking the zero-knowledge proof and add the proposal to the ledger. At the end of each iteration, the smart contract will calculate a new nettable set by combining all proposal sets from each participant (computing their merge). This process is repeated until convergence, i.e., the nettable set no longer changes.
[0067] Figure 5 A method 500 for resolving a deadlock in a payment network is shown according to an example embodiment. Figure 5 In 510, the method may include receiving deadlock release messages from participants of the deadlocked payment network. For example, each deadlock release message may include a partial payment subset to be executed by the corresponding participant and a zero-knowledge proof indicating that the partial payment subset creates a positive post-account balance for the corresponding participant without revealing the positive post-account balance. The partial payment subset may be generated by each participant without regard to other participants in the payment network.
[0068] In 520, the method may include determining whether the zero-knowledge proof included in the deadlock release message is valid. For example, the zero-knowledge proof may be a proof that the "post-account balance" is greater than zero after the settlement of the local payment subset. The smart contract may use a verification program to verify whether this is correct. In 530, the method may include aggregating the local payment subsets to be executed from the deadlock release message to create a global nettable set of payments. For example, the smart contract may create a merge of all local subsets to create a global payment subset to be executed. In 540, the method may include publishing a global nettable set via a data block in a hash link chain of data blocks of a distributed ledger accessible to participants. For example, the smart contract may store the global nettable set via a blockchain.
[0069] In some embodiments, in response to receiving a consensus that the participants accept the global nettable set, the method may further include triggering settlement of the global nettable set of payments. In some embodiments, the method may further include storing identifications of payments included in the global nettable set via a data block in a hash-linked chain of data blocks. According to various embodiments, Pedersen commitments may be used to hide payment amounts included in the local payment subset to be settled.
[0070] In some embodiments, the zero-knowledge proof also indicates that the highest priority payment not included in the local payment subset creates a negative post-account balance for the corresponding participant without revealing the negative post-account balance. In some embodiments, the method may also include performing the next iteration of receiving, determining, aggregating, and publishing in response to the lack of global consent from the participants to the global nettable set. These steps can be performed continuously in a loop until the global nettable set (consensus of all participants) is achieved. In this example, the execution of the next iteration may include receiving a new deadlock release message from a participant of the payment network, the new deadlock release message including a modified local payment subset based on the published global nettable set. In addition, the execution of the next iteration may include aggregating the modified local payment subset and publishing the aggregation via another data block in the hash link chain of data blocks.
[0071] Fig. 6A An example system 600 is shown including a physical infrastructure 610 configured to perform various operations according to an example embodiment. Fig. 6A, the physical infrastructure 610 includes a module 612 and a module 614. The module 614 includes a blockchain 620 and a smart contract 630 (which may reside on the blockchain 620), which may perform any operation step 608 (in the module 612) included in any example embodiment. The step / operation 608 may include one or more embodiments described or depicted, and may represent output or written information written to or read from one or more smart contracts 630 and / or blockchain 620. The physical infrastructure 610, the module 612, and the module 614 may include one or more computers, servers, processors, memories, and / or wireless communication devices. In addition, the module 612 and the module 614 may be the same module.
[0072] Figure 6B Another example system 640 is shown that is configured to perform various operations according to an example embodiment. Figure 6B , system 640 includes module 612 and module 614. Module 614 includes blockchain 620 and smart contract 630 (which may reside on blockchain 620), which may perform any operation step 608 (in module 612) included in any example embodiment. Step / operation 608 may include one or more embodiments described or depicted, and may represent output or written information written to or read from one or more smart contracts 630 and / or blockchain 620. Physical infrastructure 610, module 612, and module 614 may include one or more computers, servers, processors, memories, and / or wireless communication devices. In addition, module 612 and module 614 may be the same module.
[0073] Figure 6C An example system configured to employ a smart contract configuration between contracting parties and an intermediary server configured to implement smart contract terms on a blockchain is shown according to an example embodiment. Figure 6C , configuration 650 may represent a communication session, an asset transfer session, or a process or procedure driven by a smart contract 630 that explicitly identifies one or more user devices 652 and / or 656. Server 654 may manage the execution, operation, and results of smart contract execution. The content of smart contract 630 may require digital signatures by one or more of entities 652 and 656 that are parties to the smart contract transaction. The results of the smart contract execution may be written to blockchain 620 as blockchain transactions. Smart contract 630 resides on blockchain 620, which may reside on one or more computers, servers, processors, memories, and / or wireless communication devices.
[0074] Fig.6D A system 660 including a blockchain is shown according to an example embodiment. Fig.6DIn the example of , an application programming interface (API) gateway 662 provides a public interface for accessing blockchain logic (e.g., smart contracts 630 or other chaincodes) and data (e.g., distributed ledgers, etc.). In this example, the API gateway 662 is a public interface for executing transactions (calls, queries, etc.) on the blockchain by connecting one or more entities 652 and 656 to blockchain peers (i.e., servers 654). Here, the server 654 is a blockchain network peer component that maintains a copy of the world state and a distributed ledger, allowing clients 652 and 656 to query data about the world state and submit transactions to the blockchain network, where, depending on the smart contract 630 and the endorsement policy, the endorsing peer will run the smart contract 630.
[0075] The above embodiments may be implemented in hardware, a computer program executed by a processor, firmware, or a combination thereof. The computer program may be embodied on a computer-readable medium such as a storage medium. For example, the computer program may reside in a random access memory ("RAM"), a flash memory device, a read-only memory ("ROM"), an erasable programmable read-only memory ("EPROM"), an electrically erasable programmable read-only memory ("EEPROM"), a register, a hard disk, a removable disk, a compact disk read-only memory ("CD-ROM"), or any other form of storage medium known in the art.
[0076] An exemplary storage medium may be coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Alternatively, the storage medium may be integrated into the processor. The processor and the storage medium may reside in an application specific integrated circuit ("ASIC"). Alternatively, the processor and the storage medium may reside as discrete components.
[0077] Fig. 7A A process 700 for adding a new block to a distributed ledger 720 is shown according to an example embodiment, and Figure 7B The content of a new data block structure 730 for a blockchain is shown according to an example embodiment. Fig. 7A, a client (not shown) may submit a transaction to a blockchain node 711, 712, and / or 713. The client may execute instructions received from any source to enact activities on the blockchain 720. As an example, the client may be an application that proposes a transaction for a blockchain on behalf of a requester (such as a device, an individual, or an entity). Multiple blockchain peers (e.g., blockchain nodes 711, 712, and 713) may maintain the state of the blockchain network and a copy of the distributed ledger 720. Different types of blockchain nodes / peers may exist in the blockchain network, including endorsement peers, which simulate and endorse transactions proposed by the client, and submission peers, which verify endorsements, validate transactions, and submit transactions to the distributed ledger 720. In this example, blockchain nodes 711, 712, and 713 may act as endorser nodes, submitter nodes, or both.
[0078] The distributed ledger 720 includes a blockchain that stores immutable ordered records in blocks, and a state database 724 (current world state) that maintains the current state of the blockchain 722. There can be one distributed ledger 720 per channel, and each peer maintains its own copy of the distributed ledger 720 for each channel of which they are a member. The blockchain 722 is a transaction log that is structured as hash-linked blocks, where each block contains a sequence of N transactions. Blocks may include transactions such as Figure 7B The various components shown in the figure. Block links (by Fig. 7A ) can be generated by adding the hash of the previous block header within the block header of the current block. In this way, all transactions on the blockchain 722 are serialized and cryptographically linked together, preventing tampering of the blockchain data without breaking the hash link. In addition, due to the link, the latest block in the blockchain 722 represents every transaction that occurred before it. The blockchain 722 can be stored on a peer-to-peer file system (local or attached storage) that supports append-only blockchain workloads.
[0079] The current state of the blockchain 722 and distributed ledger 720 may be stored in a state database 724. Here, the current state data represents the latest values of all keys ever included in the chain transaction log of the blockchain 722. Chaincode invocations execute transactions against the current state in the state database 724. In order to make these chaincode interactions very efficient, the latest values of all keys are stored in the state database 724. The state database 724 may include an indexed view of the transaction log of the blockchain 722, so it can be regenerated from the chain at any time. The state database 724 may be automatically restored (or generated if necessary) at the initiation of a peer before a transaction is accepted.
[0080] The endorsing node receives the transaction from the client and endorses the transaction based on the simulation results. The endorsing node maintains a smart contract that simulates the transaction proposal. When the endorsing node endorses the transaction, the endorsing node creates a transaction endorsement, which is a signed response from the endorsing node to the client application, indicating the endorsement of the simulated transaction. The method of endorsing the transaction depends on the endorsement policy that can be specified within the chaincode. An example of an endorsement policy is "a majority of endorsing peers must endorse the transaction". Different channels can have different endorsement policies. The client application forwards the endorsed transaction to the sorting service 710.
[0081] The ordering service 710 accepts endorsed transactions, orders them into blocks, and delivers these blocks to submission peers. For example, when a threshold of transactions has been reached, a timer has expired, or other conditions, the ordering service 710 can start a new block. Fig. 7A In the example of , blockchain node 712 is a submitting peer that has received a new data block 730 to store on blockchain 720. The first block in a blockchain may be referred to as a genesis block, which includes information about the blockchain, its members, the data stored therein, and the like.
[0082] The sorting service 710 may consist of a cluster of sorters. The sorting service 710 does not process transactions, smart contracts, or maintain a shared ledger. Instead, the sorting service 710 may accept endorsed transactions and specify the order in which these transactions are delivered to the distributed ledger 720. The architecture of the blockchain network may be designed to make a specific implementation of "sorting" (e.g., Solo, Kafka, BFT, etc.) a pluggable component.
[0083] Transactions are written to the distributed ledger 720 in a consistent order. The order of transactions is established to ensure that updates to the state database 724 are valid when they are submitted to the network. Unlike cryptocurrency blockchain systems (e.g., Bitcoin, etc.) where ordering is performed by solving cryptographic puzzles or mining, in this example, the parties to the distributed ledger 720 can choose the ordering mechanism that best suits the network.
[0084] When the ordering service 710 initializes a new data block 730, the new data block 730 may be broadcast to submission peers (e.g., blockchain nodes 711, 712, and 713). In response, each submission peer verifies the transaction within the new data block 730 by checking to ensure that the read set and write set still match the current world state in the state database 724. Specifically, the submission peer may determine whether the read data that existed when the endorser simulated the transaction is the same as the current world state in the state database 724. When the submission peer verifies the transaction, the transaction is written to the blockchain 722 on the distributed ledger 720, and the state database 724 is updated with the write data from the read write set. If the transaction fails, that is, if the submission peer finds that the read write set does not match the current world state in the state database 724, then the transaction that was ordered into the block will still be included in the block, but it will be marked as invalid, and the state database 724 will not be updated.
[0085] refer to Figure 7B , a new data block 730 (also referred to as a data block) stored on the blockchain 722 of the distributed ledger 720 may include multiple data segments, such as a block header 740, block data 750, and block metadata 760. It should be understood that Figure 7B The various depicted blocks and their contents (e.g., new data block 730 and its contents) shown in the block data 750 are merely examples and are not meant to limit the scope of the example embodiments. New data block 730 may store transaction information for N transactions (e.g., 1, 10, 100, 500, 1000, 2000, 3000, etc.) within block data 750. New data block 730 may also include a link to the previous block within block header 740 (e.g., Fig. 7A In particular, the block header 740 may include a hash of the previous block header. The block header 740 may also include a unique block number, a hash of the block data 750 of the new data block 730, etc. The block number of the new data block 730 may be unique and may be assigned in various orders, such as an incremental / sequential order starting from zero.
[0086] The block data 750 may store transaction information for each transaction recorded within the new data block 730. For example, the transaction data may include one or more of the following: transaction type, version, timestamp, channel ID of the distributed ledger 720, transaction ID, epoch, payload visibility, chaincode path (deployment transaction), chaincode name, chaincode version, input (chaincode and function), client (creator) identity (e.g., public key and certificate), client's signature, endorser's identity, endorser signature, proposal hash, chaincode event, response status, namespace, read set (a list of keys and versions read by the transaction, etc.), write set (a list of keys and values, etc.), start key, end key, key list, Merkel tree query digest, etc. The transaction data may be stored for each of the N transactions.
[0087] The block metadata 760 may store a plurality of metadata fields (e.g., as a byte array, etc.). The metadata fields may include a signature on the creation of the block, a reference to the last configured block, a transaction filter identifying valid and invalid transactions within the block, the last offset duration of the sorting service that sorts the block, etc. The signature, the last configured block, and the sorter metadata may be added by the sorting service 710. Meanwhile, the submitter of the block (e.g., the blockchain node 712) may add validity / invalidity information based on an endorsement policy, verification of a read / write set, etc. The transaction filter may include a byte array of size equal to the number of transactions in the block data 750 and a verification code identifying whether the transaction is valid / invalid.
[0088] Figure 7C An embodiment of a blockchain 770 for digital content is shown in accordance with embodiments described herein. Digital content may include one or more files and associated information. Files may include media, images, video, audio, text, links, graphics, animations, web pages, documents, or other forms of digital content. The immutable append-only aspect of the blockchain acts as a safeguard to protect the integrity, validity, and authenticity of the digital content, making it suitable for use in legal proceedings where admissibility rules apply, or other occasions where evidence is considered or the display and use of digital information is of interest. In this context, the digital content may be referred to as digital evidence.
[0089] The blockchain can be formed in a variety of ways. In one embodiment, the digital content can be included in and accessed from the blockchain itself. For example, each block of the blockchain can store a hash value of reference information (e.g., header, value, etc.) together with the associated digital content. The hash value and the associated digital content can then be encrypted together. Thus, the digital content of each block can be accessed by decrypting each block in the blockchain, and the hash value of each block can be used as a basis for referencing the previous block. This can be illustrated as follows:
[0090] Block 1 Block 2 ....... Block N
[0091] Hash value 1 Hash value 2 Hash value N
[0092] Digital content 1 Digital content 2 Digital content N
[0093] In one embodiment, the digital content may not be included in the blockchain. For example, the blockchain may store a cryptographic hash of the contents of each block without any digital content. The digital content may be stored in other storage areas or memory addresses in association with the hash value of the original file. The other storage area may be the same storage device used to store the blockchain, or it may be a different storage area, or it may even be a separate relational database. The digital content of each block may be referenced or accessed by obtaining or querying the hash value of the block of interest, and then looking up the value stored in the storage area corresponding to the actual digital content. For example, this operation may be performed by a database gatekeeper.
[0094] This can be illustrated as follows:
[0095]
[0096] exist Figure 7C In the example embodiment of FIG. 7 , blockchain 770 includes a plurality of blocks 778 cryptographically linked in an ordered sequence. 1 ,778 2 ,…778 N , where N ≥ 1. Used to link block 778 1 ,778 2 ,…778 N The encryption of can be any of a number of keyed or non-keyed hash functions. In one embodiment, block 778 1 ,778 2 ,…778 N Subjected to a hash function that produces an n-bit alphanumeric output (where n is 256 or another number) from an input based on the information in the block. Examples of such hash functions include, but are not limited to, SHA-type (SHA stands for Secure Hash Algorithm) algorithms, Merkle-Damgard algorithms, HAIFA algorithms, Merkle tree algorithms, random number-based algorithms, and non-collision-resistant PRF algorithms. In another embodiment, the blocks 778 may be cryptographically linked by a function other than a hash function. 1 ,778 2 ,…778N For purposes of illustration, the following description is made with reference to a hash function such as SHA-2.
[0097] Each block in the blockchain 778 1 ,778 2 ,…778 N Includes a header, a file version, and a value. Due to the hashing operation in the blockchain, the header and value are different for each block. In one embodiment, the value may be included in the header. As described in more detail below, the file version may be the original file or a different version of the original file.
[0098] The first block in the blockchain is 778 1 It is called the genesis block and includes header 772 1 , original file 774 1 and the initial value 776 1 The hashing scheme used in the genesis block and indeed in all subsequent blocks can be different. For example, the first block 778 1 All the information in the first block 778 can be hashed together at once; or the first block 778 can be hashed separately 1 Each piece of information or part of the information in the data can be hashed, and then the separately hashed parts can be hashed again.
[0099] Head 772 1 One or more initial parameters may be included, for example, the one or more initial parameters may include a version number, a timestamp, a random number, root information, a difficulty level, a consensus protocol, a duration, a media format, a source, descriptive keywords, and / or a unique identifier associated with the original file 774. 1 and / or other information associated with the blockchain. Header 772 1 It can be generated automatically (e.g., by blockchain network management software) or manually by a blockchain participant. 2 To 778 N The header in the genesis block is different from the header 772 1 There is no reference to the previous block, simply because there is no previous block.
[0100] Original file 774 in the genesis block 1 This may be, for example, data captured by a device that may or may not be processed before being included in the blockchain. The original file is received from a device, media source, or node through an interface of the system 774 1 . Original file 774 1 Associated with metadata, which may be generated manually or automatically by a user, device, and / or system processor, for example. The metadata may be associated with the original file 774 1 Associated with the first block 7781 middle.
[0101] The value in the genesis block is 776 1 Based on original file 774 1 In one embodiment, the one or more unique attributes may include the original file 774 1 Hash value, original file 774 1 metadata and other information associated with the file. In one implementation, the initial value 776 1 Can be based on the following unique attributes:
[0102] 1) The hash value of the original file calculated by SHA-2
[0103] 2) Originating device ID
[0104] 3) The start timestamp of the original file
[0105] 4) The original storage location of the original file
[0106] 5) The blockchain network member ID of the software that currently controls the original file and associated metadata
[0107] Other blocks in the blockchain 778 2 To 778 N It also has a header, a file, and a value. However, unlike the first block 772 1 Different, the header 772 in other blocks 2 To 772 N Each of the remaining blocks includes the hash value of the immediately preceding block. The hash value of the immediately preceding block may be just the hash of the header of the previous block, or may be the hash value of the entire previous block. By including the hash value of the previous block in each remaining block, tracking can be performed block by block from the Nth block back to the genesis block (and associated original file), as shown by arrow 780, to establish an auditable and immutable chain of custody.
[0108] Header 772 in other blocks 2 To 772 N Each of the may also include other information, such as a version number, a timestamp, a random number, root information, a difficulty level, a consensus protocol, and / or other parameters or information associated with the corresponding file and / or the blockchain in general.
[0109] For example, depending on the type of processing being performed, files 774 in other blocks 2 To 774 NThe file may be equal to the original file, or may be a modified version of the original file in the genesis block. The type of processing performed may vary from block to block. Processing may include, for example, any modification to the file in a previous block, such as editing information or otherwise changing the contents of the file, taking information away from the file, or adding or appending information to the file.
[0110] Additionally or alternatively, processing may include merely copying a file from a previous block, changing a storage location of a file, analyzing a file from one or more previous blocks, moving a file from one storage or memory location to another storage or memory location, or performing an action relative to the file of the blockchain and / or its associated metadata. Processing involving analyzing a file may include, for example, appending, including, or otherwise associating various analytical, statistical, or other information associated with the file.
[0111] Every other block in other blocks 776 2 To 776 N The values in a block are unique values and are all different due to the processing performed. For example, the value in any one block corresponds to an updated version of the value in the previous block. The update is reflected in the hash of the block to which the value was assigned. The value of the block thus provides an indication of what processing was performed in the block and also allows for tracing back to the original file through the blockchain. This tracing confirms the chain of custody of the file throughout the blockchain.
[0112] For example, consider a situation where portions of a file are redacted, masked, or pixelated in order to protect the identity of a person who was present in the file in a previous block. In this case, the block that includes the redacted file will include metadata associated with the redacted file, such as how the redaction was performed, who performed the redaction, a timestamp of when the redaction was performed, etc. The metadata may be hashed to form a value. Since the metadata for the block is different from the information that was hashed to form the value in the previous block, the values are different from each other and can be recovered upon decryption.
[0113] In one embodiment, when any one or more of the following occurs, the value of the previous block can be updated (e.g., a new hash value is calculated) to form the value of the current block. In this example embodiment, a new hash value can be calculated by hashing all or part of the information described below.
[0114] a) If the file was manipulated in any way (for example, if it was edited, copied, changed, accessed, or some other action taken), then the new SHA-2-computed hash value
[0115] b) New storage location for the file
[0116] c) New metadata identified in association with the file
[0117] d) Access to or control of a file is transferred from one blockchain participant to another
[0118] Fig.7D An embodiment of a block that can represent the structure of a block in blockchain 790 according to one embodiment is shown. i Including header 772 i 、File 774 i The sum is 776 i .
[0119] Head 772 i Including the previous block i-1 The hash value of the previous block and the additional reference information, which can be any type of information discussed in this article (e.g., header information including references, characteristics, parameters, etc.). Of course, except for the genesis block, all blocks reference the hash of the previous block. The hash value of the previous block can be just the hash of the header in the previous block, or the hash of all or part of the information in the previous block (including files and metadata).
[0120] File 774 i The data file includes a plurality of data, such as data 1, data 2, ..., data N. The data are marked with metadata "metadata 1", "metadata 2", ..., "metadata N", which describe the content and / or characteristics associated with the data. For example, the metadata of each data may include: information indicating the timestamp of the data, processing data, keywords indicating the person or other content described in the data, and / or other characteristics that may help establish the validity and content of the overall file, especially its use of digital evidence, for example, as described in conjunction with the embodiments discussed below. In addition to the metadata, each data may also use a reference REF to the previous data. 1 ,REF 2 ,…,REF N to mark to prevent tampering, gaps in the file, and sequential referencing through the file.
[0121] Once metadata is assigned to data (e.g., by a smart contract), it cannot be changed without changing the hash, which can be easily identified for invalidation. Thus, metadata creates a data log of information that can be accessed by participants in the blockchain for use.
[0122] Value 776 i is a hash value or other value calculated based on any of the types of information discussed previously. For example, for any given block i, the value of the block can be updated to reflect the processing performed on the block, such as a new hash value, a new storage location, new metadata for an associated file, a transfer of control or access, an identifier, or other actions or information to be added. Although the value in each block is shown as being separate from the metadata of the header and the file's data, in another embodiment, the value can be based in part or in whole on the metadata.
[0123] Once the blockchain 770 is formed, at any point in time, the immutable chain of custody of the file can be obtained by querying the blockchain for the transaction history of values across blocks. The query or tracking process can begin by decrypting the value of the current most recently included block (e.g., the last (Nth) block), and then continue to decrypt the values of other blocks until the genesis block is reached and the original file is restored. Decryption can also include decrypting the header and file at each block and associated metadata.
[0124] Decryption is performed based on the type of encryption performed in each block. This may involve the use of a private key, a public key, or a public-private key pair. For example, when asymmetric encryption is used, a blockchain participant or processor in the network can use a predetermined algorithm to generate a public and private key pair. The public and private keys are related to each other through some mathematical relationship. The public key can be distributed publicly to be used as an address to receive messages from other users, such as an IP address or a home address. The private key is kept secret and is used to digitally sign messages sent to other blockchain participants. The signature is included in the message so that the recipient can verify it using the sender's public key. In this way, the recipient can be sure that only the sender can send the message.
[0125] Generating a key pair can be similar to creating an account on the blockchain, but without having to actually register anywhere. In addition, the sender digitally signs each transaction performed on the blockchain using their private key. This signature ensures that only the account owner can track and process (if within the scope of permissions determined by the smart contract) the files on the blockchain.
[0126] Figure 8An example system 800 is shown that supports one or more example embodiments described and / or depicted herein. The system 800 includes a computer system / server 802 that can operate with many other general or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and / or configurations that may be suitable for use with the computer system / server 802 include, but are not limited to, personal computer systems, server computer systems, thin clients, fat clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems or devices, and the like.
[0127] Computer system / server 802 may be described in the general context of computer system executable instructions (e.g., program modules) executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. Computer system / server 802 may be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
[0128] like Figure 8 As shown in FIG. 8 , a computer system / server 802 in a cloud computing node 800 is shown in the form of a general-purpose computing device. Components of the computer system / server 802 may include, but are not limited to, one or more processors or processing units 804, a system memory 806, and a bus that couples various system components including the system memory 806 to the processor 804.
[0129] The term "bus" refers to one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0130] Computer system / server 802 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer system / server 802, including volatile and nonvolatile media, removable and non-removable media.
[0131] In one embodiment, system memory 806 implements the flowcharts of the other figures. System memory 806 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 810 and / or cache memory 812. Computer system / server 802 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 814 may be used to read and write non-removable, non-volatile magnetic media (not shown, typically referred to as a "hard drive"). Although Figure 1 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to the bus via one or more data medium interfaces. The memory 806 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.
[0132] A program / utility 816 having a set (at least one) of program modules 818 may be stored, for example, in the memory 806, such program modules 818 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 818 generally perform the functions and / or methods of the embodiments described herein.
[0133] As will be appreciated by those skilled in the art, aspects of the present application may be embodied as a system, method, or computer program product. Therefore, aspects of the present application may take the following forms: a complete hardware embodiment, a complete software embodiment (including firmware, resident software, microcode, etc.), or an embodiment combining software and hardware aspects, which may generally be referred to herein as a "circuit," "module," or "system." In addition, aspects of the present application may take the form of a computer program product embodied in one or more computer-readable media, on which a computer-readable program code is embodied.
[0134] The computer system / server 802 may also communicate with one or more external devices 820 (e.g., keyboards, pointing devices, displays 822, etc.), may communicate with one or more devices that enable a user to interact with the computer system / server 802, and / or may communicate with any device that enables the computer system / server 802 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 824. In addition, the computer system / server 802 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 826. As shown, the network adapter 826 communicates with other modules of the computer system / server 802 via a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer system / server 802, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0135] Although illustrated in the drawings and described in the foregoing detailed description, at least one exemplary embodiment of the system, method and non-transient computer-readable medium, it will be understood that the present application is not limited to the disclosed embodiments, but can be many rearrangements, modifications and replacements as set forth and defined by the following claims. For example, the capabilities of the systems of the various drawings can be performed by one or more of the modules or components described herein or in a distributed architecture, and can include a transmitter, a receiver or a pair of both. For example, all or part of the functions performed by each module can be performed by one or more modules in these modules. In addition, the functions described herein can be performed inside or outside a module or component, at various times and in relation to various events. In addition, the information sent between the modules can be sent between the modules via at least one of the following: a data network, the Internet, a voice network, an Internet protocol network, a wireless device, a wired device, and / or via multiple protocols. In addition, messages sent or received by any module can be sent or received directly and / or via one or more other modules.
[0136] Those skilled in the art will appreciate that a "system" may be embodied as a personal computer, server, console, personal digital assistant (PDA), cellular telephone, tablet computing device, smart phone, or any other suitable computing device, or combination of devices. Presenting the above functions as being performed by a "system" is not intended to limit the scope of the present application in any way, but is intended to provide an example of many embodiments. In fact, the methods, systems, and apparatus disclosed herein may be implemented in localized and distributed forms consistent with computing technology.
[0137] It should be noted that some of the system features described in this specification have been presented as modules in order to more specifically emphasize their implementation independence. For example, a module can be implemented as a hardware circuit, including a customized very large scale integration (VLSI) circuit or gate array, a finished semiconductor such as a logic chip, a transistor or other discrete component. A module can also be implemented in a programmable hardware device such as a field programmable gate array, a programmable array logic, a programmable logic device, a graphics processing unit, etc.
[0138] Modules may also be implemented at least in part with software for being executed by various types of processors. For example, the executable code unit identified may include one or more physical or logical blocks of computer instructions, which may be, for example, organized as objects, processes, or functions. However, the executable file of the module identified need not be physically located together, but may include different instructions stored in different locations, which, when logically combined together, include the module and realize the specified purpose of the module. In addition, modules may be stored on a computer-readable medium, which may be, for example, a hard drive, a flash memory device, a random access memory (RAM), a magnetic tape, or any other such medium for storing data.
[0139] In practice, a module of executable code may be a single instruction or multiple instructions, and may even be distributed over several different code segments, between different programs, and over several memory devices. Similarly, operational data may be identified and shown herein within a module, and may be embodied in any suitable form and may be organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations including different storage devices, and may exist, at least in part, only as electronic signals on a system or network.
[0140] It will be readily understood that the components of the present application, as generally described and illustrated in the drawings herein, may be arranged and designed in a variety of different configurations. Therefore, the detailed description of the embodiments is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application.
[0141] Those skilled in the art will readily appreciate that the above content may be practiced with steps in a different order and / or with hardware elements in a configuration different from that disclosed. Therefore, although the present application has been described based on these preferred embodiments, it will be apparent to those skilled in the art that certain modifications, variations, and alternative configurations will be apparent.
[0142] Although preferred embodiments of the present application have been described, it should be understood that the described embodiments are merely exemplary and that the scope of the present application is limited solely by the appended claims when considering the full range of equivalents and modifications (e.g., protocols, hardware devices, software platforms, etc.).
Claims
1. A privacy-preserving deadlock-resolving computing system, comprising: a network interface configured to receive deadlock-resolve messages from respective plurality of blockchain peers of participants of the deadlocked payment network, wherein each deadlock-resolve message includes a partial payment subset to be executed by the respective participant and a zero-knowledge proof indicating that the partial payment subset creates a positive post-ledger balance for the respective participant and providing a proof indicating that the next highest priority payment in the queue of the respective blockchain peer will create a negative balance; as well as a processor configured to determine whether the zero-knowledge proof included in the deadlock resolution message is valid based on a smart contract executing a verification procedure, aggregate a subset of local payments to be executed from the deadlock resolution message through a smart contract to create a global nettable set of payments, and publish the global nettable set via a distributed ledger accessible to a plurality of blockchain peers; wherein the processor is further configured to determine whether the plurality of blockchain peers have reached consensus on the global nettable set based on whether any one of the plurality of blockchain peers submits a new deadlock resolution message having a modified local payment subset in a field, and In response to determining that consensus has been reached, the participants are triggered through smart contracts to unblock the deadlocked payment network and execute a globally nettable set of payments.
2. The computing system of claim 1, wherein: In response to receiving a consensus of the participants accepting the global nettable set, the processor is configured to trigger settlement of the global nettable set of payments.
3. The computing system of claim 1, wherein: The processor is also configured to store identifications of payments included in the global nettable set via a data block in a hash-linked chain of data blocks.
4. The computing system of claim 1, wherein: Peterson commitments are used to hide the payment amounts included in the local payment subset.
5. The computing system of claim 1, wherein: The processor is further configured to perform a next iteration of deadlock resolution in response to lack of global agreement from the participants on the global nettable set.
6. The computing system of claim 5, wherein: For a next iteration, the processor is configured to receive a new deadlock resolution message from a participant of the payment network, the new deadlock resolution message comprising a modified local payment subset based on the published global nettable set.
7. The computing system of claim 6, wherein: For a next iteration, the processor is configured to aggregate the modified partial payment subsets and publish the aggregation of the modified partial payment subsets via another data block in the hash-linked chain of data blocks.
8. A privacy protection deadlock release method, comprising: receiving deadlock-resolve messages from respective plurality of blockchain peers of participants of the deadlocked payment network, each deadlock-resolve message including a partial payment subset to be executed by the respective participant and a zero-knowledge proof indicating that the partial payment subset creates a positive post-ledger balance for the respective participant and providing proof indicating that the next highest priority payment in the queue of the respective blockchain peer will create a negative balance; Determining whether the zero-knowledge proof included in the deadlock release message is valid based on a smart contract that executes a verification program; aggregating, by a smart contract, a subset of local payments to be executed from the deadlock resolution message to create a globally nettable set of payments; as well as Publishing a globally nettable set via a distributed ledger accessible to multiple blockchain peers; determining whether the plurality of blockchain peers have reached consensus on the global nettable set based on whether any of the plurality of blockchain peers submits a new deadlock resolution message with a modified local payment subset in a field, and In response to determining that consensus has been reached, the participants are triggered through smart contracts to unblock the deadlocked payment network and execute a globally nettable set of payments.
9. The method according to claim 8, wherein: In response to receiving a consensus that the participants accept the global nettable set, settlement of the global nettable set of payments is triggered.
10. The method according to claim 8, further comprising: The identification of payments included in the global nettable set is stored in data blocks in a chain linked via a hash of the data blocks.
11. The method according to claim 8, wherein: Peterson commitments are used to hide the payment amounts included in the local payment subset.
12. The method of claim 8, further comprising performing a next iteration of receiving, determining, aggregating, and publishing in response to lack of global agreement from participants on the global nettable set.
13. The method according to claim 12, wherein: Execution of the next iteration includes receiving a new deadlock resolution message from a participant of the payment network, the new deadlock resolution message including a modified local payment subset based on the published global nettable set.
14. The method according to claim 13, wherein: Execution of the next iteration includes aggregating the modified partial payment subsets and publishing the aggregation of the modified partial payment subsets via another data block in the hash-linked chain of data blocks.
15. A computer program product comprising instructions which, when read by a processor, cause the processor to perform the method according to any one of claims 8 to 14.
16. A computer implemented apparatus comprising means for performing the method according to any one of claims 8 to 14.
